homebridge-smartsystem
Version:
SmartServer (Proxy Websockets to TCP sockets, Smappee MQTT, Duotecno IP Nodes, Homekit interface)
2 lines • 515 kB
JavaScript
/*! For license information please see main-es2015.29aba245ff55288da276.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+/F9":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));var r=n("mrSG");function i(e,t){return new Promise((n,i)=>r.a(this,void 0,void 0,(function*(){t||(t={}),t.buttons||(t.buttons=[{text:"OK",id:"OK"}]);const r=t.buttons.map(e=>({text:e.text,handler:()=>n(e.id)})),i=yield e.create({header:"Duotecno",subHeader:t.title,message:t.message,buttons:r});yield i.present()})))}function s(e,t){return new Promise((n,i)=>r.a(this,void 0,void 0,(function*(){t||(t={}),t.buttons||(t.buttons=[{text:"OK",id:"OK"}]),void 0===t.backdropDismiss&&(t.backdropDismiss=!0);const r=t.buttons.map(e=>({text:e.text,handler:t=>{e.handler&&e.handler(t),n(t)}})),i=yield e.create({header:"Duotecno",subHeader:t.title,message:t.message,buttons:r,inputs:t.inputs,backdropDismiss:!!t.backdropDismiss});yield i.present()})))}function o(e,t,n){return r.a(this,void 0,void 0,(function*(){const r=yield e.create({component:t,componentProps:n});yield r.present();const{data:i}=yield r.onDidDismiss();return i||{}}))}function a(e,t,n=800){return r.a(this,void 0,void 0,(function*(){(yield e.create({message:t,duration:n,position:"top"})).present()}))}},"+qE3":function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}b(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,{once:!0})}(e,i)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,s,o;if(c(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,console&&console.warn&&console.warn(a)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(s){r.once&&e.removeEventListener(t,i),n(s)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)s(l,this,t);else{var c=l.length,u=m(l,c);for(n=0;n<c;++n)s(u[n],this,t)}return!0},a.prototype.on=a.prototype.addListener=function(e,t){return d(this,e,t,!1)},a.prototype.prependListener=function(e,t){return d(this,e,t,!0)},a.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},a.prototype.off=a.prototype.removeListener=function(e,t){var n,r,i,s,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},0:function(e,t,n){e.exports=n("zUnb")},"1vRN":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return i})),n.d(t,"j",(function(){return f})),n.d(t,"k",(function(){return c})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return b})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return g})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return l}));const r=(e,t)=>{e.componentOnReady?e.componentOnReady().then(e=>t(e)):l(()=>t(e))},i=(e,t=[])=>{const n={};return t.forEach(t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))}),n},s=(e,t,n,r)=>{if("undefined"!=typeof window){const i=window,s=i&&i.Ionic&&i.Ionic.config;if(s){const i=s.get("_ael");if(i)return i(e,t,n,r);if(s._ael)return s._ael(e,t,n,r)}}return e.addEventListener(t,n,r)},o=(e,t,n,r)=>{if("undefined"!=typeof window){const i=window,s=i&&i.Ionic&&i.Ionic.config;if(s){const i=s.get("_rel");if(i)return i(e,t,n,r);if(s._rel)return s._rel(e,t,n,r)}}return e.removeEventListener(t,n,r)},a=(e,t=e)=>e.shadowRoot||t,l=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),c=e=>!!e.shadowRoot&&!!e.attachShadow,u=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},d=(e,t)=>{let n;const r=e.getAttribute("aria-labelledby"),i=e.id;let s=null!==r&&""!==r.trim()?r:t+"-lbl",o=null!==r&&""!==r.trim()?document.getElementById(r):u(e);return o?(null===r&&(o.id=s),n=o.textContent,o.setAttribute("aria-hidden","true")):""!==i.trim()&&(o=document.querySelector(`label[for="${i}"]`),o&&(""!==o.id?s=o.id:o.id=s=i+"-lbl",n=o.textContent)),{label:o,labelId:s,labelText:n}},h=(e,t,n,r,i)=>{if(e||c(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=i,e.name=n,e.value=r||""}},f=(e,t,n)=>Math.max(e,Math.min(t,n)),p=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},g=e=>e.timeStamp||Date.now(),m=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},b=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},v=(e,t)=>{const n=e._original||e;return{_original:e,emit:y(n.emit.bind(n),t)}},y=(e,t=0)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(e,t,...r)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("XNiG"),i=n("9ppp");class s extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"39oe":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>{try{if(e instanceof class{constructor(e){this.value=e}})return e.value;if(!o()||"string"!=typeof e||""===e)return e;const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(e=>{const n=t.querySelectorAll(e);for(let r=n.length-1;r>=0;r--){const e=n[r];e.parentNode?e.parentNode.removeChild(e):t.removeChild(e);const o=s(e);for(let t=0;t<o.length;t++)i(o[t])}});const r=s(t);for(let e=0;e<r.length;e++)i(r[e]);const a=document.createElement("div");a.appendChild(t);const c=a.querySelector("div");return null!==c?c.innerHTML:a.innerHTML}catch(t){return console.error(t),""}},i=e=>{if(e.nodeType&&1!==e.nodeType)return;for(let n=e.attributes.length-1;n>=0;n--){const t=e.attributes.item(n),r=t.name;if(!a.includes(r.toLowerCase())){e.removeAttribute(r);continue}const i=t.value;null!=i&&i.toLowerCase().includes("javascript:")&&e.removeAttribute(r)}const t=s(e);for(let n=0;n<t.length;n++)i(t[n])},s=e=>null!=e.children?e.children:e.childNodes,o=()=>{const e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},a=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends s.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new s.a(this),n=this.destination;n.add(t);const r=Object(s.c)(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"7OTs":function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return S})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return x})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return I})),n.d(t,"k",(function(){return d})),n.d(t,"l",(function(){return h})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return N})),n.d(t,"o",(function(){return g}));var r=n("E/Mt"),i=n("B4Jq"),s=n("1vRN");let o=0;const a=new WeakMap,l=e=>({create:t=>b(e,t),dismiss:(t,n,r)=>_(document,t,n,e,r),getTop:async()=>C(document,e)}),c=l("ion-alert"),u=l("ion-action-sheet"),d=l("ion-loading"),h=l("ion-modal"),f=l("ion-picker"),p=l("ion-popover"),g=l("ion-toast"),m=e=>{"undefined"!=typeof document&&w(document);const t=o++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},b=(e,t)=>"undefined"!=typeof customElements?customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),k(document).appendChild(n),new Promise(e=>Object(s.c)(n,e))}):Promise.resolve(),v='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',y="input:not([type=hidden]), textarea, button, select",w=e=>{0===o&&(o=1,e.addEventListener("focus",t=>((e,t)=>{const n=C(t),r=e.target;if(n&&r)if(n===r)n.lastFocus=void 0;else{const e=Object(s.g)(n);if(!e.contains(r))return;const i=e.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(r))n.lastFocus=r;else{const e=n.lastFocus;((e,t)=>{let n=e.querySelector(v);const r=n&&n.shadowRoot;r&&(n=r.querySelector(y)||n),n?n.focus():t.focus()})(i,n),e===t.activeElement&&((e,t)=>{const n=Array.from(e.querySelectorAll(v));let r=n.length>0?n[n.length-1]:null;const i=r&&r.shadowRoot;i&&(r=i.querySelector(y)||r),r?r.focus():t.focus()})(i,n),n.lastFocus=t.activeElement}}})(t,e),!0),e.addEventListener("ionBackButton",t=>{const n=C(e);n&&n.backdropDismiss&&t.detail.register(i.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,j))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=C(e);t&&t.backdropDismiss&&t.dismiss(void 0,j)}}))},_=(e,t,n,r,i)=>{const s=C(e,r,i);return s?s.dismiss(t,n):Promise.reject("overlay does not exist")},C=(e,t,n)=>{const r=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?r[r.length-1]:r.find(e=>e.id===n)},S=async(e,t,n,i,s)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const o=Object(r.b)(e),a=e.enterAnimation?e.enterAnimation:r.c.get(t,"ios"===o?n:i);await A(e,a,e.el,s)&&e.didPresent.emit(),"ION-TOAST"!==e.el.tagName&&E(e.el),e.keyboardClose&&e.el.focus()},E=async e=>{let t=document.activeElement;if(!t)return;const n=t&&t.shadowRoot;n&&(t=n.querySelector(y)||t),await e.onDidDismiss(),t.focus()},x=async(e,t,n,i,s,o,l)=>{if(!e.presented)return!1;e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n});const c=Object(r.b)(e),u=e.leaveAnimation?e.leaveAnimation:r.c.get(i,"ios"===c?s:o);"gesture"!==n&&await A(e,u,e.el,l),e.didDismiss.emit({data:t,role:n}),a.delete(e)}catch(c){console.error(c)}return e.el.remove(),!0},k=e=>e.querySelector("ion-app")||e.body,A=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");const s=t(n.shadowRoot||e.el,i);e.animated&&r.c.getBoolean("animated",!0)||s.duration(0),e.keyboardClose&&s.beforeAddWrite(()=>{const e=n.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const o=a.get(e)||[];return a.set(e,[...o,s]),await s.play(),!0},O=(e,t)=>{let n;const r=new Promise(e=>n=e);return T(e,t,e=>{n(e.detail)}),r},T=(e,t,n)=>{const r=i=>{Object(s.b)(e,t,r),n(i)};Object(s.a)(e,t,r)},I=e=>"cancel"===e||e===j,$=e=>e(),N=(e,t)=>{if("function"==typeof e)return r.c.get("_zoneGate",$)(()=>{try{return e(t)}catch(n){console.error(n)}})},j="backdrop"},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("n6bG"),i=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!e){this.destination=i.a;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const r=new c(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends c{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let a=this;Object(r.a)(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==i.a&&(a=Object.create(t),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8Y7J":function(e,t,n){"use strict";var r=n("XNiG"),i=n("quSY"),s=n("HDdC"),o=n("z+Ro"),a=n("bHdf"),l=n("yCtX"),c=n("7o/Q");function u(){return function(e){return e.lift(new d(e))}}class d{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new h(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class h extends c.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class f extends s.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new i.a,e.add(this.source.subscribe(new g(this.getSubject(),this))),e.closed&&(this._connection=null,e=i.a.EMPTY)),e}refCount(){return u()(this)}}const p=(()=>{const e=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class g extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function m(){return new r.a}function b(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}n.d(t,"hb",(function(){return so})),n.d(t,"ib",(function(){return oo})),n.d(t,"jb",(function(){return ao})),n.d(t,"kb",(function(){return lo})),n.d(t,"gb",(function(){return rs})),n.d(t,"fb",(function(){return qi})),n.d(t,"g",(function(){return Hs})),n.d(t,"P",(function(){return Fs})),n.d(t,"w",(function(){return Us})),n.d(t,"Q",(function(){return Ke})),n.d(t,"T",(function(){return We})),n.d(t,"c",(function(){return ns})),n.d(t,"A",(function(){return ss})),n.d(t,"z",(function(){return os})),n.d(t,"b",(function(){return as})),n.d(t,"d",(function(){return es})),n.d(t,"e",(function(){return ts})),n.d(t,"S",(function(){return no})),n.d(t,"K",(function(){return js})),n.d(t,"V",(function(){return Ds})),n.d(t,"s",(function(){return cs})),n.d(t,"f",(function(){return co})),n.d(t,"m",(function(){return Zi})),n.d(t,"l",(function(){return qe})),n.d(t,"E",(function(){return vt})),n.d(t,"F",(function(){return bt})),n.d(t,"a",(function(){return Yt})),n.d(t,"N",(function(){return Z})),n.d(t,"L",(function(){return Rn})),n.d(t,"Ob",(function(){return E})),n.d(t,"R",(function(){return T})),n.d(t,"p",(function(){return qt})),n.d(t,"Pb",(function(){return B})),n.d(t,"o",(function(){return D})),n.d(t,"n",(function(){return v})),n.d(t,"y",(function(){return y})),n.d(t,"G",(function(){return _})),n.d(t,"x",(function(){return ks})),n.d(t,"B",(function(){return Nn})),n.d(t,"C",(function(){return In})),n.d(t,"D",(function(){return $n})),n.d(t,"i",(function(){return gs})),n.d(t,"j",(function(){return Sn})),n.d(t,"k",(function(){return An})),n.d(t,"t",(function(){return W})),n.d(t,"v",(function(){return G})),n.d(t,"u",(function(){return Ws})),n.d(t,"H",(function(){return Qs})),n.d(t,"I",(function(){return Ks})),n.d(t,"J",(function(){return Zn})),n.d(t,"M",(function(){return Jn})),n.d(t,"h",(function(){return Ut})),n.d(t,"q",(function(){return Gn})),n.d(t,"r",(function(){return Wn})),n.d(t,"O",(function(){return sn})),n.d(t,"U",(function(){return io})),n.d(t,"ub",(function(){return on})),n.d(t,"Y",(function(){return ls})),n.d(t,"W",(function(){return zt})),n.d(t,"X",(function(){return En})),n.d(t,"bb",(function(){return gt})),n.d(t,"cb",(function(){return _t})),n.d(t,"db",(function(){return Ye})),n.d(t,"sb",(function(){return P})),n.d(t,"xb",(function(){return nn})),n.d(t,"Hb",(function(){return A})),n.d(t,"vb",(function(){return bn})),n.d(t,"wb",(function(){return mn})),n.d(t,"rb",(function(){return Xi})),n.d(t,"qb",(function(){return Qi})),n.d(t,"Z",(function(){return Hi})),n.d(t,"ab",(function(){return Gi})),n.d(t,"Nb",(function(){return ae})),n.d(t,"Lb",(function(){return Jt})),n.d(t,"Rb",(function(){return ln})),n.d(t,"Qb",(function(){return cn})),n.d(t,"Mb",(function(){return un})),n.d(t,"Sb",(function(){return hn})),n.d(t,"eb",(function(){return uo})),n.d(t,"lb",(function(){return ri})),n.d(t,"mb",(function(){return Pa})),n.d(t,"nb",(function(){return mr})),n.d(t,"ob",(function(){return Ai})),n.d(t,"pb",(function(){return ho})),n.d(t,"tb",(function(){return Br})),n.d(t,"yb",(function(){return Qr})),n.d(t,"zb",(function(){return Xr})),n.d(t,"Ab",(function(){return Co})),n.d(t,"Bb",(function(){return pi})),n.d(t,"Cb",(function(){return Oi})),n.d(t,"Fb",(function(){return Ti})),n.d(t,"Db",(function(){return xo})),n.d(t,"Eb",(function(){return Eo})),n.d(t,"Gb",(function(){return bo})),n.d(t,"Ib",(function(){return Ao})),n.d(t,"Jb",(function(){return gr})),n.d(t,"Kb",(function(){return Io}));const v=b("Inject",e=>({token:e})),y=b("Optional"),w=b("Self"),_=b("SkipSelf");var C=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function S(e){for(let t in e)if(e[t]===S)return t;throw Error("Could not find renamed property on target object.")}function E(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function x(e){const t=e[k];return t&&t.token===e?t:null}const k=S({ngInjectableDef:S});function A(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(A).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const O=S({__forward_ref__:S});function T(e){return e.__forward_ref__=T,e.toString=function(){return A(this())},e}function I(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(O)&&t.__forward_ref__===T?t():e}const $="undefined"!=typeof globalThis&&globalThis,N="undefined"!=typeof window&&window,j="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,R="undefined"!=typeof global&&global,P=$||R||N||j;class D{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=E({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const M=new D("INJECTOR",-1),V=new Object,L=/\n/gm,U=S({provide:String,useValue:S});let F=void 0;function z(e){const t=F;return F=e,t}function B(e,t=C.Default){return function(e,t=C.Default){if(void 0===F)throw new Error("inject() must be called from an injection context");return null===F?function(e,t,n){const r=x(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&C.Optional)return null;throw new Error(`Injector: NOT_FOUND [${A(e)}]`)}(e,0,t):F.get(e,t&C.Optional?null:void 0,t)}(e,t)}class q{get(e,t=V){if(t===V){const t=new Error(`NullInjectorError: No provider for ${A(e)}!`);throw t.name="NullInjectorError",t}return t}}function H(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=A(t);if(t instanceof Array)i=t.map(A).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):A(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(L,"\n ")}`}class G{}class W{}function K(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function X(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Q=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Z=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Y={},J=[],ee=S({ngComponentDef:S}),te=S({ngDirectiveDef:S}),ne=S({ngPipeDef:S});let re=0;function ie(e){return function(e){return e[ee]||null}(e)||function(e){return e[te]||null}(e)}function se(e){return function(e){return e[ne]||null}(e)}function oe(e,t){if(null==e)return Y;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const ae=function(e){const t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Q.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Z.Emulated,id:"c",styles:e.styles||J,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:()=>{const n=e.directives,s=e.features,o=e.pipes;i.id+=re++,i.inputs=oe(e.inputs,r),i.outputs=oe(e.outputs),s&&s.forEach(e=>e(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(ie):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(se):null,t.hasOwnProperty(k)||(t[k]=E({token:t,factory:e.factory}))}},i};let le=null;const ce=new Map;let ue,de=null;function he(e,t){return de&&e===de||(de=e,t&&(le=ce.get(e)||null),le=le||{classesBitMask:0,classesIndex:1,stylesBitMask:0,stylesIndex:1}),le}function fe(e,t){return function(e){for(;Array.isArray(e);)e=e[0];return e}(t[e.index])}function pe(e,t){return t[1].data[e+19]}function ge(){return ue}const me=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(P))();function be(e,t){0===t?e[2]>0&&function(e){ye(e,2|ve(e))}(e):e[2]=t}function ve(e){return e[1]}function ye(e,t){e[1]=t}function we(e,t){return e[t+2]}function _e(e,t){return 1&e[t+0]}function Ce(e,t){return(1&_e(e,t))>0}function Se(e,t){return e[t+0]>>1}function Ee(e,t,n){const r=_e(e,t);e[t+0]=r|n<<1}function xe(e,t){return e[t+1]}function ke(e,t,n){return e[t+3+n]}function Ae(e,t){return!(!e||t!==e[2])}function Oe(e){return(1&ve(e))>0}function Te(e){return(2&ve(e))>0}function Ie(e){return 6+e[4]}function $e(e,t){let n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),function(e,t){return!(e!=e&&t!=t)&&e!==t}(n,r)}function Ne(e){return null!=e&&""!==e}function je(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Re(e){return Pe(e)?e[0]:e}function Pe(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function De(e,t){return e[t+0]}function Me(e,t,n){e[t+1]=n}function Ve(e,t){return e[t+1]}const Le=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function Ue(e){return!!e.listen}function Fe(e){return e.ngDebugContext}function ze(e){return e.ngOriginalError}function Be(e,...t){e.error(...t)}class qe{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Be}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Fe(e)?Fe(e):this._findContext(ze(e)):null}_findOriginalError(e){let t=ze(e);for(;t&&ze(t);)t=ze(t);return t}}let He=!0,Ge=!1;function We(){return Ge=!0,He}function Ke(){if(Ge)throw new Error("Cannot enable prod mode after platform setup.");He=!1}class Xe{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Qe=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ze=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ye(e){return(e=String(e)).match(Qe)||e.match(Ze)?e:(We()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function Je(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function et(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const tt=Je("area,br,col,hr,img,wbr"),nt=Je("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rt=Je("rp,rt"),it=et(rt,nt),st=et(tt,et(nt,Je("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),et(rt,Je("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),it),ot=Je("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),at=Je("srcset"),lt=et(ot,at,Je("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Je("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ct=Je("script,style,template");class ut{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!st.hasOwnProperty(t))return this.sanitizedSomething=!0,!ct.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i),t=e.name,s=t.toLowerCase();if(!lt.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=e.value;ot[s]&&(o=Ye(o)),at[s]&&(r=o,o=(r=String(r)).split(",").map(e=>Ye(e.trim())).join(", ")),this.buf.push(" ",t,'="',ft(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();st.hasOwnProperty(t)&&!tt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(ft(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const dt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ht=/([^\#-~ |!])/g;function ft(e){return e.replace(/&/g,"&").replace(dt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(ht,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let pt;function gt(e,t){let n=null;try{pt=pt||new Xe(e);let r=t?String(t):"";n=pt.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=pt.getInertBodyElement(r)}while(r!==s);const o=new ut,a=o.sanitizeChildren(mt(n)||n);return We()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=mt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function mt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const bt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class vt{}const yt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),wt=/^url\(([^)]+)\)$/;function _t(e){if(!(e=String(e).trim()))return"";const t=e.match(wt);return t&&Ye(t[1])===t[1]||e.match(yt)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(We()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}const Ct=/([A-Z])/g;function St(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Et=[];function xt(e,t,n,r,i,s,o,a,l){Oe(e)||(o?function(e,t,n,r,i){Et.unshift(e,t,n,r,i)}(e,n,r,i,l):(Et.length&&kt(),At(e,n,r,i,l)));const c=a||$e(t[i],s);return c&&(t[i]=s),c}function kt(){let e=0;for(;e<Et.length;)At(Et[e++],Et[e++],Et[e++],Et[e++],Et[e++]);Et.length=0}function At(e,t,n,r,i){let s=!1;if(n){let o=!1,a=Ie(e);for(;a<e.length;){const s=xe(e,a),l=we(e,a);if(o=n<=l,o){n<l&&Ot(e,a,n,i),Tt(e,!1,a,r,t);break}a+=3+s}o||(Ot(e,e.length,n,i),Tt(e,!1,a,r,t),s=!0)}else Tt(e,!0,3,r,t),s=!0;return s}function Ot(e,t,n,r){e.splice(t,0,r?1:0,1,n,null),Ee(e,t,1)}function Tt(e,t,n,r,i){const s=n+3;let o=s+xe(e,n);if(t||o--,"number"==typeof r){for(let t=s;t<=o;t++)if(e[t]===r)return;e.splice(o,0,r),e[n+1]++,Ee(e,n,Se(e,n)|1<<i)}else null!==r&&null==e[o]&&(e[o]=r)}function It(e,t,n,r,i,s,o,a){return i&&r&&(function(e){if(!Oe(e)){const t=Re(e);t&&function(e,t){for(let n=1;n<t.length;n+=2){const r=Ve(t,n);r&&At(e,-1,De(t,n),r,!1)}}(e,t),function(e){ye(e,1|ve(e))}(e)}}(r),function(e,t){return e&&t>0}(r,s))?(function(e,t,n,r,i,s,o){const a=!0===(l=i)?-1:!1===l?0:l;var l;const c=$t,u=(a&Se(e,3))>0?1:0;let d=Ie(e);for(;d<e.length;){const i=xe(e,d);if(a&Se(e,d)){let a=!1;const l=we(e,d),h=i-1,f=ke(e,d,h);for(let i=0;i<h;i++){const c=ke(e,d,i),u=r[c];if(Ne(u)){s(t,n,l,o&&Ce(e,d)?o(l,u,2):u,c),a=!0;break}}if(c){const i=c(e,t,n,r,s,o,u|(a?4:2),l,f);a=a||i}a||s(t,n,l,f)}d+=3+i}c&&c(e,t,n,r,s,o,u)}(r,e,t,n,s,o,a),!0):i}let $t=null;const Nt=(e,t,n,r)=>{const i=t.style;r?(r=r.toString(),e&&Ue(e)?e.setStyle(t,n,r,Le.DashCase):i&&i.setProperty(n,r)):e&&Ue(e)?e.removeStyle(t,n,Le.DashCase):i&&i.removeProperty(n)},jt=(e,t,n,r)=>{if(""!==n){const i=t.classList;r?e&&Ue(e)?e.addClass(t,n):i&&i.add(n):e&&Ue(e)?e.removeClass(t,n):i&&i.remove(n)}},Rt={},Pt=(e,t,n,r,i,s,o,a,l)=>{let c=!1;if(xe(e,3)){let u=!0;const d=!a;d&&-2&o&&(u=!1,c=!0),u&&(c=function e(t,n,r,i,s,o,a,l,c,u){let d=!1;if(c<xe(t,3)){const h=ke(t,3,c),f=i[h];let p=function(e){return e>=Vt.length&&Vt.push(1),Vt[e]}(c);for(;p<f.length;){const g=De(f,p),m=l&&g>l,b=!m&&g===l,v=Ve(f,p),y=Ne(v);let w=e(t,n,r,i,s,o,m?a:Dt(a,y,b),m?l:g,c+1,u);if(m){d||(d=w);break}if(!w&&Mt(a,b)){const e=b&&!y,t=e?u:v,i=e?h:null;s(n,r,g,o?o(g,t,3):t,i),w=!0}d=w&&b,p+=2}if(Vt[c]=p,1===f.length||!l)return e(t,n,r,i,s,o,a,l,c+1,u)}return d}(e,t,n,r,i,s,o,a||null,0,l||null)),d&&function(){for(let e=0;e<Vt.length;e++)Vt[e]=1}()}return c};function Dt(e,t,n){let r=e;return t||4&e||!(n||1&e)?(r|=4,r&=-3):(r|=2,r&=-5),r}function Mt(e,t){let n=(1&e)>0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}const Vt=[];function Lt(e,t,n,r){for(let i=1;i<e.length;i+=2){const s=De(e,i);if(t<=s){let o=!1;if(s===t){const t=e[i];!r&&Ne(t)||(o=!0,Me(e,i,n))}else o=!0,e.splice(i,0,t,n);return o}}return e.push(t,n),!0}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ft(),e})();const Ft=(...e)=>{},zt=new D("The presence of this token marks an injector as being the root injector."),Bt=function(e,t,n){return new Xt(e,t,n)};let qt=(()=>{class e{static create(e,t){return Array.isArray(e)?Bt(e,t,""):Bt(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=V,e.NULL=new q,e.ngInjectableDef=E({token:e,providedIn:"any",factory:()=>B(M)}),e.__NG_ELEMENT_ID__=-1,e})();const Ht=function(e){return e},Gt=[],Wt=Ht,Kt=function(){return Array.prototype.slice.call(arguments)};class Xt{constructor(e,t=qt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(qt,{token:qt,fn:Ht,deps:Gt,value:this,useNew:!1}),r.set(M,{token:M,fn:Ht,deps:Gt,value:this,useNew:!1}),function e(t,n){if(n)if((n=I(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Zt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Zt("Unexpected provider",n);{let e=I(n.provide);const r=function(e){const t=function(e){let t=Gt;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,i=I(n[e]);if(i instanceof Array)for(let e=0,t=i;e<t.length;e++){const n=t[e];n instanceof y||n==y?r|=1:n instanceof _||n==_?r&=-3:n instanceof w||n==w?r&=-5:i=n instanceof v?n.token:I(n)}t.push({token:i,options:r})}}else if(e.useExisting)t=[{token:I(e.useExisting),options:6}];else if(!n&&!(U in e))throw Zt("'deps' required",e);return t}(e);let n=Ht,r=Gt,i=!1,s=I(e.provide);if(U in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=I(e.useClass);else{if("function"!=typeof s)throw Zt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=s}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Kt)throw Qt(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Kt,value:Gt});e=n,r.deps.push({token:e,options:6})}const i=t.get(e);if(i&&i.fn==Kt)throw Qt(e);t.set(e,r)}}}(r,e)}get(e,t,n=C.Default){const r=this._records.get(e);try{return function e(t,n,r,i,s,o){try{return function(t,n,r,i,s,o){let a;if(!n||o&C.SkipSelf)o&C.Self||(a=i.get(t,s,C.Default));else{if(a=n.value,a==Wt)throw Error("\u0275Circular dependency");if(a===Gt){n.value=Wt;let t=void 0,s=n.useNew,o=n.fn,l=n.deps,c=Gt;if(l.length){c=[];for(let t=0;t<l.length;t++){const n=l[t],s=n.options,o=2&s?r.get(n.token):void 0;c.push(e(n.token,o,r,o||4&s?i:qt.NULL,1&s?null:qt.THROW_IF_NOT_FOUND,C.Default))}}n.value=a=s?new o(...c):o.apply(t,c)}}return a}(t,n,r,i,s,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==Wt&&(n.value=Gt),a}}(e,r,this._records,this.parent,t,n)}catch(i){return function(e,t,n,r){const i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=H("\n"+e.message,i,"StaticInjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(i,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(A(n))),`StaticInjector[${e.join(", ")}]`}}function Qt(e){return Zt("Cannot mix multi providers and regular providers",e)}function Zt(e,t){return new Error(H(e,t,"StaticInjectorError"))}const Yt=new D("AnalyzeForEntryComponents");function Jt(e){const t=(void 0)[1];t.firstTemplatePass&&(function(e,t,n){const r=e.expandoInstructions,i=r.length;i>=2&&r[i-2]===null.hostBindings?r[i-1]=r[i-1]+n:r.push(null.hostBindings,n)}(t,0,e),function(e,t,n){for(let r=0;r<n;r++)(void 0).push(Rt),e.blueprint.push(Rt),e.data.push(null)}(t,0,e))}let en=null;function tn(){if(!en){const e=P.Symbol;if(e&&e.iterator)en=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(en=n)}}}return en}function nn(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function rn(e,t){const n=on(e),r=on(t);if(n&&r)return function(e,t,n){const r=e[tn()](),i=t[tn()]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,rn);{const i=e&&("object"==typeof e||"function"==typeof e),s=t&&("object"==typeof t||"function"==typeof t);return!(n||!i||r||!s)||nn(e,t)}}class sn{constructor(e){this.wrapped=e}static wrap(e){return new sn(e)}static unwrap(e){return sn.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof sn}}function on(e){return!!an(e)&&(Array.isArray(e)||!(e instanceof Map)&&tn()in e)}function an(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ln(){(void 0)[1].firstTemplatePass&&(1,be(pn(void 0),1),be(fn(void 0),1))}function cn(e){const t=pe(-1,void 0),n=fn(t),r=(void 0)[7]++;dn(-1,n,r,e,!1,!1)}function un(e){!function(e,t){const n=pe(-1,void 0),r=pn(n),i=(void 0)[7]++;dn(-1,r,i,t,!0,!1)}(0,e)}function dn(e,t,n,r,i,s){$t=Pt;let o=!1;if(r!==Rt){const a=fe(pe(e,void 0),void 0),l=(void 0)[n];o=$e(l,r);const c=function(e,t,n){const r=Array.isArray(e)?e:[null];r[0]=t||null;for(let a=1;a<r.length;a+=2)Me(r,a,null);let i,s=null,o=!1;if("string"==typeof t?t.length&&(s=t.split(/\s+/),o=!0):(s=t?Object.keys(t):null,i=t),s)for(let a=0;a<s.length;a++){const e=s[a];Lt(r,n?je(e):e,!!o||i[e],!0)}return r}(l,r,!i);i?function(e,t,n,r,i,s,o,a){const l=he(n,Te(e));!xt(e,void 0,0,null,i,s,o,a,!1)&&!a||(l.classesBitMask|=1)}(t,0,a,0,n,c,s,o):function(e,t,n,r,i,s,o,a,l){const c=he(n,Te(e));!xt(e,void 0,0,null,i,s,a,l,!0)&&!l||(c.stylesBitMask|=1)}(t,0,a,0,n,c,ge(),s,o)}return o}function hn(){const e=pe(-1,void 0),t=function(e,t){return 3===e.type?(void 0)[12]:null}(e),n=fe(e,void 0),r=ge();(function(e,t,n,r,i,s,o){const a=n?Te(n):!!r&&Te(r),l=Ae(n,s),c=Ae(r,s);Et.length&&(l||c)&&kt();const u=he(i,a),d=It(e,i,t,n,l,u.classesBitMask,jt,null),h=It(e,i,t,r,c,u.stylesBitMask,Nt,o);d&&h?(le=null,de=null,a&&function(e){ce.delete(e)}(i)):a&&function(e,t){ce.set(e,t)}(i,u)})(t,void 0,pn(e),fn(e),n,1,r),ue=null}function fn(e){return gn(e,!1)}function pn(e){return gn(e,!0)}function gn(e,t){let n=t?e.classes:e.styles;return Pe(n)||(n=[n||[""],0,0,1,0,"--MAP--"],t?e.classes=n:e.styles=n),n}function mn(e){return!!e&&"function"==typeof e.then}function bn(e){return!!e&&"function"==typeof e.subscribe}class vn{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class yn{}function wn(e){const t=Error(`No component factory found for ${A(e)}. Did you add it to @NgModule.entryComponents?`);return t[_n]=e,t}const _n="ngComponent";class Cn{resolveComponentFactory(e){throw wn(e)}}let Sn=(()=>{class e{}return e.NULL=new Cn,e})();class En{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw wn(e);return new xn(t,this._ngModule)}}class xn extends yn{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function kn(...e){}let An=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>On(e),e})();const On=kn;class Tn{}class In{}const $n=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let Nn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>jn(),e})();const jn=kn;class Rn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Pn=new Rn("8.2.14");class Dn{constructor(){}supports(e){return on(e)}create(e){return new Vn(e)}}const Mn=(e,t)=>t;class Vn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Mn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex<zn(n,r,i)?t:n,o=zn(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{i||(i=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,s=r+n;t<=s&&s<e&&(i[n]=r+1)}i[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!on(e))throw new Error(`Error trying to diff '${A(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&nn(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,n,r,t)),nn(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),s=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[tn()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&nn(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),nn(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(nn(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(nn(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new Ln(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Fn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Ln{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Un{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&nn(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Fn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Un,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zn(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Bn{constructor(){}supports(e){return e instanceof Map||an(e)}create(){return new qn}}class qn{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||an(e)))throw new Error(`Error trying to diff '${A(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Hn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){nn(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Hn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Gn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new _,new y]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=E({token:e,providedIn:"root",factory:()=>new e([new Dn])}),e})(),Wn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new _,new y]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=E({token:e,providedIn:"root",factory:()=>new e([new Bn])}),e})();const Kn=[new Bn],Xn=new Gn([new Dn]),Qn=new Wn(Kn);let Zn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Yn(e,An),e})();const Yn=kn;let Jn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>er(e,An),e})();const er=kn;function tr(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return nr(n,t),n}(i,e)}function nr(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function rr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function ir(e,t,n){const r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function sr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function or(e,t){return e.nodes[t]}function ar(e,t){return e.nodes[t]}function lr(e,t){return e.nodes[t]}function cr(e,t){return e.nodes[t]}function ur(e,t){return e.nodes[t]}const dr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},hr=()=>{},fr=new Map;function pr(e){let t=fr.get(e);return t||(t=A(e)+"_"+fr.size,fr.set(e,t)),t}function gr(e,t,n,r){if(sn.isWrapped(r)){r=sn.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,s=sn.unwrap(e.oldValues[i]);e.oldValues[i]=new sn(s)}return r}function mr(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let br=0;function vr(e,t,n,r){return!(!(2&e.state)&&nn(e.oldValues[t.bindingIndex+n],r))}function yr(e,t,n,r){return!!vr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function wr(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!rn(i,r)){const s=t.bindings[n].name;throw tr(dr.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,0!=(1&e.state))}}function _r(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Cr(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Sr(e,t,n,r){try{return _r(33554432&e.def.nodes[t].flags?ar(e,t).componentView:e),dr.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function Er(e){return e.parent?ar(e.parent,e.parentNodeDef.nodeIndex):null}function xr(e){return e.parent?e.parentNodeDef.parent:null}function kr(e,t){switch(201347067&t.flags){case 1:return ar(e,t.nodeIndex).renderElement;case 2:return or(e,t.nodeIndex).renderText}}function Ar(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Or(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Tr(e){return 1<<e%32}function Ir(e){const t={};let n=0;const r={};return e&&e.forEach(([e,i])=>{"number"==typeof e?(t[e]=i,n|=Tr(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function $r(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:pr(n)}})}function Nr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Z.Native?ar(e,n.renderParent.nodeIndex).renderElement:void 0:t}const jr=new WeakMap;function Rr(e){let t=jr.get(e);return t||(t=e(()=>hr),t.factory=e,jr.set(e,t)),t}function Pr(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(kr(e,e.def.lastRenderRootNode))),Dr(e,t,0,e.def.nodes.length-1,n,r,i)}function Dr(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Vr(e,n,t,i,s,o),a+=n.childCount}}function Mr(e,t,n,r,i,s){let o=e;for(;o&&!Ar(o);)o=o.parent;const a=o.parent,l=xr(o),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&Vr(a,e,n,r,i,s),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)Lr(e,o[t],n,r,i,s)}}function Vr(e,t,n,r,i,s){if(8&t.flags)Mr(e,t.ngContent.index,n,r,i,s);else{const o=kr(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Lr(e,o,n,r,i,s),32&t.bindingFlags&&Lr(ar(e,t.nodeIndex).componentView,o,n,r,i,s)):Lr(e,o,n,r,i,s),16777216&t.flags){const o=ar(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)Pr(o[e],n,r,i,s)}1&t.flags&&!t.element.name&&Dr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,s)}}function Lr(e,t,n,r,i,s){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,i);break;case 3:o.removeChild(r,t);break;case 0:s.push(t)}}const Ur=/^:([^:]+):(.+)$/;function Fr(e){if(":"===e[0]){const t=e.match(Ur);return[t[1],t[2]]}return["",e]}function zr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function Br(e,t,n,r,i,s,o,a,l,c,u,d,h,f,p,g,m,b,v,y){switch(e){case 1:return t+qr(n)+r;case 2:return t+qr(n)+r+qr(i)+s;case 3:return t+qr(n)+r+qr(i)+s+qr(o)+a;case 4:return t+qr(n)+r+qr(i)+s+qr(o)+a+qr(l)+c;case 5:return t+qr(n)+r+qr(i)+s+qr(o)+a+qr(l)+c+qr(u)+d;case 6:return t+qr(n)+r+qr(i)+s+qr(o)+a+qr(l)+c+qr(u)+d+qr(h)+f;case 7:return t+qr(n)+r+qr(i)+s+qr(o)+a+qr(l)+c+qr(u)+d+qr(h)+f+qr(p)+g;case 8:return t+qr(n)+r+qr(i)+s+qr(o)+a+qr(l)+c+qr(u)+d+qr(h)+f+qr(p)+g+qr(m)+b;case 9:return t+qr(n)+r+qr(i)+s+qr(o)+a+qr(l)+c+qr(u)+d+qr(h)+f+qr(p)+g+qr(m)+b+qr(v)+y;default:throw new Error("Does not support more than 9 expressions")}}function qr(e){return null!=e?e.toString():""}const Hr=new Object,Gr=pr(qt),Wr=pr(M),Kr=pr(G);function Xr(e,t,n,r){return n=I(n),{index:-1,deps:$r(r,A(t)),flags:e,token:t,value:n}}function Qr(e){const t={},n=[];let r=!1;for(let i=0;i<e.length;i++){const s=e[i];s.token===zt&&!0===s.value&&(r=!0),1073741824&s.flags&&n.push(s.token),s.index=i,t[pr(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function Zr(e,t,n=qt.THROW_IF_NOT_FOUND){const r=z(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case Gr:case Wr:case Kr:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Yr(e,a)),t===Hr?void 0:t}if((l=x(t.token))&&(i=e,null!=(s=l).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(i,s.providedIn)||"root"===s.providedIn&&i._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=Hr,e._providers[n]=Yr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{z(r)}var i,s}function Yr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Zr(e,n[0]));case 2:return new t(Zr(e,n[0]),Zr(e,n[1]));case 3:return new t(Zr(e,n[0]),Zr(e,n[1]),Zr(e,n[2]));default:const i=new Array(r);for(let t=0;t<r;t++)i[t]=Zr(e,n[t]);return new t(...i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Zr(e,n[0]));case 2:return t(Zr(e,n[0]),Zr(e,n[1]));case 3:return t(Zr(e,n[0]),Zr(e,n[1]),Zr(e,n[2]));default:const i=Array(r);for(let t=0;t<r;t++)i[t]=Zr(e,n[t]);return t(...i)}}(e,t.value,t.deps);break;case 2048:n=Zr(e,t.deps[0]);break;case 256:n=t.value}return n===Hr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Hr:n}function Jr(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,X(n,t),dr.dirtyParentQueries(r),ti(r),r}function ei(e,t,n){const r=t?kr(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);Pr(n,2,i,s,void 0)}function ti(e){Pr(e,3,null,null,void 0)}const ni=new Object;function ri(e,t,n,r,i,s){return new ii(e,t,n,r,i,s)}class ii extends yn{constructor(e,t,n,r,i,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=Rr(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=dr.createRootView(e,t||[],n,i,r,ni),a=lr(o,s).instance;return n&&o.renderer.setAttribute(ar(o,0).renderElement,"ng-version",Pn.full),new si(o,new ci(o),a)}}class si extends class{}{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new An(ar(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new fi(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function oi(e,t,n){return new ai(e,t,n)}class ai{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new An(this._data.renderElement)}get injector(){return new fi(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=xr(e),e=e.parent;return e?new fi(e,t):new fi(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Jr(this._data,e);dr.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new ci(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;i||e instanceof xn||(i=s.get(G));const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,K(i,n,r),function(e,t){const n=Er(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),dr.dirtyParentQueries(r),ei(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,i=r[t];X(r,t),null==n&&(n=r.length),K(r,n,i),dr.dirtyParentQueries(i),ti(i),ei(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Jr(this._data,e);t&&dr.destroyView(t)}detach(e){const t=Jr(this._data,e);return t?new ci(t):null}}function li(e){return new ci(e)}class ci{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Pr(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){_r(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{dr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){dr.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),dr.destroyView(this._view)}detachFromAppRef(){this._appRef=null,ti(this._view),dr.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function ui(e,t){return new di(e,t)}class di extends Zn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new ci(dr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new An(ar(this._parentView,this._def.nodeIndex).renderElement)}}function hi(e,t){return new fi(e,t)}class fi{constructor(e,t){this.view=e,this.elDef=t}get(e,t=qt.THROW_IF_NOT_FOUND){return dr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:pr(e)},t)}}function pi(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=ar(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return or(e,n.nodeIndex).renderText;if(20240&n.flags)return lr(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function gi(e){return new mi(e.renderer)}class mi{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Fr(t),i=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,i),i}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,i]=Fr(t);null!=n?this.delegate.setAttribute(e,i,n,r):this.delegate.removeAttribute(e,i,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function bi(e,t,n,r){return new vi(e,t,n,r)}class vi{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Yr(e,i))}}(this)}get(e,t=qt.THROW_IF_NOT_FOUND,n=C.Default){let r=0;return n&C.SkipSelf?r|=1:n&C.Self&&(r|=4),Zr(this,{token:e,tokenKey:pr(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Sn)}destroy(){if(this._destroyed)throw new Error(`The ng module ${A(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const t=e._providers[i];if(t&&t!==Hr){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const yi=pr(Tn),wi=pr(Nn),_i=pr(An),Ci=pr(Jn),Si=pr(Zn),Ei=pr(Ut),xi=pr(qt),ki=pr(M);function Ai(e,t,n,r,i,s,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return Ii(e,t|=16384,n,r,i,i,s,l,c)}function Oi(e,t,n){return Ii(-1,e|=16,null,0,t,t,n)}function Ti(e,t,n,r,i){return Ii(-1,e,t,0,n,r,i)}function Ii(e,t,n,r,i,s,o,a,l){const{matchedQueries:c,references:u,matchedQueryIds:d}=Ir(n);l||(l=[]),a||(a=[]),s=I(s);const h=$r(o,A(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:d,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:zr(a),outputs:l,element:null,provider:{token:i,value:s,deps:h},text:null,query:null,ngContent:null}}function $i(e,t){return Pi(e,t)}function Ni(e,t){let n=e;for(;n.parent&&!Ar(n);)n=n.parent;return Di(n.parent,xr(n),!0,t.provider.value,t.provider.deps)}function ji(e,t){const n=Di(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const i=t.outputs[r],s=n[i.propName];if(!bn(s))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=s.subscribe(Ri(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function Ri(e,t,n){return r=>Sr(e,t,n,r)}function Pi(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Di(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const s=i.length;switch(s){case 0:return r();case 1:return r(Vi(e,t,n,i[0]));case 2:return r(Vi(e,t,n,i[0]),Vi(e,t,n,i[1]));case 3:return r(Vi(e,t,n,i[0]),Vi(e,t,n,i[1]),Vi(e,t,n,i[2]));default:const o=Array(s);for(let r=0;r<s;r++)o[r]=Vi(e,t,n,i[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return Vi(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Di(e,t,n,r,i){const s=i.length;switch(s){case 0:return new r;case 1:return new r(Vi(e,t,n,i[0]));case 2:return new r(Vi(e,t,n,i[0]),Vi(e,t,n,i[1]));case 3:return new r(Vi(e,t,n,i[0]),Vi(e,t,n,i[1]),Vi(e,t,n,i[2]));default:const o=new Array(s);for(let r=0;r<s;r++)o[r]=Vi(e,t,n,i[r]);return new r(...o)}}const Mi={};function Vi(e,t,n,r,i=qt.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const s=e;2&r.flags&&(i=null);const o=r.tokenKey;o===Ei&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case yi:return gi(Li(a,t,n));case wi:return Li(a,t,n).renderer;case _i:return new An(ar(a,t.nodeIndex).renderElement);case Ci:return ar(a,t.nodeIndex).viewContainer;case Si:if(t.element.template)return ar(a,t.nodeIndex).template;break;case Ei:return li(Li(a,t,n));case xi:case ki:return hi(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=lr(a,e.nodeIndex);return t||(t={instance:Pi(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=Ar(a),t=xr(a),a=a.parent,4&r.flags&&(a=null)}const l=s.root.injector.get(r.token,Mi);return l!==Mi||i===Mi?l:s.root.ngModule.injector.get(r.token,i)}function Li(e,t,n){let r;if(n)r=ar(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Ar(r);)r=r.parent;return r}function Ui(e,t,n,r,i,s){if(32768&n.flags){const t=ar(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){s=s||{};const t=sn.unwrap(e.oldValues[n.bindingIndex+r]);s[n.bindings[r].nonMinifiedName]=new vn(t,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,s}function Fi(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let i=0;i<n.length;i++){const s=n[i];let o=s.parent;for(!o&&s.flags&t&&Bi(e,i,s.flags&t,r++),0==(s.childFlags&t)&&(i+=s.childCount);o&&1&o.flags&&i===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=zi(e,o,t,r)),o=o.parent}}function zi(e,t,n,r){for(let i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){const t=e.def.nodes[i];t.flags&n&&Bi(e,i,t.flags&n,r++),i+=t.childCount}return r}function Bi(e,t,n,r){const i=lr(e,t);if(!i)return;const s=i.instance;s&&(dr.setCurrentNode(e,t),1048576&n&&sr(e,512,r)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&sr(e,768,r)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}const qi=new D("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>me}),Hi={},Gi=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Wi=void 0;var Ki=["en",[["a","p"],["AM","PM"],Wi],[["AM","PM"],Wi,Wi],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Wi,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Wi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Wi,"{1} 'at' {0}",Wi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function Xi(e){return Qi(e)[Gi.PluralCase]}function Qi(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Hi[t];if(n)return n;const r=t.split("-")[0];if(n=Hi[r],n)return n;if("en"===r)return Ki;throw new Error(`Missing locale data for the locale "${e}".`)}class Zi extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,s,o);return e instanceof i.a&&e.add(a),a}}function Yi(){return this._results[tn()]()}class Ji{constructor(){this.dirty=!0,this._results=[],this.changes=new Zi,this.length=0;const e=tn(),t=Ji.prototype;t[e]||(t[e]=Yi)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const es=new D("Application Initializer");class ts{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();mn(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const ns=new D("AppId");function rs(){return`${is()}${is()}${is()}`}function is(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ss=new D("Platform Initializer"),os=new D("Platform ID"),as=new D("appBootstrapListener");class ls{log(e){console.log(e)}warn(e){console.warn(e)}}const cs=new D("LocaleId");function us(){throw new Error("Runtime compiler is not loaded")}const ds=us,hs=us,fs=us,ps=us;class gs{constructor(){this.compileModuleSync=ds,this.compileModuleAsync=hs,this.compileModuleAndAllComponentsSync=fs,this.compileModuleAndAllComponentsAsync=ps}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class ms{}let bs,vs;function ys(){const e=P.wtf;return!(!e||(bs=e.trace,!bs)||(vs=bs.events,0))}const ws=ys();function _s(e,t){return null}const Cs=ws?function(e,t=null){return vs.createScope(e,t)}:(e,t)=>_s,Ss=ws?function(e,t){return bs.leaveScope(e,t),t}:(e,t)=>t,Es=(()=>Promise.resolve(0))();function xs(e){"undefined"==typeof Zone?Es.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ks{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zi(!1),this.onMicrotaskEmpty=new Zi(!1),this.onStable=new Zi(!1),this.onError=new Zi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,i,s,o)=>{try{return Is(t),e.invokeTask(r,i,s,o)}finally{$s(t)}},onInvoke:(e,n,r,i,s,o,a)=>{try{return Is(t),e.invoke(r,i,s,o,a)}finally{$s(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,Ts(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ks.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ks.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,Os,As,As);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function As(){}const Os={};function Ts(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Is(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $s(e){e._nesting--,Ts(e)}class Ns{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zi,this.onMicrotaskEmpty=new Zi,this.onStable=new Zi,this.onError=new Zi}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class js{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ks.assertNotInAngularZone(),xs(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xs(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class Rs{constructor(){this._applications=new Map,Vs.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Vs.findTestabilityInTree(this,e,t)}}class Ps{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Ds(e){Vs=e}let Ms,Vs=new Ps;const Ls=new D("AllowMultipleToken");class Us{constructor(e,t){this.name=e,this.token=t}}function Fs(e,t,n=[]){const r="Platform: "+t,i=new D(r);return(t=[])=>{let s=zs();if(!s||s.injector.get(Ls,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(Ms&&!Ms.destroyed&&!Ms.injector.get(Ls,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ms=e.get(Bs);const t=e.get(ss,null);t&&t.forEach(e=>e())}(qt.create({providers:e,name:r}))}return function(e){const t=zs();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function zs(){return Ms&&!Ms.destroyed?Ms:null}class Bs{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e){let t;return t="noop"===e?new Ns:("zone.js"===e?void 0:e)||new ks({enableLongStackTrace:We()}),t}(t?t.ngZone:void 0),r=[{provide:ks,useValue:n}];return n.run(()=>{const t=qt.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(qe,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>Gs(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return mn(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(ts);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=qs({},t);return function(e,t,n){return e.get(ms).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Hs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${A(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function qs(e,t){return Array.isArray(t)?t.reduce(qs,e):Object.assign({},e,t)}let Hs=(()=>{class e{constructor(e,t,n,r,i,c){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=We(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const d=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),h=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ks.assertNotInAngularZone(),xs(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ks.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return Object(o.a)(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof s.a?e[0]:Object(a.a)(t)(Object(l.a)(e,n))}(d,h.pipe(e=>{return u()((t=m,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,p);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof yn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n instanceof xn?null:this._injector.get(G),i=n.create(qt.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(js,null);return s&&i.injector.get(Rs).registerApplication(i.location.nativeElement,s),this._loadComponent(i),We()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,Ss(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Gs(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(as,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Gs(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Cs("ApplicationRef#tick()"),e})();function Gs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ws{}class Ks{}const Xs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Qs{constructor(e,t){this._compiler=e,this._config=t||Xs}load(e){return this._compiler instanceof gs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Zs(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>Zs(e,t,r))}}function Zs(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Ys{constructor(e,t){this.name=e,this.callback=t}}class Js{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof eo&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class eo extends Js{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof eo&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof eo&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof eo&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof eo)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const to=new Map,no=function(e){return to.get(e)||null};function ro(e){to.set(e.nativeNode,e)}const io=Fs(null,"core",[{provide:os,useValue:"unknown"},{provide:Bs,deps:[qt]},{provide:Rs,deps:[]},{provide:ls,deps:[]}]);function so(){return Xn}function oo(){return Qn}function ao(e){return e||"en-US"}function lo(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class co{constructor(e){}}function uo(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=Ir(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Rr(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||hr},provider:null,text:null,query:null,ngContent:null}}function ho(e,t,n,r,i,s,o=[],a,l,c,u,d){c||(c=hr);const{matchedQueries:h,references:f,matchedQueryIds:p}=Ir(n);let g=null,m=null;s&&([g,m]=Fr(s)),a=a||[];const b=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t,n]=a[w],[r,i]=Fr(t);let s=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:s=n}b[w]={flags:e,ns:r,name:i,nonMinifiedName:i,securityContext:s,suffix:o}}l=l||[];const v=new Array(l.length);for(let w=0;w<l.length;w++){const[e,t]=l[w];v[w]={type:0,target:e,eventName:t,propName:null}}const y=(o=o||[]).map(([e,t])=>{const[n,r]=Fr(e);return[n,r,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==Z.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+br++:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:zr(b),outputs:v,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:u||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:c||hr},provider:null,text:null,query:null,ngContent:null}}function fo(e,t,n){const r=n.element,i=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!i){o=r.name?s.createElement(r.name,r.ns):s.createComment("");const i=Nr(e,t,n);i&&s.appendChild(i,o)}else o=s.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===Z.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];s.setAttribute(o,t,n,e)}return o}function po(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=go(e,n.nodeIndex,(s=a.eventName,(i=a.target)?`${i}:${s}`:s));let c=a.target,u=e;"component"===a.target&&(c=null,u=t);const d=u.renderer.listen(c||r,a.eventName,l);e.disposables[n.outputIndex+o]=d}var i,s}function go(e,t,n){return r=>Sr(e,t,n,r)}function mo(e,t,n,r){if(!yr(e,t,n,r))return!1;const i=t.bindings[n],s=ar(e,t.nodeIndex),o=s.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const l=e.renderer;null!=s?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,o,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,i){let s=e.root.sanitizer.sanitize(bt.STYLE,i);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,r,s):o.removeStyle(n,r)}(e,i,o,a,r);break;case 8:!function(e,t,n,r,i){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,i):i;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}function bo(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Tr(t),bindings:r},ngContent:null}}function vo(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Or(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&ur(e,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&ur(e,n).setDirty(),n+=t.childCount}}function yo(e,t){const n=ur(e,t.nodeIndex);if(!n.dirty)return;let r,i=void 0;if(67108864&t.flags){const n=t.parent.parent;i=wo(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=lr(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=wo(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);const s=t.query.bindings;let o=!1;for(let a=0;a<s.length;a++){const e=s[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function wo(e,t,n,r,i){for(let s=t;s<=n;s++){const t=e.def.nodes[s],n=t.matchedQueries[r.id];if(null!=n&&i.push(_o(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=ar(e,s);if((t.childMatchedQueries&r.filterId)===r.filterId&&(wo(e,s+1,s+t.childCount,r,i),s+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const s=e[t],o=Er(s);o&&o===n&&wo(s,0,s.def.nodes.length-1,r,i)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];wo(t,0,t.def.nodes.length-1,r,i)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(s+=t.childCount)}return i}function _o(e,t,n){if(null!=n)switch(n){case 1:return ar(e,t.nodeIndex).renderElement;case 0:return new An(ar(e,t.nodeIndex).renderElement);case 2:return ar(e,t.nodeIndex).template;case 3:return ar(e,t.nodeIndex).viewContainer;case 4:return lr(e,t.nodeIndex).instance}}function Co(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function So(e,t,n){const r=Nr(e,t,n);r&&Mr(e,n.ngContent.index,1,r,null,void 0)}function Eo(e,t){return ko(128,e,new Array(t+1))}function xo(e,t){const n=Object.keys(t),r=n.length,i=new Array(r);for(let s=0;s<r;s++){const e=n[s];i[t[e]]=e}return ko(64,e,i)}function ko(e,t,n){const r=new Array(n.length);for(let i=0;i<n.length;i++){const e=n[i];r[i]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:zr(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Ao(e,t,n){const r=new Array(n.length-1);for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Oo(e,t,n){let r;const i=e.renderer;r=i.createText(n.text.prefix);const s=Nr(e,t,n);return s&&i.appendChild(s,r),{renderText:r}}function To(e,t){return(null!=e?e.toString():"")+t.suffix}function Io(e,t,n,r){let i=0,s=0,o=0,a=0,l=0,c=null,u=null,d=!1,h=!1,f=null;for(let p=0;p<t.length;p++){const e=t[p];if(e.nodeIndex=p,e.parent=c,e.bindingIndex=i,e.outputIndex=s,e.renderParent=u,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,d=!1,h=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(No(c,e,t.length),i+=e.bindings.length,s+=e.outputs.length,!u&&3&e.flags&&(f=e),20224&e.flags){d||(d=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[pr(e.provider.token)]=e:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[pr(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,$o(e)||(u=e);else for(;c&&p===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),c=e,u=c&&$o(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||hr,updateRenderer:r||hr,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:f}}function $o(e){return 0!=(1&e.flags)&&null===e.element.name}function No(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function jo(e,t,n,r){const i=Do(e.root,e.renderer,e,t,n);return Mo(i,e.component,r),Vo(i),i}function Ro(e,t,n){const r=Do(e,e.renderer,null,null,t);return Mo(r,n,n),Vo(r),r}function Po(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Do(e.root,s,e,t.element.componentProvider,n)}function Do(e,t,n,r,i){const s=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function Mo(e,t,n){e.component=t,e.context=n}function Vo(e){let t;Ar(e)&&(t=ar(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];let o;switch(dr.setCurrentNode(e,i),201347067&s.flags){case 1:const n=fo(e,t,s);let a=void 0;if(33554432&s.flags){const t=Rr(s.element.componentView);a=dr.createComponentView(e,s,t,n)}po(e,a,s,n),o={renderElement:n,componentView:a,viewContainer:null,template:s.element.template?ui(e,s):void 0},16777216&s.flags&&(o.viewContainer=oi(e,s,o));break;case 2:o=Oo(e,t,s);break;case 512:case 1024:case 2048:case 256:o=r[i],o||4096&s.flags||(o={instance:$i(e,s)});break;case 16:o={instance:Ni(e,s)};break;case 16384:o=r[i],o||(o={instance:ji(e,s)}),32768&s.flags&&Mo(ar(e,s.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Ji;break;case 8:So(e,t,s),o=void 0}r[i]=o}Wo(e,Go.CreateViewNodes),Zo(e,201326592,268435456,0)}function Lo(e){zo(e),dr.updateDirectives(e,1),Ko(e,Go.CheckNoChanges),dr.updateRenderer(e,1),Wo(e,Go.CheckNoChanges),e.state&=-97}function Uo(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,ir(e,0,256),zo(e),dr.updateDirectives(e,0),Ko(e,Go.CheckAndUpdate),Zo(e,67108864,536870912,0);let t=ir(e,256,512);Fi(e,2097152|(t?1048576:0)),dr.updateRenderer(e,0),Wo(e,Go.CheckAndUpdate),Zo(e,134217728,536870912,0),t=ir(e,512,768),Fi(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,ir(e,768,1024)}function Fo(e,t,n,r,i,s,o,a,l,c,u,d,h){return 0===n?function(e,t,n,r,i,s,o,a,l,c,u,d){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,s,o,a,l,c,u,d){const h=t.bindings.length;let f=!1;return h>0&&mo(e,t,0,n)&&(f=!0),h>1&&mo(e,t,1,r)&&(f=!0),h>2&&mo(e,t,2,i)&&(f=!0),h>3&&mo(e,t,3,s)&&(f=!0),h>4&&mo(e,t,4,o)&&(f=!0),h>5&&mo(e,t,5,a)&&(f=!0),h>6&&mo(e,t,6,l)&&(f=!0),h>7&&mo(e,t,7,c)&&(f=!0),h>8&&mo(e,t,8,u)&&(f=!0),h>9&&mo(e,t,9,d)&&(f=!0),f}(e,t,n,r,i,s,o,a,l,c,u,d);case 2:return function(e,t,n,r,i,s,o,a,l,c,u,d){let h=!1;const f=t.bindings,p=f.length;if(p>0&&yr(e,t,0,n)&&(h=!0),p>1&&yr(e,t,1,r)&&(h=!0),p>2&&yr(e,t,2,i)&&(h=!0),p>3&&yr(e,t,3,s)&&(h=!0),p>4&&yr(e,t,4,o)&&(h=!0),p>5&&yr(e,t,5,a)&&(h=!0),p>6&&yr(e,t,6,l)&&(h=!0),p>7&&yr(e,t,7,c)&&(h=!0),p>8&&yr(e,t,8,u)&&(h=!0),p>9&&yr(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;p>0&&(h+=To(n,f[0])),p>1&&(h+=To(r,f[1])),p>2&&(h+=To(i,f[2])),p>3&&(h+=To(s,f[3])),p>4&&(h+=To(o,f[4])),p>5&&(h+=To(a,f[5])),p>6&&(h+=To(l,f[6])),p>7&&(h+=To(c,f[7])),p>8&&(h+=To(u,f[8])),p>9&&(h+=To(d,f[9]));const g=or(e,t.nodeIndex).renderText;e.renderer.setValue(g,h)}return h}(e,t,n,r,i,s,o,a,l,c,u,d);case 16384:return function(e,t,n,r,i,s,o,a,l,c,u,d){const h=lr(e,t.nodeIndex),f=h.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&vr(e,t,0,n)&&(p=!0,g=Ui(e,h,t,0,n,g)),m>1&&vr(e,t,1,r)&&(p=!0,g=Ui(e,h,t,1,r,g)),m>2&&vr(e,t,2,i)&&(p=!0,g=Ui(e,h,t,2,i,g)),m>3&&vr(e,t,3,s)&&(p=!0,g=Ui(e,h,t,3,s,g)),m>4&&vr(e,t,4,o)&&(p=!0,g=Ui(e,h,t,4,o,g)),m>5&&vr(e,t,5,a)&&(p=!0,g=Ui(e,h,t,5,a,g)),m>6&&vr(e,t,6,l)&&(p=!0,g=Ui(e,h,t,6,l,g)),m>7&&vr(e,t,7,c)&&(p=!0,g=Ui(e,h,t,7,c,g)),m>8&&vr(e,t,8,u)&&(p=!0,g=Ui(e,h,t,8,u,g)),m>9&&vr(e,t,9,d)&&(p=!0,g=Ui(e,h,t,9,d,g)),g&&f.ngOnChanges(g),65536&t.flags&&sr(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),p}(e,t,n,r,i,s,o,a,l,c,u,d);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,l,c,u,d){const h=t.bindings;let f=!1;const p=h.length;if(p>0&&yr(e,t,0,n)&&(f=!0),p>1&&yr(e,t,1,r)&&(f=!0),p>2&&yr(e,t,2,i)&&(f=!0),p>3&&yr(e,t,3,s)&&(f=!0),p>4&&yr(e,t,4,o)&&(f=!0),p>5&&yr(e,t,5,a)&&(f=!0),p>6&&yr(e,t,6,l)&&(f=!0),p>7&&yr(e,t,7,c)&&(f=!0),p>8&&yr(e,t,8,u)&&(f=!0),p>9&&yr(e,t,9,d)&&(f=!0),f){const f=cr(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(h.length),p>0&&(g[0]=n),p>1&&(g[1]=r),p>2&&(g[2]=i),p>3&&(g[3]=s),p>4&&(g[4]=o),p>5&&(g[5]=a),p>6&&(g[6]=l),p>7&&(g[7]=c),p>8&&(g[8]=u),p>9&&(g[9]=d);break;case 64:g={},p>0&&(g[h[0].name]=n),p>1&&(g[h[1].name]=r),p>2&&(g[h[2].name]=i),p>3&&(g[h[3].name]=s),p>4&&(g[h[4].name]=o),p>5&&(g[h[5].name]=a),p>6&&(g[h[6].name]=l),p>7&&(g[h[7].name]=c),p>8&&(g[h[8].name]=u),p>9&&(g[h[9].name]=d);break;case 128:const e=n;switch(p){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,i);break;case 4:g=e.transform(r,i,s);break;case 5:g=e.transform(r,i,s,o);break;case 6:g=e.transform(r,i,s,o,a);break;case 7:g=e.transform(r,i,s,o,a,l);break;case 8:g=e.transform(r,i,s,o,a,l,c);break;case 9:g=e.transform(r,i,s,o,a,l,c,u);break;case 10:g=e.transform(r,i,s,o,a,l,c,u,d)}}f.value=g}return f}(e,t,n,r,i,s,o,a,l,c,u,d);default:throw"unreachable"}}(e,t,r,i,s,o,a,l,c,u,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i<n.length;i++)mo(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)yr(e,t,s,n[s])&&(i=!0);if(i){let i="";for(let e=0;e<n.length;e++)i+=To(n[e],r[e]);i=t.text.prefix+i;const s=or(e,t.nodeIndex).renderText;e.renderer.setValue(s,i)}return i}(e,t,n);case 16384:return function(e,t,n){const r=lr(e,t.nodeIndex),i=r.instance;let s=!1,o=void 0;for(let a=0;a<n.length;a++)vr(e,t,a,n[a])&&(s=!0,o=Ui(e,r,t,a,n[a],o));return o&&i.ngOnChanges(o),65536&t.flags&&sr(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)yr(e,t,s,n[s])&&(i=!0);if(i){const i=cr(e,t.nodeIndex);let s;switch(201347067&t.flags){case 32:s=n;break;case 64:s={};for(let i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:const e=n[0],t=n.slice(1);s=e.transform(...t)}i.value=s}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function zo(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=ar(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,Cr(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Bo(e,t,n,r,i,s,o,a,l,c,u,d,h){return 0===n?function(e,t,n,r,i,s,o,a,l,c,u,d){const h=t.bindings.length;h>0&&wr(e,t,0,n),h>1&&wr(e,t,1,r),h>2&&wr(e,t,2,i),h>3&&wr(e,t,3,s),h>4&&wr(e,t,4,o),h>5&&wr(e,t,5,a),h>6&&wr(e,t,6,l),h>7&&wr(e,t,7,c),h>8&&wr(e,t,8,u),h>9&&wr(e,t,9,d)}(e,t,r,i,s,o,a,l,c,u,d,h):function(e,t,n){for(let r=0;r<n.length;r++)wr(e,t,r,n[r])}(e,t,r),!1}function qo(e,t){if(ur(e,t.nodeIndex).dirty)throw tr(dr.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Ho(e){if(!(128&e.state)){if(Ko(e,Go.Destroy),Wo(e,Go.Destroy),Fi(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=Er(e);if(t){const n=t.template._projectedViews;n&&(X(n,n.indexOf(e)),dr.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(ar(e,n).renderElement):2&t.flags?e.renderer.destroyNode(or(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&ur(e,n).destroy()}}(e),Ar(e)&&e.renderer.destroy(),e.state|=128}}const Go=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function Wo(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?Xo(ar(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Ko(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=ar(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Xo(n[e],t)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Xo(e,t){const n=e.state;switch(t){case Go.CheckNoChanges:0==(128&n)&&(12==(12&n)?Lo(e):64&n&&Qo(e,Go.CheckNoChangesProjectedViews));break;case Go.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Lo(e):64&n&&Qo(e,t));break;case Go.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Uo(e):64&n&&Qo(e,Go.CheckAndUpdateProjectedViews));break;case Go.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Uo(e):64&n&&Qo(e,t));break;case Go.Destroy:Ho(e);break;case Go.CreateViewNodes:Vo(e)}}function Qo(e,t){Ko(e,t),Wo(e,t)}function Zo(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const i=e.def.nodes.length;for(let s=0;s<i;s++){const i=e.def.nodes[s];if(i.flags&t&&i.flags&n)switch(dr.setCurrentNode(e,i.nodeIndex),r){case 0:yo(e,i);break;case 1:qo(e,i)}i.childFlags&t&&i.childFlags&n||(s+=i.childCount)}}let Yo=!1;function Jo(e,t,n,r,i,s){const o=i.injector.get(In);return Ro(ta(e,i,o,t,n),r,s)}function ea(e,t,n,r,i,s){const o=i.injector.get(In),a=ta(e,i,new ja(o),t,n),l=da(r);return $a(ba.create,Ro,null,[a,l,s])}function ta(e,t,n,r,i){const s=t.injector.get(vt),o=t.injector.get(qe),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function na(e,t,n,r){const i=da(n);return $a(ba.create,jo,null,[e,t,i,r])}function ra(e,t,n,r){return n=aa.get(t.element.componentProvider.provider.token)||da(n),$a(ba.create,Po,null,[e,t,n,r])}function ia(e,t,n,r){return bi(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===sa.size||(e.providers.forEach(e=>{const r=sa.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{oa.forEach((r,i)=>{x(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const i=sa.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=$r(i.deps),r.value=i.value)}if(oa.size>0){let t=new Set(e.modules);oa.forEach((r,i)=>{if(t.has(x(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:$r(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[pr(i)]=t}})}}(e=e.factory(()=>hr)),e):e}(r))}const sa=new Map,oa=new Map,aa=new Map;function la(e){let t;sa.set(e.token,e),"function"==typeof e.token&&(t=x(e.token))&&"function"==typeof t.providedIn&&oa.set(e.token,e)}function ca(e,t){const n=Rr(t.viewDefFactory),r=Rr(n.nodes[0].element.componentView);aa.set(e,r)}function ua(){sa.clear(),oa.clear(),aa.clear()}function da(e){if(0===sa.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&sa.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>hr);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=sa.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=$r(n.deps),e.value=n.value)}}}}function ha(e,t,n,r,i,s,o,a,l,c,u,d,h){const f=e.def.nodes[t];return Fo(e,f,n,r,i,s,o,a,l,c,u,d,h),224&f.flags?cr(e,t).value:void 0}function fa(e,t,n,r,i,s,o,a,l,c,u,d,h){const f=e.def.nodes[t];return Bo(e,f,n,r,i,s,o,a,l,c,u,d,h),224&f.flags?cr(e,t).value:void 0}function pa(e){return $a(ba.detectChanges,Uo,null,[e])}function ga(e){return $a(ba.checkNoChanges,Lo,null,[e])}function ma(e){return $a(ba.destroy,Ho,null,[e])}const ba=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let va,ya,wa;function _a(e,t){ya=e,wa=t}function Ca(e,t,n,r){return _a(e,t),$a(ba.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Sa(e,t){if(128&e.state)throw rr(ba[va]);return _a(e,Aa(e,0)),e.def.updateDirectives((function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?xa(e,s,r,i):ka(e,s,r,i),16384&s.flags&&_a(e,Aa(e,n)),224&s.flags?cr(e,s.nodeIndex).value:void 0}),e)}function Ea(e,t){if(128&e.state)throw rr(ba[va]);return _a(e,Oa(e,0)),e.def.updateRenderer((function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?xa(e,s,r,i):ka(e,s,r,i),3&s.flags&&_a(e,Oa(e,n)),224&s.flags?cr(e,s.nodeIndex).value:void 0}),e)}function xa(e,t,n,r){if(Fo(e,t,n,...r)){const s=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],o=s[e];8&r.flags&&(n[(i=r.nonMinifiedName,"ng-reflect-"+i.replace(/[$@]/g,"_").replace(Ct,(...e)=>"-"+e[1].toLowerCase()))]=St(o))}const r=t.parent,o=ar(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(o,t,r):e.renderer.removeAttribute(o,t)}else e.renderer.setValue(o,"bindings="+JSON.stringify(n,null,2))}}var i}function ka(e,t,n,r){Bo(e,t,n,...r)}function Aa(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Oa(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class Ta{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=xr(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return ar(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return hi(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){Ia(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&Ia(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!Ar(e);)e=e.parent;return e.parent?ar(e.parent,xr(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?kr(this.view,this.nodeDef):kr(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let s=-1;n.factory(()=>(s++,s===i?e.error.bind(e,...t):hr)),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Ia(e,t,n){for(let r in t.references)n[r]=_o(e,t,t.references[r])}function $a(e,t,n,r){const i=va,s=ya,o=wa;try{va=e;const a=t.apply(n,r);return ya=s,wa=o,va=i,a}catch(a){if(Fe(a)||!ya)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),nr(e,t),e}(a,Na())}}function Na(){return ya?new Ta(ya,wa):null}class ja{constructor(e){this.delegate=e}createRenderer(e,t){return new Ra(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Ra{constructor(e){this.delegate=e,this.debugContextFactory=Na,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=no(e);!function(e){to.delete(e.nativeNode)}(t),t instanceof Js&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new eo(n,null,r);t.name=e,ro(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&ro(new Js(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&ro(new Js(t,null,n)),t}appendChild(e,t){const n=no(e),r=no(t);n&&r&&n instanceof eo&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=no(e),i=no(t),s=no(n);r&&i&&r instanceof eo&&r.insertBefore(s,i),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=no(e),r=no(t);n&&r&&n instanceof eo&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Na();return r&&ro(new eo(n,null,r)),n}setAttribute(e,t,n,r){const i=no(e);i&&i instanceof eo&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=no(e);r&&r instanceof eo&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=no(e);n&&n instanceof eo&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=no(e);n&&n instanceof eo&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const i=no(e);i&&i instanceof eo&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=no(e);r&&r instanceof eo&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=no(e);r&&r instanceof eo&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=no(e);r&&r.listeners.push(new Ys(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Pa(e,t,n){return new Da(e,t,n)}class Da extends W{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(Yo)return;Yo=!0;const e=We()?{setCurrentNode:_a,createRootView:ea,createEmbeddedView:na,createComponentView:ra,createNgModuleRef:ia,overrideProvider:la,overrideComponentView:ca,clearOverrides:ua,checkAndUpdateView:pa,checkNoChangesView:ga,destroyView:ma,createDebugContext:(e,t)=>new Ta(e,t),handleEvent:Ca,updateDirectives:Sa,updateRenderer:Ea}:{setCurrentNode:()=>{},createRootView:Jo,createEmbeddedView:jo,createComponentView:Po,createNgModuleRef:bi,overrideProvider:hr,overrideComponentView:hr,clearOverrides:hr,checkAndUpdateView:Uo,checkNoChangesView:Lo,destroyView:Ho,createDebugContext:(e,t)=>new Ta(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?ha:fa,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?ha:fa,e)};dr.setCurrentNode=e.setCurrentNode,dr.createRootView=e.createRootView,dr.createEmbeddedView=e.createEmbeddedView,dr.createComponentView=e.createComponentView,dr.createNgModuleRef=e.createNgModuleRef,dr.overrideProvider=e.overrideProvider,dr.overrideComponentView=e.overrideComponentView,dr.clearOverrides=e.clearOverrides,dr.checkAndUpdateView=e.checkAndUpdateView,dr.checkNoChangesView=e.checkNoChangesView,dr.destroyView=e.destroyView,dr.resolveDep=Vi,dr.createDebugContext=e.createDebugContext,dr.handleEvent=e.handleEvent,dr.updateDirectives=e.updateDirectives,dr.updateRenderer=e.updateRenderer,dr.dirtyParentQueries=vo}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(Rr(this._ngModuleDefFactory));return dr.createNgModuleRef(this.moduleType,e||qt.NULL,this._bootstrapComponents,t)}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},B4Jq:function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",(function(){return o})),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",(function(){return s})),n.d(t,"blockHardwareBackButton",(function(){return r})),n.d(t,"startHardwareBackButton",(function(){return i}));const r=()=>{document.addEventListener("backbutton",()=>{})},i=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,r=[];const i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){r.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(i);const s=()=>{if(r.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};r.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,r=r.filter(t=>t.id!==e.id),(async e=>{try{if(e&&e.handler){const t=e.handler(s);null!=t&&await t}}catch(t){console.error(t)}})(e).then(()=>t=!1)}};s()})},s=100,o=99},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),i=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>{const i=e[o.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(c.a)(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new s.a;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[l.a](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}n.d(t,"a",(function(){return d}))},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},"E/Mt":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return _}));var r=n("wEJo");const i=e=>o(e),s=(e,t)=>("string"==typeof e&&(t=e,e=void 0),i(e).includes(t)),o=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=a(e),t.forEach(t=>e.document.documentElement.classList.add("plt-"+t))),t},a=e=>Object.keys(m).filter(t=>m[t](e)),l=e=>!!p(e,/iPad/i)||!(!p(e,/Macintosh/i)||!u(e)),c=e=>p(e,/android|sink/i),u=e=>g(e,"(any-pointer:coarse)"),d=e=>h(e)||f(e),h=e=>!!(e.cordova||e.phonegap||e.PhoneGap),f=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},p=(e,t)=>t.test(e.navigator.userAgent),g=(e,t)=>e.matchMedia(t).matches,m={ipad:l,iphone:e=>p(e,/iPhone/i),ios:e=>p(e,/iPhone|iPod/i)||l(e),android:c,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),i=Math.max(t,n);return r>390&&r<520&&i>620&&i<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),i=Math.max(t,n);return l(e)||(e=>c(e)&&!p(e,/mobile/i))(e)||r>460&&r<820&&i>780&&i<1400},cordova:h,capacitor:f,electron:e=>p(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:u,mobileweb:e=>u(e)&&!d(e),desktop:e=>!u(e),hybrid:d};class b{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const v=new b;let y;const w=e=>e&&Object(r.i)(e)||y,_=(e={})=>{if("undefined"==typeof window)return;const t=window.document,n=window,i=n.Ionic=n.Ionic||{};o(n);const a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(t){return{}}})(n)),{persistConfig:!1}),i.config),(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>"ionic:"===e.substr(0,"ionic:".length)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(n)),e);v.reset(a),v.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}})(n,a),i.config=v,i.mode=y=v.get("mode",t.documentElement.getAttribute("mode")||(s(n,"ios")?"ios":"md")),v.set("mode",y),t.documentElement.setAttribute("mode",y),t.documentElement.classList.add(y),v.getBoolean("_testing")&&v.set("animated",!1);const l=e=>e.tagName&&e.tagName.startsWith("ION-"),c=e=>["ios","md"].includes(e);Object(r.p)(e=>{for(;e;){const t=e.mode||e.getAttribute("mode");if(t){if(c(t))return t;l(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return y})}},F6QC:function(e,t,n){"use strict";const r={NL:{"Page.Control":"Lichten","Page.Temperature":"Temperatuur","Temperature.Asking":"Gevraagd","Temperature.Off":"Uit","Page.Moods":"Sferen","Page.Stores":"Rolluiken","Page.Media":"Media","Media.Off":"Uit","Page.Config":"Configureer","Config.Masters":"Masters","Config.Master":"Master","Config.Week":"Week","Config.Holiday":"Vakantie","Config.NoScheduleSelected":"Geen plan geselecteerd","Config.GetAudioRooms":"Lees Audio Rooms","Config.Scenes":"Scenes","Config.Scenes.scene":"Scene","Config.Scenes.newscene":"Nieuwe Scene","Config.Scenes.group":"Groep","Config.Scenes.for":"Instellingen van","Config.Scenes.triggeredBy":"Opgeroepen door","Config.Scenes.trigger":"Trigger","Config.Scenes.selectTriggerFor":"Trigger voor","Config.Scenes.name":"Naam Schene","Config.Scene.SureDelete":"Bent U zeker dat u deze scene wil verwijderen: ","Config.Scene.Delete":"Scene verwijderen","scene.trigger.off":"Uit","scene.trigger.on":"Aan","scene.trigger.long":"Lang","Config.Units":"Units","Config.Groups":"Groepen","Config.Group":"Groep","Config.NewGroup":"Nieuwe Group","Config.GroupsAll":"Alle groepen","Config.DeleteGroup":"Groep verwijderen","Config.SureDeleteGroup":"Bent U zeker dat U deze groep wil verwijderen: ","Config.General":"Algemeen","Config.Settings":"Instellingen","Config.Language":"Taal","Config.SeparateStores":"Rolluiken apart","Config.MultipleGroups":"Meerdere groepen","Config.Sound":"Geluid","Config.Advanced":"Geavanceerde instellingen","Config.Communication":"Communicatie","Config.EnableAdv":"Geavanceerde instellingen aanzetten","Config.EnterPW":"Geef het wachtwoord","Config.LoadAudio":"Haal op","Config.setTime":"Zet de tijd","Config.Backup":"Backup / Restore","Config.Backup.scenes":"Scene definities","Config.Backup.config":"Backup instellingen","Config.Backup.get":"Haal backup op","Config.Backup.restore":"Ontvangen","Config.Backup.send":"Verstuur","Config.Backup.fetch":"Haal op","Config.Backup.replace":"Vervang","Config.Backup.name":"Naam","Config.Backup.replaceAll":"Bent U zeker dat U alle instellingen wil vervangen door de laatste backup?","Config.Backup.replaceSettings":"Vervangen instellingen","Config.Backup.overwriteAll":"Bent U zeker dat U de laatste backup wil vervangen door uw huidige configuaratie?","Config.Backup.overwrite":"Vervangen backup","Node.of":"Units van","General.Done":"Klaar","General.Save":"Bewaar","General.Cancel":"Annuleer","General.Delete":"Verwijder","General.Yes":"Ja","General.No":"Neen"},FR:{"Page.Control":"Lumi\xe8res","Page.Temperature":"Temp\xe9rature","Temperature.Asking":"Demand\xe9","Temperature.Off":"D\xe9sactiv\xe9","Page.Moods":"Atmosph\xe8res","Page.Stores":"Stores","Page.Media":"Media","Media.Off":"Off","Page.Config":"Configurer","Config.Masters":"Masters","Config.Master":"Master","Config.Week":"Semaine","Config.Holiday":"Vacances","Config.NoScheduleSelected":"Aucun plan s\xe9lectionn\xe9","Config.GetAudioRooms":"Lire Audio Rooms","Config.setTime":"R\xe9gler l'heure","Config.Scenes":"Sc\xe8nes","Config.Scenes.scene":"Sc\xe8ne","Config.Scenes.newscene":"Nouvelle Sc\xe8ne","Config.Scenes.for":"Configuration pour","Config.Scenes.group":"Group","Config.Scenes.triggeredBy":"Appell\xe9 par","Config.Scenes.trigger":"Trigger","Config.Scenes.selectTriggerFor":"Trigger pour","Config.Scenes.name":"Nom Sc\xe8ne","Config.Scene.Delete":"Supprimer sc\xe8ne","Config.Scene.SureDelete":"\xcates-vous s\xfbr de vouloir supprimer la sc\xe8ne: ","scene.trigger.off":"Off","scene.trigger.on":"On","scene.trigger.long":"Longue","Config.Units":"Unit\xe9","Config.Groups":"Groupes","Config.Group":"Groupe","Config.NewGroup":"Nouveau Groupe","Config.GroupsAll":"Tous les groupes","Config.DeleteGroup":"Suprimer groupe","Config.SureDeleteGroup":"\xcates-vous s\xfbr de vouloir supprimer le groupe:","Config.General":"G\xe9n\xe9ral","Config.Settings":"Param\xe8tres","Config.Language":"Langue","Config.SeparateStores":"Stores s\xe9par\xe9s","Config.MultipleGroups":"Plusiers groups","Config.Sound":"Son","Config.Advanced":"Param\xe8tres avanc\xe9s","Config.Communication":"Communication","Config.EnableAdv":"Activer les param\xe8tres avanc\xe9s","Config.EnterPW":"Entrez le mot de passe de d\xe9verrouillage","Config.LoadAudio":"Request","Config.Backup":"Backup / Restore","Config.Backup.scenes":"Definitions sc\xe8nes","Config.Backup.config":"Sauvegarder config","Config.Backup.get":"Request config","Config.Backup.restore":"Re\xe7u","Config.Backup.send":"Envoyer","Config.Backup.fetch":"Recevoir","Config.Backup.replace":"Remplacer","Config.Backup.name":"Nom","Config.Backup.replaceAll":"\xcates-vous s\xfbr de vouloir remplacer tous vos param\xe8tres par la derni\xe8re sauvegarde","Config.Backup.replaceSettings":"Remplacer","Config.Backup.overwriteAll":"\xcates-vous s\xfbr de vouloir remplacer le derniere sauvegarde avec vos param\xe8tres actuelles?","Config.Backup.overwrite":"Remplacer","Node.of":"Unit\xe9s de","General.Done":"OK","General.Save":"Sauver","General.Cancel":"Annuller","General.Delete":"Suprimer","General.Yes":"Oui","General.No":"Non"},EN:{"Page.Control":"Lights","Page.Temperature":"Temperature","Temperature.Asking":"Asking","Temperature.Off":"Off","Page.Moods":"Scenes","Page.Stores":"Blinds","Page.Media":"Media","Media.Off":"Off","Page.Config":"Configure","Config.Masters":"Masters","Config.Master":"Master","Config.Week":"Week","Config.Holiday":"Holiday","Config.NoScheduleSelected":"No schedule selected","Config.GetAudioRooms":"Get Audio Rooms","Config.Groups":"Groups","Config.Group":"Group","Config.NewGroup":"New Group","Config.GroupsAll":"All groups","Config.DeleteGroup":"Delete group","Config.SureDeleteGroup":"Are you sure you want to delete the group: ","Config.Scenes":"Scenes","Config.Scenes.scene":"Scene","Config.Scenes.newscene":"New Scene","Config.Scenes.for":"Settings for","Config.Scenes.group":"Group","Config.Scenes.triggeredBy":"Called by","Config.Scenes.trigger":"Trigger","Config.Scenes.selectTriggerFor":"Trigger for","Config.Scenes.name":"Scene name","Config.Scene.Delete":"Delete scene","Config.Scene.SureDelete":"Are you sure you want to delete the scene: ","scene.trigger.off":"Off","scene.trigger.on":"On","scene.trigger.long":"Long","Config.Units":"Units","Config.General":"General","Config.Settings":"Settings","Config.Language":"Language","Config.SeparateStores":"Blinds separate","Config.MultipleGroups":"Multiple groups","Config.Sound":"Sound","Config.Advanced":"Advanced Settings","Config.Communication":"Communication","Config.EnableAdv":"Enable Advanced Settings","Config.EnterPW":"Enter unlock password","Config.LoadAudio":"Load","Config.setTime":"Set the time","Config.Backup":"Backup / Restore","Config.Backup.scenes":"Scene definitions","Config.Backup.config":"Backup config","Config.Backup.get":"Request config","Config.Backup.restore":"Received","Config.Backup.send":"Send","Config.Backup.fetch":"Fetch","Config.Backup.replace":"Replace","Config.Backup.name":"Name","Config.Backup.replaceAll":"Are you sure you want to replace all your settings with the last backup","Config.Backup.replaceSettings":"Replace settings","Config.Backup.overwriteAll":"Are you sure you want to replace your latest backup with the current settings?","Config.Backup.overwrite":"Replace backup","Node.of":"Units of","General.Done":"Done","General.Save":"Save","General.Cancel":"Cancel","General.Delete":"Delete","General.Yes":"Yes","General.No":"No"}};n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));let i=(()=>{class e{constructor(){}transform(e){return s(e)}}return e.language="EN",e})();function s(e){if(!e)return"[** empty **]";const t=i.language;if("XX"===t)return"["+e+"]";if(void 0===r[t])return"[** no-"+t+": "+e+" **]";const n=r[t][e];return void 0===n?"[** no-trn: "+e+" **]":n}},HDdC:function(e,t,n){"use strict";var r=n("7o/Q"),i=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");n.d(t,"a",(function(){return c}));let c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:o}=this,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(s.a)}(e,t,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return i}));const i=r()},MKJQ:function(e,t,n){"use strict";n.d(t,"D",(function(){return a})),n.d(t,"kb",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"H",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"I",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"J",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"K",(function(){return m})),n.d(t,"e",(function(){return b})),n.d(t,"L",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"M",(function(){return w})),n.d(t,"g",(function(){return _})),n.d(t,"N",(function(){return C})),n.d(t,"h",(function(){return S})),n.d(t,"O",(function(){return E})),n.d(t,"i",(function(){return x})),n.d(t,"P",(function(){return k})),n.d(t,"j",(function(){return A})),n.d(t,"S",(function(){return O})),n.d(t,"k",(function(){return T})),n.d(t,"Q",(function(){return I})),n.d(t,"l",(function(){return $})),n.d(t,"R",(function(){return N})),n.d(t,"m",(function(){return j})),n.d(t,"T",(function(){return R})),n.d(t,"n",(function(){return P})),n.d(t,"V",(function(){return D})),n.d(t,"o",(function(){return M})),n.d(t,"U",(function(){return V})),n.d(t,"p",(function(){return L})),n.d(t,"X",(function(){return U})),n.d(t,"q",(function(){return F})),n.d(t,"W",(function(){return z})),n.d(t,"r",(function(){return B})),n.d(t,"Z",(function(){return q})),n.d(t,"s",(function(){return H})),n.d(t,"Y",(function(){return G})),n.d(t,"t",(function(){return W})),n.d(t,"ab",(function(){return K})),n.d(t,"u",(function(){return X})),n.d(t,"cb",(function(){return Q})),n.d(t,"v",(function(){return Z})),n.d(t,"bb",(function(){return Y})),n.d(t,"w",(function(){return J})),n.d(t,"eb",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"db",(function(){return ne})),n.d(t,"y",(function(){return re})),n.d(t,"gb",(function(){return ie})),n.d(t,"z",(function(){return se})),n.d(t,"fb",(function(){return oe})),n.d(t,"A",(function(){return ae})),n.d(t,"hb",(function(){return le})),n.d(t,"B",(function(){return ce})),n.d(t,"ib",(function(){return ue})),n.d(t,"C",(function(){return de})),n.d(t,"jb",(function(){return he})),n.d(t,"E",(function(){return fe})),n.d(t,"lb",(function(){return pe})),n.d(t,"F",(function(){return ge})),n.d(t,"mb",(function(){return me})),n.d(t,"G",(function(){return be})),n.d(t,"nb",(function(){return ve}));var r=n("8Y7J"),i=n("sZkV"),s=n("SVse"),o=n("iInd"),a=r.nb({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"],data:{}});function l(e){return r.Kb(0,[r.Gb(671088640,1,{outlet:0}),r.Ab(null,0),(e()(),r.pb(2,0,null,null,2,"div",[["class","tabs-inner"]],null,null,null,null,null)),(e()(),r.pb(3,16777216,[["outlet",1]],null,1,"ion-router-outlet",[["tabs","true"]],null,[[null,"stackEvents"]],(function(e,t,n){var r=!0;return"stackEvents"===t&&(r=!1!==e.component.onPageSelected(n)&&r),r}),null,null)),r.ob(4,212992,[[1,4]],0,i.eb,[o.b,r.M,r.j,[8,null],[8,"true"],i.d,i.Eb,s.f,r.k,o.m,r.x,o.a,[3,i.eb]],null,{stackEvents:"stackEvents"}),r.Ab(null,1)],(function(e,t){e(t,4,0)}),null)}var c=r.nb({encapsulation:2,styles:[],data:{}});function u(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var d=r.nb({encapsulation:2,styles:[],data:{}});function h(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var f=r.nb({encapsulation:2,styles:[],data:{}});function p(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var g=r.nb({encapsulation:2,styles:[],data:{}});function m(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var b=r.nb({encapsulation:2,styles:[],data:{}});function v(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var y=r.nb({encapsulation:2,styles:[],data:{}});function w(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var _=r.nb({encapsulation:2,styles:[],data:{}});function C(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var S=r.nb({encapsulation:2,styles:[],data:{}});function E(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var x=r.nb({encapsulation:2,styles:[],data:{}});function k(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var A=r.nb({encapsulation:2,styles:[],data:{}});function O(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var T=r.nb({encapsulation:2,styles:[],data:{}});function I(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var $=r.nb({encapsulation:2,styles:[],data:{}});function N(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var j=r.nb({encapsulation:2,styles:[],data:{}});function R(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var P=r.nb({encapsulation:2,styles:[],data:{}});function D(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var M=r.nb({encapsulation:2,styles:[],data:{}});function V(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var L=r.nb({encapsulation:2,styles:[],data:{}});function U(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var F=r.nb({encapsulation:2,styles:[],data:{}});function z(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var B=r.nb({encapsulation:2,styles:[],data:{}});function q(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var H=r.nb({encapsulation:2,styles:[],data:{}});function G(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var W=r.nb({encapsulation:2,styles:[],data:{}});function K(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var X=r.nb({encapsulation:2,styles:[],data:{}});function Q(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var Z=r.nb({encapsulation:2,styles:[],data:{}});function Y(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var J=r.nb({encapsulation:2,styles:[],data:{}});function ee(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var te=r.nb({encapsulation:2,styles:[],data:{}});function ne(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var re=r.nb({encapsulation:2,styles:[],data:{}});function ie(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var se=r.nb({encapsulation:2,styles:[],data:{}});function oe(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var ae=r.nb({encapsulation:2,styles:[],data:{}});function le(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var ce=r.nb({encapsulation:2,styles:[],data:{}});function ue(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var de=r.nb({encapsulation:2,styles:[],data:{}});function he(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var fe=r.nb({encapsulation:2,styles:[],data:{}});function pe(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var ge=r.nb({encapsulation:2,styles:[],data:{}});function me(e){return r.Kb(2,[r.Ab(null,0)],null,null)}var be=r.nb({encapsulation:2,styles:[],data:{}});function ve(e){return r.Kb(2,[r.Ab(null,0)],null,null)}},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",(function(){return r}))},RQGG:function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",(function(){return s}));var r=n("meiF"),i=n("k4ps");n("1vRN"),n("wEJo");const s=(e,t)=>{const n="back"===t.direction,s=t.enteringEl,o=t.leavingEl,a=Object(i.g)(s),l=a.querySelector("ion-toolbar"),c=Object(r.a)();if(c.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):c.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){const e=Object(r.a)();e.addElement(l),c.addAnimation(e)}if(o&&n){c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=Object(r.a)();e.addElement(Object(i.g)(o)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),c.addAnimation(e)}return c}},RjOq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("8Y7J");let i=(()=>{class e{constructor(){try{this.clickSound=new Audio("data:audio/mpeg;base64,//sQxAAAA+i5OrQRABC9mG+3BCAACCAH/f//yE5z0Od/yf//ITnO853/O9CEIygAgEPg+8AAUWCwVioVCAEBgAAD/65xat0KnkqrfOEKkxfjOI6H//Ofpf/q8jZTBgc8uM4jcsMMMMH/+xLEAgAE6M1XGCKAAAAANIOAAAQIAADL6BfAW9DeJCI78xlb/EWEVL/6REV//0Uw0SMb//AY4ypMQU1FMy45OS4zqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=")}catch(e){console.log(e)}this.clickSound||console.log("could not create click sound")}enable(e){this.enabled=e}playClick(){this.clickSound&&this.enabled&&this.clickSound.play().then()}}return e.ngInjectableDef=r.Ob({factory:function(){return new e},token:e,providedIn:"root"}),e})()},SVse:function(e,t,n){"use strict";n.d(t,"t",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"u",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return S})),n.d(t,"j",(function(){return x})),n.d(t,"c",(function(){return T})),n.d(t,"s",(function(){return I})),n.d(t,"p",(function(){return $})),n.d(t,"o",(function(){return N})),n.d(t,"r",(function(){return y})),n.d(t,"q",(function(){return v})),n.d(t,"n",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"m",(function(){return d})),n.d(t,"f",(function(){return l}));var r=n("8Y7J");class i{}const s=new r.o("Location Initialized");class o{}const a=new r.o("appBaseHref");class l{constructor(e,t){this._subject=new r.m,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=l.stripTrailingSlash(c(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+l.normalizeQueryParams(t))}normalize(e){return l.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function c(e){return e.replace(/\/index.html$/,"")}class u extends o{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=l.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class d extends o{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return l.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const h=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),f=r.rb,p=new r.o("UseV4Plurals");class g{}class m extends g{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):f(t||this.locale)(e)){case h.Zero:return"zero";case h.One:return"one";case h.Two:return"two";case h.Few:return"few";case h.Many:return"many";default:return"other"}}}function b(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}class v{}class y{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.ub)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.Hb)(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let w=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class _ extends w{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class C{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class S{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.T)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new C(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new E(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new E(e,i);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class E{constructor(e,t){this.record=e,this.view=t}}class x{constructor(e,t){this._viewContainer=e,this._context=new k,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){A("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){A("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}class k{constructor(){this.$implicit=null,this.ngIf=null}}function A(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.Hb)(t)}'.`)}class O{}const T=new r.o("DocumentToken"),I="browser";function $(e){return"server"===e}let N=(()=>{class e{}return e.ngInjectableDef=Object(r.Ob)({token:e,providedIn:"root",factory:()=>new j(Object(r.Pb)(T),window,Object(r.Pb)(r.l))}),e})();class j{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}},SeVD:function(e,t,n){"use strict";var r=n("ngJS"),i=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");n.d(t,"a",(function(){return u}));const u=e=>{if(e&&"function"==typeof e[o.a])return u=e,e=>{const t=u[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(c.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,u}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},TGma:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{transform(e){if(null==e)return"-";if("string"==typeof e&&(e=parseInt(e)),e>1100||e<0)return"-";let t=Math.floor(Math.abs(e/10))*(e<0?-1:1);return`${t},${Math.round(Math.abs(e)-10*Math.abs(t))}`}}},XNiG:function(e,t,n){"use strict";var r=n("HDdC"),i=n("7o/Q"),s=n("quSY"),o=n("9ppp");class a extends s.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}var l=n("2QA8");n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));class c extends i.a{constructor(e){super(e),this.destination=e}}let u=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new o.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new a(this,e))}asObservable(){const e=new r.a;return e.source=this,e}}return e.create=(e,t)=>new d(e,t),e})();class d extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},Y5s9:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"m",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"o",(function(){return g})),n.d(t,"l",(function(){return m})),n.d(t,"k",(function(){return b}));var r=function(e){return e[e.kNoNode=0]="kNoNode",e[e.kStandardNode=1]="kStandardNode",e[e.kGatewayNode=4]="kGatewayNode",e[e.kModemNode=8]="kModemNode",e[e.kGUINode=32]="kGUINode",e}({}),i=function(e){return e[e.kNoType=0]="kNoType",e[e.kDimmer=1]="kDimmer",e[e.kSwitch=2]="kSwitch",e[e.kInput=3]="kInput",e[e.kTemperature=4]="kTemperature",e[e.kExtendedAudio=5]="kExtendedAudio",e[e.kMood=7]="kMood",e[e.kSwitchingMotor=8]="kSwitchingMotor",e[e.kAudio=10]="kAudio",e[e.kAV=11]="kAV",e[e.kIRTX=12]="kIRTX",e[e.kVideo=14]="kVideo",e}({}),s=function(e){return e[e.kNoType=0]="kNoType",e[e.kDimmer=1]="kDimmer",e[e.kSwitch=2]="kSwitch",e[e.kInput=3]="kInput",e[e.kTemperature=4]="kTemperature",e[e.kExtendedAudio=5]="kExtendedAudio",e[e.kMood=7]="kMood",e[e.kSwitchingMotor=8]="kSwitchingMotor",e[e.kAudio=10]="kAudio",e[e.kAV=11]="kAV",e[e.kIRTX=12]="kIRTX",e[e.kVideo=14]="kVideo",e[e.kLightbulb=101]="kLightbulb",e[e.kCondition=102]="kCondition",e[e.kGarageDoor=201]="kGarageDoor",e[e.kDoor=202]="kDoor",e[e.kLock=203]="kLock",e[e.kUnlocker=204]="kUnlocker",e}({}),o=function(e){return e[e.audio=0]="audio",e[e.audiovideo=1]="audiovideo",e[e.video=2]="video",e}({}),a=function(e){return e[e.Basic=0]="Basic",e[e.LF50=1]="LF50",e[e.LF48=2]="LF48",e[e.LFV35=3]="LFV35",e}({});function l(e){return Math.max(a.Basic,Math.min(e,a.LFV35))}const c=[[{id:0,nr:0,name:"Src 1"},{id:1,nr:1,name:"Src 2"},{id:2,nr:2,name:"Src 3"},{id:3,nr:3,name:"Src 4"},{id:4,nr:4,name:"Src 5"},{id:5,nr:5,name:"Src 6"},{id:6,nr:6,name:"Src 7"},{id:7,nr:7,name:"Src 8"}],[{id:0,nr:0,name:"FM"},{id:1,nr:1,name:"DVD"},{id:2,nr:2,name:"Video 1"},{id:3,nr:3,name:"Tape"},{id:4,nr:4,name:"Aux"},{id:5,nr:5,name:"Video 2"}],[{id:0,nr:0,name:"FM"},{id:1,nr:1,name:"DVD"},{id:2,nr:2,name:"Aux"},{id:3,nr:3,name:"TV"},{id:4,nr:4,name:"Video"},{id:5,nr:5,name:"Cbl/Sat"},{id:6,nr:6,name:"Local"},{id:7,nr:7,name:"Stored"}],[{id:0,nr:0,name:"AM/FM"},{id:1,nr:1,name:"HDMI 1"},{id:2,nr:2,name:"HDMI 2"},{id:3,nr:3,name:"HDMI 3"},{id:4,nr:4,name:"In 1"},{id:5,nr:5,name:"In 2"},{id:6,nr:6,name:"iPod"},{id:7,nr:7,name:"Local"}]],u={name:"New Scene",trigger:Object.assign({},{masterAddress:"0.0.0.0",masterPort:5001,name:"unit",logicalAddress:0,logicalNodeAddress:0,type:0},{value:!0}),order:0,group:0,units:[]},d={name:"New Group",id:0,order:0,visible:!0};var h=function(e){return e[e.writeFatal=-1]="writeFatal",e[e.writeError=0]="writeError",e[e.writeOK=1]="writeOK",e}({});function f(e,t){return e?e.toLowerCase().replace(/\ /g,""):t||""}const p={masterConfig:function(e){return e||(e={}),e.name=e.name||"IP Master",e.address=e.address||"",e.port=e.port||0,"string"==typeof e.port&&(e.port=parseInt(e.port)),e.password=e.password||"",e.debug=e.debug||!1,void 0===e.active&&(e.active=!0),e.active=!!e.active,e.nodenames=e.nodenames||{},e},system:function(e){return e||(e={}),e.language=e.language||"EN",e.backupname=f(e.backupname,"default"),e.stores=e.stores||!1,e.multiple=e.multiple||!1,e.showscenes=e.showscenes||!1,e.lockmasters=e.lockmasters||!1,e.socketserver=e.socketserver||"gateway.duotecno.be",e.socketport=e.socketport||9999,e.cmasters=e.cmasters||[],delete e.cnodes,e.cunits=e.cunits||[],e.cunits.forEach(e=>this.unitDef(e)),"akiworks.be"==e.socketserver&&(e.socketserver="gateway.duotecno.be"),"gateway.duotecno.com"==e.socketserver&&(e.socketserver="gateway.duotecno.be"),void 0!==e.cgroups&&(e.cgroups=e.cgroups||["Home"]),void 0===e.sound&&(e.sound=!0),e},group:function(e){return e?(e.name=e.name||d.name,"string"==typeof e.id&&(e.id=parseInt(e.id)),e.id=e.id||d.id,"string"==typeof e.order&&(e.order=parseInt(e.order)),e.order=e.order||d.order,e.visible="boolean"==typeof e.visible?e.visible:d.visible,e):Object.assign({},d)},groups:function(e){return e?(e.forEach(e=>this.group(e)),e):[this.group()]},audio:function(e){return e||[]},nodeConfig:function(e){return e||(e={}),e.active=e.active||"N",e.masterAddress=e.masterAddress||"",e.masterPort=e.masterPort||5001,e.logicalAddress=e.logicalAddress||0,e},unitConfig:function(e){return e||(e={}),this.unitDef(e),e.active=e.active||"N","string"==typeof e.group&&(e.group=parseInt(e.group)),e.group=e.group||-1,e},unitScene:function(e){return e||(e={}),this.unitDef(e),void 0===e.value&&(e.value=0),"string"==typeof e.value&&(e.value=parseInt(e.value)),{logicalNodeAddress:e.logicalNodeAddress,logicalAddress:e.logicalAddress,masterAddress:e.masterAddress,masterPort:e.masterPort,value:e.value,name:e.name,type:e.type}},unitInfo:function(e,t){return e.name=e.name||"",e.logicalReqNodeAddress=e.logicalReqNodeAddress||0,e.index=e.index||-1,e.logicalNodeAddress=e.logicalNodeAddress||0,e.logicalAddress=e.logicalAddress||0,e.type=e.type||i.kNoType,e.flags=e.flags||0,t&&Object.keys(e).forEach(n=>t[n]=e[n]),e},sceneConfig:function(e){if(!e)return Object.assign({},u);const t=Object.assign({},u);return t.name=e.name||u.name,"string"==typeof e.order&&(t.order=parseInt(e.order)),t.order=e.order||u.order,"string"==typeof e.group&&(e.group=parseInt(e.group)),t.group=e.group||-1,t.trigger=this.unitScene(e.trigger),e.units=e.units||u.units,t.units=e.units.map(e=>this.unitScene(e)),t},scenes:function(e){return e?(e.forEach(e=>this.sceneConfig(e)),e):[]},nodeInfo:function(e,t){return e.name=e.name||"",e.index=e.index||-1,e.logicalAddress=e.logicalAddress||0,e.physicalAddress=e.physicalAddress||0,e.type=e.type||r.kNoNode,e.flags=e.flags||0,e.nrUnits=e.nrUnits||0,t&&Object.keys(e).forEach(n=>t[n]=e[n]),e},unitDef:function(e){return e.name=e.name||"",e.logicalNodeAddress=e.logicalNodeAddress||0,e.logicalAddress=e.logicalAddress||0,e.masterAddress=e.masterAddress||"",e.masterPort=e.masterPort||5001,e.type=e.type||i.kNoType,e}};function g(e){return e<10?"0"+e:e.toString()}function m(e){return"0x"+(e=Math.floor(e)).toString(16)}function b(e){return g(e.getDate())+"-"+g(e.getMonth()+1)+"-"+e.getFullYear()+" "+g(e.getHours())+":"+g(e.getMinutes())+":"+g(e.getSeconds())}},awA4:function(e,t,n){"use strict";var r=n("mrSG"),i=n("jIcr"),s=n("Y5s9");class o{constructor(e,t=!1){this.logger=t?console.log:function(){},i.b.setLogger(this.logger),this.debug=t||!1,this.type=e||"base"}log(e){this.logger(this.type+" - "+e)}err(e){this.logger(this.type+" - *** "+e+" ***"),this.debug||console.log(this.type+" - *** "+e+" ***")}}class a{constructor(e){this.timer=null,this.queue=[],this.logger=e||console.log}exec(e){const t=this.queue.length;this.queue.push(e),this.startWaiter(t?500:0)}endWaiter(){this.timer&&clearTimeout(this.timer)}startWaiter(e=1e3){this.endWaiter(),this.timer=setTimeout(()=>{this.do()},e)}do(){if(this.queue.length>0){const e=this.queue[0];this.queue.splice(0,1),e()}this.queue.length>0?this.startWaiter():this.endWaiter()}}var l=n("+/F9");class c extends o{constructor(e,t,n){super("master",e.debug),this.toastCtrl=n,this.onlyThisOne=0,this.rooms=[],this.resolveLogin=null,this.Q=new a(e.logger),this.system=e,this.config=s.f.masterConfig(t),this.nodes=[],this.nrNodes=0,this.schedule=0,this.date=null,this.socket=null,this.isOpen=!1,this.isLoggedIn=!1,this.closeRequested=!1,this.buffer=""}getName(){return this.config.name||"master"}getSort(){return this.getName().toLowerCase()}log(e){super.log(this.getAddress()+": "+e)}writeConfig(e,t){}getConfig(){return this.config}hasAddress(e){return this.config.address===e}getAddress(){return this.config.address}getPort(){return this.config.port}hasPort(e){return this.config.port==e}getURL(){return this.config.address+":"+this.config.port}inMultiNode(){return this.nodes.length>1}same(e,t){if("string"==typeof e){if(void 0===t){const n=e.split(":");e=n[0],t=parseInt(n[1]||"5001")}return this.hasAddress(e)&&this.hasPort(t)}return e&&this.hasAddress(e.getAddress())&&this.hasPort(e.getPort())}open(){return r.a(this,void 0,void 0,(function*(){return this.openWeb()}))}openTCP(){return r.a(this,void 0,void 0,(function*(){return this.openWeb()}))}openWeb(){return r.a(this,void 0,void 0,(function*(){let e;return new Promise((t,n)=>{try{this.log("opening connection to the SmartSocket Server");const n=this.system.config.socketserver+":"+this.system.config.socketport,r=this.config.address+":"+this.config.port;this.socket=new WebSocket("ws://"+n+"/"+r),this.socket||(this.err("could create new web socket to "+n+"/"+r),t(!1)),this.socket.onmessage=e=>{this.handleData(e.data)},this.socket.onerror=e=>{this.err("Socket: "+e+" on "+n+"/"+r)},this.socket.onclose=()=>{this.isOpen=!1,this.isLoggedIn=!1,clearInterval(e),this.log("end -> socket got disconnected"),this.closeRequested||this.err("Socket: closed unexpectedly")},this.socket.onopen=()=>{this.isOpen=!0,this.log("connection open on "+n+"/"+r),t(!0),e=setInterval(()=>{this.send(i.b.buildHeartbeat())},15e3)}}catch(r){this.err("Failed to open a connection on port "+this.getPort()),t(!1)}})}))}close(){return r.a(this,void 0,void 0,(function*(){if(this.isOpen){const t=i.b.buildDisconnect();try{this.closeRequested=!0,yield this.send(t)}catch(e){this.err("Disconnect failure: "+e)}}}))}login(){return r.a(this,void 0,void 0,(function*(){return new Promise((e,t)=>{try{const t=i.b.buildLogin(this.config.password);i.b.write(this.socket,t),this.resolveLogin=e}catch(n){this.resolveLogin=null,this.err("Login call failed: "+n),t(!1)}})}))}getSocket(){return this.socket}send(e){return r.a(this,void 0,void 0,(function*(){return this.Q.exec(()=>r.a(this,void 0,void 0,(function*(){return this.isOpen||(yield this.open(),yield this.login())?i.b.write(this.socket,e):s.i.writeFatal})))}))}handleData(e){for(this.buffer+=e;this.buffer.length>0&&this.processData(););}processData(){const e=i.b.nextMessage(this.buffer);return this.buffer=e.rest,!!e.cmd&&(e.cmd==i.c.Internal?this.log("incoming msg="+Object(i.g)(e.cmd)+", data="+(e.raw?e.raw.substr(0,50):"--")):e.cmd!=i.c.Sensor&&this.log("incoming msg="+Object(i.g)(e.cmd)+", status="+e.isStatus+", data="+(e.message?e.message.join(","):"--")),this.Q.do(),e.isStatus?this.receiveStatus(e):e.cmd===i.c.TimeDateStatus?this.receiveDateTime(e.message):e.cmd===i.c.Info?this.receiveInfo(e):e.cmd===i.c.ConnectStatus?this.receiveLogin(e.message):e.cmd===i.c.ScheduleStatus?this.receiveSchedule(e.message):e.cmd===i.c.HeartbeatStatus?this.receiveHeartbeat(e.message):e.cmd===i.c.Internal?this.receiveInternal(e.raw):e.cmd===i.c.AudioExtendedStatus||e.cmd===i.c.AudioStatus?this.receiveAudioStatus(e):e.cmd!=i.c.ErrorMessage&&this.log("what to do with: "+e.message),!0)}receiveInternal(e){const t=e.indexOf(":");if(t<0)return;const n=e.substr(5,t-5),r=e.substr(n.length+6,e.length-n.length-6);"R"===e[2]?this.system.doReceiveBackup(r):"A"===e[2]&&this.doReceiveAudio(r)}receiveLogin(e){this.isLoggedIn=1===e[2],this.resolveLogin?(Object(l.d)(this.toastCtrl,"Login "+(this.isLoggedIn?"OK":"FAIL")+" for "+this.config.address),this.resolveLogin(this.isLoggedIn),this.resolveLogin=null):this.err("unexpected ConnectStatus ?")}requestAudio(){this.doRequestAudio()}receiveAudioStatus(e){const t=this.findUnit(e.message[2],e.message[3]);t?i.b.receiveAudioStatus(t,e):this.err("could not find unit ("+Object(s.l)(e.message[2])+", "+Object(s.l)(e.message[3])+")")}receiveHeartbeat(e){this.lastHeartbeat=new Date}receiveInfo(e){e.message[1]===i.c.DBInfo?this.receiveDBInfo(e.message):e.message[1]===i.c.NodeInfo?this.receiveNodeInfo(e.message):e.message[1]===i.c.UnitInfo?this.receiveUnitInfo(e.message):this.err("What is this? info type = "+e.message[1]+", message: "+e.message),this.system.triggerRebuild()}receiveSchedule(e){this.schedule=e[2],this.log("received week schedule = "+this.schedule)}receiveDateTime(e){this.date=new Date(100*(e[8]-1)+e[9],e[7]-1,e[6],e[2],e[3],e[4]),this.log("Received date/time: "+this.date)}receiveDBInfo(e){const t=i.b.makeDBInfo(e);this.nrNodes=t.nrNodes;for(let n=0;n<this.nrNodes;n++)this.fetchNode(n)}receiveNodeInfo(e){const t=i.b.makeNodeInfo(e);let n=this.findNode(t.logicalAddress);n?s.f.nodeInfo(t,n):(n=new i.a(this,t),this.nodes.push(n)),this.system.setActiveState(n),this.config.nodenames[n.logicalAddress]=n.name,this.system.updateMasterConfig(this),this.onlyThisOne?n.logicalAddress==this.onlyThisOne&&this.fetchAllUnits(n):n.active&&n.nrUnits!==n.units.length?this.fetchAllUnits(n):this.log("Skipping node: "+n.getDescription())}receiveUnitInfo(e){const t=i.b.makeUnitInfo(e);let n=this.findUnit(t.logicalNodeAddress,t.logicalAddress);if(n)s.f.unitInfo(t,n);else{const e=this.findNode(t.logicalNodeAddress);e?(n=new i.d(e,t),e.units.push(n)):this.err("Node not found: "+t.logicalNodeAddress)}this.system.setActiveState(n)}fetchAllUnits(e){for(let t=0;t<e.nrUnits;t++)this.fetchUnit(e,t)}fetchOneNode(e){return r.a(this,void 0,void 0,(function*(){this.onlyThisOne=e.logicalAddress,yield this.send(i.b.buildDBInfo())}))}fetchOnlyNodeInfo(){return r.a(this,void 0,void 0,(function*(){this.onlyThisOne=-1,yield this.send(i.b.buildDBInfo())}))}fetchDbInfo(){return r.a(this,void 0,void 0,(function*(){try{this.onlyThisOne=0,yield this.send(i.b.buildDBInfo()),yield this.send(i.b.buildRequestSchedule())}catch(e){this.err("dbInfo call failed -> "+e)}}))}fetchNode(e){return r.a(this,void 0,void 0,(function*(){const t=i.b.buildNodeInfo(e);try{yield this.send(t)}catch(n){this.err("nodeInfo call failed -> "+n)}}))}fetchUnit(e,t){return r.a(this,void 0,void 0,(function*(){const n=i.b.buildUnitInfo(e,t);try{yield this.send(n)}catch(r){this.err("unitInfo call failed -> "+r)}}))}getDatabase(e=!1){return r.a(this,void 0,void 0,(function*(){this.nodes=[];const t=this.system.config.cunits.filter(e=>this.same(e.masterAddress,e.masterPort)).some(e=>e.name);e||!t?yield this.fetchDbInfo():(this.log("building db from config file"),this.system.config.cunits.forEach(e=>{if(this.same(e.masterAddress,e.masterPort)){let t=this.findNode(e.logicalNodeAddress);if(!t){let n=this.config.nodenames[e.logicalNodeAddress]||(255==e.logicalNodeAddress?"Virtual Node":"Node-"+(e.logicalNodeAddress<16?"0":"")+e.logicalNodeAddress.toString(16));t=new i.a(this,{logicalAddress:e.logicalNodeAddress,name:n}),this.nodes.push(t),this.system.setActiveState(t),this.log("new node: "+t.getName())}let n=this.findUnit(e.logicalNodeAddress,e.logicalAddress);n||(n=new i.d(t,e),t.units.push(n),this.log("new unit: "+n.getName()+" -> "+e.logicalAddress)),this.system.setActiveState(n)}}),this.system.rooms.forEach(e=>{this.same(e.master,e.port)&&this.rooms.push(e)}))}))}forAllNodes(e){this.nodes.forEach(t=>{e(t)})}forAllUnits(e){this.nodes.forEach(t=>{t.units.forEach(t=>{e(t)})})}allActiveUnits(){return this.nodes.reduce((e,t)=>e.concat(t.units),[]).filter(e=>e.active)}findUnit(e,t){const n=this.findNode(e);return n?n.units.find(e=>e.logicalAddress===t):null}findNode(e){return this.nodes.find(t=>t&&t.logicalAddress===e)}getNodeAndUnit(e,t){return"number"==typeof e&&(e>=this.nodes.length?(this.err("getNodeAndUnit -> node nr "+e+" out of bounds"),e=null):e=this.nodes[e]),e?("number"==typeof t&&(t>=e.units.length?(this.err("getNodeAndUnit -> unit nr "+t+" out of bounds"),t=null):t=e.units[t]),t?{node:e,unit:t}:(this.err("getNodeAndUnit -> unit not found"),null)):(this.err("getNodeAndUnit -> node not found "),null)}receiveStatus(e){const t=e.message[2],n=this.nodes.find(e=>e&&e.logicalAddress==t);if(!n)return;const r=e.message[3],s=n.units.find(e=>e&&e.logicalAddress==r);s&&i.b.receiveStatus(e,s)}requestStatus(){return r.a(this,void 0,void 0,(function*(){this.log("requesting status of all units");for(let e=0;e<this.nodes.length;e++){const t=this.nodes[e];if(t.active)for(let e=0;e<t.units.length;e++)yield this.requestUnitStatus(t.units[e])}this.log("requesting week schedule"),yield this.send(i.b.buildRequestSchedule())}))}requestNodeStatus(e){return r.a(this,void 0,void 0,(function*(){for(let t=0;t<e.units.length;t++)e.units[t].active&&(yield this.requestUnitStatus(e.units[t]))}))}requestUnitStatus(e){return r.a(this,void 0,void 0,(function*(){const t=i.b.buildRequestUnitStatus(e.node,e);yield this.send(t),this.log("get value of "+e.node.getName()+"-"+e.getName())}))}setUnitStatus(e,t){return r.a(this,void 0,void 0,(function*(){const n=i.b.buildSetCmd(e.node,e,t);n.cmd&&(yield this.send(n.message)),this.system.checkScenes(e)}))}setPreset(e,t,n){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildSetPreset(e.node,e,t,n)),this.log("set temp preset: "+t+" of "+e.node.getName()+"-"+e.getName()+" to temp "+n)}))}selectPreset(e,t){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildSelectPreset(e.node,e,t)),this.log("set temp preset of "+e.node.getName()+"-"+e.getName()+" to: "+t)}))}setSchedule(){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildSendSchedule(this.schedule)),this.log("set schedule to week nr: "+this.schedule)}))}setDateTime(){return r.a(this,void 0,void 0,(function*(){const e=new Date;yield this.send(i.b.buildSendDateTime(e)),this.log("set datetime to: "+e)}))}setTempOnOff(e,t){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildSensorOnOff(e.node,e,t)),this.log("turn temp sensor of "+e.node.getName()+"-"+e.getName()+": "+(t?"on":"off"))}))}doIncDecPreset(e,t){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildIncDecPreset(e.node,e,t)),this.log("set temp preset of "+e.node.getName()+"-"+e.getName()+": "+(t?"up":"down"))}))}setAudioSrcDest(e,t,n){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildAudioSrcDest(e.node,e,t,n)),this.log("send source "+t+" to destination "+n+" of "+e.getName())}))}sendAudioAction(e,t,n){return r.a(this,void 0,void 0,(function*(){yield this.send(i.b.buildAudioAction(e.node,e,t,n)),this.log("send action "+t+" to "+e.getName())}))}attachAudio(){this.forAllUnits(e=>{if(e.isMedia()){const t=this.rooms.find(t=>e.isUnit(t.master,t.port,t.nodeaddress,t.unitaddress));t?(this.log("Audio unit "+e.name+" attached to room: "+t.name),e.destinations=t.destinations,e.destination=null,e.destinationId=255,e.destinationNr=255):this.log("Audio unit "+e.name+" not found !!")}}),this.allActiveUnits().forEach(e=>{e.type==s.h.kAudio&&(e.destinations||(e.destinations=[]),e.destinations.length||e.destinations.push({id:0,nr:0,type:0,nodeaddress:e.node.logicalAddress,unitaddress:e.logicalAddress,master:e.node.master.getAddress(),port:e.node.master.getPort(),name:"Audio",maxvolume:100,volume:0,source:0,basictype:s.b.Basic,sources:s.a[s.b.Basic],disc:0,track:0,frequency:"-",preset:0}),e.destinationId=0,e.destinationNr=0,e.destination=e.destinations[0],this.log("***** Basic audio (destination != null) = "+(null!=e.destination)+" of unit "+e.name))})}makeVirtualUnits(){let e=!1;this.rooms.forEach(t=>{if(255==t.nodeaddress){let n=this.findNode(t.nodeaddress);if(n||(n=new i.a(this,{name:"Virtual Node",logicalReqNodeAddress:255,nrUnits:0,index:0,logicalAddress:255,physicalAddress:255,type:s.e.kNoNode}),this.nodes.push(n),e=!0),!this.findUnit(t.nodeaddress,t.unitaddress)){const r=new i.d(n,{name:t.name,logicalReqNodeAddress:255,logicalNodeAddress:255,index:t.unitaddress,logicalAddress:t.unitaddress,physicalAddress:t.unitaddress,type:s.h.kAV});r.active=!0,r.group=-1,n.units.push(r),n.nrUnits++,this.log("Added virtual unit "+r.getNumber()),e=!0}}}),e&&this.system.updateMasterConfig(this)}doRequestAudio(){this.log("requesting audio config from "+this.getAddress()),i.b.write(this.getSocket(),"[9,A-"+this.getAddress()+"-audio:]"),Object(l.d)(this.toastCtrl,"Requesting audio "+this.getName())}doReceiveAudio(e){const t=this.system.fromTransport(e);this.log("received "+t.length+" audio:rooms"),this.rooms=t.map(e=>(this.log("adding room: "+e.name),{id:e.id,name:e.name,nodeaddress:e.nodeaddress,unitaddress:e.unitaddress,master:this.getAddress(),port:this.getPort(),destination:0,destinations:e.destinations.map(e=>({id:e.id,nr:e.destinationnr,nodeaddress:e.nodeaddress,unitaddress:e.unitaddress,master:this.getAddress(),port:this.getPort(),name:e.name,maxvolume:e.maxvolume,type:e.type,basictype:s.b.Basic,volume:0,source:0,sources:e.sources.map(e=>({id:e.id,nr:e.sourcenr,name:e.name}))}))})),Object(l.d)(this.toastCtrl,"Received "+this.rooms.length+" audio rooms"),this.system.addRooms(this),this.makeVirtualUnits(),this.system.triggerRebuild(!0)}}var u=n("+qE3"),d=(n("RjOq"),n("F6QC"));n.d(t,"a",(function(){return h}));class h extends o{constructor(e,t,n){super("system",!0),this.toastCtrl=e,this.alertCtrl=t,this.rooms=[],this.backup=null,this.isBrowser=!0,this.isSplitted=!1,this.showAdmin=!1,this.trigger=null,this.moods=[],this.controls=[],this.temperatures=[],this.stores=[],this.media=[],this.trigger=null,this.emitter=new u.EventEmitter,i.b.setEmitter(this.emitter),this.readConfig(),n.enable(this.config.sound),d.b.language=this.config.language,this.readGroups(),this.readScenes(),this.readAudio(),this.masters=[],this.openMasters()}setBrowser(e){this.isBrowser=e}setLogger(e){this.logger=e,i.b.setLogger(e)}openMasters(){for(let e=0;e<this.config.cmasters.length;e++)this.openMaster(this.config.cmasters[e],!1)}closeMasters(){return r.a(this,void 0,void 0,(function*(){for(let e=0;e<this.masters.length;e++)yield this.closeMaster(this.masters[e])}))}openMaster(e,t=!1){return r.a(this,void 0,void 0,(function*(){const n=new c(this,e,this.toastCtrl);if(this.masters.push(n),"boolean"!=typeof n.config.active||n.config.active)return this.log("opening master: "+n.getAddress()),(yield n.open())?(yield n.login())?(yield n.getDatabase(t),this.log("master: "+n.getAddress()+" opened with "+n.nodes.length+" nodes."),this.triggerRebuild()):this.err("failed to log in on "+n.getAddress()):this.err("failed to open connection on "+n.getAddress()),n}))}closeMaster(e){return r.a(this,void 0,void 0,(function*(){if(!e)return;let t=this.findMasterInx(e);if(e.isOpen)try{yield e.close()}catch(n){this.err("failed to close master on "+e.getAddress()+":"+e.getPort())}t>=0&&this.masters.splice(t,1)}))}addMaster(e){return r.a(this,void 0,void 0,(function*(){if(!e.address)return;let t=this.findCMasterInx(e.address,e.port);if(t<0)this.config.cmasters.push(e),t=this.masters.length-1;else{const n=this.findMaster(e.address,e.port);yield this.closeMaster(n),this.config.cmasters[t]=e}return this.writeConfig(),yield this.openMaster(e,!0)}))}deleteMaster(e){return r.a(this,void 0,void 0,(function*(){const t=e.getAddress(),n=e.getPort();let r=this.findCMasterInx(t,n);r>=0?(yield this.closeMaster(e),this.config.cmasters.splice(r,1),this.config.cunits=this.config.cunits.filter(e=>e.masterPort!=n||e.masterAddress!=t),this.writeConfig()):this.err("didn't find the master "+e.getAddress()+":"+e.getConfig().port+" in the config")}))}updateMasterConfig(e){let t=this.findCMasterInx(e.getAddress(),e.getPort());t>=0&&(this.config.cmasters[t]=e.getConfig()),this.writeConfig()}setActiveState(e){if(e instanceof i.a){const t=e.master.getAddress(),n=e.master.getPort(),r=this.config.cunits.find(r=>r.logicalNodeAddress===e.logicalAddress&&r.masterAddress===t&&r.masterPort==n);e.active=!!r}if(e instanceof i.d){const t=e.node.master.getAddress(),n=e.node.master.getPort(),r=this.config.cunits.find(r=>r.logicalAddress===e.logicalAddress&&r.logicalNodeAddress===e.logicalNodeAddress&&r.masterAddress===t&&r.masterPort==n);e.active=!!r,e.group=r?r.group:-1}}deleteGroup(e){if(this.groups.length>1){const t=this.groups.indexOf(e);this.groups.splice(t,1),this.groups.sort((e,t)=>e.order-t.order),this.groups.forEach((e,t)=>e.order=t);const n=this.groups[0].id;this.masters.forEach(t=>t.forAllUnits(t=>{t.group==e.id&&(t.group=n)})),this.writeGroups(),this.updateSystem(!1)}}groupExists(e){return this.groups.some(t=>t.id==e)}findMaster(e,t){return"string"==typeof e?(void 0===t&&(t=5001),this.masters.find(n=>n&&n.same(e,t))):this.masters.find(t=>t&&t.same(e))}findMasterInx(e){return this.masters.findIndex(t=>t&&t.same(e))}findCMasterInx(e,t){return this.config.cmasters.findIndex(n=>n.address==e&&n.port==t)}findNode(e,t){return(e=this.findMaster(e))?e.nodes.find(e=>e&&e.logicalAddress===t):null}findUnit(e,t,n,r){let i=t,s=n;"string"==typeof e&&(e=this.findMaster(e,t),i=n,s=r);const o=this.findNode(e,i);return o?o.units.find(e=>e&&e.logicalAddress===s):null}findUnitByAddress(e,t){let n=null;return this.masters.forEach(r=>{if(r){const i=this.findNode(r,e);i&&(n=i.units.find(e=>e&&e.logicalAddress===t))}}),n}findUnitByName(e,t,n){let r=null;return"string"==typeof e?e=this.findMaster(e,t):n=t,this.masters.forEach(t=>{t&&t.same(e)&&t.nodes.forEach(e=>{e&&e.units.forEach(e=>{e.displayName!==n&&e.name!==n||(r=e)})})}),r}allActiveUnits(){return this.masters.reduce((e,t)=>e.concat(t.allActiveUnits()),[])}updateSystem(e=!1){this.config.cunits=this.allActiveUnits().map(e=>({active:"Y",group:e.group,name:e.name,type:e.type,masterAddress:e.node.master.getAddress(),masterPort:e.node.master.getPort(),logicalNodeAddress:e.node.logicalAddress,logicalAddress:e.logicalAddress})),this.writeConfig(),e&&this.triggerRebuild()}triggerRebuild(e=!1){this.log("triggerRebuild requested"),this.trigger&&(this.log("killing pending rebuild"),clearTimeout(this.trigger),this.trigger=null),e?this.rebuildServices():this.trigger=setTimeout(()=>{this.trigger=null,this.rebuildServices()},1e3)}rebuildServices(){function e(e,t){const n=e.getSort(),r=t.getSort();return n<r?-1:n>r?1:0}function t(e,t){const n=e.name.toLowerCase(),r=t.name.toLowerCase();return n<r?-1:n>r?1:0}this.log("rebuildMasters/Nodes"),this.masters.sort(e),this.masters.forEach(t=>{t.attachAudio(),t.nodes.sort(e),t.nodes.forEach(t=>t.units.sort(e)),t.requestStatus()}),this.log("rebuildServices");const n=this.allActiveUnits();this.controls=n.filter(e=>e.isCtrl()).sort(t),this.temperatures=n.filter(e=>e.isTemperature()).sort(t),this.moods=n.filter(e=>e.isMood()||e.isInput()).sort(t),this.stores=this.controls.filter(e=>e.isUpDown()),this.media=n.filter(e=>e.isMedia());const r=this.media.filter(e=>!e.destinations);r.length>0&&(Object(l.a)(this.alertCtrl,{title:"audio troubles",message:r.length+" unit(s) with no destinations ("+r.map(e=>e.name).join(",")+")"}),this.media=this.media.filter(e=>e.destinations)),this.emitter.emit("refresh")}checkScenes(e){const t=this.scenes.find(t=>e.isUnit(t.trigger.masterAddress,t.trigger.masterPort,t.trigger.logicalNodeAddress,t.trigger.logicalAddress));t&&(this.log("scene found -> "+t.name+", value = "+t.trigger.value+" unit = "+e.value),t.units.forEach(e=>{const t=this.findUnit(e.masterAddress,e.masterPort,e.logicalNodeAddress,e.logicalAddress);t?(this.log(" - unit: "+t.getDisplayName()+" -> "+e.value),t.setState(e.value)):this.log(" - !!! Didn't find unit: "+e.masterAddress+", "+e.masterPort+", "+e.logicalNodeAddress+", "+e.logicalAddress)}))}toTransport(e){return JSON.stringify(e).replace(/\xa7/g," ").replace(/\]/g,"\xa7")}fromTransport(e){try{return JSON.parse(e.replace(/\xa7/g,"]"))}catch(t){return this.log("error in input from server: "+t),{}}}findOpenMaster(){return this.masters.find(e=>e.isOpen)}doBackup(e){const t=this.findOpenMaster();t?(i.b.write(t.getSocket(),"[9,B-"+t.getAddress()+"-"+e+"-system:"+this.toTransport({groups:this.groups,scenes:this.scenes,config:this.config})+"]"),Object(l.d)(this.toastCtrl,"Sending backup")):Object(l.d)(this.toastCtrl,"No master -> No backups")}sendScenes(e){const t=this.findOpenMaster();t?(i.b.write(t.getSocket(),"[9,S-"+t.getAddress()+"-"+e+"-scenes:"+this.toTransport(this.scenes)+"]"),Object(l.d)(this.toastCtrl,"Sending scenes")):Object(l.d)(this.toastCtrl,"No master -> No scenes")}doRequestBackup(e){const t=this.findOpenMaster();t?(this.log("requesting backup from "+t.getAddress()),i.b.write(t.getSocket(),"[9,R-"+t.getAddress()+"-"+e+"-system:]"),Object(l.d)(this.toastCtrl,"Requesting backups")):Object(l.d)(this.toastCtrl,"No master -> No backups")}doReceiveBackup(e){this.backup=this.fromTransport(e),this.log("received backup: groups = "+this.backup.groups.length+", scenes: "+this.backup.scenes.length+", masters: "+this.backup.config.cmasters.length+", units: "+this.backup.config.cunits.length),Object(l.d)(this.toastCtrl,"Received backup ("+this.backup.config.cunits.length+" units)")}doRestoreBackup(){return r.a(this,void 0,void 0,(function*(){this.log("restoring backup: groups = "+this.backup.groups.length+", scenes: "+this.backup.scenes.length+", masters: "+this.backup.config.cmasters.length+", units: "+this.backup.config.cunits.length),this.scenes=this.backup.scenes,this.groups=this.backup.groups,this.config=this.backup.config,this.backup=null,Object(l.d)(this.toastCtrl,"Backups restored");for(let e in this.config.cmasters)(yield this.addMaster(this.config.cmasters[e])).doRequestAudio();this.writeConfig(),this.writeGroups(),this.writeScenes(),this.triggerRebuild()}))}addRooms(e){this.rooms=this.rooms.filter(t=>!e.same(t.master,t.port)).concat(e.rooms),this.writeAudio()}writeAudio(){this.write("audio",this.rooms)}readAudio(){this.rooms=this.read("audio")}read(e){const t="config."+e;let n=null;try{const e=localStorage.getItem(t);n=JSON.parse(e)}catch(i){this.log("Couldn't read "+t+" --\x3e Creating empty config.")}const r=s.f[e](n);return!n&&r&&this.write(e,r),r}write(e,t){const n="config."+e;try{return t=s.f[e](t),localStorage.setItem(n,JSON.stringify(t,null,2)),t}catch(r){return this.err("Couldn't write config "+n),t}}readConfig(){this.config=this.read("system")}writeConfig(){d.b.language=this.config.language,this.write("system",this.config)}readGroups(){if(this.config.cgroups&&this.config.cgroups.length?(this.groups=this.config.cgroups.map((e,t)=>({name:e,id:t,visible:!0,order:t})),delete this.config.cgroups,this.writeConfig(),this.writeGroups()):this.groups=this.read("groups"),this.groups.sort((e,t)=>e.order-t.order),this.groups.forEach((e,t)=>e.order=t),!this.config.multiple){const e=this.groups.find(e=>e.visible);this.groups.forEach(t=>{t!=e&&(t.visible=!1)})}}writeGroups(){this.groups=this.write("groups",this.groups)}readScenes(){this.scenes=this.read("scenes"),this.scenes.length>0&&(this.config.showscenes=!0,this.writeConfig())}writeScenes(){const e=s.f.scenes(this.scenes);this.write("scenes",e)}}},bC4P:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,t,n,r,o)=>s(e[1],t[1],n[1],r[1],o).map(s=>i(e[0],t[0],n[0],r[0],s)),i=(e,t,n,r,i)=>i*(3*t*Math.pow(i-1,2)+i*(-3*n*i+3*n+r*i))-e*Math.pow(i-1,3),s=(e,t,n,r,i)=>o((r-=i)-3*(n-=i)+3*(t-=i)-(e-=i),3*n-6*t+3*e,3*t-3*e,e).filter(e=>e>=0&&e<=1),o=(e,t,n,r)=>{if(0===e)return((e,t,n)=>{const r=t*t-4*e*n;return r<0?[]:[(-t+Math.sqrt(r))/(2*e),(-t-Math.sqrt(r))/(2*e)]})(t,n,r);const i=(3*(n/=e)-(t/=e)*t)/3,s=(2*t*t*t-9*t*n+27*(r/=e))/27;if(0===i)return[Math.pow(-s,1/3)];if(0===s)return[Math.sqrt(-i),-Math.sqrt(-i)];const o=Math.pow(s/2,2)+Math.pow(i/3,3);if(0===o)return[Math.pow(s/2,.5)-t/3];if(o>0)return[Math.pow(-s/2+Math.sqrt(o),1/3)-Math.pow(s/2+Math.sqrt(o),1/3)-t/3];const a=Math.sqrt(Math.pow(-i/3,3)),l=Math.acos(-s/(2*Math.sqrt(Math.pow(-i/3,3)))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("5+tZ"),i=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(r.a)(i.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},cUpR:function(e,t,n){"use strict";n.d(t,"p",(function(){return ue})),n.d(t,"q",(function(){return _})),n.d(t,"a",(function(){return de})),n.d(t,"h",(function(){return ce})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"e",(function(){return W})),n.d(t,"f",(function(){return K})),n.d(t,"g",(function(){return X})),n.d(t,"b",(function(){return ee})),n.d(t,"r",(function(){return o})),n.d(t,"j",(function(){return $})),n.d(t,"i",(function(){return H})),n.d(t,"m",(function(){return Q})),n.d(t,"n",(function(){return J})),n.d(t,"l",(function(){return k})),n.d(t,"o",(function(){return x})),n.d(t,"k",(function(){return te}));var r=n("SVse"),i=n("8Y7J");let s=null;function o(){return s}const a={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},l={"\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"},c={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"},u=(()=>{if(i.sb.Node)return i.sb.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class d extends class extends class{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n<t.length;n++)if(null!=this.getStyle(e,t[n]+"AnimationName")){this._animationPrefix="-"+t[n].toLowerCase()+"-";break}}const t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(t).forEach(n=>{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new d,s||(s=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return a}contains(e,t){return u.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&c.hasOwnProperty(t)&&(t=c[t]))}return l[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=f||(f=document.querySelector("base"),f)?f.getAttribute("href"):null;return null==t?null:(n=t,h||(h=document.createElement("a")),h.setAttribute("href",n),"/"===h.pathname.charAt(0)?h.pathname:"/"+h.pathname);var n}resetBaseElement(){f=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.u)(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let h,f=null;function p(){return!!window.history.pushState}const g=new i.o("TRANSITION_ID"),m=[{provide:i.d,useFactory:function(e,t,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=o();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[g,r.c,i.p],multi:!0}];class b{static init(){Object(i.V)(new b)}addToWindow(e){i.sb.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},i.sb.getAllAngularTestabilities=()=>e.getAllTestabilities(),i.sb.getAllAngularRootElements=()=>e.getAllRootElements(),i.sb.frameworkStabilizers||(i.sb.frameworkStabilizers=[]),i.sb.frameworkStabilizers.push(e=>{const t=i.sb.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?o().isShadowRoot(t)?this.findTestabilityInTree(e,o().getHost(t),!0):this.findTestabilityInTree(e,o().parentElement(t),!0):null}}function v(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i.sb.ng=i.sb.ng||{})[e]=t)}const y=(()=>({ApplicationRef:i.g,NgZone:i.x}))();function w(e){return Object(i.S)(e)}function _(e){return v("probe",w),v("coreTokens",Object.assign({},y,(e||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>w}const C=new i.o("EventManagerPlugins");class S{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}class E{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=o().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}class x{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class k extends x{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>o().remove(e))}}const A={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/"},O=/%COMP%/g;function T(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?T(e,i,n):(i=i.replace(O,e),n.push(i))}return n}function I(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class ${constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new N(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.N.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new P(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case i.N.Native:case i.N.ShadowDom:return new D(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=T(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class N{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(A[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=A[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=A[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&i.D.DashCase?e.style.setProperty(t,n,r&i.D.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&i.D.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){R(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return R(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,I(n)):this.eventManager.addEventListener(e,t,I(n))}}const j=(()=>"@".charCodeAt(0))();function R(e,t){if(e.charCodeAt(0)===j)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class P extends N{constructor(e,t,n,r){super(e),this.component=n;const i=T(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(O,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(O,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class D extends N{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.N.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=T(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const M=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),V=M("addEventListener"),L=M("removeEventListener"),U={},F="__zone_symbol__propagationStopped",z=(()=>{const e="undefined"!=typeof Zone&&Zone[M("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),B=function(e){return!!z&&z.hasOwnProperty(e)},q=function(e){const t=U[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[F];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};class H extends E{constructor(e,t,n){super(e),this.ngZone=t,n&&Object(r.p)(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[F]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[V]||i.x.isInAngularZone()&&!B(t))e.addEventListener(t,r,!1);else{let n=U[t];n||(n=U[t]=M("ANGULAR"+t+"FALSE"));let i=e[n];const s=i&&i.length>0;i||(i=e[n]=[]);const o=B(t)?Zone.root:Zone.current;if(0===i.length)i.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<i.length;t++)if(i[t].handler===r){e=!0;break}e||i.push({zone:o,handler:r})}s||e[V](t,q,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[L];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let i=U[t],s=i&&e[i];if(!s)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let a=0;a<s.length;a++)if(s[a].handler===n){o=!0,s.splice(a,1);break}o?0===s.length&&r.apply(e,[t,q,!1]):e.removeEventListener.apply(e,[t,n,!1])}}const G={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},W=new i.o("HammerGestureConfig"),K=new i.o("HammerLoader");class X{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class Q extends E{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!G.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,i=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(i=()=>{});r||(i=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom Hammer.JS loader failed.`),i=()=>{}}),()=>{i()}}return r.runOutsideAngular(()=>{const i=this._config.buildHammer(e),s=function(e){r.runGuarded((function(){n(e)}))};return i.on(t,s),()=>{i.off(t,s),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Z=["alt","control","meta","shift"],Y={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class J extends E{constructor(e){super(e)}supports(e){return null!=J.parseEventName(e)}addEventListener(e,t,n){const r=J.parseEventName(t),i=J.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>o().onAndCancel(e,r.domEventName,i))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=J._normalizeKey(t.pop());let i="";if(Z.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=r,0!=t.length||0===r.length)return null;const s={};return s.domEventName=n,s.fullKey=i,s}static getEventFullKey(e){let t="",n=o().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Z.forEach(r=>{r!=n&&(0,Y[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(e,t,n){return r=>{J.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class ee{}class te extends ee{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.F.NONE:return t;case i.F.HTML:return t instanceof re?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(i.bb)(this._doc,String(t)));case i.F.STYLE:return t instanceof ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(i.cb)(t));case i.F.SCRIPT:if(t instanceof se)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case i.F.URL:return t instanceof ae||t instanceof oe?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(i.db)(String(t)));case i.F.RESOURCE_URL:if(t instanceof ae)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof ne)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} (see http://g.co/ng/security#xss)`)}bypassSecurityTrustHtml(e){return new re(e)}bypassSecurityTrustStyle(e){return new ie(e)}bypassSecurityTrustScript(e){return new se(e)}bypassSecurityTrustUrl(e){return new oe(e)}bypassSecurityTrustResourceUrl(e){return new ae(e)}}class ne{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class re extends ne{getTypeName(){return"HTML"}}class ie extends ne{getTypeName(){return"Style"}}class se extends ne{getTypeName(){return"Script"}}class oe extends ne{getTypeName(){return"URL"}}class ae extends ne{getTypeName(){return"ResourceURL"}}const le=[{provide:i.z,useValue:r.s},{provide:i.A,useValue:function(){d.makeCurrent(),b.init()},multi:!0},{provide:r.n,useClass:class extends r.n{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}},deps:[r.c]},{provide:r.c,useFactory:function(){return document},deps:[]}],ce=Object(i.P)(i.U,"browser",le);function ue(){return new i.l}class de{constructor(e){if(e)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(e){return{ngModule:de,providers:[{provide:i.c,useValue:e.appId},{provide:g,useExisting:i.c},m]}}}"undefined"!=typeof window&&window},eIep:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t){return"function"==typeof t?n=>n.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new l(e,this.project))}}class l extends s.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new s.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(s.c)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("2fFW"),i=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete(){}}},iInd:function(e,t,n){"use strict";var r=n("SVse"),i=n("8Y7J"),s=n("z+Ro"),o=n("yCtX"),a=n("jZKg");function l(...e){let t=e[e.length-1];return Object(s.a)(t)?(e.pop(),Object(a.a)(e,t)):Object(o.a)(e)}var c=n("Cfvw"),u=n("2Vo4"),d=n("HDdC");const h=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();var f=n("DH7j"),p=n("7o/Q");class g extends p.a{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class m extends p.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var b=n("SeVD");function v(e,t,n,r,i=new m(e,n,r)){if(!i.closed)return t instanceof d.a?t.subscribe(i):Object(b.a)(t)(i)}const y={};class w{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new _(e,this.resultSelector))}}class _ extends g{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(y),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(v(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,i=this.toRespond?r[n]===y?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const C=new d.a(e=>e.complete());function S(e){return e?function(e){return new d.a(t=>e.schedule(()=>t.complete()))}(e):C}function E(e){return new d.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(c.a)(n):S()).subscribe(t)})}var x=n("XNiG"),k=n("lJxs"),A=n("bHdf");function O(){return Object(A.a)(1)}var T=n("pLZG");const I=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function $(e){return function(t){return 0===e?S():t.lift(new N(e))}}class N{constructor(e){if(this.total=e,this.total<0)throw new I}call(e,t){return t.subscribe(new j(e,this.total))}}class j extends p.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}function R(e=M){return t=>t.lift(new P(e))}class P{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new D(e,this.errorFactory))}}class D extends p.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function M(){return new h}function V(e=null){return t=>t.lift(new L(e))}class L{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new U(e,this.defaultValue))}}class U extends p.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n("SpAZ");function z(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(T.a)((t,n)=>e(t,n,r)):F.a,$(1),n?V(t):R(()=>new h))}var B=n("zx2A");function q(e){return function(t){const n=new H(e),r=t.lift(n);return n.caught=r}}class H{constructor(e){this.selector=e}call(e,t){return t.subscribe(new G(e,this.selector,this.caught))}}class G extends B.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new B.a(this);this.add(r);const i=Object(B.c)(n,r);i!==r&&this.add(i)}}}function W(e){return t=>0===e?S():t.lift(new K(e))}class K{constructor(e){if(this.total=e,this.total<0)throw new I}call(e,t){return t.subscribe(new X(e,this.total))}}class X extends p.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Q(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(T.a)((t,n)=>e(t,n,r)):F.a,W(1),n?V(t):R(()=>new h))}var Z=n("5+tZ");class Y{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new J(e,this.predicate,this.thisArg,this.source))}}class J extends p.a{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var ee=n("eIep");function te(...e){return O()(l(...e))}function ne(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new re(e,t,n))}}class re{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new ie(e,this.accumulator,this.seed,this.hasSeed))}}class ie extends p.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function se(e,t){return Object(Z.a)(e,t,1)}var oe=n("mCNh");function ae(){}var le=n("n6bG");function ce(e,t,n){return function(r){return r.lift(new ue(e,t,n))}}class ue{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new de(e,this.nextOrObserver,this.error,this.complete))}}class de extends p.a{constructor(e,t,n,r){super(e),this._tapNext=ae,this._tapError=ae,this._tapComplete=ae,this._tapError=n||ae,this._tapComplete=r||ae,Object(le.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ae,this._tapError=t.error||ae,this._tapComplete=t.complete||ae)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}var he=n("quSY");class fe{constructor(e){this.callback=e}call(e,t){return t.subscribe(new pe(e,this.callback))}}class pe extends p.a{constructor(e,t){super(e),this.add(new he.a(t))}}var ge=n("cUpR");n.d(t,"C",(function(){return je})),n.d(t,"s",(function(){return Hn})),n.d(t,"z",(function(){return tr})),n.d(t,"u",(function(){return Xn})),n.d(t,"A",(function(){return nr})),n.d(t,"B",(function(){return rr})),n.d(t,"w",(function(){return Zn})),n.d(t,"v",(function(){return Qn})),n.d(t,"y",(function(){return er})),n.d(t,"t",(function(){return Wn})),n.d(t,"x",(function(){return Jn})),n.d(t,"D",(function(){return Bn})),n.d(t,"o",(function(){return Mn})),n.d(t,"d",(function(){return be})),n.d(t,"l",(function(){return xn})),n.d(t,"m",(function(){return Rn})),n.d(t,"k",(function(){return An})),n.d(t,"i",(function(){return qn})),n.d(t,"j",(function(){return ir})),n.d(t,"n",(function(){return Kn})),n.d(t,"b",(function(){return Dn})),n.d(t,"e",(function(){return Fn})),n.d(t,"g",(function(){return Un})),n.d(t,"h",(function(){return Ln})),n.d(t,"p",(function(){return zn})),n.d(t,"a",(function(){return St})),n.d(t,"f",(function(){return Re})),n.d(t,"q",(function(){return Tn})),n.d(t,"c",(function(){return nt})),n.d(t,"r",(function(){return tt}));class me{constructor(e,t){this.id=e,this.url=t}}class be extends me{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ve extends me{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ye extends me{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class we extends me{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _e extends me{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ce extends me{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Se extends me{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends me{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xe extends me{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ke{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ae{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oe{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Te{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $e{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ne{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class je{}const Re="primary";class Pe{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function De(e){return new Pe(e)}function Me(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Ve(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let s=0;s<r.length;s++){const t=r[s],n=e[s];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}class Le{constructor(e,t){this.routes=e,this.module=t}}function Ue(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];Fe(r,ze(t,r))}}function Fe(e,t){if(!e)throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==Re)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Ue(e.children,t)}function ze(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Be(e){const t=e.children&&e.children.map(Be),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Re&&(n.component=je),n}function qe(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(i=n[s],e[i]!==t[i])return!1;return!0}function He(e){return Array.prototype.concat.apply([],e)}function Ge(e){return e.length>0?e[e.length-1]:null}function We(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ke(e){return Object(i.vb)(e)?e:Object(i.wb)(e)?Object(c.a)(Promise.resolve(e)):l(e)}function Xe(e,t,n){return n?function(e,t){return qe(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Je(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!Je(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Je(n.segments,i))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Je(n.segments,e)&&!!n.children[Re]&&t(n.children[Re],r,s)}}(t,n,n.segments)}(e.root,t.root)}class Qe{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=De(this.queryParams)),this._queryParamMap}toString(){return rt.serialize(this)}}class Ze{constructor(e,t){this.segments=e,this.children=t,this.parent=null,We(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}}class Ye{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=De(this.parameters)),this._parameterMap}toString(){return ut(this)}}function Je(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function et(e,t){let n=[];return We(e.children,(e,r)=>{r===Re&&(n=n.concat(t(e,r)))}),We(e.children,(e,r)=>{r!==Re&&(n=n.concat(t(e,r)))}),n}class tt{}class nt{parse(e){const t=new gt(e);return new Qe(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+function e(t,n){if(!t.hasChildren())return it(t);if(n){const n=t.children[Re]?e(t.children[Re],!1):"",r=[];return We(t.children,(t,n)=>{n!==Re&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=et(t,(n,r)=>r===Re?[e(t.children[Re],!1)]:[`${r}:${e(n,!1)}`]);return`${it(t)}/(${n.join("//")})`}}(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${ot(t)}=${ot(e)}`).join("&"):`${ot(t)}=${ot(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const rt=new nt;function it(e){return e.segments.map(e=>ut(e)).join("/")}function st(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(e){return st(e).replace(/%3B/gi,";")}function at(e){return st(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt(e){return decodeURIComponent(e)}function ct(e){return lt(e.replace(/\+/g,"%20"))}function ut(e){return`${at(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${at(e)}=${at(t[e])}`).join("")}`;var t}const dt=/^[^\/()?;=#]+/;function ht(e){const t=e.match(dt);return t?t[0]:""}const ft=/^[^=?&#]+/,pt=/^[^?&#]+/;class gt{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ze([],{}):new Ze([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Re]=new Ze(e,t)),n}parseSegment(){const e=ht(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Ye(lt(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ht(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=ht(this.remaining);e&&(n=e,this.capture(n))}e[lt(t)]=lt(n)}parseQueryParam(e){const t=function(e){const t=e.match(ft);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(pt);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=ct(t),i=ct(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ht(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Re);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[Re]:new Ze([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class mt{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=bt(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=bt(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=vt(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return vt(e,this._root).map(e=>e.value)}}function bt(e,t){if(e===t.value)return t;for(const n of t.children){const t=bt(e,n);if(t)return t}return null}function vt(e,t){if(e===t.value)return[t];for(const n of t.children){const r=vt(e,n);if(r.length)return r.unshift(t),r}return[]}class yt{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function wt(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class _t extends mt{constructor(e,t){super(e),this.snapshot=t,At(this,e)}toString(){return this.snapshot.toString()}}function Ct(e,t){const n=function(e,t){const n=new xt([],{},{},"",{},Re,t,null,e.root,-1,{});return new kt("",new yt(n,[]))}(e,t),r=new u.a([new Ye("",{})]),i=new u.a({}),s=new u.a({}),o=new u.a({}),a=new u.a(""),l=new St(r,i,o,a,s,Re,t,n.root);return l.snapshot=n.root,new _t(new yt(l,[]),n)}class St{constructor(e,t,n,r,i,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}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(Object(k.a)(e=>De(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(k.a)(e=>De(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Et(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class xt{constructor(e,t,n,r,i,s,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=De(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=De(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kt extends mt{constructor(e,t){super(t),this.url=e,At(this,t)}toString(){return Ot(this._root)}}function At(e,t){t.value._routerState=e,t.children.forEach(t=>At(e,t))}function Ot(e){const t=e.children.length>0?` { ${e.children.map(Ot).join(", ")} } `:"";return`${e.value}${t}`}function Tt(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,qe(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),qe(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!qe(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),qe(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function It(e,t){var n,r;return qe(e.params,t.params)&&Je(n=e.url,r=t.url)&&n.every((e,t)=>qe(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||It(e.parent,t.parent))}function $t(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Nt(e,t,n,r,i){let s={};return r&&We(r,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new Qe(n.root===e?t:function e(t,n,r){const i={};return We(t.children,(t,s)=>{i[s]=t===n?r:e(t,n,r)}),new Ze(t.segments,i)}(n.root,e,t),s,i)}class jt{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&$t(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Ge(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rt{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Pt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Re]:""+e}function Dt(e,t,n){if(e||(e=new Ze([],{})),0===e.segments.length&&e.hasChildren())return Mt(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return s;const t=e.segments[i],o=Pt(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ft(o,a,t))return s;r+=2}else{if(!Ft(o,{},t))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Ze(e.segments.slice(0,r.pathIndex),{});return t.children[Re]=new Ze(e.segments.slice(r.pathIndex),e.children),Mt(t,0,i)}return r.match&&0===i.length?new Ze(e.segments,{}):r.match&&!e.hasChildren()?Vt(e,t,n):r.match?Mt(e,0,i):Vt(e,t,n)}function Mt(e,t,n){if(0===n.length)return new Ze(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[Re]:e}:void 0===e[0].outlets?{[Re]:e}:e[0].outlets}(n),i={};return We(r,(n,r)=>{null!==n&&(i[r]=Dt(e.children[r],t,n))}),We(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new Ze(e.segments,i)}}function Vt(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const e=Lt(n[i].outlets);return new Ze(r,e)}if(0===i&&$t(n[0])){r.push(new Ye(e.segments[t].path,n[0])),i++;continue}const s=Pt(n[i]),o=i<n.length-1?n[i+1]:null;s&&o&&$t(o)?(r.push(new Ye(s,Ut(o))),i+=2):(r.push(new Ye(s,{})),i++)}return new Ze(r,{})}function Lt(e){const t={};return We(e,(e,n)=>{null!==e&&(t[n]=Vt(new Ze([],{}),0,e))}),t}function Ut(e){const t={};return We(e,(e,n)=>t[n]=""+e),t}function Ft(e,t,n){return e==n.path&&qe(t,n.parameters)}class zt{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Tt(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=wt(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),We(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=wt(e),i=e.value.component?n.children:t;We(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=wt(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new $e(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Te(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(Tt(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Bt(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Bt(e){Tt(e.value),e.children.forEach(Bt)}function qt(e){return"function"==typeof e}function Ht(e){return e instanceof Qe}class Gt{constructor(e){this.segmentGroup=e||null}}class Wt{constructor(e){this.urlTree=e}}function Kt(e){return new d.a(t=>t.error(new Gt(e)))}function Xt(e){return new d.a(t=>t.error(new Wt(e)))}function Qt(e){return new d.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Zt{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(i.v)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Re).pipe(Object(k.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(q(e=>{if(e instanceof Wt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Gt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,Re).pipe(Object(k.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(q(e=>{if(e instanceof Gt)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Ze([],{[Re]:e}):e;return new Qe(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(k.a)(e=>new Ze([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return l({});const n=[],r=[],i={};return We(e,(e,s)=>{const o=t(s,e).pipe(Object(k.a)(e=>i[s]=e));s===Re?n.push(o):r.push(o)}),l.apply(null,n.concat(r)).pipe(O(),z(),Object(k.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,s){return l(...n).pipe(Object(k.a)(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,i,s).pipe(q(e=>{if(e instanceof Gt)return l(null);throw e}))),O(),Q(e=>!!e),q((e,n)=>{if(e instanceof h||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return l(new Ze([],{}));throw new Gt(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return tn(r)!==s?Kt(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):Kt(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Xt(i):this.lineralizeSegments(n,i).pipe(Object(Z.a)(n=>{const i=new Ze(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Yt(t,r,i);if(!o)return Kt(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Xt(u):this.lineralizeSegments(r,u).pipe(Object(Z.a)(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(k.a)(e=>(n._loadedConfig=e,new Ze(r,{})))):l(new Ze(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=Yt(t,n,r);if(!i)return Kt(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(Object(Z.a)(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>en(e,t,n)&&tn(n)!==Re)}(e,n,r)?{segmentGroup:Jt(new Ze(t,function(e,t){const n={};n[Re]=t;for(const r of e)""===r.path&&tn(r)!==Re&&(n[tn(r)]=new Ze([],{}));return n}(r,new Ze(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>en(e,t,n))}(e,n,r)?{segmentGroup:Jt(new Ze(e.segments,function(e,t,n,r){const i={};for(const s of n)en(e,t,s)&&!r[tn(s)]&&(i[tn(s)]=new Ze([],{}));return Object.assign({},r,i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(k.a)(e=>new Ze(s,e))):0===r.length&&0===o.length?l(new Ze(s,{})):this.expandSegment(n,i,r,o,Re,!0).pipe(Object(k.a)(e=>new Ze(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?l(new Le(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?l(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?Object(c.a)(r).pipe(Object(k.a)(r=>{const i=e.get(r);let s;if(function(e){return e&&qt(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!qt(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return Ke(s)})).pipe(O(),(i=e=>!0===e,e=>e.lift(new Y(i,void 0,e)))):l(!0);var i}(e.injector,t,n).pipe(Object(Z.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(k.a)(e=>(t._loadedConfig=e,e))):function(e){return new d.a(t=>t.error(Me(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):l(new Le([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return l(n);if(r.numberOfChildren>1||!r.children[Re])return Qt(e.redirectTo);r=r.children[Re]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new Qe(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return We(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let s={};return We(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new Ze(i,s)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Yt(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Ve)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Jt(e){if(1===e.numberOfChildren&&e.children[Re]){const t=e.children[Re];return new Ze(e.segments.concat(t.segments),t.children)}return e}function en(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function tn(e){return e.outlet||Re}class nn{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class rn{constructor(e,t){this.component=e,this.route=t}}function sn(e,t,n){const r=e._root;return function e(t,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=wt(n);return t.children.forEach(t=>{!function(t,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Je(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Je(e.url,t.url)||!qe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!It(e,t)||!qe(e.queryParams,t.queryParams);case"paramsChange":default:return!It(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new nn(i)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,i,s),c&&s.canDeactivateChecks.push(new rn(l&&l.outlet&&l.outlet.component||null,a))}else a&&an(n,l,s),s.canActivateChecks.push(new nn(i)),e(t,null,o.component?l?l.children:null:r,i,s)}(t,o[t.value.outlet],r,i.concat([t.value]),s),delete o[t.value.outlet]}),We(o,(e,t)=>an(e,r.getContext(t),s)),s}(r,t?t._root:null,n,[r.value])}function on(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function an(e,t,n){const r=wt(e),i=e.value;We(r,(e,r)=>{an(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new rn(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}const ln=Symbol("INITIAL_VALUE");function cn(){return Object(ee.a)(e=>function(...e){let t=void 0,n=void 0;return Object(s.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(f.a)(e[0])&&(e=e[0]),Object(o.a)(e,n).lift(new w(t))}(...e.map(e=>e.pipe(W(1),function(...e){const t=e[e.length-1];return Object(s.a)(t)?(e.pop(),n=>te(e,n,t)):t=>te(e,t)}(ln)))).pipe(ne((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==ln)return e;if(r===ln&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||Ht(r))return r}return e},e)},ln),Object(T.a)(e=>e!==ln),Object(k.a)(e=>Ht(e)?e:!0===e),W(1)))}function un(e,t){return null!==e&&t&&t(new Ie(e)),l(!0)}function dn(e,t){return null!==e&&t&&t(new Oe(e)),l(!0)}function hn(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?l(r.map(r=>E(()=>{const i=on(r,t,n);let s;if(function(e){return e&&qt(e.canActivate)}(i))s=Ke(i.canActivate(t,e));else{if(!qt(i))throw new Error("Invalid CanActivate guard");s=Ke(i(t,e))}return s.pipe(Q())}))).pipe(cn()):l(!0)}function fn(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>E(()=>l(t.guards.map(i=>{const s=on(i,t.node,n);let o;if(function(e){return e&&qt(e.canActivateChild)}(s))o=Ke(s.canActivateChild(r,e));else{if(!qt(s))throw new Error("Invalid CanActivateChild guard");o=Ke(s(r,e))}return o.pipe(Q())})).pipe(cn())));return l(i).pipe(cn())}class pn{}class gn{constructor(e,t,n,r,i,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const e=vn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Re),n=new xt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Re,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new yt(n,t),i=new kt(this.url,r);return this.inheritParamsAndData(i._root),l(i)}catch(e){return new d.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Et(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=et(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===Re?-1:t.value.outlet===Re?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(i){if(!(i instanceof pn))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new pn}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new pn;if((e.outlet||Re)!==r)throw new pn;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?Ge(n).parameters:{};i=new xt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(e),r,e.component,e,mn(t),bn(t)+n.length,Cn(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new pn;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Ve)(n,e,t);if(!r)throw new pn;const i={};We(r.posParams,(e,t)=>{i[t]=e.path});const s=r.consumed.length>0?Object.assign({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new xt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(e),r,e.component,e,mn(t),bn(t)+s.length,Cn(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=vn(t,s,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new yt(i,e)]}if(0===a.length&&0===c.length)return[new yt(i,[])];const u=this.processSegment(a,l,c,Re);return[new yt(i,u)]}}function mn(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function bn(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function vn(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(n=>yn(e,t,n)&&wn(n)!==Re)}(e,n,r)){const i=new Ze(t,function(e,t,n,r){const i={};i[Re]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&wn(s)!==Re){const n=new Ze([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[wn(s)]=n}return i}(e,t,r,new Ze(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>yn(e,t,n))}(e,n,r)){const s=new Ze(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(yn(e,n,a)&&!i[wn(a)]){const n=new Ze([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[wn(a)]=n}return Object.assign({},i,o)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new Ze(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function yn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function wn(e){return e.outlet||Re}function _n(e){return e.data||{}}function Cn(e){return e.resolve||{}}function Sn(e,t,n,r){const i=on(e,t,r);return Ke(i.resolve?i.resolve(t,n):i(t,n))}function En(e){return function(t){return t.pipe(Object(ee.a)(t=>{const n=e(t);return n?Object(c.a)(n).pipe(Object(k.a)(()=>t)):Object(c.a)([t])}))}}class xn{}class kn{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const An=new i.o("ROUTES");class On{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(k.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Le(He(r.injector.get(An)).map(Be),r)}))}loadModuleFactory(e){return"string"==typeof e?Object(c.a)(this.loader.load(e)):Ke(e()).pipe(Object(Z.a)(e=>e instanceof i.t?l(e):Object(c.a)(this.compiler.compileModuleAsync(e))))}}class Tn{}class In{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function $n(e){throw e}function Nn(e,t,n){return t.parse("/")}function jn(e,t){return l(null)}class Rn{constructor(e,t,n,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new x.a,this.errorHandler=$n,this.malformedUriErrorHandler=Nn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:jn,afterPreactivation:jn},this.urlHandlingStrategy=new In,this.routeReuseStrategy=new kn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(i.v),this.console=s.get(i.Y);const c=s.get(i.x);this.isNgZoneEnabled=c instanceof i.x,this.resetConfig(l),this.currentUrlTree=new Qe(new Ze([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new On(o,a,e=>this.triggerEvent(new ke(e)),e=>this.triggerEvent(new Ae(e))),this.routerState=Ct(this.currentUrlTree,this.rootComponentType),this.transitions=new u.a({id: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()}setupNavigations(e){const t=this.events;return e.pipe(Object(T.a)(e=>0!==e.id),Object(k.a)(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(ee.a)(e=>{let n=!1,r=!1;return l(e).pipe(ce(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(ee.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return l(e).pipe(Object(ee.a)(e=>{const n=this.transitions.getValue();return t.next(new be(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?C:[e]}),Object(ee.a)(e=>Promise.resolve(e)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(e){return e.pipe(Object(ee.a)(e=>function(e,t,n,r,i){return new Zt(e,t,n,r,i).apply()}(r,i,s,e.extractedUrl,o).pipe(Object(k.a)(t=>Object.assign({},e,{urlAfterRedirects:t})))))}),ce(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(Object(Z.a)(s=>function(e,t,n,r,i="emptyOnly",s="legacy"){return new gn(e,t,n,r,i,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(Object(k.a)(e=>Object.assign({},s,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),ce(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),ce(e=>{const n=new _e(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=e,a=new be(n,this.serializeUrl(r),i,s);t.next(a);const c=Ct(r,this.rootComponentType).snapshot;return l(Object.assign({},e,{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),C}),En(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),ce(e=>{const t=new Ce(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(k.a)(e=>Object.assign({},e,{guards:sn(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(Z.a)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?l(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return Object(c.a)(e).pipe(Object(Z.a)(e=>function(e,t,n,r,i){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?l(s.map(s=>{const o=on(s,t,i);let a;if(function(e){return e&&qt(e.canDeactivate)}(o))a=Ke(o.canDeactivate(e,t,n,r));else{if(!qt(o))throw new Error("Invalid CanDeactivate guard");a=Ke(o(e,t,n,r))}return a.pipe(Q())})).pipe(cn()):l(!0)}(e.component,e.route,n,t,r)),Q(e=>!0!==e,!0))}(o,r,i,e).pipe(Object(Z.a)(n=>n&&"boolean"==typeof n?function(e,t,n,r){return Object(c.a)(t).pipe(se(t=>Object(c.a)([dn(t.route.parent,r),un(t.route,r),fn(e,t.path,n),hn(e,t.route,n)]).pipe(O(),Q(e=>!0!==e,!0))),Q(e=>!0!==e,!0))}(r,s,e,t):l(n)),Object(k.a)(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),ce(e=>{if(Ht(e.guardsResult)){const t=Me(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),ce(e=>{const t=new Se(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(T.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ye(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),En(e=>{if(e.guards.canActivateChecks.length)return l(e).pipe(ce(e=>{const t=new Ee(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),(t=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(e){return e.pipe(Object(Z.a)(e=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=e;return i.length?Object(c.a)(i).pipe(se(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return l({});if(1===i.length){const s=i[0];return Sn(e[s],t,n,r).pipe(Object(k.a)(e=>({[s]:e})))}const s={};return Object(c.a)(i).pipe(Object(Z.a)(i=>Sn(e[i],t,n,r).pipe(Object(k.a)(e=>(s[i]=e,e))))).pipe(z(),Object(k.a)(()=>s))}(e._resolve,e,t,r).pipe(Object(k.a)(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Et(e,n).resolve),null)))}(e.route,r,t,n)),function(e,t){return arguments.length>=2?function(n){return Object(oe.a)(ne(e,t),$(1),V(t))(n)}:function(t){return Object(oe.a)(ne((t,n,r)=>e(t,n,r+1)),$(1))(t)}}((e,t)=>e),Object(k.a)(t=>e)):l(e)}))}),ce(e=>{const t=new xe(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}));var t,n}),En(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(k.a)(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const s=function(t,n,r){return n.children.map(n=>{for(const i of r.children)if(t.shouldReuseRoute(i.value.snapshot,n.value))return e(t,n,i);return e(t,n)})}(t,n,r);return new yt(i,s)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new St(new u.a((i=n.value).url),new u.a(i.params),new u.a(i.queryParams),new u.a(i.fragment),new u.a(i.data),i.outlet,i.component,i),s=n.children.map(n=>e(t,n));return new yt(r,s)}}var i}(e,t._root,n?n._root:void 0);return new _t(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),ce(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),Object(k.a)(e=>(new zt(o,e.targetRouterState,e.currentRouterState,a).activate(s),e))),ce({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new ye(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new fe(i))),q(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=Ht(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new ye(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new we(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var i;return C}));var i,s,o,a}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Ue(e),this.config=e.map(Be),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=t;Object(i.T)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;if(a)switch(a){case"merge":d=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}else d=o?this.currentUrlTree.queryParams:r||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,n,r,i){if(0===n.length)return Nt(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new jt(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return We(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new jt(n,t,r)}(n);if(s.toRoot())return Nt(t.root,new Ze([],{}),t,r,i);const o=function(e,t,n){if(e.isAbsolute)return new Rt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Rt(n.snapshot._urlSegment,!0,0);const r=$t(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Rt(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?Mt(o.segmentGroup,o.index,s.commands):Dt(o.segmentGroup,o.index,s.commands);return Nt(o.segmentGroup,a,t,r,i)}(c,this.currentUrlTree,e,d,u)}navigateByUrl(e,t={skipLocationChange:!1}){Object(i.T)()&&this.isNgZoneEnabled&&!i.x.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Ht(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Ht(e))return Xe(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Xe(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new ve(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);let s=null,o=null;const a=new Promise((e,t)=>{s=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:s,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign({},r,{navigationId:n})):this.location.go(i,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class Pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dn,this.attachRef=null}}class Dn{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Pn,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Mn{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.name=r||Re,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Vn(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class Vn{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===St?this.route:e===Dn?this.childContexts:this.parent.get(e,t)}}class Ln{}class Un{preload(e,t){return t().pipe(q(()=>l(null)))}}class Fn{preload(e,t){return l(null)}}class zn{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new On(t,n,t=>e.triggerEvent(new ke(t)),t=>e.triggerEvent(new Ae(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(T.a)(e=>e instanceof ve),se(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.v);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Object(c.a)(n).pipe(Object(A.a)(),Object(k.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(Z.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Bn{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(e=>{e instanceof be?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ve&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ne&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Ne(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const qn=new i.o("ROUTER_CONFIGURATION"),Hn=new i.o("ROUTER_FORROOT_GUARD"),Gn=[r.f,{provide:tt,useClass:nt},{provide:Rn,useFactory:Jn,deps:[i.g,tt,Dn,r.f,i.p,i.u,i.i,An,qn,[Tn,new i.y],[xn,new i.y]]},Dn,{provide:St,useFactory:er,deps:[Rn]},{provide:i.u,useClass:i.H},zn,Fn,Un,{provide:qn,useValue:{enableTracing:!1}}];function Wn(){return new i.w("Router",Rn)}class Kn{constructor(e,t){}static forRoot(e,t){return{ngModule:Kn,providers:[Gn,Yn(e),{provide:Hn,useFactory:Zn,deps:[[Rn,new i.y,new i.G]]},{provide:qn,useValue:t||{}},{provide:r.g,useFactory:Qn,deps:[r.n,[new i.n(r.a),new i.y],qn]},{provide:Bn,useFactory:Xn,deps:[Rn,r.o,qn]},{provide:Ln,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Fn},{provide:i.w,multi:!0,useFactory:Wn},[tr,{provide:i.d,multi:!0,useFactory:nr,deps:[tr]},{provide:ir,useFactory:rr,deps:[tr]},{provide:i.b,multi:!0,useExisting:ir}]]}}static forChild(e){return{ngModule:Kn,providers:[Yn(e)]}}}function Xn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Bn(e,t,n)}function Qn(e,t,n={}){return n.useHash?new r.d(e,t):new r.m(e,t)}function Zn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Yn(e){return[{provide:i.a,multi:!0,useValue:e},{provide:An,multi:!0,useValue:e}]}function Jn(e,t,n,r,i,s,o,a,l={},c,u){const d=new Rn(null,t,n,r,i,s,o,He(a));if(c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),l.errorHandler&&(d.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(d.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Object(ge.r)();d.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(d.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(d.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(d.relativeLinkResolution=l.relativeLinkResolution),d}function er(e){return e.routerState.root}class tr{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new x.a}appInitializer(){return this.injector.get(r.e,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Rn),r=this.injector.get(qn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?l(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(qn),n=this.injector.get(zn),r=this.injector.get(Bn),s=this.injector.get(Rn),o=this.injector.get(i.g);e===o.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function nr(e){return e.appInitializer.bind(e)}function rr(e){return e.bootstrapListener.bind(e)}const ir=new i.o("Router Initializer")},iWo5:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",(function(){return l}));var r=n("y08P");n.d(t,"GESTURE_CONTROLLER",(function(){return r.a}));const i=(e,t,n,r)=>{const i=s(e)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;let o,a;return e.__zone_symbol__addEventListener?(o="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(o="addEventListener",a="removeEventListener"),e[o](t,n,i),()=>{e[a](t,n,i)}},s=e=>{if(void 0===o)try{const t=Object.defineProperty({},"passive",{get:()=>{o=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){o=!1}return!!o};let o;const a=e=>e instanceof Document?e:e.ownerDocument,l=e=>{let t=!1,n=!1,s=!0,o=!1;const l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),h=l.canStart,f=l.onWillStart,p=l.onStart,g=l.onEnd,m=l.notCaptured,b=l.onMove,v=l.threshold,y=l.passive,w=l.blurOnStart,_={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},C=((e,t,n)=>{const r=n*(Math.PI/180),i="x"===e,s=Math.cos(r),o=t*t;let a=0,l=0,c=!1,u=0;return{start(e,t){a=e,l=t,u=0,c=!0},detect(e,t){if(!c)return!1;const n=e-a,r=t-l,d=n*n+r*r;if(d<o)return!1;const h=Math.sqrt(d),f=(i?n:r)/h;return u=f>s?1:f<-s?-1:0,c=!1,!0},isGesture:()=>0!==u,getDirection:()=>u}})(l.direction,l.threshold,l.maxAngle),S=r.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),E=()=>{t&&(o=!1,b&&b(_))},x=()=>!(S&&!S.capture()||(t=!0,s=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,f?f(_).then(k):k(),0)),k=()=>{w&&(()=>{if("undefined"!=typeof document){const e=document.activeElement;null!==e&&e.blur&&e.blur()}})(),p&&p(_),s=!0},A=()=>{t=!1,n=!1,o=!1,s=!0,S.release()},O=e=>{const n=t,r=s;A(),r&&(c(_,e),n?g&&g(_):m&&m(_))},T=((e,t,n,r,s)=>{let o,l,c,u,d,h,f,p=0;const g=r=>{p=Date.now()+2e3,t(r)&&(!l&&n&&(l=i(e,"touchmove",n,s)),c||(c=i(e,"touchend",b,s)),u||(u=i(e,"touchcancel",b,s)))},m=r=>{p>Date.now()||t(r)&&(!h&&n&&(h=i(a(e),"mousemove",n,s)),f||(f=i(a(e),"mouseup",v,s)))},b=e=>{y(),r&&r(e)},v=e=>{w(),r&&r(e)},y=()=>{l&&l(),c&&c(),u&&u(),l=c=u=void 0},w=()=>{h&&h(),f&&f(),h=f=void 0},_=()=>{y(),w()},C=(t=!0)=>{t?(o||(o=i(e,"touchstart",g,s)),d||(d=i(e,"mousedown",m,s))):(o&&o(),d&&d(),o=d=void 0,_())};return{enable:C,stop:_,destroy:()=>{C(!1),r=n=t=void 0}}})(l.el,e=>{const t=d(e);return!(n||!s)&&(u(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!h||!1!==h(_))&&(S.release(),!!S.start()&&(n=!0,0===v?x():(C.start(_.startX,_.startY),!0))))},e=>{t?!o&&s&&(o=!0,c(_,e),requestAnimationFrame(E)):(c(_,e),C.detect(_.currentX,_.currentY)&&(C.isGesture()&&x()||I()))},O,{capture:!1,passive:y}),I=()=>{A(),T.stop(),m&&m(_)};return{enable(e=!0){e||(t&&O(void 0),A()),T.enable(e)},destroy(){S.destroy(),T.destroy()}}},c=(e,t)=>{if(!t)return;const n=e.currentX,r=e.currentY,i=e.currentTime;u(t,e);const s=e.currentX,o=e.currentY,a=(e.currentTime=d(t))-i;if(a>0&&a<100){const t=(o-r)/a;e.velocityX=(s-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=s-e.startX,e.deltaY=o-e.startY,e.event=t},u=(e,t)=>{let n=0,r=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,r=e.clientY}else void 0!==e.pageX&&(n=e.pageX,r=e.pageY)}t.currentX=n,t.currentY=r},d=e=>e.timeStamp||Date.now()},jIcr:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n("mrSG"),i=n("Y5s9"),s=function(e){return e[e.Internal=9]="Internal",e[e.SetBasicAudio=159]="SetBasicAudio",e[e.SetExtendedAudio=208]="SetExtendedAudio",e[e.SetAVMatrix=202]="SetAVMatrix",e[e.SetSwitch=163]="SetSwitch",e[e.SetDimmer=162]="SetDimmer",e[e.SetControl=168]="SetControl",e[e.SetMotor=182]="SetMotor",e[e.SetSensor=136]="SetSensor",e[e.SetSchedule=217]="SetSchedule",e[e.SetDateTime=170]="SetDateTime",e[e.Login=214]="Login",e[e.Heartbeat=215]="Heartbeat",e[e.DatabaseInfo=209]="DatabaseInfo",e}({}),o=function(e){return e[e.DBInfo=0]="DBInfo",e[e.NodeInfo=1]="NodeInfo",e[e.UnitInfo=2]="UnitInfo",e[e.Internal=9]="Internal",e[e.ErrorMessage=17]="ErrorMessage",e[e.ConnectStatus=67]="ConnectStatus",e[e.AudioStatus=23]="AudioStatus",e[e.AudioExtendedStatus=70]="AudioExtendedStatus",e[e.TimeDateStatus=71]="TimeDateStatus",e[e.HeartbeatStatus=72]="HeartbeatStatus",e[e.ScheduleStatus=73]="ScheduleStatus",e[e.Info=64]="Info",e[e.Mood=4]="Mood",e[e.Dimmer=5]="Dimmer",e[e.Switch=6]="Switch",e[e.Sensor=7]="Sensor",e[e.Motor=38]="Motor",e[e.Macro=69]="Macro",e}({});function a(e){return o[e]||"rec"+e}var l=function(e){return e[e.kOpening=4]="kOpening",e[e.kClosing=3]="kClosing",e[e.kOpen=2]="kOpen",e[e.kClosed=1]="kClosed",e[e.kStopped=0]="kStopped",e}({}),c=function(e){return e[e.kClose=5]="kClose",e[e.kOpen=4]="kOpen",e[e.kStop=3]="kStop",e}({});class u{constructor(e,t){this.master=e,i.f.nodeInfo(t,this),this.units=[];let n=this.name.indexOf("|");this.name=n<0?this.name:this.name.substring(0,n)+" "+this.name.substring(n+1)}inMultiNode(){return this.master.inMultiNode()}typeName(){switch(this.type){case i.e.kStandardNode:return"Standard";case i.e.kGatewayNode:return"Gateway";case i.e.kModemNode:return"Modem";case i.e.kGUINode:return"GUI";default:return"Unknown node type ("+this.type+")"}}getName(){return this.name}getSort(){return this.getName().toLowerCase()}getNumber(){return Object(i.l)(this.logicalAddress)}getDescription(){return this.getName()+", active: "+this.active+", type: "+this.typeName()+", node: "+this.getName()}findUnit(e){return this.units.find(t=>t&&t.logicalAddress===e)}findUnitIndex(e){return this.units.findIndex(t=>t&&t.logicalAddress===e)}}class d{constructor(e,t){this.group=0,this.node=e,i.f.unitInfo(t,this),this.extendedType=this.calcExtendedType(),this.name=this.name.replace(/\|/g," "),this.displayName=this.name.replace(/\$|\*|\!/g,"")||this.getSerialNr()}hasSpecials(){let e=this.name.indexOf("|20");return e<0&&(e=this.name.indexOf("|50")),e<0&&(e=this.name.indexOf("|90")),e<0&&(e=this.name.indexOf("|OFF")),e>=0}isUnit(e,t,n,r){if(e instanceof d){const t=e;return this.node.master.same(t.node.master.getAddress(),t.node.master.getPort())&&this.node.logicalAddress==t.node.logicalAddress&&this.logicalAddress==t.logicalAddress}return this.node.master.same(e,t)&&this.node.logicalAddress==n&&this.logicalAddress==r}sameValue(e){return this.type===i.h.kSwitchingMotor?this.value==l.kOpening&&4==e||this.value==l.kClosing&&5==e||this.value<=l.kOpen&&3==e:this.value==e}typeName(){switch(this.getType()){case i.g.kDimmer:return"Dimmer";case i.g.kSwitch:return"Switch/Relay";case i.g.kLightbulb:return"Lightbulb";case i.g.kInput:return"Control input";case i.g.kTemperature:return"Temperature sensor";case i.g.kExtendedAudio:return"Extended audio";case i.g.kMood:return"Virtual mood";case i.g.kCondition:return"Condition";case i.g.kSwitchingMotor:return"Switch motor";case i.g.kGarageDoor:return"Garagedoor";case i.g.kDoor:return"Door";case i.g.kLock:return"Lock";case i.g.kUnlocker:return"Unlocker";case i.g.kAudio:return"Basic audio";case i.g.kAV:return"AV Matrix";case i.g.kIRTX:return"IRTX";case i.g.kVideo:return"Video multiplexer";default:return"Unknown unit type ("+this.type+")"}}getName(){return this.displayName}getDisplayName(){return this.inMultiNode?this.displayName+" on "+this.node.getName():this.displayName}getNumber(){return this.node.getNumber()+";"+Object(i.l)(this.logicalAddress)}getSort(){const e=this.getName().toLowerCase();switch(this.type){case i.h.kTemperature:return"01|"+e;case i.h.kSwitchingMotor:return"02|"+e;case i.h.kDimmer:return"03|"+e;case i.h.kSwitch:return"04|"+e;case i.h.kMood:return"09|"+e;case i.h.kInput:return"11|"+e;case i.h.kExtendedAudio:case i.h.kAudio:return"12|"+e;case i.h.kAV:return"13|"+e;case i.h.kIRTX:return"19|"+e;case i.h.kVideo:return"14|"+e;default:return"99|"+e}}getType(){return this.extendedType}calcExtendedType(){return this.type===i.h.kSwitch&&(this.name.indexOf("STK")>=0||this.name.indexOf("stk")>=0||this.name.indexOf("Stk")>=0||this.name.indexOf("*")>=0)?i.g.kSwitch:this.type===i.h.kSwitch&&this.name.indexOf("$")>=0?i.g.kLock:this.type===i.h.kSwitch?i.g.kLightbulb:this.type===i.h.kSwitchingMotor&&this.name.indexOf("$")>=0?i.g.kGarageDoor:this.type===i.h.kSwitchingMotor&&this.name.indexOf("*")>=0?i.g.kDoor:this.type===i.h.kSwitchingMotor?i.g.kSwitchingMotor:this.type===i.h.kMood&&this.name.indexOf("$")>=0?i.g.kUnlocker:this.type===i.h.kMood&&this.name.indexOf("*")>=0?i.g.kCondition:this.type===i.h.kMood?i.g.kMood:this.type}getSerialNr(){return this.inMultiNode?this.node.getName()+"-N"+this.logicalNodeAddress+"-U"+this.logicalAddress:"N"+this.logicalNodeAddress+"-U"+this.logicalAddress}getModelName(){return this.typeName()+" "+Object(i.l)(this.node.logicalAddress)+";"+Object(i.l)(this.logicalAddress)}isCtrl(){return this.isSwitch()||this.isDimmer()||this.isUpDown()}isSwitch(){return this.type===i.h.kSwitch}isMood(){return this.type===i.h.kMood}isInput(){return this.type===i.h.kInput}isTemperature(){return this.type===i.h.kTemperature}isDimmer(){return this.type===i.h.kDimmer}isUpDown(){return this.type===i.h.kSwitchingMotor}isMedia(){return this.type==i.h.kAudio||this.type==i.h.kAV||this.type==i.h.kExtendedAudio||this.type==i.h.kVideo}setPreset(e,t){return r.a(this,void 0,void 0,(function*(){yield this.node.master.setPreset(this,e,t)}))}selectPreset(e){return r.a(this,void 0,void 0,(function*(){yield this.node.master.selectPreset(this,e)}))}sensorOnOff(e){return r.a(this,void 0,void 0,(function*(){yield this.node.master.setTempOnOff(this,e)}))}doIncDecPreset(e){return r.a(this,void 0,void 0,(function*(){yield this.node.master.doIncDecPreset(this,e)}))}audioSrcDest(e,t){return r.a(this,void 0,void 0,(function*(){yield this.node.master.setAudioSrcDest(this,e,t)}))}audioAction(e,t){return r.a(this,void 0,void 0,(function*(){yield this.node.master.sendAudioAction(this,e,t)}))}inMultiNode(){return this.node.inMultiNode()}reqState(){return r.a(this,void 0,void 0,(function*(){yield this.node.master.requestUnitStatus(this)}))}setState(e){return r.a(this,void 0,void 0,(function*(){yield this.node.master.setUnitStatus(this,e)}))}getDispayState(){switch(this.getType()){case i.g.kDimmer:return(this.status?"on":"off")+" ("+this.value+"%)";case i.g.kSwitch:case i.g.kLightbulb:case i.g.kInput:return this.status?"on":"off";case i.g.kTemperature:return isNaN(this.value)?"-":this.value/10+"C";case i.g.kCondition:case i.g.kMood:return this.status?"on":"off";case i.g.kLock:return this.status?"locked":"unlocked";case i.g.kUnlocker:return this.status?"unlocking":"locked";case i.g.kGarageDoor:case i.g.kDoor:case i.g.kSwitchingMotor:if(this.status===l.kOpening)return"opening";if(this.status===l.kClosing)return"closing";if(this.status===l.kOpen)return"open";if(this.status===l.kClosed)return"closed";if(this.status===l.kStopped)return"stopped"}return void 0!==this.status?this.status.toString():"unknown"}getDescription(){return this.getDisplayName()+", active: "+this.active+", type: "+this.typeName()+", status: "+this.status+", value: "+this.value}}const h={logger:console.log,emitter:null,setLogger(e){this.logger=e},setEmitter(e){this.emitter=e},getStr:function(e,t){return e.slice(t+1,t+e[t]+1).map(e=>String.fromCharCode(e)).join("")},makeLong:function(e,t){return 256*e[t+0]*256*256+256*e[t+1]*256+256*e[t+2]+e[t+3]},isStatus:function(e){return e===o.Mood||e===o.Dimmer||e===o.Switch||e===o.Sensor||e===o.Motor||e===o.Macro},translateError:function(e){if(e[0]!=o.ErrorMessage)return"received unexpected data: "+e;switch(e[1]){case 11:return"Wrong object method received for "+e[2]+"/"+e[3];case 12:return"Wrong Message Code received: "+e[2];case 18:return"This function can only be executed when this node is the master";case 128:return"The node database is not ready";case 129:return"Node "+e[2]+" could not be found in the database";case 130:return"Wrong node index: "+e[2];case 131:return"Unit "+e[2]+" with address "+e[3]+" could not be found in the database";case 132:return"Wrong unit index "+e[3]+" for this node "+e[2];case 133:return"Unit "+e[3]+" of node "+e[2]+" is of a different type";case 140:return"The requested operation is not allowed";case 141:return"The requested operation is not allowed because a wrong access code is used";case 142:return"The requested operation is not implemented in this software version";default:return"Unknown error"}},write:function(e,t){let n=parseInt(t[0]);if(isNaN(n)&&(n=t[0]),t instanceof Array&&(t=t.join(",")),"string"!=typeof t)throw new Error("wrong data type for sending");"["!=t[0]&&(t="["+t+"]"),this.logger("sending: "+function(e){return s[e]||"cmd"+e}(n)+" - "+t);try{return e.send(t+String.fromCharCode(10)),i.i.writeOK}catch(r){return this.logger("error sending through socket "+r.message),i.i.writeFatal}},nextMessage:function(e){const t={rest:e,isStatus:!1,message:null,cmd:0,raw:""},n=e.indexOf("[");if(n<0?t.rest="":0!=n&&(t.rest=e.substring(n)),t.rest.length>0){let e=t.rest.indexOf("]");e>=0&&(t.raw=t.rest.substring(1,e),e<=t.rest.length&&10===t.rest.charCodeAt(e+1)&&e++,t.rest=t.rest.substring(e+1),t.message=t.raw.split(",").map(e=>parseInt(e)),t.cmd=t.message[0],t.isStatus=this.isStatus(t.cmd))}return t},buildLogin:function(e){return[s.Login,3,(e=e||"").length,...e.split("").map(e=>e.charCodeAt(0))]},buildDisconnect:function(){return[s.Login,0]},buildHeartbeat:function(){return[s.Heartbeat,1]},buildDBInfo:function(){return[s.DatabaseInfo,0]},buildNodeInfo:function(e){return[s.DatabaseInfo,1,e]},buildUnitInfo:function(e,t){return[s.DatabaseInfo,2,e.logicalAddress,t]},buildRequestUnitStatus:function(e,t){return[s.DatabaseInfo,3,e.logicalAddress,t.logicalAddress,t.type]},buildRequestSchedule:()=>[218,0],getCmdAndMethod:function(e,t){const n=(e,t)=>-1==e&&t>0?t-1:-2==e&&t<100?t+1:t;switch(e.type){case i.h.kDimmer:return"boolean"==typeof t?{cmd:s.SetDimmer,method:t?10:9}:t<=0?{cmd:s.SetDimmer,method:9}:{cmd:s.SetDimmer,method:3,value:Math.max(Math.min(t,99),1)};case i.h.kSwitch:return{cmd:s.SetSwitch,method:t?3:2};case i.h.kInput:case i.h.kMood:return t<0?{cmd:s.SetControl,method:2}:{cmd:s.SetControl,method:3,value:t?1:0};case i.h.kSwitchingMotor:return{cmd:s.SetMotor,method:t};case i.h.kTemperature:return{cmd:s.SetSensor,method:13,value:t};case i.h.kAudio:return"boolean"==typeof t?{cmd:s.SetBasicAudio,method:t?4:5}:{cmd:s.SetBasicAudio,method:-1==t?9:8};case i.h.kExtendedAudio:return"boolean"==typeof t?{cmd:s.SetExtendedAudio,method:t?4:5,data:[e.destinationId]}:t<0?{cmd:s.SetExtendedAudio,method:12,data:[e.destinationId,n(t,e.value)]}:{cmd:s.SetExtendedAudio,method:12,data:[e.destinationId,e.value]};case i.h.kAV:const r=e.destination?e.destination.source:255;return"boolean"==typeof t?{cmd:s.SetAVMatrix,method:t?2:3,data:[e.destinationId,r]}:t<0?{cmd:s.SetAVMatrix,method:-1==t?8:7,data:[e.destinationId,1]}:{cmd:s.SetAVMatrix,method:4,data:[e.destinationId,t]};case i.h.kIRTX:case i.h.kVideo:default:return{cmd:0,method:0,value:0}}},buildSetCmd:function(e,t,n){let r=this.getCmdAndMethod(t,n);return r.cmd&&(r.message=[r.cmd,r.method,e.logicalAddress,t.logicalAddress],void 0!==r.value&&r.message.push(r.value),void 0!==r.data&&r.message.push(...r.data),r.reqStatus=r.cmd===s.SetDimmer&&3===r.method),r},buildSelectPreset(e,t,n){return[this.getCmdAndMethod(t,n).cmd,13,e.logicalAddress,t.logicalAddress,n]},buildSetPreset:(e,t,n,r)=>[s.SetSensor,1,e.logicalAddress,t.logicalAddress,n,Math.floor(r/256),r%256],buildIncDecPreset:(e,t,n)=>[s.SetSensor,n?5:6,e.logicalAddress,t.logicalAddress],buildSensorOnOff:(e,t,n)=>[s.SetSensor,3,e.logicalAddress,t.logicalAddress,n?1:0],buildSendSchedule:e=>[s.SetSchedule,0,Math.max(0,Math.min(3,e))],buildSendDateTime(e){const t=e.getFullYear();return[s.SetDateTime,0,49,49,49,49,e.getHours(),e.getMinutes(),e.getSeconds(),0,e.getDate(),e.getMonth()+1,Math.floor(t/100),t%100]},getAudioIds(e,t,n){const r=Math.max(0,Math.min(e.destinations.length-1,n));return{destNr:r,srcNr:Math.max(0,Math.min(e.destinations[r].sources.length,t)),unitAdr:e.destinations[r].unitaddress,nodeAdr:e.destinations[r].nodeaddress}},buildAudioSrcDest(e,t,n,r){if(t.type===i.h.kAudio)return[s.SetBasicAudio,1,e.logicalAddress,t.logicalAddress,Math.max(0,Math.min(7,n))];if(t.type===i.h.kExtendedAudio){if(!t.destinations||!t.destinations.length)return null;const{destNr:e,srcNr:i,unitAdr:o,nodeAdr:a}=this.getAudioIds(t,n,r);return[s.SetExtendedAudio,1,a,o,e,i]}return null},actions:{basic:{back:38,skipback:36,play:32,pause:34,stop:33,skipforward:35,forward:37,function:23,functions:{1:0,2:1,3:2,4:3,5:4,6:5,7:6,8:7,9:8,0:9,up:10,down:11,left:12,right:13,enter:14,"-":15,menu:16,guide:17,info:18,exit:19}},extended:{back:21,skipback:19,play:15,pause:17,stop:16,skipforward:18,forward:20,function:24,functions:{1:0,2:1,3:2,4:3,5:4,6:5,7:6,8:7,9:8,0:9,up:10,down:11,left:12,right:13,enter:14,"-":15,menu:16,guide:17,info:18,exit:19}}},buildAudioAction(e,t,n,r){let o=null;if(t.type===i.h.kAudio)o=[s.SetBasicAudio,this.actions.basic[n],e.logicalAddress,t.logicalAddress],r&&o.push(this.actions.basic.functions[r]);else if(t.type===i.h.kExtendedAudio){const{destNr:e,unitAdr:i,nodeAdr:a}=this.getAudioIds(t,0,t.destinationId);o=[s.SetExtendedAudio,this.actions.extended[n],a,i,e],r&&o.push(this.actions.extended.functions[r])}return o},receiveStatus:function(e,t){e.cmd===o.Sensor?(t.value=256*e.message[9]+e.message[10],t.status=e.message[7],t.preset=e.message[6]?e.message[8]:-1,t.sun=256*e.message[11]+e.message[12],t.hsun=256*e.message[13]+e.message[14],t.moon=256*e.message[15]+e.message[16],t.hmoon=256*e.message[17]+e.message[18]):e.cmd===o.Switch?(t.status=e.message[6],t.value=e.message[6]>0):e.cmd===o.Dimmer?(t.status=e.message[6],t.value=e.message[7]):e.cmd===o.Mood?(t.status=e.message[6],t.value=0!=e.message[6]):e.cmd===o.Motor?(t.status=e.message[6],t.value=e.message[6]):(e.cmd=o.Macro)&&(7!=e.message[4]&&5!=e.message[4]||1!=e.message[5]?(e.message[4]<8||10==e.message[4])&&(t.status=e.message[5]):t.status=2,(1!==e.message[4]&&6!==e.message[4]&&7!==e.message[4]||1!==e.message[5])&&11!==e.message[4]||(t.value=256*e.message[6]+e.message[7])),this.emitter.emit("update",t)},receiveAudioStatus:function(e,t){e.destinationId=t.cmd===o.AudioExtendedStatus?t.message[6]:0,e.destinations&&t.cmd===o.AudioExtendedStatus&&(e.destination=e.destinations.find(t=>t.id==e.destinationId),!e.destination&&e.destinations&&e.destinations.length&&(e.destination=e.destinations[0],e.destinationId=0),e.destinations.forEach(e=>{e.volume=t.message[e.id+11],e.source=t.message[e.id+7]})),e.destinations&&t.cmd===o.AudioStatus&&(e.destination=e.destinations[0],e.destination.volume=t.message[7],e.destination.source=t.message[6],e.destination.disc=255!=t.message[8]?t.message[8]+1:0,e.destination.track=255!=t.message[9]?t.message[9]+1:0,e.destination.preset=255!=t.message[10]?t.message[10]+1:0,e.destination.frequency=255!=t.message[11]?t.message[11]+"."+Object(i.o)(t.message[12]):"",e.destination.basictype!=t.message[5]&&(e.destination.basictype=Object(i.d)(t.message[5]),e.destination.sources=i.a[e.destination.basictype],this.logger("**** changed audio type "+t.message[5]+" - "+e.name+" = "+e.getNumber()))),e.destination&&(e.value=e.destination.volume,e.status=255==e.destination.source?0:1)},makeDBInfo:e=>({nrNodes:e[2]}),makeNodeInfo(e){let t=this.getStr(e,8),n=t.length;return{name:t,index:e[2],logicalAddress:e[3],physicalAddress:this.makeLong(e,4),nrUnits:e[n+9],type:e[n+10],flags:e[n+11]}},makeUnitInfo(e){let t=this.getStr(e,6),n=t.length;return{name:t,logicalReqNodeAddress:e[2],index:e[3],logicalNodeAddress:e[4],logicalAddress:e[5],type:e[n+7],flags:e[n+8]}}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),i=n("quSY");function s(e,t){return new r.a(n=>{const r=new i.a;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},k4ps:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return E})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return C})),n.d(t,"i",(function(){return x})),n.d(t,"j",(function(){return u}));var r=n("wEJo"),i=n("1vRN");const s="ionViewWillEnter",o="ionViewDidEnter",a="ionViewWillLeave",l="ionViewDidLeave",c="ionViewWillUnload",u=e=>new Promise((t,n)=>{Object(r.f)(()=>{d(e),h(e).then(n=>{n.animation&&n.animation.destroy(),f(e),t(n)},t=>{f(e),n(t)})})}),d=e=>{const t=e.enteringEl,n=e.leavingEl;k(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),x(t,!1),n&&x(n,!1)},h=async e=>{const t=await p(e);return t&&r.a.isBrowser?g(t,e):m(e)},f=e=>{const t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},p=async e=>{if(e.leavingEl&&e.animated&&0!==e.duration)return e.animationBuilder?e.animationBuilder:"ios"===e.mode?(await Promise.resolve().then(n.bind(null,"lTIg"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"RQGG"))).mdTransitionAnimation},g=async(e,t)=>{await b(t,!0);const n=e(t.baseEl,t);w(t.enteringEl,t.leavingEl);const r=await y(n,t);return t.progressCallback&&t.progressCallback(void 0),r&&_(t.enteringEl,t.leavingEl),{hasCompleted:r,animation:n}},m=async e=>{const t=e.enteringEl,n=e.leavingEl;return await b(e,!1),w(t,n),_(t,n),{hasCompleted:!0}},b=async(e,t)=>{const n=(void 0!==e.deepWait?e.deepWait:t)?[E(e.enteringEl),E(e.leavingEl)]:[S(e.enteringEl),S(e.leavingEl)];await Promise.all(n),await v(e.viewIsReady,e.enteringEl)},v=async(e,t)=>{e&&await e(t)},y=(e,t)=>{const n=t.progressCallback,r=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),r},w=(e,t)=>{C(t,a),C(e,s)},_=(e,t)=>{C(e,o),C(t,l)},C=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},S=e=>e?new Promise(t=>Object(i.c)(e,t)):Promise.resolve(),E=async e=>{const t=e;if(t){if(null!=t.componentOnReady&&null!=await t.componentOnReady())return;await Promise.all(Array.from(t.children).map(E))}},x=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},k=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},A=e=>e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kLfG:function(e,t,n){var r={"./ion-action-sheet.entry.js":["dUtr",0,13],"./ion-alert.entry.js":["Q8AI",0,14],"./ion-app_8.entry.js":["hgI1",0,15],"./ion-avatar_3.entry.js":["CfoV",0,16],"./ion-back-button.entry.js":["Nt02",0,17],"./ion-backdrop.entry.js":["Q2Bp",18],"./ion-button_2.entry.js":["0Pbj",0,19],"./ion-card_5.entry.js":["ydQj",0,20],"./ion-checkbox.entry.js":["4fMi",0,21],"./ion-chip.entry.js":["czK9",0,22],"./ion-col_3.entry.js":["/CAe",23],"./ion-datetime_3.entry.js":["WgF3",0,24],"./ion-fab_3.entry.js":["uQcF",0,25],"./ion-img.entry.js":["wHD8",26],"./ion-infinite-scroll_2.entry.js":["2lz6",27],"./ion-input.entry.js":["ercB",0,28],"./ion-item-option_3.entry.js":["MGMP",0,29],"./ion-item_8.entry.js":["9bur",0,30],"./ion-loading.entry.js":["cABk",0,31],"./ion-menu_3.entry.js":["kyFE",0,32],"./ion-modal.entry.js":["TvZU",0,33],"./ion-nav_2.entry.js":["vnES",0,34],"./ion-popover.entry.js":["qCuA",0,35],"./ion-progress-bar.entry.js":["0tOe",0,36],"./ion-radio_2.entry.js":["h11V",0,37],"./ion-range.entry.js":["XGij",0,38],"./ion-refresher_2.entry.js":["nYbb",0,39],"./ion-reorder_2.entry.js":["smMY",0,40],"./ion-ripple-effect.entry.js":["STjf",41],"./ion-route_4.entry.js":["k5eQ",0,42],"./ion-searchbar.entry.js":["OR5t",0,43],"./ion-segment_2.entry.js":["fSgp",0,44],"./ion-select_3.entry.js":["lfGF",0,45],"./ion-slide_2.entry.js":["5xYT",46],"./ion-spinner.entry.js":["nI0H",0,47],"./ion-split-pane.entry.js":["NAQR",48],"./ion-tab-bar_2.entry.js":["knkW",0,49],"./ion-tab_2.entry.js":["TpdJ",0,50],"./ion-text.entry.js":["ISmu",0,51],"./ion-textarea.entry.js":["U7LX",0,52],"./ion-toast.entry.js":["L3sA",0,53],"./ion-toggle.entry.js":["IUOf",0,54],"./ion-virtual-scroll.entry.js":["8Mb5",55]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id="kLfG",e.exports=i},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},lTIg:function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",(function(){return d})),n.d(t,"shadow",(function(){return o}));var r=n("meiF"),i=n("k4ps");n("1vRN"),n("wEJo");const s=e=>document.querySelector(e+".ion-cloned-element"),o=e=>e.shadowRoot||e,a=e=>{const t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){const e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{const n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs");let r=[];if(null!=n){const e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(r=e.querySelectorAll("ion-buttons"))}else r=e.querySelectorAll("ion-buttons");for(const i of r){const e=i.closest("ion-header"),n=e&&!e.classList.contains("header-collapse-condense-inactive"),r=i.querySelector("ion-back-button"),s=i.classList.contains("buttons-collapse"),o="start"===i.slot||""===i.slot;if(null!==r&&o&&(s&&n&&t||!s))return r}return null},c=(e,t,n,i,a,l)=>{const c=t?`calc(100% - ${l.right+4}px)`:l.left-4+"px",u=t?"7px":"-7px",d=t?"-4px":"4px",h=t?"-4px":"4px",f=t?"right":"left",p=t?"left":"right",g=n?[{offset:0,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`}],m=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${h}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${h}, ${l.top-46}px, 0) scale(1)`}],b=Object(r.a)(),v=Object(r.a)(),y=s("ion-back-button"),w=o(y).querySelector(".button-text"),_=o(y).querySelector("ion-icon");y.text=i.text,y.mode=i.mode,y.icon=i.icon,y.color=i.color,y.disabled=i.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),v.addElement(_),b.addElement(w),b.beforeStyles({"transform-origin":f+" center"}).beforeAddWrite(()=>{i.style.setProperty("display","none"),y.style.setProperty(f,c)}).afterAddWrite(()=>{i.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(f)}).keyframes(g),v.beforeStyles({"transform-origin":p+" center"}).keyframes(m),e.addAnimation([b,v])},u=(e,t,n,i,o,a)=>{const l=t?`calc(100% - ${o.right}px)`:o.left+"px",c=t?"-18px":"18px",u=t?"right":"left",d=n?[{offset:0,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.5)`}],h=s("ion-title"),f=Object(r.a)();h.innerText=i.innerText,h.size=i.size,h.color=i.color,f.addElement(h),f.beforeStyles({"transform-origin":u+" center",height:"46px",display:"",position:"relative",[u]:l}).beforeAddWrite(()=>{i.style.setProperty("display","none")}).afterAddWrite(()=>{i.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(d),e.addAnimation(f)},d=(e,t)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",s="opacity",d="transform",h="0%",f=.8,p="rtl"===e.ownerDocument.dir,g=p?"-99.5%":"99.5%",m=p?"33%":"-33%",b=t.enteringEl,v=t.leavingEl,y="back"===t.direction,w=b.querySelector(":scope > ion-content"),_=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),C=b.querySelectorAll(":scope > ion-header > ion-toolbar"),S=Object(r.a)(),E=Object(r.a)();if(S.addElement(b).duration(t.duration||540).easing(t.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){const t=Object(r.a)();t.addElement(e),S.addAnimation(t)}if(w||0!==C.length||0!==_.length?(E.addElement(w),E.addElement(_)):E.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(E),y?E.beforeClearStyles([s]).fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(s,f,1):E.beforeClearStyles([s]).fromTo("transform",`translateX(${g})`,`translateX(${h})`),w){const e=o(w).querySelector(".transition-effect");if(e){const t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),i=Object(r.a)(),o=Object(r.a)(),a=Object(r.a)();i.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),o.addElement(t).beforeClearStyles([s]).fromTo(s,0,.1),a.addElement(n).beforeClearStyles([s]).fromTo(s,.03,.7),i.addAnimation([o,a]),E.addAnimation([i])}}const x=b.querySelector("ion-header.header-collapse-condense"),{forward:k,backward:A}=((e,t,n,r,i)=>{const s=l(r,n),o=a(i),d=a(r),h=l(i,n),f=null!==s&&null!==o&&!n,p=null!==d&&null!==h&&n;if(f){const r=o.getBoundingClientRect(),i=s.getBoundingClientRect();u(e,t,n,o,r,i),c(e,t,n,s,r,i)}else if(p){const r=d.getBoundingClientRect(),i=h.getBoundingClientRect();u(e,t,n,d,r,i),c(e,t,n,h,r,i)}return{forward:f,backward:p}})(S,p,y,b,v);if(C.forEach(e=>{const t=Object(r.a)();t.addElement(e),S.addAnimation(t);const n=Object(r.a)();n.addElement(e.querySelector("ion-title"));const i=Object(r.a)(),a=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive");let u;u=a.filter(y?e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t}:e=>!e.classList.contains("buttons-collapse")),i.addElement(u);const d=Object(r.a)();d.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const f=Object(r.a)();f.addElement(o(e).querySelector(".toolbar-background"));const b=Object(r.a)(),v=e.querySelector("ion-back-button");if(v&&b.addElement(v),t.addAnimation([n,i,d,f,b]),i.fromTo(s,.01,1),d.fromTo(s,.01,1),y)c||n.fromTo("transform",`translateX(${m})`,`translateX(${h})`).fromTo(s,.01,1),d.fromTo("transform",`translateX(${m})`,`translateX(${h})`),b.fromTo(s,.01,1);else if(x||n.fromTo("transform",`translateX(${g})`,`translateX(${h})`).fromTo(s,.01,1),d.fromTo("transform",`translateX(${g})`,`translateX(${h})`),f.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?f.fromTo("transform",p?"translateX(-100%)":"translateX(100%)","translateX(0px)"):f.fromTo(s,.01,"var(--opacity)"),k||b.fromTo(s,.01,1),v&&!k){const e=Object(r.a)();e.addElement(o(v).querySelector(".button-text")).fromTo("transform",p?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(e)}}),v){const e=Object(r.a)(),t=v.querySelector(":scope > ion-content"),n=v.querySelectorAll(":scope > ion-header > ion-toolbar"),a=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(t||0!==n.length||0!==a.length?(e.addElement(t),e.addElement(a)):e.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(e),y){e.beforeClearStyles([s]).fromTo("transform",`translateX(${h})`,p?"translateX(-100%)":"translateX(100%)");const t=Object(i.g)(v);S.afterAddWrite(()=>{"normal"===S.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(s,1,f);if(t){const n=o(t).querySelector(".transition-effect");if(n){const t=n.querySelector(".transition-cover"),i=n.querySelector(".transition-shadow"),o=Object(r.a)(),a=Object(r.a)(),l=Object(r.a)();o.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([s]).fromTo(s,.1,0),l.addElement(i).beforeClearStyles([s]).fromTo(s,.7,.03),o.addAnimation([a,l]),e.addAnimation([o])}}n.forEach(e=>{const t=Object(r.a)();t.addElement(e);const n=Object(r.a)();n.addElement(e.querySelector("ion-title"));const i=Object(r.a)(),a=e.querySelectorAll("ion-buttons,[menuToggle]"),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive"),u=Array.from(a).filter(e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t});i.addElement(u);const f=Object(r.a)(),g=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");g.length>0&&f.addElement(g);const b=Object(r.a)();b.addElement(o(e).querySelector(".toolbar-background"));const v=Object(r.a)(),w=e.querySelector("ion-back-button");if(w&&v.addElement(w),t.addAnimation([n,i,f,v,b]),S.addAnimation(t),v.fromTo(s,.99,0),i.fromTo(s,.99,0),f.fromTo(s,.99,0),y){if(c||n.fromTo("transform",`translateX(${h})`,p?"translateX(-100%)":"translateX(100%)").fromTo(s,.99,0),f.fromTo("transform",`translateX(${h})`,p?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?b.fromTo("transform","translateX(0px)",p?"translateX(-100%)":"translateX(100%)"):b.fromTo(s,"var(--opacity)",0),w&&!A){const e=Object(r.a)();e.addElement(o(w).querySelector(".button-text")).fromTo("transform",`translateX(${h})`,`translateX(${(p?-124:124)+"px"})`),t.addAnimation(e)}}else c||n.fromTo("transform",`translateX(${h})`,`translateX(${m})`).fromTo(s,.99,0).afterClearStyles([d,s]),f.fromTo("transform",`translateX(${h})`,`translateX(${m})`).afterClearStyles([d,s]),v.afterClearStyles([s]),n.afterClearStyles([s]),i.afterClearStyles([s])})}return S}catch(n){throw n}}},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("SpAZ");function i(...e){return s(e)}function s(e){return 0===e.length?r.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},meiF:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("1vRN");let i;const s=e=>{if(void 0===i){const t=void 0!==e.style.webkitAnimationName;i=void 0===e.style.animationName&&t?"-webkit-":""}return i},o=(e,t,n)=>{const r=t.startsWith("animation")?s(e):"";e.style.setProperty(r+t,n)},a=(e,t)=>{const n=t.startsWith("animation")?s(e):"";e.style.removeProperty(n+t)},l=[],c=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},u=e=>{let t,n,i,u,d,h,f,p,g,m,b,v,y,w=[],_=[],C=[],S=!1,E={},x=[],k=[],A={},O=0,T=!1,I=!1,$=!0,N=!1,j=!0;const R=e,P=[],D=[],M=[],V=[],L=[],U=[],F=[],z=[],B=[],q=[],H="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,G="function"==typeof Element&&"function"==typeof Element.prototype.animate&&H,W=(e,t)=>((t&&t.oneTimeCallback?D:P).push({c:e,o:t}),y),K=()=>{if(G)q.forEach(e=>{e.cancel()}),q.length=0;else{const e=M.slice();Object(r.q)(()=>{e.forEach(e=>{a(e,"animation-name"),a(e,"animation-duration"),a(e,"animation-timing-function"),a(e,"animation-iteration-count"),a(e,"animation-delay"),a(e,"animation-play-state"),a(e,"animation-fill-mode"),a(e,"animation-direction")})})}},X=()=>{L.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),L.length=0},Q=()=>void 0!==d?d:f?f.getFill():"both",Z=()=>void 0!==g?g:void 0!==h?h:f?f.getDirection():"normal",Y=()=>T?"linear":void 0!==i?i:f?f.getEasing():"linear",J=()=>I?0:void 0!==m?m:void 0!==n?n:f?f.getDuration():0,ee=()=>void 0!==u?u:f?f.getIterations():1,te=()=>void 0!==b?b:void 0!==t?t:f?f.getDelay():0,ne=()=>{0!==O&&(O--,0===O&&((()=>{ue(),z.forEach(e=>e()),B.forEach(e=>e());const e=$?1:0,t=x,n=k,r=A;M.forEach(e=>{const i=e.classList;t.forEach(e=>i.add(e)),n.forEach(e=>i.remove(e));for(const t in r)r.hasOwnProperty(t)&&o(e,t,r[t])}),P.forEach(t=>t.c(e,y)),D.forEach(t=>t.c(e,y)),D.length=0,j=!0,$&&(N=!0),$=!0})(),f&&f.animationFinish()))},re=(t=!0)=>{(()=>{U.forEach(e=>e()),F.forEach(e=>e());const e=_,t=C,n=E;M.forEach(r=>{const i=r.classList;e.forEach(e=>i.add(e)),t.forEach(e=>i.remove(e));for(const e in n)n.hasOwnProperty(e)&&o(r,e,n[e])})})(),w.length>0&&(G?(M.forEach(e=>{const t=e.animate(w,{id:R,delay:te(),duration:J(),easing:Y(),iterations:ee(),fill:Q(),direction:Z()});t.pause(),q.push(t)}),q.length>0&&(q[0].onfinish=()=>{ne()})):((t=!0)=>{X();const n=((i=w).forEach(e=>{for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{const r=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();r!==t&&(e[r]=n,delete e[t])}}}),i);var i;M.forEach(i=>{if(n.length>0){const a=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const r in e)e.hasOwnProperty(r)&&"offset"!==r&&n.push(`${r}: ${e[r]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(n);v=void 0!==e?e:(e=>{let t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t})(a);const c=((e,t,n)=>{const r=(e=>{const t=e.getRootNode();return t.head||t})(n),i=s(n),o=r.querySelector("#"+e);if(o)return o;const a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent=`@${i}keyframes ${e} { ${t} } @${i}keyframes ${e}-alt { ${t} }`,r.appendChild(a),a})(v,a,i);L.push(c),o(i,"animation-duration",J()+"ms"),o(i,"animation-timing-function",Y()),o(i,"animation-delay",te()+"ms"),o(i,"animation-fill-mode",Q()),o(i,"animation-direction",Z());const u=ee()===1/0?"infinite":ee().toString();o(i,"animation-iteration-count",u),o(i,"animation-play-state","paused"),t&&o(i,"animation-name",c.id+"-alt"),Object(r.q)(()=>{o(i,"animation-name",c.id||null)})}})})(t)),S=!0},ie=e=>{if(e=Math.min(Math.max(e,0),.9999),G)q.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+J()*e,t.pause()});else{const t=`-${J()*e}ms`;M.forEach(e=>{w.length>0&&(o(e,"animation-delay",t),o(e,"animation-play-state","paused"))})}},se=e=>{q.forEach(e=>{e.effect.updateTiming({delay:te(),duration:J(),easing:Y(),iterations:ee(),fill:Q(),direction:Z()})}),void 0!==e&&ie(e)},oe=(e=!0,t)=>{Object(r.q)(()=>{M.forEach(n=>{o(n,"animation-name",v||null),o(n,"animation-duration",J()+"ms"),o(n,"animation-timing-function",Y()),o(n,"animation-delay",void 0!==t?`-${t*J()}ms`:te()+"ms"),o(n,"animation-fill-mode",Q()||null),o(n,"animation-direction",Z()||null);const i=ee()===1/0?"infinite":ee().toString();o(n,"animation-iteration-count",i),e&&o(n,"animation-name",v+"-alt"),Object(r.q)(()=>{o(n,"animation-name",v||null)})})})},ae=(e=!1,t=!0,n)=>(e&&V.forEach(r=>{r.update(e,t,n)}),G?se(n):oe(t,n),y),le=()=>{S&&(G?q.forEach(e=>{e.pause()}):M.forEach(e=>{o(e,"animation-play-state","paused")}))},ce=()=>{p=void 0,ne()},ue=()=>{p&&clearTimeout(p)},de=e=>new Promise(t=>{e&&e.sync&&(I=!0,W(()=>I=!1,{oneTimeCallback:!0})),S||re(),N&&(G?(ie(0),se()):oe(),N=!1),j&&(O=V.length+1,j=!1),W(()=>t(),{oneTimeCallback:!0}),V.forEach(e=>{e.play()}),G?(q.forEach(e=>{e.play()}),0!==w.length&&0!==M.length||ne()):(()=>{if(ue(),Object(r.q)(()=>{M.forEach(e=>{w.length>0&&o(e,"animation-play-state","running")})}),0===w.length||0===M.length)ne();else{const e=te()||0,t=J()||0,n=ee()||1;isFinite(n)&&(p=setTimeout(ce,e+t*n+100)),((e,t)=>{let n;const i={passive:!0},s=t=>{e===t.target&&(n&&n(),ue(),Object(r.q)(()=>{M.forEach(e=>{a(e,"animation-duration"),a(e,"animation-delay"),a(e,"animation-play-state")}),Object(r.q)(ne)}))};e&&(e.addEventListener("webkitAnimationEnd",s,i),e.addEventListener("animationend",s,i),n=()=>{e.removeEventListener("webkitAnimationEnd",s,i),e.removeEventListener("animationend",s,i)})})(M[0])}})()}),he=(e,t)=>{const n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[{offset:0,[e]:t},...w]:n[e]=t,y};return y={parentAnimation:f,elements:M,childAnimations:V,id:R,animationFinish:ne,from:he,to:(e,t)=>{const n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[...w,{offset:1,[e]:t}]:n[e]=t,y},fromTo:(e,t,n)=>he(e,t).to(e,n),parent:e=>(f=e,y),play:de,pause:()=>(V.forEach(e=>{e.pause()}),le(),y),stop:()=>{V.forEach(e=>{e.stop()}),S&&(K(),S=!1),T=!1,I=!1,j=!0,g=void 0,m=void 0,b=void 0,O=0,N=!1,$=!0},destroy:e=>(V.forEach(t=>{t.destroy(e)}),(e=>{K(),e&&X()})(e),M.length=0,V.length=0,w.length=0,P.length=0,D.length=0,S=!1,j=!0,y),keyframes:e=>(w=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),V.push(t);else e.parent(y),V.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)M.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)M.push(e[t]);else console.error("Invalid addElement value");return y},update:ae,fill:e=>(d=e,ae(!0),y),direction:e=>(h=e,ae(!0),y),iterations:e=>(u=e,ae(!0),y),duration:e=>(G||0!==e||(e=1),n=e,ae(!0),y),easing:e=>(i=e,ae(!0),y),delay:e=>(t=e,ae(!0),y),getWebAnimations:()=>q,getKeyframes:()=>w,getFill:Q,getDirection:Z,getDelay:te,getIterations:ee,getEasing:Y,getDuration:J,afterAddRead:e=>(z.push(e),y),afterAddWrite:e=>(B.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)A[t]="";return y},afterStyles:(e={})=>(A=e,y),afterRemoveClass:e=>(k=c(k,e),y),afterAddClass:e=>(x=c(x,e),y),beforeAddRead:e=>(U.push(e),y),beforeAddWrite:e=>(F.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)E[t]="";return y},beforeStyles:(e={})=>(E=e,y),beforeRemoveClass:e=>(C=c(C,e),y),beforeAddClass:e=>(_=c(_,e),y),onFinish:W,progressStart:(e=!1,t)=>(V.forEach(n=>{n.progressStart(e,t)}),le(),T=e,S?ae(!1,!0,t):re(),y),progressStep:e=>(V.forEach(t=>{t.progressStep(e)}),ie(e),y),progressEnd:(e,t,n)=>(T=!1,V.forEach(r=>{r.progressEnd(e,t,n)}),void 0!==n&&(m=n),N=!1,$=!0,0===e?(g="reverse"===Z()?"normal":"reverse","reverse"===g&&($=!1),G?(ae(),ie(1-t)):(b=(1-t)*J()*-1,ae(!1,!1))):1===e&&(G?(ae(),ie(t)):(b=t*J()*-1,ae(!1,!1))),void 0!==e&&(W(()=>{m=void 0,g=void 0,b=void 0},{oneTimeCallback:!0}),f||de()),y)}}},mrSG:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function o(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{l(r.next(e))}catch(t){s(t)}}function a(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(a){s=[6,a],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}},pKmL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{}},pLZG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pMnS:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("8Y7J"),i=n("iInd"),s=r.nb({encapsulation:2,styles:[],data:{}});function o(e){return r.Kb(0,[(e()(),r.pb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.ob(1,212992,null,0,i.o,[i.b,r.M,r.j,[8,null],r.h],null,null)],(function(e,t){e(t,1,0)}),null)}function a(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,1,"ng-component",[],null,null,null,o,s)),r.ob(1,49152,null,0,i.C,[],null,null)],null,null)}var l=r.lb("ng-component",i.C,a,{},{},[])},quSY:function(e,t,n){"use strict";var r=n("DH7j"),i=n("XoHu"),s=n("n6bG");const o=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();n.d(t,"a",(function(){return a}));let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:c,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(s.a)(c)){a&&(this._unsubscribe=void 0);try{c.call(this)}catch(d){t=d instanceof o?l(d.errors):[d]}}if(Object(r.a)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if(Object(i.a)(n))try{n.unsubscribe()}catch(d){t=t||[],d instanceof o?t=t.concat(l(d.errors)):t.push(d)}}}if(t)throw new o(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function l(e){return e.reduce((e,t)=>e.concat(t instanceof o?t.errors:t),[])}},r7QR:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("B4Jq"),i=n("1vRN"),s=n("E/Mt"),o=n("meiF");const a=e=>Object(o.a)().duration(e?400:300),l=e=>{let t,n;const r=e.width+8,i=Object(o.a)(),l=Object(o.a)();e.isEndSide?(t=r+"px",n="0px"):(t=-r+"px",n="0px"),i.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const c="ios"===Object(s.b)(e),u=c?.2:.25;return l.addElement(e.backdropEl).fromTo("opacity",.01,u),a(c).addAnimation([i,l])},c=e=>{let t,n;const r=Object(s.b)(e),i=e.width;e.isEndSide?(t=-i+"px",n=i+"px"):(t=i+"px",n=-i+"px");const l=Object(o.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=Object(o.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),u=Object(o.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a("ios"===r).addAnimation([l,c,u])},u=e=>{const t=Object(s.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",r=Object(o.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return a("ios"===t).addAnimation(r)},d=(()=>{const e=new Map,t=[],n=async e=>(await p(),"start"===e||"end"===e?f(t=>t.side===e&&!t.disabled)||f(t=>t.side===e):null!=e?f(t=>t.menuId===e):f(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),s=async()=>(await p(),d()),o=(t,n)=>{e.set(t,n)},a=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},d=()=>f(e=>e._isOpen),h=()=>t.some(e=>e.isAnimating),f=e=>{const n=t.find(e);if(void 0!==n)return n.el},p=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>new Promise(t=>Object(i.c)(e,t))));return o("reveal",u),o("push",c),o("overlay",l),"undefined"!=typeof document&&document.addEventListener("ionBackButton",e=>{const t=d();t&&e.detail.register(r.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:o,get:n,getMenus:async()=>(await p(),t.map(e=>e.el)),getOpen:s,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const r=await n(t);return r&&(r.swipeGesture=e),r},isAnimating:async()=>(await p(),h()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await s()},enable:async(e,t)=>{const r=await n(t);return r&&(r.disabled=!e),r},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):s());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:d,_createAnimation:(t,n)=>{const r=e.get(t);if(!r)throw new Error("animation not registered");return r(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||a(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(h())return!1;if(t){const t=await s();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:a}})()},s7LF:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("cUpR"),s=n("HDdC"),o=n("DH7j"),a=n("lJxs"),l=n("XoHu"),c=n("Cfvw");function u(e,t){return new s.a(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let a=0;a<r;a++){const l=Object(c.a)(e[a]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,o++),i[a]=e},error:e=>n.error(e),complete:()=>{s++,s!==r&&u||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}n.d(t,"f",(function(){return Q})),n.d(t,"g",(function(){return x})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return X})),n.d(t,"a",(function(){return Z}));const d=new r.o("NgValueAccessor");class h{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class f extends h{get formDirective(){return null}get path(){return null}}function p(){throw new Error("unimplemented")}class g extends h{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return p()}get asyncValidator(){return p()}}class m extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}function b(e){return null==e||0===e.length}const v=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(e){return t=>{if(b(t.value)||b(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(b(t.value)||b(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return b(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return b(e.value)||v.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(b(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return y.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(b(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(w);return 0==t.length?null:function(e){return C(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(w);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(Object(o.a)(t))return u(t,null);if(Object(l.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&Object(o.a)(e[0])?e[0]:e,null).pipe(Object(a.a)(e=>t(...e)))}return u(e,null)}(function(e,t){return t.map(t=>t(e))}(e,t).map(_)).pipe(Object(a.a)(C))}}}function w(e){return null!=e}function _(e){const t=Object(r.wb)(e)?Object(c.a)(e):e;if(!Object(r.vb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function C(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function S(e){return e.validate?t=>e.validate(t):e}function E(e){return e.validate?t=>e.validate(t):e}class x{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}const k='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',A='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';function O(e,t){return[...t.path,e]}function T(e,t){e||$(t,"Cannot find control with"),t.valueAccessor||$(t,"No value accessor for form control with"),e.validator=y.compose([e.validator,t.validator]),e.asyncValidator=y.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&I(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&I(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function I(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function N(e){return null!=e?y.compose(e.map(S)):null}function j(e){return null!=e?y.composeAsync(e.map(E)):null}const R=[class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=r.xb}set compareWith(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=r.xb}set compareWith(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),i=this._getOptionValue(r.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(g),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}];function P(e){const t=M(e)?e.validators:e;return Array.isArray(t)?N(t):t||null}function D(e,t){const n=M(t)?t.asyncValidators:e;return Array.isArray(n)?j(n):n||null}function M(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class V{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=P(e)}setAsyncValidators(e){this.asyncValidator=D(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING";const t=_(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof U?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof F&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.m,this.statusChanges=new r.m}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){M(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class L extends V{constructor(e=null,t,n){super(P(t),D(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class U extends V{constructor(e,t,n){super(P(t),D(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof L?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class F extends V{constructor(e,t,n){super(P(t),D(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof L?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const z=(()=>Promise.resolve(null))();class B extends f{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.m,this.form=new U({},N(e),j(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){z.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),T(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){z.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this._directives,e)})}addFormGroup(e){z.then(()=>{const t=this._findContainer(e.path),n=new U({});(function(e,t){null==e&&$(t,"Cannot find control with"),e.validator=y.compose([e.validator,t.validator]),e.asyncValidator=y.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){z.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){z.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}class q{static modelParentException(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${k}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${A}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${k}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${A}`)}static ngFormWarning(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")}}const H=new r.o("NgFormSelectorWarning");class G extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return O(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return N(this._validators)}get asyncValidator(){return j(this._asyncValidators)}_checkParentType(){}}class W extends G{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof W||this._parent instanceof B||q.modelGroupParentException()}}const K=(()=>Promise.resolve(null))();class X extends g{constructor(e,t,n,s){super(),this.control=new L,this._registered=!1,this.update=new r.m,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||$(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return t.forEach(t=>{var o;t.constructor===class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.r)()?Object(i.r)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}?n=t:(o=t,R.some(e=>o.constructor===e)?(r&&$(e,"More than one built-in value accessor matches form control with"),r=t):(s&&$(e,"More than one custom value accessor matches form control with"),s=t))}),s||r||n||($(e,"No valid value accessor for form control with"),null)}(this,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object(r.xb)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?O(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return N(this._rawValidators)}get asyncValidator(){return j(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){T(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof W)&&this._parent instanceof G?q.formGroupNameException():this._parent instanceof W||this._parent instanceof B||q.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||q.missingNameException()}_updateValue(e){K.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;K.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class Q{}class Z{static withConfig(e){return{ngModule:Z,providers:[{provide:H,useValue:e.warnOnDeprecatedNgFormSelector}]}}}},sZkV:function(e,t,n){"use strict";var r=n("mrSG"),i=n("8Y7J"),s=n("s7LF"),o=n("SVse"),a=n("iInd"),l=(n("meiF"),n("lTIg"),n("RQGG"),n("bC4P"),n("iWo5"),n("E/Mt")),c=n("1vRN"),u=(n("39oe"),n("k4ps")),d=n("r7QR"),h=n("7OTs"),f=(n("y08P"),n("wEJo"));n("B4Jq");var p=n("XNiG"),g=n("xgIS"),m=n("2Vo4"),b=n("pLZG"),v=n("eIep"),y=n("7o/Q");class w{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new _(e,this.compare,this.keySelector))}}class _ extends y.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}const C=l.e;n.d(t,"a",(function(){return Rt})),n.d(t,"b",(function(){return ht})),n.d(t,"c",(function(){return T})),n.d(t,"d",(function(){return lt})),n.d(t,"e",(function(){return H})),n.d(t,"f",(function(){return G})),n.d(t,"g",(function(){return W})),n.d(t,"h",(function(){return K})),n.d(t,"i",(function(){return X})),n.d(t,"j",(function(){return Q})),n.d(t,"k",(function(){return Z})),n.d(t,"l",(function(){return Y})),n.d(t,"m",(function(){return J})),n.d(t,"n",(function(){return ee})),n.d(t,"o",(function(){return te})),n.d(t,"p",(function(){return ne})),n.d(t,"q",(function(){return re})),n.d(t,"r",(function(){return ie})),n.d(t,"s",(function(){return se})),n.d(t,"t",(function(){return oe})),n.d(t,"u",(function(){return ae})),n.d(t,"v",(function(){return le})),n.d(t,"w",(function(){return ce})),n.d(t,"x",(function(){return ue})),n.d(t,"y",(function(){return de})),n.d(t,"z",(function(){return he})),n.d(t,"A",(function(){return fe})),n.d(t,"B",(function(){return pe})),n.d(t,"C",(function(){return ge})),n.d(t,"D",(function(){return me})),n.d(t,"E",(function(){return be})),n.d(t,"F",(function(){return ve})),n.d(t,"G",(function(){return ye})),n.d(t,"H",(function(){return we})),n.d(t,"I",(function(){return _e})),n.d(t,"J",(function(){return Ce})),n.d(t,"K",(function(){return Se})),n.d(t,"L",(function(){return Ee})),n.d(t,"M",(function(){return xe})),n.d(t,"N",(function(){return ke})),n.d(t,"O",(function(){return Ae})),n.d(t,"P",(function(){return Oe})),n.d(t,"Q",(function(){return Te})),n.d(t,"R",(function(){return Ie})),n.d(t,"S",(function(){return $e})),n.d(t,"T",(function(){return Ne})),n.d(t,"U",(function(){return je})),n.d(t,"V",(function(){return Re})),n.d(t,"W",(function(){return Pe})),n.d(t,"X",(function(){return De})),n.d(t,"Y",(function(){return Me})),n.d(t,"Z",(function(){return Ve})),n.d(t,"ab",(function(){return Le})),n.d(t,"bb",(function(){return Ue})),n.d(t,"cb",(function(){return Fe})),n.d(t,"db",(function(){return ze})),n.d(t,"eb",(function(){return Ot})),n.d(t,"fb",(function(){return Be})),n.d(t,"gb",(function(){return qe})),n.d(t,"hb",(function(){return He})),n.d(t,"ib",(function(){return Ge})),n.d(t,"jb",(function(){return We})),n.d(t,"kb",(function(){return Ke})),n.d(t,"lb",(function(){return Xe})),n.d(t,"mb",(function(){return Qe})),n.d(t,"nb",(function(){return Ze})),n.d(t,"ob",(function(){return Ye})),n.d(t,"pb",(function(){return Je})),n.d(t,"qb",(function(){return et})),n.d(t,"rb",(function(){return tt})),n.d(t,"sb",(function(){return It})),n.d(t,"tb",(function(){return nt})),n.d(t,"ub",(function(){return rt})),n.d(t,"vb",(function(){return it})),n.d(t,"wb",(function(){return st})),n.d(t,"xb",(function(){return ot})),n.d(t,"yb",(function(){return at})),n.d(t,"zb",(function(){return $t})),n.d(t,"Ab",(function(){return Bt})),n.d(t,"Bb",(function(){return Lt})),n.d(t,"Cb",(function(){return Pt})),n.d(t,"Db",(function(){return Dt})),n.d(t,"Eb",(function(){return M})),n.d(t,"Fb",(function(){return dt})),n.d(t,"Gb",(function(){return I})),n.d(t,"Hb",(function(){return R})),n.d(t,"Ib",(function(){return Mt})),n.d(t,"Jb",(function(){return $})),n.d(t,"Kb",(function(){return N})),n.d(t,"Lb",(function(){return j})),n.d(t,"Mb",(function(){return Vt})),n.d(t,"Nb",(function(){return ct})),n.d(t,"Ob",(function(){return Ft}));const S=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e);class E{constructor(e,t){this.injector=e,this.el=t,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,x(this.el)}handleChangeEvent(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),x(this.el))}_handleBlurEvent(e){e===this.el.nativeElement&&(this.onTouched(),x(this.el))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let e;try{e=this.injector.get(s.c)}catch(n){}if(!e)return;e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(()=>x(this.el)));const t=e.control;t&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(e=>{if(t[e]){const n=t[e].bind(t);t[e]=(...e)=>{n(...e),x(this.el)}}})}}const x=e=>{S(()=>{const t=e.nativeElement,n=k(t);A(t,n);const r=t.closest("ion-item");r&&A(r,n)})},k=e=>{const t=e.classList,n=[];for(let r=0;r<t.length;r++){const e=t.item(r);null!==e&&O(e,"ng-")&&n.push("ion-"+e.substr(3))}return n},A=(e,t)=>{const n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(e=>n.remove(e)),t.forEach(e=>n.add(e))},O=(e,t)=>e.substr(0,t.length)===t;let T=class extends E{constructor(e,t){super(e,t)}writeValue(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,x(this.el)}_handleIonChange(e){this.handleChangeEvent(e,e.checked)}},I=class extends E{constructor(e,t){super(e,t)}_handleIonChange(e){this.handleChangeEvent(e,e.value)}registerOnChange(e){super.registerOnChange(t=>{e(""===t?null:parseFloat(t))})}},$=class extends E{constructor(e,t){super(e,t)}_handleIonSelect(e){this.handleChangeEvent(e,e.checked)}},N=class extends E{constructor(e,t){super(e,t)}_handleChangeEvent(e){this.handleChangeEvent(e,e.value)}},j=class extends E{constructor(e,t){super(e,t)}_handleInputEvent(e){this.handleChangeEvent(e,e.value)}},R=(()=>{let e=class{constructor(e,t){this.doc=e,this.backButton=new p.a,this.keyboardDidShow=new p.a,this.keyboardDidHide=new p.a,this.pause=new p.a,this.resume=new p.a,this.resize=new p.a,t.run(()=>{let n;this.win=e.defaultView,this.backButton.subscribeWithPriority=function(e,n){return this.subscribe(r=>r.register(e,e=>t.run(()=>n(e))))},D(this.pause,e,"pause"),D(this.resume,e,"resume"),D(this.backButton,e,"ionBackButton"),D(this.resize,this.win,"resize"),D(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),D(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(e=>{n=e}),this.win&&this.win.cordova?e.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(e){return Object(l.a)(this.win,e)}platforms(){return Object(l.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(e){return P(this.win.location.href,e)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(e){const t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return e.ngInjectableDef=Object(i.Ob)({factory:function(){return new e(Object(i.Pb)(o.c),Object(i.Pb)(i.x))},token:e,providedIn:"root"}),e})();const P=(e,t)=>{t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},D=(e,t,n)=>{t&&t.addEventListener(n,t=>{e.next(null!=t?t.detail:void 0)})};let M=(()=>{let e=class{constructor(e,t,n,r){this.location=t,this.serializer=n,this.router=r,this.direction=L,this.animated=U,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(e=>{if(e instanceof a.d){const t=e.restoredState?e.restoredState.navigationId:e.id;this.guessDirection=t<this.lastNavId?"back":"forward",this.guessAnimation=e.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?e.id:t}}),e.backButton.subscribeWithPriority(0,e=>{this.pop(),e()})}navigateForward(e,t={}){return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateBack(e,t={}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateRoot(e,t={}){return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}back(e={animated:!0,animationDirection:"back"}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}pop(){return Object(r.a)(this,void 0,void 0,(function*(){let e=this.topOutlet;for(;e&&!(yield e.pop());)e=e.parentOutlet}))}setDirection(e,t,n,r){this.direction=e,this.animated=V(e,t,n),this.animationBuilder=r}setTopOutlet(e){this.topOutlet=e}consumeTransition(){let e,t="root";const n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=L,this.animated=U,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}navigate(e,t){if(Array.isArray(e))return this.router.navigate(e,t);{const n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}};return e.ngInjectableDef=Object(i.Ob)({factory:function(){return new e(Object(i.Pb)(R),Object(i.Pb)(o.f),Object(i.Pb)(a.r),Object(i.Pb)(a.m,8))},token:e,providedIn:"root"}),e})();const V=(e,t,n)=>{if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},L="auto",U=void 0,F=(e,t)=>{const n=e.prototype;t.forEach(e=>{Object.defineProperty(n,e,{get(){return this.el[e]},set(t){this.z.runOutsideAngular(()=>this.el[e]=t)}})})},z=(e,t)=>{const n=e.prototype;t.forEach(e=>{n[e]=function(){const t=arguments;return this.z.runOutsideAngular(()=>this.el[e].apply(this.el,t))}})},B=(e,t,n)=>{n.forEach(n=>e[n]=Object(g.a)(t,n))};function q(e){return function(t){return e.inputs&&F(t,e.inputs),e.methods&&z(t,e.methods),t}}let H=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},G=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},W=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e),e})(),K=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionBackdropTap"])}};return e=Object(r.b)([q({inputs:["stopPropagation","tappable","visible"]})],e),e})(),X=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode"]})],e),e})(),Q=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e),e})(),Z=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["collapse"]})],e),e})(),Y=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),J=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["mode"]})],e),e})(),ee=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode","translucent"]})],e),e})(),te=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode"]})],e),e})(),ne=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode"]})],e),e})(),re=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e),e})(),ie=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","disabled","mode","outline"]})],e),e})(),se=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],e),e})(),oe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return e=Object(r.b)([q({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e),e})(),ae=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],e),e})(),le=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e),e})(),ce=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e),e})(),ue=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["activated","side"]})],e),e})(),de=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["mode","translucent"]})],e),e})(),he=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["fixed"]})],e),e})(),fe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["collapse","mode","translucent"]})],e),e})(),pe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["ariaHidden","ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],e),e})(),ge=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return e=Object(r.b)([q({inputs:["alt","src"]})],e),e})(),me=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionInfinite"])}};return e=Object(r.b)([q({inputs:["disabled","position","threshold"],methods:["complete"]})],e),e})(),be=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["loadingSpinner","loadingText"]})],e),e})(),ve=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return e=Object(r.b)([q({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),ye=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),we=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode","sticky"]})],e),e})(),_e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},Ce=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],e),e})(),Se=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionSwipe"])}};return e=Object(r.b)([q({inputs:["side"]})],e),e})(),Ee=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionDrag"])}};return e=Object(r.b)([q({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],e),e})(),xe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode","position"]})],e),e})(),ke=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e),e})(),Ae=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","lines","mode"]})],e),e})(),Oe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return e=Object(r.b)([q({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e),e})(),Te=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["autoHide","color","disabled","menu","mode","type"]})],e),e})(),Ie=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["autoHide","menu"]})],e),e})(),$e=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionNavWillChange","ionNavDidChange"])}};return e=Object(r.b)([q({inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],e),e})(),Ne=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["component","componentProps","routerAnimation","routerDirection"]})],e),e})(),je=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode"]})],e),e})(),Re=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["buffer","color","mode","reversed","type","value"]})],e),e})(),Pe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["color","disabled","mode","name","value"]})],e),e})(),De=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange"])}};return e=Object(r.b)([q({inputs:["allowEmptySelection","name","value"]})],e),e})(),Me=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],e),e})(),Ve=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionRefresh","ionPull","ionStart"])}};return e=Object(r.b)([q({inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],e),e})(),Le=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],e),e})(),Ue=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},Fe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionItemReorder"])}};return e=Object(r.b)([q({inputs:["disabled"],methods:["complete"]})],e),e})(),ze=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["type"],methods:["addRipple"]})],e),e})(),Be=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},qe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return e=Object(r.b)([q({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),He=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange"])}};return e=Object(r.b)([q({inputs:["color","disabled","mode","scrollable","swipeGesture","value"]})],e),e})(),Ge=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["disabled","layout","mode","type","value"]})],e),e})(),We=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e),e})(),Ke=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["disabled","value"]})],e),e})(),Xe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["animated"]})],e),e})(),Qe=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},Ze=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return e=Object(r.b)([q({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e),e})(),Ye=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","duration","name","paused"]})],e),e})(),Je=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionSplitPaneVisible"])}};return e=Object(r.b)([q({inputs:["contentId","disabled","when"]})],e),e})(),et=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode","selectedTab","translucent"]})],e),e})(),tt=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],e),e})(),nt=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode"]})],e),e})(),rt=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return e=Object(r.b)([q({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],e),e})(),it=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},st=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","size"]})],e),e})(),ot=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,B(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([q({inputs:["checked","color","disabled","mode","name","value"]})],e),e})(),at=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([q({inputs:["color","mode"]})],e),e})(),lt=(()=>{let e=class{get(e,t){const n=ut();return n?n.get(e,t):null}getBoolean(e,t){const n=ut();return!!n&&n.getBoolean(e,t)}getNumber(e,t){const n=ut();return n?n.getNumber(e,t):0}set(e,t){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const n=ut();n&&n.set(e,t)}};return e.ngInjectableDef=Object(i.Ob)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const ct=new i.o("USERCONFIG"),ut=()=>{if("undefined"!=typeof window){const e=window.Ionic;if(e&&e.config)return e.config}return null};class dt{constructor(e={}){this.data=e}get(e){return this.data[e]}}let ht=class{constructor(e,t){this.zone=e,this.appRef=t}create(e,t,n){return new ft(e,t,n,this.appRef,this.zone)}};class ft{constructor(e,t,n,r,i){this.resolver=e,this.injector=t,this.location=n,this.appRef=r,this.zone=i,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(e,t,n,r){return this.zone.run(()=>new Promise(i=>{i(pt(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,e,t,n,r))}))}removeViewFromDom(e,t){return this.zone.run(()=>new Promise(e=>{const n=this.elRefMap.get(t);if(n){n.destroy(),this.elRefMap.delete(t);const e=this.elEventsMap.get(t);e&&(e(),this.elEventsMap.delete(t))}e()}))}}const pt=(e,t,n,r,s,o,a,l,c,u,d)=>{const h=t.resolveComponentFactory(c),f=i.p.create({providers:vt(u),parent:n}),p=r?r.createComponent(h,r.length,f):h.create(f),g=p.instance,m=p.location.nativeElement;if(u&&Object.assign(g,u),d)for(const i of d)m.classList.add(i);const b=mt(e,g,m);return l.appendChild(m),r||s.attachView(p.hostView),p.changeDetectorRef.reattach(),o.set(m,p),a.set(m,b),m},gt=[u.a,u.b,u.c,u.d,u.e],mt=(e,t,n)=>e.run(()=>{const e=gt.filter(e=>"function"==typeof t[e]).map(e=>{const r=n=>t[e](n.detail);return n.addEventListener(e,r),()=>n.removeEventListener(e,r)});return()=>e.forEach(e=>e())}),bt=new i.o("NavParamsToken"),vt=e=>[{provide:bt,useValue:e},{provide:dt,useFactory:yt,deps:[bt]}],yt=e=>new dt(e),wt=(e,t)=>((e=e.filter(e=>e.stackId!==t.stackId)).push(t),e),_t=(e,t)=>{const n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},Ct=(e,t)=>{if(!e)return;const n=St(t);for(let r=0;r<n.length;r++){if(r>=e.length)return n[r];if(n[r]!==e[r])return}},St=e=>e.split("/").map(e=>e.trim()).filter(e=>""!==e),Et=e=>{e&&(e.ref.destroy(),e.unlistenEvents())};class xt{constructor(e,t,n,r,i,s){this.containerEl=t,this.router=n,this.navCtrl=r,this.zone=i,this.location=s,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==e?St(e):void 0}createView(e,t){const n=_t(this.router,t),r=e&&e.location&&e.location.nativeElement,i=mt(this.zone,e.instance,r);return{id:this.nextId++,stackId:Ct(this.tabsPrefix,n),unlistenEvents:i,element:r,ref:e,url:n}}getExistingView(e){const t=_t(this.router,e),n=this.views.find(e=>e.url===t);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(e){const t=this.navCtrl.consumeTransition();let{direction:n,animation:r,animationBuilder:i}=t;const s=this.activeView,o=((e,t)=>!t||e.stackId!==t.stackId)(e,s);o&&(n="back",r=void 0);const a=this.views.slice();let l;const c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const u=this.views.includes(e),d=this.insertView(e,n);u||e.ref.changeDetectorRef.detectChanges();const h=e.animationBuilder;return void 0!==i||"back"!==n||o||void 0===h||(i=h),s&&(s.animationBuilder=i),this.zone.runOutsideAngular(()=>this.wait(()=>(s&&s.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),this.transition(e,s,r,this.canGoBack(1),!1,i).then(()=>kt(e,d,a,this.location)).then(()=>({enteringView:e,direction:n,animation:r,tabSwitch:o})))))}canGoBack(e,t=this.getActiveStackId()){return this.getStack(t).length>e}pop(e,t=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(t);if(n.length<=e)return Promise.resolve(!1);const r=n[n.length-e-1];let i=r.url;const s=r.savedData;if(s){const e=s.get("primary");e&&e.route&&e.route._routerState&&e.route._routerState.snapshot&&e.route._routerState.snapshot.url&&(i=e.route._routerState.snapshot.url)}const{animationBuilder:o}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(i,Object.assign({},r.savedExtras,{animation:o})).then(()=>!0)})}startBackTransition(){const e=this.activeView;if(e){const t=this.getStack(e.stackId),n=t[t.length-2],r=n.animationBuilder;return this.wait(()=>this.transition(n,e,"back",this.canGoBack(2),!0,r))}return Promise.resolve()}endBackTransition(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&At(this.activeView,this.views,this.views,this.location)}getLastUrl(e){const t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}getRootUrl(e){const t=this.getStack(e);return t.length>0?t[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(Et),this.activeView=void 0,this.views=[]}getStack(e){return this.views.filter(t=>t.stackId===e)}insertView(e,t){return this.activeView=e,this.views=((e,t,n)=>"root"===n?wt(e,t):"forward"===n?((e,t)=>(e.indexOf(t)>=0?e=e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):e.push(t),e))(e,t):((e,t)=>e.indexOf(t)>=0?e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):wt(e,t))(e,t))(this.views,e,t),this.views.slice()}transition(e,t,n,r,i,s){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);const o=e?e.element:void 0,a=t?t.element:void 0,l=this.containerEl;return o&&o!==a&&(o.classList.add("ion-page"),o.classList.add("ion-page-invisible"),o.parentElement!==l&&l.appendChild(o),l.commit)?l.commit(o,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:i,animationBuilder:s}):Promise.resolve(!1)}wait(e){return Object(r.a)(this,void 0,void 0,(function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=e()}))}}const kt=(e,t,n,r)=>"function"==typeof requestAnimationFrame?new Promise(i=>{requestAnimationFrame(()=>{At(e,t,n,r),i()})}):Promise.resolve(),At=(e,t,n,r)=>{n.filter(e=>!t.includes(e)).forEach(Et),t.forEach(t=>{const n=r.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){const e=t.element;e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})};let Ot=class{constructor(e,t,n,r,s,o,l,c,u,d,h,f,p){this.parentContexts=e,this.location=t,this.resolver=n,this.config=o,this.navCtrl=l,this.parentOutlet=p,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new m.a(null),this.stackEvents=new i.m,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.nativeEl=u.nativeElement,this.name=r||a.f,this.tabsPrefix="true"===s?_t(d,f):void 0,this.stackCtrl=new xt(this.tabsPrefix,this.nativeEl,d,l,h,c),e.onChildOutletCreated(this.name,this)}set animation(e){this.nativeEl.animation=e}set animated(e){this.nativeEl.animated=e}set swipeGesture(e){this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:e=>this.stackCtrl.endBackTransition(e)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const e=this.getContext();e&&e.route&&this.activateWith(e.route,e.resolver||null)}new Promise(e=>Object(c.c)(this.nativeEl,e)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}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(){throw new Error("incompatible reuse strategy")}attach(e,t){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};const e=this.getContext();if(e.route){const t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}const e=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");let n;this._activatedRoute=e;let r=this.stackCtrl.getExistingView(e);if(r){n=this.activated=r.ref;const t=r.savedData;t&&(this.getContext().children.contexts=t),this.updateActivatedRouteProxy(n.instance,e)}else{const i=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new m.a(null),a=this.createActivatedRouteProxy(o,e),l=new Tt(a,s,this.location.injector);n=this.activated=this.location.createComponent(i,this.location.length,l),o.next(n.instance),r=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=r,this.stackCtrl.setActive(r).then(e=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(e)})}canGoBack(e=1,t){return this.stackCtrl.canGoBack(e,t)}pop(e=1,t){return this.stackCtrl.pop(e,t)}getLastUrl(e){const t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}getLastRouteView(e){return this.stackCtrl.getLastUrl(e)}getRootView(e){return this.stackCtrl.getRootUrl(e)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(e,t){const n=new a.a;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}proxyObservable(e,t){return e.pipe(Object(b.a)(e=>!!e),Object(v.a)(e=>this.currentActivatedRoute$.pipe(Object(b.a)(t=>null!==t&&t.component===e),Object(v.a)(e=>e&&e.activatedRoute[t]),e=>e.lift(new w(void 0,void 0)))))}updateActivatedRouteProxy(e,t){const n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}};class Tt{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===a.a?this.route:e===a.b?this.childContexts:this.parent.get(e,t)}}let It=class{constructor(e){this.navCtrl=e,this.ionTabsWillChange=new i.m,this.ionTabsDidChange=new i.m}onPageSelected(e){const t=e.enteringView.stackId;e.tabSwitch&&void 0!==t&&(this.tabBar&&(this.tabBar.selectedTab=t),this.ionTabsWillChange.emit({tab:t}),this.ionTabsDidChange.emit({tab:t}))}select(e){const t=this.outlet.getActiveStackId()===e,n=`${this.outlet.tabsPrefix}/${e}`;if(t){const t=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(t).url===n)return;const r=this.outlet.getRootView(e);return this.navCtrl.navigateRoot(n,Object.assign({},r&&n===r.url&&r.savedExtras,{animated:!0,animationDirection:"back"}))}{const t=this.outlet.getLastRouteView(e);return this.navCtrl.navigateRoot(t&&t.url||n,Object.assign({},t&&t.savedExtras,{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}},$t=(()=>{let e=class{constructor(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(e){if(this.trackBy&&"items"in e){const n=e.items.currentValue;if(void 0===this.differ&&null!=n)try{this.differ=this.iterableDiffers.find(n).create(this.trackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(e,t,n){return this.z.run(()=>{let r;if(e){r=this.refMap.get(e);const n=r.context;n.$implicit=t.value,n.index=t.index}else r=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(t.type),{$implicit:t.value,index:n},n),e=Nt(r),this.refMap.set(e,r);return r.detectChanges(),e})}getComponent(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}};return e=Object(r.b)([q({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],e),e})();const Nt=e=>{const t=e.rootNodes;for(let n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};class jt{constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,t,n){return this.ctrl.dismiss(e,t,n)}getTop(){return this.ctrl.getTop()}}let Rt=(()=>{let e=class extends jt{constructor(){super(h.b)}};return e.ngInjectableDef=Object(i.Ob)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Pt=(()=>{let e=class{open(e){return d.a.open(e)}close(e){return d.a.close(e)}toggle(e){return d.a.toggle(e)}enable(e,t){return d.a.enable(e,t)}swipeGesture(e,t){return d.a.swipeGesture(e,t)}isOpen(e){return d.a.isOpen(e)}isEnabled(e){return d.a.isEnabled(e)}get(e){return d.a.get(e)}getOpen(){return d.a.getOpen()}getMenus(){return d.a.getMenus()}};return e.ngInjectableDef=Object(i.Ob)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Dt=class extends jt{constructor(e,t,n){super(h.l),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}},Mt=class extends jt{constructor(e,t,n){super(h.d),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}},Vt=(()=>{let e=class extends jt{constructor(){super(h.o)}};return e.ngInjectableDef=Object(i.Ob)({factory:function(){return new e},token:e,providedIn:"root"}),e})();class Lt{shouldDetach(e){return!1}shouldAttach(e){return!1}store(e,t){}retrieve(e){return null}shouldReuseRoute(e,t){if(e.routeConfig!==t.routeConfig)return!1;const n=e.params,r=t.params,i=Object.keys(n),s=Object.keys(r);if(i.length!==s.length)return!1;for(const o of i)if(r[o]!==n[o])return!1;return!0}}let Ut=!1;const Ft=(e,t,r)=>()=>{const i=t.defaultView;if(i&&"undefined"!=typeof window){Ut&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),Ut=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:e=>r.run(e)});const s="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(()=>{return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:S,jmp:e=>r.runOutsideAngular(e),ael(e,t,n,r){e[s](t,n,r)},rel(e,t,n,r){e.removeEventListener(t,n,r)}},"undefined"==typeof window?Promise.resolve():(f.b&&f.b.supports&&f.b.supports("color","var(--c)")?Object(f.d)():n.e(6).then(n.t.bind(null,"9qUq",7)).then(()=>(f.n.$cssShim$=f.q.__cssshim)?f.n.$cssShim$.i():0)).then(()=>(C(),Object(f.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4],"disabled":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ariaHidden":[513,"aria-hidden"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),e)));var e})}};var zt;let Bt=zt=class{static forRoot(e){return{ngModule:zt,providers:[{provide:ct,useValue:e},{provide:i.d,useFactory:Ft,multi:!0,deps:[ct,o.c,i.x]}]}}}},wEJo:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ue})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return j})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return we})),n.d(t,"f",(function(){return Le})),n.d(t,"g",(function(){return te})),n.d(t,"h",(function(){return Ve})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return $})),n.d(t,"k",(function(){return ee})),n.d(t,"l",(function(){return ce})),n.d(t,"m",(function(){return _e})),n.d(t,"n",(function(){return p})),n.d(t,"o",(function(){return Ee})),n.d(t,"p",(function(){return A})),n.d(t,"q",(function(){return d}));let r,i,s,o=!1,a=!1,l=!1,c=!1,u=!1;const d="undefined"!=typeof window?window:{},h=d.CSS,f=d.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},g=(()=>(f.head.attachShadow+"").indexOf("[native")>-1)(),m=e=>Promise.resolve(e),b=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),v=(e,t,n,r)=>{n&&n.map(([n,r,i])=>{const s=w(e,n),o=y(t,i),a=_(n);p.ael(s,r,o,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>p.rel(s,r,o,a))})},y=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(r){Ae(r)}},w=(e,t)=>4&t?f:8&t?d:16&t?f.body:e,_=e=>0!=(2&e),C="http://www.w3.org/1999/xlink",S=new WeakMap,E=(e,t,n)=>{let r=Ie.get(e);b&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,Ie.set(e,r)},x=(e,t,n,r)=>{let i=k(t,n),s=Ie.get(i);if(e=11===e.nodeType?e:f,s)if("string"==typeof s){let n,o=S.get(e=e.head||e);if(o||S.set(e,o=new Set),!o.has(i)){if(e.host&&(n=e.querySelector(`[sty-id="${i}"]`)))n.innerHTML=s;else{if(p.$cssShim$){n=p.$cssShim$.createHostStyle(r,i,s,!!(10&t.$flags$));const e=n["s-sc"];e&&(i=e,o=null)}else n=f.createElement("style"),n.innerHTML=s;e.insertBefore(n,e.querySelector("link"))}o&&o.add(i)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return i},k=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),A=e=>$e.push(e),O=e=>Se(e).$modeName$,T={},I=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let r=null,i=null,s=null,o=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?c(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!I(r))&&(r=String(r)),o&&a?l[l.length-1].$text$+=r:l.push(o?N(null,r):r),a=o)};if(c(n),t){t.key&&(i=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,R);const u=N(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=i,u.$name$=s,u},N=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),j={},R={forEach:(e,t)=>e.map(P).forEach(t),map:(e,t)=>e.map(P).map(t).map(D)},P=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),D=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),$(e.vtag,t,...e.vchildren||[])}const t=N(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},M=(e,t,n,r,i,s)=>{if(n!==r){let a=ke(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,i=L(n),s=L(r);t.remove(...i.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!i.includes(e)))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=I(r);if((a||c&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let i=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(o){}let u=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,u=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(C,t):e.removeAttribute(t)):(!a||4&s||i)&&!c&&(r=!0===r?"":r,u?e.setAttributeNS(C,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):ke(d,l)?l.slice(2):l[2]+t.slice(3),n&&p.rel(e,t,n,!1),r&&p.ael(e,t,r,!1)}},V=/\s/,L=e=>e?e.split(V):[],U=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||T,o=t.$attrs$||T;for(r in s)r in o||M(i,r,s[r],void 0,n,t.$flags$);for(r in o)M(i,r,s[r],o[r],n,t.$flags$)},F=(e,t,n,a)=>{let u,d,h,p=t.$children$[n],g=0;if(o||(l=!0,"slot"===p.$tag$&&(r&&a.classList.add(r+"-s"),p.$flags$|=p.$children$?2:1)),null!==p.$text$)u=p.$elm$=f.createTextNode(p.$text$);else if(1&p.$flags$)u=p.$elm$=f.createTextNode("");else{if(c||(c="svg"===p.$tag$),u=p.$elm$=f.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&p.$flags$?"slot-fb":p.$tag$),c&&"foreignObject"===p.$tag$&&(c=!1),U(null,p,c),null!=r&&u["s-si"]!==r&&u.classList.add(u["s-si"]=r),p.$children$)for(g=0;g<p.$children$.length;++g)d=F(e,p,g,u),d&&u.appendChild(d);"svg"===p.$tag$?c=!1:"foreignObject"===u.tagName&&(c=!0)}return u["s-hn"]=s,3&p.$flags$&&(u["s-sr"]=!0,u["s-cr"]=i,u["s-sn"]=p.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===p.$tag$&&e.$elm$&&z(e.$elm$,!1)),u},z=(e,t)=>{p.$flags$|=1;const n=e.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];e["s-hn"]!==s&&e["s-ol"]&&(W(e).insertBefore(e,G(e)),e["s-ol"].remove(),e["s-ol"]=void 0,l=!0),t&&z(e,t)}p.$flags$&=-2},B=(e,t,n,r,i,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===s&&(l=l.shadowRoot);i<=o;++i)r[i]&&(a=F(null,n,i,e),a&&(r[i].$elm$=a,l.insertBefore(a,G(t))))},q=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,J(r),a=!0,i["s-ol"]?i["s-ol"].remove():z(i,!0),i.remove())},H=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),G=e=>e&&e["s-ol"]||e,W=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,K=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,s=t.$tag$,o=t.$text$;let a;null===o?(c="svg"===s||"foreignObject"!==s&&c,"slot"===s||U(e,t,c),null!==r&&null!==i?((e,t,n,r)=>{let i,s,o=0,a=0,l=0,c=0,u=t.length-1,d=t[0],h=t[u],f=r.length-1,p=r[0],g=r[f];for(;o<=u&&a<=f;)if(null==d)d=t[++o];else if(null==h)h=t[--u];else if(null==p)p=r[++a];else if(null==g)g=r[--f];else if(H(d,p))K(d,p),d=t[++o],p=r[++a];else if(H(h,g))K(h,g),h=t[--u],g=r[--f];else if(H(d,g))"slot"!==d.$tag$&&"slot"!==g.$tag$||z(d.$elm$.parentNode,!1),K(d,g),e.insertBefore(d.$elm$,h.$elm$.nextSibling),d=t[++o],g=r[--f];else if(H(h,p))"slot"!==d.$tag$&&"slot"!==g.$tag$||z(h.$elm$.parentNode,!1),K(h,p),e.insertBefore(h.$elm$,d.$elm$),h=t[--u],p=r[++a];else{for(l=-1,c=o;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===p.$key$){l=c;break}l>=0?(s=t[l],s.$tag$!==p.$tag$?i=F(t&&t[a],n,l,e):(K(s,p),t[l]=void 0,i=s.$elm$),p=r[++a]):(i=F(t&&t[a],n,a,e),p=r[++a]),i&&W(d.$elm$).insertBefore(i,G(d.$elm$))}o>u?B(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):a>f&&q(t,o,u)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),B(n,null,t,i,0,i.length-1)):null!==r&&q(r,0,r.length-1),c&&"svg"===s&&(c=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},X=e=>{let t,n,r,i,s,o,a=e.childNodes;for(n=0,r=a.length;n<r;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,i=0;i<r;i++)if(o=a[i].nodeType,a[i]["s-hn"]!==t["s-hn"]||""!==s){if(1===o&&s===a[i].getAttribute("slot")){t.hidden=!0;break}}else if(1===o||3===o&&""!==a[i].textContent.trim()){t.hidden=!0;break}X(t)}},Q=[],Z=e=>{let t,n,r,i,s,o,l=0,c=e.childNodes,u=c.length;for(;l<u;l++){if(t=c[l],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],o=r.length-1;o>=0;o--)n=r[o],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(Y(n,i)?(s=Q.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||i,s?s.$slotRefNode$=t:Q.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&Q.map(e=>{Y(e.$nodeToRelocate$,n["s-sn"])&&(s=Q.find(e=>e.$nodeToRelocate$===n),s&&!e.$slotRefNode$&&(e.$slotRefNode$=s.$slotRefNode$))})):Q.some(e=>e.$nodeToRelocate$===n)||Q.push({$nodeToRelocate$:n}));1===t.nodeType&&Z(t)}},Y=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},ee=e=>Se(e).$hostElement$,te=(e,t,n)=>{const r=ee(e);return{emit:e=>ne(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},ne=(e,t,n)=>{const r=p.ce(t,n);return e.dispatchEvent(r),r},re=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},ie=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return re(e,e.$ancestorComponent$),Le(()=>se(e,t));e.$flags$|=512},se=(e,t)=>{const n=e.$lazyInstance$;let r;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>de(n,e,t)),e.$queuedListeners$=null),r=de(n,"componentWillLoad")),r=he(r,()=>de(n,"componentWillRender")),he(r,()=>oe(e,n,t))},oe=async(e,t,n)=>{const r=e.$hostElement$,i=r["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=x(g&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&r&&(n["s-sc"]=i,n.classList.add(i+"-h"),2&r&&n.classList.add(i+"-s"))})(e),ae(e,t),p.$cssShim$&&p.$cssShim$.updateHost(r),i&&(i.map(e=>e()),r["s-rc"]=void 0);{const t=r["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},ae=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t)=>{const n=e.$hostElement$,c=e.$cmpMeta$,u=e.$vnode$||N(null,null),d=(h=t)&&h.$tag$===j?t:$(null,null,t);var h;if(s=n.tagName,c.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},c.$attrsToReflect$.map(([e,t])=>d.$attrs$[t]=n[e])),d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=u.$elm$=n.shadowRoot||n,r=n["s-sc"],i=n["s-cr"],o=g&&0!=(1&c.$flags$),a=!1,K(u,d),p.$flags$|=1,l){let e,t,n,r,i,s;Z(d.$elm$);let o=0;for(;o<Q.length;o++)e=Q[o],t=e.$nodeToRelocate$,t["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(o=0;o<Q.length;o++)if(e=Q[o],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&r===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){i=s;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}a&&X(d.$elm$),p.$flags$&=-2,Q.length=0})(e,t)}catch(c){Ae(c,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.$lazyInstance$,r=e.$ancestorComponent$;64&e.$flags$?de(n,"componentDidUpdate"):(e.$flags$|=64,fe(t),de(n,"componentDidLoad"),e.$onReadyResolve$(t),r||ue()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Me(()=>ie(e,!1)),e.$flags$&=-517},ce=e=>{{const t=Se(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&ie(t,!1),n}},ue=e=>{fe(f.documentElement),Me(()=>ne(d,"appload",{detail:{namespace:"ionic"}}))},de=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){Ae(r)}},he=(e,t)=>e&&e.then?e.then(t):t(),fe=e=>e.classList.add("hydrated"),pe=(e,t,n,r,i,s,o)=>{let a,l,c,u;if(1===s.nodeType){for(a=s.getAttribute("c-id"),a&&(l=a.split("."),l[0]!==o&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),s.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=s.childNodes.length-1;u>=0;u--)pe(e,t,n,r,i,s.childNodes[u],o);if(s.shadowRoot)for(u=s.shadowRoot.childNodes.length-1;u>=0;u--)pe(e,t,n,r,i,s.shadowRoot.childNodes[u],o)}else if(8===s.nodeType)l=s.nodeValue.split("."),l[1]!==o&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=s.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),s.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===o&&("s"===a?(c.$tag$="slot",s["s-sn"]=l[5]?c.$name$=l[5]:"",s["s-sr"]=!0,r&&(c.$elm$=f.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),s.parentNode.insertBefore(c.$elm$,s),s.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(r?s.remove():(i["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=N(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},ge=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)ge(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)ge(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},me=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(i,e,{get(){return t=e,Se(this).$instanceValues$.get(t);var t},set(n){((e,t,n,r)=>{const i=Se(this),s=i.$hostElement$,o=i.$instanceValues$.get(t),a=i.$flags$,l=i.$lazyInstance$;var c,u;if(u=r.$members$[t][0],n=null==(c=n)||I(c)?c:4&u?"false"!==c&&(""===c||!!c):2&u?parseFloat(c):1&u?String(c):c,!(8&a&&void 0!==o||n===o)&&(i.$instanceValues$.set(t,n),l)){if(r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map(e=>{try{l[e](n,o,t)}catch(r){Ae(r,s)}})}2==(18&a)&&ie(i,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=Se(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;i.attributeChangedCallback=function(e,t,r){p.jmp(()=>{const t=n.get(e);this[t]=(null!==r||"boolean"!=typeof this[t])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,r])=>{const i=r[1]||e;return n.set(i,e),512&r[0]&&t.$attrsToReflect$.push([e,i]),i})}}return e},be=e=>{de(e,"connectedCallback")},ve=e=>{if(0==(1&p.$flags$)){const t=Se(e),r=t.$cmpMeta$,i=()=>{};if(1&t.$flags$)v(e,t,r.$listeners$),be(t.$lazyInstance$);else{let i;if(t.$flags$|=1,i=e.getAttribute("s-id"),i){if(g&&1&r.$flags$){const t=x(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const i=e.shadowRoot,s=[],o=i?[]:null,a=r.$vnode$=N(t,null);p.$orgLocNodes$||ge(f.body,p.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),pe(a,s,[],o,e,e,n),s.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,r=p.$orgLocNodes$.get(n),s=e.$elm$;r&&g&&""===r["s-en"]&&r.parentNode.insertBefore(s,r.nextSibling),i||(s["s-hn"]=t,r&&(s["s-ol"]=r,s["s-ol"]["s-nr"]=s)),p.$orgLocNodes$.delete(n)}),i&&o.map(e=>{e&&i.appendChild(e)})})(e,r.$tagName$,i,t)}i||12&r.$flags$&&ye(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){re(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Me(()=>(async(e,t,r,i,s)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(s=Te(r)).then){const e=()=>{};s=await s,e()}s.isProxied||(r.$watchers$=s.watchers,me(s,r,2),s.isProxied=!0);const e=()=>{};t.$flags$|=8;try{new s(t)}catch(l){Ae(l)}t.$flags$&=-9,t.$flags$|=128,e(),be(t.$lazyInstance$)}if(s.style){let i=s.style;"string"!=typeof i&&(i=i[t.$modeName$=(e=>$e.map(t=>t(e)).find(e=>!!e))(e)]);const o=k(r,t.$modeName$);if(!Ie.has(o)){const e=()=>{};8&r.$flags$&&(i=await n.e(57).then(n.bind(null,"JmUR")).then(e=>e.scopeCss(i,o,!1))),E(o,i,!!(1&r.$flags$)),e()}}}const o=t.$ancestorComponent$,a=()=>ie(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(e,t,r))}i()}},ye=e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},we=(e,t={})=>{const n=[],r=t.exclude||[],i=d.customElements,s=f.head,o=s.querySelector("meta[charset]"),a=f.createElement("style"),l=[],c=f.querySelectorAll("[sty-id]");let u,h=!0,m=0;for(Object.assign(p,t),p.$resourcesUrl$=new URL(t.resourcesUrl||"./",f.baseURI).href,p.$flags$|=2;m<c.length;m++)E(c[m].getAttribute("sty-id"),c[m].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(e=>e[1].map(t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$listeners$=t[3],s.$attrsToReflect$=[],s.$watchers$={},!g&&1&s.$flags$&&(s.$flags$|=8);const o=s.$tagName$,a=class extends HTMLElement{constructor(e){super(e),xe(e=this,s),1&s.$flags$&&(g?e.attachShadow({mode:"open",delegatesFocus:!!(16&s.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){u&&(clearTimeout(u),u=null),h?l.push(this):p.jmp(()=>ve(this))}disconnectedCallback(){p.jmp(()=>(e=>{if(0==(1&p.$flags$)){const t=Se(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),p.$cssShim$&&p.$cssShim$.removeHost(e),de(n,"disconnectedCallback")}})(this))}componentOnReady(){return Se(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],r.includes(o)||i.get(o)||(n.push(o),i.define(o,me(a,s,1)))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,o?o.nextSibling:s.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):p.jmp(()=>u=setTimeout(ue,30))},_e=e=>{const t=new URL(e,p.$resourcesUrl$);return t.origin!==d.location.origin?t.href:t.pathname},Ce=new WeakMap,Se=e=>Ce.get(e),Ee=(e,t)=>Ce.set(t.$lazyInstance$=e,t),xe=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],v(e,n,t.$listeners$),Ce.set(e,n)},ke=(e,t)=>t in e,Ae=(e,t)=>(0,console.error)(e,t),Oe=new Map,Te=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$,o=Oe.get(s);return o?o[i]:n("kLfG")(`./${s}.entry.js`).then(e=>(Oe.set(s,e),e[i]),Ae)},Ie=new Map,$e=[],Ne=[],je=[],Re=(e,t)=>n=>{e.push(n),u||(u=!0,t&&4&p.$flags$?Me(De):p.raf(De))},Pe=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Ae(t)}e.length=0},De=()=>{Pe(Ne),Pe(je),(u=Ne.length>0)&&p.raf(De)},Me=e=>m().then(e),Ve=Re(Ne,!1),Le=Re(je,!0),Ue={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},xgIS:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(e,t,n,l){return Object(s.a)(n)&&(l=n,n=void 0),l?a(e,t,n).pipe(Object(o.a)(e=>Object(i.a)(e)?l(...e):l(e))):new r.a(r=>{!function e(t,n,r,i,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,r,s),o=()=>e.removeEventListener(n,r,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,r),o=()=>e.off(n,r)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,r),o=()=>e.removeListener(n,r)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,r,i,s)}i.add(o)}(e,t,(function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),r,n)})}},y08P:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));class r{constructor(e,t,n,r,i){this.id=t,this.name=n,this.disableScroll=i,this.priority=1e6*r+t,this.ctrl=e}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class i{constructor(e,t,n,r){this.id=t,this.disable=n,this.disableScroll=r,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const s=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new r(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new i(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const r=this.requestedStart;let i=-1e4;if(r.forEach(e=>{i=Math.max(i,e)}),i===n){this.capturedId=t,r.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return r.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("HDdC"),i=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("8Y7J");class i{}var s=function(e){return e.Prompt="PROMPT",e.Camera="CAMERA",e.Photos="PHOTOS",e}({}),o=function(e){return e.Rear="REAR",e.Front="FRONT",e}({}),a=function(e){return e.Uri="uri",e.Base64="base64",e.DataUrl="dataUrl",e}({}),l=function(e){return e.Documents="DOCUMENTS",e.Data="DATA",e.Cache="CACHE",e.External="EXTERNAL",e.ExternalStorage="EXTERNAL_STORAGE",e}({}),c=function(e){return e.Camera="camera",e.Photos="photos",e.Geolocation="geolocation",e.Notifications="notifications",e.ClipboardRead="clipboard-read",e.ClipboardWrite="clipboard-write",e.Microphone="microphone",e}({}),u=function(){function e(){var e=this;this.platform="web",this.isNative=!1,this.Plugins={},"undefined"!=typeof Proxy&&(this.Plugins=new Proxy(this.Plugins,{get:function(t,n){if(void 0===t[n]){var r=e;return new Proxy({},{get:function(e,t){return void 0===e[t]?r.pluginMethodNoop.bind(r,e,t,n):e[t]}})}return t[n]}}))}return e.prototype.pluginMethodNoop=function(e,t,n){return Promise.reject(n+" does not have web implementation.")},e.prototype.getPlatform=function(){return this.platform},e.prototype.isPluginAvailable=function(e){return this.Plugins.hasOwnProperty(e)},e.prototype.convertFileSrc=function(e){return e},e.prototype.handleError=function(e){console.error(e)},e}(),d=function(e){return e.Capacitor=e.Capacitor||new u}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).Plugins,h=new(function(){function e(){this.plugins={},this.loadedPlugins={}}return e.prototype.addPlugin=function(e){this.plugins[e.config.name]=e},e.prototype.getPlugin=function(e){return this.plugins[e]},e.prototype.loadPlugin=function(e){var t=this.getPlugin(e);t?t.load():console.error("Unable to load web plugin "+e+", no such plugin found.")},e.prototype.getPlugins=function(){var e=[];for(var t in this.plugins)e.push(this.plugins[t]);return e},e}()),f=function(){function e(e,t){this.config=e,this.loaded=!1,this.listeners={},this.windowListeners={},t?t.addPlugin(this):h.addPlugin(this)}return e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0},e.prototype.removeWindowListener=function(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)},e.prototype.addListener=function(e,t){var n=this;this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),{remove:function(){n.removeListener(e,t)}}},e.prototype.removeListener=function(e,t){var n=this.listeners[e];if(n){var r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}},e.prototype.removeAllListeners=function(){for(var e in this.listeners={},this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}},e.prototype.notifyListeners=function(e,t){var n=this.listeners[e];n&&n.forEach((function(e){return e(t)}))},e.prototype.hasListeners=function(e){return!!this.listeners[e].length},e.prototype.registerWindowListener=function(e,t){var n=this;this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:function(e){n.notifyListeners(t,e)}}},e.prototype.requestPermissions=function(){return Capacitor.isNative?Capacitor.nativePromise(this.config.name,"requestPermissions",{}):Promise.resolve({results:[]})},e.prototype.load=function(){this.loaded=!0},e}(),p=function(e,t){e.hasOwnProperty(t.config.name)&&!function(e){return e.config.platforms&&e.config.platforms.indexOf(Capacitor.platform)>=0}(t)||(e[t.config.name]=t)},g=n("mrSG"),m=(new(function(e){function t(){return e.call(this,{name:"Accessibility",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.isScreenReaderEnabled=function(){throw new Error("Feature not available in the browser")},t.prototype.speak=function(e){if(!("speechSynthesis"in window))return Promise.reject("Browser does not support the Speech Synthesis API");var t=new SpeechSynthesisUtterance(e.value);return e.language&&(t.lang=e.language),window.speechSynthesis.speak(t),Promise.resolve()},t}(f)),new(function(e){function t(){var t=e.call(this,{name:"App",platforms:["web"]})||this;return"undefined"!=typeof document&&document.addEventListener("visibilitychange",t.handleVisibilityChange.bind(t),!1),t}return Object(g.c)(t,e),t.prototype.exitApp=function(){throw new Error("Method not implemented.")},t.prototype.canOpenUrl=function(e){return Promise.resolve({value:!0})},t.prototype.openUrl=function(e){return Promise.resolve({completed:!0})},t.prototype.getLaunchUrl=function(){return Promise.resolve({url:""})},t.prototype.getState=function(){return Promise.resolve({isActive:!0!==document.hidden})},t.prototype.handleVisibilityChange=function(){var e={isActive:!0!==document.hidden};this.notifyListeners("appStateChange",e)},t}(f)),new(function(e){function t(){return e.call(this,{name:"Browser",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.open=function(e){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(t){return this._lastWindow=window.open(e.url,e.windowName||"_blank"),[2,Promise.resolve()]}))}))},t.prototype.prefetch=function(e){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(e){return[2,Promise.resolve()]}))}))},t.prototype.close=function(){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(e){return this._lastWindow&&this._lastWindow.close(),[2,Promise.resolve()]}))}))},t}(f)),new(function(e){function t(){return e.call(this,{name:"Camera",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.getPhoto=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t=this;return Object(g.d)(this,(function(n){return[2,new Promise((function(n,r){return Object(g.a)(t,void 0,void 0,(function(){var t,i=this;return Object(g.d)(this,(function(s){switch(s.label){case 0:return e.webUseInput?(this.fileInputExperience(e,n),[3,7]):[3,1];case 1:if(!customElements.get("pwa-camera-modal"))return[3,6];t=document.createElement("pwa-camera-modal"),document.body.appendChild(t),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,t.componentOnReady()];case 3:return s.sent(),t.addEventListener("onPhoto",(function(s){return Object(g.a)(i,void 0,void 0,(function(){var i,o;return Object(g.d)(this,(function(a){switch(a.label){case 0:return null!==(i=s.detail)?[3,1]:(r("User cancelled photos app"),[3,4]);case 1:return i instanceof Error?(r(i.message),[3,4]):[3,2];case 2:return o=n,[4,this._getCameraPhoto(i,e)];case 3:o.apply(void 0,[a.sent()]),a.label=4;case 4:return t.dismiss(),document.body.removeChild(t),[2]}}))}))})),t.present(),[3,5];case 4:return s.sent(),this.fileInputExperience(e,n),[3,5];case 5:return[3,7];case 6:console.error("Unable to load PWA Element 'pwa-camera-modal'. See the docs: https://capacitorjs.com/docs/pwa-elements."),this.fileInputExperience(e,n),s.label=7;case 7:return[2]}}))}))}))]}))}))},t.prototype.fileInputExperience=function(e,t){var n=document.querySelector("#_capacitor-camera-input"),r=function(){n.parentNode&&n.parentNode.removeChild(n)};n||((n=document.createElement("input")).id="_capacitor-camera-input",n.type="file",document.body.appendChild(n)),n.accept="image/*",n.capture=!0,e.source===s.Photos||e.source===s.Prompt?n.removeAttribute("capture"):e.direction===o.Front?n.capture="user":e.direction===o.Rear&&(n.capture="environment"),n.addEventListener("change",(function(i){var s=n.files[0],o="jpeg";if("image/png"===s.type?o="png":"image/gif"===s.type&&(o="gif"),e.resultType===a.DataUrl||e.resultType===a.Base64){var l=new FileReader;l.addEventListener("load",(function(){if(e.resultType===a.DataUrl)t({dataUrl:l.result,format:o});else if(e.resultType===a.Base64){var n=l.result.split(",")[1];t({base64String:n,format:o})}r()})),l.readAsDataURL(s)}else t({webPath:URL.createObjectURL(s),format:o}),r()})),n.click()},t.prototype._getCameraPhoto=function(e,t){return new Promise((function(n,r){var i=new FileReader,s=e.type.split("/")[1];t.resultType===a.Uri?n({webPath:URL.createObjectURL(e),format:s}):(i.readAsDataURL(e),i.onloadend=function(){var e=i.result;n(t.resultType===a.DataUrl?{dataUrl:e,format:s}:{base64String:e.split(",")[1],format:s})},i.onerror=function(e){r(e)})}))},t}(f)),new(function(e){function t(){return e.call(this,{name:"Clipboard",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.write=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n,r;return Object(g.d)(this,(function(i){switch(i.label){case 0:return navigator.clipboard?void 0!==e.string||e.url?navigator.clipboard.writeText?[4,navigator.clipboard.writeText(void 0!==e.string?e.string:e.url)]:[2,Promise.reject("Writting to clipboard not supported in this browser")]:[3,2]:[2,Promise.reject("Clipboard API not available in this browser")];case 1:return i.sent(),[3,10];case 2:if(!e.image)return[3,9];if(!navigator.clipboard.write)return[2,Promise.reject("Setting images not supported in this browser")];i.label=3;case 3:return i.trys.push([3,7,,8]),[4,fetch(e.image)];case 4:return[4,i.sent().blob()];case 5:return t=i.sent(),n=new ClipboardItem(((r={})[t.type]=t,r)),[4,navigator.clipboard.write([n])];case 6:return i.sent(),[3,8];case 7:return i.sent(),[2,Promise.reject("Failed to write image")];case 8:return[3,10];case 9:return[2,Promise.reject("Nothing to write")];case 10:return[2,Promise.resolve()]}}))}))},t.prototype.read=function(){return Object(g.a)(this,void 0,void 0,(function(){var e,t,n,r;return Object(g.d)(this,(function(i){switch(i.label){case 0:return navigator.clipboard?navigator.clipboard.read?[3,1]:navigator.clipboard.readText?[2,this.readText()]:[2,Promise.reject("Reading from clipboard not supported in this browser")]:[2,Promise.reject("Clipboard API not available in this browser")];case 1:return i.trys.push([1,5,,6]),[4,navigator.clipboard.read()];case 2:return[4,(e=i.sent())[0].getType(t=e[0].types[0])];case 3:return n=i.sent(),[4,this._getBlobData(n,t)];case 4:return r=i.sent(),[2,Promise.resolve({value:r,type:t})];case 5:return i.sent(),[2,this.readText()];case 6:return[2]}}))}))},t.prototype.readText=function(){return Object(g.a)(this,void 0,void 0,(function(){var e;return Object(g.d)(this,(function(t){switch(t.label){case 0:return[4,navigator.clipboard.readText()];case 1:return e=t.sent(),[2,Promise.resolve({value:e,type:"text/plain"})]}}))}))},t.prototype._getBlobData=function(e,t){return new Promise((function(n,r){var i=new FileReader;t.includes("image")?i.readAsDataURL(e):i.readAsText(e),i.onloadend=function(){n(i.result)},i.onerror=function(e){r(e)}}))},t}(f)),new(function(e){function t(){var t=e.call(this,{name:"Filesystem",platforms:["web"]})||this;return t.DEFAULT_DIRECTORY=l.Data,t.DB_VERSION=1,t.DB_NAME="Disc",t._writeCmds=["add","put","delete"],t}return Object(g.c)(t,e),t.prototype.initDb=function(){return Object(g.a)(this,void 0,void 0,(function(){var e=this;return Object(g.d)(this,(function(n){if(void 0!==this._db)return[2,this._db];if(!("indexedDB"in window))throw new Error("This browser doesn't support IndexedDB");return[2,new Promise((function(n,r){var i=indexedDB.open(e.DB_NAME,e.DB_VERSION);i.onupgradeneeded=t.doUpgrade,i.onsuccess=function(){e._db=i.result,n(i.result)},i.onerror=function(){return r(i.error)},i.onblocked=function(){console.warn("db blocked")}}))]}))}))},t.doUpgrade=function(e){var t=e.target.result;switch(e.oldVersion){case 0:case 1:default:t.objectStoreNames.contains("FileStorage")&&t.deleteObjectStore("FileStorage"),t.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}},t.prototype.dbRequest=function(e,t){return Object(g.a)(this,void 0,void 0,(function(){var n;return Object(g.d)(this,(function(r){return n=-1!==this._writeCmds.indexOf(e)?"readwrite":"readonly",[2,this.initDb().then((function(r){return new Promise((function(i,s){var o=r.transaction(["FileStorage"],n).objectStore("FileStorage"),a=o[e].apply(o,t);a.onsuccess=function(){return i(a.result)},a.onerror=function(){return s(a.error)}}))}))]}))}))},t.prototype.dbIndexRequest=function(e,t,n){return Object(g.a)(this,void 0,void 0,(function(){var r;return Object(g.d)(this,(function(i){return r=-1!==this._writeCmds.indexOf(t)?"readwrite":"readonly",[2,this.initDb().then((function(i){return new Promise((function(s,o){var a=i.transaction(["FileStorage"],r).objectStore("FileStorage").index(e),l=a[t].apply(a,n);l.onsuccess=function(){return s(l.result)},l.onerror=function(){return o(l.error)}}))}))]}))}))},t.prototype.getPath=function(e,t){e=e||this.DEFAULT_DIRECTORY;var n=void 0!==t?t.replace(/^[/]+|[/]+$/g,""):"",r="/"+e;return""!==t&&(r+="/"+n),r},t.prototype.clear=function(){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(e){switch(e.label){case 0:return[4,this.initDb()];case 1:return e.sent().transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear(),[2,{}]}}))}))},t.prototype.readFile=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n;return Object(g.d)(this,(function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:if(void 0===(n=r.sent()))throw Error("File does not exist.");return[2,{data:n.content}]}}))}))},t.prototype.writeFile=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n,r,i,s,o,a,l,c,u;return Object(g.d)(this,(function(d){switch(d.label){case 0:return t=this.getPath(e.directory,e.path),n=e.data,r=e.recursive,[4,this.dbRequest("get",[t])];case 1:if((i=d.sent())&&"directory"===i.type)throw"The supplied path is a directory.";return s=e.encoding,o=t.substr(0,t.lastIndexOf("/")),[4,this.dbRequest("get",[o])];case 2:return void 0!==d.sent()||-1===(a=o.indexOf("/",1))?[3,4]:(l=o.substr(a),[4,this.mkdir({path:l,directory:e.directory,recursive:r})]);case 3:d.sent(),d.label=4;case 4:return c=Date.now(),u={path:t,folder:o,type:"file",size:n.length,ctime:c,mtime:c,content:!s&&n.indexOf(",")>=0?n.split(",")[1]:n},[4,this.dbRequest("put",[u])];case 5:return d.sent(),[2,{uri:u.path}]}}))}))},t.prototype.appendFile=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n,r,i,s,o,a,l;return Object(g.d)(this,(function(c){switch(c.label){case 0:return t=this.getPath(e.directory,e.path),n=e.data,r=t.substr(0,t.lastIndexOf("/")),i=Date.now(),s=i,[4,this.dbRequest("get",[t])];case 1:if((o=c.sent())&&"directory"===o.type)throw"The supplied path is a directory.";return[4,this.dbRequest("get",[r])];case 2:return void 0!==c.sent()||-1===(a=r.indexOf("/",1))?[3,4]:(l=r.substr(a),[4,this.mkdir({path:l,directory:e.directory,recursive:!0})]);case 3:c.sent(),c.label=4;case 4:return void 0!==o&&(n=o.content+n,s=o.ctime),[4,this.dbRequest("put",[{path:t,folder:r,type:"file",size:n.length,ctime:s,mtime:i,content:n}])];case 5:return c.sent(),[2,{}]}}))}))},t.prototype.deleteFile=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t;return Object(g.d)(this,(function(n){switch(n.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:if(void 0===n.sent())throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(t)])];case 2:if(0!==n.sent().length)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[t])];case 3:return n.sent(),[2,{}]}}))}))},t.prototype.mkdir=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n,r,i,s,o,a,l;return Object(g.d)(this,(function(c){switch(c.label){case 0:return t=this.getPath(e.directory,e.path),n=e.recursive,r=t.substr(0,t.lastIndexOf("/")),i=(t.match(/\//g)||[]).length,[4,this.dbRequest("get",[r])];case 1:return s=c.sent(),[4,this.dbRequest("get",[t])];case 2:if(o=c.sent(),1===i)throw Error("Cannot create Root directory");if(void 0!==o)throw Error("Current directory does already exist.");if(!n&&2!==i&&void 0===s)throw Error("Parent directory must exist");return n&&2!==i&&void 0===s?(a=r.substr(r.indexOf("/",1)),[4,this.mkdir({path:a,directory:e.directory,recursive:n})]):[3,4];case 3:c.sent(),c.label=4;case 4:return l=Date.now(),[4,this.dbRequest("put",[{path:t,folder:r,type:"directory",size:0,ctime:l,mtime:l}])];case 5:return c.sent(),[2,{}]}}))}))},t.prototype.rmdir=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n,r,i,s,o,a,l,c;return Object(g.d)(this,(function(u){switch(u.label){case 0:return r=e.recursive,i=this.getPath(n=e.directory,t=e.path),[4,this.dbRequest("get",[i])];case 1:if(void 0===(s=u.sent()))throw Error("Folder does not exist.");if("directory"!==s.type)throw Error("Requested path is not a directory");return[4,this.readdir({path:t,directory:n})];case 2:if(0!==(o=u.sent()).files.length&&!r)throw Error("Folder is not empty");a=0,l=o.files,u.label=3;case 3:return a<l.length?[4,this.stat({path:c=t+"/"+l[a],directory:n})]:[3,9];case 4:return"file"!==u.sent().type?[3,6]:[4,this.deleteFile({path:c,directory:n})];case 5:return u.sent(),[3,8];case 6:return[4,this.rmdir({path:c,directory:n,recursive:r})];case 7:u.sent(),u.label=8;case 8:return a++,[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:return u.sent(),[2,{}]}}))}))},t.prototype.readdir=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n;return Object(g.d)(this,(function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:if(n=r.sent(),""!==e.path&&void 0===n)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(t)])];case 2:return[2,{files:r.sent().map((function(e){return e.substring(t.length+1)}))}]}}))}))},t.prototype.getUri=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n;return Object(g.d)(this,(function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:return void 0!==(n=r.sent())?[3,3]:[4,this.dbRequest("get",[t+"/"])];case 2:n=r.sent(),r.label=3;case 3:if(void 0===n)throw Error("Entry does not exist.");return[2,{uri:n.path}]}}))}))},t.prototype.stat=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n;return Object(g.d)(this,(function(r){switch(r.label){case 0:return t=this.getPath(e.directory,e.path),[4,this.dbRequest("get",[t])];case 1:return void 0!==(n=r.sent())?[3,3]:[4,this.dbRequest("get",[t+"/"])];case 2:n=r.sent(),r.label=3;case 3:if(void 0===n)throw Error("Entry does not exist.");return[2,{type:n.type,size:n.size,ctime:n.ctime,mtime:n.mtime,uri:n.path}]}}))}))},t.prototype.rename=function(e){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(t){return[2,this._copy(e,!0)]}))}))},t.prototype.copy=function(e){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(t){return[2,this._copy(e,!1)]}))}))},t.prototype._copy=function(e,t){return void 0===t&&(t=!1),Object(g.a)(this,void 0,void 0,(function(){var n,r,i,s,o,a,l,c,u,d,h,f,p,m,b,v,y=this;return Object(g.d)(this,(function(w){switch(w.label){case 0:if(r=e.from,i=e.directory,s=e.toDirectory,!(n=e.to)||!r)throw Error("Both to and from must be provided");if(s||(s=i),o=this.getPath(i,r),a=this.getPath(s,n),o===a)return[2,{}];if(a.startsWith(o))throw Error("To path cannot contain the from path");w.label=1;case 1:return w.trys.push([1,3,,6]),[4,this.stat({path:n,directory:s})];case 2:return l=w.sent(),[3,6];case 3:return w.sent(),(c=n.split("/")).pop(),u=c.join("/"),c.length>0?[4,this.stat({path:u,directory:s})]:[3,5];case 4:if("directory"!==w.sent().type)throw new Error("Parent directory of the to path is a file");w.label=5;case 5:return[3,6];case 6:if(l&&"directory"===l.type)throw new Error("Cannot overwrite a directory with a file");return[4,this.stat({path:r,directory:i})];case 7:switch(d=w.sent(),h=function(e,t,n){return Object(g.a)(y,void 0,void 0,(function(){var r,i;return Object(g.d)(this,(function(o){switch(o.label){case 0:return r=this.getPath(s,e),[4,this.dbRequest("get",[r])];case 1:return(i=o.sent()).ctime=t,i.mtime=n,[4,this.dbRequest("put",[i])];case 2:return o.sent(),[2]}}))}))},d.type){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:r,directory:i})];case 9:return f=w.sent(),t?[4,this.deleteFile({path:r,directory:i})]:[3,11];case 10:w.sent(),w.label=11;case 11:return[4,this.writeFile({path:n,directory:s,data:f.data})];case 12:return w.sent(),t?[4,h(n,d.ctime,d.mtime)]:[3,14];case 13:w.sent(),w.label=14;case 14:return[2,{}];case 15:if(l)throw Error("Cannot move a directory over an existing object");w.label=16;case 16:return w.trys.push([16,20,,21]),[4,this.mkdir({path:n,directory:s,recursive:!1})];case 17:return w.sent(),t?[4,h(n,d.ctime,d.mtime)]:[3,19];case 18:w.sent(),w.label=19;case 19:return[3,21];case 20:return w.sent(),[3,21];case 21:return[4,this.readdir({path:r,directory:i})];case 22:p=w.sent().files,m=0,b=p,w.label=23;case 23:return m<b.length?[4,this._copy({from:r+"/"+(v=b[m]),to:n+"/"+v,directory:i,toDirectory:s},t)]:[3,26];case 24:w.sent(),w.label=25;case 25:return m++,[3,23];case 26:return t?[4,this.rmdir({path:r,directory:i})]:[3,28];case 27:w.sent(),w.label=28;case 28:return[2,{}]}}))}))},t._debug=!0,t}(f)),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){if(t&&"object"==typeof t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})),e});new(function(e){function t(){return e.call(this,{name:"Geolocation",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.getCurrentPosition=function(e){var t=this;return new Promise((function(n,r){return t.requestPermissions().then((function(t){window.navigator.geolocation.getCurrentPosition((function(e){n(e)}),(function(e){r(e)}),m({enableHighAccuracy:!0,timeout:1e4,maximumAge:0},e))}))}))},t.prototype.watchPosition=function(e,t){return""+window.navigator.geolocation.watchPosition((function(e){t(e)}),(function(e){t(null,e)}),m({enableHighAccuracy:!0,timeout:1e4,maximumAge:0},e))},t.prototype.clearWatch=function(e){return window.navigator.geolocation.clearWatch(parseInt(e.id,10)),Promise.resolve()},t}(f)),new(function(e){function t(){return e.call(this,{name:"Device",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.getInfo=function(){return Object(g.a)(this,void 0,void 0,(function(){var e,t;return Object(g.d)(this,(function(n){return e=navigator.userAgent,t=this.parseUa(e),[2,Promise.resolve({model:t.model,platform:"web",appVersion:"",appBuild:"",appId:"",appName:"",operatingSystem:t.operatingSystem,osVersion:t.osVersion,manufacturer:navigator.vendor,isVirtual:!1,uuid:this.getUid()})]}))}))},t.prototype.getBatteryInfo=function(){return Object(g.a)(this,void 0,void 0,(function(){var e;return Object(g.d)(this,(function(t){switch(t.label){case 0:e={},t.label=1;case 1:return t.trys.push([1,3,,4]),[4,navigator.getBattery()];case 2:return e=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve({batteryLevel:e.level,isCharging:e.charging})]}}))}))},t.prototype.getLanguageCode=function(){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(e){return[2,{value:navigator.language}]}))}))},t.prototype.parseUa=function(e){var t={},n=e.indexOf("(")+1,r=e.indexOf(") AppleWebKit");-1!==e.indexOf(") Gecko")&&(r=e.indexOf(") Gecko"));var i=e.substring(n,r);if(-1!==e.indexOf("Android"))t.model=i.replace("; wv","").split("; ").pop().split(" Build")[0],t.osVersion=i.split("; ")[1];else if(t.model=i.split("; ")[0],navigator.oscpu)t.osVersion=navigator.oscpu;else if(-1!==e.indexOf("Windows"))t.osVersion=i;else{var s=i.split("; ").pop().replace(" like Mac OS X","").split(" ");t.osVersion=s[s.length-1].replace(/_/g,".")}return t.operatingSystem=/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":/Win/.test(e)?"windows":/Mac/i.test(e)?"mac":"unknown",t},t.prototype.getUid=function(){var e=window.localStorage.getItem("_capuid");return e||(e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),window.localStorage.setItem("_capuid",e),e)},t}(f)),new(function(e){function t(){var t=e.call(this,{name:"LocalNotifications",platforms:["web"]})||this;return t.pending=[],t}return Object(g.c)(t,e),t.prototype.createChannel=function(e){throw new Error("Feature not available in the browser. "+e.id)},t.prototype.deleteChannel=function(e){throw new Error("Feature not available in the browser. "+e.id)},t.prototype.listChannels=function(){throw new Error("Feature not available in the browser")},t.prototype.sendPending=function(){var e=this,t=[],n=+new Date;this.pending.forEach((function(r){r.schedule&&r.schedule.at&&+r.schedule.at<=n&&(e.buildNotification(r),t.push(r))})),console.log("Sent pending, removing",t),this.pending=this.pending.filter((function(e){return!t.find((function(t){return t===e}))}))},t.prototype.sendNotification=function(e){var t=this,n=e;if(e.schedule&&e.schedule.at){var r=+e.schedule.at-+new Date;return this.pending.push(n),void setTimeout((function(){t.sendPending()}),r)}this.buildNotification(e)},t.prototype.buildNotification=function(e){return new Notification(e.title,{body:e.body})},t.prototype.schedule=function(e){var t=this,n=[];return e.notifications.forEach((function(e){n.push(t.sendNotification(e))})),Promise.resolve({notifications:e.notifications.map((function(e){return{id:""+e.id}}))})},t.prototype.getPending=function(){return Promise.resolve({notifications:this.pending.map((function(e){return{id:""+e.id}}))})},t.prototype.registerActionTypes=function(e){throw new Error("Method not implemented.")},t.prototype.cancel=function(e){return console.log("Cancel these",e),this.pending=this.pending.filter((function(t){return!e.notifications.find((function(e){return e.id===""+t.id}))})),Promise.resolve()},t.prototype.areEnabled=function(){return Promise.resolve({value:"granted"===Notification.permission})},t.prototype.requestPermission=function(){return new Promise((function(e){Notification.requestPermission((function(t){var n=!0;"denied"!==t&&"default"!==t||(n=!1),e({granted:n})}))}))},t.prototype.requestPermissions=function(){return new Promise((function(e,t){Notification.requestPermission((function(n){"denied"!==n&&"default"!==n?e({results:[n]}):t(n)}))}))},t}(f)),new(function(e){function t(){return e.call(this,{name:"Share",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.share=function(e){return navigator.share?navigator.share({title:e.title,text:e.text,url:e.url}):Promise.reject("Web Share API not available")},t}(f)),new(function(e){function t(){return e.call(this,{name:"Modals",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.alert=function(e){return Object(g.a)(this,void 0,void 0,(function(){return Object(g.d)(this,(function(t){return window.alert(e.message),[2,Promise.resolve()]}))}))},t.prototype.prompt=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t;return Object(g.d)(this,(function(n){return t=window.prompt(e.message,e.inputText||""),[2,Promise.resolve({value:t,cancelled:null===t})]}))}))},t.prototype.confirm=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t;return Object(g.d)(this,(function(n){return t=window.confirm(e.message),[2,Promise.resolve({value:t})]}))}))},t.prototype.showActions=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t=this;return Object(g.d)(this,(function(n){return[2,new Promise((function(n,r){return Object(g.a)(t,void 0,void 0,(function(){var t,r=this;return Object(g.d)(this,(function(i){return(t=document.querySelector("pwa-action-sheet"))||(t=document.createElement("pwa-action-sheet"),document.body.appendChild(t)),t.header=e.title,t.cancelable=!1,t.options=e.options,t.addEventListener("onSelection",(function(e){return Object(g.a)(r,void 0,void 0,(function(){return Object(g.d)(this,(function(t){return n({index:e.detail}),[2]}))}))})),[2]}))}))}))]}))}))},t}(f)),new(function(e){function t(){var t=e.call(this,{name:"Motion"})||this;return t.registerWindowListener("devicemotion","accel"),t.registerWindowListener("deviceorientation","orientation"),t}return Object(g.c)(t,e),t}(f)),new(function(e){function t(){var t=e.call(this,{name:"Network",platforms:["web"]})||this;return t.listenerFunction=null,t}return Object(g.c)(t,e),t.prototype.getStatus=function(){return new Promise((function(e,t){if(window.navigator){var n=window.navigator.onLine,r=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;e({connected:n,connectionType:n?r?r.type||r.effectiveType:"wifi":"none"})}else t("Network info not available")}))},t.prototype.addListener=function(e,t){var n=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,r=t.bind(this,{connected:!0,connectionType:n?n.type||n.effectiveType:"wifi"}),i=t.bind(this,{connected:!1,connectionType:"none"});if(0===e.localeCompare("networkStatusChange"))return window.addEventListener("online",r),window.addEventListener("offline",i),{remove:function(){window.removeEventListener("online",r),window.removeEventListener("offline",i)}}},t}(f)),new(function(e){function t(){return e.call(this,{name:"Permissions"})||this}return Object(g.c)(t,e),t.prototype.query=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t;return Object(g.d)(this,(function(n){switch(n.label){case 0:return(t=window.navigator).permissions?[4,t.permissions.query({name:e.name===c.Photos?"camera":e.name})]:[2,Promise.reject("This browser does not support the Permissions API")];case 1:return[2,{state:n.sent().state}]}}))}))},t}(f)),new(function(e){function t(){return e.call(this,{name:"SplashScreen",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.show=function(e,t){return Promise.resolve()},t.prototype.hide=function(e,t){return Promise.resolve()},t}(f)),new(function(e){function t(){var t=e.call(this,{name:"Storage",platforms:["web"]})||this;return t.KEY_PREFIX="_cap_",t}return Object(g.c)(t,e),t.prototype.get=function(e){var t=this;return new Promise((function(n,r){n({value:window.localStorage.getItem(t.makeKey(e.key))})}))},t.prototype.set=function(e){var t=this;return new Promise((function(n,r){window.localStorage.setItem(t.makeKey(e.key),e.value),n()}))},t.prototype.remove=function(e){var t=this;return new Promise((function(n,r){window.localStorage.removeItem(t.makeKey(e.key)),n()}))},t.prototype.keys=function(){var e=this;return new Promise((function(t,n){t({keys:Object.keys(localStorage).filter((function(t){return e.isKey(t)})).map((function(t){return e.getKey(t)}))})}))},t.prototype.clear=function(){var e=this;return new Promise((function(t,n){Object.keys(localStorage).filter((function(t){return e.isKey(t)})).forEach((function(e){return window.localStorage.removeItem(e)})),t()}))},t.prototype.makeKey=function(e){return this.KEY_PREFIX+e},t.prototype.isKey=function(e){return 0===e.indexOf(this.KEY_PREFIX)},t.prototype.getKey=function(e){return e.substr(this.KEY_PREFIX.length)},t}(f)),new(function(e){function t(){return e.call(this,{name:"Toast",platforms:["web"]})||this}return Object(g.c)(t,e),t.prototype.show=function(e){return Object(g.a)(this,void 0,void 0,(function(){var t,n;return Object(g.d)(this,(function(r){return t=2e3,e.duration&&(t="long"===e.duration?3500:2e3),(n=document.createElement("pwa-toast")).duration=t,n.message=e.text,document.body.appendChild(n),[2]}))}))},t}(f)),function(e){for(var t=0,n=h.getPlugins();t<n.length;t++)p(e,n[t])}(d);var b=n("HDdC"),v=n("xgIS"),y={error:"cordova_not_available"},w={error:"plugin_not_installed"};function _(e){if("undefined"!=typeof window&&window.angular){var t=window.document,n=window.angular.element(t.querySelector("[ng-app]")||t.body).injector();if(n)return n.get("$q")((function(t,n){e(t,n)}));console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise((function(t,n){e(t,n)}));console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function C(e,t,n,r){var i,s;void 0===r&&(r={});var o=_((function(o,a){i=r.destruct?A(e,t,n,r,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)})):A(e,t,n,r,o,a),s=a}));return i&&i.error&&(o.catch((function(){})),"function"==typeof s&&s(i.error)),o}function S(e,t,n,r){return void 0===r&&(r={}),_((function(i,s){var o=A(e,t,n,r);o?o.error?s(o.error):o.then&&o.then(i).catch(s):s({error:"unexpected_error"})}))}function E(e,t,n,r){return void 0===r&&(r={}),new b.a((function(i){var s;return(s=r.destruct?A(e,t,n,r,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.next(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.error(e)})):A(e,t,n,r,i.next.bind(i),i.error.bind(i)))&&s.error&&(i.error(s.error),i.complete()),function(){try{if(r.clearFunction)return r.clearWithArgs?A(e,r.clearFunction,n,r,i.next.bind(i),i.error.bind(i)):A(e,r.clearFunction,[])}catch(s){console.warn("Unable to clear the previous observable watch for",e.constructor.getPluginName(),t),console.warn(s)}}}))}function x(e,t){return t="undefined"!=typeof window&&t?T(window,t):t||("undefined"!=typeof window?window:{}),Object(v.a)(t,e)}function k(e,t,n){var r,i,s;return"string"==typeof e?r=e:(r=e.constructor.getPluginRef(),n=e.constructor.getPluginName(),s=e.constructor.getPluginInstallName()),!(!(i=O(r))||t&&void 0===i[t])||("undefined"!=typeof window&&window.cordova?(function(e,t,n){n?console.warn("Native: tried calling "+e+"."+n+", but the "+e+" plugin is not installed."):console.warn("Native: tried accessing the "+e+" plugin but it's not installed."),t&&console.warn("Install the "+e+" plugin: 'ionic cordova plugin add "+t+"'")}(n,s,t),w):(function(e,t){"undefined"==typeof process&&(t?console.warn("Native: tried calling "+e+"."+t+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"):console.warn("Native: tried accessing the "+e+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"))}(n,t),y))}function A(e,t,n,r,i,s){void 0===r&&(r={}),n=function(e,t,n,r){if(void 0===t&&(t={}),t.sync)return e;if("reverse"===t.callbackOrder)e.unshift(r),e.unshift(n);else if("node"===t.callbackStyle)e.push((function(e,t){e?r(e):n(t)}));else if("object"===t.callbackStyle&&t.successName&&t.errorName){var i={};i[t.successName]=n,i[t.errorName]=r,e.push(i)}else if(void 0!==t.successIndex||void 0!==t.errorIndex){var s=function(){t.successIndex>e.length?e[t.successIndex]=n:e.splice(t.successIndex,0,n)},o=function(){t.errorIndex>e.length?e[t.errorIndex]=r:e.splice(t.errorIndex,0,r)};t.successIndex>t.errorIndex?(o(),s()):(s(),o())}else e.push(n),e.push(r);return e}(n,r,i,s);var o=k(e,t);if(!0===o){var a=O(e.constructor.getPluginRef());return a[t].apply(a,n)}return o}function O(e){return"undefined"!=typeof window?T(window,e):null}function T(e,t){for(var n=t.split("."),r=e,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}var I=function(){function e(){}return e.installed=function(){return!0===k(this.pluginRef)},e.getPlugin=function(){return"undefined"!=typeof window?function(e,t){for(var n=t.split("."),r=e,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}(window,this.pluginRef):null},e.getPluginName=function(){return this.pluginName},e.getPluginRef=function(){return this.pluginRef},e.getPluginInstallName=function(){return this.plugin},e.getSupportedPlatforms=function(){return this.platforms},e.pluginName="",e.pluginRef="",e.plugin="",e.repo="",e.platforms=[],e.install="",e}();function $(e,t,n,r){return function(e,t,n){return void 0===n&&(n={}),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n.sync?A(e,t,r,n):n.observable?E(e,t,r,n):n.eventObservable&&n.event?x(n.event,n.element):n.otherPromise?S(e,t,r,n):C(e,t,r,n)}}(e,t,n).apply(this,r)}!function(){if("undefined"==typeof process){var e="undefined"!=typeof window?window:{},t=Date.now(),n=!1;e.document.addEventListener("deviceready",(function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-t)+" ms"),n=!0})),setTimeout((function(){!n&&e.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")}),5e3)}}();var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(g.c)(t,e),t.prototype.show=function(){return $(this,"show",{sync:!0},arguments)},t.prototype.hide=function(){return $(this,"hide",{sync:!0},arguments)},t.pluginName="SplashScreen",t.plugin="cordova-plugin-splashscreen",t.pluginRef="navigator.splashscreen",t.repo="https://github.com/apache/cordova-plugin-splashscreen",t.platforms=["Amazon Fire OS","Android","iOS","Windows"],t}(I),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(g.c)(t,e),t.prototype.overlaysWebView=function(e){return $(this,"overlaysWebView",{sync:!0},arguments)},t.prototype.styleDefault=function(){return $(this,"styleDefault",{sync:!0},arguments)},t.prototype.styleLightContent=function(){return $(this,"styleLightContent",{sync:!0},arguments)},t.prototype.styleBlackTranslucent=function(){return $(this,"styleBlackTranslucent",{sync:!0},arguments)},t.prototype.styleBlackOpaque=function(){return $(this,"styleBlackOpaque",{sync:!0},arguments)},t.prototype.backgroundColorByName=function(e){return $(this,"backgroundColorByName",{sync:!0},arguments)},t.prototype.backgroundColorByHexString=function(e){return $(this,"backgroundColorByHexString",{sync:!0},arguments)},t.prototype.hide=function(){return $(this,"hide",{sync:!0},arguments)},t.prototype.show=function(){return $(this,"show",{sync:!0},arguments)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0===k(this,"isVisible")?O(this.constructor.getPluginRef()).isVisible:null},set:function(e){!function(e,t,n){!0===k(e,"isVisible")&&(O(e.constructor.getPluginRef()).isVisible=n)}(this,0,e)},enumerable:!1,configurable:!0}),t.pluginName="StatusBar",t.plugin="cordova-plugin-statusbar",t.pluginRef="StatusBar",t.repo="https://github.com/apache/cordova-plugin-statusbar",t.platforms=["Android","iOS","Windows"],t}(I),R=n("awA4"),P=n("+/F9");const{App:D}=d;class M{constructor(e,t,n,r,i,s){this.platform=e,this.splashScreen=t,this.statusBar=n,this.menuCtrl=r,this.toastCtrl=i,this.system=s,this.initializeApp()}initializeApp(){this.platform.ready().then(()=>{this.statusBar.styleDefault(),this.splashScreen.hide(),this.system.setBrowser(this.platform.is("pwa")),D.addListener("appStateChange",e=>{e.isActive?(console.log("Duotecno App has become active"),Object(P.d)(this.toastCtrl,"Updating all units",1500),this.system.emitter.emit("refresh")):console.log("Duotecno App has become inactive")})})}selected(){const e=this.system.groups.find(e=>e.visible);return e?e.id:0}doRadio(e){const t=e.detail.value;this.system.groups.forEach(e=>{e.visible=e.id==t}),this.system.writeGroups(),e.preventDefault(),this.menuCtrl.close()}doCheck(e,t){t.visible=e.detail.checked,this.system.writeGroups()}done(){this.menuCtrl.close()}splitter(e){this.system.isSplitted=e.detail.visible}}var V=n("pMnS"),L=n("MKJQ"),U=n("sZkV"),F=n("s7LF"),z=n("SVse"),B=n("F6QC"),q=n("iInd"),H=r.nb({encapsulation:2,styles:[],data:{}});function G(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,8,"ion-item",[["lines","none"]],null,null,null,L.S,L.j)),r.ob(1,49152,null,0,U.G,[r.h,r.k,r.x],{lines:[0,"lines"]},null),(e()(),r.pb(2,0,null,0,2,"ion-label",[],null,null,null,L.T,L.m)),r.ob(3,49152,null,0,U.M,[r.h,r.k,r.x],null,null),(e()(),r.Ib(4,0,[" "," "])),(e()(),r.pb(5,0,null,0,3,"ion-checkbox",[["slot","start"]],null,[[null,"ionChange"],[null,"ionBlur"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Bb(e,8)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Bb(e,8)._handleIonChange(n.target)&&i),"ionChange"===t&&(i=!1!==s.doCheck(n,e.context.$implicit)&&i),i}),L.K,L.d)),r.Fb(5120,null,F.b,(function(e){return[e]}),[U.c]),r.ob(7,49152,null,0,U.q,[r.h,r.k,r.x],{checked:[0,"checked"]},null),r.ob(8,4341760,null,0,U.c,[r.p,r.k],null,null)],(function(e,t){e(t,1,0,"none"),e(t,7,0,t.context.$implicit.visible)}),(function(e,t){e(t,4,0,t.context.$implicit.name)}))}function W(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,3,"ion-list",[],null,null,null,L.V,L.n)),r.ob(1,49152,null,0,U.N,[r.h,r.k,r.x],null,null),(e()(),r.eb(16777216,null,0,1,null,G)),r.ob(3,278528,null,0,z.i,[r.M,r.J,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,3,0,t.component.system.groups)}),null)}function K(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,8,"ion-item",[["lines","none"]],null,null,null,L.S,L.j)),r.ob(1,49152,null,0,U.G,[r.h,r.k,r.x],{lines:[0,"lines"]},null),(e()(),r.pb(2,0,null,0,2,"ion-label",[],null,null,null,L.T,L.m)),r.ob(3,49152,null,0,U.M,[r.h,r.k,r.x],null,null),(e()(),r.Ib(4,0,[" "," "])),(e()(),r.pb(5,0,null,0,3,"ion-radio",[["color","secondary"],["slot","start"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Bb(e,8)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Bb(e,8)._handleIonSelect(n.target)&&i),i}),L.Z,L.r)),r.Fb(5120,null,F.b,(function(e){return[e]}),[U.Jb]),r.ob(7,49152,null,0,U.W,[r.h,r.k,r.x],{color:[0,"color"],value:[1,"value"]},null),r.ob(8,4341760,null,0,U.Jb,[r.p,r.k],null,null)],(function(e,t){e(t,1,0,"none"),e(t,7,0,"secondary",r.tb(1,"",t.context.$implicit.id,""))}),(function(e,t){e(t,4,0,t.context.$implicit.name)}))}function X(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,5,"ion-radio-group",[],null,[[null,"ionChange"],[null,"ionBlur"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Bb(e,3)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Bb(e,3)._handleChangeEvent(n.target)&&i),"ionChange"===t&&(i=!1!==s.doRadio(n)&&i),i}),L.Y,L.s)),r.Fb(5120,null,F.b,(function(e){return[e]}),[U.Kb]),r.ob(2,49152,null,0,U.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.ob(3,4341760,null,0,U.Kb,[r.p,r.k],null,null),(e()(),r.eb(16777216,null,0,1,null,K)),r.ob(5,278528,null,0,z.i,[r.M,r.J,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,2,0,r.tb(1,"",n.selected(),"")),e(t,5,0,n.system.groups)}),null)}function Q(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,3,"ion-button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.done()&&r),r}),L.I,L.b)),r.ob(1,49152,null,0,U.j,[r.h,r.k,r.x],null,null),(e()(),r.Ib(2,0,["",""])),r.Cb(0,B.b,[])],null,(function(e,t){e(t,2,0,r.Jb(t,2,0,r.Bb(t,3).transform("General.Done")))}))}function Z(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,23,"ion-app",[],null,null,null,L.H,L.a)),r.ob(1,49152,null,0,U.e,[r.h,r.k,r.x],null,null),(e()(),r.pb(2,0,null,0,21,"ion-split-pane",[["contentId","main"]],null,[[null,"ionSplitPaneVisible"]],(function(e,t,n){var r=!0;return"ionSplitPaneVisible"===t&&(r=!1!==e.component.splitter(n)&&r),r}),L.hb,L.A)),r.ob(3,49152,null,0,U.pb,[r.h,r.k,r.x],{contentId:[0,"contentId"]},null),(e()(),r.pb(4,0,null,0,17,"ion-menu",[["contentId","main"]],null,null,null,L.X,L.p)),r.ob(5,49152,null,0,U.P,[r.h,r.k,r.x],{contentId:[0,"contentId"]},null),(e()(),r.pb(6,0,null,0,7,"ion-header",[],null,null,null,L.N,L.g)),r.ob(7,49152,null,0,U.A,[r.h,r.k,r.x],null,null),(e()(),r.pb(8,0,null,0,5,"ion-toolbar",[],null,null,null,L.nb,L.G)),r.ob(9,49152,null,0,U.yb,[r.h,r.k,r.x],null,null),(e()(),r.pb(10,0,null,0,3,"ion-title",[],null,null,null,L.lb,L.E)),r.ob(11,49152,null,0,U.wb,[r.h,r.k,r.x],null,null),(e()(),r.Ib(12,0,["",""])),r.Cb(0,B.b,[]),(e()(),r.pb(14,0,null,0,7,"ion-content",[["class","ion-padding"]],null,null,null,L.L,L.e)),r.ob(15,49152,null,0,U.t,[r.h,r.k,r.x],null,null),(e()(),r.eb(16777216,null,0,1,null,W)),r.ob(17,16384,null,0,z.j,[r.M,r.J],{ngIf:[0,"ngIf"]},null),(e()(),r.eb(16777216,null,0,1,null,X)),r.ob(19,16384,null,0,z.j,[r.M,r.J],{ngIf:[0,"ngIf"]},null),(e()(),r.eb(16777216,null,0,1,null,Q)),r.ob(21,16384,null,0,z.j,[r.M,r.J],{ngIf:[0,"ngIf"]},null),(e()(),r.pb(22,16777216,null,0,1,"ion-router-outlet",[["id","main"]],null,null,null,null,null)),r.ob(23,212992,null,0,U.eb,[q.b,r.M,r.j,[8,null],[8,null],U.d,U.Eb,z.f,r.k,q.m,r.x,q.a,[3,U.eb]],null,null)],(function(e,t){var n=t.component;e(t,3,0,"main"),e(t,5,0,"main"),e(t,17,0,n.system.config.multiple),e(t,19,0,!n.system.config.multiple),e(t,21,0,!n.system.isSplitted&&n.system.config.multiple),e(t,23,0)}),(function(e,t){e(t,12,0,r.Jb(t,12,0,r.Bb(t,13).transform("Config.Groups")))}))}function Y(e){return r.Kb(0,[(e()(),r.pb(0,0,null,null,1,"app-root",[],null,null,null,Z,H)),r.ob(1,49152,null,0,M,[U.Hb,N,j,U.Cb,U.Mb,R.a],null,null)],null,null)}var J=r.lb("app-root",M,Y,{},{},[]),ee=n("TGma"),te=n("cUpR"),ne=n("RjOq"),re=n("pKmL");const ie=()=>n.e(10).then(n.bind(null,"yZcV")).then(e=>e.TabsPageModuleNgFactory);class se{}var oe=r.mb(i,[M],(function(e){return r.yb([r.zb(512,r.j,r.X,[[8,[V.a,J]],[3,r.j],r.v]),r.zb(5120,r.s,r.jb,[[3,r.s]]),r.zb(4608,z.l,z.k,[r.s,[2,z.t]]),r.zb(4608,F.g,F.g,[]),r.zb(4608,U.b,U.b,[r.x,r.g]),r.zb(4608,U.Db,U.Db,[U.b,r.j,r.p]),r.zb(4608,U.Ib,U.Ib,[U.b,r.j,r.p]),r.zb(4608,B.b,B.b,[]),r.zb(4608,ee.a,ee.a,[]),r.zb(5120,r.fb,r.kb,[r.x]),r.zb(5120,r.c,r.gb,[]),r.zb(5120,r.q,r.hb,[]),r.zb(5120,r.r,r.ib,[]),r.zb(4608,te.b,te.k,[z.c]),r.zb(6144,r.E,null,[te.b]),r.zb(4608,te.e,te.g,[]),r.zb(5120,te.c,(function(e,t,n,r,i,s,o,a){return[new te.i(e,t,n),new te.n(r),new te.m(i,s,o,a)]}),[z.c,r.x,r.z,z.c,z.c,te.e,r.Y,[2,te.f]]),r.zb(4608,te.d,te.d,[te.c,r.x]),r.zb(135680,te.l,te.l,[z.c]),r.zb(4608,te.j,te.j,[te.d,te.l,r.c]),r.zb(6144,r.C,null,[te.j]),r.zb(6144,te.o,null,[te.l]),r.zb(4608,r.K,r.K,[r.x]),r.zb(5120,q.a,q.y,[q.m]),r.zb(4608,q.g,q.g,[]),r.zb(6144,q.h,null,[q.g]),r.zb(135680,q.p,q.p,[q.m,r.u,r.i,r.p,q.h]),r.zb(4608,q.e,q.e,[]),r.zb(5120,q.D,q.u,[q.m,z.o,q.i]),r.zb(5120,q.j,q.B,[q.z]),r.zb(5120,r.b,(function(e){return[e]}),[q.j]),r.zb(4608,j,j,[]),r.zb(4608,N,N,[]),r.zb(4608,ne.a,ne.a,[]),r.zb(4608,R.a,R.a,[U.Mb,U.a,ne.a]),r.zb(1073742336,z.b,z.b,[]),r.zb(1073742336,F.f,F.f,[]),r.zb(1073742336,F.a,F.a,[]),r.zb(1073742336,U.Ab,U.Ab,[]),r.zb(1073742336,re.a,re.a,[]),r.zb(1024,r.l,te.p,[]),r.zb(1024,r.w,(function(){return[q.t()]}),[]),r.zb(512,q.z,q.z,[r.p]),r.zb(256,U.Nb,void 0,[]),r.zb(1024,r.d,(function(e,t,n,r,i){return[te.q(e),q.A(t),U.Ob(n,r,i)]}),[[2,r.w],q.z,U.Nb,z.c,r.x]),r.zb(512,r.e,r.e,[[2,r.d]]),r.zb(131584,r.g,r.g,[r.x,r.Y,r.p,r.l,r.j,r.e]),r.zb(1073742336,r.f,r.f,[r.g]),r.zb(1073742336,te.a,te.a,[[3,te.a]]),r.zb(1024,q.s,q.w,[[3,q.m]]),r.zb(512,q.r,q.c,[]),r.zb(512,q.b,q.b,[]),r.zb(256,q.i,{preloadingStrategy:q.g},[]),r.zb(1024,z.g,q.v,[z.n,[2,z.a],q.i]),r.zb(512,z.f,z.f,[z.g,z.n]),r.zb(512,r.i,r.i,[]),r.zb(512,r.u,r.H,[r.i,[2,r.I]]),r.zb(1024,q.k,(function(){return[[{path:"",loadChildren:ie}]]}),[]),r.zb(512,q.l,U.Bb,[]),r.zb(1024,q.m,q.x,[r.g,q.r,q.b,z.f,r.p,r.u,r.i,q.k,q.i,[2,q.q],[2,q.l]]),r.zb(1073742336,q.n,q.n,[[2,q.s],[2,q.m]]),r.zb(1073742336,se,se,[]),r.zb(1073742336,i,i,[]),r.zb(256,r.W,!0,[])])}));Object(r.Q)(),te.h().bootstrapModuleFactory(oe).catch(e=>console.log(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zx2A:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var r=n("7o/Q"),i=n("HDdC"),s=n("SeVD");class o extends r.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function l(e,t){if(t.closed)return;if(e instanceof i.a)return e.subscribe(t);let n;try{n=Object(s.a)(e)(t)}catch(r){t.error(r)}return n}}},[[0,1]]]);