!function(e){function t(t){for(var n,i,s=t[0],o=t[1],a=0,u=[];at||T(n,e,t,">")}function I(e,t,n){e>=t||T(n,e,t,">=")}function x(e,t){null==e&&T(t,e,null,"!=")}function T(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function A(e){"undefined"!=typeof Node&&e instanceof Node||"object"==typeof e&&null!=e&&"WebWorkerRenderNode"===e.constructor.name||T(`The provided value must be an instance of a DOM Node but got ${l(e)}`)}function D(e,t){x(e,"Array must be defined.");const n=e.length;(t<0||t>=n)&&T(`Index expected to be less than ${n} but got ${t}`)}function k(e,...t){if(-1!==t.indexOf(e))return!0;T(`Expected value to be one of ${JSON.stringify(t)} but was ${JSON.stringify(e)}.`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const M=P;function R(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function N(e){return L(e,j)||L(e,B)}function L(e,t){return e.hasOwnProperty(t)?e[t]:null}function F(e){return e&&(e.hasOwnProperty(V)||e.hasOwnProperty(U))?e[V]:null}const j=c({"ɵprov":c}),V=c({"ɵinj":c}),B=c({ngInjectableDef:c}),U=c({ngInjectorDef:c}); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var G; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let q;function $(){return q}function H(e){const t=q;return q=e,t}function z(e,t,n){const r=N(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&G.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${l(e)}]`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function W(e){return{toString:e}.toString()} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var K,Y,X;function Q(e){return null==e||e===K.Default} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){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"}(G||(G={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(K||(K={})),function(e){e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed"}(Y||(Y={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(X||(X={})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Z="undefined"!=typeof globalThis&&globalThis,J="undefined"!=typeof window&&window,ee="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,te=Z||void 0!==e&&e||J||ee;function ne(){return!("undefined"!=typeof ngDevMode&&!ngDevMode)&&("object"!=typeof ngDevMode&& /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(){const e="undefined"!=typeof location?location.toString():"",t={namedConstructors:-1!=e.indexOf("ngDevMode=namedConstructors"),firstCreatePass:0,tNode:0,tView:0,rendererCreateTextNode:0,rendererSetText:0,rendererCreateElement:0,rendererAddEventListener:0,rendererSetAttribute:0,rendererRemoveAttribute:0,rendererSetProperty:0,rendererSetClassName:0,rendererAddClass:0,rendererRemoveClass:0,rendererSetStyle:0,rendererRemoveStyle:0,rendererDestroy:0,rendererDestroyNode:0,rendererMoveNode:0,rendererRemoveNode:0,rendererAppendChild:0,rendererInsertBefore:0,rendererCreateComment:0},n=-1===e.indexOf("ngDevMode=false");te.ngDevMode=n&&t}(),"undefined"!=typeof ngDevMode&&!!ngDevMode)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const re={},ie=[];("undefined"==typeof ngDevMode||ngDevMode)&&ne()&&(Object.freeze(re),Object.freeze(ie)) /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */;const se=c({"ɵcmp":c}),oe=c({"ɵdir":c}),ae=c({"ɵpipe":c}),ce=c({"ɵmod":c}),ue=c({"ɵloc":c}),le=c({"ɵfac":c}),he=c({__NG_ELEMENT_ID__:c}); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let de=0;function pe(e){return W(()=>{("undefined"==typeof ngDevMode||ngDevMode)&&ne();const t=e.type,n=(t.prototype,{}),r={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===K.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||X.Emulated,id:"c",styles:e.styles||ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,o=e.pipes;return r.id+=de++,r.inputs=ve(e.inputs,n),r.outputs=ve(e.outputs),s&&s.forEach(e=>e(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(_e):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(me):null,r})}function fe(e,t,n){const r=e.ɵcmp;r.directiveDefs=(()=>t.map(_e)),r.pipeDefs=(()=>n.map(me))}function _e(e){const t=Se(e)||Ce(e);if(ngDevMode&&!t)throw new Error(`'${e.name}' is neither 'ComponentType' or 'DirectiveType'.`);return t}function me(e){const t=Oe(e);if(ngDevMode&&!t)throw new Error(`'${e.name}' is not a 'PipeType'.`);return t}const ge={};function be(e){const t={type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&W(()=>{ge[e.id]=e.type}),t}function ye(e,t){return W(()=>{const n=Ie(e,!0);n.declarations=t.declarations||ie,n.imports=t.imports||ie,n.exports=t.exports||ie})}function ve(e,t){if(null==e)return re;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 we=pe;function Ee(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Se(e){return e[se]||null}function Ce(e){return e[oe]||null}function Oe(e){return e[ae]||null}function Ie(e,t){const n=e[ce]||null;if(!n&&!0===t)throw new Error(`Type ${l(e)} does not have 'ɵmod' property.`);return n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const xe=0,Te=1,Ae=2,De=3,ke=4,Pe=5,Me=6,Re=7,Ne=8,Le=9,Fe=10,je=11,Ve=12,Be=13,Ue=14,Ge=15,qe=16,$e=17,He=18,ze=19,We=20,Ke=["Root","Component","Embedded"],Ye=1,Xe=2,Qe=7,Ze=8,Je=9,et=10; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function tt(e){return Array.isArray(e)&&"object"==typeof e[Ye]}function nt(e){return Array.isArray(e)&&!0===e[Ye]}function rt(e){return 0!=(8&e.flags)}function it(e){return 2==(2&e.flags)}function st(e){return 1==(1&e.flags)}function ot(e){return null!==e.template} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function at(e,t){ct(e,t[Te])}function ct(e,t){ut(e),e.hasOwnProperty("tView_")&&y(e.tView_,t,"This TNode does not belong to this TView.")}function ut(e){x(e,"TNode must be defined"),e&&"object"==typeof e&&e.hasOwnProperty("directiveStylingLast")||T("Not of type TNode, got: "+e)}function lt(e){x(e,"Expected TIcu to be defined"),"number"!=typeof e.currentCaseLViewIndex&&T("Object is not of TIcu type.")}function ht(e,t="Type passed in is not ComponentType, it does not have 'ɵcmp' property."){Se(e)||T(t)}function dt(e){x(e,"currentTNode should exist!"),x(e.parent,"currentTNode should have a parent")}function pt(e){x(e,"LContainer must be defined"),y(nt(e),!0,"Expecting LContainer")}function ft(e){e&&y(tt(e),!0,"Expecting LView or undefined or null")}function _t(e){x(e,"LView must be defined"),y(tt(e),!0,"Expecting LView")}function mt(e,t){y(e.firstCreatePass,!0,t||"Should only be called in first create pass.")}function gt(e,t){y(e.firstUpdatePass,!0,t||"Should only be called in first update pass.")}function bt(e,t){yt(e[1].expandoStartIndex,e.length,t)}function yt(e,t,n){e<=n&&n ")} > ${e}`:"";throw new Ct("200",`Circular dependency in DI detected for ${e}${n}`)}function Dt(){throw new Error("Cannot mix multi providers and regular providers")}function kt(e,t){const n=t?` in ${t}`:"";throw new Ct("201",`No provider for ${Tt(e)} found${n}`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Pt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Mt(){return Rt}function Rt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lt),Nt}function Nt(){const e=jt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===re)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Lt(e,t,n,r){const i=jt(e)||function(e,t){return e[Ft]=t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,{previous:re,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],c=o[a];s[a]=new Pt(c&&c.currentValue,t,o===re),e[r]=t}Mt.ngInherit=!0;const Ft="__ngSimpleChanges__";function jt(e){return e[Ft]||null}const Vt="http://www.w3.org/2000/svg",Bt="http://www.w3.org/1998/MathML/",Ut="__ngContext__"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let Gt=void 0;function qt(e){Gt=e}function $t(){return void 0!==Gt?Gt:"undefined"!=typeof document?document:void 0} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Ht;function zt(e){return!!e.listen}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Ht||(Ht={}));const Wt={createRenderer:(e,t)=>$t()}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Kt(e){for(;Array.isArray(e);)e=e[xe];return e}function Yt(e,t){return ngDevMode&&D(t,e),ngDevMode&&I(e,We,"Expected to be past HEADER_OFFSET"),Kt(t[e])}function Xt(e,t){ngDevMode&&at(e,t),ngDevMode&&D(t,e.index);const n=Kt(t[e.index]);return ngDevMode&&!zt(t[je])&&A(n),n}function Qt(e,t){ngDevMode&&O(t,-1,"wrong index for TNode"),ngDevMode&&S(t,e.data.length,"wrong index for TNode");const n=e.data[t];return ngDevMode&&null!==n&&ut(n),n}function Zt(e,t){return ngDevMode&&D(e,t),e[t]}function Jt(e,t){ngDevMode&&D(t,e);const n=t[e];return tt(n)?n:n[xe]}function en(e){return ngDevMode&&x(e,"Target expected"),e[Ut]||null}function tn(e){const t=en(e);return t?Array.isArray(t)?t:t.lView:null}function nn(e){return 4==(4&e[Ae])}function rn(e){return 128==(128&e[Ae])}function sn(e,t){return null==t?null:(ngDevMode&&D(e,t),e[t])}function on(e){e[He]=0}function an(e,t){e[Pe]+=t;let n=e,r=e[De];for(;null!==r&&(1===t&&1===n[Pe]||-1===t&&0===n[Pe]);)r[Pe]+=t,n=r,r=r[De]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const cn={lFrame:jn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function un(){return cn.bindingsEnabled}function ln(){cn.bindingsEnabled=!0}function hn(){cn.bindingsEnabled=!1}function dn(){return cn.lFrame.lView}function pn(){return cn.lFrame.tView}function fn(e){cn.lFrame.contextLView=e}function _n(){let e=mn();for(;null!==e&&64===e.type;)e=e.parent;return e}function mn(){return cn.lFrame.currentTNode}function gn(){const e=cn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function bn(e,t){ngDevMode&&e&&ct(e,cn.lFrame.tView);const n=cn.lFrame;n.currentTNode=e,n.isParent=t}function yn(){return cn.lFrame.isParent}function vn(){cn.lFrame.isParent=!1}function wn(){return cn.isInCheckNoChangesMode}function En(e){cn.isInCheckNoChangesMode=e}function Sn(){const e=cn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Cn(){return cn.lFrame.bindingIndex}function On(e){return cn.lFrame.bindingIndex=e}function In(){return cn.lFrame.bindingIndex++}function xn(e){const t=cn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Tn(e){cn.lFrame.inI18n=e}function An(e,t){const n=cn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Dn(t)}function Dn(e){cn.lFrame.currentDirectiveIndex=e}function kn(e){const t=cn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Pn(){return cn.lFrame.currentQueryIndex}function Mn(e){cn.lFrame.currentQueryIndex=e}function Rn(e){const t=e[Te];return 2===t.type?(ngDevMode&&x(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):1===t.type?e[Me]:null}function Nn(e,t,n){if(ngDevMode&&ft(e),n&G.SkipSelf){ngDevMode&&ct(t,e[Te]);let r=t,i=e;for(;!(ngDevMode&&x(r,"Parent TNode should be defined"),null!==(r=r.parent)||n&G.Host||null===(r=Rn(i))||(ngDevMode&&x(i,"Parent LView should be defined"),i=i[Ge],10&r.type)););if(null===r)return!1;t=r,e=i}ngDevMode&&at(t,e);const r=cn.lFrame=Fn();return r.currentTNode=t,r.lView=e,!0}function Ln(e){ngDevMode&&v(e[0],e[1],"????"),ngDevMode&&ft(e);const t=Fn();ngDevMode&&(y(t.isParent,!0,"Expected clean LFrame"),y(t.lView,null,"Expected clean LFrame"),y(t.tView,null,"Expected clean LFrame"),y(t.selectedIndex,-1,"Expected clean LFrame"),y(t.elementDepthCount,0,"Expected clean LFrame"),y(t.currentDirectiveIndex,-1,"Expected clean LFrame"),y(t.currentNamespace,null,"Expected clean LFrame"),y(t.bindingRootIndex,-1,"Expected clean LFrame"),y(t.currentQueryIndex,0,"Expected clean LFrame"));const n=e[Te];cn.lFrame=t,ngDevMode&&n.firstChild&&ct(n.firstChild,n),t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fn(){const e=cn.lFrame,t=null===e?null:e.child;return null===t?jn(e):t}function jn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Vn(){const e=cn.lFrame;return cn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bn=Vn;function Un(){const e=Vn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gn(e){return(cn.lFrame.contextLView=function(e,t){for(;e>0;)ngDevMode&&x(t[Ge],"Declaration view should be defined if nesting level is greater than 0."),t=t[Ge],e--;return t}(e,cn.lFrame.contextLView))[Ne]}function qn(){return cn.lFrame.selectedIndex}function $n(e){ngDevMode&&-1!==e&&I(e,We,"Index must be past HEADER_OFFSET (or -1)."),ngDevMode&&S(e,cn.lFrame.lView.length,"Can't set index passed end of LView"),cn.lFrame.selectedIndex=e}function Hn(){const e=cn.lFrame;return Qt(e.tView,e.selectedIndex)}function zn(){cn.lFrame.currentNamespace=Vt}function Wn(){cn.lFrame.currentNamespace=Bt}function Kn(){cn.lFrame.currentNamespace=null}function Yn(e,t){ngDevMode&&mt(e);for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else{t[c]<0&&(e[He]+=65536),(a>11>16&&(3&e[Ae])===t&&(e[Ae]+=2048,s.call(o))}else s.call(o)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const tr=-1;class nr{constructor(e,t,n){this.factory=e,this.resolving=!1,ngDevMode&&x(e,"Factory not specified"),ngDevMode&&y(typeof e,"function","Expected factory function."),this.canSeeViewProviders=t,this.injectImpl=n}}function rr(e){let t="";return 1&e&&(t+="|Text"),2&e&&(t+="|Element"),4&e&&(t+="|Container"),8&e&&(t+="|ElementContainer"),16&e&&(t+="|Projection"),32&e&&(t+="|IcuContainer"),64&e&&(t+="|Placeholder"),t.length>0?t.substring(1):t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ir(e,t,n){x(e,"should be called with a TNode"),0==(e.type&t)&&T(n||`Expected [${rr(t)}] but got ${rr(e.type)}.`)}function sr(e,t,n){const r=zt(e);let i=0;for(;it){o=s-1;break}}}for(;s>16;let r=t;for(;n>0;)r=r[Ge],n--;return r} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let pr=!0;function fr(e){const t=pr;return pr=e,t}const _r=255,mr=5;let gr=0;function br(e,t){const n=vr(e,t);if(-1!==n)return n;const r=t[Te];r.firstCreatePass&&(e.injectorIndex=t.length,yr(r.data,e),yr(t,null),yr(r.blueprint,null));const i=wr(e,t),s=e.injectorIndex;if(lr(i)){const e=hr(i),n=dr(i,t),r=n[Te].data;for(let i=0;i<8;i++)t[s+i]=n[e+i]|r[e+i]}return t[s+8]=i,s}function yr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function vr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:(ngDevMode&&D(t,e.injectorIndex),e.injectorIndex)}function wr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const e=i[Te],t=e.type;if(2===t?(ngDevMode&&x(e.declTNode,"Embedded TNodes should have declaration parents."),r=e.declTNode):1===t?r=i[Me]:(ngDevMode&&y(e.type,0,"Root type expected"),r=null),null===r)return tr;if(ngDevMode&&r&&at(r,i[Ge]),n++,i=i[Ge],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return tr}function Er(e,t,n){!function(e,t,n){let r;ngDevMode&&y(t.firstCreatePass,!0,"expected firstCreatePass to be true"),"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(he)&&(r=n[he]),null==r&&(r=n[he]=gr++);const i=r&_r,s=1<>mr)]|=s}(e,t,n)}function Sr(e,t){if(ngDevMode&&ir(e,15),ngDevMode&&x(e,"expecting tNode"),"class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let r=0;for(;r=0?t&_r:(ngDevMode&&y(t,-1,"Expecting to get Special Injector Id"),Tr):t}(n);if("function"==typeof s){if(!Nn(t,e,r))return r&G.Host?Cr(i,n,r):Or(t,n,r,i);try{const e=s();if(null!=e||r&G.Optional)return e;kt(n)}finally{Bn()}}else if("number"==typeof s){let i=null,o=vr(e,t),a=tr,c=r&G.Host?t[qe][Me]:null;for((-1===o||r&G.SkipSelf)&&((a=-1===o?wr(e,t):t[o+8])!==tr&&Mr(r,!1)?(i=t[Te],o=hr(a),t=dr(a,t)):o=-1);-1!==o;){ngDevMode&&wt(t,o);const e=t[Te];if(ngDevMode&&at(e.data[o+8],t),Pr(s,o,e.data)){const e=Ar(o,t,n,i,r,c);if(e!==xr)return e}(a=t[o+8])!==tr&&Mr(r,t[Te].data[o+8]===c)&&Pr(s,o,t)?(i=e,o=hr(a),t=dr(a,t)):o=-1}}}return Or(t,n,r,i)}const xr={};function Tr(){return new Rr(_n(),dn())}function Ar(e,t,n,r,i,s){const o=t[Te],a=o.data[e+8],c=Dr(a,o,n,null==r?it(a)&&pr:r!=o&&0!=(3&a.type),i&G.Host&&s===a);return null!==c?kr(t,o,c,a):xr}function Dr(e,t,n,r,i){const s=e.providerIndexes,o=t.data,a=1048575&s,c=e.directiveStart,u=e.directiveEnd,l=s>>20,h=i?a+l:u;for(let e=r?a:a+l;e=c&&t.type===n)return e}if(i){const e=o[c];if(e&&ot(e)&&e.type===n)return c}return null}function kr(e,t,n,r){let i=e[n];const s=t.data;if(i instanceof nr){const o=i;o.resolving&&At(Tt(s[n]));const a=fr(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?H(o.injectImpl):null,u=Nn(e,r,G.Default);ngDevMode&&y(u,!0,"Because flags do not contain `SkipSelf' we expect this to always succeed.");try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&(ngDevMode&&function(e){void 0!==e.type&&null!=e.selectors&&void 0!==e.inputs||T("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.")}(s[n]), /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e,t,n){ngDevMode&&mt(n);const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const r=Rt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t))}finally{null!==c&&H(c),fr(a),o.resolving=!1,Bn()}}return i}function Pr(e,t,n){const r=1<>mr)]&r)}function Mr(e,t){return!(e&G.Self||e&G.Host&&t)}class Rr{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Ir(this._tNode,this._lView,e,void 0,t)}}function Nr(e){const t=e;if(_(e))return()=>{const e=Nr(f(t));return e?e():null};let n=Et(t);if(null===n){const e=F(t);n=e&&e.factory}return n||null}function Lr(e){return W(()=>{const t=e.prototype.constructor,n=t[le]||Nr(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[le]||Nr(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Fr(e){return Sr(_n(),e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const jr="__annotations__",Vr="__parameters__",Br="__prop__metadata__";function Ur(e,t,n,r,i){return W(()=>{const s=Gr(t);function o(...e){if(this instanceof o)return s.call(this,...e),this;const t=new o(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(jr)?n[jr]:Object.defineProperty(n,jr,{value:[]})[jr]).push(t),r&&r(n),n}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Gr(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function qr(e,t,n){return W(()=>{const r=Gr(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(Vr)?e[Vr]:Object.defineProperty(e,Vr,{value:[]})[Vr];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})}function $r(e,t,n,r){return W(()=>{const i=Gr(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return function(n,i){const s=n.constructor,o=s.hasOwnProperty(Br)?s[Br]:Object.defineProperty(s,Br,{value:{}})[Br];o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(t),r&&r(n,i,...e)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Hr(){return qr("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Fr(e)}))}const zr=function(){return qr("Attribute",e=>({attributeName:e}))}(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Wr{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ɵprov=void 0,"number"==typeof t?(("undefined"==typeof ngDevMode||ngDevMode)&&S(t,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=t):void 0!==t&&(this.ɵprov=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Kr=new Wr("AnalyzeForEntryComponents");class Yr{}const Xr=$r("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!1},t),Yr),Qr=$r("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Yr),Zr=$r("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!1},t),Yr),Jr=$r("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Yr); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var ei,ti,ni; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ri(){const e=te.ng;if(!e||!e.ɵcompilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.ɵcompilerFacade} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid"}(ei||(ei={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(ti||(ti={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(ni||(ni={}));const ii=Function;function si(e){return"function"==typeof e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function oi(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?ai(e,t):t(e))}function ci(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ui(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function li(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:function(e,t,n,r){ngDevMode&&C(t,e.length,"Can't insert past array end.");let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){const t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function di(e,t){const n=pi(e,t);if(n>=0)return e[1|n]}function pi(e,t){return fi(e,t,1)}function fi(e,t,n){ngDevMode&&y(Array.isArray(e),!0,"Expecting an array");let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),o=e[s<t?i=s:r=s+1}return~(i<new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=li(void 0===e?t.length:e.length);for(let r=0;re&&e.type),r=e.map(e=>e&&vi(e.decorators));return this._zipTypesAndAnnotations(t,r)}const r=e.hasOwnProperty(Vr)&&e[Vr],i=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return i||r?this._zipTypesAndAnnotations(i,r):li(e.length)}parameters(e){if(!si(e))return[];const t=wi(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?vi(e.decorators):e.hasOwnProperty(jr)?e[jr]:null}annotations(e){if(!si(e))return[];const t=wi(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=vi(t[e])}),n}return e.hasOwnProperty(Br)?e[Br]:null}propMetadata(e){if(!si(e))return{};const t=wi(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return si(e)&&this._ownPropMetadata(e,wi(e))||{}}hasLifecycleHook(e,t){return e instanceof ii&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${l(e)}`}resourceUri(e){return`./${l(e)}`}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function vi(e){return e?e.map(e=>{return new(0,e.type.annotationCls)(...e.args?e.args:[])}):[]}function wi(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Ei={},Si="__NG_DI_FLAG__",Ci="ngTempTokenPath",Oi="ngTokenPath",Ii=/\n/gm,xi="ɵ",Ti="__source",Ai=c({provide:String,useValue:c});let Di=void 0;function ki(e){const t=Di;return Di=e,t}function Pi(e,t=G.Default){if(void 0===Di)throw new Error("inject() must be called from an injection context");return null===Di?z(e,void 0,t):Di.get(e,t&G.Optional?null:void 0,t)}function Mi(e,t=G.Default){return($()||Pi)(f(e),t)}function Ri(e){const t=ngDevMode?`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${e} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${e} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`:"invalid";throw new Error(t)}const Ni=Mi;function Li(e){const t=[];for(let n=0;n ");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):l(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Ii,"\n ")}`} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Bi=e=>({token:e}),Ui=Fi(qr("Inject",Bi),-1),Gi=Fi(qr("Optional"),8),qi=Fi(qr("Self"),2),$i=Fi(qr("SkipSelf"),4),Hi=Fi(qr("Host"),1); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let zi=null;function Wi(){return zi=zi||new yi}function Ki(e){return Yi(Wi().parameters(e))}function Yi(e){const t=ri();return e.map(e=>(function(e,t){const n={token:null,host:!1,optional:!1,resolved:e.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function r(t){n.resolved=e.R3ResolvedDependencyType.Token,n.token=t}if(Array.isArray(t)&&t.length>0)for(let i=0;i{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then(t=>{e.template=t}));const s=e.styleUrls,o=e.styles||(e.styles=[]),a=e.styles.length;s&&s.forEach((t,n)=>{o.push(""),i.push(r(t).then(r=>{o[a+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)}))});const c=Promise.all(i).then(()=>(function(e){Zi.delete(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */)(n));t.push(c)}),es(),Promise.all(t).then(()=>void 0)}let Qi=new Map;const Zi=new Set;function Ji(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function es(){const e=Qi;return Qi=new Map,e}function ts(e){return"string"==typeof e?e:e.text()}let ns,rs;function is(){if(void 0===ns&&(ns=null,te.trustedTypes))try{ns=te.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ns}function ss(e){var t;return(null===(t=is())||void 0===t?void 0:t.createHTML(e))||e}function os(...e){if("undefined"==typeof ngDevMode)throw new Error("newTrustedFunctionForDev should never be called in production");if(!te.trustedTypes)return new Function(...e);const t=`(function anonymous(${e.slice(0,-1).join(",")}\n) { ${e.pop().toString()}\n})`,n=te.eval((r=t,(null===(i=is())||void 0===i?void 0:i.createScript(r))||r));var r,i;return n.toString=(()=>t),n.bind(te)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function as(){if(void 0===rs&&(rs=null,te.trustedTypes))try{rs=te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return rs}function cs(e){var t;return(null===(t=as())||void 0===t?void 0:t.createHTML(e))||e}function us(e){var t;return(null===(t=as())||void 0===t?void 0:t.createScript(e))||e}function ls(e){var t;return(null===(t=as())||void 0===t?void 0:t.createScriptURL(e))||e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class hs{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see https://g.co/ng/security#xss)"}}class ds extends hs{getTypeName(){return"HTML"}}class ps extends hs{getTypeName(){return"Style"}}class fs extends hs{getTypeName(){return"Script"}}class _s extends hs{getTypeName(){return"URL"}}class ms extends hs{getTypeName(){return"ResourceURL"}}function gs(e){return e instanceof hs?e.changingThisBreaksApplicationSecurity:e}function bs(e,t){const n=ys(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function ys(e){return e instanceof hs&&e.getTypeName()||null}function vs(e){return new ds(e)}function ws(e){return new ps(e)}function Es(e){return new fs(e)}function Ss(e){return new _s(e)}function Cs(e){return new ms(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Os(e){const t=new xs(e);return function(){try{return!!(new window.DOMParser).parseFromString(ss(""),"text/html")}catch(e){return!1}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */()?new Is(t):t}class Is{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(ss(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(e){return null}}}class xs{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=ss(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=ss(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let n=t.length-1;0Ds(e.trim())).join(", ")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ps(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ms(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Rs=Ps("area,br,col,hr,img,wbr"),Ns=Ps("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ls=Ps("rp,rt"),Fs=Ms(Ls,Ns),js=Ms(Ns,Ps("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")),Vs=Ms(Ls,Ps("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")),Bs=Ms(Rs,js,Vs,Fs),Us=Ps("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gs=Ps("srcset"),qs=Ps("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"),$s=Ps("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"),Hs=Ms(Us,Gs,qs,$s),zs=Ps("script,style,template");class Ws{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(!Bs.hasOwnProperty(t))return this.sanitizedSomething=!0,!zs.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let e=0;e"),!0}endElement(e){const t=e.nodeName.toLowerCase();Bs.hasOwnProperty(t)&&!Rs.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Xs(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 Ks=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ys=/([^\#-~ |!])/g;function Xs(e){return e.replace(/&/g,"&").replace(Ks,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ys,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Zs(e,t){let n=null;try{Qs=Qs||Os(e);let r=t?String(t):"";n=Qs.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=Qs.getInertBodyElement(r)}while(r!==s);const o=new Ws,a=o.sanitizeChildren(Js(n)||n);return("undefined"==typeof ngDevMode||ngDevMode)&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss"),ss(a)}finally{if(n){const e=Js(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Js(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e)?e.content:null}var eo; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function to(e){const t=lo();return t?cs(t.sanitize(eo.HTML,e)||""):bs(e,"HTML")?cs(gs(e)):Zs($t(),xt(e))}function no(e){const t=lo();return t?t.sanitize(eo.STYLE,e)||"":bs(e,"Style")?gs(e):xt(e)}function ro(e){const t=lo();return t?t.sanitize(eo.URL,e)||"":bs(e,"URL")?gs(e):Ds(xt(e))}function io(e){const t=lo();if(t)return ls(t.sanitize(eo.RESOURCE_URL,e)||"");if(bs(e,"ResourceURL"))return ls(gs(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function so(e){const t=lo();if(t)return us(t.sanitize(eo.SCRIPT,e)||"");if(bs(e,"Script"))return us(gs(e));throw new Error("unsafe value used in a script context")}function oo(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||1!==e.length))throw new Error(`Unexpected interpolation in trusted HTML constant: ${e.join("?")}`);return ss(e[0])}function ao(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||1!==e.length))throw new Error(`Unexpected interpolation in trusted URL constant: ${e.join("?")}`);return function(e){var t;return(null===(t=is())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function co(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?io:ro}function uo(e,t,n){return co(t,n)(e)}function lo(){const e=dn();return e&&e[Ve]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(eo||(eo={}));const ho="ngDebugContext",po="ngOriginalError",fo="ngErrorLogger";function _o(e){return e[ho]}function mo(e){return e[po]}function go(e,...t){e.error(...t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class bo{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[fo]||go}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?_o(e)?_o(e):this._findContext(mo(e)):null}_findOriginalError(e){let t=mo(e);for(;t&&mo(t);)t=mo(t);return t}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const yo={name:"custom-elements"},vo={name:"no-errors-schema"},wo=/^>|^->||--!>|)/,So="​$1​";function Co(e){return e.replace(wo,e=>e.replace(Eo,So))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Oo(e){if(!ngDevMode)throw new Error("Looks like we are in 'prod mode', but we are creating a named Array type, which is wrong! Check your code");try{return os("Array",`return class ${e} extends Array{}`)(Array)}catch(e){return Array}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Io(e){var t;return t=e.replace(/[$@]/g,"_"),`ng-reflect-${e=t.replace(xo,(...e)=>"-"+e[1].toLowerCase())}`}const xo=/([A-Z])/g;function To(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ao(e){let t=en(e);if(t){if(Array.isArray(t)){const r=t;let i,s=void 0,o=void 0;if((n=e)&&n.constructor&&n.constructor.ɵcmp){if(-1==(i=No(r,e)))throw new Error("The provided component was not found in the application");s=e}else if(function(e){return e&&e.constructor&&e.constructor.ɵdir}(e)){if(-1==(i=function(e,t){let n=e[Te].firstChild;for(;n;){const r=n.directiveStart,i=n.directiveEnd;for(let s=r;s=0){const e=Kt(r[i]),n=Do(r,i,e);Po(e,n),t=n;break}}}}var n;return t||null}function Do(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function ko(e){let t,n=en(e);if(Array.isArray(n)){const r=No(n,e),i=Do(n,r,(t=Jt(r,n))[xe]);i.component=e,Po(e,i),Po(i.native,i)}else{const e=n;t=Jt(e.nodeIndex,e.lView)}return t}function Po(e,t){e[Ut]=t}function Mo(e,t){const n=e[Te];for(let r=We;r("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te))();function jo(e){return{name:"window",target:e.ownerDocument.defaultView}}function Vo(e){return{name:"document",target:e.ownerDocument}}function Bo(e){return{name:"body",target:e.ownerDocument.body}}const Uo="�";function Go(e){return e instanceof Function?e():e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function qo(e){throw new Ct("300",`Multiple components match node with tagname ${e.value}`)}function $o(e,t,n,r,i){const[s,o,...a]=r.split(Uo);let c=o,u=o;for(let r=0;r0&&(n[i-1][ke]=t),r0&&(e[n-1][ke]=r[ke]);const o=ui(e,et+t);Ia(r[Te],i=r,i[je],2,null,null),i[xe]=null,i[Me]=null;const a=o[ze];null!==a&&a.detachView(o[Te]),r[De]=null,r[ke]=null,r[Ae]&=-129}var i;return r}function ca(e,t){if(!(256&t[Ae])){const n=t[je];zt(n)&&n.destroyNode&&Ia(e,t,n,3,null,null),function(e){let t=e[Be];if(!t)return ua(e[Te],e);for(;t;){let n=null;if(tt(t))n=t[Be];else{ngDevMode&&pt(t);const e=t[et];e&&(n=e)}if(!n){for(;t&&!t[ke]&&t!==e;)tt(t)&&ua(t[Te],t),t=t[De];null===t&&(t=e),tt(t)&&ua(t[Te],t),n=t&&t[ke]}t=n}}(t)}}function ua(e,t){if(!(256&t[Ae])){t[Ae]&=-129,t[Ae]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let e=0;e=0?r[i=c]():r[i=-c].unsubscribe(),e+=2}else{const t=r[i=n[e+1]];n[e].call(t)}if(null!==r){for(let e=i+1;e) must have projection slots defined.")}(e),n.projection[r]}return null}function Sa(e,t){const n=et+e+1;if(ns?e="":(ngDevMode&&v(i[l],0,"We do not match directives on namespaced attributes"),e=i[l+1].toLowerCase());const t=8&r?e:null;if(t&&-1!==Da(t,u,0)||2&r&&u!==e){if(La(r))return!1;o=!0}}}}else{if(!o&&!La(r)&&!La(c))return!1;if(o&&La(c))continue;o=!1,r=c|1&r}}return La(r)||o}function La(e){return 0==(1&e)}function Fa(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||La(o)||(t+=Ba(s,i),i=""),r=o,s=s||!La(r);n++}return""!==i&&(t+=Ba(s,i)),t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Ga="undefined"==typeof ngDevMode||ngDevMode?{__brand__:"NO_CHANGE"}:{}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function qa(e){ngDevMode&&O(e,0,"Can only advance forward"),$a(pn(),dn(),qn()+e,wn())}function $a(e,t,n,r){if(ngDevMode&&function(e,t){const n=e[1];yt(We,n.bindingStartIndex,t)}(t,n),!r){if(3==(3&t[Ae])){const r=e.preOrderCheckHooks;null!==r&&Xn(t,r,n)}else{const r=e.preOrderHooks;null!==r&&Qn(t,r,0,n)}}$n(n)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ha(e,t){return ngDevMode&&g(e,0,32767),ngDevMode&&g(t,0,32767),e<<17|t<<2}function za(e){return ngDevMode&&m(e,"expected number"),e>>17&32767}function Wa(e){return ngDevMode&&m(e,"expected number"),2==(2&e)}function Ka(e){return ngDevMode&&m(e,"expected number"),2|e}function Ya(e){return ngDevMode&&m(e,"expected number"),(131068&e)>>2}function Xa(e,t){return ngDevMode&&m(e,"expected number"),ngDevMode&&g(t,0,32767),-131069&e|t<<2}function Qa(e){return ngDevMode&&m(e,"expected number"),1==(1&e)}function Za(e){return ngDevMode&&m(e,"expected number"),1|e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Ja(e,t){if(!ngDevMode)throw new Error("This method should be guarded with `ngDevMode` so that it can be tree shaken in production!");Object.defineProperty(e,"debug",{value:t,enumerable:!1})}function ec(e,t){if(!ngDevMode)throw new Error("This method should be guarded with `ngDevMode` so that it can be tree shaken in production!");Object.defineProperty(e,"debug",{get:t,enumerable:!1})} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const tc=("undefined"==typeof ngDevMode||!!ngDevMode)&&ne();let nc,rc,ic;function sc(e){return function(e,t){switch(e){case 0:return void 0===ic&&(ic=new(Oo("LRootView"))),ic;case 1:void 0===nc&&(nc=new Map);let n=nc.get(t);return void 0===n&&(n=new(Oo("LComponentView"+oc(t))),nc.set(t,n)),n;case 2:void 0===rc&&(rc=new Map);let r=rc.get(t);return void 0===r&&(r=new(Oo("LEmbeddedView"+oc(t))),rc.set(t,r)),r}throw new Error("unreachable code")}(e.type,e.template&&e.template.name).concat(e.blueprint)}function oc(e){if(null==e)return"";const t=e.lastIndexOf("_Template");return"_"+(-1===t?e:e.substr(0,t))}const ac=class{constructor(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m,g,b,y,v,w,E,S,C,O,I,x,T,A,D,k){this.type=e,this.blueprint=t,this.template=n,this.queries=r,this.viewQuery=i,this.declTNode=s,this.data=o,this.bindingStartIndex=a,this.expandoStartIndex=c,this.hostBindingOpCodes=u,this.firstCreatePass=l,this.firstUpdatePass=h,this.staticViewQueries=d,this.staticContentQueries=p,this.preOrderHooks=f,this.preOrderCheckHooks=_,this.contentHooks=m,this.contentCheckHooks=g,this.viewHooks=b,this.viewCheckHooks=y,this.destroyHooks=v,this.cleanup=w,this.contentQueries=E,this.components=S,this.directiveRegistry=C,this.pipeRegistry=O,this.firstChild=I,this.schemas=x,this.consts=T,this.incompleteFirstPass=A,this._decls=D,this._vars=k}get template_(){const e=[];return lc(this.firstChild,e),e.join("")}get type_(){return Ke[this.type]||`TViewType.?${this.type}?`}};const cc=class{constructor(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m,g,b,y,v,w,E,S,C,O,I,x,T,A,D,k){this.tView_=e,this.type=t,this.index=n,this.insertBeforeIndex=r,this.injectorIndex=i,this.directiveStart=s,this.directiveEnd=o,this.directiveStylingLast=a,this.propertyBindings=c,this.flags=u,this.providerIndexes=l,this.value=h,this.attrs=d,this.mergedAttrs=p,this.localNames=f,this.initialInputs=_,this.inputs=m,this.outputs=g,this.tViews=b,this.next=y,this.projectionNext=v,this.child=w,this.parent=E,this.projection=S,this.styles=C,this.stylesWithoutHost=O,this.residualStyles=I,this.classes=x,this.classesWithoutHost=T,this.residualClasses=A,this.classBindings=D,this.styleBindings=k}debugNodeInjectorPath(e){const t=[];let n=vr(this,e);if(-1===n){const t=wr(this,e);t!==tr&&(n=hr(t),e=dr(t,e))}for(;-1!==n;){ngDevMode&&wt(e,n);const r=e[Te].data[n+8];t.push(Ic(r,e));const i=e[n+8];i===tr?n=-1:(n=hr(i),e=dr(i,e))}return t}get type_(){return rr(this.type)||`TNodeType.?${this.type}?`}get flags_(){const e=[];return 16&this.flags&&e.push("TNodeFlags.hasClassInput"),8&this.flags&&e.push("TNodeFlags.hasContentQuery"),32&this.flags&&e.push("TNodeFlags.hasStyleInput"),128&this.flags&&e.push("TNodeFlags.hasHostBindings"),2&this.flags&&e.push("TNodeFlags.isComponentHost"),1&this.flags&&e.push("TNodeFlags.isDirectiveHost"),64&this.flags&&e.push("TNodeFlags.isDetached"),4&this.flags&&e.push("TNodeFlags.isProjected"),e.join("|")}get template_(){if(1&this.type)return this.value;const e=[],t="string"==typeof this.value&&this.value||this.type_;if(e.push("<",t),this.flags&&e.push(" ",this.flags_),this.attrs)for(let t=0;t"),lc(this.child,e),e.push(""),e.join("")}get styleBindings_(){return uc(this,!1)}get classBindings_(){return uc(this,!0)}get providerIndexStart_(){return 1048575&this.providerIndexes}get providerIndexEnd_(){return this.providerIndexStart_+(this.providerIndexes>>>20)}};function uc(e,t){const n=e.tView_.data,r=[],i=t?e.classBindings:e.styleBindings,s=za(i),o=Ya(i);let a=0!==o,c=a?o:s;for(;0!==c;){const e=n[c],t=n[c+1];r.unshift({key:e,index:c,isTemplate:a,prevDuplicate:Wa(t),nextDuplicate:Qa(t),nextIndex:Ya(t),prevIndex:za(t)}),c===s&&(a=!1),c=za(t)}return r.push((t?e.residualClasses:e.residualStyles)||null),r}function lc(e,t){for(;e;)t.push(e.template_),e=e.next}const hc=tc&&Oo("TViewData")||null;let dc;const pc=tc&&Oo("LViewBlueprint")||null,fc=tc&&Oo("MatchesArray")||null,_c=tc&&Oo("TViewComponents")||null,mc=tc&&Oo("TNodeLocalNames")||null,gc=tc&&Oo("TNodeInitialInputs")||null,bc=(tc&&Oo("TNodeInitialData"),tc&&Oo("LCleanup")||null),yc=tc&&Oo("TCleanup")||null;function vc(e){if(e){const t=e.debug;return x(t,"Object does not have a debug representation."),t}return e}function wc(e,t=!1){const n=Kt(e);if(n)switch(n.nodeType){case Node.TEXT_NODE:return n.textContent;case Node.COMMENT_NODE:return`\x3c!--${n.textContent}--\x3e`;case Node.ELEMENT_NODE:const e=n.outerHTML;if(t)return e;{const t=">"+n.innerHTML+"<";return e.split(t)[0]+">"}}return null}class Ec{constructor(e){this._raw_lView=e}get flags(){const e=this._raw_lView[Ae];return{__raw__flags__:e,initPhaseState:3&e,creationMode:!!(4&e),firstViewPass:!!(8&e),checkAlways:!!(16&e),dirty:!!(64&e),attached:!!(128&e),destroyed:!!(256&e),isRoot:!!(512&e),indexWithinInitPhase:e>>11}}get parent(){return vc(this._raw_lView[De])}get hostHTML(){return wc(this._raw_lView[xe],!0)}get html(){return(this.nodes||[]).map(Sc).join("")}get context(){return this._raw_lView[Ne]}get nodes(){const e=this._raw_lView;return Oc(e[Te].firstChild,e)}get template(){return this.tView.template_}get tView(){return this._raw_lView[Te]}get cleanup(){return this._raw_lView[Re]}get injector(){return this._raw_lView[Le]}get rendererFactory(){return this._raw_lView[Fe]}get renderer(){return this._raw_lView[je]}get sanitizer(){return this._raw_lView[Ve]}get childHead(){return vc(this._raw_lView[Be])}get next(){return vc(this._raw_lView[ke])}get childTail(){return vc(this._raw_lView[Ue])}get declarationView(){return vc(this._raw_lView[Ge])}get queries(){return this._raw_lView[ze]}get tHost(){return this._raw_lView[Me]}get decls(){return Cc(this.tView,this._raw_lView,We,this.tView.bindingStartIndex)}get vars(){return Cc(this.tView,this._raw_lView,this.tView.bindingStartIndex,this.tView.expandoStartIndex)}get expando(){return Cc(this.tView,this._raw_lView,this.tView.expandoStartIndex,this._raw_lView.length)}get childViews(){const e=[];let t=this.childHead;for(;t;)e.push(t),t=t.next;return e}}function Sc(e){if("ElementContainer"===e.type)return(e.children||[]).map(Sc).join("");if("IcuContainer"===e.type)throw new Error("Not implemented");return wc(e.native,!0)||""}function Cc(e,t,n,r){let i=[];for(let s=n;sPromise.resolve(null))();function Pc(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rWe&&$a(e,t,We,wn()),n(r,i)}finally{$n(s)}}function Uc(e,t,n){if(rt(t)){const r=t.directiveStart,i=t.directiveEnd;for(let t=r;t-1)return!0}return!1}function Jc(e,t){let n=`Can't bind to '${e}' since it isn't a known property of '${t.value}'.`;console.error(It("303",n))}function eu(e,t,n,r){ngDevMode&&mt(e);let i=!1;if(un()){const s=function(e,t,n){ngDevMode&&mt(e),ngDevMode&&ir(n,15);const r=e.directiveRegistry;let i=null;if(r)for(let s=0;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(r,i,o)}}function nu(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ru(e,t){ngDevMode&&mt(e),t.flags|=2,(e.components||(e.components=ngDevMode?new _c:[])).push(t.index)}function iu(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&function e(t){for(let n=Qo(t);null!==n;n=Zo(n))for(let t=et;t0&&e(r)}const n=t[Te];const r=n.components;if(null!==r)for(let n=0;n0&&e(i)}}(n)}}function _u(e,t){ngDevMode&&y(nn(e),!0,"Should be run in creation mode");const n=Jt(t,e),r=n[Te];!function(e,t){for(let n=t.length;n0&&(s+=Uo+i.join(Uo)),e[r]=s}}const Su=kc;function Cu(e){return e[Re]||(e[Re]=ngDevMode?new bc:[])}function Ou(e){return e.cleanup||(e.cleanup=ngDevMode?new yc:[])}function Iu(e,t,n){return(null===e||ot(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[Ye])return e;e=e[xe]}return null}(n[t.index])),n[je]}function xu(e,t){const n=e[Le],r=n?n.get(bo,null):null;r&&r.handleError(t)}function Tu(e,t,n,r,i){for(let s=0;sn=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,bu(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=kc,n(null)})}}(t[Ne],1)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Mu=new Wr("INJECTOR",-1); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Ru{get(e,t=Ei){if(t===Ei){const t=new Error(`NullInjectorError: No provider for ${l(e)}!`);throw t.name="NullInjectorError",t}return t}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Nu=new Wr("Set Injector scope."),Lu={},Fu={},ju=[]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let Vu=void 0;function Bu(){return void 0===Vu&&(Vu=new Ru),Vu}function Uu(e,t=null,n=null,r){const i=Gu(e,t,n,r);return i._resolveInjectorDefTypes(),i}function Gu(e,t=null,n=null,r){return new qu(e,n,t||Bu(),r)}class qu{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&ai(t,n=>this.processProvider(n,e,t)),ai([e],e=>this.processInjectorType(e,[],i)),this.records.set(Mu,zu(void 0,this));const s=this.records.get(Nu);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:l(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Ei,n=G.Default){this.assertNotDestroyed();const r=ki(this);try{if(!(n&G.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Wr)&&N(e);t=n&&this.injectableDefInScope(n)?zu($u(e),Lu):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}const s=n&G.Self?Bu():this.parent;return t=n&G.Optional&&t===Ei?null:t,s.get(e,t)}catch(t){if("NullInjectorError"===t.name){if((t[Ci]=t[Ci]||[]).unshift(l(e)),r)throw t;return ji(t,e,"R3InjectorError",this.source)}throw t}finally{ki(r)}var i; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(l(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=f(e)))return!1;let r=F(e);const i=null==r&&e.ngModule||void 0,s=void 0===i?e:i;if(ngDevMode&&-1!==t.indexOf(s)){At(l(s),t.map(l))}const o=-1!==n.indexOf(s);if(void 0!==i&&(r=F(i)),null==r)return!1;if(null!=r.imports&&!o){let e;ngDevMode&&t.push(s),n.push(s);try{ai(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{ngDevMode&&t.pop()}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||ju))}}this.injectorDefTypes.add(s),this.records.set(s,zu(r.factory,Lu));const a=r.providers;if(null!=a&&!o){const t=e;ai(a,e=>this.processProvider(e,t,a))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=Ku(e=f(e))?e:f(e&&e.provide);const i=function(e,t,n){if(Wu(e))return zu(void 0,e.useValue);{const r=Hu(e,t,n);return zu(r,Lu)}}(e,t,n);if(Ku(e)||!0!==e.multi){const e=this.records.get(r);ngDevMode&&e&&void 0!==e.multi&&Dt()}else{let t=this.records.get(r);t?ngDevMode&&void 0===t.multi&&Dt():((t=zu(void 0,Lu,!0)).factory=(()=>Li(t.multi)),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return ngDevMode&&t.value===Fu?At(l(e)):t.value===Lu&&(t.value=Fu,t.value=t.factory()),"object"==typeof t.value&&t.value&&(null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function $u(e){const t=N(e),n=null!==t?t.factory:Et(e);if(null!==n)return n;const r=F(e);if(null!==r)return r.factory;if(e instanceof Wr)throw new Error(`Token ${l(e)} is missing a ɵprov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=li(t,"?");throw new Error(`Can't resolve all parameters for ${l(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[j]||e[B]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Hu(e,t,n){let r=void 0;if(Ku(e)){const t=f(e);return Et(t)||$u(t)}if(Wu(e))r=(()=>f(e.useValue));else if((i=e)&&i.useFactory)r=(()=>e.useFactory(...Li(e.deps||[])));else if(function(e){return!(!e||!e.useExisting)}(e))r=(()=>Mi(f(e.useExisting)));else{const i=f(e&&(e.useClass||e.provide));if(ngDevMode&&!i&&function(e,t,n){let r="";e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`);throw new Error(`Invalid provider for the NgModule '${l(e)}'`+r)}(t,n,e),!function(e){return!!e.deps}(e))return Et(i)||$u(i);r=(()=>new i(...Li(e.deps)))}var i;return r}function zu(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Wu(e){return null!==e&&"object"==typeof e&&Ai in e}function Ku(e){return"function"==typeof e}function Yu(e,t,n){return Uu({name:n},t,e,n)}const Xu=function(e,t,n){return new rl(e,t,n)};class Qu{static create(e,t){return Array.isArray(e)?Xu(e,t,""):Xu(e.providers,e.parent,e.name||"")}}Qu.THROW_IF_NOT_FOUND=Ei,Qu.NULL=new Ru,Qu.ɵprov=P({token:Qu,providedIn:"any",factory:()=>Mi(Mu)}),Qu.__NG_ELEMENT_ID__=-1;const Zu=function(e){return e},Ju=[],el=Zu,tl=function(){return Array.prototype.slice.call(arguments)},nl="ɵ";class rl{constructor(e,t=Qu.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Qu,{token:Qu,fn:Zu,deps:Ju,value:this,useNew:!1}),r.set(Mu,{token:Mu,fn:Zu,deps:Ju,value:this,useNew:!1}),this.scope=function e(t,n){let r=null;if(n)if(n=f(n),Array.isArray(n))for(let i=0;ie.push(l(n))),`StaticInjector[${e.join(", ")}]`}}function il(e){const t=function(e){let t=Ju;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e=0?"dom":"output",p="boolean"==typeof h&&h;e==u&&o.push({element:e,name:c,callback:l,useCapture:p,type:d})}}return o.sort(bl),o}function bl(e,t){return e.name==t.name?0:e.nameku(e))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const wl="ng";let El=!1;function Sl(){El||(El=!0,Cl("getComponent",cl),Cl("getContext",ul),Cl("getListeners",gl),Cl("getOwningComponent",ll),Cl("getHostElement",ml),Cl("getInjector",dl),Cl("getRootComponents",hl),Cl("getDirectives",pl),Cl("applyChanges",vl))}function Cl(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=te;if(ngDevMode&&x(t,"function not defined"),n){let r=n[wl];r||(r=n[wl]={}),r[e]=t}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ol(e,t={}){ngDevMode&&Sl(),ngDevMode&&ht(e);const n=t.rendererFactory||Wt,r=t.sanitizer||null,i=Se(e);i.type!=e&&(i.type=e);const s=i.selectors[0][0],o=Wc(n.createRenderer(null,null),t.host||s,i.encapsulation),a=i.onPush?576:528,c=Tl(t.scheduler,t.playerHandler),u=n.createRenderer(o,i),l=Hc(0,null,null,1,0,null,null,null,null,null),h=Mc(null,l,c,a,null,null,n,u,null,t.injector||null);let d;Ln(h);try{n.begin&&n.begin(),d=xl(Il(o,i,h,n,u,r),i,h,c,t.hostFeatures||null),Fc(l,h,null),jc(l,h,null,null)}finally{Un(),n.end&&n.end()}return d}function Il(e,t,n,r,i,s){const o=n[Te],a=We;ngDevMode&&D(n,a),n[a]=e;const c=Rc(o,a,2,"#host",null),u=c.mergedAttrs=t.hostAttrs;null!==u&&(Du(c,u,!0),null!==e&&(sr(i,e,u),null!==c.classes&&Aa(i,e,c.classes),null!==c.styles&&Ta(i,e,c.styles)));const l=r.createRenderer(e,t),h=Mc(n,$c(t),null,t.onPush?64:16,n[a],c,r,l,s||null,null);return o.firstCreatePass&&(Er(br(c,n),o,t.type),ru(o,c),su(c,n.length,1)),mu(n,h),n[a]=h}function xl(e,t,n,r,i){const s=n[Te],o=function(e,t,n){const r=_n();if(e.firstCreatePass){n.providersResolver&&n.providersResolver(n);const i=Lc(e,t,1,null);ngDevMode&&y(i,r.directiveStart,"Because this is a root component the allocated expando should match the TNode component."),ou(e,r,t,i,n)}const i=kr(t,e,r.directiveStart,r);Po(i,t);const s=Xt(r,t);return s&&Po(s,t),i}(s,n,t);if(r.components.push(o),e[Ne]=o,i&&i.forEach(e=>e(o,t)),t.contentQueries){const e=_n();ngDevMode&&x(e,"TNode expected"),t.contentQueries(1,o,e.directiveStart)}const a=_n();if(ngDevMode&&x(a,"tNode should have been already created"),s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){$n(a.index),tu(n[Te],a,0,a.directiveStart,a.directiveEnd,t),nu(t,o)}return o}function Tl(e,t){return{components:[],scheduler:e||Fo,clean:Su,playerHandler:t||null,flags:0}}function Al(e,t){const n=tn(e);ngDevMode&&x(n,"LView is required");const r=n[Te],i=_n();ngDevMode&&x(i,"TNode is required"),Yn(r,i)}function Dl(e){return Xo(e).clean} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function kl(e){return Object.getPrototypeOf(e.prototype).constructor}function Pl(e){let t=kl(e.type),n=!0;const r=[e];for(;t;){let i=void 0;if(ot(e))i=t.ɵcmp||t.ɵdir;else{if(t.ɵcmp)throw new Error("Directives cannot inherit Components");i=t.ɵdir}if(i){if(n){r.push(i);const t=e;t.inputs=Ml(e.inputs),t.declaredInputs=Ml(e.declaredInputs),t.outputs=Ml(e.outputs);const n=i.hostBindings;n&&Ll(e,n);const s=i.viewQuery,o=i.contentQueries;if(s&&Rl(e,s),o&&Nl(e,o),u(e.inputs,i.inputs),u(e.declaredInputs,i.declaredInputs),u(e.outputs,i.outputs),ot(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=cr(i.hostAttrs,n=cr(n,i.hostAttrs))}}(r)}function Ml(e){return e===re?{}:e===ie?[]:e}function Rl(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Nl(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function Ll(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Fl=["providersResolver"],jl=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Vl(e){let t=kl(e.type),n=void 0;n=ot(e)?t.ɵcmp:t.ɵdir;const r=e;for(const e of Fl)r[e]=n[e];if(ot(n))for(const e of jl)r[e]=n[e]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let Bl=null;function Ul(){if(!Bl){const e=te.Symbol;if(e&&e.iterator)Bl=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t-1?$o(e,t,t,s,r):{propName:s,oldValue:n,newValue:r};if(null===s){let n=t-1;for(;"string"!=typeof i[n]&&null===i[n+1];)n--;const s=i[n];if("string"==typeof s){const i=s.match(new RegExp(Uo,"g"));if(i&&i.length-1>t-n)return $o(e,n,t,s,r)}}return{propName:void 0,oldValue:n,newValue:r}}(e,t,i,n);!function(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${r?` for '${r}'`:""}: '${t}'. Current value: '${n}'.`;throw e&&(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?"),new Ct("100",i)}(r===Ga,s.oldValue,s.newValue,s.propName)}return!1}return e[t]=n,!0}function Yl(e,t,n,r){const i=Kl(e,t,n);return Kl(e,t+1,r)||i}function Xl(e,t,n,r,i){const s=Yl(e,t,n,r);return Kl(e,t+2,i)||s}function Ql(e,t,n,r,i,s){const o=Yl(e,t,n,r);return Yl(e,t+2,i,s)||o} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Zl(e,t,n,r){const i=dn(),s=In();if(Kl(i,s,t)){const o=pn(),a=Hn();cu(a,i,e,t,n,r),ngDevMode&&Eu(o.data,a,"attr."+e,s)}return Zl} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Jl(e,t){ngDevMode&&S(2,t.length,"should have at least 3 values"),ngDevMode&&y(t.length%2,1,"should have an odd number of values");let n=!1,r=Cn();for(let i=1;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function yh(e){return Zt(cn.lFrame.contextLView,We+e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const vh={"ɵɵdefineInjectable":P,"ɵɵdefineInjector":R,"ɵɵinject":Mi,"ɵɵgetFactoryOf":function e(t){const n=t;if(_(t))return()=>{const t=e(f(n));return t?t():null};const r=N(n)||F(n);if(!r||void 0===r.factory)return null;return r.factory} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */,"ɵɵinvalidFactoryDep":Ri};const wh=c({provide:String,useValue:c});function Eh(e){return void 0!==e.useClass}function Sh(e){return void 0!==e.useFactory}function Ch(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Eh(n)||Sh(n))&&void 0!==n.deps&&(r.userDeps=Yi(n.deps)),Eh(n)?r.useClass=f(n.useClass):!function(e){return wh in e}(n)?Sh(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=f(n.useExisting)):r.useValue=f(n.useValue),r} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Oh=c({provide:String,useValue:c}),Ih=[];function xh(e,t){if(!t){const t=(new yi).parameters(e);return()=>new e(...Li(t))}if(Oh in t){const e=t;return()=>e.useValue}if(t.useExisting){const e=t;return()=>Mi(f(e.useExisting))}if(t.useFactory){const e=t;return()=>e.useFactory(...Li(e.deps||Ih))}if(t.useClass){const n=t;let r=t.deps;if(!r){const t=new yi;r=t.parameters(e)}return()=>new(f(n.useClass))(...Li(r))}{let n=t.deps;if(!n){const t=new yi;n=t.parameters(e)}return()=>new e(...Li(n))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Th=Ur("Injectable",void 0,void 0,void 0,(e,t)=>Dh(e,t));const Ah=function(e,t){let n=null,r=null;e.hasOwnProperty(j)||Object.defineProperty(e,j,{get:()=>(null===n&&(n=ri().compileInjectable(vh,`ng:///${e.name}/ɵprov.js`,Ch(e,t))),n)}),e.hasOwnProperty(le)||Object.defineProperty(e,le,{get:()=>{if(null===r){const n=Ch(e,t),i=ri();r=i.compileFactory(vh,`ng:///${e.name}/ɵfac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:Ki(e),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},Dh=function(e,t){t&&void 0!==t.providedIn&&!N(e)&&(e.ɵprov=P({token:e,providedIn:t.providedIn,factory:xh(e,t)}))};function kh(e){if(e.length>1){return" ("+ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e){const t=[];for(let n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>l(e.token)).join(" -> ")+")"}return""}function Ph(e,t,n,r){const i=[t],s=n(i),o=r?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[po]=t,r} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(s,r):Error(s);return o.addKey=Mh,o.keys=i,o.injectors=[e],o.constructResolvingMessage=n,o[po]=r,o}function Mh(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Rh(e,t){const n=[];for(let e=0,r=t.length;ee),n=[jh.fromKey(Nh.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>zh(e,t,n))}return Hh(e)}(e.useFactory,e.deps)):(t=(()=>e.useValue),n=Vh);return new Uh(t,n)}function qh(e){return new Bh(Nh.get(e.provide),[Gh(e)],e.multi||!1)}function $h(e){const t=function(e,t){for(let n=0;n{if(t instanceof ii)n.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)n.push(t);else{if(!Array.isArray(t))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(t);e(t,n)}});return n}(e,[]).map(qh),new Map);return Array.from(t.values())}function Hh(e){const t=Fh.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw Rh(e,t);return t.map(n=>zh(e,n,t))}function zh(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return Wh(t instanceof Ui?t.token:t,i,null);let s=null;for(let e=0;e=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw t=this,n=e.key,Ph(t,n,function(e){return`Cannot instantiate cyclic dependency!${kh(e)}`});var t,n;return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;nthis._getByReflectiveDependency(e))}catch(t){throw t.addKey&&t.addKey(this,e.key),t}try{i=n(...r)}catch(t){throw s=this,o=t,t.stack,a=e.key,Ph(s,a,function(e){const t=l(e[0].token);return`${o.message}: Error during instantiation of ${t}!${kh(e)}.`},o)}var s,o,a;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:Ei)}_getByKey(e,t,n){return e===Xh.INJECTOR_KEY?this:t instanceof qi?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)}_getObjByKeyId(e){for(let t=0;t' "'+e.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}function Qh(e,t=G.Default){const n=dn();if(null===n)return ngDevMode&&(r=Qh,ngDevMode&&v(q,r,"Calling ɵɵinject would cause infinite recursion")),Mi(e,t);var r;return Ir(_n(),n,f(e),t)}function Zh(){const e=ngDevMode?"This constructor was not compatible with Dependency Injection.":"invalid";throw new Error(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Jh(e,t,n){const r=dn(),i=In();if(Kl(r,i,t)){const s=pn(),o=Hn();Xc(s,o,r,e,t,r[je],n,!1),ngDevMode&&Eu(s.data,o,e,i)}return Jh}function ed(e,t,n,r,i){const s=i?"class":"style";Tu(e,n,t.inputs[s],s,r)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function td(e,t,n,r,i,s,o){ngDevMode&&mt(t),ngDevMode&&ngDevMode.firstCreatePass++;const a=t.consts,c=Rc(t,e,2,i,sn(a,s)),u=eu(t,n,c,sn(a,o));return ngDevMode&&function(e,t,n,r){if(null===e.schemas)return;const i=n.value;if(!r&&null!==i){const n="undefined"!=typeof HTMLUnknownElement&&HTMLUnknownElement&&t instanceof HTMLUnknownElement||"undefined"!=typeof customElements&&i.indexOf("-")>-1&&!customElements.get(i);if(n&&!Zc(e,i)){let e=`'${i}' is not a known element:\n`;e+=`1. If '${i}' is an Angular component, then verify that it is part of this module.\n`,i&&i.indexOf("-")>-1?e+=`2. If '${i}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.`:e+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",console.error(It("304",e))}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t,r,c,u),null!==c.attrs&&Du(c,c.attrs,!1),null!==c.mergedAttrs&&Du(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}function nd(e,t,n,r){const i=dn(),s=pn(),o=We+e;ngDevMode&&y(Cn(),s.bindingStartIndex,"elements should be created before any bindings"),ngDevMode&&D(i,o);const a=i[je],c=i[o]=ia(a,t,cn.lFrame.currentNamespace),u=s.firstCreatePass?td(o,s,i,c,t,n,r):s.data[o];bn(u,!0);const l=u.mergedAttrs;null!==l&&sr(a,c,l);const h=u.classes;null!==h&&Aa(a,c,h);const d=u.styles;null!==d&&Ta(a,c,d),64!=(64&u.flags)&&wa(s,i,c,u),0===cn.lFrame.elementDepthCount&&Po(c,i),cn.lFrame.elementDepthCount++,st(u)&&(Gc(s,i,u),Uc(s,u,i)),null!==r&&qc(i,u)}function rd(){let e=_n();ngDevMode&&x(e,"No parent node to close."),yn()?vn():(ngDevMode&&dt(_n()),bn(e=e.parent,!1));const t=e;ngDevMode&&ir(t,3),cn.lFrame.elementDepthCount--;const n=pn();n.firstCreatePass&&(Yn(n,e),rt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ed(n,t,dn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ed(n,t,dn(),t.stylesWithoutHost,!1)}function id(e,t,n,r){nd(e,t,n,r),rd()}function sd(e,t,n){const r=dn(),i=pn(),s=e+We;ngDevMode&&D(r,s),ngDevMode&&y(Cn(),i.bindingStartIndex,"element containers should be created before any bindings");const o=i.firstCreatePass?function(e,t,n,r,i){ngDevMode&&ngDevMode.firstCreatePass++;const s=t.consts,o=sn(s,r),a=Rc(t,e,8,"ng-container",o);return null!==o&&Du(a,o,!0),eu(t,n,a,sn(s,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,i,r,t,n):i.data[s];bn(o,!0),ngDevMode&&ngDevMode.rendererCreateComment++;const a=r[s]=r[je].createComment(ngDevMode?"ng-container":"");wa(i,r,a,o),Po(a,r),st(o)&&(Gc(i,r,o),Uc(i,o,r)),null!=n&&qc(r,o)}function od(){let e=_n();const t=pn();yn()?vn():(ngDevMode&&dt(e),bn(e=e.parent,!1)),ngDevMode&&ir(e,8),t.firstCreatePass&&(Yn(t,e),rt(e)&&t.queries.elementEnd(e))}function ad(e,t,n){sd(e,t,n),od()}function cd(){return dn()} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ud(e){return!!e&&"function"==typeof e.then}function ld(e){return!!e&&"function"==typeof e.subscribe}Xh.INJECTOR_KEY=Nh.get(Qu);const hd=ld; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function dd(e,t,n=!1,r){const i=dn(),s=pn(),o=_n();return fd(s,i,i[je],o,e,t,n,r),dd}function pd(e,t,n=!1,r){const i=_n(),s=dn(),o=pn();return fd(o,s,Iu(kn(o.data),i,s),i,e,t,n,r),pd}function fd(e,t,n,r,i,s,o=!1,a){const c=st(r),u=e.firstCreatePass&&Ou(e),l=Cu(t);ngDevMode&&ir(r,15);let h=!0;if(3&r.type){const d=Xt(r,t),p=a?a(d):re,f=p.target||d,_=l.length,m=a?e=>a(Kt(e[r.index])).target:r.index;if(zt(n)){let o=null;if(!a&&c&&(o=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let e=0;er?n[r]:null}"string"==typeof s&&(e+=2)}return null}(e,t,i,r.index)),null!==o){(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1}else{s=md(r,t,s,!1);const e=n.listen(p.name||f,i,s);ngDevMode&&ngDevMode.rendererAddEventListener++,l.push(s,e),u&&u.push(i,m,_,_+1)}}else s=md(r,t,s,!0),f.addEventListener(i,s,o),ngDevMode&&ngDevMode.rendererAddEventListener++,l.push(s),u&&u.push(i,m,_,o)}else s=md(r,t,s,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[i])){const e=p.length;if(e)for(let n=0;n0)&&(l=!0)}else u=n;if(i){if(0!==c){const t=za(e[a+1]);e[r+1]=Ha(t,a),0!==t&&(e[t+1]=Xa(e[t+1],r)),e[a+1]=(h=e[a+1],d=r,ngDevMode&&m(h,"expected number"),ngDevMode&&g(d,0,32767),131071&h|d<<17)}else e[r+1]=Ha(a,0),0!==a&&(e[a+1]=Xa(e[a+1],r)),a=r}else e[r+1]=Ha(c,0),ngDevMode&&y(0!==a&&0===c,!1,"Adding template bindings after hostBindings is not allowed."),0===a?a=r:e[c+1]=Xa(e[c+1],r),c=r;var h,d;l&&(e[r+1]=Ka(e[r+1])),Rd(e,u,r,!0,s),Rd(e,u,r,!1,s),function(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&pi(s,t)>=0&&(n[r+1]=Za(n[r+1]))}(t,u,e,r,s),o=Ha(a,c),s?t.classBindings=o:t.styleBindings=o}function Rd(e,t,n,r,i){const s=e[n+1],o=null===t;let a=r?za(s):Ya(s),c=!1;for(;0!==a&&(!1===c||o);){ngDevMode&&D(e,a);const n=e[a],i=e[a+1];Nd(n,t)&&(c=!0,e[a+1]=r?Za(i):Ka(i)),a=r?za(i):Ya(i)}c&&(e[n+1]=r?Ka(s):Za(s))}function Nd(e,t){return ngDevMode&&v(Array.isArray(t),!0,"Expected that 'tStylingKey' has been unwrapped"),null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&pi(e,t)>=0} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */("undefined"==typeof ngDevMode||ngDevMode)&&ne()&&(Object.freeze(kd),Object.freeze(Pd)) /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */;const Ld={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fd(e){return e.substring(Ld.key,Ld.keyEnd)}function jd(e){return e.substring(Ld.value,Ld.valueEnd)}function Vd(e,t){const n=Ld.textEnd;return n===t?-1:(t=Ld.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ld.key=t,n),Gd(e,t,n))}function Bd(e,t){const n=Ld.textEnd;let r=Ld.key=Gd(e,t,n);return n===r?-1:(r=Ld.keyEnd=function(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=qd(e,r,n,58),r=Ld.value=Gd(e,r,n),r=Ld.valueEnd=function(e,t,n){let r=-1,i=-1,s=-1,o=t,a=o;for(;o32&&(a=o),s=i,i=r,r=-33&c}return a}(e,r,n),qd(e,r,n,59))}function Ud(e){Ld.key=0,Ld.keyEnd=0,Ld.value=0,Ld.valueEnd=0,Ld.textEnd=e.length}function Gd(e,t,n){for(;t>"+e.substring(n,n+1)+"<<]"+e.substr(n+1)+`'. Expecting '${t}'.`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function zd(e,t,n){return Zd(e,t,n,!1),zd}function Wd(e,t){return Zd(e,t,null,!0),Wd}function Kd(e){Jd(ip,Yd,e,!1)}function Yd(e,t){for(let n=function(e){return Ud(e),Bd(e,Gd(e,0,Ld.textEnd))}(t);n>=0;n=Bd(t,n))ip(e,Fd(t),jd(t))}function Xd(e){Jd(hi,Qd,e,!0)}function Qd(e,t){for(let n=function(e){return Ud(e),Vd(e,Gd(e,0,Ld.textEnd))}(t);n>=0;n=Vd(t,n))hi(e,Fd(t),!0)}function Zd(e,t,n,r){const i=dn(),s=pn(),o=xn(2);if(s.firstUpdatePass&&tp(s,e,o,r),t!==Ga&&Kl(i,o,t)){sp(s,s.data[qn()],i,i[je],e,i[o+1]=function(e,t){null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=l(gs(e))));return e}(t,n),r,o)}}function Jd(e,t,n,r){const i=pn(),s=xn(2);i.firstUpdatePass&&tp(i,null,s,r);const o=dn();if(n!==Ga&&Kl(o,s,n)){const a=i.data[qn()];if(cp(a,r)&&!ep(i,s)){if(ngDevMode){const e=i.data[s];y(Array.isArray(e)?e[1]:e,!1,"Styling linked list shadow input should be marked as 'false'")}let e=r?a.classesWithoutHost:a.stylesWithoutHost;ngDevMode&&!1===r&&null!==e&&y(e.endsWith(";"),!0,"Expecting static portion to end with ';'"),null!==e&&(n=h(e,n||"")),ed(i,a,o,n,r)}else!function(e,t,n,r,i,s,o,a){i===Ga&&(i=Pd);let c=0,u=0,l=0=e.expandoStartIndex}function tp(e,t,n,r){ngDevMode&>(e);const i=e.data;if(null===i[n+1]){const s=i[qn()];ngDevMode&&x(s,"TNode expected");const o=ep(e,n);cp(s,r)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){const i=kn(e);let s=r?t.residualClasses:t.residualStyles;if(null===i){const i=0===(r?t.classBindings:t.styleBindings);i&&(n=rp(n=np(null,e,t,n,r),t.attrs,r),s=null)}else{const o=t.directiveStylingLast,a=-1===o||e[o]!==i;if(a)if(n=np(i,e,t,n,r),null===s){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0===Ya(r))return;return e[za(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=rp(n=np(null,e,t,n[1],r),t.attrs,r),function(e,t,n,r){const i=n?t.classBindings:t.styleBindings;ngDevMode&&v(Ya(i),0,"Expecting to have at least one template styling binding."),e[za(i)]=r}(e,t,r,n))}else s=function(e,t,n){let r=void 0;const i=t.directiveEnd;ngDevMode&&v(t.directiveStylingLast,-1,"By the time this function gets called at least one hostBindings-node styling instruction must have executed.");for(let s=1+t.directiveStylingLast;s0;){const t=e[i],s=Array.isArray(t),c=s?t[1]:t,u=null===c;let l=n[i+1];l===Ga&&(l=u?Pd:void 0);let h=u?di(l,r):c===r?l:void 0;if(s&&!ap(h)&&(h=di(t,r)),ap(h)&&(a=h,o))return a;const d=e[i+1];i=o?za(d):Ya(d)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=di(e,r))}return a}function ap(e){return void 0!==e}function cp(e,t){return 0!=(e.flags&(t?16:32))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function up(e,t=""){const n=dn(),r=pn(),i=e+We;ngDevMode&&y(Cn(),r.bindingStartIndex,"text nodes should be created before any bindings"),ngDevMode&&D(n,i);const s=r.firstCreatePass?Rc(r,i,1,t,null):r.data[i],o=n[i]=ta(n[je],t);wa(r,n,o,s),bn(s,!1)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function lp(e){return hp("",e,""),lp}function hp(e,t,n){const r=dn(),i=eh(r,e,t,n);return i!==Ga&&Au(r,qn(),i),hp}function dp(e,t,n,r,i){const s=dn(),o=th(s,e,t,n,r,i);return o!==Ga&&Au(s,qn(),o),dp}function pp(e,t,n,r,i,s,o){const a=dn(),c=nh(a,e,t,n,r,i,s,o);return c!==Ga&&Au(a,qn(),c),pp}function fp(e,t,n,r,i,s,o,a,c){const u=dn(),l=rh(u,e,t,n,r,i,s,o,a,c);return l!==Ga&&Au(u,qn(),l),fp}function _p(e,t,n,r,i,s,o,a,c,u,l){const h=dn(),d=ih(h,e,t,n,r,i,s,o,a,c,u,l);return d!==Ga&&Au(h,qn(),d),_p}function mp(e,t,n,r,i,s,o,a,c,u,l,h,d){const p=dn(),f=sh(p,e,t,n,r,i,s,o,a,c,u,l,h,d);return f!==Ga&&Au(p,qn(),f),mp}function gp(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f){const _=dn(),m=oh(_,e,t,n,r,i,s,o,a,c,u,l,h,d,p,f);return m!==Ga&&Au(_,qn(),m),gp}function bp(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m){const g=dn(),b=ah(g,e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m);return b!==Ga&&Au(g,qn(),b),bp}function yp(e){const t=dn(),n=Jl(t,e);return n!==Ga&&Au(t,qn(),n),yp} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function vp(e,t,n){Jd(hi,Qd,eh(dn(),e,t,n),!0)}function wp(e,t,n,r,i){Jd(hi,Qd,th(dn(),e,t,n,r,i),!0)}function Ep(e,t,n,r,i,s,o){Jd(hi,Qd,nh(dn(),e,t,n,r,i,s,o),!0)}function Sp(e,t,n,r,i,s,o,a,c){Jd(hi,Qd,rh(dn(),e,t,n,r,i,s,o,a,c),!0)}function Cp(e,t,n,r,i,s,o,a,c,u,l){Jd(hi,Qd,ih(dn(),e,t,n,r,i,s,o,a,c,u,l),!0)}function Op(e,t,n,r,i,s,o,a,c,u,l,h,d){Jd(hi,Qd,sh(dn(),e,t,n,r,i,s,o,a,c,u,l,h,d),!0)}function Ip(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f){Jd(hi,Qd,oh(dn(),e,t,n,r,i,s,o,a,c,u,l,h,d,p,f),!0)}function xp(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m){Jd(hi,Qd,ah(dn(),e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m),!0)}function Tp(e){Jd(hi,Qd,Jl(dn(),e),!0)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ap(e,t,n){Kd(eh(dn(),e,t,n))}function Dp(e,t,n,r,i){Kd(th(dn(),e,t,n,r,i))}function kp(e,t,n,r,i,s,o){Kd(nh(dn(),e,t,n,r,i,s,o))}function Pp(e,t,n,r,i,s,o,a,c){Kd(rh(dn(),e,t,n,r,i,s,o,a,c))}function Mp(e,t,n,r,i,s,o,a,c,u,l){Kd(ih(dn(),e,t,n,r,i,s,o,a,c,u,l))}function Rp(e,t,n,r,i,s,o,a,c,u,l,h,d){Kd(sh(dn(),e,t,n,r,i,s,o,a,c,u,l,h,d))}function Np(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f){Kd(oh(dn(),e,t,n,r,i,s,o,a,c,u,l,h,d,p,f))}function Lp(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m){Kd(ah(dn(),e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m))}function Fp(e){Kd(Jl(dn(),e))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function jp(e,t,n,r,i){return Zd(e,eh(dn(),t,n,r),i,!1),jp}function Vp(e,t,n,r,i,s,o){return Zd(e,th(dn(),t,n,r,i,s),o,!1),Vp}function Bp(e,t,n,r,i,s,o,a,c){return Zd(e,nh(dn(),t,n,r,i,s,o,a),c,!1),Bp}function Up(e,t,n,r,i,s,o,a,c,u,l){return Zd(e,rh(dn(),t,n,r,i,s,o,a,c,u),l,!1),Up}function Gp(e,t,n,r,i,s,o,a,c,u,l,h,d){return Zd(e,ih(dn(),t,n,r,i,s,o,a,c,u,l,h),d,!1),Gp}function qp(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f){return Zd(e,sh(dn(),t,n,r,i,s,o,a,c,u,l,h,d,p),f,!1),qp}function $p(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m){return Zd(e,oh(dn(),t,n,r,i,s,o,a,c,u,l,h,d,p,f,_),m,!1),$p}function Hp(e,t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m,g,b){return Zd(e,ah(dn(),t,n,r,i,s,o,a,c,u,l,h,d,p,f,_,m,g),b,!1),Hp}function zp(e,t,n){return Zd(e,Jl(dn(),t),n,!1),zp} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Wp(e,t,n){const r=dn(),i=In();if(Kl(r,i,t)){const s=pn(),o=Hn();Xc(s,o,r,e,t,r[je],n,!0),ngDevMode&&Eu(s.data,o,e,i)}return Wp}function Kp(e,t,n){const r=dn(),i=In();if(Kl(r,i,t)){const s=pn(),o=Hn();Xc(s,o,r,e,t,Iu(kn(s.data),o,r),n,!0),ngDevMode&&Eu(s.data,o,e,i)}return Kp} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */"undefined"==typeof ngI18nClosureMode&&(te.ngI18nClosureMode="undefined"!=typeof goog&&"function"==typeof goog.getMsg); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Yp=void 0;var Xp=["en",[["a","p"],["AM","PM"],Yp],[["AM","PM"],Yp,Yp],[["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"]],Yp,[["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"]],Yp,[["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}",Yp,"{1} 'at' {0}",Yp],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let Qp={};function Zp(e,t,n){"string"!=typeof t&&(n=t,t=e[sf.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Qp[t]=e,n&&(Qp[t][sf.ExtraData]=n)}function Jp(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e);let n=nf(t);if(n)return n;const r=t.split("-")[0];if(n=nf(r))return n;if("en"===r)return Xp;throw new Error(`Missing locale data for the locale "${e}".`)}function ef(e){return Jp(e)[sf.CurrencyCode]||null}function tf(e){return Jp(e)[sf.PluralCase]}function nf(e){return e in Qp||(Qp[e]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[e]),Qp[e]}function rf(){Qp={}}var sf;!function(e){e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData"}(sf||(sf={}));const of=["zero","one","two","few","many"];const af="en-US",cf="USD",uf={marker:"element"},lf={marker:"ICU"};var hf;!function(e){e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT"}(hf||(hf={})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let df=af;function pf(e){x(e,"Expected localeId to be defined"),"string"==typeof e&&(df=e.toLowerCase().replace(/_/g,"-"))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ff(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?ga(e,0,n):(ngDevMode&&D(n,i),Kt(n[i]))}function _f(e,t,n,r,i){const s=t.insertBeforeIndex;if(Array.isArray(s)){ngDevMode&&A(r);let o=r,a=null;if(3&t.type||(a=o,o=i),null!==o&&0==(2&t.flags))for(let t=1;t1)for(let n=e.length-2;n>=0;n--){const r=e[n];gf(r)||bf(r,t)&&null===yf(r)&&vf(r,t.index)}}function gf(e){return!(64&e.type)}function bf(e,t){return gf(t)||e.index>t.index}function yf(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function vf(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(va(ff,_f),e.insertBeforeIndex=t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function wf(e,t){const n=e.data[t];if(null===n||"string"==typeof n)return null;!ngDevMode||n.hasOwnProperty("tViews")||n.hasOwnProperty("currentCaseLViewIndex")||T("We expect to get 'null'|'TIcu'|'TIcuContainer', but got: "+n);const r=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return ngDevMode&<(r),r}function Ef(e,t,n){const r=Nc(e,n,64,null,null);return mf(t,r),r}function Sf(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Cf(e){return e>>>17}function Of(e){return(131070&e)>>>1}function If(e){return 1&e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ let xf=0,Tf=0;function Af(e,t,n,r,i){for(let s=0;s>>2;switch(3&s){case 1:const c=n[++o],u=n[++o],l=e.data[a];ngDevMode&&x(l,"Experting TNode or string"),"string"==typeof l?uu(t[je],t[a],null,l,c,i,u):Xc(e,l,t,c,i,t[je],u,!1);break;case 0:const h=t[a];null!==h&&na(t[je],h,i);break;case 2:kf(e,wf(e,a),t,i);break;case 3:Df(e,wf(e,a),r,t)}}}}else{const i=n[s+1];if(i>0&&3==(3&i)){const n=wf(e,i>>>2);t[n.currentCaseLViewIndex]<0&&Df(e,n,r,t)}}s+=a}}function Df(e,t,n,r){ngDevMode&&D(r,t.currentCaseLViewIndex);let i=r[t.currentCaseLViewIndex];if(null!==i){let s=xf;i<0&&(i=r[t.currentCaseLViewIndex]=~i,s=-1),Af(e,r,t.update[i],n,s)}}function kf(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=tf(t)(parseInt(e,10)),r=of[n];return void 0!==r?r:"other"}(t,df);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t,r);if(Sf(t,n)!==i&&(function e(t,n,r){let i=Sf(n,r);if(null!==i){const s=n.remove[i];for(let n=0;n0){const e=Yt(i,r);null!==e&&Ca(r[je],e)}else e(t,wf(t,~i),r)}}}(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[t.anchorIdx];r&&(ngDevMode&&A(r),function e(t,n,r,i){ngDevMode&&A(i);const s=r[je];let o,a=null;for(let c=0;c>>1,f=n[++c],_=n[++c];uu(s,Yt(p,r),null,null,f,_,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${u}"`)}else switch(u){case lf:const e=n[++c],t=n[++c];null===r[t]&&(ngDevMode&&y(typeof e,"string",`Expected "${e}" to be a comment node value`),ngDevMode&&ngDevMode.rendererCreateComment++,ngDevMode&&bt(r,t),Po(r[t]=ra(s,e),r));break;case uf:const i=n[++c],o=n[++c];null===r[o]&&(ngDevMode&&y(typeof i,"string",`Expected "${i}" to be an element node tag name`),ngDevMode&&ngDevMode.rendererCreateElement++,ngDevMode&&bt(r,o),Po(r[o]=ia(s,i,null),r));break;default:ngDevMode&&T(`Unable to determine the type of mutate operation for "${u}"`)}}}(e,t.create[i],n,r))}}function Pf(){const e=[];let t,n,r=-1;function i(e,t){r=0;const i=Sf(e,t);null!==i?(ngDevMode&&g(i,0,e.cases.length-1),n=e.remove[i]):n=ie}function s(){if(r0){const e=t[o];return ngDevMode&&A(e),e}{e.push(r,n);const a=~o,c=t[Te].data[a];return ngDevMode&<(c),i(c,t),s()}}return 0===e.length?null:(n=e.pop(),r=e.pop(),s())}return function(n,r){for(t=r;e.length;)e.pop();return ngDevMode&&at(n,r),i(n.value,r),s}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Mf(e){const t=e||(Array.isArray(this)?this:[]);let n=[];for(let e=0;e>>hf.SHIFT;n.push(`lView[${a}] = document.${s?"createComment":"createText"}(${JSON.stringify(i)});`),o&&n.push(`parent.appendChild(lView[${a}]);`)}return n}function Rf(e){const t=new Ff(e||(Array.isArray(this)?this:[]));let n=[];function r(e){const n=e>>>2;switch(3&e){case 0:return`(lView[${n}] as Text).textContent = $$$`;case 1:const r=t.consumeString(),i=t.consumeFunction();return`(lView[${n}] as Element).setAttribute('${r}', ${i?`(${i})($$$)`:"$$$"})`;case 2:return`icuSwitchCase(${n}, $$$)`;case 3:return`icuUpdateCase(${n})`}throw new Error("unexpected OpCode")}for(;t.hasMore();){let e=t.consumeNumber(),i=t.consumeNumber();const s=t.i+i,o=[];let a="";for(;t.i0?n.push(`remove(lView[${r}])`):n.push(`removeNestedICU(${~r})`)}return n}class Ff{constructor(e){this.i=0,this.codes=e}hasMore(){return this.in.length&&n.push(o)}return{type:r,mainBinding:i,cases:t,values:n}}function e_(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let s;for(i.lastIndex=0;s=i.exec(e);){const i=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);Uf.test(n)?r.push(Jf(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const o=e.substring(t);return r.push(o),r}function t_(e,t,n,r,i,s,o,a){const c=[],u=[],l=[];ngDevMode&&(ec(c,Nf),ec(u,Lf),ec(l,Rf)),t.cases.push(s),t.create.push(c),t.remove.push(u),t.update.push(l);const h=Os($t()).getInertBodyElement(o);ngDevMode&&x(h,"Unable to generate inert body element");const d=Js(h)||h;return d?function e(t,n,r,i,s,o,a,c,u,l,h){let d=0;let p=c.firstChild;for(;p;){const c=Lc(t,r,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const f=p,_=f.tagName.toLowerCase();if(Bs.hasOwnProperty(_)){i_(s,uf,_,u,c),t.data[c]=_;const m=f.attributes;for(let e=0;e{const s=r||i,o=e[s]||[];if(o.length||(s.split("|").forEach(e=>{const t=e.match(p_),n=t?parseInt(t[1],10):o_,r=d_.test(e);o.push([n,r,e])}),e[s]=o),!o.length)throw new Error(`i18n postprocess: unmatched placeholder - ${s}`);const a=t[t.length-1];let c=0;for(let e=0;et.hasOwnProperty(r)?`${n}${t[r]}${o}`:e)).replace(l_,(e,n)=>t.hasOwnProperty(n)?t[n]:e)).replace(h_,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}):n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function __(e,t,n=-1){const r=pn(),i=dn(),s=We+e;ngDevMode&&x(r,"tView should be defined");const o=sn(r.consts,t),a=gn();r.firstCreatePass&&zf(r,null===a?0:a.index,i,s,o,n);const c=r.data[s],u=ha(r,a===i[Me]?null:a,i),l=a&&8&a.type?i[a.index]:null;!function(e,t,n,r){const i=e[je];for(let s=0;s>>hf.SHIFT;let h=e[l];null===h&&(h=e[l]=c?i.createComment(a):ta(i,a)),u&&null!==n&&da(i,n,h,r,!1)}}(i,c.create,u,l),Tn(!0)}function m_(){Tn(!1)}function g_(e,t,n){__(e,t,n),m_()}function b_(e,t){const n=pn();ngDevMode&&x(n,"tView should be defined");const r=sn(n.consts,t);!function(e,t,n){const r=_n().index,i=[];if(ngDevMode&&ec(i,Rf),e.firstCreatePass&&null===e.data[t]){for(let e=0;e0){ngDevMode&&x(e,"tView should be defined");const r=e.data[n];Af(e,t,Array.isArray(r)?r:r.update,Cn()-Tf-1,xf)}xf=0,Tf=0}(pn(),dn(),e+We)}function w_(e,t={}){return f_(e,t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function E_(e,t,n,r,i){if(e=f(e),Array.isArray(e))for(let s=0;s>20;if(Ku(e)||!e.multi){const r=new nr(c,i,Qh),p=O_(a,t,i?l:l+d,h);-1===p?(Er(br(u,o),s,a),S_(s,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=O_(a,t,l+d,h),f=O_(a,t,l,l+d),_=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!_){Er(br(u,o),s,a);const l=function(e,t,n,r,i){const s=new nr(e,n,Qh);return s.multi=[],s.index=t,s.componentProviders=0,C_(s,i,r&&!n),s}(i?x_:I_,n.length,i,r,c);!i&&m&&(n[f].providerFactory=l),S_(s,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(l),o.push(l)}else{S_(s,e,p>-1?p:f,C_(n[i?f:p],c,!i&&r))}!i&&r&&m&&n[f].componentProviders++}}}function S_(e,t,n,r){const i=Ku(t);if(i||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){ngDevMode&&x(r,"indexInFactory when registering multi factory destroy hook");const e=o.indexOf(n);-1===e?o.push(n,[r,s]):o[e+1].push(r,s)}else o.push(n,s)}}}function C_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function O_(e,t,n,r){for(let i=n;i{n.providersResolver=((n,r)=>(function(e,t,n){const r=pn();if(r.firstCreatePass){const i=ot(e);E_(n,r.data,r.blueprint,i,!0),E_(t,r.data,r.blueprint,i,!1)}})(n,r?r(e):e,t))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class D_{}class k_{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function P_(e){const t=Error(`No component factory found for ${l(e)}. Did you add it to @NgModule.entryComponents?`);return t[M_]=e,t}const M_="ngComponent";class R_{}R_.NULL=new class{resolveComponentFactory(e){throw P_(e)}};class N_{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let t=0;tW_());const z_=K_,W_=F_;function K_(){const e=dn(),t=Jt(_n().index,e);return function(e){const t=e[je];if(ngDevMode&&!zt(t))throw new Error("Cannot inject Renderer2 when the application uses Renderer3!");return t}(tt(t)?t:e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Y_{}Y_.ɵprov=P({token:Y_,providedIn:"root",factory:()=>null}); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class X_{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Q_=new X_("11.2.0"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Z_{constructor(){}supports(e){return $l(e)}create(e){return new em(e)}}const J_=(e,t)=>t;class em{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||J_}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{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(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;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=e._nextMoved)e.previousIndex=e.currentIndex;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._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new tm(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),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=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 rm),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?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new rm),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,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}}class tm{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 nm{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)&&Object.is(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 rm{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new nm,this.map.set(t,n)),n.add(e)}get(e,t){const n=e,r=this.map.get(n);return r?r.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 im(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{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 am(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){Object.is(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 am{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}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function cm(){return new um([new Z_])}class um{constructor(e){this.factories=e}static create(e,t){if(null!=t){const n=t.factories.slice();e=e.concat(n)}return new um(e)}static extend(e){return{provide:um,useFactory:t=>um.create(e,t||cm()),deps:[[um,new $i,new Gi]]}}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; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}}function lm(){return new hm([new sm])}um.ɵprov=P({token:um,providedIn:"root",factory:cm});class hm{constructor(e){this.factories=e}static create(e,t){if(t){const n=t.factories.slice();e=e.concat(n)}return new hm(e)}static extend(e){return{provide:hm,useFactory:t=>hm.create(e,t||lm()),deps:[[hm,new $i,new Gi]]}}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}'`)}}hm.ɵprov=P({token:hm,providedIn:"root",factory:lm}); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class dm{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[Te]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ return function e(t,n,r,i,s=!1){for(;null!==r;){ngDevMode&&ir(r,63);const o=n[r.index];if(null!==o&&i.push(Kt(o)),nt(o))for(let t=et;t-1&&(ngDevMode&&y(n,e.indexOf(this._lView)-et,"An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array."),aa(e,n),ui(t,n))}this._attachedToViewContainer=!1}ca(this._lView[Te],this._lView)}onDestroy(e){Kc(this._lView[Te],this._lView,null,e)}markForCheck(){gu(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ae]&=-129}reattach(){this._lView[Ae]|=128}detectChanges(){yu(this._lView[Te],this._lView,this.context)}checkNoChanges(){!function(e,t,n){En(!0);try{yu(e,t,n)}finally{En(!1)}}(this._lView[Te],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e,t;this._appRef=null,e=this._lView[Te],t=this._lView,Ia(e,t,t[je],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class pm extends dm{constructor(e){super(e),this._view=e}detectChanges(){vu(this._view)}checkNoChanges(){!function(e){En(!0);try{vu(e)}finally{En(!1)}}(this._view)}get context(){return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const fm=gm,_m=F_;class mm{}function gm(e=!1){return function(e,t,n){if(!n&&it(e)){const n=Jt(e.index,t);return new dm(n,n)}if(47&e.type){const e=t[qe];return new dm(e,t)}return null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(_n(),dn(),e)}mm.__NG_ELEMENT_ID__=_m,mm.__ChangeDetectorRef__=!0;const bm=[new sm],ym=[new Z_],vm=new um(ym),wm=new hm(bm),Em=xm,Sm=F_;class Cm{}Cm.__NG_ELEMENT_ID__=Sm;const Om=Cm,Im=class extends Om{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Mc(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null),r=this._declarationLView[this._declarationTContainer.index];ngDevMode&&pt(r),n[$e]=r;const i=this._declarationLView[ze];return null!==i&&(n[ze]=i.createEmbeddedView(t)),Fc(t,n,e),new dm(n)}};function xm(){return Tm(_n(),dn())}function Tm(e,t){return 4&e.type?(ngDevMode&&x(e.tViews,"TView must be allocated"),new Im(t,e,V_(e,t))):null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Am{}class Dm{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const km=Rm,Pm=F_;class Mm{}function Rm(){return Vm(_n(),dn())}Mm.__NG_ELEMENT_ID__=Pm;const Nm=Mm,Lm=class extends Nm{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return V_(this._hostTNode,this._hostLView)}get injector(){return new Rr(this._hostTNode,this._hostLView)}get parentInjector(){const e=wr(this._hostTNode,this._hostLView);if(lr(e)){const t=dr(e,this._hostLView),n=hr(e);ngDevMode&&wt(t,n);const r=t[Te].data[n+8];return new Rr(r,t)}return new Rr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Fm(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-et}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;if(!i&&null==e.ngModule&&s){const e=s.get(Am,null);e&&(i=e)}const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[Te];if(ngDevMode&&e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(nt(n[De])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[De];ngDevMode&&y(nt(t),!0,"An attached view should have its PARENT point to a container.");const r=new Lm(t,t[Me],t[De]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),s=this._lContainer;sa(r,n,s,i);const o=Sa(i,s),a=n[je],c=_a(a,s[Qe]);return null!==c&&function(e,t,n,r,i,s){r[xe]=i,r[Me]=t,Ia(e,r,n,1,i,s)}(r,s[Me],a,n,c,o),e.attachToViewContainerRef(),ci(jm(s),i,e),e}move(e,t){if(ngDevMode&&e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=Fm(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=aa(this._lContainer,t);n&&(ui(jm(this._lContainer),t),ca(n[Te],n))}detach(e){const t=this._adjustIndex(e,-1),n=aa(this._lContainer,t);return n&&null!=ui(jm(this._lContainer),t)?new dm(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:(ngDevMode&&(O(e,-1,`ViewRef index must be positive, got ${e}`),S(e,this.length+1+t,"index")),e)}};function Fm(e){return e[Ze]}function jm(e){return e[Ze]||(e[Ze]=[])}function Vm(e,t){let n;ngDevMode&&ir(e,15);const r=t[e.index];if(nt(r))n=r;else{let i;if(8&e.type)i=Kt(r);else{const n=t[je];ngDevMode&&ngDevMode.rendererCreateComment++,i=n.createComment(ngDevMode?"container":"");const r=Xt(e,t);da(n,_a(n,r),i,function(e,t){return zt(e)?e.nextSibling(t):t.nextSibling}(n,r),!1)}t[e.index]=n=pu(r,t,i,e),mu(t,n)}return new Lm(n,e,t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Bm(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 Um(n,t),n}(i,e)}function Um(e,t){e[ho]=t,e[fo]=t.logError.bind(t)}function Gm(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function qm(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 $m(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Hm(e,t){return e.nodes[t]}function zm(e,t){return e.nodes[t]}function Wm(e,t){return e.nodes[t]}function Km(e,t){return e.nodes[t]}function Ym(e,t){return e.nodes[t]}class Xm{}const Qm={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},Zm=()=>{},Jm=new Map; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function eg(e){let t=Jm.get(e);return t||(t=l(e)+"_"+Jm.size,Jm.set(e,t)),t}function tg(e,t,n,r){if(ql.isWrapped(r)){r=ql.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,s=ql.unwrap(e.oldValues[i]);e.oldValues[i]=new ql(s)}return r}const ng="$$undefined",rg="$$empty";function ig(e){return{id:ng,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let sg=0;function og(e,t,n,r){const i=e.oldValues;return!(!(2&e.state)&&Object.is(i[t.bindingIndex+n],r))}function ag(e,t,n,r){return!!og(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function cg(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Gl(i,r)){const s=t.bindings[n].name;throw Bm(Qm.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,0!=(1&e.state))}}function ug(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function lg(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function hg(e,t,n,r){try{return ug(33554432&e.def.nodes[t].flags?zm(e,t).componentView:e),Qm.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function dg(e){if(e.parent){return zm(e.parent,e.parentNodeDef.nodeIndex)}return null}function pg(e){return e.parent?e.parentNodeDef.parent:null}function fg(e,t){switch(201347067&t.flags){case 1:return zm(e,t.nodeIndex).renderElement;case 2:return Hm(e,t.nodeIndex).renderText}}function _g(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function mg(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function gg(e){return 1<{"number"==typeof e?(t[e]=i,n|=gg(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function yg(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,Ti,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:eg(n)}})}function vg(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===X.ShadowDom||1===r.element.componentRendererType.encapsulation)?zm(e,n.renderParent.nodeIndex).renderElement:void 0:t}const wg=new WeakMap;function Eg(e){let t=wg.get(e);return t||((t=e(()=>Zm)).factory=e,wg.set(e,t)),t}function Sg(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(fg(e,e.def.lastRenderRootNode))),Cg(e,t,0,e.def.nodes.length-1,n,r,i)}function Cg(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Ig(e,n,t,i,s,o),a+=n.childCount}}function Og(e,t,n,r,i,s){let o=e;for(;o&&!_g(o);)o=o.parent;const a=o.parent,c=pg(o),u=c.nodeIndex+1,l=c.nodeIndex+c.childCount;for(let e=u;e<=l;e++){const o=a.def.nodes[e];o.ngContentIndex===t&&Ig(a,o,n,r,i,s),e+=o.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(e,n))}(e,o)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:n,token:t.token},e._providers[n]=Lg,e._providers[n]=qg(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{ki(r)}}function qg(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(Gg(e,n[0]));case 2:return new t(Gg(e,n[0]),Gg(e,n[1]));case 3:return new t(Gg(e,n[0]),Gg(e,n[1]),Gg(e,n[2]));default:const i=[];for(let t=0;t0?i[n-1]:null,r)}function Hg(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,ui(n,t),Qm.dirtyParentQueries(r),Wg(r),r}function zg(e,t,n){const r=t?fg(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);Sg(n,2,i,s,void 0)}function Wg(e){Sg(e,3,null,null,void 0)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Kg={};function Yg(e,t,n,r,i,s){return new Qg(e,t,n,r,i,s)}function Xg(e){return e.viewDefFactory}class Qg extends k_{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){const r=t[n];e.push({propName:n,templateName:r})}return e}get outputs(){const e=[];for(let t in this._outputs){const n=this._outputs[t];e.push({propName:t,templateName:n})}return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=Eg(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=Qm.createRootView(e,t||[],n,i,r,Kg),a=Wm(o,s).instance;return n&&o.renderer.setAttribute(zm(o,0).renderElement,"ng-version",Q_.full),new Zg(o,new nb(o),a)}}class Zg extends D_{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 G_(zm(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new ob(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Jg(e,t,n){return new eb(e,t,n)}class eb{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new G_(this._data.renderElement)}get injector(){return new ob(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=pg(e),e=e.parent;return e?new ob(e,t):new ob(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Hg(this._data,e);Qm.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new nb(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 L_||(i=s.get(Am));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,r=n._view;return $g(this._view,this._data,t,r),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];ui(r,t),null==n&&(n=r.length),ci(r,n,i),Qm.dirtyParentQueries(i),Wg(i),zg(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=Hg(this._data,e);t&&Qm.destroyView(t)}detach(e){const t=Hg(this._data,e);return t?new nb(t):null}}function tb(e){return new nb(e)}class nb{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Sg(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(){ug(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qm.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Qm.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)),Qm.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Wg(this._view),Qm.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 rb(e,t){return new ib(e,t)}class ib extends Cm{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new nb(Qm.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new G_(zm(this._parentView,this._def.nodeIndex).renderElement)}}function sb(e,t){return new ob(e,t)}class ob{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Qu.THROW_IF_NOT_FOUND){const n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Qm.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:eg(e)},t)}}function ab(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=zm(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Hm(e,n.nodeIndex).renderText;if(20240&n.flags)return Wm(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function cb(e,t,n,r){return new ub(e,t,n,r)}class ub{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=li(t.providers.length);for(let r=0;re())}onDestroy(e){this._destroyListeners.push(e)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const lb=eg(H_),hb=eg(G_),db=eg(Mm),pb=eg(Cm),fb=eg(mm),_b=eg(Qu),mb=eg(Mu);function gb(e,t,n,r,i,s,o,a){const c=[];if(o)for(let e in o){const[t,n]=o[e];c[t]={flags:8,name:e,nonMinifiedName:n,ns:null,securityContext:null,suffix:null}}const u=[];if(a)for(let e in a)u.push({type:1,propName:e,target:null,eventName:a[e]});return vb(e,t|=16384,n,r,i,i,s,c,u)}function bb(e,t,n){return vb(-1,e|=16,null,0,t,t,n)}function yb(e,t,n,r,i){return vb(-1,e,t,0,n,r,i)}function vb(e,t,n,r,i,s,o,a,c){const{matchedQueries:u,references:h,matchedQueryIds:d}=bg(n);c||(c=[]),a||(a=[]),s=f(s);const p=yg(o,l(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:d,references:h,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Dg(a),outputs:c,element:null,provider:{token:i,value:s,deps:p},text:null,query:null,ngContent:null}}function wb(e,t){return Ob(e,t)}function Eb(e,t){let n=e;for(;n.parent&&!_g(n);)n=n.parent;return Ib(n.parent,pg(n),!0,t.provider.value,t.provider.deps)}function Sb(e,t){const n=(32768&t.flags)>0,r=Ib(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(let n=0;nhg(e,t,n,r)}function Ob(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Ib(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(Tb(e,t,n,i[0]));case 2:return r(Tb(e,t,n,i[0]),Tb(e,t,n,i[1]));case 3:return r(Tb(e,t,n,i[0]),Tb(e,t,n,i[1]),Tb(e,t,n,i[2]));default:const o=[];for(let r=0;rFo});class Fb extends k_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Ua).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Nb(this.componentDef.inputs)}get outputs(){return Nb(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const s=e.get(n,xb,i);return s!==xb||r===xb?s:t.get(n,r,i)}}}(e,r.injector):e,s=i.get($_,Wt),o=i.get(Y_,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=n?Wc(a,n,this.componentDef.encapsulation):ia(s.createRenderer(null,this.componentDef),c,function(e){const t=e.toLowerCase();return"svg"===t?Vt:"math"===t?Bt:null}(c)),l=this.componentDef.onPush?576:528,h=Tl(),d=Hc(0,null,null,1,0,null,null,null,null,null),p=Mc(null,d,h,l,null,null,s,a,o,i);let f,_;Ln(p);try{const e=Il(u,this.componentDef,p,s,a);if(u)if(n)sr(a,u,["ng-version",Q_.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&Aa(a,u,t.join(" "))}if(_=Qt(d,We),void 0!==t){const e=_.projection=[];for(let n=0;n{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?i.propDecorators=Object.assign(Object.assign({},i.propDecorators),r):i.propDecorators=r)})} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Bb=new Map;function Ub(e,t){const n=Bb.get(e);Gb(e,n&&n.moduleType,t.moduleType),Bb.set(e,t)}function Gb(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${l(t)} vs ${l(t.name)}`)}function qb(e){const t=new Set;!function e(n){const r=Ie(n,!0);const i=r.id;if(null!==i){const e=Bb.get(i);Gb(i,e,n),Bb.set(i,n)}const s=Go(r.imports);for(const n of s)t.has(n)||(t.add(n),e(n))}(e)}function $b(e){return Bb.get(e)||ge[e]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Hb extends Am{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Rb(this);const n=Ie(e);ngDevMode&&x(n,`NgModule '${l(e)}' is not a subtype of 'NgModuleType'.`);const r=e[ue]||null;r&&pf(r),this._bootstrapComponents=Go(n.bootstrap),this._r3Injector=Gu(e,t,[{provide:Am,useValue:this},{provide:R_,useValue:this.componentFactoryResolver}],l(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Qu.THROW_IF_NOT_FOUND,n=G.Default){return e===Qu||e===Am||e===Mu?this:this._r3Injector.get(e,t,n)}destroy(){ngDevMode&&x(this.destroyCbs,"NgModule already destroyed");const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){ngDevMode&&x(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.push(e)}}class zb extends Dm{constructor(e){super(),this.moduleType=e,null!==Ie(e)&&qb(e)}create(e){return new Hb(this.moduleType,e)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Wb(e,t,n){const r=Sn()+e,i=dn();return i[r]===Ga?zl(i,r,n?t.call(n):t()):Wl(i,r)}function Kb(e,t,n,r){return iy(dn(),Sn(),e,t,n,r)}function Yb(e,t,n,r,i){return sy(dn(),Sn(),e,t,n,r,i)}function Xb(e,t,n,r,i,s){return oy(dn(),Sn(),e,t,n,r,i,s)}function Qb(e,t,n,r,i,s,o){return ay(dn(),Sn(),e,t,n,r,i,s,o)}function Zb(e,t,n,r,i,s,o,a){const c=Sn()+e,u=dn(),l=Ql(u,c,n,r,i,s);return Kl(u,c+4,o)||l?zl(u,c+5,a?t.call(a,n,r,i,s,o):t(n,r,i,s,o)):Wl(u,c+5)}function Jb(e,t,n,r,i,s,o,a,c){const u=Sn()+e,l=dn(),h=Ql(l,u,n,r,i,s);return Yl(l,u+4,o,a)||h?zl(l,u+6,c?t.call(c,n,r,i,s,o,a):t(n,r,i,s,o,a)):Wl(l,u+6)}function ey(e,t,n,r,i,s,o,a,c,u){const l=Sn()+e,h=dn();let d=Ql(h,l,n,r,i,s);return Xl(h,l+4,o,a,c)||d?zl(h,l+7,u?t.call(u,n,r,i,s,o,a,c):t(n,r,i,s,o,a,c)):Wl(h,l+7)}function ty(e,t,n,r,i,s,o,a,c,u,l){const h=Sn()+e,d=dn(),p=Ql(d,h,n,r,i,s);return Ql(d,h+4,o,a,c,u)||p?zl(d,h+8,l?t.call(l,n,r,i,s,o,a,c,u):t(n,r,i,s,o,a,c,u)):Wl(d,h+8)}function ny(e,t,n,r){return cy(dn(),Sn(),e,t,n,r)}function ry(e,t){ngDevMode&&D(e,t);const n=e[t];return n===Ga?void 0:n}function iy(e,t,n,r,i,s){const o=t+n;return Kl(e,o,i)?zl(e,o+1,s?r.call(s,i):r(i)):ry(e,o+1)}function sy(e,t,n,r,i,s,o){const a=t+n;return Yl(e,a,i,s)?zl(e,a+2,o?r.call(o,i,s):r(i,s)):ry(e,a+2)}function oy(e,t,n,r,i,s,o,a){const c=t+n;return Xl(e,c,i,s,o)?zl(e,c+3,a?r.call(a,i,s,o):r(i,s,o)):ry(e,c+3)}function ay(e,t,n,r,i,s,o,a,c){const u=t+n;return Ql(e,u,i,s,o,a)?zl(e,u+4,c?r.call(c,i,s,o,a):r(i,s,o,a)):ry(e,u+4)}function cy(e,t,n,r,i,s){let o=t+n,a=!1;for(let t=0;t=0;n--){const r=t[n];if(e===r.name)return r}throw new Ct("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=Et(r.type,!0)),o=H(Qh);try{const e=fr(!1),t=s();return fr(e),bh(n,dn(),i,t),t}finally{H(o)}}function ly(e,t,n){const r=e+We,i=dn(),s=Zt(i,r);return my(i,_y(i,r)?iy(i,Sn(),t,s.transform,n,s):s.transform(n))}function hy(e,t,n,r){const i=e+We,s=dn(),o=Zt(s,i);return my(s,_y(s,i)?sy(s,Sn(),t,o.transform,n,r,o):o.transform(n,r))}function dy(e,t,n,r,i){const s=e+We,o=dn(),a=Zt(o,s);return my(o,_y(o,s)?oy(o,Sn(),t,a.transform,n,r,i,a):a.transform(n,r,i))}function py(e,t,n,r,i,s){const o=e+We,a=dn(),c=Zt(a,o);return my(a,_y(a,o)?ay(a,Sn(),t,c.transform,n,r,i,s,c):c.transform(n,r,i,s))}function fy(e,t,n){const r=e+We,i=dn(),s=Zt(i,r);return my(i,_y(i,r)?cy(i,Sn(),t,s.transform,n,s):s.transform.apply(s,n))}function _y(e,t){return e[Te].data[t].pure}function my(e,t){if(ql.isWrapped(t)){t=ql.unwrap(t),e[Cn()]=Ga}return t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const gy=class 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}}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function by(){return this._results[Ul()]()}class yy{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Ul(),n=yy.prototype;n[t]||(n[t]=by)}get changes(){return this._changes||(this._changes=new gy)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const r=oi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)i.push(a[t/2]);else{const s=o[t+1],a=n[-r];ngDevMode&&pt(a);for(let t=et;t({"ɵɵattribute":Zl,"ɵɵattributeInterpolate1":ch,"ɵɵattributeInterpolate2":uh,"ɵɵattributeInterpolate3":lh,"ɵɵattributeInterpolate4":hh,"ɵɵattributeInterpolate5":dh,"ɵɵattributeInterpolate6":ph,"ɵɵattributeInterpolate7":fh,"ɵɵattributeInterpolate8":_h,"ɵɵattributeInterpolateV":mh,"ɵɵdefineComponent":pe,"ɵɵdefineDirective":we,"ɵɵdefineInjectable":P,"ɵɵdefineInjector":R,"ɵɵdefineNgModule":be,"ɵɵdefinePipe":Ee,"ɵɵdirectiveInject":Qh,"ɵɵgetFactoryOf":Nr,"ɵɵgetInheritedFactory":Lr,"ɵɵinject":Mi,"ɵɵinjectAttribute":Fr,"ɵɵinvalidFactory":Zh,"ɵɵinvalidFactoryDep":Ri,"ɵɵinjectPipeChangeDetectorRef":Ly,"ɵɵtemplateRefExtractor":Ny,"ɵɵNgOnChangesFeature":Mt,"ɵɵProvidersFeature":A_,"ɵɵCopyDefinitionFeature":Vl,"ɵɵInheritDefinitionFeature":Pl,"ɵɵnextContext":gd,"ɵɵnamespaceHTML":Kn,"ɵɵnamespaceMathML":Wn,"ɵɵnamespaceSVG":zn,"ɵɵenableBindings":ln,"ɵɵdisableBindings":hn,"ɵɵelementStart":nd,"ɵɵelementEnd":rd,"ɵɵelement":id,"ɵɵelementContainerStart":sd,"ɵɵelementContainerEnd":od,"ɵɵelementContainer":ad,"ɵɵpureFunction0":Wb,"ɵɵpureFunction1":Kb,"ɵɵpureFunction2":Yb,"ɵɵpureFunction3":Xb,"ɵɵpureFunction4":Qb,"ɵɵpureFunction5":Zb,"ɵɵpureFunction6":Jb,"ɵɵpureFunction7":ey,"ɵɵpureFunction8":ty,"ɵɵpureFunctionV":ny,"ɵɵgetCurrentView":cd,"ɵɵrestoreView":fn,"ɵɵlistener":dd,"ɵɵprojection":vd,"ɵɵsyntheticHostProperty":Kp,"ɵɵsyntheticHostListener":pd,"ɵɵpipeBind1":ly,"ɵɵpipeBind2":hy,"ɵɵpipeBind3":dy,"ɵɵpipeBind4":py,"ɵɵpipeBindV":fy,"ɵɵprojectionDef":yd,"ɵɵhostProperty":Wp,"ɵɵproperty":Jh,"ɵɵpropertyInterpolate":wd,"ɵɵpropertyInterpolate1":Ed,"ɵɵpropertyInterpolate2":Sd,"ɵɵpropertyInterpolate3":Cd,"ɵɵpropertyInterpolate4":Od,"ɵɵpropertyInterpolate5":Id,"ɵɵpropertyInterpolate6":xd,"ɵɵpropertyInterpolate7":Td,"ɵɵpropertyInterpolate8":Ad,"ɵɵpropertyInterpolateV":Dd,"ɵɵpipe":uy,"ɵɵqueryRefresh":Ty,"ɵɵviewQuery":Ay,"ɵɵloadQuery":ky,"ɵɵcontentQuery":Dy,"ɵɵreference":yh,"ɵɵclassMap":Xd,"ɵɵclassMapInterpolate1":vp,"ɵɵclassMapInterpolate2":wp,"ɵɵclassMapInterpolate3":Ep,"ɵɵclassMapInterpolate4":Sp,"ɵɵclassMapInterpolate5":Cp,"ɵɵclassMapInterpolate6":Op,"ɵɵclassMapInterpolate7":Ip,"ɵɵclassMapInterpolate8":xp,"ɵɵclassMapInterpolateV":Tp,"ɵɵstyleMap":Kd,"ɵɵstyleMapInterpolate1":Ap,"ɵɵstyleMapInterpolate2":Dp,"ɵɵstyleMapInterpolate3":kp,"ɵɵstyleMapInterpolate4":Pp,"ɵɵstyleMapInterpolate5":Mp,"ɵɵstyleMapInterpolate6":Rp,"ɵɵstyleMapInterpolate7":Np,"ɵɵstyleMapInterpolate8":Lp,"ɵɵstyleMapInterpolateV":Fp,"ɵɵstyleProp":zd,"ɵɵstylePropInterpolate1":jp,"ɵɵstylePropInterpolate2":Vp,"ɵɵstylePropInterpolate3":Bp,"ɵɵstylePropInterpolate4":Up,"ɵɵstylePropInterpolate5":Gp,"ɵɵstylePropInterpolate6":qp,"ɵɵstylePropInterpolate7":$p,"ɵɵstylePropInterpolate8":Hp,"ɵɵstylePropInterpolateV":zp,"ɵɵclassProp":Wd,"ɵɵadvance":qa,"ɵɵtemplate":gh,"ɵɵtext":up,"ɵɵtextInterpolate":lp,"ɵɵtextInterpolate1":hp,"ɵɵtextInterpolate2":dp,"ɵɵtextInterpolate3":pp,"ɵɵtextInterpolate4":fp,"ɵɵtextInterpolate5":_p,"ɵɵtextInterpolate6":mp,"ɵɵtextInterpolate7":gp,"ɵɵtextInterpolate8":bp,"ɵɵtextInterpolateV":yp,"ɵɵi18n":g_,"ɵɵi18nAttributes":b_,"ɵɵi18nExp":y_,"ɵɵi18nStart":__,"ɵɵi18nEnd":m_,"ɵɵi18nApply":v_,"ɵɵi18nPostprocess":w_,"ɵɵresolveWindow":jo,"ɵɵresolveDocument":Vo,"ɵɵresolveBody":Bo,"ɵɵsetComponentScope":fe,"ɵɵsetNgModuleScope":ye,"ɵɵsanitizeHtml":to,"ɵɵsanitizeStyle":no,"ɵɵsanitizeResourceUrl":io,"ɵɵsanitizeScript":so,"ɵɵsanitizeUrl":ro,"ɵɵsanitizeUrlOrResourceUrl":uo,"ɵɵtrustConstantHtml":oo,"ɵɵtrustConstantResourceUrl":ao,forwardRef:p,resolveForwardRef:f}))();let jy=null;function Vy(){jy=null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const By=[],Uy=[];let Gy=!1;function qy(){if(!Gy){Gy=!0;try{for(let e=Uy.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Uy[e];n.declarations&&n.declarations.every($y)&&(Uy.splice(e,1),ev(t,n))}}finally{Gy=!1}}}function $y(e){return Array.isArray(e)?e.every($y):!!f(e)}function Hy(e,t={}){zy(e,t),function(e,t){Uy.push({moduleType:e,ngModule:t})}(e,t)}function zy(e,t,n=!1){ngDevMode&&x(e,"Required value moduleType"),ngDevMode&&x(t,"Required value ngModule");const r=oi(t.declarations||By);let i=null;Object.defineProperty(e,ce,{configurable:!0,get:()=>{if(null===i){if(ngDevMode&&t.imports&&t.imports.indexOf(e)>-1)throw new Error(`'${Tt(e)}' module can't import itself`);(i=ri().compileNgModule(Fy,`ng:///${e.name}/ɵmod.js`,{type:e,bootstrap:oi(t.bootstrap||By).map(f),declarations:r.map(f),imports:oi(t.imports||By).map(f).map(rv),exports:oi(t.exports||By).map(f).map(rv),schemas:t.schemas?oi(t.schemas):null,id:t.id||null})).schemas||(i.schemas=[])}return i}});let s=null;Object.defineProperty(e,V,{get:()=>{if(null===s){ngDevMode&&Wy(e,n);const r={name:e.name,type:e,deps:Ki(e),providers:t.providers||By,imports:[(t.imports||By).map(f),(t.exports||By).map(f)]};s=ri().compileInjector(Fy,`ng:///${e.name}/ɵinj.js`,r)}return s},configurable:!!ngDevMode})}function Wy(e,t,n){if(Qy.get(e))return;let r;if(Qy.set(e,!0),e=f(e),n){if(!(r=Ie(e)))throw new Error(`Unexpected value '${e.name}' imported by the module '${n.name}'. Please add an @NgModule annotation.`)}else r=Ie(e,!0);const i=[],s=Go(r.declarations),o=Go(r.imports);oi(o).map(Ky).forEach(t=>{h(t,e),Wy(t,!1,e)});const a=Go(r.exports);s.forEach(function(t){Se(t=f(t))||Ce(t)||Oe(t)||i.push(`Unexpected value '${Tt(t)}' declared by the module '${Tt(e)}'. Please add a @Pipe/@Directive/@Component annotation.`)}),s.forEach(function(e){const t=Ce(e=f(e));!Se(e)&&t&&0==t.selectors.length&&i.push(`Directive ${Tt(e)} has no selector, please add it!`)});const c=[...s.map(f),...oi(o.map(Jy)).map(f)];a.forEach(function(t){const n=(Se(t=f(t))?"component":Ce(t)&&"directive")||Oe(t)&&"pipe";n&&-1===c.lastIndexOf(t)&&i.push(`Can't export ${n} ${Tt(t)} from ${Tt(e)} as it was neither declared nor imported!`)}),s.forEach(n=>(function(t,n){t=f(t);const r=Xy.get(t);if(r&&r!==e){if(!n){const n=[r,e].map(Tt).sort();i.push(`Type ${Tt(t)} is part of the declarations of 2 modules: ${n[0]} and ${n[1]}! `+`Please consider moving ${Tt(t)} to a higher module that imports ${n[0]} and ${n[1]}. `+`You can also create a new NgModule that exports and includes ${Tt(t)} then import that NgModule in ${n[0]} and ${n[1]}.`)}}else Xy.set(t,e)})(n,t)),s.forEach(function(e){if(Se(e=f(e))){const t=Yy(e,"Component");t&&t.entryComponents&&ai(t.entryComponents,l)}});const u=Yy(e,"NgModule");if(u&&(u.imports&&oi(u.imports).map(Ky).forEach(t=>{h(t,e),Wy(t,!1,e)}),u.bootstrap&&ai(u.bootstrap,function(e){Se(e=f(e))||i.push(`${Tt(e)} cannot be used as an entry component.`)}),u.bootstrap&&ai(u.bootstrap,l),u.entryComponents&&ai(u.entryComponents,l)),i.length)throw new Error(i.join("\n"));function l(e){e=f(e),Xy.get(e)||i.push(`Component ${Tt(e)} is not part of any NgModule or the module has not been imported into your module.`)}function h(e,t){if(Se(e=f(e))||Ce(e))throw new Error(`Unexpected directive '${e.name}' imported by the module '${t.name}'. Please add an @NgModule annotation.`);if(Oe(e))throw new Error(`Unexpected pipe '${e.name}' imported by the module '${t.name}'. Please add an @NgModule annotation.`)}}function Ky(e){return(e=f(e)).ngModule||e}function Yy(e,t){let n=null;return r(e.__annotations__),r(e.decorators),n;function r(e){e&&e.forEach(i)}function i(e){if(!n){if(Object.getPrototypeOf(e).ngMetadataName==t)n=e;else if(e.type){Object.getPrototypeOf(e.type).ngMetadataName==t&&(n=e.args[0])}}}}let Xy=new Map,Qy=new Map;function Zy(){Xy=new Map,Qy=new Map,Uy.length=0}function Jy(e){return[...oi(Go(Ie(e=f(e),!0).exports).map(e=>{return Ie(e)?(Wy(e,!1),Jy(e)):e}))]}function ev(e,t){const n=oi(t.declarations||By),r=nv(e);n.forEach(t=>{if(t.hasOwnProperty(se)){tv(Se(t),r)}else t.hasOwnProperty(oe)||t.hasOwnProperty(ae)||(t.ngSelectorScope=e)})}function tv(e,t){e.directiveDefs=(()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(se)?Se(e):Ce(e)).filter(e=>!!e)),e.pipeDefs=(()=>Array.from(t.compilation.pipes).map(e=>Oe(e))),e.schemas=t.schemas,e.tView=null}function nv(e){if(!iv(e))throw new Error(`${e.name} does not have a module def (ɵmod property)`);const t=Ie(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Go(t.imports).forEach(e=>{const t=e;if(!iv(t))throw new Error(`Importing ${t.name} which does not have a ɵmod property`);const r=nv(t);r.exported.directives.forEach(e=>n.compilation.directives.add(e)),r.exported.pipes.forEach(e=>n.compilation.pipes.add(e))}),Go(t.declarations).forEach(e=>{Oe(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),Go(t.exports).forEach(e=>{const t=e;if(iv(t)){const e=nv(t);e.exported.directives.forEach(e=>{n.compilation.directives.add(e),n.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else Oe(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function rv(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function iv(e){return!!Ie(e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let sv=0;function ov(e,t){("undefined"==typeof ngDevMode||ngDevMode)&&ne();let n=null;!function(e,t){Ji(t)&&(Qi.set(e,t),Zi.add(e))}(e,t),uv(e,t),Object.defineProperty(e,se,{get:()=>{if(null===n){const r=ri();if(Ji(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=jy;let s=t.preserveWhitespaces;void 0===s&&(s=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let o=t.encapsulation;void 0===o&&(o=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:X.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,c=Object.assign(Object.assign({},hv(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:s,styles:t.styles||ie,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:o,interpolation:t.interpolation,viewProviders:t.viewProviders||null});sv++;try{c.usesInheritance&&dv(e),n=r.compileComponent(Fy,a,c)}finally{sv--}if(0===sv&&qy(),function(e){return void 0!==e.ngSelectorScope}(e)){const t=nv(e.ngSelectorScope);tv(n,t)}}return n},configurable:!!ngDevMode})}function av(e,t){let n=null;uv(e,t||{}),Object.defineProperty(e,oe,{get:()=>{if(null===n){const r=cv(e,t||{});n=ri().compileDirective(Fy,r.sourceMapUrl,r.metadata)}return n},configurable:!!ngDevMode})}function cv(e,t){const n=e&&e.name,r=`ng:///${n}/ɵdir.js`,i=ri(),s=hv(e,t);return s.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),s.usesInheritance&&dv(e),{metadata:s,sourceMapUrl:r}}function uv(e,t){let n=null;Object.defineProperty(e,le,{get:()=>{if(null===n){const r=cv(e,t),i=ri();n=i.compileFactory(Fy,`ng:///${e.name}/ɵfac.js`,Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!!ngDevMode})}function lv(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function hv(e,t){const n=Wi(),r=n.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:Ki(e),host:t.host||re,propMetadata:r,inputs:t.inputs||ie,outputs:t.outputs||ie,queries:fv(e,r,_v),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!lv(e),exportAs:(i=t.exportAs,void 0===i?null:bv(i)),providers:t.providers||null,viewQueries:fv(e,r,mv)};var i}function dv(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)Ce(n)||Se(n)||!vv(n)||av(n,null),n=Object.getPrototypeOf(n)}function pv(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?bv(n):f(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly};var n}function fv(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const s=t[i];s.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of `+`"${Tt(e)}" since the query selector wasn't defined.`);if(s.some(gv))throw new Error("Cannot combine @Input decorators with query decorators");r.push(pv(i,t))}})}return r}function _v(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function mv(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function gv(e){return"Input"===e.ngMetadataName}function bv(e){return e.split(",").map(e=>e.trim())}const yv=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function vv(e){const t=Wi();if(yv.some(n=>t.hasLifecycleHook(e,n)))return!0;const n=t.propMetadata(e);for(const e in n){const t=n[e];for(let e=0;e{if(null===r){const n=Ev(e,t),i=ri();r=i.compileFactory(Fy,`ng:///${n.name}/ɵfac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:i.R3FactoryTarget.Pipe}))}return r},configurable:!!ngDevMode}),Object.defineProperty(e,ae,{get:()=>{if(null===n){const r=Ev(e,t);n=ri().compilePipe(Fy,`ng:///${r.name}/ɵpipe.js`,r)}return n},configurable:!!ngDevMode})}function Ev(e,t){return{type:e,typeArgumentCount:0,name:e.name,deps:Ki(e),pipeName:t.name,pure:void 0===t.pure||t.pure}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Sv=Ur("Directive",(e={})=>e,void 0,void 0,(e,t)=>Rv(e,t)),Cv=Ur("Component",(e={})=>Object.assign({changeDetection:K.Default},e),Sv,void 0,(e,t)=>Mv(e,t)),Ov=Ur("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Nv(e,t)),Iv=$r("Input",e=>({bindingPropertyName:e})),xv=$r("Output",e=>({bindingPropertyName:e})),Tv=$r("HostBinding",e=>({hostPropertyName:e})),Av=$r("HostListener",(e,t)=>({eventName:e,args:t})),Dv=ov,kv=av,Pv=wv,Mv=F_,Rv=F_,Nv=F_,Lv=Ur("NgModule",e=>e,void 0,void 0,(e,t)=>jv(e,t));const Fv=Hy,jv=function(e,t){let n=t&&t.imports||[];t&&t.exports&&(n=[...n,t.exports]),e.ɵinj=R({factory:xh(e,{useClass:e}),providers:t&&t.providers,imports:n})},Vv=new Wr("Application Initializer");class Bv{constructor(e){this.appInits=e,this.resolve=F_,this.reject=F_,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 t=0;t{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}Bv.decorators=[{type:Th}],Bv.ctorParameters=(()=>[{type:Array,decorators:[{type:Ui,args:[Vv]},{type:Gi}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Uv=new Wr("AppId");function Gv(){return`${$v()}${$v()}${$v()}`}const qv={provide:Uv,useFactory:Gv,deps:[]};function $v(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Hv=new Wr("Platform Initializer"),zv=new Wr("Platform ID"),Wv=new Wr("appBootstrapListener"),Kv=new Wr("Application Packages Root URL"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Yv{log(e){console.log(e)}warn(e){console.warn(e)}}Yv.decorators=[{type:Th}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Xv=new Wr("LocaleId"),Qv=new Wr("DefaultCurrencyCode"),Zv=new Wr("Translations"),Jv=new Wr("TranslationsFormat");var ew;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(ew||(ew={})); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const tw=!0,nw=!1; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class rw{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}function iw(){throw new Error("Runtime compiler is not loaded")}const sw=function(e){return new zb(e)},ow=iw,aw=function(e){return Promise.resolve(sw(e))},cw=iw,uw=function(e){const t=sw(e),n=Go(Ie(e).declarations).reduce((e,t)=>{const n=Se(t);return n&&e.push(new Fb(n)),e},[]);return new rw(t,n)},lw=iw,hw=function(e){return Promise.resolve(uw(e))},dw=iw;class pw{constructor(){this.compileModuleSync=ow,this.compileModuleAsync=cw,this.compileModuleAndAllComponentsSync=lw,this.compileModuleAndAllComponentsAsync=dw}clearCache(){}clearCacheFor(e){}getModuleId(e){}}pw.decorators=[{type:Th}];const fw=new Wr("compilerOptions");class _w{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const mw=(()=>Promise.resolve(0))();function gw(e){"undefined"==typeof Zone?mw.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class bw{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new gy(!1),this.onMicrotaskEmpty=new gy(!1),this.onStable=new gy(!1),this.onError=new gy(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=te.requestAnimationFrame,t=te.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){if(-1!==e.lastRequestAnimationFrameId)return;e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ww(e),vw(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ww(e)}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,o,a)=>{try{return Ew(e),n.invokeTask(i,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Sw(e)}},onInvoke:(n,r,i,s,o,a,c)=>{try{return Ew(e),n.invoke(i,s,o,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Sw(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,ww(e),vw(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bw.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(bw.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,yw,F_,F_);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)}}const yw={};function vw(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 ww(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ew(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sw(e){e._nesting--,vw(e)}class Cw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new gy,this.onMicrotaskEmpty=new gy,this.onStable=new gy,this.onError=new gy}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Ow{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:()=>{bw.assertNotInAngularZone(),gw(()=>{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())gw(()=>{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[]}}Ow.decorators=[{type:Th}],Ow.ctorParameters=(()=>[{type:bw}]);class Iw{constructor(){this._applications=new Map,Aw.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 Aw.findTestabilityInTree(this,e,t)}}Iw.decorators=[{type:Th}],Iw.ctorParameters=(()=>[]);function xw(e){Aw=e}let Tw,Aw=new class{addToWindow(e){}findTestabilityInTree(e,t,n){return null}},Dw=!0,kw=!1; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Pw(){return kw=!0,Dw}function Mw(){if(kw)throw new Error("Cannot enable prod mode after platform setup.");(void 0===typeof ngDevMode||ngDevMode)&&(te.ngDevMode=!1),Dw=!1} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let Rw=function(e,t,n){return e.get(_w).createCompiler([t]).compileModuleAsync(n)};function Nw(e,t,n){ngDevMode&&function(e,t="Type passed in is not NgModuleType, it does not have 'ɵmod' property."){Ie(e)||T(t)}(n);const r=new zb(n);if("undefined"!=typeof ngJitMode&&!ngJitMode)return Promise.resolve(r);const i=e.get(fw,[]).concat(t);if(function(e){if(null!==jy){if(e.defaultEncapsulation!==jy.defaultEncapsulation)return void(ngDevMode&&console.error("Provided value for `defaultEncapsulation` can not be changed once it has been set."));if(e.preserveWhitespaces!==jy.preserveWhitespaces)return void(ngDevMode&&console.error("Provided value for `preserveWhitespaces` can not be changed once it has been set."))}jy=e}({defaultEncapsulation:Xw(i.map(e=>e.defaultEncapsulation)),preserveWhitespaces:Xw(i.map(e=>e.preserveWhitespaces))}),0===Qi.size)return Promise.resolve(r);const s=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(i.map(e=>e.providers));if(0===s.length)return Promise.resolve(r);const o=ri(),a=Qu.create({providers:s}).get(o.ResourceLoader);return Xi(e=>Promise.resolve(a.get(e))).then(()=>r)}let Lw=function(){},Fw=function(e){return e instanceof L_};function jw(e){return e.isBoundToModule}const Vw=new Wr("AllowMultipleToken");class Bw{constructor(e,t){this.name=e,this.token=t}}function Uw(e){if(Tw&&!Tw.destroyed&&!Tw.injector.get(Vw,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Lw(),Tw=e.get(zw);const t=e.get(Hv,null);return t&&t.forEach(e=>e()),Tw}function Gw(e,t,n=[]){const r=`Platform: ${t}`,i=new Wr(r);return(t=[])=>{let s=Hw();if(!s||s.injector.get(Vw,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:Nu,useValue:"platform"});Uw(Qu.create({providers:e,name:r}))}return qw(i)}}function qw(e){const t=Hw();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}function $w(){Tw&&!Tw.destroyed&&Tw.destroy()}function Hw(){return Tw&&!Tw.destroyed?Tw:null}class zw{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;n="noop"===e?new Cw:("zone.js"===e?void 0:e)||new bw({enableLongStackTrace:Pw(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)});return n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:bw,useValue:n}];return n.run(()=>{const t=Qu.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(bo,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{s.handleError(e)}});i.onDestroy(()=>{Yw(this._modules,i),e.unsubscribe()})}),function(e,t,n){try{const r=n();return ud(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(s,n,()=>{const e=i.injector.get(Bv);return e.runInitializers(),e.donePromise.then(()=>{if(nw){pf(i.injector.get(Xv,af)||af)}return this._moduleDoBootstrap(i),i})})})}bootstrapModule(e,t=[]){const n=Ww({},t);return Rw(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Kw);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${l(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 Ww(e,t){return e=Array.isArray(t)?t.reduce(Ww,e):Object.assign(Object.assign({},e),t)}zw.decorators=[{type:Th}],zw.ctorParameters=(()=>[{type:Qu}]);class Kw{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._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{bw.assertNotInAngularZone(),gw(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{bw.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,l.pipe(Object(a.a)()))}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 k_?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Fw(n)?void 0:this._injector.get(Am),i=t||n.selector,s=n.create(Qu.NULL,[],i,r),o=s.location.nativeElement,a=s.injector.get(Ow,null),c=a&&s.injector.get(Iw);return a&&c&&c.registerApplication(o,a),s.onDestroy(()=>{this.detachView(s.hostView),Yw(this.components,s),c&&c.unregisterApplication(o)}),this._loadComponent(s),Pw()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(("undefined"==typeof ngDevMode||ngDevMode)&&Pw())for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Yw(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Wv,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}function Yw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Xw(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}Kw.decorators=[{type:Th}],Kw.ctorParameters=(()=>[{type:bw},{type:Yv},{type:Qu},{type:bo},{type:R_},{type:Bv}]);class Qw{}function Zw(e){const t=$b(e);if(!t)throw tE(e);return t}function Jw(e){const t=$b(e);if(!t)throw tE(e);return new zb(t)}const eE=Zw;function tE(e){return new Error(`No module with ID ${e} loaded`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const nE="#",rE="NgFactory";class iE{}const sE={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class oE{constructor(e,t){this._compiler=e,this._config=t||sE}load(e){return!nw&&this._compiler instanceof pw?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split(nE);return void 0===r&&(r="default"),n(155)(t).then(e=>e[r]).then(e=>aE(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split(nE),i=rE;return void 0===r&&(r="default",i=""),n(155)(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>aE(e,t,r))}}function aE(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */oE.decorators=[{type:Th}],oE.ctorParameters=(()=>[{type:pw},{type:iE,decorators:[{type:Gi}]}]);class cE extends mm{}class uE extends cE{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class lE{constructor(e,t){this.name=e,this.callback=t}}class hE{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof dE&&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 dE extends hE{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 dE&&(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 dE&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof dE&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof dE)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function pE(e){return e.map(e=>e.nativeElement)}class fE{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new _E(e):null}get injector(){return dl(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(cl(e)||ll(e))}get context(){return cl(this.nativeNode)||ul(this.nativeNode)}get listeners(){return gl(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return _l(this.nativeNode)}get providerTokens(){return function(e){const t=fl(e,!1);if(null===t)return[];const n=t.lView[Te],r=n.data[t.nodeIndex],i=[],s=1048575&r.providerIndexes,o=r.directiveEnd;for(let e=s;e1){let t=a[1];for(let e=1;ee[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n{if(i.name===e){const e=i.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}})}}function mE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function gE(e,t,n,r){const i=fl(e.nativeNode,!1);if(null!==i){bE(i.lView[Te].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode)}else wE(e.nativeNode,t,n,r)}function bE(e,t,n,r,i,s){ngDevMode&&at(e,t);const o=function(e,t){const n=null===e?-1:e.index;if(-1!==n){ngDevMode&&at(e,t);const r=Kt(t[n]);return ngDevMode&&null!==r&&!zt(t[je])&&A(r),r}return null}(e,t);if(11&e.type){if(vE(o,n,r,i,s),it(e)){const o=Jt(e.index,t);o&&o[Te].firstChild&&bE(o[Te].firstChild,o,n,r,i,s)}else e.child&&bE(e.child,t,n,r,i,s),o&&wE(o,n,r,i);const a=t[e.index];nt(a)&&yE(a,n,r,i,s)}else if(4&e.type){const o=t[e.index];vE(o[Qe],n,r,i,s),yE(o,n,r,i,s)}else if(16&e.type){const o=t[qe],a=o[Me].projection[e.projection];if(Array.isArray(a))for(let e of a)vE(e,n,r,i,s);else if(a){const e=o[De];bE(e[Te].data[a.index],e,n,r,i,s)}}else e.child&&bE(e.child,t,n,r,i,s);if(s!==o){const o=4&e.flags?e.projectionNext:e.next;o&&bE(o,t,n,r,i,s)}}function yE(e,t,n,r,i){for(let s=et;s{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class VE{constructor(e){}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function BE(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:c}=bg(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:c,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Eg(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Zm},provider:null,text:null,query:null,ngContent:null}}function UE(e,t,n,r,i,s,o=[],a,c,u,l,h){u||(u=Zm);const{matchedQueries:d,references:p,matchedQueryIds:f}=bg(n);let _=null,m=null;s&&([_,m]=Ag(s)),a=a||[];const g=[];for(let e=0;e{const[n,r]=Ag(e);return[n,r,t]});return h=function(e){if(e&&e.id===ng){const t=null!=e.encapsulation&&e.encapsulation!==X.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${sg++}`:rg}return e&&e.id===rg&&(e=null),e||null}(h),l&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:i,bindings:g,bindingFlags:Dg(g),outputs:b,element:{ns:_,name:m,attrs:y,template:null,componentProvider:null,componentView:l||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Zm},provider:null,text:null,query:null,ngContent:null}}function GE(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=vg(e,t,n);i&&s.appendChild(i,o)}else{const e=!!r.componentRendererType&&r.componentRendererType.encapsulation===X.ShadowDom;o=s.selectRootElement(i,e)}if(r.attrs)for(let e=0;ehg(e,t,n,r)}function HE(e,t,n,r){if(!ag(e,t,n,r))return!1;const i=t.bindings[n],s=zm(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 c=e.renderer;null!=s?c.setAttribute(n,i,a,r):c.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(eo.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)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}function zE(e,t,n){let r=[];for(let e in n){const t=n[e];r.push({propName:e,bindingType:t})}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:gg(t),bindings:r},ngContent:null}}function WE(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&mg(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&&Ym(e,i).setDirty(),!(1&r.flags&&i+r.childCount0)u=n,aS(n)||(l=n);else for(;u&&e===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),l=(u=e)&&aS(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:c,flags:e,nodes:t,updateDirectives:n||Zm,updateRenderer:r||Zm,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:p}}function aS(e){return 0!=(1&e.flags)&&null===e.element.name}function cS(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){if(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 uS(e,t,n,r){const i=dS(e.root,e.renderer,e,t,n);return pS(i,e.component,r),fS(i),i}function lS(e,t,n){const r=dS(e,e.renderer,null,null,t);return pS(r,n,n),fS(r),r}function hS(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,dS(e.root,s,e,t.element.componentProvider,n)}function dS(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 pS(e,t,n){e.component=t,e.context=n}function fS(e){let t;if(_g(e)){const n=e.parentNodeDef;t=zm(e.parent,n.parent.nodeIndex).renderElement}const n=e.def,r=e.nodes;for(let s=0;s0&&HE(e,t,0,n)&&(p=!0),d>1&&HE(e,t,1,r)&&(p=!0),d>2&&HE(e,t,2,i)&&(p=!0),d>3&&HE(e,t,3,s)&&(p=!0),d>4&&HE(e,t,4,o)&&(p=!0),d>5&&HE(e,t,5,a)&&(p=!0),d>6&&HE(e,t,6,c)&&(p=!0),d>7&&HE(e,t,7,u)&&(p=!0),d>8&&HE(e,t,8,l)&&(p=!0),d>9&&HE(e,t,9,h)&&(p=!0),p}(e,t,n,r,i,s,o,a,c,u,l,h);case 2:return function(e,t,n,r,i,s,o,a,c,u,l,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&ag(e,t,0,n)&&(d=!0),f>1&&ag(e,t,1,r)&&(d=!0),f>2&&ag(e,t,2,i)&&(d=!0),f>3&&ag(e,t,3,s)&&(d=!0),f>4&&ag(e,t,4,o)&&(d=!0),f>5&&ag(e,t,5,a)&&(d=!0),f>6&&ag(e,t,6,c)&&(d=!0),f>7&&ag(e,t,7,u)&&(d=!0),f>8&&ag(e,t,8,l)&&(d=!0),f>9&&ag(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=sS(n,p[0])),f>1&&(d+=sS(r,p[1])),f>2&&(d+=sS(i,p[2])),f>3&&(d+=sS(s,p[3])),f>4&&(d+=sS(o,p[4])),f>5&&(d+=sS(a,p[5])),f>6&&(d+=sS(c,p[6])),f>7&&(d+=sS(u,p[7])),f>8&&(d+=sS(l,p[8])),f>9&&(d+=sS(h,p[9]));const _=Hm(e,t.nodeIndex).renderText;e.renderer.setValue(_,d)}return d}(e,t,n,r,i,s,o,a,c,u,l,h);case 16384:return function(e,t,n,r,i,s,o,a,c,u,l,h){const d=Wm(e,t.nodeIndex),p=d.instance;let f=!1,_=void 0;const m=t.bindings.length;return m>0&&og(e,t,0,n)&&(f=!0,_=Db(e,d,t,0,n,_)),m>1&&og(e,t,1,r)&&(f=!0,_=Db(e,d,t,1,r,_)),m>2&&og(e,t,2,i)&&(f=!0,_=Db(e,d,t,2,i,_)),m>3&&og(e,t,3,s)&&(f=!0,_=Db(e,d,t,3,s,_)),m>4&&og(e,t,4,o)&&(f=!0,_=Db(e,d,t,4,o,_)),m>5&&og(e,t,5,a)&&(f=!0,_=Db(e,d,t,5,a,_)),m>6&&og(e,t,6,c)&&(f=!0,_=Db(e,d,t,6,c,_)),m>7&&og(e,t,7,u)&&(f=!0,_=Db(e,d,t,7,u,_)),m>8&&og(e,t,8,l)&&(f=!0,_=Db(e,d,t,8,l,_)),m>9&&og(e,t,9,h)&&(f=!0,_=Db(e,d,t,9,h,_)),_&&p.ngOnChanges(_),65536&t.flags&&$m(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,i,s,o,a,c,u,l,h);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,c,u,l,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&ag(e,t,0,n)&&(p=!0),f>1&&ag(e,t,1,r)&&(p=!0),f>2&&ag(e,t,2,i)&&(p=!0),f>3&&ag(e,t,3,s)&&(p=!0),f>4&&ag(e,t,4,o)&&(p=!0),f>5&&ag(e,t,5,a)&&(p=!0),f>6&&ag(e,t,6,c)&&(p=!0),f>7&&ag(e,t,7,u)&&(p=!0),f>8&&ag(e,t,8,l)&&(p=!0),f>9&&ag(e,t,9,h)&&(p=!0),p){const p=Km(e,t.nodeIndex);let _;switch(201347067&t.flags){case 32:_=[],f>0&&_.push(n),f>1&&_.push(r),f>2&&_.push(i),f>3&&_.push(s),f>4&&_.push(o),f>5&&_.push(a),f>6&&_.push(c),f>7&&_.push(u),f>8&&_.push(l),f>9&&_.push(h);break;case 64:_={},f>0&&(_[d[0].name]=n),f>1&&(_[d[1].name]=r),f>2&&(_[d[2].name]=i),f>3&&(_[d[3].name]=s),f>4&&(_[d[4].name]=o),f>5&&(_[d[5].name]=a),f>6&&(_[d[6].name]=c),f>7&&(_[d[7].name]=u),f>8&&(_[d[8].name]=l),f>9&&(_[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:_=e.transform(n);break;case 2:_=e.transform(r);break;case 3:_=e.transform(r,i);break;case 4:_=e.transform(r,i,s);break;case 5:_=e.transform(r,i,s,o);break;case 6:_=e.transform(r,i,s,o,a);break;case 7:_=e.transform(r,i,s,o,a,c);break;case 8:_=e.transform(r,i,s,o,a,c,u);break;case 9:_=e.transform(r,i,s,o,a,c,u,l);break;case 10:_=e.transform(r,i,s,o,a,c,u,l,h)}}p.value=_}return p}(e,t,n,r,i,s,o,a,c,u,l,h);default:throw"unreachable"}}(e,t,r,i,s,o,a,c,u,l,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i0&&cg(e,t,0,n);d>1&&cg(e,t,1,r);d>2&&cg(e,t,2,i);d>3&&cg(e,t,3,s);d>4&&cg(e,t,4,o);d>5&&cg(e,t,5,a);d>6&&cg(e,t,6,c);d>7&&cg(e,t,7,u);d>8&&cg(e,t,8,l);d>9&&cg(e,t,9,h)}(e,t,r,i,s,o,a,c,u,l,h,d):function(e,t,n){for(let r=0;r[{type:Kw}]),function(e){e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy"}(ES||(ES={}));let TS=!1;function AS(){if(TS)return;TS=!0;const e=Pw()?{setCurrentNode:ZS,createRootView:kS,createEmbeddedView:MS,createComponentView:RS,createNgModuleRef:NS,overrideProvider:VS,overrideComponentView:BS,clearOverrides:US,checkAndUpdateView:HS,checkNoChangesView:zS,destroyView:WS,createDebugContext:(e,t)=>new oC(e,t),handleEvent:JS,updateDirectives:eC,updateRenderer:tC}:{setCurrentNode:()=>{},createRootView:DS,createEmbeddedView:uS,createComponentView:hS,createNgModuleRef:cb,overrideProvider:Zm,overrideComponentView:Zm,clearOverrides:Zm,checkAndUpdateView:mS,checkNoChangesView:_S,destroyView:wS,createDebugContext:(e,t)=>new oC(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?qS:$S,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?qS:$S,e)};Qm.setCurrentNode=e.setCurrentNode,Qm.createRootView=e.createRootView,Qm.createEmbeddedView=e.createEmbeddedView,Qm.createComponentView=e.createComponentView,Qm.createNgModuleRef=e.createNgModuleRef,Qm.overrideProvider=e.overrideProvider,Qm.overrideComponentView=e.overrideComponentView,Qm.clearOverrides=e.clearOverrides,Qm.checkAndUpdateView=e.checkAndUpdateView,Qm.checkNoChangesView=e.checkNoChangesView,Qm.destroyView=e.destroyView,Qm.resolveDep=Tb,Qm.createDebugContext=e.createDebugContext,Qm.handleEvent=e.handleEvent,Qm.updateDirectives=e.updateDirectives,Qm.updateRenderer=e.updateRenderer,Qm.dirtyParentQueries=WE}function DS(e,t,n,r,i,s){const o=i.injector.get($_);return lS(PS(e,i,o,t,n),r,s)}function kS(e,t,n,r,i,s){const o=i.injector.get($_),a=PS(e,i,new lC(o),t,n),c=GS(r);return cC(KS.create,lS,null,[a,c,s])}function PS(e,t,n,r,i){const s=t.injector.get(Y_),o=t.injector.get(bo),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function MS(e,t,n,r){const i=GS(n);return cC(KS.create,uS,null,[e,t,i,r])}function RS(e,t,n,r){const i=jS.get(t.element.componentProvider.provider.token);return n=i||GS(n),cC(KS.create,hS,null,[e,t,n,r])}function NS(e,t,n,r){return cb(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;if(0===LS.size)return{hasOverrides:t,hasDeprecatedOverrides:n};return e.providers.forEach(e=>{const r=LS.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{FS.forEach((r,i)=>{N(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);if(!t)return e;return function(e){for(let t=0;t0){let t=new Set(e.modules);FS.forEach((r,i)=>{if(t.has(N(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:yg(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[eg(i)]=t}})}}(e=e.factory(()=>Zm)),e}(r))}const LS=new Map,FS=new Map,jS=new Map;function VS(e){let t;LS.set(e.token,e),"function"==typeof e.token&&(t=N(e.token))&&"function"==typeof t.providedIn&&FS.set(e.token,e)}function BS(e,t){const n=Eg(Xg(t)),r=Eg(n.nodes[0].element.componentView);jS.set(e,r)}function US(){LS.clear(),FS.clear(),jS.clear()}function GS(e){if(0===LS.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rZm);for(let r=0;r++s===i?e.error.bind(e,...t):Zm),s=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 a(e,t){return function(n,r){t(n,r,e)}}Object.create;function c(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}Object.create}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/@angular/compiler/fesm2015/compiler.js ***! \************************************************************************/ /*! exports provided: AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, AotCompiler, AotSummaryResolver, ArrayType, AssertNotNull, AstMemoryEfficientTransformer, AstPath, AstTransformer, AttrAst, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BoundDirectivePropertyAst, BoundElementProperty, BoundElementPropertyAst, BoundEventAst, BoundTextAst, BuiltinMethod, BuiltinType, BuiltinTypeName, BuiltinVar, CONTENT_ATTR, CUSTOM_ELEMENTS_SCHEMA, CastExpr, Chain, ClassField, ClassMethod, ClassStmt, CommaExpr, Comment, CompileDirectiveMetadata, CompileMetadataResolver, CompileNgModuleMetadata, CompilePipeMetadata, CompileReflector, CompileShallowModuleMetadata, CompileStylesheetMetadata, CompileSummaryKind, CompileTemplateMetadata, CompiledStylesheet, CompilerConfig, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DirectiveAst, DirectiveNormalizer, DirectiveResolver, DomElementSchemaRegistry, EOF, ERROR_COMPONENT_TYPE, Element, ElementAst, ElementSchemaRegistry, EmbeddedTemplateAst, EmitterVisitorContext, EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, Extractor, FunctionCall, FunctionExpr, GeneratedFile, HOST_ATTR, HtmlParser, HtmlTagDefinition, I18NHtmlParser, Identifiers, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation, InterpolationConfig, InvokeFunctionExpr, InvokeMethodExpr, IvyParser, JSDocComment, JitCompiler, JitEvaluator, JitSummaryResolver, KeyedRead, KeyedWrite, LeadingComment, Lexer, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralPrimitive, LocalizedString, MapType, MessageBundle, MethodCall, NAMED_ENTITIES, NGSP_UNICODE, NONE_TYPE, NO_ERRORS_SCHEMA, NgContentAst, NgModuleCompiler, NgModuleResolver, NodeWithI18n, NonNullAssert, NotExpr, NullTemplateVisitor, ParseError, ParseErrorLevel, ParseLocation, ParseSourceFile, ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, ParserError, PipeResolver, PrefixNot, PropertyRead, PropertyWrite, ProviderAst, ProviderAstType, ProviderMeta, Quote, R3BoundTarget, R3FactoryTarget, R3Identifiers, R3ResolvedDependencyType, R3TargetBinder, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveTemplateAstVisitor, RecursiveVisitor, ReferenceAst, ResolvedStaticSymbol, ResourceLoader, ReturnStatement, STRING_TYPE, SafeMethodCall, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StaticReflector, StaticSymbol, StaticSymbolCache, StaticSymbolResolver, StmtModifier, StyleCompiler, StylesCompileDependency, SummaryResolver, TagContentType, TaggedTemplateExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, TemplateParseError, TemplateParseResult, TemplateParser, Text, TextAst, ThisReceiver, ThrowStmt, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, TmplAstContent, TmplAstElement, TmplAstIcu, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstText, TmplAstTextAttribute, TmplAstVariable, Token, TokenType, TransitiveCompileNgModuleMetadata, TreeError, TryCatchStmt, Type, TypeScriptEmitter, TypeofExpr, Unary, UnaryOperator, UnaryOperatorExpr, UrlResolver, VERSION, VariableAst, VariableBinding, Version, ViewCompiler, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, _ParseAST, analyzeAndValidateNgModules, analyzeFile, analyzeFileForInjectables, analyzeNgModules, collectExternalReferences, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, compileFactoryFunction, compileInjectable, compileInjector, compileNgModule, compilePipeFromMetadata, componentFactoryName, computeMsgId, core, createAotCompiler, createAotUrlResolver, createElementCssSelector, createLoweredSymbol, createOfflineCompileUrlResolver, createUrlResolverWithoutPackagePrefix, debugOutputAstAsTypeScript, devOnlyGuardedExpression, findNode, flatten, formattedError, getHtmlTagDefinition, getNsPrefix, getParseErrors, getSafePropertyAccessString, getUrlScheme, hostViewClassName, identifierModuleUrl, identifierName, isEmptyExpression, isFormattedError, isIdentifier, isLoweredSymbol, isNgContainer, isNgContent, isNgTemplate, isQuote, isSyntaxError, jsDocComment, leadingComment, literalMap, makeBindingParser, mergeAnalyzedFiles, mergeNsAndName, ngModuleJitUrl, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, removeSummaryDuplicates, rendererTypeName, sanitizeIdentifier, sharedStylesheetJitUrl, splitClasses, splitNsName, syntaxError, templateJitUrl, templateSourceUrl, templateVisitAll, toTypeScript, tokenName, tokenReference, typeSourceSpan, unescapeIdentifier, unwrapResolvedMetadata, verifyHostBindings, viewClassName, visitAll */ /*! all exports used */ /*! ModuleConcatenation bailout: Module uses injected variables (global) */function(e,t,n){"use strict";n.r(t),function(e){ /** * @license Angular v11.2.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var r;function i(e){if(":"!=e[0])return[null,e];const t=e.indexOf(":",1);if(-1==t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function s(e){return"ng-container"===i(e)[1]}function o(e){return"ng-content"===i(e)[1]}function a(e){return"ng-template"===i(e)[1]}function c(e){return null===e?null:i(e)[0]}function u(e,t){return e?`:${e}:${t}`:t}n.d(t,"AST",function(){return Ia}),n.d(t,"ASTWithName",function(){return xa}),n.d(t,"ASTWithSource",function(){return Za}),n.d(t,"AbsoluteSourceSpan",function(){return Qa}),n.d(t,"AotCompiler",function(){return dg}),n.d(t,"AotSummaryResolver",function(){return Jg}),n.d(t,"ArrayType",function(){return re}),n.d(t,"AssertNotNull",function(){return He}),n.d(t,"AstMemoryEfficientTransformer",function(){return rc}),n.d(t,"AstPath",function(){return iu}),n.d(t,"AstTransformer",function(){return nc}),n.d(t,"AttrAst",function(){return tl}),n.d(t,"Attribute",function(){return uu}),n.d(t,"Binary",function(){return $a}),n.d(t,"BinaryOperator",function(){return de}),n.d(t,"BinaryOperatorExpr",function(){return Xe}),n.d(t,"BindingPipe",function(){return Va}),n.d(t,"BoundDirectivePropertyAst",function(){return ul}),n.d(t,"BoundElementProperty",function(){return ac}),n.d(t,"BoundElementPropertyAst",function(){return rl}),n.d(t,"BoundEventAst",function(){return il}),n.d(t,"BoundTextAst",function(){return el}),n.d(t,"BuiltinMethod",function(){return fe}),n.d(t,"BuiltinType",function(){return te}),n.d(t,"BuiltinTypeName",function(){return Z}),n.d(t,"BuiltinVar",function(){return pe}),n.d(t,"CONTENT_ATTR",function(){return Jc}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return V}),n.d(t,"CastExpr",function(){return ze}),n.d(t,"Chain",function(){return Pa}),n.d(t,"ClassField",function(){return ft}),n.d(t,"ClassMethod",function(){return _t}),n.d(t,"ClassStmt",function(){return gt}),n.d(t,"CommaExpr",function(){return nt}),n.d(t,"Comment",function(){return hu}),n.d(t,"CompileDirectiveMetadata",function(){return zn}),n.d(t,"CompileMetadataResolver",function(){return am}),n.d(t,"CompileNgModuleMetadata",function(){return Yn}),n.d(t,"CompilePipeMetadata",function(){return Wn}),n.d(t,"CompileReflector",function(){return _b}),n.d(t,"CompileShallowModuleMetadata",function(){return Kn}),n.d(t,"CompileStylesheetMetadata",function(){return $n}),n.d(t,"CompileSummaryKind",function(){return Un}),n.d(t,"CompileTemplateMetadata",function(){return Hn}),n.d(t,"CompiledStylesheet",function(){return tu}),n.d(t,"CompilerConfig",function(){return kf}),n.d(t,"Conditional",function(){return Ma}),n.d(t,"ConditionalExpr",function(){return qe}),n.d(t,"ConstantPool",function(){return wn}),n.d(t,"CssSelector",function(){return g}),n.d(t,"DEFAULT_INTERPOLATION_CONFIG",function(){return qs}),n.d(t,"DYNAMIC_TYPE",function(){return se}),n.d(t,"DeclareFunctionStmt",function(){return lt}),n.d(t,"DeclareVarStmt",function(){return ut}),n.d(t,"DirectiveAst",function(){return ll}),n.d(t,"DirectiveNormalizer",function(){return Mf}),n.d(t,"DirectiveResolver",function(){return Lf}),n.d(t,"DomElementSchemaRegistry",function(){return fd}),n.d(t,"EOF",function(){return Uh}),n.d(t,"ERROR_COMPONENT_TYPE",function(){return om}),n.d(t,"Element",function(){return lu}),n.d(t,"ElementAst",function(){return al}),n.d(t,"ElementSchemaRegistry",function(){return od}),n.d(t,"EmbeddedTemplateAst",function(){return cl}),n.d(t,"EmitterVisitorContext",function(){return yr}),n.d(t,"EmptyExpr",function(){return Aa}),n.d(t,"Expansion",function(){return au}),n.d(t,"ExpansionCase",function(){return cu}),n.d(t,"Expression",function(){return be}),n.d(t,"ExpressionBinding",function(){return ec}),n.d(t,"ExpressionStatement",function(){return ht}),n.d(t,"ExpressionType",function(){return ne}),n.d(t,"ExternalExpr",function(){return Ue}),n.d(t,"ExternalReference",function(){return Ge}),n.d(t,"Extractor",function(){return Cb}),n.d(t,"FunctionCall",function(){return Xa}),n.d(t,"FunctionExpr",function(){return Ke}),n.d(t,"GeneratedFile",function(){return Xm}),n.d(t,"HOST_ATTR",function(){return Zc}),n.d(t,"HtmlParser",function(){return Vu}),n.d(t,"HtmlTagDefinition",function(){return d}),n.d(t,"I18NHtmlParser",function(){return F_}),n.d(t,"Identifiers",function(){return xn}),n.d(t,"IfStmt",function(){return bt}),n.d(t,"ImplicitReceiver",function(){return Da}),n.d(t,"InstantiateExpr",function(){return Te}),n.d(t,"Interpolation",function(){return qa}),n.d(t,"InterpolationConfig",function(){return Gs}),n.d(t,"InvokeFunctionExpr",function(){return Ie}),n.d(t,"InvokeMethodExpr",function(){return Oe}),n.d(t,"IvyParser",function(){return Zh}),n.d(t,"JSDocComment",function(){return at}),n.d(t,"JitCompiler",function(){return hb}),n.d(t,"JitEvaluator",function(){return Ys}),n.d(t,"JitSummaryResolver",function(){return rb}),n.d(t,"KeyedRead",function(){return Fa}),n.d(t,"KeyedWrite",function(){return ja}),n.d(t,"LeadingComment",function(){return ot}),n.d(t,"Lexer",function(){return Fh}),n.d(t,"LiteralArray",function(){return Ua}),n.d(t,"LiteralArrayExpr",function(){return Je}),n.d(t,"LiteralExpr",function(){return Ae}),n.d(t,"LiteralMap",function(){return Ga}),n.d(t,"LiteralMapExpr",function(){return tt}),n.d(t,"LiteralPrimitive",function(){return Ba}),n.d(t,"LocalizedString",function(){return Ne}),n.d(t,"MapType",function(){return ie}),n.d(t,"MessageBundle",function(){return Km}),n.d(t,"MethodCall",function(){return Ka}),n.d(t,"NAMED_ENTITIES",function(){return l}),n.d(t,"NGSP_UNICODE",function(){return h}),n.d(t,"NONE_TYPE",function(){return le}),n.d(t,"NO_ERRORS_SCHEMA",function(){return B}),n.d(t,"NgContentAst",function(){return pl}),n.d(t,"NgModuleCompiler",function(){return vm}),n.d(t,"NgModuleResolver",function(){return wm}),n.d(t,"NodeWithI18n",function(){return su}),n.d(t,"NonNullAssert",function(){return Wa}),n.d(t,"NotExpr",function(){return $e}),n.d(t,"NullTemplateVisitor",function(){return fl}),n.d(t,"ParseError",function(){return fa}),n.d(t,"ParseErrorLevel",function(){return la}),n.d(t,"ParseLocation",function(){return aa}),n.d(t,"ParseSourceFile",function(){return ca}),n.d(t,"ParseSourceSpan",function(){return ua}),n.d(t,"ParseSpan",function(){return Oa}),n.d(t,"ParseTreeResult",function(){return Nu}),n.d(t,"ParsedEvent",function(){return sc}),n.d(t,"ParsedProperty",function(){return ic}),n.d(t,"ParsedPropertyType",function(){return ha}),n.d(t,"ParsedVariable",function(){return oc}),n.d(t,"Parser",function(){return Qh}),n.d(t,"ParserError",function(){return Ca}),n.d(t,"PipeResolver",function(){return Om}),n.d(t,"PrefixNot",function(){return za}),n.d(t,"PropertyRead",function(){return Ra}),n.d(t,"PropertyWrite",function(){return Na}),n.d(t,"ProviderAst",function(){return hl}),n.d(t,"ProviderAstType",function(){return dl}),n.d(t,"ProviderMeta",function(){return Zn}),n.d(t,"Quote",function(){return Ta}),n.d(t,"R3BoundTarget",function(){return Ab}),n.d(t,"R3FactoryTarget",function(){return ks}),n.d(t,"R3Identifiers",function(){return or}),n.d(t,"R3ResolvedDependencyType",function(){return Ps}),n.d(t,"R3TargetBinder",function(){return Ob}),n.d(t,"ReadKeyExpr",function(){return Ze}),n.d(t,"ReadPropExpr",function(){return Qe}),n.d(t,"ReadVarExpr",function(){return ye}),n.d(t,"RecursiveAstVisitor",function(){return tc}),n.d(t,"RecursiveTemplateAstVisitor",function(){return _l}),n.d(t,"RecursiveVisitor",function(){return pu}),n.d(t,"ReferenceAst",function(){return sl}),n.d(t,"ResolvedStaticSymbol",function(){return ng}),n.d(t,"ResourceLoader",function(){return nf}),n.d(t,"ReturnStatement",function(){return dt}),n.d(t,"STRING_TYPE",function(){return ue}),n.d(t,"SafeMethodCall",function(){return Ya}),n.d(t,"SafePropertyRead",function(){return La}),n.d(t,"SelectorContext",function(){return v}),n.d(t,"SelectorListContext",function(){return y}),n.d(t,"SelectorMatcher",function(){return b}),n.d(t,"Serializer",function(){return Si}),n.d(t,"SplitInterpolation",function(){return Yh}),n.d(t,"Statement",function(){return ct}),n.d(t,"StaticReflector",function(){return Fg}),n.d(t,"StaticSymbol",function(){return Dn}),n.d(t,"StaticSymbolCache",function(){return kn}),n.d(t,"StaticSymbolResolver",function(){return ig}),n.d(t,"StmtModifier",function(){return st}),n.d(t,"StyleCompiler",function(){return nu}),n.d(t,"StylesCompileDependency",function(){return eu}),n.d(t,"SummaryResolver",function(){return nb}),n.d(t,"TagContentType",function(){return r}),n.d(t,"TaggedTemplateExpr",function(){return xe}),n.d(t,"TemplateBindingParseResult",function(){return Xh}),n.d(t,"TemplateLiteral",function(){return De}),n.d(t,"TemplateLiteralElement",function(){return ke}),n.d(t,"TemplateParseError",function(){return fh}),n.d(t,"TemplateParseResult",function(){return _h}),n.d(t,"TemplateParser",function(){return mh}),n.d(t,"Text",function(){return ou}),n.d(t,"TextAst",function(){return Ju}),n.d(t,"ThisReceiver",function(){return ka}),n.d(t,"ThrowStmt",function(){return vt}),n.d(t,"TmplAstBoundAttribute",function(){return Lr}),n.d(t,"TmplAstBoundEvent",function(){return Fr}),n.d(t,"TmplAstBoundText",function(){return Rr}),n.d(t,"TmplAstContent",function(){return Br}),n.d(t,"TmplAstElement",function(){return jr}),n.d(t,"TmplAstIcu",function(){return qr}),n.d(t,"TmplAstRecursiveVisitor",function(){return $r}),n.d(t,"TmplAstReference",function(){return Gr}),n.d(t,"TmplAstTemplate",function(){return Vr}),n.d(t,"TmplAstText",function(){return Mr}),n.d(t,"TmplAstTextAttribute",function(){return Nr}),n.d(t,"TmplAstVariable",function(){return Ur}),n.d(t,"Token",function(){return jh}),n.d(t,"TokenType",function(){return Nh}),n.d(t,"TransitiveCompileNgModuleMetadata",function(){return Xn}),n.d(t,"TreeError",function(){return Ru}),n.d(t,"TryCatchStmt",function(){return yt}),n.d(t,"Type",function(){return ee}),n.d(t,"TypeScriptEmitter",function(){return Sm}),n.d(t,"TypeofExpr",function(){return ve}),n.d(t,"Unary",function(){return Ha}),n.d(t,"UnaryOperator",function(){return he}),n.d(t,"UnaryOperatorExpr",function(){return Ye}),n.d(t,"UrlResolver",function(){return bb}),n.d(t,"VERSION",function(){return Df}),n.d(t,"VariableAst",function(){return ol}),n.d(t,"VariableBinding",function(){return Ja}),n.d(t,"Version",function(){return hn}),n.d(t,"ViewCompiler",function(){return Rm}),n.d(t,"WrappedNodeExpr",function(){return we}),n.d(t,"WriteKeyExpr",function(){return Se}),n.d(t,"WritePropExpr",function(){return Ce}),n.d(t,"WriteVarExpr",function(){return Ee}),n.d(t,"Xliff",function(){return h_}),n.d(t,"Xliff2",function(){return O_}),n.d(t,"Xmb",function(){return Bi}),n.d(t,"XmlParser",function(){return Qf}),n.d(t,"Xtb",function(){return P_}),n.d(t,"_ParseAST",function(){return ed}),n.d(t,"analyzeAndValidateNgModules",function(){return gg}),n.d(t,"analyzeFile",function(){return yg}),n.d(t,"analyzeFileForInjectables",function(){return vg}),n.d(t,"analyzeNgModules",function(){return mg}),n.d(t,"collectExternalReferences",function(){return Ot}),n.d(t,"compileComponentFromMetadata",function(){return jp}),n.d(t,"compileDeclareComponentFromMetadata",function(){return Nb}),n.d(t,"compileDeclareDirectiveFromMetadata",function(){return Pb}),n.d(t,"compileDirectiveFromMetadata",function(){return Fp}),n.d(t,"compileFactoryFunction",function(){return Ms}),n.d(t,"compileInjectable",function(){return Fs}),n.d(t,"compileInjector",function(){return va}),n.d(t,"compileNgModule",function(){return ya}),n.d(t,"compilePipeFromMetadata",function(){return Sa}),n.d(t,"componentFactoryName",function(){return Bn}),n.d(t,"computeMsgId",function(){return di}),n.d(t,"core",function(){return J}),n.d(t,"createAotCompiler",function(){return tb}),n.d(t,"createAotUrlResolver",function(){return eb}),n.d(t,"createElementCssSelector",function(){return wh}),n.d(t,"createLoweredSymbol",function(){return nm}),n.d(t,"createOfflineCompileUrlResolver",function(){return gb}),n.d(t,"createUrlResolverWithoutPackagePrefix",function(){return mb}),n.d(t,"debugOutputAstAsTypeScript",function(){return Em}),n.d(t,"devOnlyGuardedExpression",function(){return Dr}),n.d(t,"findNode",function(){return fu}),n.d(t,"flatten",function(){return Jn}),n.d(t,"formattedError",function(){return Og}),n.d(t,"getHtmlTagDefinition",function(){return _}),n.d(t,"getNsPrefix",function(){return c}),n.d(t,"getParseErrors",function(){return sn}),n.d(t,"getSafePropertyAccessString",function(){return Tr}),n.d(t,"getUrlScheme",function(){return yb}),n.d(t,"hostViewClassName",function(){return Vn}),n.d(t,"identifierModuleUrl",function(){return Ln}),n.d(t,"identifierName",function(){return Nn}),n.d(t,"isEmptyExpression",function(){return Ih}),n.d(t,"isFormattedError",function(){return Ig}),n.d(t,"isIdentifier",function(){return $h}),n.d(t,"isLoweredSymbol",function(){return tm}),n.d(t,"isNgContainer",function(){return s}),n.d(t,"isNgContent",function(){return o}),n.d(t,"isNgTemplate",function(){return a}),n.d(t,"isQuote",function(){return Wh}),n.d(t,"isSyntaxError",function(){return rn}),n.d(t,"jsDocComment",function(){return kt}),n.d(t,"leadingComment",function(){return Dt}),n.d(t,"literalMap",function(){return jt}),n.d(t,"makeBindingParser",function(){return Ip}),n.d(t,"mergeAnalyzedFiles",function(){return wg}),n.d(t,"mergeNsAndName",function(){return u}),n.d(t,"ngModuleJitUrl",function(){return rr}),n.d(t,"parseHostBindings",function(){return ef}),n.d(t,"parseTemplate",function(){return Cp}),n.d(t,"preserveWhitespacesDefault",function(){return Pf}),n.d(t,"publishFacade",function(){return Af}),n.d(t,"r3JitTypeSourceSpan",function(){return ma}),n.d(t,"removeSummaryDuplicates",function(){return Oh}),n.d(t,"rendererTypeName",function(){return jn}),n.d(t,"sanitizeIdentifier",function(){return Mn}),n.d(t,"sharedStylesheetJitUrl",function(){return nr}),n.d(t,"splitClasses",function(){return yh}),n.d(t,"splitNsName",function(){return i}),n.d(t,"syntaxError",function(){return en}),n.d(t,"templateJitUrl",function(){return ir}),n.d(t,"templateSourceUrl",function(){return tr}),n.d(t,"templateVisitAll",function(){return ml}),n.d(t,"toTypeScript",function(){return Qm}),n.d(t,"tokenName",function(){return Gn}),n.d(t,"tokenReference",function(){return qn}),n.d(t,"typeSourceSpan",function(){return _a}),n.d(t,"unescapeIdentifier",function(){return sg}),n.d(t,"unwrapResolvedMetadata",function(){return og}),n.d(t,"verifyHostBindings",function(){return tf}),n.d(t,"viewClassName",function(){return Fn}),n.d(t,"visitAll",function(){return du}),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(r||(r={}));const l={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},h="";l.ngsp=h; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class d{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:n=r.PARSABLE_DATA,closedByParent:i=!1,isVoid:s=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1}={}){this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=s,this.closedByParent=i||s,this.implicitNamespacePrefix=t||null,this.contentType=n,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if("object"==typeof this.contentType){const t=null==e?void 0:this.contentType[e];return null!=t?t:this.contentType.default}return this.contentType}}let p,f;function _(e){var t,n;return f||(p=new d,f={base:new d({isVoid:!0}),meta:new d({isVoid:!0}),area:new d({isVoid:!0}),embed:new d({isVoid:!0}),link:new d({isVoid:!0}),img:new d({isVoid:!0}),input:new d({isVoid:!0}),param:new d({isVoid:!0}),hr:new d({isVoid:!0}),br:new d({isVoid:!0}),source:new d({isVoid:!0}),track:new d({isVoid:!0}),wbr:new d({isVoid:!0}),p:new d({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new d({closedByChildren:["tbody","tfoot"]}),tbody:new d({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new d({closedByChildren:["tbody"],closedByParent:!0}),tr:new d({closedByChildren:["tr"],closedByParent:!0}),td:new d({closedByChildren:["td","th"],closedByParent:!0}),th:new d({closedByChildren:["td","th"],closedByParent:!0}),col:new d({isVoid:!0}),svg:new d({implicitNamespacePrefix:"svg"}),foreignObject:new d({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new d({implicitNamespacePrefix:"math"}),li:new d({closedByChildren:["li"],closedByParent:!0}),dt:new d({closedByChildren:["dt","dd"]}),dd:new d({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new d({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new d({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new d({closedByChildren:["optgroup"],closedByParent:!0}),option:new d({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new d({ignoreFirstLf:!0}),listing:new d({ignoreFirstLf:!0}),style:new d({contentType:r.RAW_TEXT}),script:new d({contentType:r.RAW_TEXT}),title:new d({contentType:{default:r.ESCAPABLE_RAW_TEXT,svg:r.PARSABLE_DATA}}),textarea:new d({contentType:r.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(n=null!==(t=f[e])&&void 0!==t?t:f[e.toLowerCase()])&&void 0!==n?n:p} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const m=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class g{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){const t=[],n=(e,t)=>{t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)};let r,i=new g,s=i,o=!1;for(m.lastIndex=0;r=m.exec(e);){if(r[1]){if(o)throw new Error("Nesting :not in a selector is not allowed");o=!0,s=new g,i.notSelectors.push(s)}const e=r[2];if(e){const t=r[3];"#"===t?s.addAttribute("id",e.substr(1)):"."===t?s.addClassName(e.substr(1)):s.setElement(e)}const a=r[4];if(a&&s.addAttribute(a,r[6]),r[7]&&(o=!1,s=i),r[8]){if(o)throw new Error("Multiple selectors in :not are not supported");n(t,i),i=s=new g}}return n(t,i),t}isElementSelector(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}hasElementSelector(){return!!this.element}setElement(e=null){this.element=e}getMatchingElementTemplate(){const e=this.element||"div",t=this.classNames.length>0?` class="${this.classNames.join(" ")}"`:"";let n="";for(let e=0;e`:`<${e}${t}${n}>`}getAttrs(){const e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;te+=`:not(${t})`),e}}class b{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){const t=new b;return t.addSelectables(e,null),t}addSelectables(e,t){let n=null;e.length>1&&(n=new y(e),this._listContexts.push(n));for(let r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!b.createNotMatcher(this.notSelectors).match(e,null)}return!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const w=K("Inject",e=>({token:e})),E=K("InjectionToken",e=>({_desc:e,"ɵprov":void 0})),S=K("Attribute",e=>({attributeName:e})),C=K("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!1},t)),O=K("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)),I=K("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!1},t)),x=K("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)),T=K("Directive",(e={})=>e);var A,D;!function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(A||(A={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(D||(D={}));const k=K("Component",(e={})=>Object.assign({changeDetection:D.Default},e)),P=K("Pipe",e=>Object.assign({pure:!0},e)),M=K("Input",e=>({bindingPropertyName:e})),R=K("Output",e=>({bindingPropertyName:e})),N=K("HostBinding",e=>({hostPropertyName:e})),L=K("HostListener",(e,t)=>({eventName:e,args:t})),F=K("NgModule",e=>e),j=K("Injectable",(e={})=>e),V={name:"custom-elements"},B={name:"no-errors-schema"},U=K("Optional"),G=K("Self"),q=K("SkipSelf"),$=K("Host"),H=Function;var z,W;function K(e,t){function n(...n){const r=t?t(...n):{};return Object.assign({ngMetadataName:e},r)}return n.isTypeOf=(t=>t&&t.ngMetadataName===e),n.ngMetadataName=e,n}function Y(e){const t=function(e){const t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return[e.element&&"*"!==e.element?e.element:"",...e.attrs,...t]}(e),n=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(e=>(function(e){const t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return e.element?[5,e.element,...e.attrs,...t]:e.attrs.length?[3,...e.attrs,...t]:e.classNames&&e.classNames.length?[9,...e.classNames]:[]})(e)):[];return t.concat(...n)}function X(e){return e?g.parse(e).map(Y):[]}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(z||(z={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(W||(W={}));var Q,Z,J=Object.freeze({__proto__:null,createInject:w,createInjectionToken:E,createAttribute:S,emitDistinctChangesOnlyDefaultValue:!1,createContentChildren:C,createContentChild:O,createViewChildren:I,createViewChild:x,createDirective:T,get ViewEncapsulation(){return A},get ChangeDetectionStrategy(){return D},createComponent:k,createPipe:P,createInput:M,createOutput:R,createHostBinding:N,createHostListener:L,createNgModule:F,createInjectable:j,CUSTOM_ELEMENTS_SCHEMA:V,NO_ERRORS_SCHEMA:B,createOptional:U,createSelf:G,createSkipSelf:q,createHost:$,Type:H,get SecurityContext(){return z},get MissingTranslationStrategy(){return W},parseSelectorToR3Selector:X}); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.Const=0]="Const"}(Q||(Q={}));class ee{constructor(e=[]){this.modifiers=e}hasModifier(e){return-1!==this.modifiers.indexOf(e)}}!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(Z||(Z={}));class te extends ee{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}}class ne extends ee{constructor(e,t,n=null){super(t),this.value=e,this.typeParams=n}visitType(e,t){return e.visitExpressionType(this,t)}}class re extends ee{constructor(e,t){super(t),this.of=e}visitType(e,t){return e.visitArrayType(this,t)}}class ie extends ee{constructor(e,t){super(t),this.valueType=e||null}visitType(e,t){return e.visitMapType(this,t)}}const se=new te(Z.Dynamic),oe=new te(Z.Inferred),ae=new te(Z.Bool),ce=(new te(Z.Int),new te(Z.Number)),ue=new te(Z.String),le=(new te(Z.Function),new te(Z.None));var he,de,pe,fe;function _e(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function me(e,t,n){const r=e.length;if(r!==t.length)return!1;for(let i=0;ie.isEquivalent(t))}!function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"}(he||(he={})),function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals"}(de||(de={}));class be{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Qe(this,e,null,t)}key(e,t,n){return new Ze(this,e,t,n)}callMethod(e,t,n){return new Oe(this,e,t,null,n)}callFn(e,t,n){return new Ie(this,e,null,t,n)}instantiate(e,t,n){return new Te(this,e,t,n)}conditional(e,t=null,n){return new qe(this,e,t,null,n)}equals(e,t){return new Xe(de.Equals,this,e,null,t)}notEquals(e,t){return new Xe(de.NotEquals,this,e,null,t)}identical(e,t){return new Xe(de.Identical,this,e,null,t)}notIdentical(e,t){return new Xe(de.NotIdentical,this,e,null,t)}minus(e,t){return new Xe(de.Minus,this,e,null,t)}plus(e,t){return new Xe(de.Plus,this,e,null,t)}divide(e,t){return new Xe(de.Divide,this,e,null,t)}multiply(e,t){return new Xe(de.Multiply,this,e,null,t)}modulo(e,t){return new Xe(de.Modulo,this,e,null,t)}and(e,t){return new Xe(de.And,this,e,null,t)}bitwiseAnd(e,t,n=!0){return new Xe(de.BitwiseAnd,this,e,null,t,n)}or(e,t){return new Xe(de.Or,this,e,null,t)}lower(e,t){return new Xe(de.Lower,this,e,null,t)}lowerEquals(e,t){return new Xe(de.LowerEquals,this,e,null,t)}bigger(e,t){return new Xe(de.Bigger,this,e,null,t)}biggerEquals(e,t){return new Xe(de.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(it,e)}cast(e,t){return new ze(this,e,t)}toStmt(){return new ht(this,null)}}!function(e){e[e.This=0]="This",e[e.Super=1]="Super",e[e.CatchError=2]="CatchError",e[e.CatchStack=3]="CatchStack"}(pe||(pe={}));class ye extends be{constructor(e,t,n){super(t,n),"string"==typeof e?(this.name=e,this.builtin=null):(this.name=null,this.builtin=e)}isEquivalent(e){return e instanceof ye&&this.name===e.name&&this.builtin===e.builtin}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}set(e){if(!this.name)throw new Error(`Built in variable ${this.builtin} can not be assigned to.`);return new Ee(this.name,e,null,this.sourceSpan)}}class ve extends be{constructor(e,t,n){super(t,n),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof ve&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}}class we extends be{constructor(e,t,n){super(t,n),this.node=e}isEquivalent(e){return e instanceof we&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}}class Ee extends be{constructor(e,t,n,r){super(n||t.type,r),this.name=e,this.value=t}isEquivalent(e){return e instanceof Ee&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}toDeclStmt(e,t){return new ut(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(oe,[st.Final])}}class Se extends be{constructor(e,t,n,r,i){super(r||n.type,i),this.receiver=e,this.index=t,this.value=n}isEquivalent(e){return e instanceof Se&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}}class Ce extends be{constructor(e,t,n,r,i){super(r||n.type,i),this.receiver=e,this.name=t,this.value=n}isEquivalent(e){return e instanceof Ce&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}}!function(e){e[e.ConcatArray=0]="ConcatArray",e[e.SubscribeObservable=1]="SubscribeObservable",e[e.Bind=2]="Bind"}(fe||(fe={}));class Oe extends be{constructor(e,t,n,r,i){super(r,i),this.receiver=e,this.args=n,"string"==typeof t?(this.name=t,this.builtin=null):(this.name=null,this.builtin=t)}isEquivalent(e){return e instanceof Oe&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.builtin===e.builtin&&ge(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeMethodExpr(this,t)}}class Ie extends be{constructor(e,t,n,r,i=!1){super(n,r),this.fn=e,this.args=t,this.pure=i}isEquivalent(e){return e instanceof Ie&&this.fn.isEquivalent(e.fn)&&ge(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}}class xe extends be{constructor(e,t,n,r){super(n,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof xe&&this.tag.isEquivalent(e.tag)&&me(this.template.elements,e.template.elements,(e,t)=>e.text===t.text)&&ge(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}}class Te extends be{constructor(e,t,n,r){super(n,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof Te&&this.classExpr.isEquivalent(e.classExpr)&&ge(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}}class Ae extends be{constructor(e,t,n){super(t,n),this.value=e}isEquivalent(e){return e instanceof Ae&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}}class De{constructor(e,t){this.elements=e,this.expressions=t}}class ke{constructor(e,t,n){var r;this.text=e,this.sourceSpan=t,this.rawText=null!==(r=null!=n?n:null==t?void 0:t.toString())&&void 0!==r?r:Ve(Le(e))}}class Pe{constructor(e,t){this.text=e,this.sourceSpan=t}}class Me extends Pe{}class Re extends Pe{}class Ne extends be{constructor(e,t,n,r,i){super(ue,i),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=n,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}|${e}`),this.metaBlock.customId&&(e=`${e}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}␟${t}`}),Be(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){var t,n;return null!==(n=null===(t=this.messageParts[e])||void 0===t?void 0:t.sourceSpan)&&void 0!==n?n:this.sourceSpan}getPlaceholderSourceSpan(e){var t,n,r,i;return null!==(i=null!==(n=null===(t=this.placeHolderNames[e])||void 0===t?void 0:t.sourceSpan)&&void 0!==n?n:null===(r=this.expressions[e])||void 0===r?void 0:r.sourceSpan)&&void 0!==i?i:this.sourceSpan}serializeI18nTemplatePart(e){return Be(this.placeHolderNames[e-1].text,this.messageParts[e].text,this.getMessagePartSourceSpan(e))}}const Le=e=>e.replace(/\\/g,"\\\\"),Fe=e=>e.replace(/^:/,"\\:"),je=e=>e.replace(/:/g,"\\:"),Ve=e=>e.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Be(e,t,n){return""===e?{cooked:t,raw:Ve(Fe(Le(t))),range:n}:{cooked:`:${e}:${t}`,raw:Ve(`:${je(Le(e))}:${Le(t)}`),range:n}}class Ue extends be{constructor(e,t,n=null,r){super(t,r),this.value=e,this.typeParams=n}isEquivalent(e){return e instanceof Ue&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}}class Ge{constructor(e,t,n){this.moduleName=e,this.name=t,this.runtime=n}}class qe extends be{constructor(e,t,n=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=n,this.trueCase=t}isEquivalent(e){return e instanceof qe&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&_e(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}}class $e extends be{constructor(e,t){super(ae,t),this.condition=e}isEquivalent(e){return e instanceof $e&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}}class He extends be{constructor(e,t){super(e.type,t),this.condition=e}isEquivalent(e){return e instanceof He&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitAssertNotNullExpr(this,t)}}class ze extends be{constructor(e,t,n){super(t,n),this.value=e}isEquivalent(e){return e instanceof ze&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitCastExpr(this,t)}}class We{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}}class Ke extends be{constructor(e,t,n,r,i){super(n,r),this.params=e,this.statements=t,this.name=i}isEquivalent(e){return e instanceof Ke&&ge(this.params,e.params)&&ge(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new lt(e,this.params,this.statements,this.type,t,this.sourceSpan)}}class Ye extends be{constructor(e,t,n,r,i=!0){super(n||ce,r),this.operator=e,this.expr=t,this.parens=i}isEquivalent(e){return e instanceof Ye&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}}class Xe extends be{constructor(e,t,n,r,i,s=!0){super(r||t.type,i),this.operator=e,this.rhs=n,this.parens=s,this.lhs=t}isEquivalent(e){return e instanceof Xe&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}}class Qe extends be{constructor(e,t,n,r){super(n,r),this.receiver=e,this.name=t}isEquivalent(e){return e instanceof Qe&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new Ce(this.receiver,this.name,e,null,this.sourceSpan)}}class Ze extends be{constructor(e,t,n,r){super(n,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof Ze&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new Se(this.receiver,this.index,e,null,this.sourceSpan)}}class Je extends be{constructor(e,t,n){super(t,n),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof Je&&ge(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}}class et{constructor(e,t,n){this.key=e,this.value=t,this.quoted=n}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}class tt extends be{constructor(e,t,n){super(t,n),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof tt&&ge(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}}class nt extends be{constructor(e,t){super(e[e.length-1].type,t),this.parts=e}isEquivalent(e){return e instanceof nt&&ge(this.parts,e.parts)}isConstant(){return!1}visitExpression(e,t){return e.visitCommaExpr(this,t)}}new ye(pe.This,null,null),new ye(pe.Super,null,null),new ye(pe.CatchError,null,null),new ye(pe.CatchStack,null,null);const rt=new Ae(null,null,null),it=new Ae(null,oe,null);var st;!function(e){e[e.Final=0]="Final",e[e.Private=1]="Private",e[e.Exported=2]="Exported",e[e.Static=3]="Static"}(st||(st={}));class ot{constructor(e,t,n){this.text=e,this.multiline=t,this.trailingNewline=n}toString(){return this.multiline?` ${this.text} `:this.text}}class at extends ot{constructor(e){super("",!0,!0),this.tags=e}toString(){return function(e){if(0===e.length)return"";if(1===e.length&&e[0].tagName&&!e[0].text)return`*${$t(e[0])} `;let t="*\n";for(const n of e)t+=" *",t+=$t(n).replace(/\n/g,"\n * "),t+="\n";return t+=" "} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(this.tags)}}class ct{constructor(e=[],t=null,n){this.modifiers=e,this.sourceSpan=t,this.leadingComments=n}hasModifier(e){return-1!==this.modifiers.indexOf(e)}addLeadingComment(e){var t;this.leadingComments=null!==(t=this.leadingComments)&&void 0!==t?t:[],this.leadingComments.push(e)}}class ut extends ct{constructor(e,t,n,r,i,s){super(r,i,s),this.name=e,this.value=t,this.type=n||t&&t.type||null}isEquivalent(e){return e instanceof ut&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}}class lt extends ct{constructor(e,t,n,r,i,s,o){super(i,s,o),this.name=e,this.params=t,this.statements=n,this.type=r||null}isEquivalent(e){return e instanceof lt&&ge(this.params,e.params)&&ge(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}}class ht extends ct{constructor(e,t,n){super([],t,n),this.expr=e}isEquivalent(e){return e instanceof ht&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}}class dt extends ct{constructor(e,t=null,n){super([],t,n),this.value=e}isEquivalent(e){return e instanceof dt&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}}class pt{constructor(e=null,t=[]){this.type=e,this.modifiers=t}hasModifier(e){return-1!==this.modifiers.indexOf(e)}}class ft extends pt{constructor(e,t,n,r){super(t,n),this.name=e,this.initializer=r}isEquivalent(e){return this.name===e.name}}class _t extends pt{constructor(e,t,n,r,i){super(r,i),this.name=e,this.params=t,this.body=n}isEquivalent(e){return this.name===e.name&&ge(this.body,e.body)}}class mt extends pt{constructor(e,t,n,r){super(n,r),this.name=e,this.body=t}isEquivalent(e){return this.name===e.name&&ge(this.body,e.body)}}class gt extends ct{constructor(e,t,n,r,i,s,o,a,c){super(o,a,c),this.name=e,this.parent=t,this.fields=n,this.getters=r,this.constructorMethod=i,this.methods=s}isEquivalent(e){return e instanceof gt&&this.name===e.name&&_e(this.parent,e.parent)&&ge(this.fields,e.fields)&&ge(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&ge(this.methods,e.methods)}visitStatement(e,t){return e.visitDeclareClassStmt(this,t)}}class bt extends ct{constructor(e,t,n=[],r,i){super([],r,i),this.condition=e,this.trueCase=t,this.falseCase=n}isEquivalent(e){return e instanceof bt&&this.condition.isEquivalent(e.condition)&&ge(this.trueCase,e.trueCase)&&ge(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}}class yt extends ct{constructor(e,t,n=null,r){super([],n,r),this.bodyStmts=e,this.catchStmts=t}isEquivalent(e){return e instanceof yt&&ge(this.bodyStmts,e.bodyStmts)&&ge(this.catchStmts,e.catchStmts)}visitStatement(e,t){return e.visitTryCatchStmt(this,t)}}class vt extends ct{constructor(e,t=null,n){super([],t,n),this.error=e}isEquivalent(e){return e instanceof yt&&this.error.isEquivalent(e.error)}visitStatement(e,t){return e.visitThrowStmt(this,t)}}class wt{transformExpr(e,t){return e}transformStmt(e,t){return e}visitReadVarExpr(e,t){return this.transformExpr(e,t)}visitWrappedNodeExpr(e,t){return this.transformExpr(e,t)}visitTypeofExpr(e,t){return this.transformExpr(new ve(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)}visitWriteVarExpr(e,t){return this.transformExpr(new Ee(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)}visitWriteKeyExpr(e,t){return this.transformExpr(new Se(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e.type,e.sourceSpan),t)}visitWritePropExpr(e,t){return this.transformExpr(new Ce(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)}visitInvokeMethodExpr(e,t){const n=e.builtin||e.name;return this.transformExpr(new Oe(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)}visitInvokeFunctionExpr(e,t){return this.transformExpr(new Ie(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)}visitTaggedTemplateExpr(e,t){return this.transformExpr(new xe(e.tag.visitExpression(this,t),new De(e.template.elements,e.template.expressions.map(e=>e.visitExpression(this,t))),e.type,e.sourceSpan),t)}visitInstantiateExpr(e,t){return this.transformExpr(new Te(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)}visitLiteralExpr(e,t){return this.transformExpr(e,t)}visitLocalizedString(e,t){return this.transformExpr(new Ne(e.metaBlock,e.messageParts,e.placeHolderNames,this.visitAllExpressions(e.expressions,t),e.sourceSpan),t)}visitExternalExpr(e,t){return this.transformExpr(e,t)}visitConditionalExpr(e,t){return this.transformExpr(new qe(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e.type,e.sourceSpan),t)}visitNotExpr(e,t){return this.transformExpr(new $e(e.condition.visitExpression(this,t),e.sourceSpan),t)}visitAssertNotNullExpr(e,t){return this.transformExpr(new He(e.condition.visitExpression(this,t),e.sourceSpan),t)}visitCastExpr(e,t){return this.transformExpr(new ze(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)}visitFunctionExpr(e,t){return this.transformExpr(new Ke(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)}visitUnaryOperatorExpr(e,t){return this.transformExpr(new Ye(e.operator,e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)}visitBinaryOperatorExpr(e,t){return this.transformExpr(new Xe(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type,e.sourceSpan),t)}visitReadPropExpr(e,t){return this.transformExpr(new Qe(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)}visitReadKeyExpr(e,t){return this.transformExpr(new Ze(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type,e.sourceSpan),t)}visitLiteralArrayExpr(e,t){return this.transformExpr(new Je(this.visitAllExpressions(e.entries,t),e.type,e.sourceSpan),t)}visitLiteralMapExpr(e,t){const n=e.entries.map(e=>new et(e.key,e.value.visitExpression(this,t),e.quoted)),r=new ie(e.valueType);return this.transformExpr(new tt(n,r,e.sourceSpan),t)}visitCommaExpr(e,t){return this.transformExpr(new nt(this.visitAllExpressions(e.parts,t),e.sourceSpan),t)}visitAllExpressions(e,t){return e.map(e=>e.visitExpression(this,t))}visitDeclareVarStmt(e,t){const n=e.value&&e.value.visitExpression(this,t);return this.transformStmt(new ut(e.name,n,e.type,e.modifiers,e.sourceSpan,e.leadingComments),t)}visitDeclareFunctionStmt(e,t){return this.transformStmt(new lt(e.name,e.params,this.visitAllStatements(e.statements,t),e.type,e.modifiers,e.sourceSpan,e.leadingComments),t)}visitExpressionStmt(e,t){return this.transformStmt(new ht(e.expr.visitExpression(this,t),e.sourceSpan,e.leadingComments),t)}visitReturnStmt(e,t){return this.transformStmt(new dt(e.value.visitExpression(this,t),e.sourceSpan,e.leadingComments),t)}visitDeclareClassStmt(e,t){const n=e.parent.visitExpression(this,t),r=e.getters.map(e=>new mt(e.name,this.visitAllStatements(e.body,t),e.type,e.modifiers)),i=e.constructorMethod&&new _t(e.constructorMethod.name,e.constructorMethod.params,this.visitAllStatements(e.constructorMethod.body,t),e.constructorMethod.type,e.constructorMethod.modifiers),s=e.methods.map(e=>new _t(e.name,e.params,this.visitAllStatements(e.body,t),e.type,e.modifiers));return this.transformStmt(new gt(e.name,n,e.fields,r,i,s,e.modifiers,e.sourceSpan),t)}visitIfStmt(e,t){return this.transformStmt(new bt(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e.sourceSpan,e.leadingComments),t)}visitTryCatchStmt(e,t){return this.transformStmt(new yt(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan,e.leadingComments),t)}visitThrowStmt(e,t){return this.transformStmt(new vt(e.error.visitExpression(this,t),e.sourceSpan,e.leadingComments),t)}visitAllStatements(e,t){return e.map(e=>e.visitStatement(this,t))}}class Et{visitType(e,t){return e}visitExpression(e,t){return e.type&&e.type.visitType(this,t),e}visitBuiltinType(e,t){return this.visitType(e,t)}visitExpressionType(e,t){return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach(e=>this.visitType(e,t)),this.visitType(e,t)}visitArrayType(e,t){return this.visitType(e,t)}visitMapType(e,t){return this.visitType(e,t)}visitWrappedNodeExpr(e,t){return e}visitTypeofExpr(e,t){return this.visitExpression(e,t)}visitReadVarExpr(e,t){return this.visitExpression(e,t)}visitWriteVarExpr(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)}visitWriteKeyExpr(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)}visitWritePropExpr(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)}visitInvokeMethodExpr(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitInvokeFunctionExpr(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitTaggedTemplateExpr(e,t){return e.tag.visitExpression(this,t),this.visitAllExpressions(e.template.expressions,t),this.visitExpression(e,t)}visitInstantiateExpr(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitLiteralExpr(e,t){return this.visitExpression(e,t)}visitLocalizedString(e,t){return this.visitExpression(e,t)}visitExternalExpr(e,t){return e.typeParams&&e.typeParams.forEach(e=>e.visitType(this,t)),this.visitExpression(e,t)}visitConditionalExpr(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)}visitNotExpr(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)}visitAssertNotNullExpr(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)}visitCastExpr(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)}visitFunctionExpr(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)}visitUnaryOperatorExpr(e,t){return e.expr.visitExpression(this,t),this.visitExpression(e,t)}visitBinaryOperatorExpr(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)}visitLiteralArrayExpr(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)}visitLiteralMapExpr(e,t){return e.entries.forEach(e=>e.value.visitExpression(this,t)),this.visitExpression(e,t)}visitCommaExpr(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)}visitAllExpressions(e,t){e.forEach(e=>e.visitExpression(this,t))}visitDeclareVarStmt(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e}visitDeclareFunctionStmt(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e}visitExpressionStmt(e,t){return e.expr.visitExpression(this,t),e}visitReturnStmt(e,t){return e.value.visitExpression(this,t),e}visitDeclareClassStmt(e,t){return e.parent.visitExpression(this,t),e.getters.forEach(e=>this.visitAllStatements(e.body,t)),e.constructorMethod&&this.visitAllStatements(e.constructorMethod.body,t),e.methods.forEach(e=>this.visitAllStatements(e.body,t)),e}visitIfStmt(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e}visitTryCatchStmt(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e}visitThrowStmt(e,t){return e.error.visitExpression(this,t),e}visitAllStatements(e,t){e.forEach(e=>e.visitStatement(this,t))}}function St(e){const t=new Ct;return t.visitAllStatements(e,null),t.varNames}class Ct extends Et{constructor(){super(...arguments),this.varNames=new Set}visitDeclareFunctionStmt(e,t){return e}visitDeclareClassStmt(e,t){return e}visitReadVarExpr(e,t){return e.name&&this.varNames.add(e.name),null}}function Ot(e){const t=new It;return t.visitAllStatements(e,null),t.externalReferences}class It extends Et{constructor(){super(...arguments),this.externalReferences=[]}visitExternalExpr(e,t){return this.externalReferences.push(e.value),super.visitExternalExpr(e,t)}}function xt(e,t){if(!t)return e;const n=new At(t);return e.visitStatement(n,null)}function Tt(e,t){if(!t)return e;const n=new At(t);return e.visitExpression(n,null)}class At extends wt{constructor(e){super(),this.sourceSpan=e}_clone(e){const t=Object.create(e.constructor.prototype);for(let n of Object.keys(e))t[n]=e[n];return t}transformExpr(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e}transformStmt(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e}}function Dt(e,t=!1,n=!0){return new ot(e,t,n)}function kt(e=[]){return new at(e)}function Pt(e,t,n){return new ye(e,t,n)}function Mt(e,t=null,n){return new Ue(e,null,t,n)}function Rt(e,t,n){return null!=e?Nt(Mt(e,t,null),n):null}function Nt(e,t,n){return new ne(e,t,n)}function Lt(e){return new ve(e)}function Ft(e,t,n){return new Je(e,t,n)}function jt(e,t=null){return new tt(e.map(e=>new et(e.key,e.value,e.quoted)),t,null)}function Vt(e,t,n,r,i){return new Ke(e,t,n,r,i)}function Bt(e,t,n,r,i){return new bt(e,t,n,r,i)}function Ut(e,t,n,r){return new xe(e,t,n,r)}function Gt(e,t,n){return new Ae(e,t,n)}function qt(e){return e instanceof Ae&&null===e.value}function $t(e){let t="";if(e.tagName&&(t+=` @${e.tagName}`),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}const Ht=/-+([a-z0-9])/g;function zt(e,t){return Wt(e,":",t)}function Wt(e,t,n){const r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function Kt(e,t,n){return Array.isArray(e)?t.visitArray(e,n):"object"==typeof(r=e)&&null!==r&&Object.getPrototypeOf(r)===on?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n);var r}function Yt(e){return null!=e}function Xt(e){return void 0===e?null:e}class Qt{visitArray(e,t){return e.map(e=>Kt(e,this,t))}visitStringMap(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=Kt(e[r],this,t)}),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}}const Zt={assertSync:e=>{if(ln(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>ln(e)?e.then(t):t(e),all:e=>e.some(ln)?Promise.all(e):e};function Jt(e){throw new Error(`Internal Error: ${e}`)}function en(e,t){const n=Error(e);return n[tn]=!0,t&&(n[nn]=t),n}const tn="ngSyntaxError",nn="ngParseErrors";function rn(e){return e[tn]}function sn(e){return e[nn]||[]}const on=Object.getPrototypeOf({});function an(e){let t=[];for(let n=0;n=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t.push(r):r<=2047?t.push(r>>6&31|192,63&r|128):r<=65535?t.push(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&t.push(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128)}return t}function cn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;if(!e.toString)return"object";const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function un(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function ln(e){return!!e&&"function"==typeof e.then}class hn{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const dn="undefined"!=typeof window&&window,pn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fn=void 0!==e&&e||dn||pn;function _n(e,t){const n=[];for(let r=0;r"),bn={},yn=50;class vn extends be{constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,t){return t===bn?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof vn&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}fixup(e){this.resolved=e,this.shared=!0}}class wn{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.injectorDefinitions=new Map,this.directiveDefinitions=new Map,this.componentDefinitions=new Map,this.pipeDefinitions=new Map,this.nextNameIndex=0}getConstLiteral(e,t){if(e instanceof Ae&&!On(e)||e instanceof vn)return e;const n=this.keyOf(e);let r=this.literals.get(n),i=!1;if(r||(r=new vn(e),this.literals.set(n,r),i=!0),!i&&!r.shared||i&&t){const t=this.freshName();let n,i;this.isClosureCompilerEnabled&&On(e)?(n=Pt(t).set(new Ke([],[new dt(e)])),i=Pt(t).callFn([])):(n=Pt(t).set(e),i=Pt(t)),this.statements.push(n.toDeclStmt(oe,[st.Final])),r.fixup(i)}return r}getDefinition(e,t,n,r=!1){const i=this.definitionsOf(t);let s=i.get(e),o=!1;if(!s){const r=this.propertyNameOf(t);s=new vn(n.importExpr(e).prop(r)),i.set(e,s),o=!0}if(!o&&!s.shared||o&&r){const e=this.freshName();this.statements.push(Pt(e).set(s.resolved).toDeclStmt(oe,[st.Final])),s.fixup(Pt(e))}return s}getLiteralFactory(e){if(e instanceof Je){const t=e.entries.map(e=>e.isConstant()?e:gn),n=this.keyOf(Ft(t));return this._getLiteralFactory(n,e.entries,e=>Ft(e))}{const t=jt(e.entries.map(e=>({key:e.key,value:e.value.isConstant()?e.value:gn,quoted:e.quoted}))),n=this.keyOf(t);return this._getLiteralFactory(n,e.entries.map(e=>e.value),t=>jt(t.map((t,n)=>({key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}))))}}_getLiteralFactory(e,t,n){let r=this.literalFactories.get(e);const i=t.filter(e=>!e.isConstant());if(!r){const i=t.map((e,t)=>e.isConstant()?this.getConstLiteral(e,!0):Pt(`a${t}`)),s=Vt(i.filter(Cn).map(e=>new We(e.name,se)),[new dt(n(i))],oe),o=this.freshName();this.statements.push(Pt(o).set(s).toDeclStmt(oe,[st.Final])),r=Pt(o),this.literalFactories.set(e,r)}return{literalFactory:r,literalFactoryArguments:i}}uniqueName(e){return`${e}${this.nextNameIndex++}`}definitionsOf(e){switch(e){case 2:return this.componentDefinitions;case 1:return this.directiveDefinitions;case 0:return this.injectorDefinitions;case 3:return this.pipeDefinitions}return Jt(`Unknown definition kind ${e}`),this.componentDefinitions}propertyNameOf(e){switch(e){case 2:return"ɵcmp";case 1:return"ɵdir";case 0:return"ɵinj";case 3:return"ɵpipe"}return Jt(`Unknown definition kind ${e}`),""}freshName(){return this.uniqueName(mn)}keyOf(e){return e.visitExpression(new En,bn)}}class En{constructor(){this.visitWrappedNodeExpr=Sn,this.visitWriteVarExpr=Sn,this.visitWriteKeyExpr=Sn,this.visitWritePropExpr=Sn,this.visitInvokeMethodExpr=Sn,this.visitInvokeFunctionExpr=Sn,this.visitTaggedTemplateExpr=Sn,this.visitInstantiateExpr=Sn,this.visitConditionalExpr=Sn,this.visitNotExpr=Sn,this.visitAssertNotNullExpr=Sn,this.visitCastExpr=Sn,this.visitFunctionExpr=Sn,this.visitUnaryOperatorExpr=Sn,this.visitBinaryOperatorExpr=Sn,this.visitReadPropExpr=Sn,this.visitReadKeyExpr=Sn,this.visitCommaExpr=Sn,this.visitLocalizedString=Sn}visitLiteralExpr(e){return`${"string"==typeof e.value?'"'+e.value+'"':e.value}`}visitLiteralArrayExpr(e,t){return`[${e.entries.map(e=>e.visitExpression(this,t)).join(",")}]`}visitLiteralMapExpr(e,t){return`{${e.entries.map(e=>`${(e=>{const t=e.quoted?'"':"";return`${t}${e.key}${t}`})(e)}:${e.value.visitExpression(this,t)}`).join(",")}`}visitExternalExpr(e){return e.value.moduleName?`EX:${e.value.moduleName}:${e.value.name}`:`EX:${e.value.runtime.name}`}visitReadVarExpr(e){return`VAR:${e.name}`}visitTypeofExpr(e,t){return`TYPEOF:${e.expr.visitExpression(this,t)}`}}function Sn(e){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${e.constructor.name}`)}function Cn(e){return e instanceof ye}function On(e){return e instanceof Ae&&"string"==typeof e.value&&e.value.length>=yn} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const In="@angular/core";class xn{}function Tn(e){return{identifier:{reference:e}}}function An(e,t){return Tn(e.resolveExternalReference(t))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */xn.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:In},xn.ElementRef={name:"ElementRef",moduleName:In},xn.NgModuleRef={name:"NgModuleRef",moduleName:In},xn.ViewContainerRef={name:"ViewContainerRef",moduleName:In},xn.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:In},xn.QueryList={name:"QueryList",moduleName:In},xn.TemplateRef={name:"TemplateRef",moduleName:In},xn.Renderer2={name:"Renderer2",moduleName:In},xn.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:In},xn.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:In},xn.ComponentFactory={name:"ComponentFactory",moduleName:In},xn.ComponentRef={name:"ComponentRef",moduleName:In},xn.NgModuleFactory={name:"NgModuleFactory",moduleName:In},xn.createModuleFactory={name:"ɵcmf",moduleName:In},xn.moduleDef={name:"ɵmod",moduleName:In},xn.moduleProviderDef={name:"ɵmpd",moduleName:In},xn.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:In},xn.inject={name:"ɵɵinject",moduleName:In},xn.directiveInject={name:"ɵɵdirectiveInject",moduleName:In},xn.INJECTOR={name:"INJECTOR",moduleName:In},xn.Injector={name:"Injector",moduleName:In},xn.ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:In},xn.InjectableDef={name:"ɵɵInjectableDef",moduleName:In},xn.ViewEncapsulation={name:"ViewEncapsulation",moduleName:In},xn.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:In},xn.SecurityContext={name:"SecurityContext",moduleName:In},xn.LOCALE_ID={name:"LOCALE_ID",moduleName:In},xn.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:In},xn.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:In},xn.interpolate={name:"ɵinterpolate",moduleName:In},xn.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:In},xn.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:In},xn.Renderer={name:"Renderer",moduleName:In},xn.viewDef={name:"ɵvid",moduleName:In},xn.elementDef={name:"ɵeld",moduleName:In},xn.anchorDef={name:"ɵand",moduleName:In},xn.textDef={name:"ɵted",moduleName:In},xn.directiveDef={name:"ɵdid",moduleName:In},xn.providerDef={name:"ɵprd",moduleName:In},xn.queryDef={name:"ɵqud",moduleName:In},xn.pureArrayDef={name:"ɵpad",moduleName:In},xn.pureObjectDef={name:"ɵpod",moduleName:In},xn.purePipeDef={name:"ɵppd",moduleName:In},xn.pipeDef={name:"ɵpid",moduleName:In},xn.nodeValue={name:"ɵnov",moduleName:In},xn.ngContentDef={name:"ɵncd",moduleName:In},xn.unwrapValue={name:"ɵunv",moduleName:In},xn.createRendererType2={name:"ɵcrt",moduleName:In},xn.RendererType2={name:"RendererType2",moduleName:In},xn.ViewDefinition={name:"ɵViewDefinition",moduleName:In},xn.createComponentFactory={name:"ɵccf",moduleName:In},xn.setClassMetadata={name:"ɵsetClassMetadata",moduleName:In};class Dn{constructor(e,t,n){this.filePath=e,this.name=t,this.members=n}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}}class kn{constructor(){this.cache=new Map}get(e,t,n){const r=`"${e}".${t}${(n=n||[]).length?`.${n.join(".")}`:""}`;let i=this.cache.get(r);return i||(i=new Dn(e,t,n),this.cache.set(r,i)),i}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Pn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Mn(e){return e.replace(/\W/g,"_")}let Rn=0;function Nn(e){if(!e||!e.reference)return null;const t=e.reference;if(t instanceof Dn)return t.name;if(t.__anonymousType)return t.__anonymousType;let n=cn(t);return n.indexOf("(")>=0?(n=`anonymous_${Rn++}`,t.__anonymousType=n):n=Mn(n),n}function Ln(e){const t=e.reference;return t instanceof Dn?t.filePath:`./${cn(t)}`}function Fn(e,t){return`View_${Nn({reference:e})}_${t}`}function jn(e){return`RenderType_${Nn({reference:e})}`}function Vn(e){return`HostView_${Nn({reference:e})}`}function Bn(e){return`${Nn({reference:e})}NgFactory`}var Un;function Gn(e){return null!=e.value?Mn(e.value):Nn(e.identifier)}function qn(e){return null!=e.identifier?e.identifier.reference:e.value}!function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(Un||(Un={}));class $n{constructor({moduleUrl:e,styles:t,styleUrls:n}={}){this.moduleUrl=e||null,this.styles=Qn(t),this.styleUrls=Qn(n)}}class Hn{constructor({encapsulation:e,template:t,templateUrl:n,htmlAst:r,styles:i,styleUrls:s,externalStylesheets:o,animations:a,ngContentSelectors:c,interpolation:u,isInline:l,preserveWhitespaces:h}){if(this.encapsulation=e,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=Qn(i),this.styleUrls=Qn(s),this.externalStylesheets=Qn(o),this.animations=a?Jn(a):[],this.ngContentSelectors=c||[],u&&2!=u.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=u,this.isInline=l,this.preserveWhitespaces=h}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}class zn{constructor({isHost:e,type:t,isComponent:n,selector:r,exportAs:i,changeDetection:s,inputs:o,outputs:a,hostListeners:c,hostProperties:u,hostAttributes:l,providers:h,viewProviders:d,queries:p,guards:f,viewQueries:_,entryComponents:m,template:g,componentViewType:b,rendererType:y,componentFactory:v}){this.isHost=!!e,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=s,this.inputs=o,this.outputs=a,this.hostListeners=c,this.hostProperties=u,this.hostAttributes=l,this.providers=Qn(h),this.viewProviders=Qn(d),this.queries=Qn(p),this.guards=f,this.viewQueries=Qn(_),this.entryComponents=Qn(m),this.template=g,this.componentViewType=b,this.rendererType=y,this.componentFactory=v}static create({isHost:e,type:t,isComponent:n,selector:r,exportAs:i,changeDetection:s,inputs:o,outputs:a,host:c,providers:u,viewProviders:l,queries:h,guards:d,viewQueries:p,entryComponents:f,template:_,componentViewType:m,rendererType:g,componentFactory:b}){const y={},v={},w={};null!=c&&Object.keys(c).forEach(e=>{const t=c[e],n=e.match(Pn);null===n?w[e]=t:null!=n[1]?v[n[1]]=t:null!=n[2]&&(y[n[2]]=t)});const E={};null!=o&&o.forEach(e=>{const t=zt(e,[e,e]);E[t[0]]=t[1]});const S={};return null!=a&&a.forEach(e=>{const t=zt(e,[e,e]);S[t[0]]=t[1]}),new zn({isHost:e,type:t,isComponent:!!n,selector:r,exportAs:i,changeDetection:s,inputs:E,outputs:S,hostListeners:y,hostProperties:v,hostAttributes:w,providers:u,viewProviders:l,queries:h,guards:d,viewQueries:p,entryComponents:f,template:_,componentViewType:m,rendererType:g,componentFactory:b})}toSummary(){return{summaryKind:Un.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}class Wn{constructor({type:e,name:t,pure:n}){this.type=e,this.name=t,this.pure=!!n}toSummary(){return{summaryKind:Un.Pipe,type:this.type,name:this.name,pure:this.pure}}}class Kn{}class Yn{constructor({type:e,providers:t,declaredDirectives:n,exportedDirectives:r,declaredPipes:i,exportedPipes:s,entryComponents:o,bootstrapComponents:a,importedModules:c,exportedModules:u,schemas:l,transitiveModule:h,id:d}){this.type=e||null,this.declaredDirectives=Qn(n),this.exportedDirectives=Qn(r),this.declaredPipes=Qn(i),this.exportedPipes=Qn(s),this.providers=Qn(t),this.entryComponents=Qn(o),this.bootstrapComponents=Qn(a),this.importedModules=Qn(c),this.exportedModules=Qn(u),this.schemas=Qn(l),this.id=d||null,this.transitiveModule=h||null}toSummary(){const e=this.transitiveModule;return{summaryKind:Un.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}class Xn{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(e,t){this.providers.push({provider:e,module:t})}addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}function Qn(e){return e||[]}class Zn{constructor(e,{useClass:t,useValue:n,useExisting:r,useFactory:i,deps:s,multi:o}){this.token=e,this.useClass=t||null,this.useValue=n,this.useExisting=r,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!o}}function Jn(e){return e.reduce((e,t)=>{const n=Array.isArray(t)?Jn(t):t;return e.concat(n)},[])}function er(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function tr(e,t,n){let r;return r=n.isInline?t.type.reference instanceof Dn?`${t.type.reference.filePath}.${t.type.reference.name}.html`:`${Nn(e)}/${Nn(t.type)}.html`:n.templateUrl,t.type.reference instanceof Dn?r:er(r)}function nr(e,t){const n=e.moduleUrl.split(/\/\\/g);return er(`css/${t}${n[n.length-1]}.ngstyle.js`)}function rr(e){return er(`${Nn(e.type)}/module.ngfactory.js`)}function ir(e,t){return er(`${Nn(e)}/${Nn(t.type)}.ngfactory.js`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const sr="@angular/core";class or{}or.NEW_METHOD="factory",or.TRANSFORM_METHOD="transform",or.PATCH_DEPS="patchedDeps",or.core={name:null,moduleName:sr},or.namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:sr},or.namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:sr},or.namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:sr},or.element={name:"ɵɵelement",moduleName:sr},or.elementStart={name:"ɵɵelementStart",moduleName:sr},or.elementEnd={name:"ɵɵelementEnd",moduleName:sr},or.advance={name:"ɵɵadvance",moduleName:sr},or.syntheticHostProperty={name:"ɵɵsyntheticHostProperty",moduleName:sr},or.syntheticHostListener={name:"ɵɵsyntheticHostListener",moduleName:sr},or.attribute={name:"ɵɵattribute",moduleName:sr},or.attributeInterpolate1={name:"ɵɵattributeInterpolate1",moduleName:sr},or.attributeInterpolate2={name:"ɵɵattributeInterpolate2",moduleName:sr},or.attributeInterpolate3={name:"ɵɵattributeInterpolate3",moduleName:sr},or.attributeInterpolate4={name:"ɵɵattributeInterpolate4",moduleName:sr},or.attributeInterpolate5={name:"ɵɵattributeInterpolate5",moduleName:sr},or.attributeInterpolate6={name:"ɵɵattributeInterpolate6",moduleName:sr},or.attributeInterpolate7={name:"ɵɵattributeInterpolate7",moduleName:sr},or.attributeInterpolate8={name:"ɵɵattributeInterpolate8",moduleName:sr},or.attributeInterpolateV={name:"ɵɵattributeInterpolateV",moduleName:sr},or.classProp={name:"ɵɵclassProp",moduleName:sr},or.elementContainerStart={name:"ɵɵelementContainerStart",moduleName:sr},or.elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:sr},or.elementContainer={name:"ɵɵelementContainer",moduleName:sr},or.styleMap={name:"ɵɵstyleMap",moduleName:sr},or.styleMapInterpolate1={name:"ɵɵstyleMapInterpolate1",moduleName:sr},or.styleMapInterpolate2={name:"ɵɵstyleMapInterpolate2",moduleName:sr},or.styleMapInterpolate3={name:"ɵɵstyleMapInterpolate3",moduleName:sr},or.styleMapInterpolate4={name:"ɵɵstyleMapInterpolate4",moduleName:sr},or.styleMapInterpolate5={name:"ɵɵstyleMapInterpolate5",moduleName:sr},or.styleMapInterpolate6={name:"ɵɵstyleMapInterpolate6",moduleName:sr},or.styleMapInterpolate7={name:"ɵɵstyleMapInterpolate7",moduleName:sr},or.styleMapInterpolate8={name:"ɵɵstyleMapInterpolate8",moduleName:sr},or.styleMapInterpolateV={name:"ɵɵstyleMapInterpolateV",moduleName:sr},or.classMap={name:"ɵɵclassMap",moduleName:sr},or.classMapInterpolate1={name:"ɵɵclassMapInterpolate1",moduleName:sr},or.classMapInterpolate2={name:"ɵɵclassMapInterpolate2",moduleName:sr},or.classMapInterpolate3={name:"ɵɵclassMapInterpolate3",moduleName:sr},or.classMapInterpolate4={name:"ɵɵclassMapInterpolate4",moduleName:sr},or.classMapInterpolate5={name:"ɵɵclassMapInterpolate5",moduleName:sr},or.classMapInterpolate6={name:"ɵɵclassMapInterpolate6",moduleName:sr},or.classMapInterpolate7={name:"ɵɵclassMapInterpolate7",moduleName:sr},or.classMapInterpolate8={name:"ɵɵclassMapInterpolate8",moduleName:sr},or.classMapInterpolateV={name:"ɵɵclassMapInterpolateV",moduleName:sr},or.styleProp={name:"ɵɵstyleProp",moduleName:sr},or.stylePropInterpolate1={name:"ɵɵstylePropInterpolate1",moduleName:sr},or.stylePropInterpolate2={name:"ɵɵstylePropInterpolate2",moduleName:sr},or.stylePropInterpolate3={name:"ɵɵstylePropInterpolate3",moduleName:sr},or.stylePropInterpolate4={name:"ɵɵstylePropInterpolate4",moduleName:sr},or.stylePropInterpolate5={name:"ɵɵstylePropInterpolate5",moduleName:sr},or.stylePropInterpolate6={name:"ɵɵstylePropInterpolate6",moduleName:sr},or.stylePropInterpolate7={name:"ɵɵstylePropInterpolate7",moduleName:sr},or.stylePropInterpolate8={name:"ɵɵstylePropInterpolate8",moduleName:sr},or.stylePropInterpolateV={name:"ɵɵstylePropInterpolateV",moduleName:sr},or.nextContext={name:"ɵɵnextContext",moduleName:sr},or.templateCreate={name:"ɵɵtemplate",moduleName:sr},or.text={name:"ɵɵtext",moduleName:sr},or.enableBindings={name:"ɵɵenableBindings",moduleName:sr},or.disableBindings={name:"ɵɵdisableBindings",moduleName:sr},or.getCurrentView={name:"ɵɵgetCurrentView",moduleName:sr},or.textInterpolate={name:"ɵɵtextInterpolate",moduleName:sr},or.textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:sr},or.textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:sr},or.textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:sr},or.textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:sr},or.textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:sr},or.textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:sr},or.textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:sr},or.textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:sr},or.textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:sr},or.restoreView={name:"ɵɵrestoreView",moduleName:sr},or.pureFunction0={name:"ɵɵpureFunction0",moduleName:sr},or.pureFunction1={name:"ɵɵpureFunction1",moduleName:sr},or.pureFunction2={name:"ɵɵpureFunction2",moduleName:sr},or.pureFunction3={name:"ɵɵpureFunction3",moduleName:sr},or.pureFunction4={name:"ɵɵpureFunction4",moduleName:sr},or.pureFunction5={name:"ɵɵpureFunction5",moduleName:sr},or.pureFunction6={name:"ɵɵpureFunction6",moduleName:sr},or.pureFunction7={name:"ɵɵpureFunction7",moduleName:sr},or.pureFunction8={name:"ɵɵpureFunction8",moduleName:sr},or.pureFunctionV={name:"ɵɵpureFunctionV",moduleName:sr},or.pipeBind1={name:"ɵɵpipeBind1",moduleName:sr},or.pipeBind2={name:"ɵɵpipeBind2",moduleName:sr},or.pipeBind3={name:"ɵɵpipeBind3",moduleName:sr},or.pipeBind4={name:"ɵɵpipeBind4",moduleName:sr},or.pipeBindV={name:"ɵɵpipeBindV",moduleName:sr},or.hostProperty={name:"ɵɵhostProperty",moduleName:sr},or.property={name:"ɵɵproperty",moduleName:sr},or.propertyInterpolate={name:"ɵɵpropertyInterpolate",moduleName:sr},or.propertyInterpolate1={name:"ɵɵpropertyInterpolate1",moduleName:sr},or.propertyInterpolate2={name:"ɵɵpropertyInterpolate2",moduleName:sr},or.propertyInterpolate3={name:"ɵɵpropertyInterpolate3",moduleName:sr},or.propertyInterpolate4={name:"ɵɵpropertyInterpolate4",moduleName:sr},or.propertyInterpolate5={name:"ɵɵpropertyInterpolate5",moduleName:sr},or.propertyInterpolate6={name:"ɵɵpropertyInterpolate6",moduleName:sr},or.propertyInterpolate7={name:"ɵɵpropertyInterpolate7",moduleName:sr},or.propertyInterpolate8={name:"ɵɵpropertyInterpolate8",moduleName:sr},or.propertyInterpolateV={name:"ɵɵpropertyInterpolateV",moduleName:sr},or.i18n={name:"ɵɵi18n",moduleName:sr},or.i18nAttributes={name:"ɵɵi18nAttributes",moduleName:sr},or.i18nExp={name:"ɵɵi18nExp",moduleName:sr},or.i18nStart={name:"ɵɵi18nStart",moduleName:sr},or.i18nEnd={name:"ɵɵi18nEnd",moduleName:sr},or.i18nApply={name:"ɵɵi18nApply",moduleName:sr},or.i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:sr},or.pipe={name:"ɵɵpipe",moduleName:sr},or.projection={name:"ɵɵprojection",moduleName:sr},or.projectionDef={name:"ɵɵprojectionDef",moduleName:sr},or.reference={name:"ɵɵreference",moduleName:sr},or.inject={name:"ɵɵinject",moduleName:sr},or.injectAttribute={name:"ɵɵinjectAttribute",moduleName:sr},or.injectPipeChangeDetectorRef={name:"ɵɵinjectPipeChangeDetectorRef",moduleName:sr},or.directiveInject={name:"ɵɵdirectiveInject",moduleName:sr},or.invalidFactory={name:"ɵɵinvalidFactory",moduleName:sr},or.invalidFactoryDep={name:"ɵɵinvalidFactoryDep",moduleName:sr},or.templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:sr},or.forwardRef={name:"forwardRef",moduleName:sr},or.resolveForwardRef={name:"resolveForwardRef",moduleName:sr},or.resolveWindow={name:"ɵɵresolveWindow",moduleName:sr},or.resolveDocument={name:"ɵɵresolveDocument",moduleName:sr},or.resolveBody={name:"ɵɵresolveBody",moduleName:sr},or.defineComponent={name:"ɵɵdefineComponent",moduleName:sr},or.declareComponent={name:"ɵɵngDeclareComponent",moduleName:sr},or.setComponentScope={name:"ɵɵsetComponentScope",moduleName:sr},or.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:sr},or.ViewEncapsulation={name:"ViewEncapsulation",moduleName:sr},or.ComponentDefWithMeta={name:"ɵɵComponentDefWithMeta",moduleName:sr},or.FactoryDef={name:"ɵɵFactoryDef",moduleName:sr},or.defineDirective={name:"ɵɵdefineDirective",moduleName:sr},or.declareDirective={name:"ɵɵngDeclareDirective",moduleName:sr},or.DirectiveDefWithMeta={name:"ɵɵDirectiveDefWithMeta",moduleName:sr},or.InjectorDef={name:"ɵɵInjectorDef",moduleName:sr},or.defineInjector={name:"ɵɵdefineInjector",moduleName:sr},or.NgModuleDefWithMeta={name:"ɵɵNgModuleDefWithMeta",moduleName:sr},or.ModuleWithProviders={name:"ModuleWithProviders",moduleName:sr},or.defineNgModule={name:"ɵɵdefineNgModule",moduleName:sr},or.setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:sr},or.PipeDefWithMeta={name:"ɵɵPipeDefWithMeta",moduleName:sr},or.definePipe={name:"ɵɵdefinePipe",moduleName:sr},or.queryRefresh={name:"ɵɵqueryRefresh",moduleName:sr},or.viewQuery={name:"ɵɵviewQuery",moduleName:sr},or.loadQuery={name:"ɵɵloadQuery",moduleName:sr},or.contentQuery={name:"ɵɵcontentQuery",moduleName:sr},or.NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:sr},or.InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:sr},or.CopyDefinitionFeature={name:"ɵɵCopyDefinitionFeature",moduleName:sr},or.ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:sr},or.listener={name:"ɵɵlistener",moduleName:sr},or.getFactoryOf={name:"ɵɵgetFactoryOf",moduleName:sr},or.getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:sr},or.sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:sr},or.sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:sr},or.sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:sr},or.sanitizeScript={name:"ɵɵsanitizeScript",moduleName:sr},or.sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:sr},or.sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:sr},or.trustConstantHtml={name:"ɵɵtrustConstantHtml",moduleName:sr},or.trustConstantResourceUrl={name:"ɵɵtrustConstantResourceUrl",moduleName:sr}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ar=3,cr="# sourceMappingURL=data:application/json;base64,";class ur{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(null==e)throw new Error("The column in the generated code must be provided");if(e{e.set(r,i),t.push(r),n.push(this.sourcesContent.get(r)||null)});let r="",i=0,s=0,o=0,a=0;return this.lines.forEach(t=>{i=0,r+=t.map(t=>{let n=lr(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(n+=lr(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=lr(t.sourceLine0-o),o=t.sourceLine0,n+=lr(t.sourceCol0-a),a=t.sourceCol0),n}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:ar,sourceRoot:"",sources:t,sourcesContent:n,mappings:r}}toJsComment(){return this.hasMappings?"//"+cr+function(e){let t="";const n=an(e);for(let e=0;e>2),t+=dr((3&r)<<4|(null===i?0:i>>4)),t+=null===i?"=":dr((15&i)<<2|(null===s?0:s>>6)),t+=null===i||null===s?"=":dr(63&s)}return t}(JSON.stringify(this,null,0)):""}}function lr(e){e=e<0?1+(-e<<1):e<<1;let t="";do{let n=31&e;(e>>=5)>0&&(n|=32),t+=dr(n)}while(e>0);return t}const hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function dr(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return hr[e]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const pr=/'|\\|\n|\r|\$/g,fr=/^[$A-Z_][0-9A-Z_$]*$/i,_r=" ",mr=Pt("error",null,null),gr=Pt("stack",null,null);class br{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class yr{constructor(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new br(e)]}static createRoot(){return new yr(0)}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return this._currentLine.indent*_r.length+this._currentLine.partsLength}print(e,t,n=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new br(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}pushClass(e){this._classes.push(e)}popClass(){return this._classes.pop()}get currentClass(){return this._classes.length>0?this._classes[this._classes.length-1]:null}toSource(){return this.sourceLines.map(e=>e.parts.length>0?Er(e.indent)+e.parts.join(""):"").join("\n")}toSourceMapGenerator(e,t=0){const n=new ur(e);let r=!1;const i=()=>{r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let e=0;e{n.addLine();const s=e.srcSpans,o=e.parts;let a=e.indent*_r.length,c=0;for(;ce)return n.srcSpans[t];e-=r.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}class vr{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(void 0!==e.leadingComments)for(const n of e.leadingComments)n instanceof at?t.print(e,`/*${n.toString()}*/`,n.trailingNewline):n.multiline?t.print(e,`/* ${n.text} */`,n.trailingNewline):n.text.split("\n").forEach(n=>{t.println(e,`// ${n}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");const n=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitThrowStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null}visitWriteVarExpr(e,t){const n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),n||t.print(e,")"),null}visitWriteKeyExpr(e,t){const n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),n||t.print(e,")"),null}visitWritePropExpr(e,t){const n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),n||t.print(e,")"),null}visitInvokeMethodExpr(e,t){e.receiver.visitExpression(this,t);let n=e.name;return null!=e.builtin&&null==(n=this.getBuiltinMethodName(e.builtin))?null:(t.print(e,`.${n}(`),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null)}visitInvokeFunctionExpr(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let n=1;n{t.print(e,`${wr(n.key,this._escapeDollarInStrings,n.quoted)}:`),n.value.visitExpression(this,t)},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,n){this.visitAllObjects(e=>e.visitExpression(this,t),e,t,n)}visitAllObjects(e,t,n,r){let i=!1;for(let s=0;s0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[s]);i&&(n.decIndent(),n.decIndent())}visitAllStatements(e,t){e.forEach(e=>e.visitStatement(this,t))}}function wr(e,t,n=!0){if(null==e)return null;const r=e.replace(pr,(...e)=>"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":`\\${e[0]}`);return n||!fr.test(r)?`'${r}'`:r}function Er(e){let t="";for(let n=0;n({key:t,value:e[t],quoted:!1})))}function Cr(e,t){if(Array.isArray(e))return Ft(e.map(e=>Cr(e,t)));if(e instanceof Dn)return t.importExpr(e);if(null==e)return Gt(e);throw new Error(`Internal error: Unsupported or unknown metadata: ${e}`)}function Or(e,t){if(0===t)return Nt(e);const n=[];for(let e=0;ee.visit(this,t));return new Kr(n,e.sourceSpan)}visitIcu(e,t){const n={};Object.keys(e.cases).forEach(r=>n[r]=e.cases[r].visit(this,t));const r=new Yr(e.expression,e.type,n,e.sourceSpan);return r.expressionPlaceholder=e.expressionPlaceholder,r}visitTagPlaceholder(e,t){const n=e.children.map(e=>e.visit(this,t));return new Xr(e.tag,e.attrs,e.startName,e.closeName,n,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Qr(e.value,e.name,e.sourceSpan)}visitIcuPlaceholder(e,t){return new Zr(e.value,e.name,e.sourceSpan)}}class ei{visitText(e,t){}visitContainer(e,t){e.children.forEach(e=>e.visit(this))}visitIcu(e,t){Object.keys(e.cases).forEach(t=>{e.cases[t].visit(this)})}visitTagPlaceholder(e,t){e.children.forEach(e=>e.visit(this))}visitPlaceholder(e,t){}visitIcuPlaceholder(e,t){}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class ti{constructor(e){this.digits=e}static zero(){return new ti([0])}static one(){return new ti([1])}clone(){return new ti(this.digits.slice())}add(e){const t=this.clone();return t.addToSelf(e),t}addToSelf(e){const t=Math.max(this.digits.length,e.digits.length);let n=0;for(let r=0;r=10?(this.digits[r]=t-10,n=1):(this.digits[r]=t,n=0)}n>0&&(this.digits[t]=1)}toString(){let e="";for(let t=this.digits.length-1;t>=0;t--)e+=this.digits[t];return e}}class ni{constructor(e){this.powerOfTwos=[e]}getValue(){return this.powerOfTwos[0]}multiplyBy(e){const t=ti.zero();return this.multiplyByAndAddTo(e,t),t}multiplyByAndAddTo(e,t){for(let n=0;0!==e;e>>>=1,n++)if(1&e){const e=this.getMultipliedByPowerOfTwo(n);t.addToSelf(e)}}getMultipliedByPowerOfTwo(e){for(let t=this.powerOfTwos.length;t<=e;t++){const e=this.powerOfTwos[t-1];this.powerOfTwos[t]=e.add(e)}return this.powerOfTwos[e]}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ri(e){return e.id||ii(e)}function ii(e){return function(e){const t=an(e),n=function(e,t){const n=e.length+3>>>2,r=[];for(let i=0;i>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(let e=0;e>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(function(e){return e.reduce((e,t)=>e.concat(function(e){let t=[];for(let n=0;n<4;n++)t.push(e>>>8*(3-n)&255);return t}(t)),[])}([s,o,a,c,u]))}((t=e.nodes,t.map(e=>e.visit(ci,null))).join("")+`[${e.meaning}]`);var t}function si(e){return e.id||oi(e)}function oi(e){const t=new ui;return di(e.nodes.map(e=>e.visit(t,null)).join(""),e.meaning)}class ai{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(e=>e.visit(this)).join(", ")}]`}visitIcu(e,t){const n=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].visit(this)}}`);return`{${e.expression}, ${e.type}, ${n.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?``:`${e.children.map(e=>e.visit(this)).join(", ")}`}visitPlaceholder(e,t){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,t){return`${e.value.visit(this)}`}}const ci=new ai;class ui extends ai{visitIcu(e,t){let n=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}}function li(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}function hi(e){const t=an(e);let n=pi(t,0),r=pi(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function di(e,t=""){let n=hi(e);if(t){const e=hi(t);n=function(e,t){const n=e[0],r=e[1],i=t[0],s=t[1],o=gi(r,s),a=o[0],c=o[1];return[mi(mi(n,i),a),c]}(function(e,t){const n=e[0],r=e[1];return[n<>>32-t,r<>>32-t]}(n,1),e)}return function(e,t){const n=Ei.toThePowerOf(0).multiplyBy(t);return Ei.toThePowerOf(4).multiplyByAndAddTo(e,n),n.toString()} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(2147483647&n[0],n[1])}function pi(e,t){let n,r=2654435769,i=2654435769;const s=e.length;for(n=0;n+12<=s;n+=12){const s=fi(r=mi(r,wi(e,n,_i.Little)),i=mi(i,wi(e,n+4,_i.Little)),t=mi(t,wi(e,n+8,_i.Little)));r=s[0],i=s[1],t=s[2]}return r=mi(r,wi(e,n,_i.Little)),i=mi(i,wi(e,n+4,_i.Little)),t=mi(t,s),fi(r,i,t=mi(t,wi(e,n+8,_i.Little)<<8))[2]}function fi(e,t,n){return e=bi(e,t),e=bi(e,n),e^=n>>>13,t=bi(t,n),t=bi(t,e),t^=e<<8,n=bi(n,e),n=bi(n,t),n^=t>>>13,e=bi(e,t),e=bi(e,n),e^=n>>>12,t=bi(t,n),t=bi(t,e),t^=e<<16,n=bi(n,e),n=bi(n,t),n^=t>>>5,e=bi(e,t),e=bi(e,n),e^=n>>>3,t=bi(t,n),t=bi(t,e),t^=e<<10,n=bi(n,e),n=bi(n,t),[e,t,n^=t>>>15]}var _i;function mi(e,t){return gi(e,t)[1]}function gi(e,t){const n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function bi(e,t){const n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function yi(e,t){return e<>>32-t}function vi(e,t){return t>=e.length?0:e[t]}function wi(e,t,n){let r=0;if(n===_i.Big)for(let n=0;n<4;n++)r+=vi(e,t+n)<<24-8*n;else for(let n=0;n<4;n++)r+=vi(e,t+n)<<8*n;return r}!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(_i||(_i={}));const Ei=new class{constructor(e){this.base=e,this.exponents=[new ni(ti.one())]}toThePowerOf(e){for(let t=this.exponents.length;t<=e;t++){const e=this.exponents[t-1].multiplyBy(this.base);this.exponents[t]=new ni(e)}return this.exponents[e]}}(256);class Si{createNameMapper(e){return null}}class Ci extends ei{constructor(e,t){super(),this.mapName=t,this.internalToPublic={},this.publicToNextId={},this.publicToInternal={},e.nodes.forEach(e=>e.visit(this))}toPublicName(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null}toInternalName(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null}visitText(e,t){return null}visitTagPlaceholder(e,t){this.visitPlaceholderName(e.startName),super.visitTagPlaceholder(e,t),this.visitPlaceholderName(e.closeName)}visitPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitIcuPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitPlaceholderName(e){if(!e||this.internalToPublic.hasOwnProperty(e))return;let t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){const e=this.publicToNextId[t];this.publicToNextId[t]=e+1,t=`${t}_${e}`}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Oi=new class{visitTag(e){const t=this._serializeAttributes(e.attrs);if(0==e.children.length)return`<${e.name}${t}/>`;const n=e.children.map(e=>e.visit(this));return`<${e.name}${t}>${n.join("")}`}visitText(e){return e.value}visitDeclaration(e){return``}_serializeAttributes(e){const t=Object.keys(e).map(t=>`${t}="${e[t]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return``}};function Ii(e){return e.map(e=>e.visit(Oi)).join("")}class xi{constructor(e){this.attrs={},Object.keys(e).forEach(t=>{this.attrs[t]=Mi(e[t])})}visit(e){return e.visitDeclaration(this)}}class Ti{constructor(e,t){this.rootTag=e,this.dtd=t}visit(e){return e.visitDoctype(this)}}class Ai{constructor(e,t={},n=[]){this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(e=>{this.attrs[e]=Mi(t[e])})}visit(e){return e.visitTag(this)}}class Di{constructor(e){this.value=Mi(e)}visit(e){return e.visitText(this)}}class ki extends Di{constructor(e=0){super(`\n${new Array(e+1).join(" ")}`)}}const Pi=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]];function Mi(e){return Pi.reduce((e,t)=>e.replace(t[0],t[1]),e)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Ri="messagebundle",Ni="msg",Li="ph",Fi="ex",ji="source",Vi='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n';class Bi extends Si{write(e,t){const n=new qi,r=new Ui;let i=new Ai(Ri);return e.forEach(e=>{const t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);let n=[];e.sources.forEach(e=>{n.push(new Ai(ji,{},[new Di(`${e.filePath}:${e.startLine}${e.endLine!==e.startLine?","+e.endLine:""}`)]))}),i.children.push(new ki(2),new Ai(Ni,t,[...n,...r.serialize(e.nodes)]))}),i.children.push(new ki),Ii([new xi({version:"1.0",encoding:"UTF-8"}),new ki,new Ti(Ri,Vi),new ki,n.addDefaultExamples(i),new ki])}load(e,t){throw new Error("Unsupported")}digest(e){return Gi(e)}createNameMapper(e){return new Ci(e,$i)}}class Ui{visitText(e,t){return[new Di(e.value)]}visitContainer(e,t){const n=[];return e.children.forEach(e=>n.push(...e.visit(this))),n}visitIcu(e,t){const n=[new Di(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(t=>{n.push(new Di(`${t} {`),...e.cases[t].visit(this),new Di("} "))}),n.push(new Di("}")),n}visitTagPlaceholder(e,t){const n=new Di(`<${e.tag}>`),r=new Ai(Fi,{},[n]),i=new Ai(Li,{name:e.startName},[r,n]);if(e.isVoid)return[i];const s=new Di(``),o=new Ai(Fi,{},[s]),a=new Ai(Li,{name:e.closeName},[o,s]);return[i,...this.serialize(e.children),a]}visitPlaceholder(e,t){const n=new Di(`{{${e.value}}}`),r=new Ai(Fi,{},[n]);return[new Ai(Li,{name:e.name},[r,n])]}visitIcuPlaceholder(e,t){const n=e.value.expression,r=e.value.type,i=Object.keys(e.value.cases).map(e=>e+" {...}").join(" "),s=new Di(`{${n}, ${r}, ${i}}`),o=new Ai(Fi,{},[s]);return[new Ai(Li,{name:e.name},[o,s])]}serialize(e){return[].concat(...e.map(e=>e.visit(this)))}}function Gi(e){return si(e)}class qi{addDefaultExamples(e){return e.visit(this),e}visitTag(e){if(e.name===Li){if(!e.children||0==e.children.length){const t=new Di(e.attrs.name||"...");e.children=[new Ai(Fi,{},[t])]}}else e.children&&e.children.forEach(e=>e.visit(this))}visitText(e){}visitDeclaration(e){}visitDoctype(e){}}function $i(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Hi="MSG_",zi="i18n_",Wi="i18n",Ki="i18n-",Yi="VAR_",Xi="I18N_EXP_",Qi="�";function Zi(e){return e===Wi||e.startsWith(Ki)}function Ji(e){return e instanceof zr}function es(e){return Ji(e)&&1===e.nodes.length&&e.nodes[0]instanceof Yr}function ts(e){return!!e.i18n}function ns(e){return e.nodes[0]}function rs(e,t=0){return`${Qi}${e}${t>0?`:${t}`:""}${Qi}`}function is(e=0){let t=e;return()=>t++}function ss(e){const t={};return e.forEach((e,n)=>{t[n]=Gt(e.length>1?`[${e.join("|")}]`:e[0])}),t}function os(e,t,...n){const r=e.get(t)||[];r.push(...n),e.set(t,r)}function as(e,t=0,n=0){const r=t,i=new Map,s=e instanceof zr?e.nodes.find(e=>e instanceof Kr):e;return s&&s.children.filter(e=>e instanceof Qr).forEach((e,t)=>{const s=rs(r+t,n);os(i,e.name,s)}),i}function cs(e={},t){const n={};return e&&Object.keys(e).length&&Object.keys(e).forEach(r=>n[us(r,t)]=e[r]),n}function us(e,t=!0){const n=$i(e);if(!t)return n;const r=n.split("_");if(1===r.length)return e.toLowerCase();let i;/^\d+$/.test(r[r.length-1])&&(i=r.pop());let s=r.shift().toLowerCase();return r.length&&(s+=r.map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")),i?`${s}_${i}`:s}function ls(e){return`${Hi}${e}`.toUpperCase()}function hs(e){return new ut(e.name,void 0,oe,void 0,e.sourceSpan)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const ds=/[-.]/,ps="_t",fs="ctx",_s="rf",ms="_r",gs="$implicit",bs="ngNonBindable";function ys(e,t){let n=null;return()=>(n||(e.push(new ut(ps,void 0,se)),n=Pt(t)),n)}function vs(e){if(this)throw new Error(`Builder ${this.constructor.name} doesn't support ${e} yet`);throw new Error(`Feature ${e} is not supported yet`)}function ws(e){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${e.constructor.name}`)}function Es(e){return Array.isArray(e)?Ft(e.map(Es)):Gt(e,oe)}function Ss(e,t){return Object.getOwnPropertyNames(e).length>0?function(e,t){return jt(Object.getOwnPropertyNames(e).map(n=>{const r=e[n];let i,s,o,a;return Array.isArray(r)?([s,i]=r,o=n,a=s!==i):([i,s]=zt(n,[n,r]),o=i,a=s!==i&&n.includes(":")),{key:o,quoted:ds.test(o),value:t&&a?Ft([Es(s),Es(i)]):Es(s)}}))}(e,t):null}function Cs(e){for(;qt(e[e.length-1]);)e.pop();return e}function Os(e,t){if(Array.isArray(e.predicate)){let n=[];return e.predicate.forEach(e=>{const t=e.split(",").map(e=>Gt(e.trim()));n.push(...t)}),t.getConstLiteral(Ft(n),!0)}return e.predicate}class Is{constructor(){this.values=[]}set(e,t){t&&this.values.push({key:e,value:t,quoted:!1})}toLiteralMap(){return jt(this.values)}}function xs(e){const t={};return e instanceof Vr&&"ng-template"!==e.tagName?e.templateAttrs.forEach(e=>t[e.name]=""):(e.attributes.forEach(e=>{Zi(e.name)||(t[e.name]=e.value)}),e.inputs.forEach(e=>{t[e.name]=""}),e.outputs.forEach(e=>{t[e.name]=""})),t}function Ts(e,t,n){let r=Mt(e,null,n);if(t.length>0)for(let e=0;e{const n=function(e){const t=[];e.resolved===Ps.Attribute&&null!==e.attribute&&t.push({key:"attribute",value:e.attribute,quoted:!1});e.optional&&t.push({key:"optional",value:Gt(!0),quoted:!1});e.host&&t.push({key:"host",value:Gt(!0),quoted:!1});e.self&&t.push({key:"self",value:Gt(!0),quoted:!1});e.skipSelf&&t.push({key:"skipSelf",value:Gt(!0),quoted:!1});return t.length>0?jt(t):null}(e);return null!==n?(t=!0,n):Gt(null)});return t?Nt(Ft(n)):le}(e.deps));else{const t=Pt(`ɵ${e.name}_BaseFactory`),r=Mt(or.getInheritedFactory),o=t.set(r.callFn([e.internalType],void 0,!0)).toDeclStmt(oe,[st.Exported,st.Final]);n.push(o),s=t.callFn([i])}const o=s,a=[];let c=null;function u(e){const n=Pt("r");a.push(n.set(rt).toDeclStmt());let r=null;return r=null!==o?n.set(o).toStmt():Mt(or.invalidFactory).callFn([]).toStmt(),a.push(Bt(t,[r],[n.set(e).toStmt()])),n}if(Ls(e)&&e.delegateType===Ds.Factory){const t=Pt(`ɵ${e.name}_BaseFactory`),r=Mt(or.getFactoryOf);if(e.delegate.isEquivalent(e.internalType))throw new Error("Illegal state: compiling factory that delegates to itself");const i=t.set(r.callFn([e.delegate])).toDeclStmt(oe,[st.Exported,st.Final]);n.push(i),c=u(t.callFn([]))}else if(Ls(e)){const t=Rs(e.delegateDeps,e.injectFn,e.target===ks.Pipe);c=u(new(e.delegateType===Ds.Class?Te:Ie)(e.delegate,t))}else c=function(e){return void 0!==e.expression} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e)?u(e.expression):s;return null!==c?a.push(new dt(c)):a.push(Mt(or.invalidFactory).callFn([]).toStmt()),{factory:Vt([new We("t",se)],a,oe,void 0,`${e.name}_Factory`),statements:n,type:Nt(Mt(or.FactoryDef,[Or(e.type.type,e.typeArgumentCount),r]))}}function Rs(e,t,n){return e.map((e,r)=>(function(e,t,n,r){switch(e.resolved){case Ps.Token:case Ps.ChangeDetectorRef:const i=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0);let s=0!==i||e.optional?Gt(i):null;if(n&&e.resolved===Ps.ChangeDetectorRef)return Mt(or.injectPipeChangeDetectorRef).callFn(s?[s]:[]);const o=[e.token];return s&&o.push(s),Mt(t).callFn(o);case Ps.Attribute:return Mt(or.injectAttribute).callFn([e.token]);case Ps.Invalid:return Mt(or.invalidFactoryDep).callFn([Gt(r)]);default:return vs(`Unknown R3ResolvedDependencyType: ${Ps[e.resolved]}`)}})(e,t,n,r))}function Ns(e,t,n){n.resolveExternalReference(xn.Injector);const r=[];for(let n of e.diDeps)if(n.token){const e=qn(n.token);let i=n.isAttribute?Ps.Attribute:Ps.Token;const s=e instanceof Dn?t.importExpr(e):Gt(e);r.push({token:s,attribute:null,resolved:i,host:!!n.isHost,optional:!!n.isOptional,self:!!n.isSelf,skipSelf:!!n.isSkipSelf})}else vs("dependency without a token");return r}function Ls(e){return void 0!==e.delegateType}function Fs(e){let t=null;const n={name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:e.typeArgumentCount,deps:[],injectFn:xn.inject,target:ks.Injectable};if(void 0!==e.useClass){const r=e.useClass.isEquivalent(e.internalType);let i=void 0;void 0!==e.userDeps&&(i=e.userDeps),t=void 0!==i?Ms(Object.assign(Object.assign({},n),{delegate:e.useClass,delegateDeps:i,delegateType:Ds.Class})):r?Ms(n):js(e.type.value,e.useClass)}else t=void 0!==e.useFactory?void 0!==e.userDeps?Ms(Object.assign(Object.assign({},n),{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:Ds.Function})):{statements:[],factory:Vt([],[new dt(e.useFactory.callFn([]))])}:void 0!==e.useValue?Ms(Object.assign(Object.assign({},n),{expression:e.useValue})):void 0!==e.useExisting?Ms(Object.assign(Object.assign({},n),{expression:Mt(xn.inject).callFn([e.useExisting])})):js(e.type.value,e.internalType);const r={token:e.internalType,factory:t.factory};return null!==e.providedIn.value&&(r.providedIn=e.providedIn),{expression:Mt(xn.ɵɵdefineInjectable).callFn([Sr(r)]),type:new ne(Mt(xn.InjectableDef,[Or(e.type.type,e.typeArgumentCount)])),statements:t.statements}}function js(e,t){return{statements:[],factory:e.node===t.node?t.prop("ɵfac"):Vt([new We("t",se)],[new dt(t.callMethod("ɵfac",[Pt("t")]))])}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Vs(e,t){if(null!=t){if(!Array.isArray(t))throw new Error(`Expected '${e}' to be an array of strings.`);for(let n=0;n]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Us(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){const e=t[0],n=t[1];Bs.forEach(t=>{if(t.test(e)||t.test(n))throw new Error(`['${e}', '${n}'] contains unusable interpolation symbol.`)})}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Gs{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(Us("interpolation",e),new Gs(e[0],e[1])):qs}}const qs=new Gs("{{","}}"),$s='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})'; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Hs extends vr{constructor(){super(!1)}visitDeclareClassStmt(e,t){return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,`${e.name}.prototype = Object.create(`),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach(n=>this._visitClassGetter(e,n,t)),e.methods.forEach(n=>this._visitClassMethod(e,n,t)),t.popClass(),null}_visitClassConstructor(e,t){t.print(e,`function ${e.name}(`),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")}_visitClassGetter(e,t,n){n.println(e,`Object.defineProperty(${e.name}.prototype, '${t.name}', { get: function() {`),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")}_visitClassMethod(e,t,n){n.print(e,`${e.name}.prototype.${t.name} = function(`),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitReadVarExpr(e,t){if(e.builtin===pe.This)t.print(e,"self");else{if(e.builtin===pe.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");super.visitReadVarExpr(e,t)}return null}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitCastExpr(e,t){return e.value.visitExpression(this,t),null}visitInvokeFunctionExpr(e,t){const n=e.fn;return n instanceof ye&&n.builtin===pe.Super?(t.currentClass.parent.visitExpression(this,t),t.print(e,".call(this"),e.args.length>0&&(t.print(e,", "),this.visitAllExpressions(e.args,t,",")),t.print(e,")")):super.visitInvokeFunctionExpr(e,t),null}visitTaggedTemplateExpr(e,t){const n=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${$s}(`),t.print(e,`[${n.map(e=>wr(e.text,!1)).join(", ")}], `),t.print(e,`[${n.map(e=>wr(e.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(n=>{t.print(e,", "),n.visitExpression(this,t)}),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitTryCatchStmt(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,`} catch (${mr.name}) {`),t.incIndent();const n=[gr.set(mr.prop("stack")).toDeclStmt(null,[st.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${$s}(`);const n=[e.serializeI18nHead()];for(let t=1;twr(e.cooked,!1)).join(", ")}], `),t.print(e,`[${n.map(e=>wr(e.raw,!1)).join(", ")}])`),e.expressions.forEach(n=>{t.print(e,", "),n.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(e=>t.print(null,e.name),e,t,",")}getBuiltinMethodName(e){let t;switch(e){case fe.ConcatArray:t="concat";break;case fe.SubscribeObservable:t="subscribe";break;case fe.Bind:t="bind";break;default:throw new Error(`Unknown builtin method: ${e}`)}return t}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let zs;function Ws(e){var t;return(null===(t=function(){if(void 0===zs&&(zs=null,fn.trustedTypes))try{zs=fn.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch(e){}return zs}())||void 0===t?void 0:t.createScript(e))||e}function Ks(...e){if(!fn.trustedTypes)return new Function(...e);const t=`(function anonymous(${e.slice(0,-1).join(",")}\n) { ${e.pop().toString()}\n})`,n=fn.eval(Ws(t));return n.toString=(()=>t),n.bind(fn)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Ys{evaluateStatements(e,t,n,r){const i=new Xs(n),s=yr.createRoot();return t.length>0&&!t[0].isEquivalent(Gt("use strict").toStmt())&&(t=[Gt("use strict").toStmt(),...t]),i.visitAllStatements(t,s),i.createReturnStmt(s),this.evaluateCode(e,s,i.getArgs(),r)}evaluateCode(e,t,n,r){let i=`"use strict";${t.toSource()}\n//# sourceURL=${e}`;const s=[],o=[];for(const e in n)o.push(n[e]),s.push(e);if(r){const n=Ks(...s.concat("return null;")).toString(),r=n.slice(0,n.indexOf("return null;")).split("\n").length-1;i+=`\n${t.toSourceMapGenerator(e,r).toJsComment()}`}const a=Ks(...s.concat(i));return this.executeFunction(a,o)}executeFunction(e,t){return e(...t)}}class Xs extends Hs{constructor(e){super(),this.reflector=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new dt(new tt(this._evalExportedVars.map(e=>new et(e,Pt(e),!1)))).visitStatement(this,e)}getArgs(){const e={};for(let t=0;t=Js&&e<=io||e==ea}function ra(e){return xo<=e&&e<=Ao}function ia(e){return e>=Bo&&e<=Xo||e>=Do&&e<=Ro}function sa(e){return e===eo||e===ro}function oa(e){return xo<=e&&e<=To} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class aa{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){const t=this.file.content,n=t.length;let r=this.offset,i=this.line,s=this.col;for(;r>0&&e<0;){if(r--,e++,t.charCodeAt(r)==eo){i--;const e=t.substr(0,r-1).lastIndexOf(String.fromCharCode(eo));s=e>0?r-e:r}else s--}for(;r0;){const n=t.charCodeAt(r);r++,e--,n==eo?(i++,s=0):s++}return new aa(this.file,r,i,s)}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let i=r,s=0,o=0;for(;s0&&(s++,"\n"!=n[--r]||++o!=t););for(s=0,o=0;s]${e.after}")`:this.msg}toString(){const e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}}function _a(e,t){const n=Ln(t),r=null!=n?`in ${e} ${Nn(t)} in ${n}`:`in ${e} ${Nn(t)}`,i=new ca("",r);return new ua(new aa(i,-1,-1,-1),new aa(i,-1,-1,-1))}function ma(e,t,n){const r=new ca("",`in ${e} ${t} in ${n}`);return new ua(new aa(r,-1,-1,-1),new aa(r,-1,-1,-1))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class ga{constructor(e){this.context=e}resolveExternalReference(e){if("@angular/core"!==e.moduleName)throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}parameters(e){throw new Error("Not implemented.")}annotations(e){throw new Error("Not implemented.")}shallowAnnotations(e){throw new Error("Not implemented.")}tryAnnotations(e){throw new Error("Not implemented.")}propMetadata(e){throw new Error("Not implemented.")}hasLifecycleHook(e,t){throw new Error("Not implemented.")}guards(e){throw new Error("Not implemented.")}componentModuleUrl(e,t){throw new Error("Not implemented.")}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ba(e,t=!1){return jt(Object.keys(e).map(n=>({key:n,quoted:t,value:e[n]})))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ya(e){const{internalType:t,type:n,bootstrap:r,declarations:i,imports:s,exports:o,schemas:a,containsForwardDecls:c,emitInline:u,id:l}=e,h=[],d={type:t};if(r.length&&(d.bootstrap=Ea(r,c)),u)i.length&&(d.declarations=Ea(i,c)),s.length&&(d.imports=Ea(s,c)),o.length&&(d.exports=Ea(o,c));else{const t=function(e){const{adjacentType:t,declarations:n,imports:r,exports:i,containsForwardDecls:s}=e,o={};n.length&&(o.declarations=Ea(n,s));r.length&&(o.imports=Ea(r,s));i.length&&(o.exports=Ea(i,s));if(0===Object.keys(o).length)return null;const a=(u=new Ie(Mt(or.setNgModuleScope),[t,Sr(o)]),kr("ngJitMode",u)),c=new Ke([],[a.toStmt()]);var u;return new Ie(c,[]).toStmt()}(e);null!==t&&h.push(t)}return a&&a.length&&(d.schemas=Ft(a.map(e=>e.value))),l&&(d.id=l),{expression:Mt(or.defineNgModule).callFn([Sr(d)]),type:new ne(Mt(or.NgModuleDefWithMeta,[new ne(n.type),wa(i),wa(s),wa(o)])),additionalStatements:h}}function va(e){const t=Ms({name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:0,deps:e.deps,injectFn:or.inject,target:ks.NgModule}),n={factory:t.factory};return null!==e.providers&&(n.providers=e.providers),e.imports.length>0&&(n.imports=Ft(e.imports)),{expression:Mt(or.defineInjector).callFn([Sr(n)]),type:new ne(Mt(or.InjectorDef,[new ne(e.type.type)])),statements:t.statements}}function wa(e){const t=e.map(e=>Lt(e.type));return e.length>0?Nt(Ft(t)):le}function Ea(e,t){const n=Ft(e.map(e=>e.value));return t?Vt([],[new dt(n)]):n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Sa(e){const t=[];return t.push({key:"name",value:Gt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:Gt(e.pure),quoted:!1}),{expression:Mt(or.definePipe).callFn([jt(t)]),type:new ne(Mt(or.PipeDefWithMeta,[Or(e.type.type,e.typeArgumentCount),new ne(new Ae(e.pipeName))]))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Ca{constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message=`Parser Error: ${e} ${n} [${t}] in ${r}`}}class Oa{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Qa(e+this.start,e+this.end)}}class Ia{constructor(e,t){this.span=e,this.sourceSpan=t}visit(e,t=null){return null}toString(){return"AST"}}class xa extends Ia{constructor(e,t,n){super(e,t),this.nameSpan=n}}class Ta extends Ia{constructor(e,t,n,r,i){super(e,t),this.prefix=n,this.uninterpretedExpression=r,this.location=i}visit(e,t=null){return e.visitQuote(this,t)}toString(){return"Quote"}}class Aa extends Ia{visit(e,t=null){}}class Da extends Ia{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}class ka extends Da{visit(e,t=null){var n;return null===(n=e.visitThisReceiver)||void 0===n?void 0:n.call(e,this,t)}}class Pa extends Ia{constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}}class Ma extends Ia{constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}}class Ra extends xa{constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}}class Na extends xa{constructor(e,t,n,r,i,s){super(e,t,n),this.receiver=r,this.name=i,this.value=s}visit(e,t=null){return e.visitPropertyWrite(this,t)}}class La extends xa{constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}class Fa extends Ia{constructor(e,t,n,r){super(e,t),this.obj=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}}class ja extends Ia{constructor(e,t,n,r,i){super(e,t),this.obj=n,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}}class Va extends xa{constructor(e,t,n,r,i,s){super(e,t,s),this.exp=n,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}}class Ba extends Ia{constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}class Ua extends Ia{constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}}class Ga extends Ia{constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}}class qa extends Ia{constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}}class $a extends Ia{constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}}class Ha extends $a{constructor(e,t,n,r,i,s,o){super(e,t,i,s,o),this.operator=n,this.expr=r}static createMinus(e,t,n){return new Ha(e,t,"-",n,"-",new Ba(e,t,0),n)}static createPlus(e,t,n){return new Ha(e,t,"+",n,"-",n,new Ba(e,t,0))}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}}class za extends Ia{constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}}class Wa extends Ia{constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}}class Ka extends xa{constructor(e,t,n,r,i,s){super(e,t,n),this.receiver=r,this.name=i,this.args=s}visit(e,t=null){return e.visitMethodCall(this,t)}}class Ya extends xa{constructor(e,t,n,r,i,s){super(e,t,n),this.receiver=r,this.name=i,this.args=s}visit(e,t=null){return e.visitSafeMethodCall(this,t)}}class Xa extends Ia{constructor(e,t,n,r){super(e,t),this.target=n,this.args=r}visit(e,t=null){return e.visitFunctionCall(this,t)}}class Qa{constructor(e,t){this.start=e,this.end=t}}class Za extends Ia{constructor(e,t,n,r,i){super(new Oa(0,null===t?0:t.length),new Qa(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}}class Ja{constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}}class ec{constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}}class tc{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitFunctionCall(e,t){e.target&&this.visit(e.target,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.obj,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.obj,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitQuote(e,t){}visitAll(e,t){for(const n of e)this.visit(n,t)}}class nc{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){return new qa(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new Ba(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new Ra(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new Na(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new La(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitMethodCall(e,t){return new Ka(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))}visitSafeMethodCall(e,t){return new Ya(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))}visitFunctionCall(e,t){return new Xa(e.span,e.sourceSpan,e.target.visit(this),this.visitAll(e.args))}visitLiteralArray(e,t){return new Ua(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new Ga(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,t){switch(e.operator){case"+":return Ha.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Ha.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error(`Unknown unary operator ${e.operator}`)}}visitBinary(e,t){return new $a(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new za(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new Wa(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new Ma(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new Va(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new Fa(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new ja(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this),e.value.visit(this))}visitAll(e){const t=[];for(let n=0;n{if(e instanceof ut&&e.name==t.name&&e.value instanceof Xe){const t=e.value.lhs;return new dt(t.value)}return e})}}function lc(e,t,n,r,i,s,o,a){e||(e=new wc(a));const c=hc({createLiteralArrayConverter:e=>e=>Ft(e),createLiteralMapConverter:e=>t=>{return jt(e.map((e,n)=>({key:e.key,value:t[n],quoted:e.quoted})))},createPipeConverter:e=>{throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${e}`)}},n),u=new vc(e,t,r,i,s,o),l=[];!function e(t,n){Array.isArray(t)?t.forEach(t=>e(t,n)):n.push(t)}(c.visit(u,pa.Statement),l),function(e,t,n){for(let r=e-1;r>=0;r--)n.unshift(mc(t,r))}(u.temporaryCount,r,l),u.usesImplicitReceiver&&e.notifyImplicitReceiverUse();const h=l.length-1;let d=null;if(h>=0){const e=function(e){if(e instanceof ht)return e.expr;if(e instanceof dt)return e.value;return null}(l[h]);e&&(d=function(e){return Pt(`pd_${e}`)}(r),l[h]=d.set(e.cast(se).notIdentical(Gt(!1))).toDeclStmt(null,[st.Final]))}return new uc(l,d)}function hc(e,t){return function(e,t){const n=new yc(e);return t.visit(n)}(e,t)}class dc{constructor(e,t){this.stmts=e,this.currValExpr=t}}function pc(e,t,n,r,i,s){e||(e=new wc);const o=new vc(e,t,r,s),a=n.visit(o,pa.Expression),c=fc(o,r);if(o.usesImplicitReceiver&&e.notifyImplicitReceiverUse(),0===o.temporaryCount&&i==da.TrySimple)return new dc([],a);if(i===da.Expression)return new dc(c,a);const u=function(e){return Pt(`currVal_${e}`)}(r);return c.push(u.set(a).toDeclStmt(se,[st.Final])),new dc(c,u)}function fc(e,t){const n=[];for(let r=0;re.visit(this,t));return new Ec(e.span,e.sourceSpan,n,this._converterFactory.createPipeConverter(e.name,n.length))}visitLiteralArray(e,t){const n=e.expressions.map(e=>e.visit(this,t));return new Ec(e.span,e.sourceSpan,n,this._converterFactory.createLiteralArrayConverter(e.expressions.length))}visitLiteralMap(e,t){const n=e.values.map(e=>e.visit(this,t));return new Ec(e.span,e.sourceSpan,n,this._converterFactory.createLiteralMapConverter(e.keys))}}class vc{constructor(e,t,n,r,i,s){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this.baseSourceSpan=i,this.implicitReceiverAccesses=s,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}visitUnary(e,t){let n;switch(e.operator){case"+":n=he.Plus;break;case"-":n=he.Minus;break;default:throw new Error(`Unsupported operator ${e.operator}`)}return bc(t,new Ye(n,this._visit(e.expr,pa.Expression),void 0,this.convertSourceSpan(e.span)))}visitBinary(e,t){let n;switch(e.operation){case"+":n=de.Plus;break;case"-":n=de.Minus;break;case"*":n=de.Multiply;break;case"/":n=de.Divide;break;case"%":n=de.Modulo;break;case"&&":n=de.And;break;case"||":n=de.Or;break;case"==":n=de.Equals;break;case"!=":n=de.NotEquals;break;case"===":n=de.Identical;break;case"!==":n=de.NotIdentical;break;case"<":n=de.Lower;break;case">":n=de.Bigger;break;case"<=":n=de.LowerEquals;break;case">=":n=de.BiggerEquals;break;default:throw new Error(`Unsupported operation ${e.operation}`)}return bc(t,new Xe(n,this._visit(e.left,pa.Expression),this._visit(e.right,pa.Expression),void 0,this.convertSourceSpan(e.span)))}visitChain(e,t){return function(e,t){if(e!==pa.Statement)throw new Error(`Expected a statement, but saw ${t}`)}(t,e),this.visitAll(e.expressions,t)}visitConditional(e,t){return bc(t,this._visit(e.condition,pa.Expression).conditional(this._visit(e.trueExp,pa.Expression),this._visit(e.falseExp,pa.Expression),this.convertSourceSpan(e.span)))}visitPipe(e,t){throw new Error(`Illegal state: Pipes should have been converted into functions. Pipe: ${e.name}`)}visitFunctionCall(e,t){const n=this.visitAll(e.args,pa.Expression);let r;return bc(t,r=e instanceof Ec?e.converter(n):this._visit(e.target,pa.Expression).callFn(n,this.convertSourceSpan(e.span)))}visitImplicitReceiver(e,t){return gc(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver}visitThisReceiver(e,t){return this.visitImplicitReceiver(e,t)}visitInterpolation(e,t){gc(t,e);const n=[Gt(e.expressions.length)];for(let t=0;tthis._visit(e,t))}visitQuote(e,t){throw new Error(`Quotes are not supported for evaluation!\n Statement: ${e.uninterpretedExpression} located at ${e.location}`)}_visit(e,t){const n=this._resultMap.get(e);return n||(this._nodeMap.get(e)||e).visit(this,t)}convertSafeAccess(e,t,n){let r=this._visit(t.receiver,pa.Expression),i=void 0;this.needsTemporary(t.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(t.receiver,i));const s=r.isBlank();t instanceof Ya?this._nodeMap.set(t,new Ka(t.span,t.sourceSpan,t.nameSpan,t.receiver,t.name,t.args)):this._nodeMap.set(t,new Ra(t.span,t.sourceSpan,t.nameSpan,t.receiver,t.name));const o=this._visit(e,pa.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),bc(n,s.conditional(Gt(null),o))}leftMostSafeNode(e){const t=(e,t)=>(this._nodeMap.get(t)||t).visit(e);return e.visit({visitUnary:e=>null,visitBinary:e=>null,visitChain:e=>null,visitConditional:e=>null,visitFunctionCall:e=>null,visitImplicitReceiver:e=>null,visitThisReceiver:e=>null,visitInterpolation:e=>null,visitKeyedRead(e){return t(this,e.obj)},visitKeyedWrite:e=>null,visitLiteralArray:e=>null,visitLiteralMap:e=>null,visitLiteralPrimitive:e=>null,visitMethodCall(e){return t(this,e.receiver)},visitPipe:e=>null,visitPrefixNot:e=>null,visitNonNullAssert:e=>null,visitPropertyRead(e){return t(this,e.receiver)},visitPropertyWrite:e=>null,visitQuote:e=>null,visitSafeMethodCall(e){return t(this,e.receiver)||e},visitSafePropertyRead(e){return t(this,e.receiver)||e}})}needsTemporary(e){const t=(e,t)=>t&&(this._nodeMap.get(t)||t).visit(e);return e.visit({visitUnary(e){return t(this,e.expr)},visitBinary(e){return t(this,e.left)||t(this,e.right)},visitChain:e=>!1,visitConditional(e){return t(this,e.condition)||t(this,e.trueExp)||t(this,e.falseExp)},visitFunctionCall:e=>!0,visitImplicitReceiver:e=>!1,visitThisReceiver:e=>!1,visitInterpolation(e){return((e,n)=>n.some(n=>t(e,n)))(this,e.expressions)},visitKeyedRead:e=>!1,visitKeyedWrite:e=>!1,visitLiteralArray:e=>!0,visitLiteralMap:e=>!0,visitLiteralPrimitive:e=>!1,visitMethodCall:e=>!0,visitPipe:e=>!0,visitPrefixNot(e){return t(this,e.expression)},visitNonNullAssert(e){return t(this,e.expression)},visitPropertyRead:e=>!1,visitPropertyWrite:e=>!1,visitQuote:e=>!1,visitSafeMethodCall:e=>!0,visitSafePropertyRead:e=>!1})}allocateTemporary(){const e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new ye(_c(this.bindingId,e))}releaseTemporary(e){if(this._currentTemporary--,e.name!=_c(this.bindingId,this._currentTemporary))throw new Error(`Temporary ${e.name} released out of order`)}convertSourceSpan(e){if(this.baseSourceSpan){const t=this.baseSourceSpan.start.moveBy(e.start),n=this.baseSourceSpan.start.moveBy(e.end),r=this.baseSourceSpan.fullStart.moveBy(e.start);return new ua(t,n,r)}return null}addImplicitReceiverAccess(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}class wc{constructor(e){this.globals=e}notifyImplicitReceiverUse(){}getLocal(e){return e===cc.event.name?cc.event:null}}class Ec extends Xa{constructor(e,t,n,r){super(e,t,null,n),this.args=n,this.converter=r}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Sc{constructor(){this.strictStyling=!0}shimCssText(e,t,n=""){const r=e.match(Gc)||[];return e=function(e){return e.replace(Uc,"")}(e),e=this._insertDirectives(e),[this._scopeCssText(e,t,n),...r].join("\n")}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_insertPolyfillDirectivesInCssText(e){return e.replace(Oc,function(...e){return e[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(Ic,(...e)=>{const t=e[0].replace(e[1],"").replace(e[2],"");return e[4]+t})}_scopeCssText(e,t,n){const r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()}_extractUnscopedRulesFromCssText(e){let t,n="";for(xc.lastIndex=0;null!==(t=xc.exec(e));){n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n"}return n}_convertColonHost(e){return this._convertColonRule(e,kc,this._colonHostPartReplacer)}_convertColonHostContext(e){return this._convertColonRule(e,Pc,this._colonHostContextPartReplacer)}_convertColonRule(e,t,n){return e.replace(t,function(...e){if(e[2]){const t=e[2].split(","),r=[];for(let i=0;i-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n}_colonHostPartReplacer(e,t,n){return e+t.replace(Tc,"")+n}_convertShadowDOMSelectors(e){return Nc.reduce((e,t)=>e.replace(t," "),e)}_scopeSelectors(e,t,n){return function(e,t){const n=Qc(e,Kc,$c),r=Qc(n.escapedString,Wc,qc);let i=0,s=0;return r.escapedString.replace(Hc,(...e)=>{const n=e[2];let s="",o=e[4],a="";o&&o.startsWith("{"+qc)&&(s=r.blocks[i++],o=o.substring(qc.length+1),a="{");const c=t(new Yc(n,s));return`${e[1]}${c.selector}${e[3]}${a}${c.content}${o}`}).replace(zc,()=>n.blocks[s++])}(e,e=>{let r=e.selector,i=e.content;return"@"!=e.selector[0]?r=this._scopeSelector(e.selector,t,n,this.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=this._scopeSelectors(e.content,t,n)),new Yc(r,i)})}_scopeSelector(e,t,n,r){return e.split(",").map(e=>e.trim().split(Lc)).map(e=>{const[i,...s]=e;return[(e=>this._selectorNeedsScoping(e,t)?r?this._applyStrictSelectorScope(e,t,n):this._applySelectorScope(e,t,n):e)(i),...s].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Fc,"m")}_applySelectorScope(e,t,n){return this._applySimpleSelectorScope(e,t,n)}_applySimpleSelectorScope(e,t,n){if(jc.lastIndex=0,jc.test(e)){const r=this.strictStyling?`[${n}]`:t;return e.replace(Rc,(e,t)=>t.replace(/([^:]*)(:*)(.*)/,(e,t,n,i)=>t+r+n+i)).replace(jc,r+" ")}return t+" "+e}_applyStrictSelectorScope(e,t,n){const r="["+(t=t.replace(/\[is=([^\]]*)\]/g,(e,...t)=>t[0]))+"]",i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(Mc)>-1)i=this._applySimpleSelectorScope(e,t,n);else{const t=e.replace(jc,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(i=e[1]+r+e[2]+e[3])}}return i},s=new Cc(e);let o,a="",c=0;const u=/( |>|\+|~(?!=))\s*/g;let l=!((e=s.content()).indexOf(Mc)>-1);for(;null!==(o=u.exec(e));){const t=o[1],n=e.slice(c,o.index).trim();a+=`${(l=l||n.indexOf(Mc)>-1)?i(n):n} ${t} `,c=u.lastIndex}const h=e.substring(c);return a+=(l=l||h.indexOf(Mc)>-1)?i(h):h,s.restore(a)}_insertPolyfillHostInCssText(e){return e.replace(Bc,Ac).replace(Vc,Tc)}}class Cc{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=this._escapeRegexMatches(e,/(\\.)/g),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(e,t,n)=>{const r=`__ph-${this.index}__`;return this.placeholders.push(n),this.index++,t+r})}restore(e){return e.replace(/__ph-(\d+)__/g,(e,t)=>this.placeholders[+t])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(e,t)=>{const n=`__ph-${this.index}__`;return this.placeholders.push(t),this.index++,n})}}const Oc=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Ic=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,xc=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Tc="-shadowcsshost",Ac="-shadowcsscontext",Dc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",kc=new RegExp("("+Tc+Dc,"gim"),Pc=new RegExp("("+Ac+Dc,"gim"),Mc=Tc+"-no-combinator",Rc=/-shadowcsshost-no-combinator([^\s]*)/,Nc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Lc=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Fc="([>\\s~+[.,{:][\\s\\S]*)?$",jc=/-shadowcsshost/gim,Vc=/:host/gim,Bc=/:host-context/gim,Uc=/\/\*\s*[\s\S]*?\*\//g;const Gc=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;const qc="%BLOCK%",$c="%QUOTED%",Hc=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,zc=/%QUOTED%/g,Wc=new Map([["{","}"]]),Kc=new Map([['"','"'],["'","'"]]);class Yc{constructor(e,t){this.selector=e,this.content=t}}class Xc{constructor(e,t){this.escapedString=e,this.blocks=t}}function Qc(e,t,n){const r=[],i=[];let s,o,a=0,c=0,u=-1;for(let l=0;lGt(this._shimIfNeeded(e,r))),o=[];n.styleUrls.forEach(t=>{const n=s.length;s.push(null),o.push(new eu(ru(null),t,t=>s[n]=e.importExpr(t)))});const a=ru(i?t:null),c=Pt(a).set(Ft(s,new re(se,[Q.Const]))).toDeclStmt(null,i?[st.Final]:[st.Final,st.Exported]);return e.statements.push(c),new tu(e,a,o,r,n)}_shimIfNeeded(e,t){return t?this._shadowCss.shimCssText(e,Jc,Zc):e}}function ru(e){let t="styles";return e&&(t+=`_${Nn(e.type)}`),t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class iu{constructor(e,t=-1){this.path=e,this.position=t}get empty(){return!this.path||!this.path.length}get head(){return this.path[0]}get tail(){return this.path[this.path.length-1]}parentOf(e){return e&&this.path[this.path.indexOf(e)-1]}childOf(e){return this.path[this.path.indexOf(e)+1]}first(e){for(let t=this.path.length-1;t>=0;t--){let n=this.path[t];if(n instanceof e)return n}}push(e){this.path.push(e)}pop(){return this.path.pop()}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class su{constructor(e,t){this.sourceSpan=e,this.i18n=t}}class ou extends su{constructor(e,t,n){super(t,n),this.value=e}visit(e,t){return e.visitText(this,t)}}class au extends su{constructor(e,t,n,r,i,s){super(r,s),this.switchValue=e,this.type=t,this.cases=n,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}}class cu{constructor(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}}class uu extends su{constructor(e,t,n,r,i,s){super(n,s),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i}visit(e,t){return e.visitAttribute(this,t)}}class lu extends su{constructor(e,t,n,r,i,s=null,o){super(r,o),this.name=e,this.attrs=t,this.children=n,this.startSourceSpan=i,this.endSourceSpan=s}visit(e,t){return e.visitElement(this,t)}}class hu{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}}function du(e,t,n=null){const r=[],i=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach(e=>{const t=i(e);t&&r.push(t)}),r}class pu{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitChildren(e,t){let n=[],r=this;return t(function(t){t&&n.push(du(r,t,e))}),Array.prototype.concat.apply([],n)}}function fu(e,t){const n=[];return du(new class extends pu{visit(e,r){const i=function e(t){const n=t.sourceSpan.start.offset;let r=t.sourceSpan.end.offset;return t instanceof lu&&(t.endSourceSpan?r=t.endSourceSpan.end.offset:t.children&&t.children.length&&(r=e(t.children[t.children.length-1]).end)),{start:n,end:r}}(e);if(!(i.start<=t&&t;" or "&#x;" syntax`}var Su;!function(e){e.HEX="hexadecimal",e.DEC="decimal"}(Su||(Su={}));class Cu{constructor(e){this.error=e}}class Ou{constructor(e,t,n){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||qs,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(e=>e.codePointAt(0)||0);const r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Pu(e,r):new ku(e,r),this._preserveLineEndings=n.preserveLineEndings||!1,this._escapedString=n.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(vu,"\n")}tokenize(){for(;this._cursor.peek()!==Qs;){const e=this._cursor.clone();try{this._attemptCharCode(So)?this._attemptCharCode(so)?this._attemptCharCode(No)?this._consumeCdata(e):this._attemptCharCode(bo)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(vo)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}this._beginToken(_u.EOF),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(this._cursor.peek()!==Jo&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Jo){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(null===this._currentTokenStart)throw new gu("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new gu("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));const n=new mu(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const n=new gu(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Cu(n)}handleError(e){if(e instanceof Mu&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Cu))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return t=this._cursor.peek(),n=e,Du(t)==Du(n)&&(this._cursor.advance(),!0);var t,n}_requireCharCode(e){const t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(wu(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){const t=e.length;if(this._cursor.charsLeft()this._attemptStr("--\x3e")),this._beginToken(_u.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(e){this._beginToken(_u.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(_u.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(_u.DOC_TYPE,e);const t=this._cursor.clone();this._attemptUntilChar(Oo);const n=this._cursor.getChars(t);this._cursor.advance(),this._endToken([n])}_consumePrefixAndName(){const e=this._cursor.clone();let t="";for(;this._cursor.peek()!==wo&&!(((n=this._cursor.peek())Ao));)this._cursor.advance();var n;let r;return this._cursor.peek()===wo?(t=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(xu,""===t?0:1),[t,this._cursor.getChars(r)]}_consumeTagOpen(e){let t,n,i;try{if(!ia(this._cursor.peek()))throw this._createError(wu(this._cursor.peek()),this._cursor.getSpan(e));for(n=(i=this._consumeTagOpenStart(e)).parts[0],t=i.parts[1],this._attemptCharCodeUntilFn(Iu);this._cursor.peek()!==vo&&this._cursor.peek()!==Oo&&this._cursor.peek()!==So;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Iu),this._attemptCharCode(Co)&&(this._attemptCharCodeUntilFn(Iu),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Iu);this._consumeTagOpenEnd()}catch(t){if(t instanceof Cu)return void(i?i.type=_u.INCOMPLETE_TAG_OPEN:(this._beginToken(_u.TEXT,e),this._endToken(["<"])));throw t}const s=this._getTagDefinition(t).getContentType(n);s===r.RAW_TEXT?this._consumeRawTextWithTagClose(n,t,!1):s===r.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,t,!0)}_consumeRawTextWithTagClose(e,t,n){this._consumeRawText(n,()=>!!this._attemptCharCode(So)&&(!!this._attemptCharCode(vo)&&(this._attemptCharCodeUntilFn(Iu),!!this._attemptStrCaseInsensitive(t)&&(this._attemptCharCodeUntilFn(Iu),this._attemptCharCode(Oo))))),this._beginToken(_u.TAG_CLOSE),this._requireCharCodeUntilFn(e=>e===Oo,3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(_u.TAG_OPEN_START,e);const t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){const e=this._cursor.peek();if(e===ho||e===oo)throw this._createError(wu(e),this._cursor.getSpan());this._beginToken(_u.ATTR_NAME);const t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){let e;if(this._cursor.peek()===ho||this._cursor.peek()===oo){this._beginToken(_u.ATTR_QUOTE);const t=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(t)]),this._beginToken(_u.ATTR_VALUE);const n=[];for(;this._cursor.peek()!==t;)n.push(this._readChar(!0));e=n.join(""),this._endToken([this._processCarriageReturns(e)]),this._beginToken(_u.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(t)])}else{this._beginToken(_u.ATTR_VALUE);const t=this._cursor.clone();this._requireCharCodeUntilFn(xu,1),e=this._cursor.getChars(t),this._endToken([this._processCarriageReturns(e)])}}_consumeTagOpenEnd(){const e=this._attemptCharCode(vo)?_u.TAG_OPEN_END_VOID:_u.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Oo),this._endToken([])}_consumeTagClose(e){this._beginToken(_u.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Iu);const t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Iu),this._requireCharCode(Oo),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(_u.EXPANSION_FORM_START),this._requireCharCode(Qo),this._endToken([]),this._expansionCaseStack.push(_u.EXPANSION_FORM_START),this._beginToken(_u.RAW_TEXT);const e=this._readUntil(go),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{const n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(go),this._attemptCharCodeUntilFn(Iu),this._beginToken(_u.RAW_TEXT);const n=this._readUntil(go);this._endToken([n]),this._requireCharCode(go),this._attemptCharCodeUntilFn(Iu)}_consumeExpansionCaseStart(){this._beginToken(_u.EXPANSION_CASE_VALUE);const e=this._readUntil(Qo).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Iu),this._beginToken(_u.EXPANSION_CASE_EXP_START),this._requireCharCode(Qo),this._endToken([]),this._attemptCharCodeUntilFn(Iu),this._expansionCaseStack.push(_u.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(_u.EXPANSION_CASE_EXP_END),this._requireCharCode(Jo),this._endToken([]),this._attemptCharCodeUntilFn(Iu),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(_u.EXPANSION_FORM_END),this._requireCharCode(Jo),this._endToken([]),this._expansionCaseStack.pop()}_consumeText(){const e=this._cursor.clone();this._beginToken(_u.TEXT,e);const t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])}_isTextEnd(){if(this._cursor.peek()===So||this._cursor.peek()===Qs)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(this._cursor.peek()===Jo&&this._isInExpansionCase())return!0}return!1}_readUntil(e){const t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===_u.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===_u.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==Qo)return!1;if(this._interpolationConfig){const e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}}function Iu(e){return!na(e)||e===Qs}function xu(e){return na(e)||e===Oo||e===So||e===vo||e===ho||e===oo||e===Co}function Tu(e){return e==Eo||e==Qs||!function(e){return e>=Bo&&e<=qo||e>=Do&&e<=Po||ra(e)}(e)}function Au(e){return e==Eo||e==Qs||!ia(e)}function Du(e){return e>=Bo&&e<=Xo?e-Bo+Do:e}class ku{constructor(e,t){if(e instanceof ku){this.file=e.file,this.input=e.input,this.end=e.end;const t=e.state;this.state={peek:t.peek,offset:t.offset,line:t.line,column:t.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new ku(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){let n=e=e||this;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)n===e&&(e=e.clone()),e.advance();const r=this.locationFromCursor(e),i=this.locationFromCursor(this),s=n!==e?this.locationFromCursor(n):r;return new ua(r,i,s)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Mu('Unexpected character "EOF"',this);const t=this.charAt(e.offset);t===eo?(e.line++,e.column=0):sa(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Qs:this.charAt(e.offset)}locationFromCursor(e){return new aa(e.file,e.state.offset,e.state.line,e.state.column)}}class Pu extends ku{constructor(e,t){e instanceof Pu?(super(e),this.internalState=Object.assign({},e.internalState)):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Pu(this)}getChars(e){const t=e.clone();let n="";for(;t.internalState.offsetthis.internalState.peek;if(e()===Lo)if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),e()===$o)this.state.peek=eo;else if(e()===Ho)this.state.peek=ro;else if(e()===Ko)this.state.peek=to;else if(e()===zo)this.state.peek=Js;else if(e()===Uo)this.state.peek=Zs;else if(e()===qo)this.state.peek=no;else if(e()===Wo)if(this.advanceState(this.internalState),e()===Qo){this.advanceState(this.internalState);const t=this.clone();let n=0;for(;e()!==Jo;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(t,n)}else{const e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(e()===Yo){this.advanceState(this.internalState);const e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(oa(e())){let t="",n=0,r=this.clone();for(;oa(e())&&n<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else sa(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){const n=this.input.substr(e.internalState.offset,t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new Mu("Invalid hexadecimal escape sequence",e);return r}}class Mu{constructor(e,t){this.msg=e,this.cursor=t}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Ru extends fa{constructor(e,t,n){super(t,n),this.elementName=e}static create(e,t,n){return new Ru(e,t,n)}}class Nu{constructor(e,t){this.rootNodes=e,this.errors=t}}class Lu{constructor(e){this.getTagDefinition=e}parse(e,t,n){const r=yu(e,t,this.getTagDefinition,n),i=new Fu(r.tokens,this.getTagDefinition);return i.build(),new Nu(i.rootNodes,r.errors.concat(i.errors))}}class Fu{constructor(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==_u.EOF;)this._peek.type===_u.TAG_OPEN_START||this._peek.type===_u.INCOMPLETE_TAG_OPEN?this._consumeStartTag(this._advance()):this._peek.type===_u.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===_u.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===_u.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===_u.TEXT||this._peek.type===_u.RAW_TEXT||this._peek.type===_u.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===_u.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance()}_advance(){const e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;const s=new ua(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),o=new ua(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new cu(e.parts[0],i.rootNodes,s,e.sourceSpan,o)}_collectExpansionExpTokens(e){const t=[],n=[_u.EXPANSION_CASE_EXP_START];for(;;){if(this._peek.type!==_u.EXPANSION_FORM_START&&this._peek.type!==_u.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===_u.EXPANSION_CASE_EXP_END){if(!ju(n,_u.EXPANSION_CASE_EXP_START))return this.errors.push(Ru.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===_u.EXPANSION_FORM_END){if(!ju(n,_u.EXPANSION_FORM_START))return this.errors.push(Ru.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===_u.EOF)return this.errors.push(Ru.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){let t=e.parts[0];if(t.length>0&&"\n"==t[0]){const e=this._getParentElement();null!=e&&0==e.children.length&&this.getTagDefinition(e.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new ou(t,e.sourceSpan))}_closeVoidElement(){const e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){const[t,n]=e.parts,r=[];for(;this._peek.type===_u.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));const i=this._getElementFullName(t,n,this._getParentElement());let s=!1;if(this._peek.type===_u.TAG_OPEN_END_VOID){this._advance(),s=!0;const t=this.getTagDefinition(i);t.canSelfClose||null!==c(i)||t.isVoid||this.errors.push(Ru.create(i,e.sourceSpan,`Only void and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===_u.TAG_OPEN_END&&(this._advance(),s=!1);const o=this._peek.sourceSpan.fullStart,a=new ua(e.sourceSpan.start,o,e.sourceSpan.fullStart),u=new ua(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new lu(i,r,[],a,u,void 0);this._pushElement(l),s?this._popElement(i,a):e.type===_u.INCOMPLETE_TAG_OPEN&&(this._popElement(i,null),this.errors.push(Ru.create(i,a,`Opening tag "${i}" not terminated.`)))}_pushElement(e){const t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){const t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push(Ru.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(t,e.sourceSpan)){const n=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ru.create(t,e.sourceSpan,n))}}_popElement(e,t){for(let n=this._elementStack.length-1;n>=0;n--){const r=this._elementStack[n];if(r.name==e)return r.endSourceSpan=t,r.sourceSpan.end=null!==t?t.end:r.sourceSpan.end,this._elementStack.splice(n,this._elementStack.length-n),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1}_consumeAttr(e){const t=u(e.parts[0],e.parts[1]);let n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===_u.ATTR_QUOTE&&this._advance(),this._peek.type===_u.ATTR_VALUE){const e=this._advance();r=e.parts[0],n=e.sourceSpan.end,i=e.sourceSpan}if(this._peek.type===_u.ATTR_QUOTE){n=this._advance().sourceSpan.end}const s=new ua(e.sourceSpan.start,e.sourceSpan.end);return new uu(t,r,new ua(e.sourceSpan.start,n,e.sourceSpan.fullStart),s,i)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){const t=this._getParentElement();null!=t?t.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,t,n){if(""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=n){const t=i(n.name)[1];this.getTagDefinition(t).preventNamespaceInheritance||(e=c(n.name))}return u(e,t)}}function ju(e,t){return e.length>0&&e[e.length-1]===t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Vu extends Lu{constructor(){super(_)}parse(e,t,n){return super.parse(e,t,n)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Bu="ngPreserveWhitespaces",Uu=new Set(["pre","template","textarea","script","style"]),Gu=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",qu=new RegExp(`[^${Gu}]`),$u=new RegExp(`[${Gu}]{2,}`,"g");function Hu(e){return e.replace(new RegExp(h,"g")," ")}class zu{visitElement(e,t){return Uu.has(e.name)||e.attrs.some(e=>e.name===Bu)?new lu(e.name,du(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new lu(e.name,e.attrs,function(e,t){const n=[];return t.forEach((r,i)=>{const s={prev:t[i-1],next:t[i+1]},o=r.visit(e,s);o&&n.push(o)}),n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,t){return e.name!==Bu?e:null}visitText(e,t){const n=e.value.match(qu),r=t&&(t.prev instanceof au||t.next instanceof au);return n||r?new ou(Hu(e.value).replace($u," "),e.sourceSpan,e.i18n):null}visitComment(e,t){return e}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}}function Wu(e){return new Nu(du(new zu,e.rootNodes),e.errors)}const Ku=["zero","one","two","few","many","other"];function Yu(e){const t=new Zu;return new Xu(du(t,e),t.isExpanded,t.errors)}class Xu{constructor(e,t,n){this.nodes=e,this.expanded=t,this.errors=n}}class Qu extends fa{constructor(e,t){super(e,t)}}class Zu{constructor(){this.isExpanded=!1,this.errors=[]}visitElement(e,t){return new lu(e.name,e.attrs,du(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitAttribute(e,t){return e}visitText(e,t){return e}visitComment(e,t){return e}visitExpansion(e,t){return this.isExpanded=!0,"plural"==e.type?function(e,t){const n=e.cases.map(e=>{-1!=Ku.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new Qu(e.valueSourceSpan,`Plural cases should be "=" or one of ${Ku.join(", ")}`));const n=Yu(e.expression);return t.push(...n.errors),new lu("ng-template",[new uu("ngPluralCase",`${e.value}`,e.valueSourceSpan,void 0,void 0,void 0)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new uu("[ngPlural]",e.switchValue,e.switchValueSourceSpan,void 0,void 0,void 0);return new lu("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors):function(e,t){const n=e.cases.map(e=>{const n=Yu(e.expression);return t.push(...n.errors),"other"===e.value?new lu("ng-template",[new uu("ngSwitchDefault","",e.valueSourceSpan,void 0,void 0,void 0)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan):new lu("ng-template",[new uu("ngSwitchCase",`${e.value}`,e.valueSourceSpan,void 0,void 0,void 0)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new uu("[ngSwitch]",e.switchValue,e.switchValueSourceSpan,void 0,void 0,void 0);return new lu("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,this.errors)}visitExpansionCase(e,t){throw new Error("Should not be reached")}}class Ju{constructor(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}visit(e,t){return e.visitText(this,t)}}class el{constructor(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}visit(e,t){return e.visitBoundText(this,t)}}class tl{constructor(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}visit(e,t){return e.visitAttr(this,t)}}const nl={4:4,1:1,2:2,0:0,3:3};class rl{constructor(e,t,n,r,i,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.isAnimation=4===this.type}static fromBoundProperty(e){const t=nl[e.type];return new rl(e.name,t,e.securityContext,e.value,e.unit,e.sourceSpan)}visit(e,t){return e.visitElementProperty(this,t)}}class il{constructor(e,t,n,r,i,s){this.name=e,this.target=t,this.phase=n,this.handler=r,this.sourceSpan=i,this.handlerSpan=s,this.fullName=il.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}static calcFullName(e,t,n){return t?`${t}:${e}`:n?`@${e}.${n}`:e}static fromParsedEvent(e){const t=0===e.type?e.targetOrPhase:null,n=1===e.type?e.targetOrPhase:null;return new il(e.name,t,n,e.handler,e.sourceSpan,e.handlerSpan)}visit(e,t){return e.visitEvent(this,t)}}class sl{constructor(e,t,n,r){this.name=e,this.value=t,this.originalValue=n,this.sourceSpan=r}visit(e,t){return e.visitReference(this,t)}}class ol{constructor(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}static fromParsedVariable(e){return new ol(e.name,e.value,e.sourceSpan,e.valueSpan)}visit(e,t){return e.visitVariable(this,t)}}class al{constructor(e,t,n,r,i,s,o,a,c,u,l,h,d){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=s,this.providers=o,this.hasViewContainer=a,this.queryMatches=c,this.children=u,this.ngContentIndex=l,this.sourceSpan=h,this.endSourceSpan=d}visit(e,t){return e.visitElement(this,t)}}class cl{constructor(e,t,n,r,i,s,o,a,c,u,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=s,this.hasViewContainer=o,this.queryMatches=a,this.children=c,this.ngContentIndex=u,this.sourceSpan=l}visit(e,t){return e.visitEmbeddedTemplate(this,t)}}class ul{constructor(e,t,n,r){this.directiveName=e,this.templateName=t,this.value=n,this.sourceSpan=r}visit(e,t){return e.visitDirectiveProperty(this,t)}}class ll{constructor(e,t,n,r,i,s){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=s}visit(e,t){return e.visitDirective(this,t)}}class hl{constructor(e,t,n,r,i,s,o,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=s,this.sourceSpan=o,this.isModule=a}visit(e,t){return null}}var dl;!function(e){e[e.PublicService=0]="PublicService",e[e.PrivateService=1]="PrivateService",e[e.Component=2]="Component",e[e.Directive=3]="Directive",e[e.Builtin=4]="Builtin"}(dl||(dl={}));class pl{constructor(e,t,n){this.index=e,this.ngContentIndex=t,this.sourceSpan=n}visit(e,t){return e.visitNgContent(this,t)}}class fl{visitNgContent(e,t){}visitEmbeddedTemplate(e,t){}visitElement(e,t){}visitReference(e,t){}visitVariable(e,t){}visitEvent(e,t){}visitElementProperty(e,t){}visitAttr(e,t){}visitBoundText(e,t){}visitText(e,t){}visitDirective(e,t){}visitDirectiveProperty(e,t){}}class _l extends fl{constructor(){super()}visitEmbeddedTemplate(e,t){return this.visitChildren(t,t=>{t(e.attrs),t(e.references),t(e.variables),t(e.directives),t(e.providers),t(e.children)})}visitElement(e,t){return this.visitChildren(t,t=>{t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.providers),t(e.children)})}visitDirective(e,t){return this.visitChildren(t,t=>{t(e.inputs),t(e.hostProperties),t(e.hostEvents)})}visitChildren(e,t){let n=[],r=this;return t(function(t){t&&t.length&&n.push(ml(r,t,e))}),Array.prototype.concat.apply([],n)}}function ml(e,t,n=null){const r=[],i=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach(e=>{const t=i(e);t&&r.push(t)}),r} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class gl extends fa{constructor(e,t){super(t,e)}}class bl{constructor(e,t){this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function(e){let t=1;const n=new Map;e.viewQueries&&e.viewQueries.forEach(e=>Cl(n,{meta:e,queryId:t++}));return n}(t),this.viewProviders=new Map,t.viewProviders.forEach(e=>{null==this.viewProviders.get(qn(e.token))&&this.viewProviders.set(qn(e.token),!0)})}}class yl{constructor(e,t,n,r,i,s,o,a,c){this.viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=c,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(e=>this._attrs[e.name]=e.value);const u=r.map(e=>e.directive);if(this._allProviders=function(e,t,n){const r=new Map;return e.forEach(e=>{Sl([{token:{identifier:e.type},useClass:e.type}],e.isComponent?dl.Component:dl.Directive,!0,t,n,r,!1)}),e.filter(e=>e.isComponent).concat(e.filter(e=>!e.isComponent)).forEach(e=>{Sl(e.providers,dl.PublicService,!1,t,n,r,!1),Sl(e.viewProviders,dl.PrivateService,!1,t,n,r,!1)}),r}(u,c,e.errors),this._contentQueries=function(e,t){let n=e;const r=new Map;return t.forEach((e,t)=>{e.queries&&e.queries.forEach(e=>Cl(r,{meta:e,queryId:n++}))}),r}(a,u),Array.from(this._allProviders.values()).forEach(e=>{this._addQueryReadsTo(e.token,e.token,this._queriedTokens)}),o){const e=An(this.viewContext.reflector,xn.TemplateRef);this._addQueryReadsTo(e,e,this._queriedTokens)}s.forEach(e=>{let t=e.value||An(this.viewContext.reflector,xn.ElementRef);this._addQueryReadsTo({value:e.name},t,this._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(xn.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(e=>{(e.eager||this._queriedTokens.get(qn(e.token)))&&this._getOrCreateLocalProvider(e.providerType,e.token,!0)})}afterElement(){Array.from(this._allProviders.values()).forEach(e=>{this._getOrCreateLocalProvider(e.providerType,e.token,!1)})}get transformProviders(){const e=[],t=[];return this._transformedProviders.forEach(n=>{n.eager?t.push(n):e.push(n)}),e.concat(t)}get transformedDirectiveAsts(){const e=this.transformProviders.map(e=>e.token.identifier),t=this._directiveAsts.slice();return t.sort((t,n)=>e.indexOf(t.directive.type)-e.indexOf(n.directive.type)),t}get queryMatches(){const e=[];return this._queriedTokens.forEach(t=>{e.push(...t)}),e}_addQueryReadsTo(e,t,n){this._getQueriesFor(e).forEach(e=>{const r=e.meta.read||t,i=qn(r);let s=n.get(i);s||(s=[],n.set(i,s)),s.push({queryId:e.queryId,value:r})})}_getQueriesFor(e){const t=[];let n,r=this,i=0;for(;null!==r;)(n=r._contentQueries.get(qn(e)))&&t.push(...n.filter(e=>e.meta.descendants||i<=1)),r._directiveAsts.length>0&&i++,r=r._parent;return(n=this.viewContext.viewQueries.get(qn(e)))&&t.push(...n),t}_getOrCreateLocalProvider(e,t,n){const r=this._allProviders.get(qn(t));if(!r||(e===dl.Directive||e===dl.PublicService)&&r.providerType===dl.PrivateService||(e===dl.PrivateService||e===dl.PublicService)&&r.providerType===dl.Builtin)return null;let i=this._transformedProviders.get(qn(t));if(i)return i;if(null!=this._seenProviders.get(qn(t)))return this.viewContext.errors.push(new gl(`Cannot instantiate cyclic dependency! ${Gn(t)}`,this._sourceSpan)),null;this._seenProviders.set(qn(t),!0);const s=r.providers.map(e=>{let t=e.useValue,i=e.useExisting,s=void 0;if(null!=e.useExisting){const s=this._getDependency(r.providerType,{token:e.useExisting},n);null!=s.token?i=s.token:(i=null,t=s.value)}else if(e.useFactory){s=(e.deps||e.useFactory.diDeps).map(e=>this._getDependency(r.providerType,e,n))}else if(e.useClass){s=(e.deps||e.useClass.diDeps).map(e=>this._getDependency(r.providerType,e,n))}return wl(e,{useExisting:i,useValue:t,deps:s})});return i=El(r,{eager:n,providers:s}),this._transformedProviders.set(qn(t),i),i}_getLocalDependency(e,t,n=!1){if(t.isAttribute){const e=this._attrs[t.token.value];return{isValue:!0,value:null==e?null:e}}if(null!=t.token){if(e===dl.Directive||e===dl.Component){if(qn(t.token)===this.viewContext.reflector.resolveExternalReference(xn.Renderer)||qn(t.token)===this.viewContext.reflector.resolveExternalReference(xn.ElementRef)||qn(t.token)===this.viewContext.reflector.resolveExternalReference(xn.ChangeDetectorRef)||qn(t.token)===this.viewContext.reflector.resolveExternalReference(xn.TemplateRef))return t;qn(t.token)===this.viewContext.reflector.resolveExternalReference(xn.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(qn(t.token)===this.viewContext.reflector.resolveExternalReference(xn.Injector))return t;if(null!=this._getOrCreateLocalProvider(e,t.token,n))return t}return null}_getDependency(e,t,n=!1){let r=this,i=n,s=null;if(t.isSkipSelf||(s=this._getLocalDependency(e,t,n)),t.isSelf)!s&&t.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&r._parent;){const e=r;r=r._parent,e._isViewRoot&&(i=!1),s=r._getLocalDependency(dl.PublicService,t,i)}s||(s=!t.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===qn(t.token)||null!=this.viewContext.viewProviders.get(qn(t.token))?t:t.isOptional?{isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new gl(`No provider for ${Gn(t.token)}`,this._sourceSpan)),s}}class vl{constructor(e,t,n,r){this.reflector=e,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(e=>{Sl([{token:{identifier:e},useClass:e}],dl.PublicService,!0,r,this._errors,this._allProviders,!0)}),Sl(t.transitiveModule.providers.map(e=>e.provider).concat(n),dl.PublicService,!1,r,this._errors,this._allProviders,!1)}parse(){if(Array.from(this._allProviders.values()).forEach(e=>{this._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){const e=this._errors.join("\n");throw new Error(`Provider parse errors:\n${e}`)}const e=[],t=[];return this._transformedProviders.forEach(n=>{n.eager?t.push(n):e.push(n)}),e.concat(t)}_getOrCreateLocalProvider(e,t){const n=this._allProviders.get(qn(e));if(!n)return null;let r=this._transformedProviders.get(qn(e));if(r)return r;if(null!=this._seenProviders.get(qn(e)))return this._errors.push(new gl(`Cannot instantiate cyclic dependency! ${Gn(e)}`,n.sourceSpan)),null;this._seenProviders.set(qn(e),!0);const i=n.providers.map(e=>{let r=e.useValue,i=e.useExisting,s=void 0;if(null!=e.useExisting){const s=this._getDependency({token:e.useExisting},t,n.sourceSpan);null!=s.token?i=s.token:(i=null,r=s.value)}else if(e.useFactory){s=(e.deps||e.useFactory.diDeps).map(e=>this._getDependency(e,t,n.sourceSpan))}else if(e.useClass){s=(e.deps||e.useClass.diDeps).map(e=>this._getDependency(e,t,n.sourceSpan))}return wl(e,{useExisting:i,useValue:r,deps:s})});return r=El(n,{eager:t,providers:i}),this._transformedProviders.set(qn(e),r),r}_getDependency(e,t=!1,n){let r=!1;return e.isSkipSelf||null==e.token||(qn(e.token)===this.reflector.resolveExternalReference(xn.Injector)||qn(e.token)===this.reflector.resolveExternalReference(xn.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(e.token,t)&&(r=!0)),e}}function wl(e,{useExisting:t,useValue:n,deps:r}){return{token:e.token,useClass:e.useClass,useExisting:t,useFactory:e.useFactory,useValue:n,deps:r,multi:e.multi}}function El(e,{eager:t,providers:n}){return new hl(e.token,e.multiProvider,e.eager||t,n,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function Sl(e,t,n,r,i,s,o){e.forEach(e=>{let a=s.get(qn(e.token));if(null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new gl(`Mixing multi and non multi provider is not possible for token ${Gn(a.token)}`,r)),a)e.multi||(a.providers.length=0),a.providers.push(e);else{const i=e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],c=!(e.useClass||e.useExisting||e.useFactory);a=new hl(e.token,!!e.multi,n||c,[e],t,i,r,o),s.set(qn(e.token),a)}})}function Cl(e,t){t.meta.selectors.forEach(n=>{let r=e.get(qn(n));r||(r=[],e.set(qn(n),r)),r.push(t)})} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Ol{constructor(e,t){this.style=e,this.styleUrls=t}}function Il(e){if(null==e||0===e.length||"/"==e[0])return!1;const t=e.match(Al);return null===t||"package"==t[1]||"asset"==t[1]}const xl=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Tl=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Al=/^([^:/?#]+):/,Dl=".",kl="attr",Pl="class",Ml="style",Rl="*",Nl="animate-";class Ll{constructor(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){const e=new Map;r.forEach(t=>e.set(t.name,t)),this.pipesByName=e}}get interpolationConfig(){return this._interpolationConfig}getUsedPipes(){return Array.from(this._usedPipes.values())}createBoundHostProperties(e,t){if(e.hostProperties){const n=[];return Object.keys(e.hostProperties).forEach(r=>{const i=e.hostProperties[r];"string"==typeof i?this.parsePropertyBinding(r,i,!0,t,t.start.offset,void 0,[],n,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}),n}return null}createDirectiveHostPropertyAsts(e,t,n){const r=this.createBoundHostProperties(e,n);return r&&r.map(e=>this.createBoundElementProperty(t,e))}createDirectiveHostEventAsts(e,t){if(e.hostListeners){const n=[];return Object.keys(e.hostListeners).forEach(r=>{const i=e.hostListeners[r];"string"==typeof i?this.parseEvent(r,i,t,t,[],n,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}),n}return null}parseInterpolation(e,t){const n=t.start.toString(),r=t.fullStart.offset;try{const i=this._exprParser.parseInterpolation(e,n,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),this._checkPipes(i,t),i}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInterpolationExpression(e,t){const n=t.start.toString(),r=t.start.offset;try{const i=this._exprParser.parseInterpolationExpression(e,n,r);return i&&this._reportExpressionParserErrors(i.errors,t),this._checkPipes(i,t),i}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInlineTemplateBinding(e,t,n,r,i,s,o,a){const c=n.start.offset+Rl.length,u=this._parseTemplateBindings(e,t,n,c,r);for(const e of u){const t=Bl(n,e.sourceSpan),c=e.key.source,u=Bl(n,e.key.span);if(e instanceof Ja){const r=e.value?e.value.source:"$implicit",i=e.value?Bl(n,e.value.span):void 0;o.push(new oc(c,r,t,u,i))}else if(e.value){const r=a?t:n,o=Bl(n,e.value.ast.sourceSpan);this._parsePropertyAst(c,e.value,r,u,o,i,s)}else i.push([c,""]),this.parseLiteralAttr(c,null,u,r,void 0,i,s,u)}}_parseTemplateBindings(e,t,n,r,i){const s=n.start.toString();try{const o=this._exprParser.parseTemplateBindings(e,t,s,r,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(e=>{e.value instanceof Za&&this._checkPipes(e.value,n)}),o.warnings.forEach(e=>{this._reportError(e,n,la.WARNING)}),o.templateBindings}catch(e){return this._reportError(`${e}`,n),[]}}parseLiteralAttr(e,t,n,r,i,s,o,a){jl(e)?(e=e.substring(1),void 0!==a&&(a=Bl(a,new Qa(a.start.offset+1,a.end.offset))),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,la.ERROR),this._parseAnimation(e,t,n,r,a,i,s,o)):o.push(new ic(e,this._exprParser.wrapLiteralPrimitive(t,"",r),ha.LITERAL_ATTR,n,a,i))}parsePropertyBinding(e,t,n,r,i,s,o,a,c){0===e.length&&this._reportError("Property name is missing in binding",r);let u=!1;e.startsWith(Nl)?(u=!0,e=e.substring(Nl.length),void 0!==c&&(c=Bl(c,new Qa(c.start.offset+Nl.length,c.end.offset)))):jl(e)&&(u=!0,e=e.substring(1),void 0!==c&&(c=Bl(c,new Qa(c.start.offset+1,c.end.offset)))),u?this._parseAnimation(e,t,r,i,c,s,o,a):this._parsePropertyAst(e,this._parseBinding(t,n,s||r,i),r,c,s,o,a)}parsePropertyInterpolation(e,t,n,r,i,s,o){const a=this.parseInterpolation(t,r||n);return!!a&&(this._parsePropertyAst(e,a,n,o,r,i,s),!0)}_parsePropertyAst(e,t,n,r,i,s,o){s.push([e,t.source]),o.push(new ic(e,t,ha.DEFAULT,n,r,i))}_parseAnimation(e,t,n,r,i,s,o,a){0===e.length&&this._reportError("Animation trigger is missing",n);const c=this._parseBinding(t||"undefined",!1,s||n,r);o.push([e,c.source]),a.push(new ic(e,c,ha.ANIMATION,n,i,s))}_parseBinding(e,t,n,r){const i=(n&&n.start||"(unknown)").toString();try{const s=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return s&&this._reportExpressionParserErrors(s.errors,n),this._checkPipes(s,n),s}catch(e){return this._reportError(`${e}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}createBoundElementProperty(e,t,n=!1,r=!0){if(t.isAnimation)return new ac(t.name,4,z.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let i=null,s=void 0,o=null;const a=t.name.split(Dl);let c=void 0;if(a.length>1)if(a[0]==kl){o=a.slice(1).join(Dl),n||this._validatePropertyOrAttributeName(o,t.sourceSpan,!0),c=Vl(this._schemaRegistry,e,o,!0);const r=o.indexOf(":");if(r>-1){const e=o.substring(0,r),t=o.substring(r+1);o=u(e,t)}s=1}else a[0]==Pl?(o=a[1],s=2,c=[z.NONE]):a[0]==Ml&&(i=a.length>2?a[2]:null,o=a[1],s=3,c=[z.STYLE]);if(null===o){const i=this._schemaRegistry.getMappedPropName(t.name);o=r?i:t.name,c=Vl(this._schemaRegistry,e,i,!1),s=0,n||this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)}return new ac(o,s,c[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,n,r,i,s,o){0===e.length&&this._reportError("Event name is missing in binding",n),jl(e)?(e=e.substr(1),void 0!==o&&(o=Bl(o,new Qa(o.start.offset+1,o.end.offset))),this._parseAnimationEvent(e,t,n,r,s,o)):this._parseRegularEvent(e,t,n,r,i,s,o)}calcPossibleSecurityContexts(e,t,n){const r=this._schemaRegistry.getMappedPropName(t);return Vl(this._schemaRegistry,e,r,n)}_parseAnimationEvent(e,t,n,r,i,s){const o=Wt(e,".",[e,""]);const a=o[0],c=o[1].toLowerCase(),u=this._parseAction(t,r);i.push(new sc(a,c,1,u,n,r,s)),0===a.length&&this._reportError("Animation event name is missing in binding",n),c?"start"!==c&&"done"!==c&&this._reportError(`The provided animation output phase value "${c}" for "@${a}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,t,n,r,i,s,o){const[a,c]=zt(e,[null,e]),u=this._parseAction(t,r);i.push([e,u.source]),s.push(new sc(c,a,0,u,n,r,o))}_parseAction(e,t){const n=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{const i=this._exprParser.parseAction(e,n,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),!i||i.ast instanceof Aa?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):(this._checkPipes(i,t),i)}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}_reportError(e,t,n=la.ERROR){this.errors.push(new fa(t,e,n))}_reportExpressionParserErrors(e,t){for(const n of e)this._reportError(n.message,t)}_checkPipes(e,t){if(e&&this.pipesByName){const n=new Fl;e.visit(n),n.pipes.forEach((e,n)=>{const r=this.pipesByName.get(n);r?this._usedPipes.set(n,r):this._reportError(`The pipe '${n}' could not be found`,new ua(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}}_validatePropertyOrAttributeName(e,t,n){const r=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,la.ERROR)}}class Fl extends tc{constructor(){super(...arguments),this.pipes=new Map}visitPipe(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null}}function jl(e){return"@"==e[0]}function Vl(e,t,n,r){const i=[];return g.parse(t).forEach(t=>{const s=t.element?[t.element]:e.allKnownElementNames(),o=new Set(t.notSelectors.filter(e=>e.isElementSelector()).map(e=>e.element)),a=s.filter(e=>!o.has(e));i.push(...a.map(t=>e.securityContext(t,n,r)))}),0===i.length?[z.NONE]:Array.from(new Set(i)).sort()}function Bl(e,t){const n=t.start-e.start.offset,r=t.end-e.end.offset;return new ua(e.start.moveBy(n),e.end.moveBy(r),e.fullStart.moveBy(n),e.details)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Ul="select",Gl="link",ql="rel",$l="href",Hl="stylesheet",zl="style",Wl="script",Kl="ngNonBindable",Yl="ngProjectAs";function Xl(e){let t=null,n=null,r=null,i=!1,s="";e.attrs.forEach(e=>{const o=e.name.toLowerCase();o==Ul?t=e.value:o==$l?n=e.value:o==ql?r=e.value:e.name==Kl?i=!0:e.name==Yl&&e.value.length>0&&(s=e.value)}),t=function(e){if(null===e||0===e.length)return"*";return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t);const a=e.name.toLowerCase();let c=Ql.OTHER;return o(a)?c=Ql.NG_CONTENT:a==zl?c=Ql.STYLE:a==Wl?c=Ql.SCRIPT:a==Gl&&r==Hl&&(c=Ql.STYLESHEET),new Zl(c,t,n,i,s)}var Ql;!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Ql||(Ql={}));class Zl{constructor(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}const Jl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,eh=1,th=2,nh=3,rh=4,ih=5,sh=6,oh=7,ah=8,ch=9,uh=10,lh="*",hh="class";let dh;function ph(){return dh||(dh=g.parse("*")[0]),dh}class fh extends fa{constructor(e,t,n){super(t,e,n)}}class _h{constructor(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n}}class mh{constructor(e,t,n,r,i,s,o){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=s,this.transforms=o}get expressionParser(){return this._exprParser}parse(e,t,n,r,i,s,o){var a;const c=this.tryParse(e,t,n,r,i,s,o),u=c.errors.filter(e=>e.level===la.WARNING),l=c.errors.filter(e=>e.level===la.ERROR);if(u.length>0&&(null===(a=this._console)||void 0===a||a.warn(`Template parse warnings:\n${u.join("\n")}`)),l.length>0){throw en(`Template parse errors:\n${l.join("\n")}`,l)}return{template:c.templateAst,pipes:c.usedPipes}}tryParse(e,t,n,r,i,s,o){let a="string"==typeof t?this._htmlParser.parse(t,s,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return o||(a=Wu(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)}tryParseHtml(e,t,n,r,i){let s;const o=e.errors,a=[];if(e.rootNodes.length>0){const c=Oh(n),u=Oh(r),l=new bl(this._reflector,t);let h=void 0;t.template&&t.template.interpolation&&(h={start:t.template.interpolation[0],end:t.template.interpolation[1]});const d=new Ll(this._exprParser,h,this._schemaRegistry,u,o),p=new gh(this._reflector,this._config,l,c,d,this._schemaRegistry,i,o);s=du(p,e.rootNodes,Eh),o.push(...l.errors),a.push(...d.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,o),o.length>0?new _h(s,a,o):(this.transforms&&this.transforms.forEach(e=>{s=ml(e,s)}),new _h(s,a,o))}expandHtml(e,t=!1){const n=e.errors;if(0==n.length||t){const t=Yu(e.rootNodes);n.push(...t.errors),e=new Nu(t.nodes,n)}return e}getInterpolationConfig(e){if(e.template)return Gs.fromArray(e.template.interpolation)}_assertNoReferenceDuplicationOnTemplate(e,t){const n=[];e.filter(e=>!!e.references).forEach(e=>e.references.forEach(e=>{const r=e.name;if(n.indexOf(r)<0)n.push(r);else{const n=new fh(`Reference "#${r}" is defined several times`,e.sourceSpan,la.ERROR);t.push(n)}}))}}class gh{constructor(e,t,n,r,i,s,o,a){this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=s,this._schemas=o,this._targetErrors=a,this.selectorMatcher=new b,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach((e,t)=>{const n=g.parse(e.selector);this.selectorMatcher.addSelectables(n,e),this.directivesIndex.set(e,t)})}visitExpansion(e,t){return null}visitExpansionCase(e,t){return null}visitText(e,t){const n=t.findNgContentIndex(ph()),r=Hu(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new el(i,n,e.sourceSpan):new Ju(r,n,e.sourceSpan)}visitAttribute(e,t){return new tl(e.name,e.value,e.sourceSpan)}visitComment(e,t){return null}visitElement(e,t){const n=this.contentQueryStartId,r=e.name,i=Xl(e);if(i.type===Ql.SCRIPT||i.type===Ql.STYLE)return null;if(i.type===Ql.STYLESHEET&&Il(i.hrefAttr))return null;const s=[],o=[],c=[],u=[],l=[],h=[],d=[],p=[];let f=!1;const _=[],m=a(e.name);e.attrs.forEach(e=>{const t=this._parseAttr(m,e,s,o,l,c,u);let n,r;u.push(...[].map(e=>ol.fromParsedVariable(e)));const i=this._normalizeAttributeName(e.name);i.startsWith(lh)&&(n=e.value,r=i.substring(lh.length));const a=null!=n;if(a){f&&this._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),f=!0;const t=[],i=(e.valueSpan||e.sourceSpan).start.offset;this._bindingParser.parseInlineTemplateBinding(r,n,e.sourceSpan,i,d,h,t,!1),p.push(...t.map(e=>ol.fromParsedVariable(e)))}t||a||(_.push(this.visitAttribute(e,null)),s.push([e.name,e.value]))});const b=wh(r,s),{directives:y,matchElement:v}=this._parseDirectives(this.selectorMatcher,b),w=[],E=new Set,S=this._createDirectiveAsts(m,e.name,y,o,c,e.sourceSpan,w,E),C=this._createElementPropertyAsts(e.name,o,E),O=t.isTemplateElement||f,I=new yl(this.providerViewContext,t.providerContext,O,S,_,w,m,n,e.sourceSpan),x=du(i.nonBindable?Sh:this,e.children,vh.create(m,S,m?t.providerContext:I));I.afterElement();const T=""!=i.projectAs?g.parse(i.projectAs)[0]:b,A=t.findNgContentIndex(T);let D;if(i.type===Ql.NG_CONTENT)e.children&&!e.children.every(Ch)&&this._reportError(" element cannot have content.",e.sourceSpan),D=new pl(this.ngContentCount++,f?null:A,e.sourceSpan);else if(m)this._assertAllEventsPublishedByDirectives(S,l),this._assertNoComponentsNorElementBindingsOnTemplate(S,C,e.sourceSpan),D=new cl(_,l,w,u,I.transformedDirectiveAsts,I.transformProviders,I.transformedHasViewContainer,I.queryMatches,x,f?null:A,e.sourceSpan);else{this._assertElementExists(v,e),this._assertOnlyOneComponent(S,e.sourceSpan);const n=f?null:t.findNgContentIndex(T);D=new al(r,_,C,l,w,I.transformedDirectiveAsts,I.transformProviders,I.transformedHasViewContainer,I.queryMatches,x,f?null:n,e.sourceSpan,e.endSourceSpan||null)}if(f){const n=this.contentQueryStartId,i=wh("ng-template",d),{directives:s}=this._parseDirectives(this.selectorMatcher,i),o=new Set,a=this._createDirectiveAsts(!0,r,s,h,[],e.sourceSpan,[],o),c=this._createElementPropertyAsts(r,h,o);this._assertNoComponentsNorElementBindingsOnTemplate(a,c,e.sourceSpan);const u=new yl(this.providerViewContext,t.providerContext,t.isTemplateElement,a,[],[],!0,n,e.sourceSpan);u.afterElement(),D=new cl([],[],[],p,u.transformedDirectiveAsts,u.transformProviders,u.transformedHasViewContainer,u.queryMatches,[D],A,e.sourceSpan)}return D}_parseAttr(e,t,n,r,i,s,o){const a=this._normalizeAttributeName(t.name),c=t.value,u=t.sourceSpan,l=t.valueSpan?t.valueSpan.start.offset:u.start.offset,h=[],d=a.match(Jl);let p=!1;if(null!==d)if(p=!0,null!=d[eh])this._bindingParser.parsePropertyBinding(d[oh],c,!1,u,l,t.valueSpan,n,r);else if(d[th])if(e){const e=d[oh];this._parseVariable(e,c,u,o)}else this._reportError('"let-" is only supported on ng-template elements.',u);else if(d[nh]){const e=d[oh];this._parseReference(e,c,u,s)}else d[rh]?this._bindingParser.parseEvent(d[oh],c,u,t.valueSpan||u,n,h):d[ih]?(this._bindingParser.parsePropertyBinding(d[oh],c,!1,u,l,t.valueSpan,n,r),this._parseAssignmentEvent(d[oh],c,u,t.valueSpan||u,n,h)):d[sh]?this._bindingParser.parseLiteralAttr(a,c,u,l,t.valueSpan,n,r):d[ah]?(this._bindingParser.parsePropertyBinding(d[ah],c,!1,u,l,t.valueSpan,n,r),this._parseAssignmentEvent(d[ah],c,u,t.valueSpan||u,n,h)):d[ch]?this._bindingParser.parsePropertyBinding(d[ch],c,!1,u,l,t.valueSpan,n,r):d[uh]&&this._bindingParser.parseEvent(d[uh],c,u,t.valueSpan||u,n,h);else p=this._bindingParser.parsePropertyInterpolation(a,c,u,t.valueSpan,n,r);return p||this._bindingParser.parseLiteralAttr(a,c,u,l,t.valueSpan,n,r),i.push(...h.map(e=>il.fromParsedEvent(e))),p}_normalizeAttributeName(e){return/^data-/i.test(e)?e.substring(5):e}_parseVariable(e,t,n,r){e.indexOf("-")>-1?this._reportError('"-" is not allowed in variable names',n):0===e.length&&this._reportError("Variable does not have a name",n),r.push(new ol(e,t,n))}_parseReference(e,t,n,r){e.indexOf("-")>-1?this._reportError('"-" is not allowed in reference names',n):0===e.length&&this._reportError("Reference does not have a name",n),r.push(new bh(e,t,n))}_parseAssignmentEvent(e,t,n,r,i,s){this._bindingParser.parseEvent(`${e}Change`,`${t}=$event`,n,r,i,s)}_parseDirectives(e,t){const n=_n(this.directivesIndex.size);let r=!1;return e.match(t,(e,t)=>{n[this.directivesIndex.get(t)]=t,r=r||e.hasElementSelector()}),{directives:n.filter(e=>!!e),matchElement:r}}_createDirectiveAsts(e,t,n,r,i,s,o,a){const c=new Set;let u=null;const l=n.map(e=>{const n=new ua(s.start,s.end,s.fullStart,`Directive ${Nn(e.type)}`);e.isComponent&&(u=e);const l=[];let h=this._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map(e=>rl.fromBoundProperty(e));h=this._checkPropertiesInSchema(t,h);const d=this._bindingParser.createDirectiveHostEventAsts(e,n);this._createDirectivePropertyAsts(e.inputs,r,l,a),i.forEach(t=>{(0===t.value.length&&e.isComponent||t.isReferenceToDirective(e))&&(o.push(new sl(t.name,Tn(e.type.reference),t.value,t.sourceSpan)),c.add(t.name))});const p=d.map(e=>il.fromParsedEvent(e)),f=this.contentQueryStartId;return this.contentQueryStartId+=e.queries.length,new ll(e,l,h,p,f,n)});return i.forEach(t=>{if(t.value.length>0)c.has(t.name)||this._reportError(`There is no directive with "exportAs" set to "${t.value}"`,t.sourceSpan);else if(!u){let n=null;e&&(n=An(this.reflector,xn.TemplateRef)),o.push(new sl(t.name,n,t.value,t.sourceSpan))}}),l}_createDirectivePropertyAsts(e,t,n,r){if(e){const i=new Map;t.forEach(e=>{const t=i.get(e.name);t&&!t.isLiteral||i.set(e.name,e)}),Object.keys(e).forEach(t=>{const s=e[t],o=i.get(s);o&&(r.add(o.name),Ih(o.expression)||n.push(new ul(t,o.name,o.expression,o.sourceSpan)))})}}_createElementPropertyAsts(e,t,n){const r=[];return t.forEach(t=>{if(!t.isLiteral&&!n.has(t.name)){const n=this._bindingParser.createBoundElementProperty(e,t);r.push(rl.fromBoundProperty(n))}}),this._checkPropertiesInSchema(e,r)}_findComponentDirectives(e){return e.filter(e=>e.directive.isComponent)}_findComponentDirectiveNames(e){return this._findComponentDirectives(e).map(e=>Nn(e.directive.type))}_assertOnlyOneComponent(e,t){const n=this._findComponentDirectiveNames(e);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\n"+`Conflicting components: ${n.join(",")}`,t)}_assertElementExists(e,t){const n=t.name.replace(/^:xhtml:/,"");if(!e&&!this._schemaRegistry.hasElement(n,this._schemas)){let e=`'${n}' is not a known element:\n`;e+=`1. If '${n}' is an Angular component, then verify that it is part of this module.\n`,n.indexOf("-")>-1?e+=`2. If '${n}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.`:e+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(e,t.sourceSpan)}}_assertNoComponentsNorElementBindingsOnTemplate(e,t,n){const r=this._findComponentDirectiveNames(e);r.length>0&&this._reportError(`Components on an embedded template: ${r.join(",")}`,n),t.forEach(e=>{this._reportError(`Property binding ${e.name} not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".`,n)})}_assertAllEventsPublishedByDirectives(e,t){const n=new Set;e.forEach(e=>{Object.keys(e.directive.outputs).forEach(t=>{const r=e.directive.outputs[t];n.add(r)})}),t.forEach(e=>{null==e.target&&n.has(e.name)||this._reportError(`Event binding ${e.fullName} not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".`,e.sourceSpan)})}_checkPropertiesInSchema(e,t){return t.filter(t=>{if(0===t.type&&!this._schemaRegistry.hasProperty(e,t.name,this._schemas)){let n=`Can't bind to '${t.name}' since it isn't a known property of '${e}'.`;e.startsWith("ng-")?n+=`\n1. If '${t.name}' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.`+"\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":e.indexOf("-")>-1&&(n+=`\n1. If '${e}' is an Angular component and it has '${t.name}' input, then verify that it is part of this module.`+`\n2. If '${e}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.`+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),this._reportError(n,t.sourceSpan)}return!Ih(t.value)})}_reportError(e,t,n=la.ERROR){this._targetErrors.push(new fa(t,e,n))}}class bh{constructor(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}isReferenceToDirective(e){return-1!==(t=e.exportAs,t?t.split(",").map(e=>e.trim()):[]).indexOf(this.value);var t}}function yh(e){return e.trim().split(/\s+/g)}class vh{constructor(e,t,n,r){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=n,this.providerContext=r}static create(e,t,n){const r=new b;let i=null;const s=t.find(e=>e.directive.isComponent);if(s){const e=s.directive.template.ngContentSelectors;for(let t=0;t{t.push(n)}),t.sort(),null!=this._wildcardNgContentIndex&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null}}function wh(e,t){const n=new g,r=i(e)[1];n.setElement(r);for(let e=0;en.addClassName(e))}}return n}const Eh=new vh(!0,new b,null,null),Sh=new class{visitElement(e,t){const n=Xl(e);if(n.type===Ql.SCRIPT||n.type===Ql.STYLE||n.type===Ql.STYLESHEET)return null;const r=e.attrs.map(e=>[e.name,e.value]),i=wh(e.name,r),s=t.findNgContentIndex(i),o=du(this,e.children,Eh);return new al(e.name,du(this,e.attrs),[],[],[],[],[],!1,[],o,s,e.sourceSpan,e.endSourceSpan)}visitComment(e,t){return null}visitAttribute(e,t){return new tl(e.name,e.value,e.sourceSpan)}visitText(e,t){const n=t.findNgContentIndex(ph());return new Ju(e.value,n,e.sourceSpan)}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}};function Ch(e){return e instanceof ou&&0==e.value.trim().length}function Oh(e){const t=new Map;return e.forEach(e=>{t.get(e.type.reference)||t.set(e.type.reference,e)}),Array.from(t.values())}function Ih(e){return e instanceof Za&&(e=e.ast),e instanceof Aa} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function xh(e){const t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){const t=e.substring(1,e.length-1);-1==t.indexOf("'")&&-1==t.indexOf('"')&&(e=t)}return e}function Th(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}const Ah="!important",Dh=2;class kh{constructor(e){this._directiveExpr=e,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}registerBoundInput(e){let t=null,n=e.name;switch(e.type){case 0:t=this.registerInputBasedOnName(n,e.value,e.sourceSpan);break;case 3:t=this.registerStyleInput(n,!1,e.value,e.sourceSpan,e.unit);break;case 2:t=this.registerClassInput(n,!1,e.value,e.sourceSpan)}return!!t}registerInputBasedOnName(e,t,n){let r=null;const i=e.substring(0,6),s="style"===e||"style."===i||"style!"===i;if(s||!s&&("class"===e||"class."===i||"class!"===i)){const i="."!==e.charAt(5),o=e.substr(i?5:6);r=s?this.registerStyleInput(o,i,t,n):this.registerClassInput(o,i,t,n)}return r}registerStyleInput(e,t,n,r,i){if(Ih(n))return null;e=Th(e);const{property:s,hasOverrideFlag:o,suffix:a}=Mh(e),c={name:s,suffix:i="string"==typeof i&&0!==i.length?i:a,value:n,sourceSpan:r,hasOverrideFlag:o};return t?this._styleMapInput=c:((this._singleStyleInputs=this._singleStyleInputs||[]).push(c),Ph(this._stylesIndex,s)),this._lastStylingInput=c,this._firstStylingInput=this._firstStylingInput||c,this._checkForPipes(n),this.hasBindings=!0,c}registerClassInput(e,t,n,r){if(Ih(n))return null;const{property:i,hasOverrideFlag:s}=Mh(e),o={name:i,value:n,sourceSpan:r,hasOverrideFlag:s,suffix:null};if(t){if(this._classMapInput)throw new Error("[class] and [className] bindings cannot be used on the same element simultaneously");this._classMapInput=o}else(this._singleClassInputs=this._singleClassInputs||[]).push(o),Ph(this._classesIndex,i);return this._lastStylingInput=o,this._firstStylingInput=this._firstStylingInput||o,this._checkForPipes(n),this.hasBindings=!0,o}_checkForPipes(e){e instanceof Za&&e.ast instanceof Va&&(this.hasBindingsWithPipes=!0)}registerStyleAttr(e){this._initialStyleValues=function(e){const t=[];let n=0,r=0,i=0,s=0,o=0,a=null,c=!1;for(;n0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:c=c||s>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=Th(e.substring(o,n-1).trim()),s=n);break;case 59:if(a&&s>0&&0===r&&0===i){const r=e.substring(s,n-1).trim();t.push(a,c?xh(r):r),o=n,s=0,a=null,c=!1}}if(a&&s){const n=e.substr(s).trim();t.push(a,c?xh(n):n)}return t}(e),this._hasInitialValues=!0}registerClassAttr(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}populateInitialStylingAttrs(e){if(this._initialClassValues.length){e.push(Gt(1));for(let t=0;t{const t=e(i);return Array.isArray(t)?t:[t]}}]}}_buildSingleInputs(e,t,n,r,i){const s=[];return t.forEach(t=>{const o=s[s.length-1],a=t.value.visit(n);let c=e,u=Dh;a instanceof qa&&(u+=a.expressions.length,r&&(c=r(a)));const l={sourceSpan:t.sourceSpan,allocateBindingSlots:u,supportsInterpolation:!!r,params:e=>{const n=[];n.push(Gt(t.name));const r=e(a);return Array.isArray(r)?n.push(...r):n.push(r),i||null===t.suffix||n.push(Gt(t.suffix)),n}};o&&o.reference===c?o.calls.push(l):s.push({reference:c,calls:[l]})}),s}_buildClassInputs(e){return this._singleClassInputs?this._buildSingleInputs(or.classProp,this._singleClassInputs,e,null,!0):[]}_buildStyleInputs(e){return this._singleStyleInputs?this._buildSingleInputs(or.styleProp,this._singleStyleInputs,e,Rh,!1):[]}buildUpdateLevelInstructions(e){const t=[];if(this.hasBindings){const n=this.buildStyleMapInstruction(e);n&&t.push(n);const r=this.buildClassMapInstruction(e);r&&t.push(r),t.push(...this._buildStyleInputs(e)),t.push(...this._buildClassInputs(e))}return t}}function Ph(e,t){e.has(t)||e.set(t,e.size)}function Mh(e){let t=!1;const n=e.indexOf(Ah);-1!==n&&(e=n>0?e.substring(0,n):"",t=!0);let r=null,i=e;const s=e.lastIndexOf(".");return s>0&&(r=e.substr(s+1),i=e.substring(0,s)),{property:i,suffix:r,hasOverrideFlag:t}}function Rh(e){switch(As(e)){case 1:return or.styleProp;case 3:return or.stylePropInterpolate1;case 5:return or.stylePropInterpolate2;case 7:return or.stylePropInterpolate3;case 9:return or.stylePropInterpolate4;case 11:return or.stylePropInterpolate5;case 13:return or.stylePropInterpolate6;case 15:return or.stylePropInterpolate7;case 17:return or.stylePropInterpolate8;default:return or.stylePropInterpolateV}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Nh;!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(Nh||(Nh={}));const Lh=["var","let","as","null","undefined","true","false","if","else","this"];class Fh{tokenize(e){const t=new Gh(e),n=[];let r=t.scanToken();for(;null!=r;)n.push(r),r=t.scanToken();return n}}class jh{constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==Nh.Character&&this.numValue==e}isNumber(){return this.type==Nh.Number}isString(){return this.type==Nh.String}isOperator(e){return this.type==Nh.Operator&&this.strValue==e}isIdentifier(){return this.type==Nh.Identifier}isKeyword(){return this.type==Nh.Keyword}isKeywordLet(){return this.type==Nh.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Nh.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Nh.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Nh.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Nh.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Nh.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Nh.Keyword&&"this"==this.strValue}isError(){return this.type==Nh.Error}toNumber(){return this.type==Nh.Number?this.numValue:-1}toString(){switch(this.type){case Nh.Character:case Nh.Identifier:case Nh.Keyword:case Nh.Operator:case Nh.String:case Nh.Error:return this.strValue;case Nh.Number:return this.numValue.toString();default:return null}}}function Vh(e,t,n){return new jh(e,t,Nh.Character,n,String.fromCharCode(n))}function Bh(e,t,n){return new jh(e,t,Nh.Operator,0,n)}const Uh=new jh(-1,-1,Nh.Character,0,"");class Gh{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?Qs:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let n=this.peek,r=this.index;for(;n<=io;){if(++r>=t){n=Qs;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(qh(n))return this.scanIdentifier();if(ra(n))return this.scanNumber(r);const i=r;switch(n){case yo:return this.advance(),ra(this.peek)?this.scanNumber(i):Vh(i,this.index,yo);case po:case fo:case Qo:case Jo:case No:case Fo:case go:case wo:case Eo:return this.scanCharacter(i,n);case ho:case oo:return this.scanString();case ao:case mo:case bo:case _o:case vo:case uo:case jo:return this.scanOperator(i,String.fromCharCode(n));case Io:return this.scanComplexOperator(i,"?",yo,".");case So:case Oo:return this.scanComplexOperator(i,String.fromCharCode(n),Co,"=");case so:case Co:return this.scanComplexOperator(i,String.fromCharCode(n),Co,"=",Co,"=");case lo:return this.scanComplexOperator(i,"&",lo,"&");case Zo:return this.scanComplexOperator(i,"|",Zo,"|");case ea:for(;na(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(e,t){return this.advance(),Vh(e,this.index,t)}scanOperator(e,t){return this.advance(),Bh(e,this.index,t)}scanComplexOperator(e,t,n,r,i,s){this.advance();let o=t;return this.peek==n&&(this.advance(),o+=r),null!=i&&this.peek==i&&(this.advance(),o+=s),Bh(e,this.index,o)}scanIdentifier(){const e=this.index;for(this.advance();Hh(this.peek);)this.advance();const t=this.input.substring(e,this.index);return Lh.indexOf(t)>-1?(n=e,r=this.index,i=t,new jh(n,r,Nh.Keyword,0,i)):function(e,t,n){return new jh(e,t,Nh.Identifier,0,n)}(e,this.index,t);var n,r,i}scanNumber(e){let t=this.index===e;for(this.advance();;){if(ra(this.peek));else if(this.peek==yo)t=!1;else{if((n=this.peek)!=Go&&n!=ko)break;if(this.advance(),zh(this.peek)&&this.advance(),!ra(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var n;const r=this.input.substring(e,this.index),i=t?function(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(r):parseFloat(r);return s=e,o=this.index,a=i,new jh(s,o,Nh.Number,a,"");var s,o,a}scanString(){const e=this.index,t=this.peek;this.advance();let n="",r=this.index;const i=this.input;for(;this.peek!=t;)if(this.peek==Lo){let e;if(n+=i.substring(r,this.index),this.advance(),this.peek=this.peek,this.peek==Wo){const t=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(t))return this.error(`Invalid unicode escape [\\u${t}]`,0);e=parseInt(t,16);for(let e=0;e<5;e++)this.advance()}else e=Kh(this.peek),this.advance();n+=String.fromCharCode(e),r=this.index}else{if(this.peek==Qs)return this.error("Unterminated quote",0);this.advance()}const s=i.substring(r,this.index);return this.advance(),o=e,a=this.index,c=n+s,new jh(o,a,Nh.String,0,c);var o,a,c}error(e,t){const n=this.index+t;return function(e,t,n){return new jh(e,t,Nh.Error,0,n)}(n,this.index,`Lexer Error: ${e} at column ${n} in expression [${this.input}]`)}}function qh(e){return Bo<=e&&e<=Xo||Do<=e&&e<=Ro||e==Vo||e==co}function $h(e){if(0==e.length)return!1;const t=new Gh(e);if(!qh(t.peek))return!1;for(t.advance();t.peek!==Qs;){if(!Hh(t.peek))return!1;t.advance()}return!0}function Hh(e){return ia(e)||ra(e)||e==Vo||e==co}function zh(e){return e==bo||e==mo}function Wh(e){return e===ho||e===oo||e===ta}function Kh(e){switch(e){case $o:return eo;case qo:return no;case Ho:return ro;case zo:return Js;case Ko:return to;default:return e}}class Yh{constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}class Xh{constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}class Qh{constructor(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=td}parseAction(e,t,n,r=qs){this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),o=new ed(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new Za(o,e,t,n,this.errors)}parseBinding(e,t,n,r=qs){const i=this._parseBindingAst(e,t,n,r);return new Za(i,e,t,n,this.errors)}checkSimpleExpression(e){const t=new this.simpleExpressionChecker;return e.visit(t),t.errors}parseSimpleBinding(e,t,n,r=qs){const i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError(`Host binding expression cannot contain ${s.join(" ")}`,e,t),new Za(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new Ca(e,t,n,r))}_parseBindingAst(e,t,n,r){const i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);const s=this._stripComments(e),o=this._lexer.tokenize(s);return new ed(e,t,n,o,s.length,!1,this.errors,e.length-s.length).parseChain()}_parseQuote(e,t,n){if(null==e)return null;const r=e.indexOf(":");if(-1==r)return null;const i=e.substring(0,r).trim();if(!$h(i))return null;const s=e.substring(r+1),o=new Oa(0,e.length);return new Ta(o,o.toAbsolute(n),i,s,t)}parseTemplateBindings(e,t,n,r,i){const s=this._lexer.tokenize(t);return new ed(t,n,i,s,t.length,!1,this.errors,0).parseTemplateBindings({source:e,span:new Qa(r,r+e.length)})}parseInterpolation(e,t,n,r=qs){const{strings:i,expressions:s,offsets:o}=this.splitInterpolation(e,t,r);if(0===s.length)return null;const a=[];for(let r=0;re.text),a,e,t,n)}parseInterpolationExpression(e,t,n){const r=this._stripComments(e),i=this._lexer.tokenize(r),s=new ed(e,t,n,i,r.length,!1,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[s],e,t,n)}createInterpolationAst(e,t,n,r,i){const s=new Oa(0,n.length),o=new qa(s,s.toAbsolute(i),e,t);return new Za(o,n,r,i,this.errors)}splitInterpolation(e,t,n=qs){const r=[],i=[],s=[];let o=0,a=!1,c=!1,{start:u,end:l}=n;for(;o-1)break;i>-1&&s>-1&&this._reportError(`Got interpolation (${n}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,n){for(const r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){if(this.index>0){return this.peek(-1).end+this.offset}return 0===this.tokens.length?this.inputLength+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;return void 0!==t&&t>this.currentEndIndex&&(n=t),new Oa(e,n)}sourceSpan(e,t){const n=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;const n=t();return this.context^=e,n}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Uh?"end of input":`token ${e}`}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){const e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();const r=this.parseAdditive();t=new $a(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){const e=this.inputIndex;let t=this.parseMultiplicative();for(;this.next.type==Nh.Operator;){const n=this.next.strValue;switch(n){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new $a(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){const e=this.inputIndex;let t=this.parsePrefix();for(;this.next.type==Nh.Operator;){const n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new $a(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parsePrefix(){if(this.next.type==Nh.Operator){const e=this.inputIndex;let t;switch(this.next.strValue){case"+":return this.advance(),t=this.parsePrefix(),Ha.createPlus(this.span(e),this.sourceSpan(e),t);case"-":return this.advance(),t=this.parsePrefix(),Ha.createMinus(this.span(e),this.sourceSpan(e),t);case"!":return this.advance(),t=this.parsePrefix(),new za(this.span(e),this.sourceSpan(e),t)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(yo))t=this.parseAccessMemberOrMethodCall(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,e,!0);else if(this.consumeOptionalCharacter(No))this.withContext(Jh.Writable,()=>{this.rbracketsExpected++;const n=this.parsePipe();if(n instanceof Aa&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Fo),this.consumeOptionalOperator("=")){const r=this.parseConditional();t=new ja(this.span(e),this.sourceSpan(e),t,n,r)}else t=new Fa(this.span(e),this.sourceSpan(e),t,n)});else if(this.consumeOptionalCharacter(po)){this.rparensExpected++;const n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(fo),t=new Xa(this.span(e),this.sourceSpan(e),t,n)}else{if(!this.consumeOptionalOperator("!"))return t;t=new Wa(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(po)){this.rparensExpected++;const e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(fo),e}if(this.next.isKeywordNull())return this.advance(),new Ba(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Ba(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Ba(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Ba(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ka(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(No)){this.rbracketsExpected++;const t=this.parseExpressionList(Fo);return this.rbracketsExpected--,this.expectCharacter(Fo),new Ua(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(Qo))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Da(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new Ba(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new Ba(this.span(e),this.sourceSpan(e),t)}return this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Aa(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Aa(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(go));return t}parseLiteralMap(){const e=[],t=[],n=this.inputIndex;if(this.expectCharacter(Qo),!this.consumeOptionalCharacter(Jo)){this.rbracesExpected++;do{const n=this.next.isString(),r=this.expectIdentifierOrKeywordOrString();e.push({key:r,quoted:n}),this.expectCharacter(wo),t.push(this.parsePipe())}while(this.consumeOptionalCharacter(go));this.rbracesExpected--,this.expectCharacter(Jo)}return new Ga(this.span(n),this.sourceSpan(n),e,t)}parseAccessMemberOrMethodCall(e,t,n=!1){const r=this.inputIndex,i=this.withContext(Jh.Writable,()=>{var t;const n=null!==(t=this.expectIdentifierOrKeyword())&&void 0!==t?t:"";return 0===n.length&&this.error("Expected identifier for property access",e.span.end),n}),s=this.sourceSpan(r);if(this.consumeOptionalCharacter(po)){this.rparensExpected++;const r=this.parseCallArguments();this.expectCharacter(fo),this.rparensExpected--;const o=this.span(t),a=this.sourceSpan(t);return n?new Ya(o,a,s,e,i,r):new Ka(o,a,s,e,i,r)}if(n)return this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Aa(this.span(t),this.sourceSpan(t))):new La(this.span(t),this.sourceSpan(t),s,e,i);if(this.consumeOptionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Aa(this.span(t),this.sourceSpan(t));const n=this.parseConditional();return new Na(this.span(t),this.sourceSpan(t),s,e,i,n)}return new Ra(this.span(t),this.sourceSpan(t),s,e,i)}parseCallArguments(){if(this.next.isCharacter(fo))return[];const e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(go));return e}expectTemplateBindingKey(){let e="",t=!1;const n=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.consumeOptionalOperator("-"))&&(e+="-")}while(t);return{source:e,span:new Qa(n,n+e.length)}}parseTemplateBindings(e){const t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.indexe.visit(this,t))}visitChain(e,t){}visitQuote(e,t){}}class nd extends tc{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let rd;function id(){return rd||(rd={},sd(z.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),sd(z.STYLE,["*|style"]),sd(z.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),sd(z.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),rd}function sd(e,t){for(const n of t)rd[n.toLowerCase()]=e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class od{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const ad="boolean",cd="number",ud="string",ld="object",hd=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],dd={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},pd=Object.keys(dd).reduce((e,t)=>(e[dd[t]]=t,e),{});class fd extends od{constructor(){super(),this._schema={},hd.forEach(e=>{const t={},[n,r]=e.split("|"),i=r.split(","),[s,o]=n.split("^");s.split(",").forEach(e=>this._schema[e.toLowerCase()]=t);const a=o&&this._schema[o.toLowerCase()];a&&Object.keys(a).forEach(e=>{t[e]=a[e]}),i.forEach(e=>{if(e.length>0)switch(e[0]){case"*":break;case"!":t[e.substring(1)]=ad;break;case"#":t[e.substring(1)]=cd;break;case"%":t[e.substring(1)]=ld;break;default:t[e]=ud}})})}hasProperty(e,t,n){if(n.some(e=>e.name===B.name))return!0;if(e.indexOf("-")>-1){if(s(e)||o(e))return!1;if(n.some(e=>e.name===V.name))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]}hasElement(e,t){if(t.some(e=>e.name===B.name))return!0;if(e.indexOf("-")>-1){if(s(e)||o(e))return!0;if(t.some(e=>e.name===V.name))return!0}return!!this._schema[e.toLowerCase()]}securityContext(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=id()[e+"|"+t];return r||((r=id()["*|"+t])||z.NONE)}getMappedPropName(e){return dd[e]||e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){if(e.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, `+`please use (${e.slice(2)})=...`+`\nIf '${e}' is a directive input, make sure the directive is imported by the`+" current module."}}return{error:!1}}validateAttribute(e){if(e.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, `+`please use (${e.slice(2)})=...`}}return{error:!1}}allKnownElementNames(){return Object.keys(this._schema)}allKnownAttributesOfElement(e){const t=this._schema[e.toLowerCase()]||this._schema.unknown;return Object.keys(t).map(e=>{var t;return null!==(t=pd[e])&&void 0!==t?t:e})}normalizeAnimationStyleProperty(e){return e.replace(Ht,(...e)=>e[1].toUpperCase())}normalizeAnimationStyleValue(e,t,n){let r="";const i=n.toString().trim();let s=null;if(function(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&(s=`Please provide a CSS unit value for ${t}:${n}`)}return{error:s,value:i+r}}}const _d=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function md(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),_d.has(e+"|"+t)||_d.has("*|"+t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const gd=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,bd=1,yd=2,vd=3,wd=4,Ed=5,Sd=6,Cd=7,Od={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Id="*";function xd(e,t){const n=new Td(t);return{nodes:du(n,e),errors:t.errors.concat(n.errors),styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors}}class Td{constructor(e){this.bindingParser=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.inI18nBlock=!1}visitElement(e){const t=Ji(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);const n=Xl(e);if(n.type===Ql.SCRIPT)return null;if(n.type===Ql.STYLE){const t=1===(r=e).children.length&&r.children[0]instanceof ou?r.children[0].value:null;return null!==t&&this.styles.push(t),null}if(n.type===Ql.STYLESHEET&&Il(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;var r; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const i=a(e.name),s=[],o=[],c=[],u=[],l=[],h={},d=[],p=[];let f=!1;for(const t of e.attrs){let e=!1;const n=Dd(t.name);let r=!1;if(t.i18n&&(h[t.name]=t.i18n),n.startsWith(Id)){f&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),r=!0,f=!0;const e=t.value,i=n.substring(Id.length),s=[],o=t.valueSpan?t.valueSpan.start.offset:t.sourceSpan.start.offset+t.name.length;this.bindingParser.parseInlineTemplateBinding(i,e,t.sourceSpan,o,[],d,s,!0),p.push(...s.map(e=>new Ur(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan)))}else e=this.parseAttribute(i,t,[],s,o,c,u);e||r||l.push(this.visitAttribute(t))}const _=du(n.nonBindable?Ad:this,e.children);let m;if(n.type===Ql.NG_CONTENT){e.children&&!e.children.every(e=>(function(e){return e instanceof ou&&0==e.value.trim().length})(e)||function(e){return e instanceof hu}(e))&&this.reportError(" element cannot have content.",e.sourceSpan);const t=n.selectAttr,r=e.attrs.map(e=>this.visitAttribute(e));m=new Br(t,r,e.sourceSpan,e.i18n),this.ngContentSelectors.push(t)}else if(i){const t=this.extractAttributes(e.name,s,h);m=new Vr(e.name,l,t.bound,o,[],_,u,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{const t=this.extractAttributes(e.name,s,h);m=new jr(e.name,l,t.bound,o,_,u,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(f){const n=this.extractAttributes("ng-template",d,h),r=[];n.literal.forEach(e=>r.push(e)),n.bound.forEach(e=>r.push(e));const s=m instanceof jr?{attributes:m.attributes,inputs:m.inputs,outputs:m.outputs}:{attributes:[],inputs:[],outputs:[]},o=i&&t?void 0:e.i18n;m=new Vr(m.name,s.attributes,s.inputs,s.outputs,r,[m],[],p,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,o)}return t&&(this.inI18nBlock=!1),m}visitAttribute(e){return new Nr(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!Ji(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);const t=e.i18n,n={},r={};return Object.keys(t.placeholders).forEach(e=>{const i=t.placeholders[e];if(e.startsWith(Yi)){const t=e.trim(),r=this.bindingParser.parseInterpolationExpression(i.text,i.sourceSpan);n[t]=new Rr(r,i.sourceSpan)}else r[e]=this._visitTextWithInterpolation(i.text,i.sourceSpan)}),new qr(n,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return null}extractAttributes(e,t,n){const r=[],i=[];return t.forEach(t=>{const s=n[t.name];if(t.isLiteral)i.push(new Nr(t.name,t.expression.source||"",t.sourceSpan,t.keySpan,t.valueSpan,s));else{const n=this.bindingParser.createBoundElementProperty(e,t,!0,!1);r.push(Lr.fromBoundElementProperty(n,s))}}),{bound:r,literal:i}}parseAttribute(e,t,n,r,i,s,o){const a=Dd(t.name),c=t.value,u=t.sourceSpan,l=t.valueSpan?t.valueSpan.start.offset:u.start.offset;function h(e,n,r){const i=t.name.length-a.length,s=e.start.moveBy(n.length+i),o=s.moveBy(r.length);return new ua(s,o,s,r)}const d=a.match(gd);if(d){if(null!=d[bd]){const e=d[Cd],i=h(u,d[bd],e);this.bindingParser.parsePropertyBinding(e,c,!1,u,l,t.valueSpan,n,r,i)}else if(d[yd])if(e){const e=d[Cd],n=h(u,d[yd],e);this.parseVariable(e,c,u,n,t.valueSpan,s)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(d[vd]){const e=d[Cd],n=h(u,d[vd],e);this.parseReference(e,c,u,n,t.valueSpan,o)}else if(d[wd]){const e=[],r=d[Cd],s=h(u,d[wd],r);this.bindingParser.parseEvent(r,c,u,t.valueSpan||u,n,e,s),kd(e,i)}else if(d[Ed]){const e=d[Cd],s=h(u,d[Ed],e);this.bindingParser.parsePropertyBinding(e,c,!1,u,l,t.valueSpan,n,r,s),this.parseAssignmentEvent(e,c,u,t.valueSpan,n,i,s)}else if(d[Sd]){const e=h(u,"",a);this.bindingParser.parseLiteralAttr(a,c,u,l,t.valueSpan,n,r,e)}return!0}let p=null;if(a.startsWith(Od.BANANA_BOX.start)?p=Od.BANANA_BOX:a.startsWith(Od.PROPERTY.start)?p=Od.PROPERTY:a.startsWith(Od.EVENT.start)&&(p=Od.EVENT),null!==p&&a.endsWith(p.end)&&a.length>p.start.length+p.end.length){const e=a.substring(p.start.length,a.length-p.end.length),s=h(u,p.start,e);if(p.start===Od.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(e,c,!1,u,l,t.valueSpan,n,r,s),this.parseAssignmentEvent(e,c,u,t.valueSpan,n,i,s);else if(p.start===Od.PROPERTY.start)this.bindingParser.parsePropertyBinding(e,c,!1,u,l,t.valueSpan,n,r,s);else{const r=[];this.bindingParser.parseEvent(e,c,u,t.valueSpan||u,n,r,s),kd(r,i)}return!0}const f=h(u,"",a);return this.bindingParser.parsePropertyInterpolation(a,c,u,t.valueSpan,n,r,f)}_visitTextWithInterpolation(e,t,n){const r=Hu(e),i=this.bindingParser.parseInterpolation(r,t);return i?new Rr(i,t,n):new Mr(r,t)}parseVariable(e,t,n,r,i,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):0===e.length&&this.reportError("Variable does not have a name",n),s.push(new Ur(e,t,n,r,i))}parseReference(e,t,n,r,i,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):0===e.length?this.reportError("Reference does not have a name",n):s.some(t=>t.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),s.push(new Gr(e,t,n,r,i))}parseAssignmentEvent(e,t,n,r,i,s,o){const a=[];this.bindingParser.parseEvent(`${e}Change`,`${t}=$event`,n,r||n,i,a,o),kd(a,s)}reportError(e,t,n=la.ERROR){this.errors.push(new fa(t,e,n))}}const Ad=new class{visitElement(e){const t=Xl(e);if(t.type===Ql.SCRIPT||t.type===Ql.STYLE||t.type===Ql.STYLESHEET)return null;const n=du(this,e.children,null);return new jr(e.name,du(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Nr(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Mr(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}};function Dd(e){return/^data-/i.test(e)?e.substring(5):e}function kd(e,t){t.push(...e.map(e=>Fr.fromParsedEvent(e)))}var Pd;!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE"}(Pd||(Pd={}));class Md{constructor(e,t,n=0,r=null,i,s){this.index=e,this.ref=t,this.level=n,this.templateIndex=r,this.meta=i,this.registry=s,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=s||{getUniqueId:is(),icus:new Map},this.id=this._registry.getUniqueId()}appendTag(e,t,n,r){if(t.isVoid&&r)return;const i=t.isVoid||!r?t.startName:t.closeName,s={type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r};os(this.placeholders,i,s)}get icus(){return this._registry.icus}get isRoot(){return 0===this.level}get isResolved(){return 0===this._unresolvedCtxCount}getSerializedPlaceholders(){const e=new Map;return this.placeholders.forEach((t,n)=>e.set(n,t.map(Fd))),e}appendBinding(e){this.bindings.add(e)}appendIcu(e,t){os(this._registry.icus,e,t)}appendBoundText(e){as(e,this.bindings.size,this.id).forEach((e,t)=>os(this.placeholders,t,...e))}appendTemplate(e,t){this.appendTag(Pd.TEMPLATE,e,t,!1),this.appendTag(Pd.TEMPLATE,e,t,!0),this._unresolvedCtxCount++}appendElement(e,t,n){this.appendTag(Pd.ELEMENT,e,t,n)}appendProjection(e,t){this.appendTag(Pd.ELEMENT,e,t,!1),this.appendTag(Pd.ELEMENT,e,t,!0)}forkChildContext(e,t,n){return new Md(e,this.ref,this.level+1,t,n,this._registry)}reconcileChildContext(e){["start","close"].forEach(t=>{const n=e.meta[`${t}Name`],r=(this.placeholders.get(n)||[]).find(Ld(this.id,e.templateIndex));r&&(r.ctx=e.id)}),e.placeholders.forEach((t,n)=>{const r=this.placeholders.get(n);if(!r)return void this.placeholders.set(n,t);const i=r.findIndex(Ld(e.id,e.templateIndex));if(i>=0){const e=n.startsWith("CLOSE");if(n.endsWith("NG-TEMPLATE"))r.splice(i+(e?0:1),0,...t);else{t[e?t.length-1:0].tmpl=r[i],r.splice(i,1,...t)}}else r.push(...t);this.placeholders.set(n,r)}),this._unresolvedCtxCount--}}function Rd(e,t,n,r){return rs(`${r?"/":""}${e}${t}`,n)}function Nd(e,{index:t,ctx:n,isVoid:r},i){return r?Rd(e,t,n)+Rd(e,t,n,!0):Rd(e,t,n,i)}function Ld(e,t){return n=>"object"==typeof n&&n.type===Pd.TEMPLATE&&n.index===t&&n.ctx===e}function Fd(e){const t=(e,t)=>Nd("#",e,t),n=(e,t)=>Nd("*",e,t);switch(e.type){case Pd.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?n(e.tmpl,!0):""):e.tmpl?n(e.tmpl)+t(e)+(e.isVoid?n(e.tmpl,!0):""):t(e);case Pd.TEMPLATE:return n(e,e.closed);default:return e}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const jd=new class{visitText(e){return e.value}visitContainer(e){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(e=>e.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${us(e,!1)}}`}};function Vd(e){return e.visit(jd)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Bd={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class Ud{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,n){const r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];const i=e.toUpperCase(),s=Bd[i]||`TAG_${i}`,o=this._generateUniqueName(n?s:`START_${s}`);return this._signatureToName[r]=o,o}getCloseTagPlaceholderName(e){const t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];const n=e.toUpperCase(),r=Bd[n]||`TAG_${n}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=i,i}getPlaceholderName(e,t){const n=e.toUpperCase(),r=`PH: ${n}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];const i=this._generateUniqueName(n);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}_hashTag(e,t,n){return`<${e}`+Object.keys(t).sort().map(e=>` ${e}=${t[e]}`).join("")+(n?"/>":`>`)}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;const t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,`${e}_${t}`}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Gd=new Qh(new Fh);function qd(e){const t=new Hd(Gd,e);return(e,n,r,i,s)=>t.toI18nMessage(e,n,r,i,s)}function $d(e,t){return t}class Hd{constructor(e,t){this._expressionParser=e,this._interpolationConfig=t}toI18nMessage(e,t="",n="",r="",i){const s={isIcu:1==e.length&&e[0]instanceof au,icuDepth:0,placeholderRegistry:new Ud,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||$d},o=du(this,e,s);return new zr(o,s.placeholderToContent,s.placeholderToMessage,t,n,r)}visitElement(e,t){var n;const r=du(this,e.children,t),i={};e.attrs.forEach(e=>{i[e.name]=e.value});const s=_(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,i,s);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";s||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:``,sourceSpan:null!==(n=e.endSourceSpan)&&void 0!==n?n:e.sourceSpan});const c=new Xr(e.name,i,o,a,r,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,c)}visitAttribute(e,t){const n=this._visitTextWithInterpolation(e.value,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,n)}visitText(e,t){const n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,n)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;const n={},r=new Yr(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(e=>{n[e.value]=new Kr(e.expression.map(e=>e.visit(this,t)),e.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){const n=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=n,t.placeholderToContent[n]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}const i=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);const s=new Zr(r,i,e.sourceSpan);return t.visitNodeFn(e,s)}visitExpansionCase(e,t){throw new Error("Unreachable code")}_visitTextWithInterpolation(e,t,n,r){const{strings:i,expressions:s}=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(0===s.length)return new Wr(e,t);const o=[];for(let e=0;et[n].constructor!==e.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(t.children,e);for(let n=0;n0){const r=zd(n,t);e.push(new Wr(t.text,r))}}_addPlaceholder(e,t,n,r){const i=zd(r,n),s=n.text.split(Wd)[2]||"INTERPOLATION";const o=t.placeholderRegistry.getPlaceholderName(s,n.text),a=this._interpolationConfig.start+n.text+this._interpolationConfig.end;t.placeholderToContent[o]={text:a,sourceSpan:i},e.push(new Qr(n.text,o,i))}}function zd(e,{start:t,end:n}){return new ua(e.fullStart.moveBy(t),e.fullStart.moveBy(n))}const Wd=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Kd extends fa{constructor(e,t){super(e,t)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Yd=(e,t)=>(e instanceof su&&(t instanceof Zr&&e.i18n instanceof zr&&(t.previousMessage=e.i18n),e.i18n=t),t);class Xd{constructor(e=qs,t=!1,n=!1){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=n,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=qd(this.interpolationConfig)}_generateI18nMessage(e,t="",n){const{meaning:r,description:i,customId:s}=this._parseMetadata(t),o=this._createI18nMessage(e,r,i,s,n);return this._setMessageId(o,t),this._setLegacyIds(o,t),o}visitAllWithErrors(e){const t=e.map(e=>e.visit(this,null));return new Nu(t,this._errors)}visitElement(e){if(function(e){return e.attrs.some(e=>Zi(e.name))}(e)){this.hasI18nMeta=!0;const t=[],n={};for(const r of e.attrs)if(r.name===Wi){const t=e.i18n||r.value,n=this._generateI18nMessage(e.children,t,Yd);n.nodes.length&&(e.i18n=n)}else if(r.name.startsWith(Ki)){const t=r.name.slice(Ki.length);md(e.name,t)?this._reportError(r,`Translating attribute '${t}' is disallowed for security reasons.`):n[t]=r.value}else t.push(r);if(Object.keys(n).length)for(const e of t){const t=n[e.name];void 0!==t&&e.value&&(e.i18n=this._generateI18nMessage([e],e.i18n||t))}this.keepI18nAttrs||(e.attrs=t)}return du(this,e.children,e.i18n),e}visitExpansion(e,t){let n;const r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Zr){const t=r.name;ns(n=this._generateI18nMessage([e],r)).name=t}else n=this._generateI18nMessage([e],t||r);return e.i18n=n,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}_parseMetadata(e){return"string"==typeof e?function(e=""){let t,n,r;if(e=e.trim()){const i=e.indexOf(Zd),s=e.indexOf(Qd);let o;[o,t]=i>-1?[e.slice(0,i),e.slice(i+2)]:[e,""],[n,r]=s>-1?[o.slice(0,s),o.slice(s+1)]:["",o]}return{customId:t,meaning:n,description:r}}(e):e instanceof zr?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof zr&&t.id||si(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[ii(e),oi(e)];else if("string"!=typeof t){const n=t instanceof zr?t:t instanceof Zr?t.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}const Qd="|",Zd="@@";const Jd="goog.getMsg";function ep(e,t,n,r){const i=[Gt(function(e){return e.nodes.map(e=>e.visit(tp,null)).join("")}(t))];Object.keys(r).length&&i.push(ba(r,!0));const s=n.set(Pt(Jd).callFn(i)).toConstDecl(),o=function(e){const t=[];return e.description&&t.push({tagName:"desc",text:e.description}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),0==t.length?null:kt(t)}(t);return null!==o&&s.addLeadingComment(o),[s,new ht(e.set(n))]}const tp=new class{formatPh(e){return`{$${us(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e){return Vd(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(e=>e.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}};function np(e,t,n){const{messageParts:r,placeHolders:i}=function(e){const t=[];return e.nodes.forEach(e=>e.visit(rp,t)),function(e){const t=[],n=[];e[0]instanceof Re&&t.push(ip(e[0].sourceSpan.start));for(let r=0;rn[e.text]),a=function(e,t,n,r,i){return new Ne(e,t,n,r,i)}(t,r,i,o,s),c=e.set(a);return[new ht(c)]}const rp=new class{visitText(e,t){t[t.length-1]instanceof Me?t[t.length-1].text+=e.value:t.push(new Me(e.value,e.sourceSpan))}visitContainer(e,t){e.children.forEach(e=>e.visit(this,t))}visitIcu(e,t){t.push(new Me(Vd(e),e.sourceSpan))}visitTagPlaceholder(e,t){var n,r;t.push(this.createPlaceholderPiece(e.startName,null!==(n=e.startSourceSpan)&&void 0!==n?n:e.sourceSpan)),e.isVoid||(e.children.forEach(e=>e.visit(this,t)),t.push(this.createPlaceholderPiece(e.closeName,null!==(r=e.endSourceSpan)&&void 0!==r?r:e.sourceSpan)))}visitPlaceholder(e,t){t.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitIcuPlaceholder(e,t){t.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}createPlaceholderPiece(e,t){return new Re(us(e,!1),t)}};function ip(e){return new Me("",new ua(e,e))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const sp="select",op="ngProjectAs",ap=new Set(["$event"]),cp=new Map([["window",or.resolveWindow],["document",or.resolveDocument],["body",or.resolveBody]]),up=[" ","\n","\r","\t"];function lp(e,t){return Bt(Pt(_s).bitwiseAnd(Gt(e),null,!1),t)}function hp(e,t=null,n=null){const{type:r,name:i,target:s,phase:o,handler:a}=e;if(s&&!cp.has(s))throw new Error(`Unexpected global target '${s}' defined for '${i}' event.\n Supported list of global targets: ${Array.from(cp.keys())}.`);const c=new Set,u=null===n||0===n.bindingLevel?Pt(fs):n.getOrCreateSharedContextVar(0),l=lc(n,u,a,"b",()=>Jt("Unexpected interpolation"),e.handlerSpan,c,ap),h=[];n&&(h.push(...n.restoreViewStatement()),h.push(...n.variableDeclarations())),h.push(...l.render3Stmts);const d=1===r?function(e,t){return`${Ir}${e}.${t}`}(i,o):i,p=t&&Mn(t),f=[];c.has("$event")&&f.push(new We("$event",se));const _=Vt(f,h,oe,null,p),m=[Gt(d),_];return s&&m.push(Gt(!1),Mt(cp.get(s))),m}class dp{constructor(e,t,n=0,r,i,s,o,a,c,u,l,h,d,p,f={prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}){this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=s,this.templateName=o,this.directiveMatcher=a,this.directives=c,this.pipeTypeByName=u,this.pipes=l,this._namespace=h,this.i18nUseExternalIds=p,this._constants=f,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=vs,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=ws,this.visitVariable=ws,this.visitTextAttribute=ws,this.visitBoundAttribute=ws,this.visitBoundEvent=ws,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=d.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new pp(e,()=>this.allocateDataSlot(),e=>this.allocatePureFunctionSlots(e),(e,t,n,r)=>{const i=u.get(e);i&&this.pipes.add(i),this._bindingScope.set(this.level,t,r),this.creationInstruction(null,or.pipe,[Gt(n),Gt(e)])})}buildTemplateFunction(e,t,n=0,r){this._ngContentSelectorsOffset=n,this._namespace!==or.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(e=>this.registerContextVariables(e));const i=this.i18nContext||Ji(r)&&!es(r)&&!(1===(s=e).length&&s[0]instanceof jr&&e[0].i18n===r);var s;const o=Dp(e);if(i&&this.i18nStart(null,r,o),Hr(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(e=>e()),0===this.level&&this._ngContentReservedSlots.length){const e=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){const t=this._ngContentReservedSlots.map(e=>"*"!==e?X(e):e);e.push(this.constantPool.getConstLiteral(Es(t),!0))}this.creationInstruction(null,or.projectionDef,e,!0)}i&&this.i18nEnd(null,o);const a=this._creationCodeFns.map(e=>e()),c=this._updateCodeFns.map(e=>e()),u=this._bindingScope.viewSnapshotStatements(),l=this._bindingScope.variableDeclarations().concat(this._tempVariables),h=a.length>0?[lp(1,u.concat(a))]:[],d=c.length>0?[lp(2,l.concat(c))]:[];return Vt([new We(_s,ce),new We(fs,null)],[...this._prefixCode,...h,...d],oe,null,this.templateName)}getLocal(e){return this._bindingScope.get(e)}notifyImplicitReceiverUse(){this._bindingScope.notifyImplicitReceiverUse()}i18nTranslate(e,t={},n,r){const i=n||this.i18nGenerateMainBlockVar(),s=function(e,t,n,r={},i){const s=[hs(t),Bt(Pp(),ep(t,e,n,cs(r,!0)),np(t,e,cs(r,!1)))];i&&s.push(new ht(t.set(i(t))));return s}(e,i,this.i18nGenerateClosureVar(e.id),t,r);return this._constants.prepareStatements.push(...s),i}registerContextVariables(e){const t=this._bindingScope.freshReferenceName(),n=this.level,r=Pt(e.name+t);this._bindingScope.set(n,e.name,r,1,(t,i)=>{let s;if(t.bindingLevel===n)s=Pt(fs);else{const e=t.getSharedContextName(n);s=e||gp(i)}return[r.set(s.prop(e.value||gs)).toConstDecl()]})}i18nAppendBindings(e){e.length>0&&e.forEach(e=>this.i18n.appendBinding(e))}i18nBindProps(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(r instanceof Mr)t[n]=Gt(r.value);else{const e=r.value.visit(this._valueConverter);if(this.allocateBindingSlots(e),e instanceof qa){const{strings:r,expressions:i}=e,{id:s,bindings:o}=this.i18n,a=function(e,t=0,n=0){if(!e.length)return"";let r="";const i=e.length-1;for(let s=0;s{if(1===e.length)s[t]=e[0];else{const n=rs(`${Xi}${t}`);s[t]=Gt(n),i[t]=Ft(e)}}),(Array.from(r.values()).some(e=>e.length>1)||Object.keys(i).length)&&(o=(e=>{const t=[e];return Object.keys(i).length&&t.push(ba(i,!0)),mp(null,or.i18nPostprocess,t)})),this.i18nTranslate(n,s,e.ref,o)}}i18nStart(e=null,t,n){const r=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(r,this.templateIndex,t):new Md(r,this.i18nGenerateMainBlockVar(),0,this.templateIndex,t);const{id:i,ref:s}=this.i18n,o=[Gt(r),this.addToConsts(s)];i>0&&o.push(Gt(i)),this.creationInstruction(e,n?or.i18n:or.i18nStart,o)}i18nEnd(e=null,t){if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);const{index:n,bindings:r}=this.i18n;if(r.size){const t=[];r.forEach(n=>{t.push({sourceSpan:e,value:()=>this.convertPropertyBinding(n)})}),this.updateInstructionChainWithAdvance(this.getConstCount()-1,or.i18nExp,t),this.updateInstruction(e,or.i18nApply,[Gt(n)])}t||this.creationInstruction(e,or.i18nEnd),this.i18n=null}i18nAttributesInstruction(e,t,n){let r=!1;const i=[],s=[];if(t.forEach(e=>{const t=e.i18n,o=e.value.visit(this._valueConverter);if(this.allocateBindingSlots(o),o instanceof qa){const a=ss(as(t));i.push(Gt(e.name),this.i18nTranslate(t,a)),o.expressions.forEach(e=>{r=!0,s.push({sourceSpan:n,value:()=>this.convertPropertyBinding(e)})})}}),s.length>0&&this.updateInstructionChainWithAdvance(e,or.i18nExp,s),i.length>0){const e=Gt(this.allocateDataSlot()),t=this.addToConsts(Ft(i));this.creationInstruction(n,or.i18nAttributes,[e,t]),r&&this.updateInstruction(n,or.i18nApply,[e])}}getNamespaceInstruction(e){switch(e){case"math":return or.namespaceMathML;case"svg":return or.namespaceSVG;default:return or.namespaceHTML}}addNamespaceInstruction(e,t){this._namespace=e,this.creationInstruction(t.startSourceSpan,e)}interpolatedUpdateInstruction(e,t,n,r,i,s){this.updateInstructionWithAdvance(t,r.sourceSpan,e,()=>[Gt(n),...this.getUpdateInstructionArguments(i),...s])}visitContent(e){const t=this.allocateDataSlot(),n=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,r=[Gt(t)];this._ngContentReservedSlots.push(e.selector);const i=e.attributes.filter(e=>e.name.toLowerCase()!==sp),s=this.getAttributeExpressions(e.name,i,[],[]);s.length>0?r.push(Gt(n),Ft(s)):0!==n&&r.push(Gt(n)),this.creationInstruction(e.sourceSpan,or.projection,r),this.i18n&&this.i18n.appendProjection(e.i18n,t)}visitElement(e){var t,n;const r=this.allocateDataSlot(),o=new kh(null);let a=!1;const c=Ji(e.i18n)&&!es(e.i18n),u=[],[l,h]=i(e.name),d=s(e.name);for(const t of e.attributes){const{name:e,value:n}=t;e===bs?a=!0:"style"===e?o.registerStyleAttr(n):"class"===e?o.registerClassAttr(n):u.push(t)}this.matchDirectives(e.name,e);const p=[Gt(r)];d||p.push(Gt(h));const f=[],_=[];e.inputs.forEach(e=>{o.registerBoundInput(e)||(0===e.type&&e.i18n?_.push(e):f.push(e))});const m=this.getAttributeExpressions(e.name,u,f,e.outputs,o,[],_);p.push(this.addAttrsToConsts(m));const g=this.prepareRefsArray(e.references);p.push(this.addToConsts(g));const b=this._namespace,y=this.getNamespaceInstruction(l);y!==b&&this.addNamespaceInstruction(y,e),this.i18n&&this.i18n.appendElement(e.i18n,r);const v=!c&&this.i18n?!Dp(e.children):e.children.length>0,w=!o.hasBindingsWithPipes&&0===e.outputs.length&&0===_.length&&!v,E=!w&&Dp(e.children);if(w)this.creationInstruction(e.sourceSpan,d?or.elementContainer:or.element,Cs(p));else{if(this.creationInstruction(e.startSourceSpan,d?or.elementContainerStart:or.elementStart,Cs(p)),a&&this.creationInstruction(e.startSourceSpan,or.disableBindings),_.length>0&&this.i18nAttributesInstruction(r,_,null!==(t=e.startSourceSpan)&&void 0!==t?t:e.sourceSpan),e.outputs.length>0){const t=e.outputs.map(t=>({sourceSpan:t.sourceSpan,params:this.prepareListenerParameter(e.name,t,r)}));this.creationInstructionChain(or.listener,t)}c&&this.i18nStart(e.startSourceSpan,e.i18n,E)}const S=o.buildUpdateLevelInstructions(this._valueConverter),C=S.length-1;for(let e=0;e<=C;e++){const t=S[e];this._bindingSlots+=this.processStylingUpdateInstruction(r,t)}const O=Gt(void 0),I=[],x=[];if(f.forEach(e=>{const t=e.type;if(4===t){const t=e.value.visit(this._valueConverter),n=!(t instanceof Ba)||!!t.value;this.allocateBindingSlots(t),I.push({name:xr(e.name),sourceSpan:e.sourceSpan,value:()=>n?this.convertPropertyBinding(t):O})}else{if(e.i18n)return;const n=e.value.visit(this._valueConverter);if(void 0!==n){const s=[],[o,a]=i(e.name),c=1===t,u=xp(e.securityContext,c);if(u&&s.push(u),o){const e=Gt(o);u?s.push(e):s.push(Gt(null),e)}if(this.allocateBindingSlots(n),0===t)n instanceof qa?this.interpolatedUpdateInstruction(Sp(n),r,a,e,n,s):I.push({name:a,sourceSpan:e.sourceSpan,value:()=>this.convertPropertyBinding(n),params:s});else if(1===t)if(n instanceof qa&&As(n)>1)this.interpolatedUpdateInstruction(function(e){switch(As(e)){case 3:return or.attributeInterpolate1;case 5:return or.attributeInterpolate2;case 7:return or.attributeInterpolate3;case 9:return or.attributeInterpolate4;case 11:return or.attributeInterpolate5;case 13:return or.attributeInterpolate6;case 15:return or.attributeInterpolate7;case 17:return or.attributeInterpolate8;default:return or.attributeInterpolateV}}(n),r,a,e,n,s);else{const t=n instanceof qa?n.expressions[0]:n;x.push({name:a,sourceSpan:e.sourceSpan,value:()=>this.convertPropertyBinding(t),params:s})}else this.updateInstructionWithAdvance(r,e.sourceSpan,or.classProp,()=>[Gt(r),Gt(a),this.convertPropertyBinding(n),...s])}}}),I.length>0&&this.updateInstructionChainWithAdvance(r,or.property,I),x.length>0&&this.updateInstructionChainWithAdvance(r,or.attribute,x),Hr(this,e.children),!c&&this.i18n&&this.i18n.appendElement(e.i18n,r,!0),!w){const t=null!==(n=e.endSourceSpan)&&void 0!==n?n:e.sourceSpan;c&&this.i18nEnd(t,E),a&&this.creationInstruction(t,or.enableBindings),this.creationInstruction(t,d?or.elementContainerEnd:or.elementEnd)}}visitTemplate(e){var t;const n=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,n);const r=Mn(e.tagName||""),s=`${this.contextName}${r?"_"+r:""}_${n}`,o=`${s}_Template`,a=[Gt(n),Pt(o),Gt(e.tagName?i(e.tagName)[1]:e.tagName)];this.matchDirectives("ng-template",e);const c=this.getAttributeExpressions("ng-template",e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(a.push(this.addAttrsToConsts(c)),e.references&&e.references.length){const t=this.prepareRefsArray(e.references);a.push(this.addToConsts(t)),a.push(Mt(or.templateRefExtractor))}const u=new dp(this.constantPool,this._bindingScope,this.level+1,s,this.i18n,n,o,this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(()=>{const t=u.buildTemplateFunction(e.children,e.variables,this._ngContentReservedSlots.length+this._ngContentSelectorsOffset,e.i18n);this.constantPool.statements.push(t.toDeclStmt(o)),u._ngContentReservedSlots.length&&this._ngContentReservedSlots.push(...u._ngContentReservedSlots)}),this.creationInstruction(e.sourceSpan,or.templateCreate,()=>(a.splice(2,0,Gt(u.getConstCount()),Gt(u.getVarCount())),Cs(a))),this.templatePropertyBindings(n,e.templateAttrs),"ng-template"===e.tagName){const[r,i]=function(e,t){const n=[],r=[];for(const i of e)(t(i)?n:r).push(i);return[n,r]}(e.inputs,ts);if(r.length>0&&this.i18nAttributesInstruction(n,r,null!==(t=e.startSourceSpan)&&void 0!==t?t:e.sourceSpan),i.length>0&&this.templatePropertyBindings(n,i),e.outputs.length>0){const t=e.outputs.map(e=>({sourceSpan:e.sourceSpan,params:this.prepareListenerParameter("ng_template",e,n)}));this.creationInstructionChain(or.listener,t)}}}visitBoundText(e){if(this.i18n){const t=e.value.visit(this._valueConverter);return this.allocateBindingSlots(t),void(t instanceof qa&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(t.expressions)))}const t=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,or.text,[Gt(t)]);const n=e.value.visit(this._valueConverter);this.allocateBindingSlots(n),n instanceof qa?this.updateInstructionWithAdvance(t,e.sourceSpan,function(e){switch(As(e)){case 1:return or.textInterpolate;case 3:return or.textInterpolate1;case 5:return or.textInterpolate2;case 7:return or.textInterpolate3;case 9:return or.textInterpolate4;case 11:return or.textInterpolate5;case 13:return or.textInterpolate6;case 15:return or.textInterpolate7;case 17:return or.textInterpolate8;default:return or.textInterpolateV}}(n),()=>this.getUpdateInstructionArguments(n)):Jt("Text nodes should be interpolated and never bound directly.")}visitText(e){this.i18n||this.creationInstruction(e.sourceSpan,or.text,[Gt(this.allocateDataSlot()),Gt(e.value)])}visitIcu(e){let t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));const n=this.i18n,r=this.i18nBindProps(e.vars),i=this.i18nBindProps(e.placeholders),s=e.i18n,o=e=>{const t=cs(Object.assign(Object.assign({},r),i),!1);return mp(null,or.i18nPostprocess,[e,ba(t,!0)])};if(es(n.meta))this.i18nTranslate(s,{},n.ref,o);else{const e=this.i18nTranslate(s,{},void 0,o);n.appendIcu(ns(s).name,e)}return t&&this.i18nEnd(null,!0),null}allocateDataSlot(){return this._dataIndex++}getConstCount(){return this._dataIndex}getVarCount(){return this._pureFunctionSlots}getConsts(){return this._constants}getNgContentSelectors(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(Es(this._ngContentReservedSlots),!0):null}bindingContext(){return`${this._bindingContext++}`}templatePropertyBindings(e,t){const n=[];t.forEach(t=>{if(t instanceof Lr){const r=t.value.visit(this._valueConverter);if(void 0!==r)if(this.allocateBindingSlots(r),r instanceof qa){const n=[];this.interpolatedUpdateInstruction(Sp(r),e,t.name,t,r,n)}else n.push({name:t.name,sourceSpan:t.sourceSpan,value:()=>this.convertPropertyBinding(r)})}}),n.length>0&&this.updateInstructionChainWithAdvance(e,or.property,n)}instructionFn(e,t,n,r,i=!1){e[i?"unshift":"push"](()=>{const e=Array.isArray(r)?r:r();return mp(t,n,e).toStmt()})}processStylingUpdateInstruction(e,t){let n=0;if(t){const r=[];t.calls.forEach(e=>{n+=e.allocateBindingSlots,r.push({sourceSpan:e.sourceSpan,value:()=>e.params(t=>e.supportsInterpolation&&t instanceof qa?this.getUpdateInstructionArguments(t):this.convertPropertyBinding(t))})}),this.updateInstructionChainWithAdvance(e,t.reference,r)}return n}creationInstruction(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)}creationInstructionChain(e,t){const n=t.length?t[0].sourceSpan:null;this._creationCodeFns.push(()=>Ts(e,t.map(e=>e.params()),n).toStmt())}updateInstructionWithAdvance(e,t,n,r){this.addAdvanceInstructionIfNecessary(e,t),this.updateInstruction(t,n,r)}updateInstruction(e,t,n){this.instructionFn(this._updateCodeFns,e,t,n||[])}updateInstructionChain(e,t){const n=t.length?t[0].sourceSpan:null;this._updateCodeFns.push(()=>{const r=t.map(e=>{const t=e.value(),n=Array.isArray(t)?t:[t];return e.params&&n.push(...e.params),e.name&&n.unshift(Gt(e.name)),n});return Ts(e,r,n).toStmt()})}updateInstructionChainWithAdvance(e,t,n){this.addAdvanceInstructionIfNecessary(e,n.length?n[0].sourceSpan:null),this.updateInstructionChain(t,n)}addAdvanceInstructionIfNecessary(e,t){if(e!==this._currentIndex){const n=e-this._currentIndex;if(n<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,t,or.advance,[Gt(n)]),this._currentIndex=e}}allocatePureFunctionSlots(e){const t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t}allocateBindingSlots(e){this._bindingSlots+=e instanceof qa?e.expressions.length:1}getImplicitReceiverExpr(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?Pt(fs):this._bindingScope.getOrCreateSharedContextVar(0)}convertPropertyBinding(e){const t=pc(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),da.Expression,()=>Jt("Unexpected interpolation")),n=t.currValExpr;return this._tempVariables.push(...t.stmts),n}getUpdateInstructionArguments(e){const{args:t,stmts:n}=function(e,t,n,r){const i=new vc(e,t,r,void 0),s=n.visit(i,pa.Expression);i.usesImplicitReceiver&&e.notifyImplicitReceiverUse();const o=fc(i,r);let a=s.args.slice(1);if(n instanceof qa){const e=n.strings;3===a.length&&""===e[0]&&""===e[1]?a=[a[1]]:a.length>=19&&(a=[Ft(a)])}return{stmts:o,args:a}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext());return this._tempVariables.push(...n),t}matchDirectives(e,t){if(this.directiveMatcher){const n=Ep(e,xs(t));this.directiveMatcher.match(n,(e,t)=>{this.directives.add(t)})}}getAttributeExpressions(e,t,n,r,i,s=[],o=[]){const a=new Set,c=[];let u;for(const n of t)if(n.name===op&&(u=n),n.i18n){const{i18nVarRefsCache:e}=this._constants;let t;e.has(n.i18n)?t=e.get(n.i18n):(t=this.i18nTranslate(n.i18n),e.set(n.i18n,t)),c.push(Gt(n.name),t)}else c.push(...yp(n.name),Tp(e,n));function l(e,t){"string"==typeof e?a.has(e)||(c.push(...yp(e)),void 0!==t&&c.push(t),a.add(e)):c.push(Gt(e))}if(u&&c.push(...function(e){const t=X(e.value)[0];return[Gt(5),Es(t)]}(u)),i&&i.populateInitialStylingAttrs(c),n.length||r.length){const e=c.length;for(let e=0;el(e.name))),o.length&&(c.push(Gt(6)),o.forEach(e=>l(e.name))),c}addToConsts(e){if(qt(e))return it;const t=this._constants.constExpressions;for(let n=0;n0?this.addToConsts(Ft(e)):it}prepareRefsArray(e){if(!e||0===e.length)return it;return Es(Jn(e.map(e=>{const t=this.allocateDataSlot(),n=this._bindingScope.freshReferenceName(),r=this.level,i=Pt(n);return this._bindingScope.set(r,e.name,i,0,(e,n)=>{const r=n>0?[gp(n).toStmt()]:[],s=i.set(Mt(or.reference).callFn([Gt(t)]));return r.concat(s.toConstDecl())},!0),[e.name,e.value]})))}prepareListenerParameter(e,t,n){return()=>{const r=t.name,i=1===t.type?Ar(r,t.phase):Mn(r),s=`${this.templateName}_${e}_${i}_${n}_listener`,o=this._bindingScope.nestedScope(this._bindingScope.bindingLevel,ap);return hp(t,s,o)}}}class pp extends rc{constructor(e,t,n,r){super(),this.constantPool=e,this.allocateSlot=t,this.allocatePureFunctionSlots=n,this.definePipe=r,this._pipeBindExprs=[]}visitPipe(e,t){const n=this.allocateSlot(),r=`PIPE:${n}`,i=this.allocatePureFunctionSlots(2+e.args.length),s=new Ra(e.span,e.sourceSpan,e.nameSpan,new Da(e.span,e.sourceSpan),r),{identifier:o,isVarLength:a}=function(e){const t=fp[e.length];return{identifier:t||or.pipeBindV,isVarLength:!t}}(e.args);this.definePipe(e.name,r,n,Mt(o));const c=[e.exp,...e.args],u=a?this.visitAll([new Ua(e.span,e.sourceSpan,c)]):this.visitAll(c),l=new Xa(e.span,e.sourceSpan,s,[new Ba(e.span,e.sourceSpan,n),new Ba(e.span,e.sourceSpan,i),...u]);return this._pipeBindExprs.push(l),l}updatePipeSlotOffsets(e){this._pipeBindExprs.forEach(t=>{t.args[1].value+=e})}visitLiteralArray(e,t){return new Ec(e.span,e.sourceSpan,this.visitAll(e.expressions),e=>{const t=Ft(e);return bp(this.constantPool,t,this.allocatePureFunctionSlots)})}visitLiteralMap(e,t){return new Ec(e.span,e.sourceSpan,this.visitAll(e.values),t=>{const n=jt(t.map((t,n)=>({key:e.keys[n].key,value:t,quoted:e.keys[n].quoted})));return bp(this.constantPool,n,this.allocatePureFunctionSlots)})}}const fp=[or.pipeBind1,or.pipeBind2,or.pipeBind3,or.pipeBind4];const _p=[or.pureFunction0,or.pureFunction1,or.pureFunction2,or.pureFunction3,or.pureFunction4,or.pureFunction5,or.pureFunction6,or.pureFunction7,or.pureFunction8];function mp(e,t,n){return Mt(t,null,e).callFn(n,e)}function gp(e){return Mt(or.nextContext).callFn(e>1?[Gt(e)]:[])}function bp(e,t,n){const{literalFactory:r,literalFactoryArguments:i}=e.getLiteralFactory(t),s=n(1+i.length),{identifier:o,isVarLength:a}=function(e){const t=_p[e.length];return{identifier:t||or.pureFunctionV,isVarLength:!t}}(i),c=[Gt(s),r];return a?c.push(Ft(i)):c.push(...i),Mt(o).callFn(c)}function yp(e){const[t,n]=i(e),r=Gt(n);return t?[Gt(0),Gt(t),r]:[r]}const vp="$$shared_ctx$$";class wp{constructor(e=0,t=null,n){if(this.bindingLevel=e,this.parent=t,this.globals=n,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,void 0!==n)for(const e of n)this.set(0,e,Pt(e))}static createRootScope(){return new wp}get(e){let t=this;for(;t;){let n=t.map.get(e);if(null!=n)return t!==this&&(n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef},this.map.set(e,n),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel,n.localRef)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}set(e,t,n,r=0,i,s){if(this.map.has(t)){if(s)return this;Jt(`The name ${t} is already defined in scope to be ${this.map.get(t)}`)}return this.map.set(t,{retrievalLevel:e,lhs:n,declare:!1,declareLocalCallback:i,priority:r,localRef:s||!1}),this}getLocal(e){return this.get(e)}notifyImplicitReceiverUse(){0!==this.bindingLevel&&(this.map.get(vp+0).declare=!0)}nestedScope(e,t){const n=new wp(e,this,t);return e>0&&n.generateSharedContextVar(0),n}getOrCreateSharedContextVar(e){const t=vp+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs}getSharedContextName(e){const t=this.map.get(vp+e);return t&&t.declare?t.lhs:null}maybeGenerateSharedContextVar(e){if(1===e.priority&&e.retrievalLevel[t.set(gp(n)).toConstDecl()],declare:!1,priority:2,localRef:!1})}getComponentProperty(e){const t=this.map.get(vp+0);return t.declare=!0,this.maybeRestoreView(0,!1),t.lhs.prop(e)}maybeRestoreView(e,t){this.isListenerScope()&&(ee.declare).sort((e,t)=>t.retrievalLevel-e.retrievalLevel||t.priority-e.priority).reduce((t,n)=>{const r=this.bindingLevel-n.retrievalLevel,i=n.declareLocalCallback(this,r-e);return e=r,t.concat(i)},[])}freshReferenceName(){let e=this;for(;e.parent;)e=e.parent;return`${ms}${e.referenceNameIndex++}`}}function Ep(e,t){const n=new g,r=i(e)[1];return n.setElement(r),Object.getOwnPropertyNames(t).forEach(e=>{const r=i(e)[1],s=t[e];if(n.addAttribute(r,s),"class"===e.toLowerCase()){s.trim().split(/\s+/).forEach(e=>n.addClassName(e))}}),n}function Sp(e){switch(As(e)){case 1:return or.propertyInterpolate;case 3:return or.propertyInterpolate1;case 5:return or.propertyInterpolate2;case 7:return or.propertyInterpolate3;case 9:return or.propertyInterpolate4;case 11:return or.propertyInterpolate5;case 13:return or.propertyInterpolate6;case 15:return or.propertyInterpolate7;case 17:return or.propertyInterpolate8;default:return or.propertyInterpolateV}}function Cp(e,t,n={}){var r;const{interpolationConfig:i,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:o}=n,a=null!==(r=n.isInline)&&void 0!==r&&r,c=Ip(i),u=(new Vu).parse(e,t,Object.assign(Object.assign({leadingTriviaChars:up},n),{tokenizeExpansionForms:!0}));if(u.errors&&u.errors.length>0)return{interpolationConfig:i,preserveWhitespaces:s,template:e,templateUrl:t,isInline:a,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};let l=u.rootNodes;const h=new Xd(i,!s,o),d=h.visitAllWithErrors(l);if(d.errors&&d.errors.length>0)return{interpolationConfig:i,preserveWhitespaces:s,template:e,templateUrl:t,isInline:a,errors:d.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};l=d.rootNodes,s||(l=du(new zu,l),h.hasI18nMeta&&(l=du(new Xd(i,!1),l)));const{nodes:p,errors:f,styleUrls:_,styles:m,ngContentSelectors:g}=xd(l,c);return{interpolationConfig:i,preserveWhitespaces:s,errors:f.length>0?f:null,template:e,templateUrl:t,isInline:a,nodes:p,styleUrls:_,styles:m,ngContentSelectors:g}}const Op=new fd;function Ip(e=qs){return new Ll(new Zh(new Fh),e,Op,null,[])}function xp(e,t){switch(e){case z.HTML:return Mt(or.sanitizeHtml);case z.SCRIPT:return Mt(or.sanitizeScript);case z.STYLE:return t?Mt(or.sanitizeStyle):null;case z.URL:return Mt(or.sanitizeUrl);case z.RESOURCE_URL:return Mt(or.sanitizeResourceUrl);default:return null}}function Tp(e,t){const n=Es(t.value);if(!md(e,t.name))return n;switch(Op.securityContext(e,t.name,!0)){case z.HTML:return Ut(Mt(or.trustConstantHtml),new De([new ke(t.value)],[]),void 0,t.valueSpan);case z.RESOURCE_URL:return Ut(Mt(or.trustConstantResourceUrl),new De([new ke(t.value)],[]),void 0,t.valueSpan);default:return n}}function Ap(e){return e instanceof Mr||e instanceof Rr||e instanceof qr}function Dp(e){return e.every(Ap)}const kp="ngI18nClosureMode";function Pp(){return Lt(Pt(kp)).notIdentical(Gt("undefined",ue)).and(Pt(kp))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Mp=[],Rp=/attr\.([^\]]+)/;function Np(e,t,n){const r=new Is,i=X(e.selector);return r.set("type",e.internalType),i.length>0&&r.set("selectors",Es(i)),e.queries.length>0&&r.set("contentQueries",function(e,t,n){const r=[],i=[],s=ys(i,ps);for(const n of e){r.push(Mt(or.contentQuery).callFn([Pt("dirIndex"),...$p(n,t)]).toStmt());const e=s(),o=Mt(or.loadQuery).callFn([]),a=Mt(or.queryRefresh).callFn([e.set(o)]),c=Pt(fs).prop(n.propertyName).set(n.first?e.prop("first"):e);i.push(a.and(c).toStmt())}const o=n?`${n}_ContentQueries`:null;return Vt([new We(_s,ce),new We(fs,null),new We("dirIndex",null)],[lp(1,r),lp(2,i)],oe,null,o)}(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",function(e,t,n){const r=[],i=[],s=ys(i,ps);e.forEach(e=>{const n=Mt(or.viewQuery).callFn($p(e,t));r.push(n.toStmt());const o=s(),a=Mt(or.loadQuery).callFn([]),c=Mt(or.queryRefresh).callFn([o.set(a)]),u=Pt(fs).prop(e.propertyName).set(e.first?o.prop("first"):o);i.push(c.and(u).toStmt())});const o=n?`${n}_Query`:null;return Vt([new We(_s,ce),new We(fs,null)],[lp(1,r),lp(2,i)],oe,null,o)}(e.viewQueries,t,e.name)),r.set("hostBindings",function(e,t,n,r,i,s,o){const a=Pt(fs),c=new kh(a),{styleAttr:u,classAttr:l}=e.specialAttributes;void 0!==u&&c.registerStyleAttr(u);void 0!==l&&c.registerClassAttr(l);const h=[],d=[],p=t,f=Qp(e),_=n.createDirectiveHostEventAsts(f,p);if(_&&_.length){const e=function(e,t){const n=[],r=[],i=[];e.forEach(e=>{let i=e.name&&Mn(e.name);const s=1===e.type?Ar(i,e.targetOrPhase):i,o=t&&i?`${t}_${s}_HostBindingHandler`:null,a=hp(Fr.fromParsedEvent(e),o);1==e.type?r.push(a):n.push(a)}),r.length>0&&i.push(Ts(or.syntheticHostListener,r).toStmt());n.length>0&&i.push(Ts(or.listener,n).toStmt());return i}(_,s);h.push(...e)}const m=n.createBoundHostProperties(f,p),g=[];let b,y=0;m&&m.forEach(e=>{const t=c.registerInputBasedOnName(e.name,e.expression,p);t?y+=Dh:(g.push(e),y++)});const v=()=>{if(!b){const e=e=>{const t=y;return y+=e,t};b=new pp(r,()=>Jt("Unexpected node"),e,()=>Jt("Unexpected pipe"))}return b},w=[],E=[],S=[];g.forEach(e=>{const t=e.expression.visit(v()),r=Xp(a,t),{bindingName:s,instruction:o,isAttribute:c}=function(e){let t,n=e.name;const r=n.match(Rp);return r?(n=r[1],t=or.attribute):e.isAnimation?(n=xr(n),t=or.syntheticHostProperty):t=or.hostProperty,{bindingName:n,instruction:t,isAttribute:!!r}}(e),u=n.calcPossibleSecurityContexts(i,s,c).filter(e=>e!==z.NONE);let l=null;u.length&&(l=2===u.length&&u.indexOf(z.URL)>-1&&u.indexOf(z.RESOURCE_URL)>-1?Mt(or.sanitizeUrlOrResourceUrl):xp(u[0],c));const h=[Gt(s),r.currValExpr];l&&h.push(l),d.push(...r.stmts),o===or.hostProperty?w.push(h):o===or.attribute?E.push(h):o===or.syntheticHostProperty?S.push(h):d.push(Mt(o).callFn(h).toStmt())}),w.length>0&&d.push(Ts(or.hostProperty,w).toStmt());E.length>0&&d.push(Ts(or.attribute,E).toStmt());S.length>0&&d.push(Ts(or.syntheticHostProperty,S).toStmt());const C=function(e){const t=[];for(let n of Object.getOwnPropertyNames(e)){const r=e[n];t.push(Gt(n),r)}return t}(e.attributes);c.assignHostAttrs(C,o),c.hasBindings&&c.buildUpdateLevelInstructions(v()).forEach(e=>{if(e.calls.length>0){const t=[];e.calls.forEach(e=>{y+=Math.max(e.allocateBindingSlots-Dh,0),t.push(function(e,t,n){return e.params(e=>n(t,e).currValExpr)}(e,a,Xp))}),d.push(Ts(e.reference,t).toStmt())}});y&&o.set("hostVars",Gt(y));if(h.length>0||d.length>0){const e=s?`${s}_HostBindings`:null,t=[];return h.length>0&&t.push(lp(1,h)),d.length>0&&t.push(lp(2,d)),Vt([new We(_s,ce),new We(fs,null)],t,oe,null,e)}return null}(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name,r)),r.set("inputs",Ss(e.inputs,!0)),r.set("outputs",Ss(e.outputs)),null!==e.exportAs&&r.set("exportAs",Ft(e.exportAs.map(e=>Gt(e)))),r}function Lp(e,t){const n=[],r=t.providers,i=t.viewProviders;if(r||i){const e=[r||new Je([])];i&&e.push(i),n.push(Mt(or.ProvidersFeature).callFn(e))}t.usesInheritance&&n.push(Mt(or.InheritDefinitionFeature)),t.fullInheritance&&n.push(Mt(or.CopyDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(Mt(or.NgOnChangesFeature)),n.length&&e.set("features",Ft(n))}function Fp(e,t,n){const r=Np(e,t,n);return Lp(r,e),{expression:Mt(or.defineDirective).callFn([r.toLiteralMap()]),type:Yp(e)}}function jp(e,t,n){const r=Np(e,t,n);Lp(r,e);const i=e.selector&&g.parse(e.selector),s=i&&i[0];if(s){const e=s.getAttrs();e.length&&r.set("attrs",t.getConstLiteral(Ft(e.map(e=>Gt(null!=e?e:void 0))),!0))}let o=null;if(e.directives.length>0){const t=new b;for(const{selector:n,type:r}of e.directives)t.addSelectables(g.parse(n),r);o=t}const a=e.name,c=a?`${a}_Template`:null,u=new Set,l=new Set,h=e.changeDetection,d=e.template,p=new dp(t,wp.createRootScope(),0,a,null,null,c,o,u,e.pipes,l,or.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),f=p.buildTemplateFunction(d.nodes,[]),_=p.getNgContentSelectors();_&&r.set("ngContentSelectors",_),r.set("decls",Gt(p.getConstCount())),r.set("vars",Gt(p.getVarCount()));const{constExpressions:m,prepareStatements:y}=p.getConsts();if(m.length>0){let e=Ft(m);y.length>0&&(e=Vt([],[...y,new dt(e)])),r.set("consts",e)}if(r.set("template",f),u.size){const t=Bp(Ft(Array.from(u)),e.declarationListEmitMode);r.set("directives",t)}if(l.size){const t=Bp(Ft(Array.from(l)),e.declarationListEmitMode);r.set("pipes",t)}if(null===e.encapsulation&&(e.encapsulation=A.Emulated),e.styles&&e.styles.length){const n=(e.encapsulation==A.Emulated?function(e,t,n){const r=new Sc;return e.map(e=>r.shimCssText(e,t,n))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.styles,Jc,Zc):e.styles).map(e=>t.getConstLiteral(Gt(e)));r.set("styles",Ft(n))}else e.encapsulation===A.Emulated&&(e.encapsulation=A.None);return e.encapsulation!==A.Emulated&&r.set("encapsulation",Gt(e.encapsulation)),null!==e.animations&&r.set("data",jt([{key:"animation",value:e.animations,quoted:!1}])),null!=h&&h!==D.Default&&r.set("changeDetection",Gt(h)),{expression:Mt(or.defineComponent).callFn([r.toLiteralMap()]),type:Vp(e)}}function Vp(e){const t=Kp(e);return t.push(Wp(e.template.ngContentSelectors)),Nt(Mt(or.ComponentDefWithMeta,t))}function Bp(e,t){switch(t){case 0:return e;case 1:return Vt([],[new dt(e)]);case 2:const n=e.callMethod("map",[Mt(or.resolveForwardRef)]);return Vt([],[new dt(n)])}}function Up(e,t,n){throw new Error("unsupported")}function Gp(e,t){return e.map(e=>{let n=null;return e.read&&e.read.identifier&&(n=t.importExpr(e.read.identifier.reference)),{propertyName:e.propertyName,first:e.first,predicate:qp(e.selectors,t),descendants:e.descendants,read:n,emitDistinctChangesOnly:!!e.emitDistinctChangesOnly,static:!!e.static}})}function qp(e,t){if(e.length>1||1==e.length&&e[0].value){const n=e.map(e=>e.value);return n.some(e=>!e)&&Jt("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(Ft(n.map(e=>Gt(e))))}if(1==e.length){const n=e[0];if(n.identifier)return t.importExpr(n.identifier.reference)}return Jt("Unexpected query form"),rt}function $p(e,t){const n=[Os(e,t),Gt(Hp(e))];return e.read&&n.push(e.read),n}function Hp(e){return(e.descendants?1:0)|(e.static?2:0)|(e.emitDistinctChangesOnly?4:0)}function zp(e){return Nt(jt(Object.keys(e).map(t=>{return{key:t,value:Gt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}})))}function Wp(e){return e.length>0?Nt(Ft(e.map(e=>Gt(e)))):le}function Kp(e){const t=null!==e.selector?e.selector.replace(/\n/g,""):null;return[Or(e.type.type,e.typeArgumentCount),null!==t?(n=t,Nt(Gt(n))):le,null!==e.exportAs?Wp(e.exportAs):le,zp(e.inputs),zp(e.outputs),Wp(e.queries.map(e=>e.propertyName))];var n}function Yp(e){const t=Kp(e);return Nt(Mt(or.DirectiveDefWithMeta,t))}function Xp(e,t){return pc(null,e,t,"b",da.Expression,()=>Jt("Unexpected interpolation"))}function Qp(e){return{hostAttributes:{},hostListeners:e.listeners,hostProperties:e.properties}}function Zp(e,t){const n=Array.from(e).map(([e,n])=>[e,t.importExpr(n)]);return new Map(n)}const Jp=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function ef(e){const t={},n={},r={},i={};for(const s of Object.keys(e)){const o=e[s],a=s.match(Jp);if(null===a)switch(s){case"class":if("string"!=typeof o)throw new Error("Class binding must be string");i.classAttr=o;break;case"style":if("string"!=typeof o)throw new Error("Style binding must be string");i.styleAttr=o;break;default:t[s]="string"==typeof o?Gt(o):o}else if(null!=a[1]){if("string"!=typeof o)throw new Error("Property binding must be string");r[a[1]]=o}else if(null!=a[2]){if("string"!=typeof o)throw new Error("Event binding must be string");n[a[2]]=o}}return{attributes:t,listeners:n,properties:r,specialAttributes:i}}function tf(e,t){const n=Qp(e),r=Ip();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}class nf{get(e){return""}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class rf{constructor(e=new Ys){this.jitEvaluator=e,this.R3ResolvedDependencyType=Ps,this.R3FactoryTarget=ks,this.ResourceLoader=nf,this.elementSchemaRegistry=new fd}compilePipe(e,t,n){const r=Sa({name:n.name,type:uf(n.type),internalType:new we(n.type),typeArgumentCount:n.typeArgumentCount,deps:Ef(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(r.expression,e,t,[])}compileInjectable(e,t,n){const{expression:r,statements:i}=Fs({name:n.name,type:uf(n.type),internalType:new we(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:vf(n.providedIn),useClass:yf(n,sf),useFactory:yf(n,of),useValue:yf(n,af),useExisting:yf(n,cf),userDeps:Ef(n.userDeps)||void 0});return this.jitExpression(r,e,t,i)}compileInjector(e,t,n){const r=va({name:n.name,type:uf(n.type),internalType:new we(n.type),deps:Ef(n.deps),providers:new we(n.providers),imports:n.imports.map(e=>new we(e))});return this.jitExpression(r.expression,e,t,r.statements)}compileNgModule(e,t,n){const r=ya({type:uf(n.type),internalType:new we(n.type),adjacentType:new we(n.type),bootstrap:n.bootstrap.map(uf),declarations:n.declarations.map(uf),imports:n.imports.map(uf),exports:n.exports.map(uf),emitInline:!0,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(uf):null,id:n.id?new we(n.id):null});return this.jitExpression(r.expression,e,t,[])}compileDirective(e,t,n){const r=df(n);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,n){const r=pf(n,this.createParseSourceSpan("Directive",n.type.name,t));return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveFromMeta(e,t,n){const r=new wn,i=Fp(n,r,Ip());return this.jitExpression(i.expression,e,t,r.statements)}compileComponent(e,t,n){const{template:r,interpolation:i}=bf(n.template,n.name,t,n.preserveWhitespaces,n.interpolation),s=Object.assign(Object.assign(Object.assign({},n),df(n)),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarationListEmitMode:0,styles:[...n.styles,...r.styles],encapsulation:n.encapsulation,interpolation:i,changeDetection:n.changeDetection,animations:null!=n.animations?new we(n.animations):null,viewProviders:null!=n.viewProviders?new we(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),o=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,o,s)}compileComponentDeclaration(e,t,n){const r=function(e,t,n){var r,i,s,o,a;const{template:c,interpolation:u}=bf(e.template,e.type.name,n,null!==(r=e.preserveWhitespaces)&&void 0!==r&&r,e.interpolation);return Object.assign(Object.assign({},pf(e,t)),{template:c,styles:null!==(i=e.styles)&&void 0!==i?i:[],directives:(null!==(s=e.directives)&&void 0!==s?s:[]).map(mf),pipes:gf(e.pipes),viewProviders:void 0!==e.viewProviders?new we(e.viewProviders):null,animations:void 0!==e.animations?new we(e.animations):null,changeDetection:null!==(o=e.changeDetection)&&void 0!==o?o:D.Default,encapsulation:null!==(a=e.encapsulation)&&void 0!==a?a:A.Emulated,interpolation:u,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}(n,this.createParseSourceSpan("Component",n.type.name,t),t);return this.compileComponentFromMeta(e,t,r)}compileComponentFromMeta(e,t,n){const r=new wn,i=jp(n,r,Ip(n.interpolation));return this.jitExpression(i.expression,e,t,r.statements)}compileFactory(e,t,n){const r=Ms({name:n.name,type:uf(n.type),internalType:new we(n.type),typeArgumentCount:n.typeArgumentCount,deps:Ef(n.deps),injectFn:"directiveInject"===n.injectFn?xn.directiveInject:xn.inject,target:n.target});return this.jitExpression(r.factory,e,t,r.statements)}createParseSourceSpan(e,t,n){return ma(e,t,n)}jitExpression(e,t,n,r){const i=[...r,new ut("$def",e,void 0,[st.Exported])];return this.jitEvaluator.evaluateStatements(n,i,new ga(t),!0).$def}}const sf=Object.keys({useClass:null})[0],of=Object.keys({useFactory:null})[0],af=Object.keys({useValue:null})[0],cf=Object.keys({useExisting:null})[0],uf=function(e){const t=new we(e);return{value:t,type:t}};function lf(e){return Object.assign(Object.assign({},e),{predicate:Array.isArray(e.predicate)?e.predicate:new we(e.predicate),read:e.read?new we(e.read):null,static:e.static,emitDistinctChangesOnly:e.emitDistinctChangesOnly})}function hf(e){var t,n,r,i;return{propertyName:e.propertyName,first:null!==(t=e.first)&&void 0!==t&&t,predicate:Array.isArray(e.predicate)?e.predicate:new we(e.predicate),descendants:null!==(n=e.descendants)&&void 0!==n&&n,read:e.read?new we(e.read):null,static:null!==(r=e.static)&&void 0!==r&&r,emitDistinctChangesOnly:null===(i=e.emitDistinctChangesOnly)||void 0===i||i}}function df(e){const t=Tf(e.inputs||[]),n=Tf(e.outputs||[]),r=e.propMetadata,i={},s={};for(const e in r)r.hasOwnProperty(e)&&r[e].forEach(t=>{If(t)?i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e:xf(t)&&(s[e]=t.bindingPropertyName||e)});return Object.assign(Object.assign({},e),{typeSourceSpan:e.typeSourceSpan,type:uf(e.type),internalType:new we(e.type),deps:Ef(e.deps),host:Sf(e.propMetadata,e.typeSourceSpan,e.host),inputs:Object.assign(Object.assign({},t),i),outputs:Object.assign(Object.assign({},n),s),queries:e.queries.map(lf),providers:null!=e.providers?new we(e.providers):null,viewQueries:e.viewQueries.map(lf),fullInheritance:!1})}function pf(e,t){var n,r,i,s,o,a,c,u;return{name:e.type.name,type:uf(e.type),typeSourceSpan:t,internalType:new we(e.type),selector:null!==(n=e.selector)&&void 0!==n?n:null,inputs:null!==(r=e.inputs)&&void 0!==r?r:{},outputs:null!==(i=e.outputs)&&void 0!==i?i:{},host:ff(e.host),queries:(null!==(s=e.queries)&&void 0!==s?s:[]).map(hf),viewQueries:(null!==(o=e.viewQueries)&&void 0!==o?o:[]).map(hf),providers:void 0!==e.providers?new we(e.providers):null,exportAs:null!==(a=e.exportAs)&&void 0!==a?a:null,usesInheritance:null!==(c=e.usesInheritance)&&void 0!==c&&c,lifecycle:{usesOnChanges:null!==(u=e.usesOnChanges)&&void 0!==u&&u},deps:null,typeArgumentCount:0,fullInheritance:!1}}function ff(e={}){var t,n,r;return{attributes:_f(null!==(t=e.attributes)&&void 0!==t?t:{}),listeners:null!==(n=e.listeners)&&void 0!==n?n:{},properties:null!==(r=e.properties)&&void 0!==r?r:{},specialAttributes:{classAttr:e.classAttribute,styleAttr:e.styleAttribute}}}function _f(e){const t={};for(const n of Object.keys(e))t[n]=new we(e[n]);return t}function mf(e){var t,n,r;return{selector:e.selector,type:new we(e.type),inputs:null!==(t=e.inputs)&&void 0!==t?t:[],outputs:null!==(n=e.outputs)&&void 0!==n?n:[],exportAs:null!==(r=e.exportAs)&&void 0!==r?r:null}}function gf(e){const t=new Map;if(void 0===e)return t;for(const n of Object.keys(e)){const r=e[n];t.set(n,new we(r))}return t}function bf(e,t,n,r,i){const s=i?Gs.fromArray(i):qs,o=Cp(e,n,{preserveWhitespaces:r,interpolationConfig:s});if(null!==o.errors){const e=o.errors.map(e=>e.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${t}: ${e}`)}return{template:o,interpolation:s}}function yf(e,t){return e.hasOwnProperty(t)?new we(e[t]):void 0}function vf(e){return null==e||"string"==typeof e?new Ae(e):new we(e)}function wf(e){let t;return{token:t=null===e.token?new Ae(null):e.resolved===Ps.Attribute?new Ae(e.token):new we(e.token),attribute:null,resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Ef(e){return null==e?null:e.map(wf)}function Sf(e,t,n){const r=ef(n||{}),i=tf(r,t);if(i.length)throw new Error(i.map(e=>e.msg).join("\n"));for(const t in e)e.hasOwnProperty(t)&&e[t].forEach(e=>{Cf(e)?r.properties[e.hostPropertyName||t]=Tr("this",t):Of(e)&&(r.listeners[e.eventName||t]=`${t}(${(e.args||[]).join(",")})`)});return r}function Cf(e){return"HostBinding"===e.ngMetadataName}function Of(e){return"HostListener"===e.ngMetadataName}function If(e){return"Input"===e.ngMetadataName}function xf(e){return"Output"===e.ngMetadataName}function Tf(e){return e.reduce((e,t)=>{const[n,r]=t.split(",").map(e=>e.trim());return e[n]=r||n,e},{})}function Af(e){(e.ng||(e.ng={})).ɵcompilerFacade=new rf} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Df=new hn("11.2.0"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class kf{constructor({defaultEncapsulation:e=A.Emulated,useJit:t=!0,jitDevMode:n=!1,missingTranslation:r=null,preserveWhitespaces:i,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.useJit=!!t,this.jitDevMode=!!n,this.missingTranslation=r,this.preserveWhitespaces=Pf(Xt(i)),this.strictInjectionParameters=!0===s}}function Pf(e,t=!1){return null===e?t:e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Mf{constructor(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}clearCache(){this._resourceLoaderCache.clear()}clearCacheFor(e){if(!e.isComponent)return;const t=e.template;this._resourceLoaderCache.delete(t.templateUrl),t.externalStylesheets.forEach(e=>{this._resourceLoaderCache.delete(e.moduleUrl)})}_fetch(e){let t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t}normalizeTemplate(e){if(Yt(e.template)){if(Yt(e.templateUrl))throw en(`'${cn(e.componentType)}' component cannot define both template and templateUrl`);if("string"!=typeof e.template)throw en(`The template specified for component ${cn(e.componentType)} is not a string`)}else{if(!Yt(e.templateUrl))throw en(`No template specified for component ${cn(e.componentType)}`);if("string"!=typeof e.templateUrl)throw en(`The templateUrl specified for component ${cn(e.componentType)} is not a string`)}if(Yt(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw en(`The preserveWhitespaces option for component ${cn(e.componentType)} must be a boolean`);return Zt.then(this._preParseTemplate(e),t=>this._normalizeTemplateMetadata(e,t))}_preParseTemplate(e){let t,n;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),Zt.then(t,t=>this._preparseLoadedTemplate(e,t,n))}_preparseLoadedTemplate(e,t,n){const r=!!e.template,i=Gs.fromArray(e.interpolation),s=tr({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),o=this._htmlParser.parse(t,s,{tokenizeExpansionForms:!0,interpolationConfig:i});if(o.errors.length>0){throw en(`Template parse errors:\n${o.errors.join("\n")}`)}const a=this._normalizeStylesheet(new $n({styles:e.styles,moduleUrl:e.moduleUrl})),c=new Rf;du(c,o.rootNodes);const u=this._normalizeStylesheet(new $n({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(u.styles),inlineStyleUrls:a.styleUrls.concat(u.styleUrls),styleUrls:this._normalizeStylesheet(new $n({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:c.ngContentSelectors}}_normalizeTemplateMetadata(e,t){return Zt.then(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),n=>this._normalizeLoadedTemplateMetadata(e,t,n))}_normalizeLoadedTemplateMetadata(e,t,n){const r=[...t.styles];this._inlineStyles(t.inlineStyleUrls,n,r);const i=t.styleUrls,s=i.map(e=>{const t=n.get(e),r=[...t.styles];return this._inlineStyles(t.styleUrls,n,r),new $n({moduleUrl:e,styles:r})});let o=e.encapsulation;return null==o&&(o=this._config.defaultEncapsulation),o===A.Emulated&&0===r.length&&0===i.length&&(o=A.None),new Hn({encapsulation:o,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:r,styleUrls:i,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:Pf(e.preserveWhitespaces,this._config.preserveWhitespaces)})}_inlineStyles(e,t,n){e.forEach(e=>{const r=t.get(e);r.styles.forEach(e=>n.push(e)),this._inlineStyles(r.styleUrls,t,n)})}_loadMissingExternalStylesheets(e,t=new Map){return Zt.then(Zt.all(e.filter(e=>!t.has(e)).map(e=>Zt.then(this._fetch(e),n=>{const r=this._normalizeStylesheet(new $n({styles:[n],moduleUrl:e}));return t.set(e,r),this._loadMissingExternalStylesheets(r.styleUrls,t)}))),e=>t)}_normalizeStylesheet(e){const t=e.moduleUrl,n=e.styleUrls.filter(Il).map(e=>this._urlResolver.resolve(t,e)),r=e.styles.map(e=>{const r=function(e,t,n){const r=[],i=n.replace(Tl,"").replace(xl,(...n)=>{const i=n[1]||n[2];return Il(i)?(r.push(e.resolve(t,i)),""):n[0]});return new Ol(i,r)}(this._urlResolver,t,e);return n.push(...r.styleUrls),r.style});return new $n({styles:r,styleUrls:n,moduleUrl:t})}}class Rf{constructor(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}visitElement(e,t){const n=Xl(e);switch(n.type){case Ql.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Ql.STYLE:let t="";e.children.forEach(e=>{e instanceof ou&&(t+=e.value)}),this.styles.push(t);break;case Ql.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,du(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null}visitExpansion(e,t){du(this,e.cases)}visitExpansionCase(e,t){du(this,e.expression)}visitComment(e,t){return null}visitAttribute(e,t){return null}visitText(e,t){return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Nf=[x,I,O,C];class Lf{constructor(e){this._reflector=e}isDirective(e){const t=this._reflector.annotations(un(e));return t&&t.some(Ff)}resolve(e,t=!0){const n=this._reflector.annotations(un(e));if(n){const t=jf(n,Ff);if(t){const n=this._reflector.propMetadata(e),r=this._reflector.guards(e);return this._mergeWithPropertyMetadata(t,n,r,e)}}if(t)throw new Error(`No Directive annotation found on ${cn(e)}`);return null}_mergeWithPropertyMetadata(e,t,n,r){const i=[],s=[],o={},a={};return Object.keys(t).forEach(e=>{const n=jf(t[e],e=>M.isTypeOf(e));n&&(n.bindingPropertyName?i.push(`${e}: ${n.bindingPropertyName}`):i.push(e));const r=jf(t[e],e=>R.isTypeOf(e));r&&(r.bindingPropertyName?s.push(`${e}: ${r.bindingPropertyName}`):s.push(e)),t[e].filter(e=>N.isTypeOf(e)).forEach(t=>{if(t.hostPropertyName){const n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.', or 'attr.'.");o[`[${t.hostPropertyName}]`]=e}else o[`[${e}]`]=e}),t[e].filter(e=>L.isTypeOf(e)).forEach(t=>{const n=t.args||[];o[`(${t.eventName})`]=`${e}(${n.join(",")})`});const c=jf(t[e],e=>Nf.some(t=>t.isTypeOf(e)));c&&(a[e]=c)}),this._merge(e,i,s,o,a,n,r)}_extractPublicName(e){return zt(e,[null,e])[1].trim()}_dedupeBindings(e){const t=new Set,n=new Set,r=[];for(let i=e.length-1;i>=0;i--){const s=e[i],o=this._extractPublicName(s);n.add(o),t.has(o)||(t.add(o),r.push(s))}return r.reverse()}_merge(e,t,n,r,i,s,o){const a=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),c=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),u=e.host?Object.assign(Object.assign({},e.host),r):r,l=e.queries?Object.assign(Object.assign({},e.queries),i):i;if(k.isTypeOf(e)){const t=e;return k({selector:t.selector,inputs:a,outputs:c,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation,preserveWhitespaces:e.preserveWhitespaces})}return T({selector:e.selector,inputs:a,outputs:c,host:u,exportAs:e.exportAs,queries:l,providers:e.providers,guards:s})}}function Ff(e){return T.isTypeOf(e)||k.isTypeOf(e)}function jf(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Vf="i18n",Bf="i18n-",Uf=/^i18n:?/,Gf="|",qf="@@";let $f=!1;class Hf{constructor(e,t){this.messages=e,this.errors=t}}var zf;!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(zf||(zf={}));class Wf{constructor(e,t){this._implicitTags=e,this._implicitAttrs=t}extract(e,t){return this._init(zf.Extract,t),e.forEach(e=>e.visit(this,null)),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Hf(this._messages,this._errors)}merge(e,t,n){this._init(zf.Merge,n),this._translations=t;const r=new lu("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Nu(r.children,this._errors)}visitExpansionCase(e,t){const n=du(this,e.expression,t);if(this._mode===zf.Merge)return new cu(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)}visitExpansion(e,t){this._mayBeAddBlockChildren(e);const n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);const r=du(this,e.cases,t);return this._mode===zf.Merge&&(e=new au(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e}visitComment(e,t){const n=!!((r=e)instanceof hu&&r.value&&r.value.startsWith("i18n"));var r;if(n&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");const i=function(e){return!!(e instanceof hu&&e.value&&"/i18n"===e.value)}(e);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;const t=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return du(this,this._translateMessage(e,t))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(n){if(!$f&&console&&console.warn){$f=!0;const t=e.sourceSpan.details?`, ${e.sourceSpan.details}`:"";console.warn(`I18n comments are deprecated, use an element instead (${e.sourceSpan.start}${t})`)}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Uf,"").trim(),this._openTranslatableSection(e)}}else this._reportError(e,"Trying to close an unopened block")}visitText(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e}visitElement(e,t){this._mayBeAddBlockChildren(e),this._depth++;const n=this._inI18nNode,r=this._inImplicitNode;let i=[],s=void 0;const o=e.attrs.find(e=>e.name===Vf)||null;const a=o?o.value:"",c=this._implicitTags.some(t=>e.name===t)&&!this._inIcu&&!this._isInTranslatableSection,u=!r&&c;if(this._inImplicitNode=r||c,this._isInTranslatableSection||this._inIcu)(o||u)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==zf.Extract&&du(this,e.children);else{if(o||u){this._inI18nNode=!0;const t=this._addMessage(e.children,a);s=this._translateMessage(e,t)}if(this._mode==zf.Extract){const t=o||u;t&&this._openTranslatableSection(e),du(this,e.children),t&&this._closeTranslatableSection(e,e.children)}}if(this._mode===zf.Merge){(s||e.children).forEach(e=>{const n=e.visit(this,t);n&&!this._isInTranslatableSection&&(i=i.concat(n))})}if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=n,this._inImplicitNode=r,this._mode===zf.Merge){const t=this._translateAttributes(e);return new lu(e.name,t,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null}visitAttribute(e,t){throw new Error("unreachable code")}_init(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=qd(t)}_visitAttributesOf(e){const t={},n=this._implicitAttrs[e.name]||[];e.attrs.filter(e=>e.name.startsWith(Bf)).forEach(e=>t[e.name.slice(Bf.length)]=e.value),e.attrs.forEach(e=>{e.name in t?this._addMessage([e],t[e.name]):n.some(t=>e.name===t)&&this._addMessage([e])})}_addMessage(e,t){if(0==e.length||1==e.length&&e[0]instanceof uu&&!e[0].value)return null;const{meaning:n,description:r,id:i}=Kf(t),s=this._createI18nMessage(e,n,r,i);return this._messages.push(s),s}_translateMessage(e,t){if(t&&this._mode===zf.Merge){const n=this._translations.get(t);if(n)return n;this._reportError(e,`Translation unavailable for message id="${this._translations.digest(t)}"`)}return[]}_translateAttributes(e){const t=e.attrs,n={};t.forEach(e=>{e.name.startsWith(Bf)&&(n[e.name.slice(Bf.length)]=Kf(e.value))});const r=[];return t.forEach(t=>{if(t.name!==Vf&&!t.name.startsWith(Bf))if(t.value&&""!=t.value&&n.hasOwnProperty(t.name)){const{meaning:i,description:s,id:o}=n[t.name],a=this._createI18nMessage([t],i,s,o),c=this._translations.get(a);if(c)if(0==c.length)r.push(new uu(t.name,"",t.sourceSpan,void 0,void 0,void 0));else if(c[0]instanceof ou){const e=c[0].value;r.push(new uu(t.name,e,t.sourceSpan,void 0,void 0,void 0))}else this._reportError(e,`Unexpected translation for attribute "${t.name}" (id="${o||this._translations.digest(a)}")`);else this._reportError(e,`Translation unavailable for attribute "${t.name}" (id="${o||this._translations.digest(a)}")`)}else r.push(t)}),r}_mayBeAddBlockChildren(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)}_openTranslatableSection(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length}get _isInTranslatableSection(){return void 0!==this._msgCountAtSectionStart}_closeTranslatableSection(e,t){if(!this._isInTranslatableSection)return void this._reportError(e,"Unexpected section end");const n=this._msgCountAtSectionStart;if(1==t.reduce((e,t)=>e+(t instanceof hu?0:1),0))for(let e=this._messages.length-1;e>=n;e--){const t=this._messages[e].nodes;if(!(1==t.length&&t[0]instanceof Wr)){this._messages.splice(e,1);break}}this._msgCountAtSectionStart=void 0}_reportError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}function Kf(e){if(!e)return{meaning:"",description:"",id:""};const t=e.indexOf(qf),n=e.indexOf(Gf),[r,i]=t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],[s,o]=n>-1?[r.slice(0,n),r.slice(n+1)]:["",r];return{meaning:s,description:o,id:i.trim()}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Yf=new class{constructor(){this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return r.PARSABLE_DATA}};function Xf(e){return Yf} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Qf extends Lu{constructor(){super(Xf)}parse(e,t,n){return super.parse(e,t,n)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Zf="1.2",Jf="urn:oasis:names:tc:xliff:document:1.2",e_="en",t_="x",n_="mrk",r_="file",i_="source",s_="seg-source",o_="alt-trans",a_="target",c_="trans-unit",u_="context-group",l_="context";class h_ extends Si{write(e,t){const n=new d_,r=[];e.forEach(e=>{let t=[];e.sources.forEach(e=>{let n=new Ai(u_,{purpose:"location"});n.children.push(new ki(10),new Ai(l_,{"context-type":"sourcefile"},[new Di(e.filePath)]),new ki(10),new Ai(l_,{"context-type":"linenumber"},[new Di(`${e.startLine}`)]),new ki(8)),t.push(new ki(8),n)});const i=new Ai(c_,{id:e.id,datatype:"html"});i.children.push(new ki(8),new Ai(i_,{},n.serialize(e.nodes)),...t),e.description&&i.children.push(new ki(8),new Ai("note",{priority:"1",from:"description"},[new Di(e.description)])),e.meaning&&i.children.push(new ki(8),new Ai("note",{priority:"1",from:"meaning"},[new Di(e.meaning)])),i.children.push(new ki(6)),r.push(new ki(6),i)});const i=new Ai("body",{},[...r,new ki(4)]),s=new Ai("file",{"source-language":t||e_,datatype:"plaintext",original:"ng2.template"},[new ki(4),i,new ki(2)]),o=new Ai("xliff",{version:Zf,xmlns:Jf},[new ki(2),s,new ki]);return Ii([new xi({version:"1.0",encoding:"UTF-8"}),new ki,o,new ki])}load(e,t){const n=new p_,{locale:r,msgIdToHtml:i,errors:s}=n.parse(e,t),o={},a=new f_;if(Object.keys(i).forEach(e=>{const{i18nNodes:n,errors:r}=a.convert(i[e],t);s.push(...r),o[e]=n}),s.length)throw new Error(`xliff parse errors:\n${s.join("\n")}`);return{locale:r,i18nNodesByMsgId:o}}digest(e){return ri(e)}}class d_{visitText(e,t){return[new Di(e.value)]}visitContainer(e,t){const n=[];return e.children.forEach(e=>n.push(...e.visit(this))),n}visitIcu(e,t){const n=[new Di(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(t=>{n.push(new Di(`${t} {`),...e.cases[t].visit(this),new Di("} "))}),n.push(new Di("}")),n}visitTagPlaceholder(e,t){const n=function(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return`x-${e}`}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.tag);if(e.isVoid)return[new Ai(t_,{id:e.startName,ctype:n,"equiv-text":`<${e.tag}/>`})];const r=new Ai(t_,{id:e.startName,ctype:n,"equiv-text":`<${e.tag}>`}),i=new Ai(t_,{id:e.closeName,ctype:n,"equiv-text":``});return[r,...this.serialize(e.children),i]}visitPlaceholder(e,t){return[new Ai(t_,{id:e.name,"equiv-text":`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const n=`{${e.value.expression}, ${e.value.type}, ${Object.keys(e.value.cases).map(e=>e+" {...}").join(" ")}}`;return[new Ai(t_,{id:e.name,"equiv-text":n})]}serialize(e){return[].concat(...e.map(e=>e.visit(this)))}}class p_{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const n=(new Qf).parse(e,t);return this._errors=n.errors,du(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case c_:this._unitMlString=null;const t=e.attrs.find(e=>"id"===e.name);if(t){const n=t.value;this._msgIdToHtml.hasOwnProperty(n)?this._addError(e,`Duplicated translations for msg ${n}`):(du(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[n]=this._unitMlString:this._addError(e,`Message ${n} misses a translation`))}else this._addError(e,`<${c_}> misses the "id" attribute`);break;case i_:case s_:case o_:break;case a_:const n=e.startSourceSpan.end.offset,r=e.endSourceSpan.start.offset,i=e.startSourceSpan.start.file.content.slice(n,r);this._unitMlString=i;break;case r_:const s=e.attrs.find(e=>"target-language"===e.name);s&&(this._locale=s.value),du(this,e.children,null);break;default:du(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}class f_{convert(e,t){const n=(new Qf).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat(...du(this,n.rootNodes)),errors:this._errors}}visitText(e,t){return new Wr(e.value,e.sourceSpan)}visitElement(e,t){if(e.name===t_){const t=e.attrs.find(e=>"id"===e.name);return t?new Qr("",t.value,e.sourceSpan):(this._addError(e,`<${t_}> misses the "id" attribute`),null)}return e.name===n_?[].concat(...du(this,e.children)):(this._addError(e,"Unexpected tag"),null)}visitExpansion(e,t){const n={};return du(this,e.cases).forEach(t=>{n[t.value]=new Kr(t.nodes,e.sourceSpan)}),new Yr(e.switchValue,e.type,n,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:du(this,e.expression)}}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}const __="2.0",m_="urn:oasis:names:tc:xliff:document:2.0",g_="en",b_="ph",y_="pc",v_="mrk",w_="xliff",E_="source",S_="target",C_="unit";class O_ extends Si{write(e,t){const n=new I_,r=[];e.forEach(e=>{const t=new Ai(C_,{id:e.id}),i=new Ai("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new ki(8),new Ai("note",{category:"description"},[new Di(e.description)])),e.meaning&&i.children.push(new ki(8),new Ai("note",{category:"meaning"},[new Di(e.meaning)]))),e.sources.forEach(e=>{i.children.push(new ki(8),new Ai("note",{category:"location"},[new Di(`${e.filePath}:${e.startLine}${e.endLine!==e.startLine?","+e.endLine:""}`)]))}),i.children.push(new ki(6)),t.children.push(new ki(6),i);const s=new Ai("segment");s.children.push(new ki(8),new Ai(E_,{},n.serialize(e.nodes)),new ki(6)),t.children.push(new ki(6),s,new ki(4)),r.push(new ki(4),t)});const i=new Ai("file",{original:"ng.template",id:"ngi18n"},[...r,new ki(2)]),s=new Ai(w_,{version:__,xmlns:m_,srcLang:t||g_},[new ki(2),i,new ki]);return Ii([new xi({version:"1.0",encoding:"UTF-8"}),new ki,s,new ki])}load(e,t){const n=new x_,{locale:r,msgIdToHtml:i,errors:s}=n.parse(e,t),o={},a=new T_;if(Object.keys(i).forEach(e=>{const{i18nNodes:n,errors:r}=a.convert(i[e],t);s.push(...r),o[e]=n}),s.length)throw new Error(`xliff2 parse errors:\n${s.join("\n")}`);return{locale:r,i18nNodesByMsgId:o}}digest(e){return si(e)}}class I_{visitText(e,t){return[new Di(e.value)]}visitContainer(e,t){const n=[];return e.children.forEach(e=>n.push(...e.visit(this))),n}visitIcu(e,t){const n=[new Di(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach(t=>{n.push(new Di(`${t} {`),...e.cases[t].visit(this),new Di("} "))}),n.push(new Di("}")),n}visitTagPlaceholder(e,t){const n=function(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.tag);if(e.isVoid){return[new Ai(b_,{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:n,disp:`<${e.tag}/>`})]}const r=new Ai(y_,{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:n,dispStart:`<${e.tag}>`,dispEnd:``}),i=[].concat(...e.children.map(e=>e.visit(this)));return i.length?i.forEach(e=>r.children.push(e)):r.children.push(new Di("")),[r]}visitPlaceholder(e,t){const n=(this._nextPlaceholderId++).toString();return[new Ai(b_,{id:n,equiv:e.name,disp:`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const n=Object.keys(e.value.cases).map(e=>e+" {...}").join(" "),r=(this._nextPlaceholderId++).toString();return[new Ai(b_,{id:r,equiv:e.name,disp:`{${e.value.expression}, ${e.value.type}, ${n}}`})]}serialize(e){return this._nextPlaceholderId=0,[].concat(...e.map(e=>e.visit(this)))}}class x_{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const n=(new Qf).parse(e,t);return this._errors=n.errors,du(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case C_:this._unitMlString=null;const t=e.attrs.find(e=>"id"===e.name);if(t){const n=t.value;this._msgIdToHtml.hasOwnProperty(n)?this._addError(e,`Duplicated translations for msg ${n}`):(du(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[n]=this._unitMlString:this._addError(e,`Message ${n} misses a translation`))}else this._addError(e,`<${C_}> misses the "id" attribute`);break;case E_:break;case S_:const n=e.startSourceSpan.end.offset,r=e.endSourceSpan.start.offset,i=e.startSourceSpan.start.file.content.slice(n,r);this._unitMlString=i;break;case w_:const s=e.attrs.find(e=>"trgLang"===e.name);s&&(this._locale=s.value);const o=e.attrs.find(e=>"version"===e.name);if(o){const t=o.value;"2.0"!==t?this._addError(e,`The XLIFF file version ${t} is not compatible with XLIFF 2.0 serializer`):du(this,e.children,null)}break;default:du(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}class T_{convert(e,t){const n=(new Qf).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat(...du(this,n.rootNodes)),errors:this._errors}}visitText(e,t){return new Wr(e.value,e.sourceSpan)}visitElement(e,t){switch(e.name){case b_:const t=e.attrs.find(e=>"equiv"===e.name);if(t)return[new Qr("",t.value,e.sourceSpan)];this._addError(e,`<${b_}> misses the "equiv" attribute`);break;case y_:const n=e.attrs.find(e=>"equivStart"===e.name),r=e.attrs.find(e=>"equivEnd"===e.name);if(n){if(r){const t=n.value,i=r.value;return[].concat(new Qr("",t,e.sourceSpan),...e.children.map(e=>e.visit(this,null)),new Qr("",i,e.sourceSpan))}this._addError(e,`<${b_}> misses the "equivEnd" attribute`)}else this._addError(e,`<${b_}> misses the "equivStart" attribute`);break;case v_:return[].concat(...du(this,e.children));default:this._addError(e,"Unexpected tag")}return null}visitExpansion(e,t){const n={};return du(this,e.cases).forEach(t=>{n[t.value]=new Kr(t.nodes,e.sourceSpan)}),new Yr(e.switchValue,e.type,n,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:[].concat(...du(this,e.expression))}}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}const A_="translationbundle",D_="translation",k_="ph";class P_ extends Si{write(e,t){throw new Error("Unsupported")}load(e,t){const n=new M_,{locale:r,msgIdToHtml:i,errors:s}=n.parse(e,t),o={},a=new R_;if(Object.keys(i).forEach(e=>{!function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){const r=n();return Object.defineProperty(e,t,{enumerable:!0,value:r}),r},set:e=>{throw new Error("Could not overwrite an XTB translation")}})}(o,e,function(){const{i18nNodes:n,errors:r}=a.convert(i[e],t);if(r.length)throw new Error(`xtb parse errors:\n${r.join("\n")}`);return n})}),s.length)throw new Error(`xtb parse errors:\n${s.join("\n")}`);return{locale:r,i18nNodesByMsgId:o}}digest(e){return Gi(e)}createNameMapper(e){return new Ci(e,$i)}}class M_{constructor(){this._locale=null}parse(e,t){this._bundleDepth=0,this._msgIdToHtml={};const n=(new Qf).parse(e,t);return this._errors=n.errors,du(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case A_:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,`<${A_}> elements can not be nested`);const t=e.attrs.find(e=>"lang"===e.name);t&&(this._locale=t.value),du(this,e.children,null),this._bundleDepth--;break;case D_:const n=e.attrs.find(e=>"id"===e.name);if(n){const t=n.value;if(this._msgIdToHtml.hasOwnProperty(t))this._addError(e,`Duplicated translations for msg ${t}`);else{const n=e.startSourceSpan.end.offset,r=e.endSourceSpan.start.offset,i=e.startSourceSpan.start.file.content.slice(n,r);this._msgIdToHtml[t]=i}}else this._addError(e,`<${D_}> misses the "id" attribute`);break;default:this._addError(e,"Unexpected tag")}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}}class R_{convert(e,t){const n=(new Qf).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:du(this,n.rootNodes),errors:this._errors}}visitText(e,t){return new Wr(e.value,e.sourceSpan)}visitExpansion(e,t){const n={};return du(this,e.cases).forEach(t=>{n[t.value]=new Kr(t.nodes,e.sourceSpan)}),new Yr(e.switchValue,e.type,n,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:du(this,e.expression)}}visitElement(e,t){if(e.name===k_){const t=e.attrs.find(e=>"name"===e.name);if(t)return new Qr("",t.value,e.sourceSpan);this._addError(e,`<${k_}> misses the "name" attribute`)}else this._addError(e,"Unexpected tag");return null}visitComment(e,t){}visitAttribute(e,t){}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class N_{constructor(e={},t,n,r,i=W.Warning,s){this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new L_(e,t,n,r,i,s)}static load(e,t,n,r,i){const{locale:s,i18nNodesByMsgId:o}=n.load(e,t);return new N_(o,s,e=>n.digest(e),e=>n.createNameMapper(e),r,i)}get(e){const t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes}has(e){return this.digest(e)in this._i18nNodesByMsgId}}class L_{constructor(e={},t,n,r,i,s){this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=s,this._contextStack=[],this._errors=[]}convert(e){this._contextStack.length=0,this._errors.length=0;const t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new Vu).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:[...this._errors,...r.errors]}}visitText(e,t){return Mi(e.value)}visitContainer(e,t){return e.children.map(e=>e.visit(this)).join("")}visitIcu(e,t){const n=Object.keys(e.cases).map(t=>`${t} {${e.cases[t].visit(this)}}`);return`{${this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression].text:e.expression}, ${e.type}, ${n.join(" ")}}`}visitPlaceholder(e,t){const n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n].text:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,`Unknown placeholder "${e.name}"`),"")}visitTagPlaceholder(e,t){const n=`${e.tag}`,r=Object.keys(e.attrs).map(t=>`${t}="${e.attrs[t]}"`).join(" ");return e.isVoid?`<${n} ${r}/>`:`<${n} ${r}>${e.children.map(e=>e.visit(this)).join("")}`}visitIcuPlaceholder(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])}_convertToText(e){const t=this._digest(e),n=this._mapperFactory?this._mapperFactory(e):null;let r;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(t))r=this._i18nNodesByMsgId[t],this._mapper=(e=>n?n.toInternalName(e):e);else{if(this._missingTranslationStrategy===W.Error){const n=this._locale?` for locale "${this._locale}"`:"";this._addError(e.nodes[0],`Missing translation for message "${t}"${n}`)}else if(this._console&&this._missingTranslationStrategy===W.Warning){const e=this._locale?` for locale "${this._locale}"`:"";this._console.warn(`Missing translation for message "${t}"${e}`)}r=e.nodes,this._mapper=(e=>e)}const i=r.map(e=>e.visit(this)).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,i}_addError(e,t){this._errors.push(new Kd(e.sourceSpan,t))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class F_{constructor(e,t,n,r=W.Warning,i){if(this._htmlParser=e,t){const e=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new Bi;case"xtb":return new P_;case"xliff2":case"xlf2":return new O_;case"xliff":case"xlf":default:return new h_}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(n);this._translationBundle=N_.load(t,"i18n",e,r,i)}else this._translationBundle=new N_({},null,ri,void 0,r,i)}parse(e,t,n={}){const r=n.interpolationConfig||qs,i=this._htmlParser.parse(e,t,Object.assign({interpolationConfig:r},n));return i.errors.length?new Nu(i.rootNodes,i.errors):function(e,t,n,r,i){return new Wf(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})}}const j_="$quoted$";function V_(e,t,n=null){return Kt(t,new B_(e),n)}class B_{constructor(e){this.ctx=e}visitArray(e,t){const n=[];for(let t=0;t{n.push(new et(t,Kt(e[t],this,null),r.has(t)))}),new tt(n,t)}visitPrimitive(e,t){return Gt(e,t)}visitOther(e,t){return e instanceof be?e:this.ctx.importExpr(e)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function U_(e,t){return{key:e,value:t,quoted:!1}}class G_{constructor(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(xn.Injector)}depsArray(e,t){return e.map(e=>{let n,r=e,i=[r],s=0;if(Array.isArray(e))for(let t=0;t0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=V_(t,e.useValue);else{const r=e.useClass||e.symbol,i=this.depsArray(this.reflector.parameters(r),t);n=new Te(t.importExpr(r),i)}return Vt([],[new dt(n)],void 0,void 0,e.symbol.name+"_Factory")}injectableDef(e,t){let n=rt;void 0!==e.providedIn&&(n=null===e.providedIn?rt:"string"==typeof e.providedIn?Gt(e.providedIn):t.importExpr(e.providedIn));const r=[U_("factory",this.factoryFor(e,t)),U_("token",t.importExpr(e.type.reference)),U_("providedIn",n)];return Mt(xn.ɵɵdefineInjectable).callFn([jt(r)])}compile(e,t){if(this.alwaysGenerateDef||void 0!==e.providedIn){const n=Nn(e.type),r=new gt(n,null,[new ft("ɵprov",oe,[st.Static],this.injectableDef(e,t))],[],new _t(null,[],[]),[]);t.statements.push(r)}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const q_=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,$_=/\.ngfactory\.|\.ngsummary\./,H_=/\.ngsummary\./,z_=/NgSummary$/;function W_(e,t=!1){const n=Y_(e,t);return`${n[0]}.ngfactory${X_(n[1])}`}function K_(e){return e.replace($_,".")}function Y_(e,t=!1){if(e.endsWith(".d.ts"))return[e.slice(0,-5),t?".ts":".d.ts"];const n=e.lastIndexOf(".");return-1!==n?[e.substring(0,n),e.substring(n)]:[e,""]}function X_(e){return".tsx"===e?".ts":e}function Q_(e){return`${e.replace(q_,"")}.ngsummary.json`}function Z_(e,t=!1){const n=Y_(K_(e),t);return`${n[0]}.ngsummary${n[1]}`}function J_(e){return`${e}NgSummary`}const em=/\u0275\d+/;function tm(e){return em.test(e)}function nm(e){return`ɵ${e}`} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var rm;!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(rm||(rm={}));const im=[rm.OnInit,rm.OnDestroy,rm.DoCheck,rm.OnChanges,rm.AfterContentInit,rm.AfterContentChecked,rm.AfterViewInit,rm.AfterViewChecked];function sm(e,t,n){return e.hasLifecycleHook(n,function(e){switch(e){case rm.OnInit:return"ngOnInit";case rm.OnDestroy:return"ngOnDestroy";case rm.DoCheck:return"ngDoCheck";case rm.OnChanges:return"ngOnChanges";case rm.AfterContentInit:return"ngAfterContentInit";case rm.AfterContentChecked:return"ngAfterContentChecked";case rm.AfterViewInit:return"ngAfterViewInit";case rm.AfterViewChecked:return"ngAfterViewChecked";default:const t=e;throw new Error(`unexpected ${t}`)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t))}const om="ngComponentType";class am{constructor(e,t,n,r,i,s,o,a,c,u,l,h){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=s,this._schemaRegistry=o,this._directiveNormalizer=a,this._console=c,this._staticSymbolCache=u,this._reflector=l,this._errorCollector=h,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}getReflector(){return this._reflector}clearCacheFor(e){const t=this._directiveCache.get(e);this._directiveCache.delete(e),this._nonNormalizedDirectiveCache.delete(e),this._summaryCache.delete(e),this._pipeCache.delete(e),this._ngModuleOfTypes.delete(e),this._ngModuleCache.clear(),t&&this._directiveNormalizer.clearCacheFor(t)}clearCache(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()}_createProxyClass(e,t){let n=null;const r=function(){if(!n)throw new Error(`Illegal state: Class ${t} for type ${cn(e)} is not compiled yet!`);return n.apply(this,arguments)};return r.setDelegate=(e=>{n=e,r.prototype=e.prototype}),r.overriddenName=t,r}getGeneratedClass(e,t){return e instanceof Dn?this._staticSymbolCache.get(W_(e.filePath),t):this._createProxyClass(e,t)}getComponentViewClass(e){return this.getGeneratedClass(e,Fn(e,0))}getHostComponentViewClass(e){return this.getGeneratedClass(e,Vn(e))}getHostComponentType(e){const t=`${Nn({reference:e})}_Host`;return e instanceof Dn?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)}getRendererType(e){return e instanceof Dn?this._staticSymbolCache.get(W_(e.filePath),jn(e)):{}}getComponentFactory(e,t,n,r){if(t instanceof Dn)return this._staticSymbolCache.get(W_(t.filePath),Bn(t));{const i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(xn.createComponentFactory)(e,t,i,n,r,[])}}initComponentFactory(e,t){e instanceof Dn||e.ngContentSelectors.push(...t)}_loadSummary(e,t){let n=this._summaryCache.get(e);if(!n){const t=this._summaryResolver.resolveSummary(e);n=t?t.type:null,this._summaryCache.set(e,n||null)}return n&&n.summaryKind===t?n:null}getHostComponentMetadata(e,t){const n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));const r=g.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return zn.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Hn({encapsulation:A.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:D.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:A.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}loadDirectiveMetadata(e,t,n){if(this._directiveCache.has(t))return null;t=un(t);const{annotation:r,metadata:i}=this.getNonNormalizedDirectiveMetadata(t),s=e=>{const n=new zn({isHost:!1,type:i.type,isComponent:i.isComponent,selector:i.selector,exportAs:i.exportAs,changeDetection:i.changeDetection,inputs:i.inputs,outputs:i.outputs,hostListeners:i.hostListeners,hostProperties:i.hostProperties,hostAttributes:i.hostAttributes,providers:i.providers,viewProviders:i.viewProviders,queries:i.queries,guards:i.guards,viewQueries:i.viewQueries,entryComponents:i.entryComponents,componentViewType:i.componentViewType,rendererType:i.rendererType,componentFactory:i.componentFactory,template:e});return e&&this.initComponentFactory(i.componentFactory,e.ngContentSelectors),this._directiveCache.set(t,n),this._summaryCache.set(t,n.toSummary()),null};if(i.isComponent){const o=i.template,a=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,r),encapsulation:o.encapsulation,template:o.template,templateUrl:o.templateUrl,styles:o.styles,styleUrls:o.styleUrls,animations:o.animations,interpolation:o.interpolation,preserveWhitespaces:o.preserveWhitespaces});return ln(a)&&n?(this._reportError(function(e){const t=Error(`Can't compile synchronously as ${cn(e)} is still being loaded!`);return t[om]=e,t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t),t),null):Zt.then(a,s)}return s(null),null}getNonNormalizedDirectiveMetadata(e){if(!(e=un(e)))return null;let t=this._nonNormalizedDirectiveCache.get(e);if(t)return t;const n=this._directiveResolver.resolve(e,!1);if(!n)return null;let r=void 0;if(k.isTypeOf(n)){const e=n;Vs("styles",e.styles),Vs("styleUrls",e.styleUrls),Us("interpolation",e.interpolation);const t=e.animations;r=new Hn({encapsulation:Xt(e.encapsulation),template:Xt(e.template),templateUrl:Xt(e.templateUrl),htmlAst:null,styles:e.styles||[],styleUrls:e.styleUrls||[],animations:t||[],interpolation:Xt(e.interpolation),isInline:!!e.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:Xt(n.preserveWhitespaces)})}let i=null,s=[],o=[],a=n.selector;if(k.isTypeOf(n)){const t=n;i=t.changeDetection,t.viewProviders&&(s=this._getProvidersMetadata(t.viewProviders,o,`viewProviders for "${hm(e)}"`,[],e)),t.entryComponents&&(o=cm(t.entryComponents).map(e=>this._getEntryComponentMetadata(e)).concat(o)),a||(a=this._schemaRegistry.getDefaultComponentElementName())}else a||(a=null);let c=[];null!=n.providers&&(c=this._getProvidersMetadata(n.providers,o,`providers for "${hm(e)}"`,[],e));let u=[],l=[];null!=n.queries&&(u=this._getQueriesMetadata(n.queries,!1,e),l=this._getQueriesMetadata(n.queries,!0,e));const h=zn.create({isHost:!1,selector:a,exportAs:Xt(n.exportAs),isComponent:!!r,type:this._getTypeMetadata(e),template:r,changeDetection:i,inputs:n.inputs||[],outputs:n.outputs||[],host:n.host||{},providers:c||[],viewProviders:s||[],queries:u||[],guards:n.guards||{},viewQueries:l||[],entryComponents:o,componentViewType:r?this.getComponentViewClass(e):null,rendererType:r?this.getRendererType(e):null,componentFactory:null});return r&&(h.componentFactory=this.getComponentFactory(a,e,h.inputs,h.outputs)),t={metadata:h,annotation:n},this._nonNormalizedDirectiveCache.set(e,t),t}getDirectiveMetadata(e){const t=this._directiveCache.get(e);return t||this._reportError(en(`Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive ${hm(e)}.`),e),t}getDirectiveSummary(e){const t=this._loadSummary(e,Un.Directive);return t||this._reportError(en(`Illegal state: Could not load the summary for directive ${hm(e)}.`),e),t}isDirective(e){return!!this._loadSummary(e,Un.Directive)||this._directiveResolver.isDirective(e)}isAbstractDirective(e){const t=this._loadSummary(e,Un.Directive);if(t&&!t.isComponent)return!t.selector;const n=this._directiveResolver.resolve(e,!1);return!(!n||k.isTypeOf(n))&&!n.selector}isPipe(e){return!!this._loadSummary(e,Un.Pipe)||this._pipeResolver.isPipe(e)}isNgModule(e){return!!this._loadSummary(e,Un.NgModule)||this._ngModuleResolver.isNgModule(e)}getNgModuleSummary(e,t=null){let n=this._loadSummary(e,Un.NgModule);if(!n){const r=this.getNgModuleMetadata(e,!1,t);(n=r?r.toSummary():null)&&this._summaryCache.set(e,n)}return n}loadNgModuleDirectiveAndPipeMetadata(e,t,n=!0){const r=this.getNgModuleMetadata(e,n),i=[];return r&&(r.declaredDirectives.forEach(n=>{const r=this.loadDirectiveMetadata(e,n.reference,t);r&&i.push(r)}),r.declaredPipes.forEach(e=>this._loadPipeMetadata(e.reference))),Promise.all(i)}getShallowModuleMetadata(e){let t=this._shallowModuleCache.get(e);if(t)return t;const n=jf(this._reflector.shallowAnnotations(e),F.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t}getNgModuleMetadata(e,t=!0,n=null){e=un(e);let r=this._ngModuleCache.get(e);if(r)return r;const i=this._ngModuleResolver.resolve(e,t);if(!i)return null;const s=[],o=[],a=[],c=[],u=[],l=[],h=[],d=[],p=[];i.imports&&cm(i.imports).forEach(t=>{let r=void 0;if(um(t))r=t;else if(t&&t.ngModule){const e=t;r=e.ngModule,e.providers&&l.push(...this._getProvidersMetadata(e.providers,h,`provider for the NgModule '${hm(r)}'`,[],t))}if(r){if(this._checkSelfImport(e,r))return;if(n||(n=new Set),n.has(r))return void this._reportError(en(`${this._getTypeDescriptor(r)} '${hm(t)}' is imported recursively by the module '${hm(e)}'.`),e);n.add(r);const i=this.getNgModuleSummary(r,n);if(n.delete(r),!i)return void this._reportError(en(`Unexpected ${this._getTypeDescriptor(t)} '${hm(t)}' imported by the module '${hm(e)}'. Please add a @NgModule annotation.`),e);c.push(i)}else this._reportError(en(`Unexpected value '${hm(t)}' imported by the module '${hm(e)}'`),e)}),i.exports&&cm(i.exports).forEach(t=>{if(!um(t))return void this._reportError(en(`Unexpected value '${hm(t)}' exported by the module '${hm(e)}'`),e);if(n||(n=new Set),n.has(t))return void this._reportError(en(`${this._getTypeDescriptor(t)} '${cn(t)}' is exported recursively by the module '${hm(e)}'`),e);n.add(t);const r=this.getNgModuleSummary(t,n);n.delete(t),r?u.push(r):o.push(this._getIdentifierMetadata(t))});const f=this._getTransitiveNgModuleMetadata(c,u);i.declarations&&cm(i.declarations).forEach(t=>{if(!um(t))return void this._reportError(en(`Unexpected value '${hm(t)}' declared by the module '${hm(e)}'`),e);const n=this._getIdentifierMetadata(t);if(this.isDirective(t))this.isAbstractDirective(t)&&this._reportError(en(`Directive ${hm(t)} has no selector, please add it!`),t),f.addDirective(n),s.push(n),this._addTypeToModule(t,e);else{if(!this.isPipe(t))return void this._reportError(en(`Unexpected ${this._getTypeDescriptor(t)} '${hm(t)}' declared by the module '${hm(e)}'. Please add a @Pipe/@Directive/@Component annotation.`),e);f.addPipe(n),f.pipes.push(n),a.push(n),this._addTypeToModule(t,e)}});const _=[],m=[];return o.forEach(t=>{if(f.directivesSet.has(t.reference))_.push(t),f.addExportedDirective(t);else{if(!f.pipesSet.has(t.reference))return void this._reportError(en(`Can't export ${this._getTypeDescriptor(t.reference)} ${hm(t.reference)} from ${hm(e)} as it was neither declared nor imported!`),e);m.push(t),f.addExportedPipe(t)}}),i.providers&&l.push(...this._getProvidersMetadata(i.providers,h,`provider for the NgModule '${hm(e)}'`,[],e)),i.entryComponents&&h.push(...cm(i.entryComponents).map(e=>this._getEntryComponentMetadata(e))),i.bootstrap&&cm(i.bootstrap).forEach(t=>{um(t)?d.push(this._getIdentifierMetadata(t)):this._reportError(en(`Unexpected value '${hm(t)}' used in the bootstrap property of module '${hm(e)}'`),e)}),h.push(...d.map(e=>this._getEntryComponentMetadata(e.reference))),i.schemas&&p.push(...cm(i.schemas)),r=new Yn({type:this._getTypeMetadata(e),providers:l,entryComponents:h,bootstrapComponents:d,schemas:p,declaredDirectives:s,exportedDirectives:_,declaredPipes:a,exportedPipes:m,importedModules:c,exportedModules:u,transitiveModule:f,id:i.id||null}),h.forEach(e=>f.addEntryComponent(e)),l.forEach(e=>f.addProvider(e,r.type)),f.addModule(r.type),this._ngModuleCache.set(e,r),r}_checkSelfImport(e,t){return e===t&&(this._reportError(en(`'${hm(e)}' module can't import itself`),e),!0)}_getTypeDescriptor(e){if(um(e)){if(this.isDirective(e))return"directive";if(this.isPipe(e))return"pipe";if(this.isNgModule(e))return"module"}return e.provide?"provider":"value"}_addTypeToModule(e,t){const n=this._ngModuleOfTypes.get(e);n&&n!==t?this._reportError(en(`Type ${hm(e)} is part of the declarations of 2 modules: ${hm(n)} and ${hm(t)}! `+`Please consider moving ${hm(e)} to a higher module that imports ${hm(n)} and ${hm(t)}. `+`You can also create a new NgModule that exports and includes ${hm(e)} then import that NgModule in ${hm(n)} and ${hm(t)}.`),t):this._ngModuleOfTypes.set(e,t)}_getTransitiveNgModuleMetadata(e,t){const n=new Xn,r=new Map;return e.concat(t).forEach(e=>{e.modules.forEach(e=>n.addModule(e)),e.entryComponents.forEach(e=>n.addEntryComponent(e));const t=new Set;e.providers.forEach(e=>{const i=qn(e.provider.token);let s=r.get(i);s||(s=new Set,r.set(i,s));const o=e.module.reference;!t.has(i)&&s.has(o)||(s.add(o),t.add(i),n.addProvider(e.provider,e.module))})}),t.forEach(e=>{e.exportedDirectives.forEach(e=>n.addExportedDirective(e)),e.exportedPipes.forEach(e=>n.addExportedPipe(e))}),e.forEach(e=>{e.exportedDirectives.forEach(e=>n.addDirective(e)),e.exportedPipes.forEach(e=>n.addPipe(e))}),n}_getIdentifierMetadata(e){return{reference:e=un(e)}}isInjectable(e){return this._reflector.tryAnnotations(e).some(e=>j.isTypeOf(e))}getInjectableSummary(e){return{summaryKind:Un.Injectable,type:this._getTypeMetadata(e,null,!1)}}getInjectableMetadata(e,t=null,n=!0){const r=this._loadSummary(e,Un.Injectable),i=r?r.type:this._getTypeMetadata(e,t,n),s=this._reflector.annotations(e).filter(e=>j.isTypeOf(e));if(0===s.length)return null;const o=s[s.length-1];return{symbol:e,type:i,providedIn:o.providedIn,useValue:o.useValue,useClass:o.useClass,useExisting:o.useExisting,useFactory:o.useFactory,deps:o.deps}}_getTypeMetadata(e,t=null,n=!0){const r=this._getIdentifierMetadata(e);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,t,n),lifecycleHooks:(i=this._reflector,s=r.reference,im.filter(e=>sm(i,e,s)))};var i,s}_getFactoryMetadata(e,t=null){return{reference:e=un(e),diDeps:this._getDependenciesMetadata(e,t)}}getPipeMetadata(e){const t=this._pipeCache.get(e);return t||this._reportError(en(`Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe ${hm(e)}.`),e),t||null}getPipeSummary(e){const t=this._loadSummary(e,Un.Pipe);return t||this._reportError(en(`Illegal state: Could not load the summary for pipe ${hm(e)}.`),e),t}getOrLoadPipeMetadata(e){let t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t}_loadPipeMetadata(e){e=un(e);const t=this._pipeResolver.resolve(e),n=new Wn({type:this._getTypeMetadata(e),name:t.name,pure:!!t.pure});return this._pipeCache.set(e,n),this._summaryCache.set(e,n.toSummary()),n}_getDependenciesMetadata(e,t,n=!0){let r=!1;const i=(t||this._reflector.parameters(e)||[]).map(e=>{let t=!1,n=!1,i=!1,s=!1,o=!1,a=null;return Array.isArray(e)?e.forEach(e=>{$.isTypeOf(e)?n=!0:G.isTypeOf(e)?i=!0:q.isTypeOf(e)?s=!0:U.isTypeOf(e)?o=!0:S.isTypeOf(e)?(t=!0,a=e.attributeName):w.isTypeOf(e)?a=e.token:E.isTypeOf(e)||e instanceof Dn?a=e:um(e)&&null==a&&(a=e)}):a=e,null==a?(r=!0,{}):{isAttribute:t,isHost:n,isSelf:i,isSkipSelf:s,isOptional:o,token:this._getTokenMetadata(a)}});if(r){const t=i.map(e=>e.token?hm(e.token):"?").join(", "),r=`Can't resolve all parameters for ${hm(e)}: (${t}).`;(n||this._config.strictInjectionParameters)&&this._reportError(en(r),e)}return i}_getTokenMetadata(e){let t;return t="string"==typeof(e=un(e))?{value:e}:{identifier:{reference:e}}}_getProvidersMetadata(e,t,n,r=[],i){return e.forEach((s,o)=>{if(Array.isArray(s))this._getProvidersMetadata(s,t,n,r);else{let a=void 0;if((s=un(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))this._validateProvider(s),a=new Zn(s.provide,s);else{if(!um(s)){if(void 0===s)return void this._reportError(en("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));{const t=e.reduce((e,t,n)=>(n{const t=this._getEntryComponentMetadata(e.reference,!1);t&&n.push(t)}),n):(this._reportError(en("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[]);var i,s}_getEntryComponentMetadata(e,t=!0){const n=this.getNonNormalizedDirectiveMetadata(e);if(n&&n.metadata.isComponent)return{componentType:e,componentFactory:n.metadata.componentFactory};const r=this._loadSummary(e,Un.Directive);if(r&&r.isComponent)return{componentType:e,componentFactory:r.componentFactory};if(t)throw en(`${e.name} cannot be used as an entry component.`);return null}_getInjectableTypeMetadata(e,t=null){const n=this._loadSummary(e,Un.Injectable);return n?n.type:this._getTypeMetadata(e,t)}getProviderMetadata(e){let t=void 0,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableTypeMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):void 0,deps:t,multi:e.multi}}_getQueriesMetadata(e,t,n){const r=[];return Object.keys(e).forEach(i=>{const s=e[i];s.isViewQuery===t&&r.push(this._getQueryMetadata(s,i,n))}),r}_queryVarBindings(e){return e.split(/\s*,\s*/)}_getQueryMetadata(e,t,n){let r;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map(e=>this._getTokenMetadata(e)):e.selector?r=[this._getTokenMetadata(e.selector)]:(this._reportError(en(`Can't construct a query for the property "${t}" of "${hm(n)}" since the query selector wasn't defined.`),n),r=[]),{selectors:r,first:e.first,descendants:e.descendants,emitDistinctChangesOnly:e.emitDistinctChangesOnly,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null,static:e.static}}_reportError(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)}}function cm(e){return(t=function e(t,n=[]){if(t)for(let r=0;r{e!==rm.OnDestroy&&t.providerType!==dl.Directive&&t.providerType!==dl.Component||(n|=mm(e))});const{providerExpr:r,flags:i,depsExpr:s}=t.multiProvider?function(e,t,n){const r=[],i=[],s=n.map((t,n)=>{let r;if(t.useClass){const i=o(n,t.deps||t.useClass.diDeps);r=e.importExpr(t.useClass.reference).instantiate(i)}else if(t.useFactory){const i=o(n,t.deps||t.useFactory.diDeps);r=e.importExpr(t.useFactory.reference).callFn(i)}else if(t.useExisting){const e=o(n,[{token:t.useExisting}]);r=e[0]}else r=V_(e,t.useValue);return r});return{providerExpr:Vt(i,[new dt(Ft(s))],oe),flags:1024|t,depsExpr:Ft(r)};function o(t,n){return n.map((n,s)=>{const o=`p${t}_${s}`;return i.push(new We(o,se)),r.push(_m(e,n)),Pt(o)})}}(e,n,t.providers):pm(e,n,t.providerType,t.providers[0]);return{providerExpr:r,flags:i,depsExpr:s,tokenExpr:fm(e,t.token)}}function pm(e,t,n,r){let i,s;return n===dl.Directive||n===dl.Component?(i=e.importExpr(r.useClass.reference),t|=16384,s=r.deps||r.useClass.diDeps):r.useClass?(i=e.importExpr(r.useClass.reference),t|=512,s=r.deps||r.useClass.diDeps):r.useFactory?(i=e.importExpr(r.useFactory.reference),t|=1024,s=r.deps||r.useFactory.diDeps):r.useExisting?(i=rt,t|=2048,s=[{token:r.useExisting}]):(i=V_(e,r.useValue),t|=256,s=[]),{providerExpr:i,flags:t,depsExpr:Ft(s.map(t=>_m(e,t)))}}function fm(e,t){return t.identifier?e.importExpr(t.identifier.reference):Gt(t.value)}function _m(e,t){const n=t.isValue?V_(e,t.value):fm(e,t.token);let r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isSelf&&(r|=4),t.isValue&&(r|=8),0===r?n:Ft([Gt(r),n])}function mm(e){let t=0;switch(e){case rm.AfterContentChecked:t=2097152;break;case rm.AfterContentInit:t=1048576;break;case rm.AfterViewChecked:t=8388608;break;case rm.AfterViewInit:t=4194304;break;case rm.DoCheck:t=262144;break;case rm.OnChanges:t=524288;break;case rm.OnDestroy:t=131072;break;case rm.OnInit:t=65536}return t}function gm(e,t,n,r){const i=r.map(e=>t.importExpr(e.componentFactory)),s=An(e,xn.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:Ft(i)},{token:s,isSkipSelf:!0,isOptional:!0},{token:An(e,xn.NgModuleRef)}],lifecycleHooks:[],reference:e.resolveExternalReference(xn.CodegenComponentFactoryResolver)},{providerExpr:a,flags:c,depsExpr:u}=pm(t,n,dl.PrivateService,{token:s,multi:!1,useClass:o});return{providerExpr:a,flags:c,depsExpr:u,tokenExpr:fm(t,s)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class bm{constructor(e){this.ngModuleFactoryVar=e}}const ym=Pt("_l");class vm{constructor(e){this.reflector=e}compile(e,t,n){const r=_a("NgModule",t.type),i=t.transitiveModule.entryComponents,s=t.bootstrapComponents,o=new vl(this.reflector,t,n,r),a=[gm(this.reflector,e,0,i)].concat(o.parse().map(t=>dm(e,t))).map(({providerExpr:e,depsExpr:t,flags:n,tokenExpr:r})=>Mt(xn.moduleProviderDef).callFn([Gt(n),r,e,t])),c=Mt(xn.moduleDef).callFn([Ft(a)]),u=Vt([new We(ym.name)],[new dt(c)],oe),l=`${Nn(t.type)}NgFactory`;if(this._createNgModuleFactory(e,t.type.reference,Mt(xn.createModuleFactory).callFn([e.importExpr(t.type.reference),Ft(s.map(t=>e.importExpr(t.reference))),u])),t.id){const n="string"==typeof t.id?Gt(t.id):e.importExpr(t.id),r=Mt(xn.RegisterModuleFactoryFn).callFn([n,Pt(l)]).toStmt();e.statements.push(r)}return new bm(l)}createStub(e,t){this._createNgModuleFactory(e,t,rt)}_createNgModuleFactory(e,t,n){const r=Pt(`${Nn({reference:t})}NgFactory`).set(n).toDeclStmt(Rt(xn.NgModuleFactory,[Nt(e.importExpr(t))],[Q.Const]),[st.Final,st.Exported]);e.statements.push(r)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class wm{constructor(e){this._reflector=e}isNgModule(e){return this._reflector.annotations(e).some(F.isTypeOf)}resolve(e,t=!0){const n=jf(this._reflector.annotations(e),F.isTypeOf);if(n)return n;if(t)throw new Error(`No NgModule metadata found for '${cn(e)}'.`);return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Em(e){const t=new Cm,n=yr.createRoot();return(Array.isArray(e)?e:[e]).forEach(e=>{if(e instanceof ct)e.visitStatement(t,n);else if(e instanceof be)e.visitExpression(t,n);else{if(!(e instanceof ee))throw new Error(`Don't know how to print debug info for ${e}`);e.visitType(t,n)}}),n.toSource()}class Sm{emitStatementsAndContext(e,t,n="",r=!0,i,s){const o=new Cm(i,s),a=yr.createRoot();o.visitAllStatements(t,a);const c=n?n.split("\n"):[];o.reexports.forEach((e,t)=>{const n=e.map(e=>`${e.name} as ${e.as}`).join(",");c.push(`export {${n}} from '${t}';`)}),o.importsWithPrefixes.forEach((e,t)=>{c.push("imp"+`ort * as ${e} from '${t}';`)});const u=r?a.toSourceMapGenerator(e,c.length).toJsComment():"",l=[...c,a.toSource(),u];return u&&l.push(""),a.setPreambleLineCount(c.length),{sourceText:l.join("\n"),context:a}}emitStatements(e,t,n=""){return this.emitStatementsAndContext(e,t,n).sourceText}}class Cm extends vr{constructor(e,t){super(!1),this.referenceFilter=e,this.importFilter=t,this.typeExpression=0,this.importsWithPrefixes=new Map,this.reexports=new Map}visitType(e,t,n="any"){e?(this.typeExpression++,e.visitType(this,t),this.typeExpression--):t.print(null,n)}visitLiteralExpr(e,t){const n=e.value;return null==n&&e.type!=oe?(t.print(e,`(${n} as any)`),null):super.visitLiteralExpr(e,t)}visitLiteralArrayExpr(e,t){0===e.entries.length&&t.print(e,"(");const n=super.visitLiteralArrayExpr(e,t);return 0===e.entries.length&&t.print(e," as any[])"),n}visitExternalExpr(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null}visitAssertNotNullExpr(e,t){const n=super.visitAssertNotNullExpr(e,t);return t.print(e,"!"),n}visitDeclareVarStmt(e,t){if(e.hasModifier(st.Exported)&&e.value instanceof Ue&&!e.type){const{name:t,moduleName:n}=e.value.value;if(n){let r=this.reexports.get(n);return r||(r=[],this.reexports.set(n,r)),r.push({name:t,as:e.name}),null}}return e.hasModifier(st.Exported)&&t.print(e,"export "),e.hasModifier(st.Final)?t.print(e,"const"):t.print(e,"var"),t.print(e,` ${e.name}`),this._printColonType(e.type,t),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitWrappedNodeExpr(e,t){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")}visitCastExpr(e,t){return t.print(e,"(<"),e.type.visitType(this,t),t.print(e,">"),e.value.visitExpression(this,t),t.print(e,")"),null}visitInstantiateExpr(e,t){return t.print(e,"new "),this.typeExpression++,e.classExpr.visitExpression(this,t),this.typeExpression--,t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitDeclareClassStmt(e,t){return t.pushClass(e),e.hasModifier(st.Exported)&&t.print(e,"export "),t.print(e,`class ${e.name}`),null!=e.parent&&(t.print(e," extends "),this.typeExpression++,e.parent.visitExpression(this,t),this.typeExpression--),t.println(e," {"),t.incIndent(),e.fields.forEach(e=>this._visitClassField(e,t)),null!=e.constructorMethod&&this._visitClassConstructor(e,t),e.getters.forEach(e=>this._visitClassGetter(e,t)),e.methods.forEach(e=>this._visitClassMethod(e,t)),t.decIndent(),t.println(e,"}"),t.popClass(),null}_visitClassField(e,t){e.hasModifier(st.Private)&&t.print(null,"/*private*/ "),e.hasModifier(st.Static)&&t.print(null,"static "),t.print(null,e.name),this._printColonType(e.type,t),e.initializer&&(t.print(null," = "),e.initializer.visitExpression(this,t)),t.println(null,";")}_visitClassGetter(e,t){e.hasModifier(st.Private)&&t.print(null,"private "),t.print(null,`get ${e.name}()`),this._printColonType(e.type,t),t.println(null," {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(null,"}")}_visitClassConstructor(e,t){t.print(e,"constructor("),this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println(e,"}")}_visitClassMethod(e,t){e.hasModifier(st.Private)&&t.print(null,"private "),t.print(null,`${e.name}(`),this._visitParams(e.params,t),t.print(null,")"),this._printColonType(e.type,t,"void"),t.println(null," {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(null,"}")}visitFunctionExpr(e,t){return e.name&&(t.print(e,"function "),t.print(e,e.name)),t.print(e,"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),e.name||t.print(e," => "),t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitDeclareFunctionStmt(e,t){return e.hasModifier(st.Exported)&&t.print(e,"export "),t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),t.println(e," {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitTryCatchStmt(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,`} catch (${mr.name}) {`),t.incIndent();const n=[gr.set(mr.prop("stack",null)).toDeclStmt(null,[st.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null}visitBuiltinType(e,t){let n;switch(e.name){case Z.Bool:n="boolean";break;case Z.Dynamic:n="any";break;case Z.Function:n="Function";break;case Z.Number:case Z.Int:n="number";break;case Z.String:n="string";break;case Z.None:n="never";break;default:throw new Error(`Unsupported builtin type ${e.name}`)}return t.print(null,n),null}visitExpressionType(e,t){return e.value.visitExpression(this,t),null!==e.typeParams&&(t.print(null,"<"),this.visitAllObjects(e=>this.visitType(e,t),e.typeParams,t,","),t.print(null,">")),null}visitArrayType(e,t){return this.visitType(e.of,t),t.print(null,"[]"),null}visitMapType(e,t){return t.print(null,"{[key: string]:"),this.visitType(e.valueType,t),t.print(null,"}"),null}getBuiltinMethodName(e){let t;switch(e){case fe.ConcatArray:t="concat";break;case fe.SubscribeObservable:t="subscribe";break;case fe.Bind:t="bind";break;default:throw new Error(`Unknown builtin method: ${e}`)}return t}_visitParams(e,t){this.visitAllObjects(e=>{t.print(null,e.name),this._printColonType(e.type,t)},e,t,",")}_visitIdentifier(e,t,n){const{name:r,moduleName:i}=e;if(this.referenceFilter&&this.referenceFilter(e))n.print(null,"(null as any)");else{if(i&&(!this.importFilter||!this.importFilter(e))){let e=this.importsWithPrefixes.get(i);null==e&&(e=`i${this.importsWithPrefixes.size}`,this.importsWithPrefixes.set(i,e)),n.print(null,`${e}.`)}if(n.print(null,r),this.typeExpression>0){(t||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(e=>e.visitType(this,n),t,n,","),n.print(null,">"))}}}_printColonType(e,t,n){e!==oe&&(t.print(null,":"),this.visitType(e,t,n))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Om{constructor(e){this._reflector=e}isPipe(e){const t=this._reflector.annotations(un(e));return t&&t.some(P.isTypeOf)}resolve(e,t=!0){const n=this._reflector.annotations(un(e));if(n){const e=jf(n,P.isTypeOf);if(e)return e}if(t)throw new Error(`No Pipe decorator found on ${cn(e)}`);return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Im{constructor(e,t){this.options=e,this.reflector=t}compileComponent(e,t,n,r,i,s){const o=new Map;r.forEach(e=>o.set(e.name,e.type.reference));let a=0;const c=(e,n)=>{const r=a++;return new Am(this.options,this.reflector,i,e,t.type.reference,t.isHost,r,o,n,s,c)},u=c(null,[]);return u.visitAll([],n),u.build(e)}}const xm="_any";const Tm=new class{notifyImplicitReceiverUse(){}getLocal(e){return e===cc.event.name?Pt(xm):null}};class Am{constructor(e,t,n,r,i,s,o,a,c,u,l){this.options=e,this.reflector=t,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=s,this.embeddedViewIndex=o,this.pipes=a,this.guards=c,this.ctx=u,this.viewBuilderFactory=l,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}getOutputVar(e){let t;if(!(t=e===this.component&&this.isHostComponent?xm:e instanceof Dn?this.externalReferenceVars.get(e):xm))throw new Error(`Illegal State: referring to a type without a variable ${JSON.stringify(e)}`);return t}getTypeGuardExpressions(e){const t=[...this.guards];for(let n of e.directives)for(let e of n.inputs){const r=n.directive.guards[e.directiveName];if(r){const n="UseIf"===r;t.push({guard:r,useIf:n,expression:{context:this.component,value:e.value,sourceSpan:e.sourceSpan}})}}return t}visitAll(e,t){this.variables=e,ml(this,t)}build(e,t=[]){this.children.forEach(n=>n.build(e,t));let n=[Pt(xm).set(rt).toDeclStmt(se)],r=0;if(this.updates.forEach(e=>{const{sourceSpan:t,context:i,value:s}=this.preprocessUpdateExpression(e),o=`${r++}`,a=i===this.component?this:Tm,{stmts:c,currValExpr:u}=pc(a,Pt(this.getOutputVar(i)),s,o,da.General);c.push(new ht(u)),n.push(...c.map(e=>xt(e,t)))}),this.actions.forEach(({sourceSpan:e,context:t,value:i})=>{const s=`${r++}`,o=t===this.component?this:Tm,{stmts:a}=lc(o,Pt(this.getOutputVar(t)),i,s);n.push(...a.map(t=>xt(t,e)))}),this.guards.length){let e=void 0;for(const t of this.guards){const{context:n,value:i}=this.preprocessUpdateExpression(t.expression),s=`${r++}`,o=n===this.component?this:Tm,{stmts:a,currValExpr:c}=pc(o,Pt(this.getOutputVar(n)),i,s,da.TrySimple);if(0==a.length){const n=t.useIf?c:this.ctx.importExpr(t.guard).callFn([c]);e=e?e.and(n):n}}e&&(n=[new bt(e,n)])}const i=`_View_${e}_${this.embeddedViewIndex}`,s=new lt(i,[],n);return t.push(s),t}visitBoundText(e,t){e.value.ast.expressions.forEach(t=>this.updates.push({context:this.component,value:t,sourceSpan:e.sourceSpan}))}visitEmbeddedTemplate(e,t){if(this.visitElementOrTemplate(e),this.options.fullTemplateTypeCheck){const t=this.getTypeGuardExpressions(e),n=this.viewBuilderFactory(this,t);this.children.push(n),n.visitAll(e.variables,e.children)}}visitElement(e,t){this.visitElementOrTemplate(e);e.inputs.forEach(e=>{this.updates.push({context:this.component,value:e.value,sourceSpan:e.sourceSpan})}),ml(this,e.children)}visitElementOrTemplate(e){e.directives.forEach(e=>{this.visitDirective(e)}),e.references.forEach(e=>{let t=null;t=e.value&&e.value.identifier&&this.options.fullTemplateTypeCheck?e.value.identifier.reference:Z.Dynamic,this.refOutputVars.set(e.name,t)}),e.outputs.forEach(e=>{this.actions.push({context:this.component,value:e.handler,sourceSpan:e.sourceSpan})})}visitDirective(e){const t=e.directive.type.reference;e.inputs.forEach(e=>this.updates.push({context:this.component,value:e.value,sourceSpan:e.sourceSpan})),this.options.fullTemplateTypeCheck&&(e.hostProperties.forEach(e=>this.updates.push({context:t,value:e.value,sourceSpan:e.sourceSpan})),e.hostEvents.forEach(e=>this.actions.push({context:t,value:e.handler,sourceSpan:e.sourceSpan})))}notifyImplicitReceiverUse(){}getLocal(e){if(e==cc.event.name)return Pt(this.getOutputVar(Z.Dynamic));for(let t=this;t;t=t.parent){let n;if(null==(n=t.refOutputVars.get(e))){t.variables.find(t=>t.name===e)&&(n=Z.Dynamic)}if(null!=n)return Pt(this.getOutputVar(n))}return null}pipeOutputVar(e){const t=this.pipes.get(e);if(!t)throw new Error(`Illegal State: Could not find pipe ${e} in template of ${this.component}`);return this.getOutputVar(t)}preprocessUpdateExpression(e){return{sourceSpan:e.sourceSpan,context:e.context,value:hc({createLiteralArrayConverter:e=>e=>{const t=Ft(e);return this.options.fullTemplateTypeCheck?t:t.cast(se)},createLiteralMapConverter:e=>t=>{const n=jt(e.map((e,n)=>({key:e.key,value:t[n],quoted:e.quoted})));return this.options.fullTemplateTypeCheck?n:n.cast(se)},createPipeConverter:(e,t)=>t=>{return(this.options.fullTemplateTypeCheck?Pt(this.pipeOutputVar(e)):Pt(this.getOutputVar(Z.Dynamic))).callMethod("transform",t)}},e.value)}}visitNgContent(e,t){}visitText(e,t){}visitDirectiveProperty(e,t){}visitReference(e,t){}visitVariable(e,t){}visitEvent(e,t){}visitElementProperty(e,t){}visitAttr(e,t){}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Dm="class",km="style",Pm="$implicit";class Mm{constructor(e,t){this.viewClassVar=e,this.rendererTypeVar=t}}class Rm{constructor(e){this._reflector=e}compileComponent(e,t,n,r,i){let s=0,o=void 0;if(!t.isHost){const n=t.template,i=[];n.animations&&n.animations.length&&i.push(new et("animation",V_(e,n.animations),!0));const s=Pt(jn(t.type.reference));o=s.name,e.statements.push(s.set(Mt(xn.createRendererType2).callFn([new tt([new et("encapsulation",Gt(n.encapsulation),!1),new et("styles",r,!1),new et("data",new tt(i),!1)])])).toDeclStmt(Rt(xn.RendererType2),[st.Final,st.Exported]))}const a=n=>{const r=s++;return new Um(this._reflector,e,n,t,r,i,a)},c=a(null);return c.visitAll([],n),e.statements.push(...c.build()),new Mm(c.viewName,o)}}const Nm=Pt("_l"),Lm=Pt("_v"),Fm=Pt("_ck"),jm=Pt("_co"),Vm=Pt("en"),Bm=Pt("ad");class Um{constructor(e,t,n,r,i,s,o){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=s,this.viewBuilderFactory=o,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?se:Nt(t.importExpr(this.component.type.reference)),this.viewName=Fn(this.component.type.reference,this.embeddedViewIndex)}visitAll(e,t){this.variables=e,this.parent||this.usedPipes.forEach(e=>{e.pure&&(this.purePipeNodeIndices[e.name]=this._createPipe(null,e))}),this.parent||this.component.viewQueries.forEach((e,t)=>{const n=t+1,r=e.first?0:1,i=134217728|zm(e);this.nodes.push(()=>({sourceSpan:null,nodeFlags:i,nodeDef:Mt(xn.queryDef).callFn([Gt(i),Gt(n),new tt([new et(e.propertyName,Gt(r),!1)])])}))}),ml(this,t),this.parent&&(0===t.length||function e(t){const n=t[t.length-1];if(n instanceof cl)return n.hasViewContainer;if(n instanceof al)return s(n.name)&&n.children.length?e(n.children):n.hasViewContainer;return n instanceof pl}(t))&&this.nodes.push(()=>({sourceSpan:null,nodeFlags:1,nodeDef:Mt(xn.anchorDef).callFn([Gt(0),rt,rt,Gt(0)])}))}build(e=[]){this.children.forEach(t=>t.build(e));const{updateRendererStmts:t,updateDirectivesStmts:n,nodeDefExprs:r}=this._createNodeExpressions(),i=this._createUpdateFn(t),s=this._createUpdateFn(n);let o=0;this.parent||this.component.changeDetection!==D.OnPush||(o|=2);const a=new lt(this.viewName,[new We(Nm.name)],[new dt(Mt(xn.viewDef).callFn([Gt(o),Ft(r),s,i]))],Rt(xn.ViewDefinition),0===this.embeddedViewIndex?[st.Exported]:[]);return e.push(a),e}_createUpdateFn(e){let t;if(e.length>0){const n=[];!this.component.isHost&&St(e).has(jm.name)&&n.push(jm.set(Lm.prop("component")).toDeclStmt(this.compType)),t=Vt([new We(Fm.name,oe),new We(Lm.name,oe)],[...n,...e],oe)}else t=rt;return t}visitNgContent(e,t){this.nodes.push(()=>({sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:Mt(xn.ngContentDef).callFn([Gt(e.ngContentIndex),Gt(e.index)])}))}visitText(e,t){this.nodes.push(()=>({sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:Mt(xn.textDef).callFn([Gt(-1),Gt(e.ngContentIndex),Ft([Gt(e.value)])])}))}visitBoundText(e,t){const n=this.nodes.length;this.nodes.push(null);const r=e.value.ast,i=r.expressions.map((t,r)=>this._preprocessUpdateExpression({nodeIndex:n,bindingIndex:r,sourceSpan:e.sourceSpan,context:jm,value:t})),s=n;this.nodes[n]=(()=>({sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:Mt(xn.textDef).callFn([Gt(s),Gt(e.ngContentIndex),Ft(r.strings.map(e=>Gt(e)))]),updateRenderer:i}))}visitEmbeddedTemplate(e,t){const n=this.nodes.length;this.nodes.push(null);const{flags:r,queryMatchesExpr:i,hostEvents:s}=this._visitElementOrTemplate(n,e),o=this.viewBuilderFactory(this);this.children.push(o),o.visitAll(e.variables,e.children);const a=this.nodes.length-n-1;this.nodes[n]=(()=>({sourceSpan:e.sourceSpan,nodeFlags:1|r,nodeDef:Mt(xn.anchorDef).callFn([Gt(r),i,Gt(e.ngContentIndex),Gt(a),this._createElementHandleEventFn(n,s),Pt(o.viewName)])}))}visitElement(e,t){const n=this.nodes.length;this.nodes.push(null);const r=s(e.name)?null:e.name,{flags:i,usedEvents:o,queryMatchesExpr:a,hostBindings:c,hostEvents:u}=this._visitElementOrTemplate(n,e);let l=[],h=[],d=[];if(r){const t=e.inputs.map(e=>({context:jm,inputAst:e,dirAst:null})).concat(c);t.length&&(h=t.map((e,t)=>this._preprocessUpdateExpression({context:e.context,nodeIndex:n,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})),l=t.map(e=>(function(e,t){const n=e.type;switch(n){case 1:return Ft([Gt(1),Gt(e.name),Gt(e.securityContext)]);case 0:return Ft([Gt(8),Gt(e.name),Gt(e.securityContext)]);case 4:const r=8|(t&&t.directive.isComponent?32:16);return Ft([Gt(r),Gt("@"+e.name),Gt(e.securityContext)]);case 2:return Ft([Gt(2),Gt(e.name),rt]);case 3:return Ft([Gt(4),Gt(e.name),Gt(e.unit)]);default:const i=n;throw new Error(`unexpected ${i}`)}})(e.inputAst,e.dirAst))),d=o.map(([e,t])=>Ft([Gt(e),Gt(t)]))}ml(this,e.children);const p=this.nodes.length-n-1,f=e.directives.find(e=>e.directive.isComponent);let _=rt,m=rt;f&&(m=this.outputCtx.importExpr(f.directive.componentViewType),_=this.outputCtx.importExpr(f.directive.rendererType));const g=n;this.nodes[n]=(()=>({sourceSpan:e.sourceSpan,nodeFlags:1|i,nodeDef:Mt(xn.elementDef).callFn([Gt(g),Gt(i),a,Gt(e.ngContentIndex),Gt(p),Gt(r),r?Gm(e):rt,l.length?Ft(l):rt,d.length?Ft(d):rt,this._createElementHandleEventFn(n,u),m,_]),updateRenderer:h}))}_visitElementOrTemplate(e,t){let n=0;t.hasViewContainer&&(n|=16777216);const r=new Map;t.outputs.forEach(e=>{const{name:t,target:n}=Hm(e,null);r.set(Wm(n,t),[n,t])}),t.directives.forEach(e=>{e.hostEvents.forEach(t=>{const{name:n,target:i}=Hm(t,e);r.set(Wm(i,n),[i,n])})});const i=[],s=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach(e=>{let n=void 0;if(t.directives.forEach(t=>{t.directive.type.reference===qn(e.token)&&(n=t)}),n){const{hostBindings:o,hostEvents:a}=this._visitDirective(e,n,t.references,t.queryMatches,r);i.push(...o),s.push(...a)}else this._visitProvider(e,t.queryMatches)});let o=[];return t.queryMatches.forEach(e=>{let t=void 0;qn(e.value)===this.reflector.resolveExternalReference(xn.ElementRef)?t=0:qn(e.value)===this.reflector.resolveExternalReference(xn.ViewContainerRef)?t=3:qn(e.value)===this.reflector.resolveExternalReference(xn.TemplateRef)&&(t=2),null!=t&&o.push(Ft([Gt(e.queryId),Gt(t)]))}),t.references.forEach(t=>{let n=void 0;t.value?qn(t.value)===this.reflector.resolveExternalReference(xn.TemplateRef)&&(n=2):n=1,null!=n&&(this.refNodeIndices[t.name]=e,o.push(Ft([Gt(t.name),Gt(n)])))}),t.outputs.forEach(e=>{s.push({context:jm,eventAst:e,dirAst:null})}),{flags:n,usedEvents:Array.from(r.values()),queryMatchesExpr:o.length?Ft(o):rt,hostBindings:i,hostEvents:s}}_visitDirective(e,t,n,r,i){const s=this.nodes.length;this.nodes.push(null),t.directive.queries.forEach((e,n)=>{const r=t.contentQueryStartId+n,i=67108864|zm(e),s=e.first?0:1;this.nodes.push(()=>({sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:Mt(xn.queryDef).callFn([Gt(i),Gt(r),new tt([new et(e.propertyName,Gt(s),!1)])])}))});const o=this.nodes.length-s-1;let{flags:a,queryMatchExprs:c,providerExpr:u,depsExpr:l}=this._visitProviderOrDirective(e,r);n.forEach(t=>{t.value&&qn(t.value)===qn(e.token)&&(this.refNodeIndices[t.name]=s,c.push(Ft([Gt(t.name),Gt(4)])))}),t.directive.isComponent&&(a|=32768);const h=t.inputs.map((e,t)=>{const n=Ft([Gt(t),Gt(e.directiveName)]);return new et(e.directiveName,n,!1)}),d=[],p=t.directive;Object.keys(p.outputs).forEach(e=>{const t=p.outputs[e];i.has(t)&&d.push(new et(e,Gt(t),!1))});let f=[];(t.inputs.length||(327680&a)>0)&&(f=t.inputs.map((e,t)=>this._preprocessUpdateExpression({nodeIndex:s,bindingIndex:t,sourceSpan:e.sourceSpan,context:jm,value:e.value})));const _=Mt(xn.nodeValue).callFn([Lm,Gt(s)]),m=t.hostProperties.map(e=>({context:_,dirAst:t,inputAst:e})),g=t.hostEvents.map(e=>({context:_,eventAst:e,dirAst:t})),b=s;return this.nodes[s]=(()=>({sourceSpan:t.sourceSpan,nodeFlags:16384|a,nodeDef:Mt(xn.directiveDef).callFn([Gt(b),Gt(a),c.length?Ft(c):rt,Gt(o),u,l,h.length?new tt(h):rt,d.length?new tt(d):rt]),updateDirectives:f,directive:t.directive.type})),{hostBindings:m,hostEvents:g}}_visitProvider(e,t){this._addProviderNode(this._visitProviderOrDirective(e,t))}_visitComponentFactoryResolverProvider(e){const t=e.find(e=>e.directive.isComponent);if(t&&t.directive.entryComponents.length){const{providerExpr:e,depsExpr:n,flags:r,tokenExpr:i}=gm(this.reflector,this.outputCtx,8192,t.directive.entryComponents);this._addProviderNode({providerExpr:e,depsExpr:n,flags:r,tokenExpr:i,queryMatchExprs:[],sourceSpan:t.sourceSpan})}}_addProviderNode(e){this.nodes.push(()=>({sourceSpan:e.sourceSpan,nodeFlags:e.flags,nodeDef:Mt(xn.providerDef).callFn([Gt(e.flags),e.queryMatchExprs.length?Ft(e.queryMatchExprs):rt,e.tokenExpr,e.providerExpr,e.depsExpr])}))}_visitProviderOrDirective(e,t){let n=[];t.forEach(t=>{qn(t.value)===qn(e.token)&&n.push(Ft([Gt(t.queryId),Gt(4)]))});const{providerExpr:r,depsExpr:i,flags:s,tokenExpr:o}=dm(this.outputCtx,e);return{flags:0|s,queryMatchExprs:n,providerExpr:r,depsExpr:i,tokenExpr:o,sourceSpan:e.sourceSpan}}getLocal(e){if(e==cc.event.name)return cc.event;let t=Lm;for(let n=this;n;n=n.parent,t=t.prop("parent").cast(se)){const r=n.refNodeIndices[e];if(null!=r)return Mt(xn.nodeValue).callFn([t,Gt(r)]);const i=n.variables.find(t=>t.name===e);if(i){const e=i.value||Pm;return t.prop("context").prop(e)}}return null}notifyImplicitReceiverUse(){}_createLiteralArrayConverter(e,t){if(0===t){const e=Mt(xn.EMPTY_ARRAY);return()=>e}const n=this.nodes.length;return this.nodes.push(()=>({sourceSpan:e,nodeFlags:32,nodeDef:Mt(xn.pureArrayDef).callFn([Gt(n),Gt(t)])})),e=>qm(n,e)}_createLiteralMapConverter(e,t){if(0===t.length){const e=Mt(xn.EMPTY_MAP);return()=>e}const n=jt(t.map((e,t)=>Object.assign(Object.assign({},e),{value:Gt(t)}))),r=this.nodes.length;return this.nodes.push(()=>({sourceSpan:e,nodeFlags:64,nodeDef:Mt(xn.pureObjectDef).callFn([Gt(r),n])})),e=>qm(r,e)}_createPipeConverter(e,t,n){const r=this.usedPipes.find(e=>e.name===t);if(r.pure){const r=this.nodes.length;this.nodes.push(()=>({sourceSpan:e.sourceSpan,nodeFlags:128,nodeDef:Mt(xn.purePipeDef).callFn([Gt(r),Gt(n)])}));let i=Lm,s=this;for(;s.parent;)s=s.parent,i=i.prop("parent").cast(se);const o=s.purePipeNodeIndices[t],a=Mt(xn.nodeValue).callFn([i,Gt(o)]);return t=>$m(e.nodeIndex,e.bindingIndex,qm(r,[a].concat(t)))}{const t=this._createPipe(e.sourceSpan,r),n=Mt(xn.nodeValue).callFn([Lm,Gt(t)]);return t=>$m(e.nodeIndex,e.bindingIndex,n.callMethod("transform",t))}}_createPipe(e,t){const n=this.nodes.length;let r=0;t.type.lifecycleHooks.forEach(e=>{e===rm.OnDestroy&&(r|=mm(e))});const i=t.type.diDeps.map(e=>_m(this.outputCtx,e));return this.nodes.push(()=>({sourceSpan:e,nodeFlags:16,nodeDef:Mt(xn.pipeDef).callFn([Gt(r),this.outputCtx.importExpr(t.type.reference),Ft(i)])})),n}_preprocessUpdateExpression(e){return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:hc({createLiteralArrayConverter:t=>this._createLiteralArrayConverter(e.sourceSpan,t),createLiteralMapConverter:t=>this._createLiteralMapConverter(e.sourceSpan,t),createPipeConverter:(t,n)=>this._createPipeConverter(e,t,n)},e.value)}}_createNodeExpressions(){const e=this;let t=0;const n=[],r=[],i=this.nodes.map((e,t)=>{const{nodeDef:i,nodeFlags:o,updateDirectives:a,updateRenderer:c,sourceSpan:u}=e();return c&&n.push(...s(t,u,c,!1)),a&&r.push(...s(t,u,a,(327680&o)>0)),Tt(3&o?new nt([Nm.callFn([]).callFn([]),i]):i,u)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function s(n,r,i,s){const o=[],a=i.map(({sourceSpan:n,context:r,value:i})=>{const s=`${t++}`,a=r===jm?e:null,{stmts:c,currValExpr:u}=pc(a,r,i,s,da.General);return o.push(...c.map(e=>xt(e,n))),Tt(u,n)});return(i.length||s)&&o.push(xt(qm(n,a).toStmt(),r)),o}}_createElementHandleEventFn(e,t){const n=[];let r,i=0;if(t.forEach(({context:e,eventAst:t,dirAst:r})=>{const s=`${i++}`,o=e===jm?this:null,{stmts:a,allowDefault:c}=lc(o,e,t.handler,s),u=a;c&&u.push(Bm.set(c.and(Bm)).toStmt());const{target:l,name:h}=Hm(t,r),d=Wm(l,h);n.push(xt(new bt(Gt(d).identical(Vm),u),t.sourceSpan))}),n.length>0){const e=[Bm.set(Gt(!0)).toDeclStmt(ae)];!this.component.isHost&&St(n).has(jm.name)&&e.push(jm.set(Lm.prop("component")).toDeclStmt(this.compType)),r=Vt([new We(Lm.name,oe),new We(Vm.name,oe),new We(cc.event.name,oe)],[...e,...n,new dt(Bm)],oe)}else r=rt;return r}visitDirective(e,t){}visitDirectiveProperty(e,t){}visitReference(e,t){}visitVariable(e,t){}visitEvent(e,t){}visitElementProperty(e,t){}visitAttr(e,t){}}function Gm(e){const t=Object.create(null);return e.attrs.forEach(e=>{t[e.name]=e.value}),e.directives.forEach(e=>{Object.keys(e.directive.hostAttributes).forEach(n=>{const r=e.directive.hostAttributes[n],i=t[n];t[n]=null!=i?function(e,t,n){return e==Dm||e==km?`${t} ${n}`:n}(n,i,r):r})}),Ft(Object.keys(t).sort().map(e=>Ft([Gt(e),Gt(t[e])])))}function qm(e,t){return t.length>10?Fm.callFn([Lm,Gt(e),Gt(1),Ft(t)]):Fm.callFn([Lm,Gt(e),Gt(0),...t])}function $m(e,t,n){return Mt(xn.unwrapValue).callFn([Lm,Gt(e),Gt(t),n])}function Hm(e,t){return e.isAnimation?{name:`@${e.name}.${e.phase}`,target:t&&t.directive.isComponent?"component":null}:e}function zm(e){let t=0;return e.first&&e.static?t|=268435456:t|=536870912,e.emitDistinctChangesOnly&&(t|=-2147483648),t}function Wm(e,t){return e?`${e}:${t}`:t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Km{constructor(e,t,n,r=null){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._messages=[]}updateFromTemplate(e,t,n){const r=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:n});if(r.errors.length)return r.errors;const i=function(e,t,n,r){return new Wf(n,r).extract(e,t)}(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:(this._messages.push(...i.messages),[])}getMessages(){return this._messages}write(e,t){const n={},r=new Ym;this._messages.forEach(t=>{const r=e.digest(t);n.hasOwnProperty(r)?n[r].sources.push(...t.sources):n[r]=t});const i=Object.keys(n).map(i=>{const s=e.createNameMapper(n[i]),o=n[i],a=s?r.convert(o.nodes,s):o.nodes;let c=new zr(a,{},{},o.meaning,o.description,i);return c.sources=o.sources,t&&c.sources.forEach(e=>e.filePath=t(e.filePath)),c});return e.write(i,this._locale)}}class Ym extends Jr{convert(e,t){return t?e.map(e=>e.visit(this,t)):e}visitTagPlaceholder(e,t){const n=t.toPublicName(e.startName),r=e.closeName?t.toPublicName(e.closeName):e.closeName,i=e.children.map(e=>e.visit(this,t));return new Xr(e.tag,e.attrs,n,r,i,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Qr(e.value,t.toPublicName(e.name),e.sourceSpan)}visitIcuPlaceholder(e,t){return new Zr(e.value,t.toPublicName(e.name),e.sourceSpan)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Xm{constructor(e,t,n){this.srcFileUrl=e,this.genFileUrl=t,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}isEquivalent(e){return this.genFileUrl===e.genFileUrl&&(this.source?this.source===e.source:null!=e.stmts&&ge(this.stmts,e.stmts))}}function Qm(e,t=""){if(!e.stmts)throw new Error(`Illegal state: No stmts present on GeneratedFile ${e.genFileUrl}`);return(new Sm).emitStatements(e.genFileUrl,e.stmts,t)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Zm(e,t){const n=[];for(const{provider:r,module:i}of e.transitiveModule.providers)if(qn(r.token)===t.ROUTES){const e=Jm(r.useValue);for(const r of e)n.push(eg(r,t,i.reference))}return n}function Jm(e,t=[]){if("string"==typeof e)t.push(e);else if(Array.isArray(e))for(const n of e)Jm(n,t);else e.loadChildren?Jm(e.loadChildren,t):e.children&&Jm(e.children,t);return t}function eg(e,t,n){const[r,i]=e.split("#"),s=t.resolveExternalReference({moduleName:r,name:i},n?n.filePath:void 0);return{route:e,module:n||s,referencedModule:s}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const tg=/^(?!.*\.d\.ts$).*\.ts$/;class ng{constructor(e,t){this.symbol=e,this.metadata=t}}const rg=4;class ig{constructor(e,t,n,r){this.host=e,this.staticSymbolCache=t,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}resolveSymbol(e){if(e.members.length>0)return this._resolveSymbolMembers(e);const t=this._resolveSymbolFromSummary(e);if(t)return t;const n=this.resolvedSymbols.get(e);return n||(this._createSymbolsOf(e.filePath),this.resolvedSymbols.get(e))}getImportAs(e,t=!0){if(e.members.length){const n=this.getStaticSymbol(e.filePath,e.name),r=this.getImportAs(n,t);return r?this.getStaticSymbol(r.filePath,r.name,e.members):null}const n=e.filePath.replace(H_,".");if(n!==e.filePath){const r=e.name.replace(z_,""),i=this.getStaticSymbol(n,r,e.members),s=this.getImportAs(i,t);return s?this.getStaticSymbol(Z_(s.filePath),J_(s.name),i.members):null}let r=t&&this.summaryResolver.getImportAs(e)||null;return r||(r=this.importAs.get(e)),r}getResourcePath(e){return this.symbolResourcePaths.get(e)||e.filePath}getTypeArity(e){if(t=e.filePath,$_.test(t))return null;var t;let n=og(this.resolveSymbol(e));for(;n&&n.metadata instanceof Dn;)n=og(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null}getKnownModuleName(e){return this.knownFileNameToModuleNames.get(e)||null}recordImportAs(e,t){e.assertNoMembers(),t.assertNoMembers(),this.importAs.set(e,t)}recordModuleNameForFileName(e,t){this.knownFileNameToModuleNames.set(e,t)}invalidateFile(e){this.metadataCache.delete(e);const t=this.symbolFromFile.get(e);if(!t)return[];this.symbolFromFile.delete(e);for(const e of t)this.resolvedSymbols.delete(e),this.importAs.delete(e),this.symbolResourcePaths.delete(e);return t}ignoreErrorsFor(e){const t=this.errorRecorder;this.errorRecorder=(()=>{});try{return e()}finally{this.errorRecorder=t}}_resolveSymbolMembers(e){const t=e.members,n=this.resolveSymbol(this.getStaticSymbol(e.filePath,e.name));if(!n)return null;let r=og(n.metadata);if(r instanceof Dn)return new ng(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){let n=r;for(let e=0;e{const n=t.metadata[e];return n&&"class"===n.__symbolic&&n.decorators})}getSymbolsOf(e){const t=this.summaryResolver.getSymbolsOf(e);return t||(this._createSymbolsOf(e),this.symbolFromFile.get(e)||[])}_createSymbolsOf(e){if(this.symbolFromFile.has(e))return;const t=[],n=this.getModuleMetadata(e);if(n.importAs&&this.knownFileNameToModuleNames.set(e,n.importAs),n.exports)for(const r of n.exports)if(r.export)r.export.forEach(n=>{let i,s=i=sg(i="string"==typeof n?n:n.as);"string"!=typeof n&&(s=sg(n.name));const o=this.resolveModule(r.from,e);if(o){const n=this.getStaticSymbol(o,s),r=this.getStaticSymbol(e,i);t.push(this.createExport(r,n))}});else{const n=this.resolveModule(r.from,e);if(n&&n!==e){this.getSymbolsOf(n).forEach(n=>{const r=this.getStaticSymbol(e,n.name);t.push(this.createExport(r,n))})}}if(n.metadata){const r=new Set(Object.keys(n.metadata).map(sg)),i=n.origins||{};Object.keys(n.metadata).forEach(s=>{const o=n.metadata[s],a=sg(s),c=this.getStaticSymbol(e,a),u=i.hasOwnProperty(s)&&i[s];if(u){const t=this.resolveModule(u,e);t?this.symbolResourcePaths.set(c,t):this.reportError(new Error(`Couldn't resolve original symbol for ${u} from ${this.host.getOutputName(e)}`))}t.push(this.createResolvedSymbol(c,e,r,o))})}const r=new Set;for(const e of t)this.resolvedSymbols.set(e.symbol,e),r.add(e.symbol);this.symbolFromFile.set(e,Array.from(r))}createResolvedSymbol(e,t,n,r){const i=tg.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!i&&r&&"class"===r.__symbolic){const t={__symbolic:"class",arity:r.arity};return new ng(e,t)}let s;const o=()=>(s||(s=this.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),s),a=this;const c=Kt(r,new class extends Qt{visitStringMap(r,i){const s=r.__symbolic;if("function"===s){const e=i.length;i.push(...r.parameters||[]);const t=super.visitStringMap(r,i);return i.length=e,t}if("reference"!==s)return"error"===s?Object.assign(Object.assign({},r),{fileName:o()}):super.visitStringMap(r,i);{const s=r.module,c=r.name?sg(r.name):r.name;if(!c)return null;let u;if(s)return(u=a.resolveModule(s,e.filePath))?{__symbolic:"resolved",symbol:a.getStaticSymbol(u,c),line:r.line,character:r.character,fileName:o()}:{__symbolic:"error",message:`Could not resolve ${s} relative to ${a.host.getMetadataFor(e.filePath)}.`,line:r.line,character:r.character,fileName:o()};if(i.indexOf(c)>=0)return{__symbolic:"reference",name:c};if(n.has(c))return a.getStaticSymbol(t,c)}}},[]);let u=og(c);return u instanceof Dn?this.createExport(e,u):new ng(e,c)}createExport(e,t){return e.assertNoMembers(),t.assertNoMembers(),this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(t,this.getImportAs(e)||e),new ng(e,t)}reportError(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)}getModuleMetadata(e){let t=this.metadataCache.get(e);if(!t){const n=this.host.getMetadataFor(e);if(n){let e=-1;n.forEach(n=>{n&&n.version>e&&(e=n.version,t=n)})}if(t||(t={__symbolic:"module",version:rg,module:e,metadata:{}}),t.version!=rg){const n=2==t.version?`Unsupported metadata version ${t.version} for module ${e}. This module should be compiled with a newer version of ngc`:`Metadata version mismatch for module ${this.host.getOutputName(e)}, found version ${t.version}, expected ${rg}`;this.reportError(new Error(n))}this.metadataCache.set(e,t)}return t}getSymbolByModule(e,t,n){const r=this.resolveModule(e,n);return r?this.getStaticSymbol(r,t):(this.reportError(new Error(`Could not resolve module ${e}${n?" relative to "+this.host.getOutputName(n):""}`)),this.getStaticSymbol(`ERROR:${e}`,t))}resolveModule(e,t){try{return this.host.moduleNameToFileName(e,t)}catch(n){console.error(`Could not resolve module '${e}' relative to file ${t}`),this.reportError(n,void 0,t)}return null}}function sg(e){return e.startsWith("___")?e.substr(1):e}function og(e){return e&&"resolved"===e.__symbolic?e.symbol:e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ag(e,t,n){const r=J_(t.name);e.statements.push(Vt([],[new dt(n)],new re(se)).toDeclStmt(r,[st.Final,st.Exported]))}class cg extends Qt{constructor(e,t,n){super(),this.symbolResolver=e,this.summaryResolver=t,this.srcFileName=n,this.symbols=[],this.indexBySymbol=new Map,this.reexportedBy=new Map,this.processedSummaryBySymbol=new Map,this.processedSummaries=[],this.unprocessedSymbolSummariesBySymbol=new Map,this.moduleName=e.getKnownModuleName(n)}addSummary(e){let t=this.unprocessedSymbolSummariesBySymbol.get(e.symbol),n=this.processedSummaryBySymbol.get(e.symbol);if(t||(t={symbol:e.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(e.symbol,t),n={symbol:this.processValue(e.symbol,0)},this.processedSummaries.push(n),this.processedSummaryBySymbol.set(e.symbol,n)),!t.metadata&&e.metadata){let r=e.metadata||{};if("class"===r.__symbolic){const e={};Object.keys(r).forEach(t=>{"decorators"!==t&&(e[t]=r[t])}),r=e}else hg(r)&&(function(e){return hg(e)&&og(e.expression)instanceof Dn}(r)||function(e){return hg(e)&&e.expression&&"select"===e.expression.__symbolic&&og(e.expression.expression)instanceof Dn} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(r)||(r={__symbolic:"error",message:"Complex function calls are not supported."}));if(t.metadata=r,n.metadata=this.processValue(r,1),r instanceof Dn&&this.summaryResolver.isLibraryFile(r.filePath)){const t=this.symbols[this.indexBySymbol.get(r)];tm(t.name)||this.reexportedBy.set(t,e.symbol)}}if(!t.type&&e.type&&(t.type=e.type,n.type=this.processValue(e.type,0),e.type.summaryKind===Un.NgModule)){const t=e.type;t.exportedDirectives.concat(t.exportedPipes).forEach(e=>{const t=e.reference;if(this.summaryResolver.isLibraryFile(t.filePath)&&!this.unprocessedSymbolSummariesBySymbol.has(t)){const e=this.summaryResolver.resolveSummary(t);e&&this.addSummary(e)}})}}serialize(e){const t=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map((n,r)=>{n.assertNoMembers();let i=void 0;if(this.summaryResolver.isLibraryFile(n.filePath)){const s=this.reexportedBy.get(n);if(s)i=this.indexBySymbol.get(s);else if(e){const e=this.unprocessedSymbolSummariesBySymbol.get(n);e&&e.metadata&&"interface"===e.metadata.__symbolic||(i=`${n.name}_${r}`,t.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:this.summaryResolver.toSummaryFileName(n.filePath,this.srcFileName),importAs:i}})}),exportAs:t}}processValue(e,t){return Kt(e,this,t)}visitOther(e,t){if(e instanceof Dn){let n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}}visitStringMap(e,t){return"resolved"===e.__symbolic?Kt(e.symbol,this,t):("error"===e.__symbolic&&(delete e.line,delete e.character),super.visitStringMap(e,t))}visitStaticSymbol(e,t){let n=this.indexBySymbol.get(e),r=null;if(1&t&&this.summaryResolver.isLibraryFile(e.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(e))return n;(r=this.loadSummary(e))&&r.metadata instanceof Dn&&(n=this.visitStaticSymbol(r.metadata,t),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(e)),this.indexBySymbol.set(e,n),r&&this.addSummary(r),n}loadSummary(e){let t=this.summaryResolver.resolveSummary(e);if(!t){const n=this.symbolResolver.resolveSymbol(e);n&&(t={symbol:n.symbol,metadata:n.metadata})}return t}}class ug{constructor(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}addSourceType(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})}addLibType(e){this.data.push({summary:e,metadata:null,isLibrary:!0})}serialize(e){const t=new Map;for(const{symbol:n,exportAs:r}of e)t.set(n,r);const n=new Set;for(const{summary:e,metadata:t,isLibrary:r}of this.data){if(e.summaryKind===Un.NgModule){n.add(e.type.reference);const t=e;for(const e of t.modules)n.add(e.reference)}if(!r){J_(e.type.reference.name);ag(this.outputCtx,e.type.reference,this.serializeSummaryWithDeps(e,t))}}n.forEach(e=>{if(this.summaryResolver.isLibraryFile(e.filePath)){const n=J_(t.get(e)||e.name);this.outputCtx.statements.push(Pt(n).set(this.serializeSummaryRef(e)).toDeclStmt(null,[st.Exported]))}})}serializeSummaryWithDeps(e,t){const n=[this.serializeSummary(e)];let r=[];if(t instanceof Yn)n.push(...t.declaredDirectives.concat(t.declaredPipes).map(e=>e.reference).concat(t.transitiveModule.modules.map(e=>e.reference).filter(e=>e!==t.type.reference)).map(e=>this.serializeSummaryRef(e))),r=t.providers;else if(e.summaryKind===Un.Directive){const t=e;r=t.providers.concat(t.viewProviders)}return n.push(...r.filter(e=>!!e.useClass).map(e=>this.serializeSummary({summaryKind:Un.Injectable,type:e.useClass}))),Ft(n)}serializeSummaryRef(e){const t=this.symbolResolver.getStaticSymbol(Z_(e.filePath),J_(e.name));return this.outputCtx.importExpr(t)}serializeSummary(e){const t=this.outputCtx;return Kt(e,new class{visitArray(e,t){return Ft(e.map(e=>Kt(e,this,t)))}visitStringMap(e,t){return new tt(Object.keys(e).map(n=>new et(n,Kt(e[n],this,t),!1)))}visitPrimitive(e,t){return Gt(e)}visitOther(e,n){if(e instanceof Dn)return t.importExpr(e);throw new Error(`Illegal State: Encountered value ${e}`)}},null)}}class lg extends Qt{constructor(e,t){super(),this.symbolCache=e,this.summaryResolver=t}deserialize(e,t){const n=JSON.parse(t),r=[];this.symbols=n.symbols.map(t=>this.symbolCache.get(this.summaryResolver.fromSummaryFileName(t.filePath,e),t.name)),n.symbols.forEach((t,n)=>{const i=this.symbols[n],s=t.importAs;"number"==typeof s?r.push({symbol:i,importAs:this.symbols[s]}):"string"==typeof s&&r.push({symbol:i,importAs:this.symbolCache.get(W_(e),s)})});const i=Kt(n.summaries,this,null);return{moduleName:n.moduleName,summaries:i,importAs:r}}visitStringMap(e,t){if("__symbol"in e){const t=this.symbols[e.__symbol],n=e.members;return n.length?this.symbolCache.get(t.filePath,t.name,n):t}return super.visitStringMap(e,t)}}function hg(e){return e&&"call"===e.__symbolic}class dg{constructor(e,t,n,r,i,s,o,a,c,u,l,h,d,p){this._config=e,this._options=t,this._host=n,this.reflector=r,this._metadataResolver=i,this._templateParser=s,this._styleCompiler=o,this._viewCompiler=a,this._typeCheckCompiler=c,this._ngModuleCompiler=u,this._injectableCompiler=l,this._outputEmitter=h,this._summaryResolver=d,this._symbolResolver=p,this._templateAstCache=new Map,this._analyzedFiles=new Map,this._analyzedFilesForInjectables=new Map}clearCache(){this._metadataResolver.clearCache()}analyzeModulesSync(e){const t=gg(e,this._host,this._symbolResolver,this._metadataResolver);return t.ngModules.forEach(e=>this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)),t}analyzeModulesAsync(e){const t=gg(e,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(t.ngModules.map(e=>this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))).then(()=>t)}_analyzeFile(e){let t=this._analyzedFiles.get(e);return t||(t=yg(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFiles.set(e,t)),t}_analyzeFileForInjectables(e){let t=this._analyzedFilesForInjectables.get(e);return t||(t=vg(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFilesForInjectables.set(e,t)),t}findGeneratedFileNames(e){const t=[],n=this._analyzeFile(e);(this._options.allowEmptyCodegenFiles||n.directives.length||n.pipes.length||n.injectables.length||n.ngModules.length||n.exportsNonSourceFiles)&&(t.push(W_(n.fileName,!0)),this._options.enableSummariesForJit&&t.push(Z_(n.fileName,!0)));const r=X_(Y_(n.fileName,!0)[1]);return n.directives.forEach(e=>{const i=this._metadataResolver.getNonNormalizedDirectiveMetadata(e).metadata;i.isComponent&&i.template.styleUrls.forEach(e=>{const s=this._host.resourceNameToFileName(e,n.fileName);if(!s)throw en(`Couldn't resolve resource ${e} relative to ${n.fileName}`);const o=(i.template.encapsulation||this._config.defaultEncapsulation)===A.Emulated;t.push(_g(s,o,r)),this._options.allowEmptyCodegenFiles&&t.push(_g(s,!o,r))})}),t}emitBasicStub(e,t){const n=this._createOutputContext(e);if(e.endsWith(".ngfactory.ts")){if(!t)throw new Error(`Assertion error: require the original file for .ngfactory.ts stubs. File: ${e}`);const r=this._analyzeFile(t);this._createNgFactoryStub(n,r,1)}else if(e.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!t)throw new Error(`Assertion error: require the original file for .ngsummary.ts stubs. File: ${e}`);const r=this._analyzeFile(t);pg(n),r.ngModules.forEach(e=>{!function(e,t){ag(e,t,rt)}(n,e.type.reference)})}}else e.endsWith(".ngstyle.ts")&&pg(n);return this._codegenSourceModule("unknown",n)}emitTypeCheckStub(e,t){const n=this._analyzeFile(t),r=this._createOutputContext(e);return e.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,2),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null}loadFilesAsync(e,t){const n=e.map(e=>this._analyzeFile(e)),r=[];n.forEach(e=>e.ngModules.forEach(e=>r.push(this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))));const i=t.map(e=>this._analyzeFileForInjectables(e));return Promise.all(r).then(e=>({analyzedModules:Eg(n),analyzedInjectables:i}))}loadFilesSync(e,t){const n=e.map(e=>this._analyzeFile(e));n.forEach(e=>e.ngModules.forEach(e=>this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)));const r=t.map(e=>this._analyzeFileForInjectables(e));return{analyzedModules:Eg(n),analyzedInjectables:r}}_createNgFactoryStub(e,t,n){let r=0;t.ngModules.forEach((t,i)=>{this._ngModuleCompiler.createStub(e,t.type.reference);const s=[...t.transitiveModule.directives.map(e=>e.reference),...t.transitiveModule.pipes.map(e=>e.reference),...t.importedModules.map(e=>e.type.reference),...t.exportedModules.map(e=>e.type.reference),...this._externalIdentifierReferences([xn.TemplateRef,xn.ElementRef])],o=new Map;s.forEach((e,t)=>{o.set(e,`_decl${i}_${t}`)}),o.forEach((t,n)=>{e.statements.push(Pt(t).set(rt.cast(se)).toDeclStmt(Nt(e.importExpr(n,null,!1))))}),2&n&&t.declaredDirectives.forEach(n=>{const i=this._metadataResolver.getDirectiveMetadata(n.reference);i.isComponent&&(r++,this._createTypeCheckBlock(e,`${i.type.reference.name}_Host_${r}`,t,this._metadataResolver.getHostComponentMetadata(i),[i.type],o),this._createTypeCheckBlock(e,`${i.type.reference.name}_${r}`,t,i,t.transitiveModule.directives,o))})}),0===e.statements.length&&pg(e)}_externalIdentifierReferences(e){const t=[];for(let n of e){const e=An(this.reflector,n);e.identifier&&t.push(e.identifier.reference)}return t}_createTypeCheckBlock(e,t,n,r,i,s){const{template:o,pipes:a}=this._parseTemplate(r,n,i);e.statements.push(...this._typeCheckCompiler.compileComponent(t,r,o,a,s,e))}emitMessageBundle(e,t){const n=[],r=new Vu,i=new Km(r,[],{},t);if(e.files.forEach(e=>{const t=[];e.directives.forEach(e=>{const n=this._metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&t.push(n)}),t.forEach(e=>{const t=e.template.template,r=e.template.templateUrl,s=Gs.fromArray(e.template.interpolation);n.push(...i.updateFromTemplate(t,r,s))})}),n.length)throw new Error(n.map(e=>e.toString()).join("\n"));return i}emitAllPartialModules({ngModuleByPipeOrDirective:e,files:t},n){const r=new Map,i=e=>(r.has(e)||r.set(e,this._createOutputContext(e)),r.get(e));return t.forEach(t=>this._compilePartialModule(t.fileName,e,t.directives,t.pipes,t.ngModules,t.injectables,i(t.fileName))),n.forEach(e=>this._compileShallowModules(e.fileName,e.shallowModules,i(e.fileName))),Array.from(r.values()).map(e=>({fileName:e.genFilePath,statements:[...e.constantPool.statements,...e.statements]}))}_compileShallowModules(e,t,n){t.forEach(e=>(function(e,t,n){const r=Nn(t.type),i=t.rawImports?[t.rawImports]:[],s=t.rawExports?[t.rawExports]:[],o=ba({factory:n.factoryFor({type:t.type,symbol:t.type.reference},e),providers:Cr(t.rawProviders,e),imports:Cr([...i,...s],e)}),a=Mt(or.defineInjector).callFn([o]);e.statements.push(new gt(r,null,[new ft("ɵinj",oe,[st.Static],a)],[],new _t(null,[],[]),[]))})(n,e,this._injectableCompiler))}_compilePartialModule(e,t,n,r,i,s,o){const a=new fd,c=new Ll(this._templateParser.expressionParser,qs,a,[],[]);n.forEach(e=>{const n=this._metadataResolver.getDirectiveMetadata(e);if(n.isComponent){const r=t.get(e);r||Jt(`Cannot determine the module for component '${Nn(n.type)}'`);let i=n.template.htmlAst;n.template.preserveWhitespaces||(i=Wu(i));const s=xd(i.rootNodes,c),a=new Map;r.transitiveModule.directives.map(e=>this._metadataResolver.getDirectiveSummary(e.reference)).forEach(e=>{e.selector&&a.set(e.selector,e.type.reference)});const u=new Map;r.transitiveModule.pipes.map(e=>this._metadataResolver.getPipeSummary(e.reference)).forEach(e=>{u.set(e.name,e.type.reference)}),function(e,t,n,r,i,s,o){const a=Nn(t.type);a||Jt(`Cannot resolver the name of ${t.type}`);const c=e.constantPool.propertyNameOf(2),u=t.toSummary(),l=Object.assign(Object.assign({},Up()),{selector:t.selector,template:{nodes:n.nodes,ngContentSelectors:n.ngContentSelectors},directives:[],pipes:Zp(o,e),viewQueries:Gp(t.viewQueries,e),declarationListEmitMode:0,styles:u.template&&u.template.styles||Mp,encapsulation:u.template&&u.template.encapsulation||A.Emulated,interpolation:qs,animations:null,viewProviders:t.viewProviders.length>0?new we(t.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),h=jp(l,e.constantPool,i),d=Ms(Object.assign(Object.assign({},l),{injectFn:or.directiveInject,target:ks.Directive})),p=new gt(a,null,[new ft("ɵfac",oe,[st.Static],d.factory)],[],new _t(null,[],[]),[]),f=new gt(a,null,[new ft(c,oe,[st.Static],h.expression)],[],new _t(null,[],[]),[]);e.statements.push(p,f)}(o,n,s,this.reflector,c,0,u)}else!function(e,t,n,r){const i=Nn(t.type);i||Jt(`Cannot resolver the name of ${t.type}`);const s=e.constantPool.propertyNameOf(1),o=Up(),a=Fp(o,e.constantPool,r),c=Ms(Object.assign(Object.assign({},o),{injectFn:or.directiveInject,target:ks.Directive})),u=new gt(i,null,[new ft("ɵfac",oe,[st.Static],c.factory)],[],new _t(null,[],[]),[]),l=new gt(i,null,[new ft(s,oe,[st.Static],a.expression)],[],new _t(null,[],[]),[]);e.statements.push(u,l)}(o,n,this.reflector,c)}),r.forEach(e=>{const t=this._metadataResolver.getPipeMetadata(e);t&&function(e,t,n){const r=Nn(t.type);if(!r)return Jt(`Cannot resolve the name of ${t.type}`);const i=e.importExpr(t.type.reference),s={name:r,type:Pr(i),internalType:i,pipeName:t.name,typeArgumentCount:0,deps:Ns(t.type,e,n),pure:t.pure},o=Sa(s),a=Ms(Object.assign(Object.assign({},s),{injectFn:or.directiveInject,target:ks.Pipe})),c=e.constantPool.propertyNameOf(3),u=new gt(r,null,[new ft("ɵfac",oe,[st.Static],a.factory)],[],new _t(null,[],[]),[]),l=new gt(r,null,[new ft(c,oe,[st.Static],o.expression)],[],new _t(null,[],[]),[]);e.statements.push(u,l)}(o,t,this.reflector)}),s.forEach(e=>this._injectableCompiler.compile(e,o))}emitAllPartialModules2(e){return e.reduce((e,t)=>(e.push(...this._emitPartialModule2(t.fileName,t.injectables)),e),[])}_emitPartialModule2(e,t){const n=this._createOutputContext(e);return t.forEach(e=>this._injectableCompiler.compile(e,n)),n.statements&&n.statements.length>0?[{fileName:e,statements:[...n.constantPool.statements,...n.statements]}]:[]}emitAllImpls(e){const{ngModuleByPipeOrDirective:t,files:n}=e;return Jn(n.map(e=>this._compileImplFile(e.fileName,t,e.directives,e.pipes,e.ngModules,e.injectables)))}_compileImplFile(e,t,n,r,i,s){const o=X_(Y_(e,!0)[1]),a=[],c=this._createOutputContext(W_(e,!0));if(a.push(...this._createSummary(e,n,r,i,s,c)),i.forEach(e=>this._compileModule(c,e)),n.forEach(n=>{const r=this._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return;const i=t.get(n);if(!i)throw new Error(`Internal Error: cannot determine the module for component ${Nn(r.type)}!`);const s=this._styleCompiler.compileComponent(c,r);r.template.externalStylesheets.forEach(t=>{const n=this._styleCompiler.needsStyleShim(r);a.push(this._codegenStyles(e,r,t,n,o)),this._options.allowEmptyCodegenFiles&&a.push(this._codegenStyles(e,r,t,!n,o))});this._compileComponent(c,r,i,i.transitiveModule.directives,s,o);this._compileComponentFactory(c,r,i,o)}),c.statements.length>0||this._options.allowEmptyCodegenFiles){const t=this._codegenSourceModule(e,c);a.unshift(t)}return a}_createSummary(e,t,n,r,i,s){const o=this._symbolResolver.getSymbolsOf(e).map(e=>this._symbolResolver.resolveSymbol(e)),a=[...r.map(e=>({summary:this._metadataResolver.getNgModuleSummary(e.type.reference),metadata:this._metadataResolver.getNgModuleMetadata(e.type.reference)})),...t.map(e=>({summary:this._metadataResolver.getDirectiveSummary(e),metadata:this._metadataResolver.getDirectiveMetadata(e)})),...n.map(e=>({summary:this._metadataResolver.getPipeSummary(e),metadata:this._metadataResolver.getPipeMetadata(e)})),...i.map(e=>({summary:this._metadataResolver.getInjectableSummary(e.symbol),metadata:this._metadataResolver.getInjectableSummary(e.symbol).type}))],c=this._options.enableSummariesForJit?this._createOutputContext(Z_(e,!0)):null,{json:u,exportAs:l}=function(e,t,n,r,i,s,o=!1){const a=new cg(r,n,e);i.forEach(e=>a.addSummary({symbol:e.symbol,metadata:e.metadata})),s.forEach(({summary:e,metadata:t})=>{a.addSummary({symbol:e.type.reference,metadata:void 0,type:e})});const{json:c,exportAs:u}=a.serialize(o);if(t){const e=new ug(t,r,n);s.forEach(({summary:t,metadata:n})=>{e.addSourceType(t,n)}),a.unprocessedSymbolSummariesBySymbol.forEach(t=>{n.isLibraryFile(t.symbol.filePath)&&t.type&&e.addLibType(t.type)}),e.serialize(u)}return{json:c,exportAs:u}}(e,c,this._summaryResolver,this._symbolResolver,o,a,this._options.createExternalSymbolFactoryReexports);l.forEach(e=>{s.statements.push(Pt(e.exportAs).set(s.importExpr(e.symbol)).toDeclStmt(null,[st.Exported]))});const h=[new Xm(e,Q_(e),u)];return c&&h.push(this._codegenSourceModule(e,c)),h}_compileModule(e,t){const n=[];if(this._options.locale){const e=this._options.locale.replace(/_/g,"-");n.push({token:An(this.reflector,xn.LOCALE_ID),useValue:e})}this._options.i18nFormat&&n.push({token:An(this.reflector,xn.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(e,t,n)}_compileComponentFactory(e,t,n,r){const i=this._metadataResolver.getHostComponentMetadata(t),s=this._compileComponent(e,i,n,[t.type],null,r).viewClassVar,o=Bn(t.type.reference),a=[];for(let e in t.inputs){const n=t.inputs[e];a.push(new et(e,Gt(n),!1))}const c=[];for(let e in t.outputs){const n=t.outputs[e];c.push(new et(e,Gt(n),!1))}e.statements.push(Pt(o).set(Mt(xn.createComponentFactory).callFn([Gt(t.selector),e.importExpr(t.type.reference),Pt(s),new tt(a),new tt(c),Ft(t.template.ngContentSelectors.map(e=>Gt(e)))])).toDeclStmt(Rt(xn.ComponentFactory,[Nt(e.importExpr(t.type.reference))],[Q.Const]),[st.Final,st.Exported]))}_compileComponent(e,t,n,r,i,s){const{template:o,pipes:a}=this._parseTemplate(t,n,r),c=i?Pt(i.stylesVar):Ft([]),u=this._viewCompiler.compileComponent(e,t,o,c,a);return i&&fg(this._symbolResolver,i,this._styleCompiler.needsStyleShim(t),s),u}_parseTemplate(e,t,n){if(this._templateAstCache.has(e.type.reference))return this._templateAstCache.get(e.type.reference);const r=e.template.preserveWhitespaces,i=n.map(e=>this._metadataResolver.getDirectiveSummary(e.reference)),s=t.transitiveModule.pipes.map(e=>this._metadataResolver.getPipeSummary(e.reference)),o=this._templateParser.parse(e,e.template.htmlAst,i,s,t.schemas,tr(t.type,e,e.template),r);return this._templateAstCache.set(e.type.reference,o),o}_createOutputContext(e){return{statements:[],genFilePath:e,importExpr:(t,n=null,r=!0)=>{if(!(t instanceof Dn))throw new Error(`Internal error: unknown identifier ${JSON.stringify(t)}`);const i=this._symbolResolver.getTypeArity(t)||0,{filePath:s,name:o,members:a}=this._symbolResolver.getImportAs(t,r)||t,c=this._fileNameToModuleName(s,e),u=c===this._fileNameToModuleName(e,e)?null:c,l=n||[],h=i-l.length,d=l.concat(_n(h,se));return a.reduce((e,t)=>e.prop(t),Mt(new Ge(u,o,null),d))},constantPool:new wn}}_fileNameToModuleName(e,t){return this._summaryResolver.getKnownModuleName(e)||this._symbolResolver.getKnownModuleName(e)||this._host.fileNameToModuleName(e,t)}_codegenStyles(e,t,n,r,i){const s=this._createOutputContext(_g(n.moduleUrl,r,i)),o=this._styleCompiler.compileStyles(s,t,n,r);return fg(this._symbolResolver,o,r,i),this._codegenSourceModule(e,s)}_codegenSourceModule(e,t){return new Xm(e,t.genFilePath,t.statements)}listLazyRoutes(e,t){const n=this;if(e){return function e(t,r=new Set,i=[]){if(r.has(t)||!t.name)return i;r.add(t);const s=Zm(n._metadataResolver.getNgModuleMetadata(t,!0),n.reflector);for(const t of s)i.push(t),e(t.referencedModule,r,i);return i}(eg(e,this.reflector).referencedModule)}if(t){const e=[];for(const n of t.ngModules){const t=Zm(n,this.reflector);for(const n of t)e.push(n)}return e}throw new Error("Either route or analyzedModules has to be specified!")}}function pg(e){e.statements.push(Mt(xn.ComponentFactory).toStmt())}function fg(e,t,n,r){t.dependencies.forEach(t=>{t.setValue(e.getStaticSymbol(_g(t.moduleUrl,n,r),t.name))})}function _g(e,t,n){return`${e}${t?".shim":""}.ngstyle${n}`}function mg(e,t,n,r){return wg(function(e,t,n,r){const i=new Set,s=[],o=e=>{if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);const a=yg(t,n,r,e);s.push(a),a.ngModules.forEach(e=>{e.transitiveModule.modules.forEach(e=>o(e.reference.filePath))})};return e.forEach(e=>o(e)),s}(e,t,n,r))}function gg(e,t,n,r){return bg(mg(e,t,n,r))}function bg(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length){throw en(e.symbolsMissingModule.map(e=>`Cannot determine the module for class ${e.name} in ${e.filePath}! Add ${e.name} to the NgModule to fix it.`).join("\n"))}return e}function yg(e,t,n,r){const i=[],s=[],o=[],a=[],c=[],u=t.hasDecorators(r);let l=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(r=>{const u=t.resolveSymbol(r).metadata;if(!u||"error"===u.__symbolic)return;let h=!1;if("class"===u.__symbolic)if(n.isDirective(r))h=!0,n.isAbstractDirective(r)?i.push(r):s.push(r);else if(n.isPipe(r))h=!0,o.push(r);else if(n.isNgModule(r)){const e=n.getNgModuleMetadata(r,!1);e&&(h=!0,c.push(e))}else if(n.isInjectable(r)){h=!0;const e=n.getInjectableMetadata(r,null,!1);e&&a.push(e)}h||(l=l||function(e,t){let n=!1;return Kt(t,new class{visitArray(e,t){e.forEach(e=>Kt(e,this,t))}visitStringMap(e,t){Object.keys(e).forEach(n=>Kt(e[n],this,t))}visitPrimitive(e,t){}visitOther(t,r){t instanceof Dn&&!e.isSourceFile(t.filePath)&&(n=!0)}},null),n}(e,u))}),{fileName:r,directives:s,abstractDirectives:i,pipes:o,ngModules:c,injectables:a,exportsNonSourceFiles:l}}function vg(e,t,n,r){const i=[],s=[];return t.hasDecorators(r)&&t.getSymbolsOf(r).forEach(e=>{const r=t.resolveSymbol(e).metadata;if(r&&"error"!==r.__symbolic&&"class"===r.__symbolic)if(n.isInjectable(e)){const t=n.getInjectableMetadata(e,null,!1);t&&i.push(t)}else if(n.isNgModule(e)){const t=n.getShallowModuleMetadata(e);t&&s.push(t)}}),{fileName:r,injectables:i,shallowModules:s}}function wg(e){const t=[],n=new Map,r=new Set;e.forEach(e=>{e.ngModules.forEach(e=>{t.push(e),e.declaredDirectives.forEach(t=>n.set(t.reference,e)),e.declaredPipes.forEach(t=>n.set(t.reference,e))}),e.directives.forEach(e=>r.add(e)),e.pipes.forEach(e=>r.add(e))});const i=[];return r.forEach(e=>{n.has(e)||i.push(e)}),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}function Eg(e){return bg(wg(e))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Sg="ngFormattedMessage";function Cg(e,t=0){if(!e)return"";const n=e.position?`${e.position.fileName}(${e.position.line+1},${e.position.column+1})`:"",r=n&&0!==t?` at ${n}`:"";let i=`${n&&0===t?`${n}: `:""}${e.message}${r}`;if(e.next)for(const n of e.next)i+="\n"+Cg(n,t+2);return`${function e(t){if(t<=0)return"";if(t<6)return[""," "," "," "," "," "][t];const n=e(Math.floor(t/2));return n+n+(t%2==1?" ":"")}(t)}${i}`}function Og(e){const t=en(Cg(e)+".");return t[Sg]=!0,t.chain=e,t.position=e.position,t}function Ig(e){return!!e[Sg]} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const xg="@angular/core",Tg="@angular/router",Ag=/^\$.*\$$/,Dg={__symbolic:"ignore"},kg="useValue",Pg="provide",Mg=new Set([kg,"useFactory","data","id","loadChildren"]),Rg="TypeGuard",Ng="UseIf";function Lg(e){return e&&"ignore"==e.__symbolic}class Fg{constructor(e,t,n=[],r=[],i){this.summaryResolver=e,this.symbolResolver=t,this.errorRecorder=i,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(e=>this._registerDecoratorOrConstructor(this.getStaticSymbol(e.filePath,e.name),e.ctor)),r.forEach(e=>this._registerFunction(this.getStaticSymbol(e.filePath,e.name),e.fn)),this.annotationForParentClassWithSummaryKind.set(Un.Directive,[T,k]),this.annotationForParentClassWithSummaryKind.set(Un.Pipe,[P]),this.annotationForParentClassWithSummaryKind.set(Un.NgModule,[F]),this.annotationForParentClassWithSummaryKind.set(Un.Injectable,[j,P,T,k,F])}componentModuleUrl(e){const t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)}invalidateSymbols(e){for(const t of e)this.annotationCache.delete(t),this.shallowAnnotationCache.delete(t),this.propertyCache.delete(t),this.parameterCache.delete(t),this.methodCache.delete(t),this.staticCache.delete(t),this.conversionMap.delete(t)}resolveExternalReference(e,t){let n=void 0;if(!t){n=`${e.moduleName}:${e.name}`;const t=this.resolvedExternalReferences.get(n);if(t)return t}const r=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),i=this.findSymbolDeclaration(r);return t||(this.symbolResolver.recordModuleNameForFileName(r.filePath,e.moduleName),this.symbolResolver.recordImportAs(i,r)),n&&this.resolvedExternalReferences.set(n,i),i}findDeclaration(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))}tryFindDeclaration(e,t,n){return this.symbolResolver.ignoreErrorsFor(()=>this.findDeclaration(e,t,n))}findSymbolDeclaration(e){const t=this.symbolResolver.resolveSymbol(e);if(t){let e=t.metadata;if(e&&"resolved"===e.__symbolic&&(e=e.symbol),e instanceof Dn)return this.findSymbolDeclaration(t.metadata)}return e}tryAnnotations(e){const t=this.errorRecorder;this.errorRecorder=((e,t)=>{});try{return this.annotations(e)}finally{this.errorRecorder=t}}annotations(e){return this._annotations(e,(e,t)=>this.simplify(e,t),this.annotationCache)}shallowAnnotations(e){return this._annotations(e,(e,t)=>this.simplify(e,t,!0),this.shallowAnnotationCache)}_annotations(e,t,n){let r=n.get(e);if(!r){r=[];const i=this.getTypeMetadata(e),s=this.findParentType(e,i);if(s){const e=this.annotations(s);r.push(...e)}let o=[];if(i.decorators&&(o=t(e,i.decorators))&&r.push(...o),s&&!this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){const t=this.summaryResolver.resolveSummary(s);if(t&&t.type){const n=this.annotationForParentClassWithSummaryKind.get(t.type.summaryKind);n.some(e=>o.some(t=>e.isTypeOf(t)))||this.reportError(Zg(Vg(`Class ${e.name} in ${e.filePath} extends from a ${Un[t.type.summaryKind]} in another compilation unit without duplicating the decorator`,void 0,`Please add a ${n.map(e=>e.ngMetadataName).join(" or ")} decorator to the class`),e),e)}}n.set(e,r.filter(e=>!!e))}return r}propMetadata(e){let t=this.propertyCache.get(e);if(!t){const n=this.getTypeMetadata(e);t={};const r=this.findParentType(e,n);if(r){const e=this.propMetadata(r);Object.keys(e).forEach(n=>{t[n]=e[n]})}const i=n.members||{};Object.keys(i).forEach(n=>{const r=i[n].find(e=>"property"==e.__symbolic||"method"==e.__symbolic),s=[];(null==t?void 0:t.hasOwnProperty(n))&&s.push(...t[n]),t[n]=s,r&&r.decorators&&s.push(...this.simplify(e,r.decorators))}),this.propertyCache.set(e,t)}return t}parameters(e){if(!(e instanceof Dn))return this.reportError(new Error(`parameters received ${JSON.stringify(e)} which is not a StaticSymbol`),e),[];try{let t=this.parameterCache.get(e);if(!t){const n=this.getTypeMetadata(e),r=this.findParentType(e,n),i=n?n.members:null,s=i?i.__ctor__:null;if(s){const n=s.find(e=>"constructor"==e.__symbolic),r=n.parameters||[],i=this.simplify(e,n.parameterDecorators||[]);t=[],r.forEach((n,r)=>{const s=[],o=this.trySimplify(e,n);o&&s.push(o);const a=i?i[r]:null;a&&s.push(...a),t.push(s)})}else r&&(t=this.parameters(r));t||(t=[]),this.parameterCache.set(e,t)}return t}catch(t){throw console.error(`Failed on type ${JSON.stringify(e)} with error ${t}`),t}}_methodNames(e){let t=this.methodCache.get(e);if(!t){const n=this.getTypeMetadata(e);t={};const r=this.findParentType(e,n);if(r){const e=this._methodNames(r);Object.keys(e).forEach(n=>{t[n]=e[n]})}const i=n.members||{};Object.keys(i).forEach(e=>{const n=i[e].some(e=>"method"==e.__symbolic);t[e]=t[e]||n}),this.methodCache.set(e,t)}return t}_staticMembers(e){let t=this.staticCache.get(e);if(!t){const n=this.getTypeMetadata(e).statics||{};t=Object.keys(n),this.staticCache.set(e,t)}return t}findParentType(e,t){const n=this.trySimplify(e,t.extends);if(n instanceof Dn)return n}hasLifecycleHook(e,t){e instanceof Dn||this.reportError(new Error(`hasLifecycleHook received ${JSON.stringify(e)} which is not a StaticSymbol`),e);try{return!!this._methodNames(e)[t]}catch(t){throw console.error(`Failed on type ${JSON.stringify(e)} with error ${t}`),t}}guards(e){if(!(e instanceof Dn))return this.reportError(new Error(`guards received ${JSON.stringify(e)} which is not a StaticSymbol`),e),{};const t=this._staticMembers(e),n={};for(let r of t)if(r.endsWith(Rg)){let t,i=r.substr(0,r.length-Rg.length);i.endsWith(Ng)?(i=r.substr(0,i.length-Ng.length),t=Ng):t=this.getStaticSymbol(e.filePath,e.name,[r]),n[i]=t}return n}_registerDecoratorOrConstructor(e,t){this.conversionMap.set(e,(e,n)=>new t(...n))}_registerFunction(e,t){this.conversionMap.set(e,(e,n)=>t.apply(void 0,n))}initializeConversionMap(){this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Injectable"),j),this.injectionToken=this.findDeclaration(xg,"InjectionToken"),this.opaqueToken=this.findDeclaration(xg,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration(Tg,"ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(xg,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Host"),$),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Self"),G),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"SkipSelf"),q),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Inject"),w),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Optional"),U),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Attribute"),S),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"ContentChild"),O),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"ContentChildren"),C),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"ViewChild"),x),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"ViewChildren"),I),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Input"),M),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Output"),R),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Pipe"),P),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"HostBinding"),N),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"HostListener"),L),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Directive"),T),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Component"),k),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"NgModule"),F),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Host"),$),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Self"),G),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"SkipSelf"),q),this._registerDecoratorOrConstructor(this.findDeclaration(xg,"Optional"),U)}getStaticSymbol(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)}trySimplify(e,t){const n=this.errorRecorder;this.errorRecorder=((e,t)=>{});const r=this.simplify(e,t);return this.errorRecorder=n,r}simplify(e,t,n=!1){const r=this;let i=Yg.empty;const s=new Map;let o;try{o=function e(t,n,o,a){function c(e){const t=r.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function u(n){return e(t,n,o,0)}function l(n,i){if(n===t)return e(n,i,o+1,a);try{return e(n,i,o+1,a)}catch(e){if(!Bg(e))throw e;{const i=e.chain?"references '"+e.symbol.name+"'":function(e){if(e.summary)return e.summary;switch(e.message){case Ug:if(e.context&&e.context.className)return`references non-exported class ${e.context.className}`;break;case Gg:return"is not initialized";case qg:return"is a destructured variable";case $g:return"could not be resolved";case Hg:return e.context&&e.context.name?`calls '${e.context.name}'`:"calls a function";case zg:return e.context&&e.context.name?`references local variable ${e.context.name}`:"references a local variable"}return"contains the error"}(e),s={message:`'${n.name}' ${i}`,position:e.position,next:e.chain};r.error({message:e.message,advise:e.advise,context:e.context,chain:s,symbol:n},t)}}}function h(n){if(Kg(n))return n;if(Array.isArray(n)){const e=[];for(const t of n){if(t&&"spread"===t.__symbolic){const n=u(t.expression);if(Array.isArray(n)){for(const t of n)e.push(t);continue}}const n=h(t);Lg(n)||e.push(n)}return e}if(n instanceof Dn){if(n===r.injectionToken||r.conversionMap.has(n)||a>0&&!n.members.length)return n;{const e=n,t=c(e);return null!=t?l(e,t):e}}if(n){if(n.__symbolic){let a;switch(n.__symbolic){case"binop":let d=h(n.left);if(Lg(d))return d;let p=h(n.right);if(Lg(p))return p;switch(n.operator){case"&&":return d&&p;case"||":return d||p;case"|":return d|p;case"^":return d^p;case"&":return d&p;case"==":return d==p;case"!=":return d!=p;case"===":return d===p;case"!==":return d!==p;case"<":return d":return d>p;case"<=":return d<=p;case">=":return d>=p;case"<<":return d<>":return d>>p;case"+":return d+p;case"-":return d-p;case"*":return d*p;case"/":return d/p;case"%":return d%p}return null;case"if":let f=h(n.condition);return h(f?n.thenExpression:n.elseExpression);case"pre":let _=h(n.operand);if(Lg(_))return _;switch(n.operator){case"+":return _;case"-":return-_;case"!":return!_;case"~":return~_}return null;case"index":let m=u(n.expression),g=u(n.index);return m&&Kg(g)?m[g]:null;case"select":const b=n.member;let y=t,v=h(n.expression);if(v instanceof Dn){const e=v.members.concat(b),t=c(y=r.getStaticSymbol(v.filePath,v.name,e));return null!=t?l(y,t):y}return v&&Kg(b)?l(y,v[b]):null;case"reference":const w=n.name,E=i.resolve(w);if(E!=Yg.missing)return E;break;case"resolved":try{return h(n.symbol)}catch(e){throw Bg(e)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(e.position={fileName:n.fileName,line:n.line,column:n.character}),e}case"class":case"function":return t;case"new":case"call":if((a=e(t,n.expression,o+1,0))instanceof Dn){if(a===r.injectionToken||a===r.opaqueToken)return t;const e=n.arguments||[];let u=r.conversionMap.get(a);if(u){const n=e.map(e=>l(t,e)).map(e=>Lg(e)?void 0:e);return u(t,n)}return function(e,n,a,c){if(n&&"function"==n.__symbolic){s.get(e)&&r.error({message:"Recursion is not supported",summary:`called '${e.name}' recursively`,value:n},e);try{const r=n.value;if(r&&(0!=o||"error"!=r.__symbolic)){const o=n.parameters,c=n.defaults;a=a.map(e=>l(t,e)).map(e=>Lg(e)?void 0:e),c&&c.length>a.length&&a.push(...c.slice(a.length).map(e=>h(e))),s.set(e,!0);const u=Yg.build();for(let e=0;e{const i=t(e[r],r);Lg(i)||(Ag.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(n,(i,s)=>{if(Mg.has(s)){if(s===kg&&Pg in n){const e=h(n.provide);if(e===r.ROUTES||e==r.ANALYZE_FOR_ENTRY_COMPONENTS)return h(i)}return function(n){return e(t,n,o,a+1)}(i)}return h(i)})}return Dg}return h(n)}(e,t,0,n?1:0)}catch(t){if(!this.errorRecorder)throw Zg(t,e);this.reportError(t,e)}if(!Lg(o))return o}getTypeMetadata(e){const t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}}reportError(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(Zg(e,t),t&&t.filePath||n)}error({message:e,summary:t,advise:n,position:r,context:i,value:s,symbol:o,chain:a},c){this.reportError(Vg(e,t,n,r,o,i,a),c)}}const jg="ngMetadataError";function Vg(e,t,n,r,i,s,o){const a=en(e);return a[jg]=!0,n&&(a.advise=n),r&&(a.position=r),t&&(a.summary=t),s&&(a.context=s),o&&(a.chain=o),i&&(a.symbol=i),a}function Bg(e){return!!e[jg]}const Ug="Reference to non-exported class",Gg="Variable not initialized",qg="Destructuring not supported",$g="Could not resolve type",Hg="Function call not supported",zg="Reference to a local symbol",Wg="Lambda not supported";function Kg(e){return null===e||"function"!=typeof e&&"object"!=typeof e}class Yg{static build(){const e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Xg(e):Yg.empty}}}}Yg.missing={},Yg.empty={resolve:e=>Yg.missing};class Xg extends Yg{constructor(e){super(),this.bindings=e}resolve(e){return this.bindings.has(e)?this.bindings.get(e):Yg.missing}}function Qg(e,t){const n=`${function(e,t){switch(e){case Ug:if(t&&t.className)return`References to a non-exported class are not supported in decorators but ${t.className} was referenced.`;break;case Gg:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case qg:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case $g:if(t&&t.typeName)return`Could not resolve type ${t.typeName}`;break;case Hg:return t&&t.name?`Function calls are not supported in decorators but '${t.name}' was called`:"Function calls are not supported in decorators";case zg:if(t&&t.name)return`Reference to a local (non-exported) symbols are not supported in decorators but '${t.name}' was referenced`;break;case Wg:return"Function expressions are not supported in decorators"}return e}(e.message,e.context)}${e.symbol?` in '${e.symbol.name}'`:""}`,r=e.position,i=e.next?Qg(e.next,t):t?{message:t}:void 0;return{message:n,position:r,next:i?[i]:void 0}}function Zg(e,t){if(Bg(e)){const n=e.position;return Og(Qg({message:`Error during template compile of '${t.name}'`,position:n,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function(e,t){switch(e){case Ug:if(t&&t.className)return`Consider exporting '${t.className}'`;break;case qg:return"Consider simplifying to avoid destructuring";case zg:if(t&&t.name)return`Consider exporting '${t.name}'`;break;case Wg:return"Consider changing the function expression into an exported function"}}(e.message,e.context)))}return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Jg{constructor(e,t){this.host=e,this.staticSymbolCache=t,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}isLibraryFile(e){return!this.host.isSourceFile(K_(e))}toSummaryFileName(e,t){return this.host.toSummaryFileName(e,t)}fromSummaryFileName(e,t){return this.host.fromSummaryFileName(e,t)}resolveSummary(e){const t=e.members.length?this.staticSymbolCache.get(e.filePath,e.name):e;let n=this.summaryCache.get(t);return n||(this._loadSummaryFile(e.filePath),n=this.summaryCache.get(e)),t===e&&n||null}getSymbolsOf(e){return this._loadSummaryFile(e)?Array.from(this.summaryCache.keys()).filter(t=>t.filePath===e):null}getImportAs(e){return e.assertNoMembers(),this.importAs.get(e)}getKnownModuleName(e){return this.knownFileNameToModuleNames.get(e)||null}addSummary(e){this.summaryCache.set(e.symbol,e)}_loadSummaryFile(e){let t=this.loadedFilePaths.get(e);if(null!=t)return t;let n=null;if(this.isLibraryFile(e)){const t=Q_(e);try{n=this.host.loadSummary(t)}catch(e){throw console.error(`Error loading summary file ${t}`),e}}if(t=null!=n,this.loadedFilePaths.set(e,t),n){const{moduleName:t,summaries:r,importAs:i}=function(e,t,n,r){return new lg(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,n);r.forEach(e=>this.summaryCache.set(e.symbol,e)),t&&this.knownFileNameToModuleNames.set(e,t),i.forEach(e=>{this.importAs.set(e.symbol,e.importAs)})}return t}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function eb(e){return{resolve:(t,n)=>{const r=e.resourceNameToFileName(n,t);if(!r)throw en(`Couldn't resolve resource ${n} from ${t}`);return r}}}function tb(e,t,n){let r=t.translations||"";const i=eb(e),s=new kn,o=new Jg(e,s),a=new ig(e,s,o),c=new Fg(o,a,[],[],n);let u;u=t.enableIvy?new Vu:new F_(new Vu,r,t.i18nFormat,t.missingTranslation,console);const l=new kf({defaultEncapsulation:A.Emulated,useJit:!1,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces,strictInjectionParameters:t.strictInjectionParameters}),h=new Mf({get:t=>e.loadResource(t)},i,u,l),d=new Qh(new Fh),p=new fd,f=new mh(l,c,d,p,u,console,[]),_=new am(l,u,new wm(c),new Lf(c),new Om(c),o,p,h,console,s,c,n),m=new Rm(c),g=new Im(t,c);return{compiler:new dg(l,t,e,c,_,f,new nu(i),m,g,new vm(c),new G_(c,!!t.enableIvy),new Sm,o,a),reflector:c}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class nb{}class rb{constructor(){this._summaries=new Map}isLibraryFile(){return!1}toSummaryFileName(e){return e}fromSummaryFileName(e){return e}resolveSummary(e){return this._summaries.get(e)||null}getSymbolsOf(){return[]}getImportAs(e){return e}getKnownModuleName(e){return null}addSummary(e){this._summaries.set(e.symbol,e)}}function ib(e,t,n,r,i){const s=r.createChildWihtLocalVars();for(let n=0;ne.text);Object.defineProperty(n,"raw",{value:e.template.elements.map(e=>e.rawText)});const r=this.visitAllExpressions(e.template.expressions,t);return r.unshift(n),e.tag.visitExpression(this,t).apply(null,r)}visitReturnStmt(e,t){return new ob(e.value.visitExpression(this,t))}visitDeclareClassStmt(e,t){const n=function(e,t,n){const r={};e.getters.forEach(i=>{r[i.name]={configurable:!1,get:function(){const r=new sb(t,this,e.name,t.vars);return ib([],[],i.body,r,n)}}}),e.methods.forEach(function(i){const s=i.params.map(e=>e.name);r[i.name]={writable:!1,configurable:!1,value:function(...r){const o=new sb(t,this,e.name,t.vars);return ib(s,r,i.body,o,n)}}});const i=e.constructorMethod.params.map(e=>e.name),s=function(...r){const s=new sb(t,this,e.name,t.vars);e.fields.forEach(e=>{this[e.name]=void 0}),ib(i,r,e.constructorMethod.body,s,n)},o=e.parent?e.parent.visitExpression(n,t):Object;return s.prototype=Object.create(o.prototype,r),s}(e,t,this);return t.vars.set(e.name,n),e.hasModifier(st.Exported)&&t.exports.push(e.name),null}visitExpressionStmt(e,t){return e.expr.visitExpression(this,t)}visitIfStmt(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):null!=e.falseCase?this.visitAllStatements(e.falseCase,t):null}visitTryCatchStmt(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(n){const r=t.createChildWihtLocalVars();return r.vars.set(ub,n),r.vars.set(lb,n.stack),this.visitAllStatements(e.catchStmts,r)}}visitThrowStmt(e,t){throw e.error.visitExpression(this,t)}visitInstantiateExpr(e,t){const n=this.visitAllExpressions(e.args,t);return new(e.classExpr.visitExpression(this,t))(...n)}visitLiteralExpr(e,t){return e.value}visitLocalizedString(e,t){return null}visitExternalExpr(e,t){return this.reflector.resolveExternalReference(e.value)}visitConditionalExpr(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):null!=e.falseCase?e.falseCase.visitExpression(this,t):null}visitNotExpr(e,t){return!e.condition.visitExpression(this,t)}visitAssertNotNullExpr(e,t){return e.condition.visitExpression(this,t)}visitCastExpr(e,t){return e.value.visitExpression(this,t)}visitFunctionExpr(e,t){return cb(e.params.map(e=>e.name),e.statements,t,this)}visitDeclareFunctionStmt(e,t){const n=e.params.map(e=>e.name);return t.vars.set(e.name,cb(n,e.statements,t,this)),e.hasModifier(st.Exported)&&t.exports.push(e.name),null}visitUnaryOperatorExpr(e,t){const n=()=>e.expr.visitExpression(this,t);switch(e.operator){case he.Plus:return+n();case he.Minus:return-n();default:throw new Error(`Unknown operator ${e.operator}`)}}visitBinaryOperatorExpr(e,t){const n=()=>e.lhs.visitExpression(this,t),r=()=>e.rhs.visitExpression(this,t);switch(e.operator){case de.Equals:return n()==r();case de.Identical:return n()===r();case de.NotEquals:return n()!=r();case de.NotIdentical:return n()!==r();case de.And:return n()&&r();case de.Or:return n()||r();case de.Plus:return n()+r();case de.Minus:return n()-r();case de.Divide:return n()/r();case de.Multiply:return n()*r();case de.Modulo:return n()%r();case de.Lower:return n()r();case de.BiggerEquals:return n()>=r();default:throw new Error(`Unknown operator ${e.operator}`)}}visitReadPropExpr(e,t){let n;return n=e.receiver.visitExpression(this,t)[e.name]}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]}visitLiteralArrayExpr(e,t){return this.visitAllExpressions(e.entries,t)}visitLiteralMapExpr(e,t){const n={};return e.entries.forEach(e=>n[e.key]=e.value.visitExpression(this,t)),n}visitCommaExpr(e,t){const n=this.visitAllExpressions(e.parts,t);return n[n.length-1]}visitAllExpressions(e,t){return e.map(e=>e.visitExpression(this,t))}visitAllStatements(e,t){for(let n=0;nib(e,i,t,n,r)}const ub="error",lb="stack"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class hb{constructor(e,t,n,r,i,s,o,a,c,u,l){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=s,this._reflector=o,this._jitEvaluator=a,this._compilerConfig=c,this._console=u,this.getExtraNgModuleProviders=l,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}compileModuleSync(e){return Zt.assertSync(this._compileModuleAndComponents(e,!0))}compileModuleAsync(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))}compileModuleAndAllComponentsSync(e){return Zt.assertSync(this._compileModuleAndAllComponents(e,!0))}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this._compileModuleAndAllComponents(e,!1))}getComponentFactory(e){return this._metadataResolver.getDirectiveSummary(e).componentFactory}loadAotSummaries(e){this.clearCache(),this._addAotSummaries(e)}_addAotSummaries(e){if(this._addedAotSummaries.has(e))return;this._addedAotSummaries.add(e);const t=e();for(let e=0;ee.reference).filter(e=>!this.hasAotSummary(e))}_compileModuleAndComponents(e,t){return Zt.then(this._loadModules(e,t),()=>(this._compileComponents(e,null),this._compileModule(e)))}_compileModuleAndAllComponents(e,t){return Zt.then(this._loadModules(e,t),()=>{const t=[];return this._compileComponents(e,t),{ngModuleFactory:this._compileModule(e),componentFactories:t}})}_loadModules(e,t){const n=[],r=this._metadataResolver.getNgModuleMetadata(e);return this._filterJitIdentifiers(r.transitiveModule.modules).forEach(e=>{const r=this._metadataResolver.getNgModuleMetadata(e);this._filterJitIdentifiers(r.declaredDirectives).forEach(e=>{const i=this._metadataResolver.loadDirectiveMetadata(r.type.reference,e,t);i&&n.push(i)}),this._filterJitIdentifiers(r.declaredPipes).forEach(e=>this._metadataResolver.getOrLoadPipeMetadata(e))}),Zt.all(n)}_compileModule(e){let t=this._compiledNgModuleCache.get(e);if(!t){const n=this._metadataResolver.getNgModuleMetadata(e),r=this.getExtraNgModuleProviders(n.type.reference),i=fb(),s=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(rr(n),i.statements)[s.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,t)}return t}_compileComponents(e,t){const n=this._metadataResolver.getNgModuleMetadata(e),r=new Map,i=new Set,s=this._filterJitIdentifiers(n.transitiveModule.modules);s.forEach(e=>{const n=this._metadataResolver.getNgModuleMetadata(e);this._filterJitIdentifiers(n.declaredDirectives).forEach(e=>{r.set(e,n);const s=this._metadataResolver.getDirectiveMetadata(e);if(s.isComponent&&(i.add(this._createCompiledTemplate(s,n)),t)){const e=this._createCompiledHostTemplate(s.type.reference,n);i.add(e),t.push(s.componentFactory)}})}),s.forEach(e=>{const t=this._metadataResolver.getNgModuleMetadata(e);this._filterJitIdentifiers(t.declaredDirectives).forEach(e=>{const t=this._metadataResolver.getDirectiveMetadata(e);t.isComponent&&t.entryComponents.forEach(e=>{const t=r.get(e.componentType);i.add(this._createCompiledHostTemplate(e.componentType,t))})}),t.entryComponents.forEach(e=>{if(!this.hasAotSummary(e.componentType)){const t=r.get(e.componentType);i.add(this._createCompiledHostTemplate(e.componentType,t))}})}),i.forEach(e=>this._compileTemplate(e))}clearCacheFor(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)}clearCache(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()}_createCompiledHostTemplate(e,t){if(!t)throw new Error(`Component ${cn(e)} is not part of any NgModule or the module has not been imported into your module.`);let n=this._compiledHostTemplateCache.get(e);if(!n){const r=this._metadataResolver.getDirectiveMetadata(e);pb(r);const i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new db(!0,r.type,i,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n}_createCompiledTemplate(e,t){let n=this._compiledTemplateCache.get(e.type.reference);return n||(pb(e),n=new db(!1,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n}_compileTemplate(e){if(e.isCompiled)return;const t=e.compMeta,n=new Map,r=fb(),i=this._styleCompiler.compileComponent(r,t);t.template.externalStylesheets.forEach(e=>{const r=this._styleCompiler.compileStyles(fb(),t,e);n.set(e.moduleUrl,r)}),this._resolveStylesCompileResult(i,n);e.ngModule.transitiveModule.pipes.map(e=>this._metadataResolver.getPipeSummary(e.reference));const{template:s,pipes:o}=this._parseTemplate(t,e.ngModule,e.directives),a=this._viewCompiler.compileComponent(r,t,s,Pt(i.stylesVar),o),c=this._interpretOrJit(ir(e.ngModule.type,e.compMeta),r.statements),u=c[a.viewClassVar],l=c[a.rendererTypeVar];e.compiled(u,l)}_parseTemplate(e,t,n){const r=e.template.preserveWhitespaces,i=n.map(e=>this._metadataResolver.getDirectiveSummary(e.reference)),s=t.transitiveModule.pipes.map(e=>this._metadataResolver.getPipeSummary(e.reference));return this._templateParser.parse(e,e.template.htmlAst,i,s,t.schemas,tr(t.type,e,e.template),r)}_resolveStylesCompileResult(e,t){e.dependencies.forEach((e,n)=>{const r=t.get(e.moduleUrl),i=this._resolveAndEvalStylesCompileResult(r,t);e.setValue(i)})}_resolveAndEvalStylesCompileResult(e,t){return this._resolveStylesCompileResult(e,t),this._interpretOrJit(nr(e.meta,this._sharedStylesheetCount++),e.outputCtx.statements)[e.stylesVar]}_interpretOrJit(e,t){return this._compilerConfig.useJit?this._jitEvaluator.evaluateStatements(e,t,this._reflector,this._compilerConfig.jitDevMode):function(e,t){const n=new sb(null,null,null,new Map);new ab(t).visitAllStatements(e,n);const r={};return n.exports.forEach(e=>{r[e]=n.vars.get(e)}),r}(t,this._reflector)}}class db{constructor(e,t,n,r,i){this.isHost=e,this.compType=t,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}compiled(e,t){this._viewClass=e,this.compMeta.componentViewType.setDelegate(e);for(let e in t)this.compMeta.rendererType[e]=t[e];this.isCompiled=!0}}function pb(e){if(!e.isComponent)throw new Error(`Could not compile '${Nn(e.type)}' because it is not a component.`)}function fb(){return{statements:[],genFilePath:"",importExpr:e=>Mt({name:Nn(e),moduleName:null,runtime:e}),constantPool:new wn}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class _b{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function mb(){return new bb}function gb(){return new bb(".")}const bb=class{constructor(e=null){this._packagePrefix=e}resolve(e,t){let n=t;null!=e&&e.length>0&&(n=function(e,t){const n=Eb(encodeURI(t)),r=Eb(e);if(null!=n[wb.Scheme])return Sb(n);n[wb.Scheme]=r[wb.Scheme];for(let e=wb.Scheme;e<=wb.Port;e++)null==n[e]&&(n[e]=r[e]);if("/"==n[wb.Path][0])return Sb(n);let i=r[wb.Path];null==i&&(i="/");const s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[wb.Path],n[wb.Path]=i,Sb(n)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,n));const r=Eb(n);let i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[wb.Scheme]){let e=r[wb.Path];return`${i=i.replace(/\/+$/,"")}/${e=e.replace(/^\/+/,"")}`}return n}};function yb(e){const t=Eb(e);return t&&t[wb.Scheme]||""}const vb=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");var wb;function Eb(e){return e.match(vb)}function Sb(e){let t=e[wb.Path];return t=null==t?"":function(e){if("/"==e)return"/";const t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[];let s=0;for(let e=0;e0?i.pop():s++;break;default:i.push(t)}}if(""==t){for(;s-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(t),e[wb.Path]=t,function(e,t,n,r,i,s,o){const a=[];return null!=e&&a.push(e+":"),null!=n&&(a.push("//"),null!=t&&a.push(t+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=i&&a.push(i),null!=s&&a.push("?"+s),null!=o&&a.push("#"+o),a.join("")}(e[wb.Scheme],e[wb.UserInfo],e[wb.Domain],e[wb.Port],t,e[wb.QueryData],e[wb.Fragment])}!function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(wb||(wb={}));class Cb{constructor(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}extract(e){const{files:t,ngModules:n}=gg(e,this.host,this.staticSymbolResolver,this.metadataResolver);return Promise.all(n.map(e=>this.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))).then(()=>{const e=[];if(t.forEach(t=>{const n=[];t.directives.forEach(e=>{const t=this.metadataResolver.getDirectiveMetadata(e);t&&t.isComponent&&n.push(t)}),n.forEach(t=>{const n=t.template.template,r=t.template.templateUrl,i=Gs.fromArray(t.template.interpolation);e.push(...this.messageBundle.updateFromTemplate(n,r,i))})}),e.length)throw new Error(e.map(e=>e.toString()).join("\n"));return this.messageBundle})}static create(e,t){const n=new Vu,r=eb(e),i=new kn,s=new Jg(e,i),o=new ig(e,i,s),a=new Fg(s,o),c=new kf({defaultEncapsulation:A.Emulated,useJit:!1}),u=new Mf({get:t=>e.loadResource(t)},r,n,c),l=new fd,h=new am(c,n,new wm(a),new Lf(a),new Om(a),s,l,u,console,i,a),d=new Km(n,[],{},t);return{extractor:new Cb(e,o,d,h),staticReflector:a}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Ob{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");const t=Ib.apply(e.template),n=function(e){const t=new Map;function n(e){if(t.has(e.template))return t.get(e.template);const r=e.namedEntities;let i;return i=null!==e.parentScope?new Map([...n(e.parentScope),...r]):new Map(r),t.set(e.template,i),i}const r=[e];for(;r.length>0;){const e=r.pop();for(const t of e.childScopes.values())r.push(t);n(e)}const i=new Map;for(const[e,n]of t)i.set(e,new Set(n.values()));return i} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t),{directives:r,bindings:i,references:s}=xb.apply(e.template,this.directiveMatcher),{expressions:o,symbols:a,nestingLevel:c,usedPipes:u}=Tb.apply(e.template,t);return new Ab(e,r,i,s,o,a,c,n,u)}}class Ib{constructor(e,t){this.parentScope=e,this.template=t,this.namedEntities=new Map,this.childScopes=new Map}static newRootScope(){return new Ib(null,null)}static apply(e){const t=Ib.newRootScope();return t.ingest(e),t}ingest(e){e instanceof Vr?(e.variables.forEach(e=>this.visitVariable(e)),e.children.forEach(e=>e.visit(this))):e.forEach(e=>e.visit(this))}visitElement(e){e.references.forEach(e=>this.visitReference(e)),e.children.forEach(e=>e.visit(this))}visitTemplate(e){e.references.forEach(e=>this.visitReference(e));const t=new Ib(this,e);t.ingest(e),this.childScopes.set(e,t)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitContent(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):null!==this.parentScope?this.parentScope.lookup(e):null}getChildScope(e){const t=this.childScopes.get(e);if(void 0===t)throw new Error(`Assertion error: child scope for ${e} not found`);return t}}class xb{constructor(e,t,n,r){this.matcher=e,this.directives=t,this.bindings=n,this.references=r}static apply(e,t){const n=new Map,r=new Map,i=new Map;return new xb(t,n,r,i).ingest(e),{directives:n,bindings:r,references:i}}ingest(e){e.forEach(e=>e.visit(this))}visitElement(e){this.visitElementOrTemplate(e.name,e)}visitTemplate(e){this.visitElementOrTemplate("ng-template",e)}visitElementOrTemplate(e,t){const n=Ep(e,xs(t)),r=[];this.matcher.match(n,(e,t)=>r.push(t)),r.length>0&&this.directives.set(t,r),t.references.forEach(e=>{let n=null;if(""===e.value.trim())n=r.find(e=>e.isComponent)||null;else if(null===(n=r.find(t=>null!==t.exportAs&&t.exportAs.some(t=>t===e.value))||null))return;null!==n?this.references.set(e,{directive:n,node:t}):this.references.set(e,t)});const i=(e,n)=>{const i=r.find(t=>t[n].hasBindingPropertyName(e.name)),s=void 0!==i?i:t;this.bindings.set(e,s)};t.inputs.forEach(e=>i(e,"inputs")),t.attributes.forEach(e=>i(e,"inputs")),t instanceof Vr&&t.templateAttrs.forEach(e=>i(e,"inputs")),t.outputs.forEach(e=>i(e,"outputs")),t.children.forEach(e=>e.visit(this))}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}}class Tb extends tc{constructor(e,t,n,r,i,s,o){super(),this.bindings=e,this.symbols=t,this.usedPipes=n,this.nestingLevel=r,this.scope=i,this.template=s,this.level=o,this.pipesUsed=[],this.visitNode=(e=>e.visit(this))}visit(e,t){e instanceof Ia?e.visit(this,t):e.visit(this)}static apply(e,t){const n=new Map,r=new Map,i=new Map,s=new Set;return new Tb(n,r,s,i,t,e instanceof Vr?e:null,0).ingest(e),{expressions:n,symbols:r,nestingLevel:i,usedPipes:s}}ingest(e){e instanceof Vr?(e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode);const t=this.scope.getChildScope(e);new Tb(this.bindings,this.symbols,this.usedPipes,this.nestingLevel,t,e,this.level+1).ingest(e)}visitVariable(e){null!==this.template&&this.symbols.set(e,this.template)}visitReference(e){null!==this.template&&this.symbols.set(e,this.template)}visitText(e){}visitContent(e){}visitTextAttribute(e){}visitIcu(e){Object.keys(e.vars).forEach(t=>e.vars[t].visit(this)),Object.keys(e.placeholders).forEach(t=>e.placeholders[t].visit(this))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitBoundText(e){e.value.visit(this)}visitPipe(e,t){return this.usedPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(t,e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(t,e,e.name),super.visitSafePropertyRead(e,t)}visitPropertyWrite(e,t){return this.maybeMap(t,e,e.name),super.visitPropertyWrite(e,t)}visitMethodCall(e,t){return this.maybeMap(t,e,e.name),super.visitMethodCall(e,t)}visitSafeMethodCall(e,t){return this.maybeMap(t,e,e.name),super.visitSafeMethodCall(e,t)}maybeMap(e,t,n){if(!(t.receiver instanceof Da))return;let r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}}class Ab{constructor(e,t,n,r,i,s,o,a,c){this.target=e,this.directives=t,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=s,this.nestingLevel=o,this.templateEntities=a,this.usedPipes=c}getEntitiesInTemplateScope(e){var t;return null!==(t=this.templateEntities.get(e))&&void 0!==t?t:new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getTemplateOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){const e=new Set;return this.directives.forEach(t=>t.forEach(t=>e.add(t))),Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}}function Db(e,t){return null===e||0===e.length?null:Ft(e.map(e=>t(e)))}function kb(e,t){const n=Object.keys(e).map(n=>{const r=e[n];return{key:n,value:t(r),quoted:!0}});return n.length>0?jt(n):null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Pb(e){const t=Mb(e);return{expression:Mt(or.declareDirective).callFn([t.toLiteralMap()]),type:Yp(e)}}function Mb(e){const t=new Is;return t.set("version",Gt("11.2.0")),t.set("type",e.internalType),null!==e.selector&&t.set("selector",Gt(e.selector)),t.set("inputs",Ss(e.inputs,!0)),t.set("outputs",Ss(e.outputs)),t.set("host",function(e){const t=new Is;t.set("attributes",kb(e.attributes,e=>e)),t.set("listeners",kb(e.listeners,Gt)),t.set("properties",kb(e.properties,Gt)),e.specialAttributes.styleAttr&&t.set("styleAttribute",Gt(e.specialAttributes.styleAttr));e.specialAttributes.classAttr&&t.set("classAttribute",Gt(e.specialAttributes.classAttr));return t.values.length>0?t.toLiteralMap():null} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.host)),t.set("providers",e.providers),e.queries.length>0&&t.set("queries",Ft(e.queries.map(Rb))),e.viewQueries.length>0&&t.set("viewQueries",Ft(e.viewQueries.map(Rb))),null!==e.exportAs&&t.set("exportAs",Es(e.exportAs)),e.usesInheritance&&t.set("usesInheritance",Gt(!0)),e.lifecycle.usesOnChanges&&t.set("usesOnChanges",Gt(!0)),t.set("ngImport",Mt(or.core)),t}function Rb(e){const t=new Is;return t.set("propertyName",Gt(e.propertyName)),e.first&&t.set("first",Gt(!0)),t.set("predicate",Array.isArray(e.predicate)?Es(e.predicate):e.predicate),e.emitDistinctChangesOnly||t.set("emitDistinctChangesOnly",Gt(!1)),e.descendants&&t.set("descendants",Gt(!0)),t.set("read",e.read),e.static&&t.set("static",Gt(!0)),t.toLiteralMap()}function Nb(e,t){const n=function(e,t){const n=Mb(e);n.set("template",function(e){if("string"==typeof e.template){if(e.isInline)return Gt(e.template);{const t=e.template,n=new ca(t,e.templateUrl),r=new aa(n,0,0,0),i=function(e,t){const n=t.length;let r=0,i=0,s=0;do{-1!==(r=t.indexOf("\n",i))&&(i=r+1,s++)}while(-1!==r);return new aa(e,n,s,n-i)}(n,t),s=new ua(r,i);return Gt(t,null,s)}}return e.template}(t)),t.isInline&&n.set("isInline",Gt(!0));n.set("styles",Db(e.styles,Gt)),n.set("directives",function(e){const t=0!==e.declarationListEmitMode?Lb:e=>e;return Db(e.directives,e=>{const n=new Is;return n.set("type",t(e.type)),n.set("selector",Gt(e.selector)),n.set("inputs",Db(e.inputs,Gt)),n.set("outputs",Db(e.outputs,Gt)),n.set("exportAs",Db(e.exportAs,Gt)),n.toLiteralMap()})}(e)),n.set("pipes",function(e){if(0===e.pipes.size)return null;const t=0!==e.declarationListEmitMode?Lb:e=>e,n=[];for(const[r,i]of e.pipes)n.push({key:r,value:t(i),quoted:!0});return jt(n)}(e)),n.set("viewProviders",e.viewProviders),n.set("animations",e.animations),void 0!==e.changeDetection&&n.set("changeDetection",Mt(or.ChangeDetectionStrategy).prop(D[e.changeDetection]));e.encapsulation!==A.Emulated&&n.set("encapsulation",Mt(or.ViewEncapsulation).prop(A[e.encapsulation]));e.interpolation!==qs&&n.set("interpolation",Ft([Gt(e.interpolation.start),Gt(e.interpolation.end)]));!0===t.preserveWhitespaces&&n.set("preserveWhitespaces",Gt(!0));return n}(e,t);return{expression:Mt(or.declareComponent).callFn([n.toLiteralMap()]),type:Vp(e)}}function Lb(e){return Mt(or.forwardRef).callFn([Vt([],[new dt(e)])])} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */Af(fn)}.call(this,n(/*! ./../../../../../../terminus-web/node_modules/webpack/buildin/global.js */79))}, /*!*******************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/Subscriber.js ***! \*******************************************************************/ /*! exports provided: Subscriber, SafeSubscriber */ /*! exports used: Subscriber */function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(/*! tslib */1),i=n(/*! ./util/isFunction */36),s=n(/*! ./Observer */78),o=n(/*! ./Subscription */8),a=n(/*! ../internal/symbol/rxSubscriber */63),c=n(/*! ./config */21),u=n(/*! ./util/hostReportError */55),l=function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.a;break;case 1:if(!n){o.destination=s.a;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new h(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new h(o,n,r,i)}return o}return r.c(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(o.a),h=function(e){function t(t,n,r,o){var a,c=e.call(this)||this;c._parentSubscriber=t;var u=c;return Object(i.a)(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.a&&(u=Object.create(n),Object(i.a)(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=r,c._complete=o,c}return r.c(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;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(u.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(u.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw e;Object(u.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return c.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(u.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)}, /*!********************************************************************!*\ !*** ../tabby/app/node_modules/@angular/common/fesm2015/common.js ***! \********************************************************************/ /*! exports provided: APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, registerLocaleData, ɵBrowserPlatformLocation, ɵDomAdapter, ɵNullViewportScroller, ɵPLATFORM_BROWSER_ID, ɵPLATFORM_SERVER_ID, ɵPLATFORM_WORKER_APP_ID, ɵPLATFORM_WORKER_UI_ID, ɵangular_packages_common_common_a, ɵangular_packages_common_common_b, ɵangular_packages_common_common_c, ɵangular_packages_common_common_d, ɵangular_packages_common_common_e, ɵangular_packages_common_common_f, ɵgetDOM, ɵparseCookieValue, ɵsetRootDomAdapter */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./terminal.ts (referenced with cjs require) */function(e,t,n){"use strict";n.r(t),n.d(t,"APP_BASE_HREF",function(){return v}),n.d(t,"AsyncPipe",function(){return dt}),n.d(t,"CommonModule",function(){return Dt}),n.d(t,"CurrencyPipe",function(){return Ot}),n.d(t,"DOCUMENT",function(){return c}),n.d(t,"DatePipe",function(){return gt}),n.d(t,"DecimalPipe",function(){return St}),n.d(t,"FormStyle",function(){return A}),n.d(t,"FormatWidth",function(){return k}),n.d(t,"HashLocationStrategy",function(){return E}),n.d(t,"I18nPluralPipe",function(){return yt}),n.d(t,"I18nSelectPipe",function(){return vt}),n.d(t,"JsonPipe",function(){return wt}),n.d(t,"KeyValuePipe",function(){return Et}),n.d(t,"LOCATION_INITIALIZED",function(){return h}),n.d(t,"Location",function(){return S}),n.d(t,"LocationStrategy",function(){return b}),n.d(t,"LowerCasePipe",function(){return pt}),n.d(t,"NgClass",function(){return ze}),n.d(t,"NgComponentOutlet",function(){return We}),n.d(t,"NgForOf",function(){return Ye}),n.d(t,"NgForOfContext",function(){return Ke}),n.d(t,"NgIf",function(){return Qe}),n.d(t,"NgIfContext",function(){return Ze}),n.d(t,"NgLocaleLocalization",function(){return qe}),n.d(t,"NgLocalization",function(){return Ue}),n.d(t,"NgPlural",function(){return it}),n.d(t,"NgPluralCase",function(){return st}),n.d(t,"NgStyle",function(){return ot}),n.d(t,"NgSwitch",function(){return tt}),n.d(t,"NgSwitchCase",function(){return nt}),n.d(t,"NgSwitchDefault",function(){return rt}),n.d(t,"NgTemplateOutlet",function(){return at}),n.d(t,"NumberFormatStyle",function(){return x}),n.d(t,"NumberSymbol",function(){return P}),n.d(t,"PathLocationStrategy",function(){return w}),n.d(t,"PercentPipe",function(){return Ct}),n.d(t,"PlatformLocation",function(){return u}),n.d(t,"Plural",function(){return T}),n.d(t,"SlicePipe",function(){return Tt}),n.d(t,"TitleCasePipe",function(){return _t}),n.d(t,"TranslationWidth",function(){return D}),n.d(t,"UpperCasePipe",function(){return mt}),n.d(t,"VERSION",function(){return Vt}),n.d(t,"ViewportScroller",function(){return Bt}),n.d(t,"WeekDay",function(){return M}),n.d(t,"formatCurrency",function(){return Le}),n.d(t,"formatDate",function(){return he}),n.d(t,"formatNumber",function(){return je}),n.d(t,"formatPercent",function(){return Fe}),n.d(t,"getCurrencySymbol",function(){return ne}),n.d(t,"getLocaleCurrencyCode",function(){return K}),n.d(t,"getLocaleCurrencyName",function(){return W}),n.d(t,"getLocaleCurrencySymbol",function(){return z}),n.d(t,"getLocaleDateFormat",function(){return U}),n.d(t,"getLocaleDateTimeFormat",function(){return q}),n.d(t,"getLocaleDayNames",function(){return L}),n.d(t,"getLocaleDayPeriods",function(){return N}),n.d(t,"getLocaleDirection",function(){return J}),n.d(t,"getLocaleEraNames",function(){return j}),n.d(t,"getLocaleExtraDayPeriodRules",function(){return Q}),n.d(t,"getLocaleExtraDayPeriods",function(){return Z}),n.d(t,"getLocaleFirstDayOfWeek",function(){return V}),n.d(t,"getLocaleId",function(){return R}),n.d(t,"getLocaleMonthNames",function(){return F}),n.d(t,"getLocaleNumberFormat",function(){return H}),n.d(t,"getLocaleNumberSymbol",function(){return $}),n.d(t,"getLocalePluralCase",function(){return Y}),n.d(t,"getLocaleTimeFormat",function(){return G}),n.d(t,"getLocaleWeekEndRange",function(){return B}),n.d(t,"getNumberOfCurrencyDigits",function(){return ie}),n.d(t,"isPlatformBrowser",function(){return Nt}),n.d(t,"isPlatformServer",function(){return Lt}),n.d(t,"isPlatformWorkerApp",function(){return Ft}),n.d(t,"isPlatformWorkerUi",function(){return jt}),n.d(t,"registerLocaleData",function(){return $e}),n.d(t,"ɵBrowserPlatformLocation",function(){return d}),n.d(t,"ɵDomAdapter",function(){return a}),n.d(t,"ɵNullViewportScroller",function(){return qt}),n.d(t,"ɵPLATFORM_BROWSER_ID",function(){return kt}),n.d(t,"ɵPLATFORM_SERVER_ID",function(){return Pt}),n.d(t,"ɵPLATFORM_WORKER_APP_ID",function(){return Mt}),n.d(t,"ɵPLATFORM_WORKER_UI_ID",function(){return Rt}),n.d(t,"ɵangular_packages_common_common_a",function(){return l}),n.d(t,"ɵangular_packages_common_common_b",function(){return f}),n.d(t,"ɵangular_packages_common_common_c",function(){return C}),n.d(t,"ɵangular_packages_common_common_d",function(){return y}),n.d(t,"ɵangular_packages_common_common_e",function(){return ct}),n.d(t,"ɵangular_packages_common_common_f",function(){return At}),n.d(t,"ɵgetDOM",function(){return s}),n.d(t,"ɵparseCookieValue",function(){return He}),n.d(t,"ɵsetRootDomAdapter",function(){return o});var r=n(/*! @angular/core */0); /** * @license Angular v11.2.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */let i=null;function s(){return i}function o(e){i||(i=e)}class a{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const c=new r.InjectionToken("DocumentToken"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class u{}function l(){return Object(r["ɵɵinject"])(d)}u.ɵprov=Object(r["ɵɵdefineInjectable"])({factory:l,token:u,providedIn:"platform"}),u.decorators=[{type:r.Injectable,args:[{providedIn:"platform",useFactory:l}]}];const h=new r.InjectionToken("Location Initialized");class d extends u{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().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}}function p(){return!!window.history.pushState}function f(){return new d(Object(r["ɵɵinject"])(c))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function _(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}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */d.ɵprov=Object(r["ɵɵdefineInjectable"])({factory:f,token:d,providedIn:"platform"}),d.decorators=[{type:r.Injectable,args:[{providedIn:"platform",useFactory:f}]}],d.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[c]}]}]);class b{}function y(e){const t=Object(r["ɵɵinject"])(c).location;return new w(Object(r["ɵɵinject"])(u),t&&t.origin||"")}b.ɵprov=Object(r["ɵɵdefineInjectable"])({factory:y,token:b,providedIn:"root"}),b.decorators=[{type:r.Injectable,args:[{providedIn:"root",useFactory:y}]}];const v=new r.InjectionToken("appBaseHref");class w extends b{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 _(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+g(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+g(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}w.decorators=[{type:r.Injectable}],w.ctorParameters=(()=>[{type:u},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[v]}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class E extends b{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=_(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}E.decorators=[{type:r.Injectable}],E.ctorParameters=(()=>[{type:u},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[v]}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class S{constructor(e,t){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(O(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+g(t))}normalize(e){return S.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,O(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+g(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=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})}}function C(){return new S(Object(r["ɵɵinject"])(b),Object(r["ɵɵinject"])(u))}function O(e){return e.replace(/\/index.html$/,"")} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */S.normalizeQueryParams=g,S.joinWithSlash=_,S.stripTrailingSlash=m,S.ɵprov=Object(r["ɵɵdefineInjectable"])({factory:C,token:S,providedIn:"root"}),S.decorators=[{type:r.Injectable,args:[{providedIn:"root",useFactory:C}]}],S.ctorParameters=(()=>[{type:b},{type:u}]);const I={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"৳"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"р.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN¥","¥"],COP:[void 0,"$",2],CRC:[void 0,"₡",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"Kč",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E£"],ESP:[void 0,"₧",0],EUR:["€"],FJD:[void 0,"$"],FKP:[void 0,"£"],GBP:["£"],GEL:[void 0,"₾"],GIP:[void 0,"£"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["₪"],INR:["₹"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["¥",void 0,0],KHR:[void 0,"៛"],KMF:[void 0,"CF",0],KPW:[void 0,"₩",0],KRW:["₩",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"₸"],LAK:[void 0,"₭",0],LBP:[void 0,"L£",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"₮",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"₦"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"₱"],PKR:[void 0,"Rs",2],PLN:[void 0,"zł"],PYG:[void 0,"₲",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"₽"],RUR:[void 0,"р."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"£"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"£"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"£",0],THB:[void 0,"฿"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"₺"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"₴"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["₫",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["¤"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var x,T,A,D,k,P,M;function R(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].LocaleId]}function N(e,t,n){const i=Object(r["ɵfindLocaleData"])(e),s=ee([i[r["ɵLocaleDataIndex"].DayPeriodsFormat],i[r["ɵLocaleDataIndex"].DayPeriodsStandalone]],t);return ee(s,n)}function L(e,t,n){const i=Object(r["ɵfindLocaleData"])(e),s=ee([i[r["ɵLocaleDataIndex"].DaysFormat],i[r["ɵLocaleDataIndex"].DaysStandalone]],t);return ee(s,n)}function F(e,t,n){const i=Object(r["ɵfindLocaleData"])(e),s=ee([i[r["ɵLocaleDataIndex"].MonthsFormat],i[r["ɵLocaleDataIndex"].MonthsStandalone]],t);return ee(s,n)}function j(e,t){return ee(Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].Eras],t)}function V(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].FirstDayOfWeek]}function B(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].WeekendRange]}function U(e,t){return ee(Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].DateFormat],t)}function G(e,t){return ee(Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].TimeFormat],t)}function q(e,t){return ee(Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].DateTimeFormat],t)}function $(e,t){const n=Object(r["ɵfindLocaleData"])(e),i=n[r["ɵLocaleDataIndex"].NumberSymbols][t];if(void 0===i){if(t===P.CurrencyDecimal)return n[r["ɵLocaleDataIndex"].NumberSymbols][P.Decimal];if(t===P.CurrencyGroup)return n[r["ɵLocaleDataIndex"].NumberSymbols][P.Group]}return i}function H(e,t){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].NumberFormats][t]}function z(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].CurrencySymbol]||null}function W(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].CurrencyName]||null}function K(e){return Object(r["ɵgetLocaleCurrencyCode"])(e)}!function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific"}(x||(x={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other"}(T||(T={})),function(e){e[e.Format=0]="Format",e[e.Standalone=1]="Standalone"}(A||(A={})),function(e){e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short"}(D||(D={})),function(e){e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full"}(k||(k={})),function(e){e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup"}(P||(P={})),function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(M||(M={}));const Y=r["ɵgetLocalePluralCase"];function X(e){if(!e[r["ɵLocaleDataIndex"].ExtraData])throw new Error(`Missing extra locale data for the locale "${e[r["ɵLocaleDataIndex"].LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Q(e){const t=Object(r["ɵfindLocaleData"])(e);return X(t),(t[r["ɵLocaleDataIndex"].ExtraData][2]||[]).map(e=>"string"==typeof e?te(e):[te(e[0]),te(e[1])])}function Z(e,t,n){const i=Object(r["ɵfindLocaleData"])(e);X(i);const s=ee([i[r["ɵLocaleDataIndex"].ExtraData][0],i[r["ɵLocaleDataIndex"].ExtraData][1]],t)||[];return ee(s,n)||[]}function J(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].Directionality]}function ee(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function te(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}function ne(e,t,n="en"){const i=function(e){return Object(r["ɵfindLocaleData"])(e)[r["ɵLocaleDataIndex"].Currencies]}(n)[e]||I[e]||[],s=i[1];return"narrow"===t&&"string"==typeof s?s:i[0]||e}const re=2;function ie(e){let t;const n=I[e];return n&&(t=n[2]),"number"==typeof t?t:re} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const se=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,oe={},ae=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ce,ue,le;function he(e,t,n,r){let i=function(e){if(Oe(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,r=1]=e.split("-").map(e=>+e);return de(t,n-1,r)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(se))return function(e){const t=new Date(0);let n=0,r=0;const i=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11]));i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,c,u),t}(n)}const t=new Date(e);if(!Oe(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=R(t);oe[r]=oe[r]||{};if(oe[r][n])return oe[r][n];let i="";switch(n){case"shortDate":i=U(t,k.Short);break;case"mediumDate":i=U(t,k.Medium);break;case"longDate":i=U(t,k.Long);break;case"fullDate":i=U(t,k.Full);break;case"shortTime":i=G(t,k.Short);break;case"mediumTime":i=G(t,k.Medium);break;case"longTime":i=G(t,k.Long);break;case"fullTime":i=G(t,k.Full);break;case"short":const r=e(t,"shortTime"),s=e(t,"shortDate");i=pe(q(t,k.Short),[r,s]);break;case"medium":const o=e(t,"mediumTime"),a=e(t,"mediumDate");i=pe(q(t,k.Medium),[o,a]);break;case"long":const c=e(t,"longTime"),u=e(t,"longDate");i=pe(q(t,k.Long),[c,u]);break;case"full":const l=e(t,"fullTime"),h=e(t,"fullDate");i=pe(q(t,k.Full),[l,h])}i&&(oe[r][n]=i);return i}(n,t)||t;let s,o=[];for(;t;){if(!(s=ae.exec(t))){o.push(t);break}{const e=(o=o.concat(s.slice(1))).pop();if(!e)break;t=e}}let a=i.getTimezoneOffset();r&&(a=Ce(r,a),i=function(e,t,n){const r=n?-1:1,i=e.getTimezoneOffset(),s=Ce(t,i);return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(s-i))}(i,r,!0));let c="";return o.forEach(e=>{const t=function(e){if(Se[e])return Se[e];let t;switch(e){case"G":case"GG":case"GGG":t=me(le.Eras,D.Abbreviated);break;case"GGGG":t=me(le.Eras,D.Wide);break;case"GGGGG":t=me(le.Eras,D.Narrow);break;case"y":t=_e(ue.FullYear,1,0,!1,!0);break;case"yy":t=_e(ue.FullYear,2,0,!0,!0);break;case"yyy":t=_e(ue.FullYear,3,0,!1,!0);break;case"yyyy":t=_e(ue.FullYear,4,0,!1,!0);break;case"Y":t=Ee(1);break;case"YY":t=Ee(2,!0);break;case"YYY":t=Ee(3);break;case"YYYY":t=Ee(4);break;case"M":case"L":t=_e(ue.Month,1,1);break;case"MM":case"LL":t=_e(ue.Month,2,1);break;case"MMM":t=me(le.Months,D.Abbreviated);break;case"MMMM":t=me(le.Months,D.Wide);break;case"MMMMM":t=me(le.Months,D.Narrow);break;case"LLL":t=me(le.Months,D.Abbreviated,A.Standalone);break;case"LLLL":t=me(le.Months,D.Wide,A.Standalone);break;case"LLLLL":t=me(le.Months,D.Narrow,A.Standalone);break;case"w":t=we(1);break;case"ww":t=we(2);break;case"W":t=we(1,!0);break;case"d":t=_e(ue.Date,1);break;case"dd":t=_e(ue.Date,2);break;case"E":case"EE":case"EEE":t=me(le.Days,D.Abbreviated);break;case"EEEE":t=me(le.Days,D.Wide);break;case"EEEEE":t=me(le.Days,D.Narrow);break;case"EEEEEE":t=me(le.Days,D.Short);break;case"a":case"aa":case"aaa":t=me(le.DayPeriods,D.Abbreviated);break;case"aaaa":t=me(le.DayPeriods,D.Wide);break;case"aaaaa":t=me(le.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":t=me(le.DayPeriods,D.Abbreviated,A.Standalone,!0);break;case"bbbb":t=me(le.DayPeriods,D.Wide,A.Standalone,!0);break;case"bbbbb":t=me(le.DayPeriods,D.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":t=me(le.DayPeriods,D.Abbreviated,A.Format,!0);break;case"BBBB":t=me(le.DayPeriods,D.Wide,A.Format,!0);break;case"BBBBB":t=me(le.DayPeriods,D.Narrow,A.Format,!0);break;case"h":t=_e(ue.Hours,1,-12);break;case"hh":t=_e(ue.Hours,2,-12);break;case"H":t=_e(ue.Hours,1);break;case"HH":t=_e(ue.Hours,2);break;case"m":t=_e(ue.Minutes,1);break;case"mm":t=_e(ue.Minutes,2);break;case"s":t=_e(ue.Seconds,1);break;case"ss":t=_e(ue.Seconds,2);break;case"S":t=_e(ue.FractionalSeconds,1);break;case"SS":t=_e(ue.FractionalSeconds,2);break;case"SSS":t=_e(ue.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ge(ce.Short);break;case"ZZZZZ":t=ge(ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ge(ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ge(ce.Long);break;default:return null}return Se[e]=t,t}(e);c+=t?t(i,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function de(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function pe(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function fe(e,t,n="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length0||a>-n)&&(a+=n),e===ue.Hours)0===a&&-12===n&&(a=12);else if(e===ue.FractionalSeconds)return c=t,fe(a,3).substr(0,c);var c;const u=$(o,P.MinusSign);return fe(a,t,u,r,i)}}function me(e,t,n=A.Format,r=!1){return function(i,s){return function(e,t,n,r,i,s){switch(n){case le.Months:return F(t,i,r)[e.getMonth()];case le.Days:return L(t,i,r)[e.getDay()];case le.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(s){const e=Q(t),n=Z(t,i,r),s=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,r=o>=t.hours&&a>=t.minutes,i=o0?Math.floor(i/60):Math.ceil(i/60);switch(e){case ce.Short:return(i>=0?"+":"")+fe(o,2,s)+fe(Math.abs(i%60),2,s);case ce.ShortGMT:return"GMT"+(i>=0?"+":"")+fe(o,1,s);case ce.Long:return"GMT"+(i>=0?"+":"")+fe(o,2,s)+":"+fe(Math.abs(i%60),2,s);case ce.Extended:return 0===r?"Z":(i>=0?"+":"")+fe(o,2,s)+":"+fe(Math.abs(i%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}!function(e){e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended"}(ce||(ce={})),function(e){e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day"}(ue||(ue={})),function(e){e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras"}(le||(le={}));const be=0,ye=4;function ve(e){return de(e.getFullYear(),e.getMonth(),e.getDate()+(ye-e.getDay()))}function we(e,t=!1){return function(n,r){let i;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{const e=ve(n),t=function(e){const t=de(e,be,1).getDay();return de(e,0,1+(t<=ye?ye:ye+7)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return fe(i,e,$(r,P.MinusSign))}}function Ee(e,t=!1){return function(n,r){return fe(ve(n).getFullYear(),e,$(r,P.MinusSign),t)}}const Se={};function Ce(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Oe(e){return e instanceof Date&&!isNaN(e.valueOf())} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Ie=/^(\d+)?\.((\d+)(-(\d+))?)?$/,xe=22,Te=".",Ae="0",De=";",ke=",",Pe="#",Me="¤",Re="%";function Ne(e,t,n,r,i,s,o=!1){let a="",c=!1;if(isFinite(e)){let u=function(e){let t,n,r,i,s,o=Math.abs(e)+"",a=0;(n=o.indexOf(Te))>-1&&(o=o.replace(Te,""));(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length);for(r=0;o.charAt(r)===Ae;r++);if(r===(s=o.length))t=[0],n=1;else{for(s--;o.charAt(s)===Ae;)s--;for(n-=r,t=[],i=0;r<=s;r++,i++)t[i]=Number(o.charAt(r))}n>xe&&(t=t.splice(0,xe-1),a=n-1,n=1);return{digits:t,exponent:a,integerLen:n}}(e);o&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2);return e}(u));let l=t.minInt,h=t.minFrac,d=t.maxFrac;if(s){const e=s.match(Ie);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(l=Be(t)),null!=n&&(h=Be(n)),null!=r?d=Be(r):null!=n&&h>d&&(d=h)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const s=Math.min(Math.max(t,i),n);let o=s+e.integerLen,a=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;i=u?r.pop():c=!1),t>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}(u,h,d);let p=u.digits,f=u.integerLen;const _=u.exponent;let m=[];for(c=p.every(e=>!e);f0?m=p.splice(f,p.length):(m=p,p=[0]);const g=[];for(p.length>=t.lgSize&&g.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)g.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&g.unshift(p.join("")),a=g.join($(n,r)),m.length&&(a+=$(n,i)+m.join("")),_&&(a+=$(n,P.Exponential)+"+"+_)}else a=$(n,P.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf}function Le(e,t,n,r,i){const s=Ve(H(t,x.Currency),$(t,P.MinusSign));return s.minFrac=ie(r),s.maxFrac=s.minFrac,Ne(e,s,t,P.CurrencyGroup,P.CurrencyDecimal,i).replace(Me,n).replace(Me,"").trim()}function Fe(e,t,n){return Ne(e,Ve(H(t,x.Percent),$(t,P.MinusSign)),t,P.Group,P.Decimal,n,!0).replace(new RegExp(Re,"g"),$(t,P.PercentSign))}function je(e,t,n){return Ne(e,Ve(H(t,x.Decimal),$(t,P.MinusSign)),t,P.Group,P.Decimal,n)}function Ve(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(De),i=r[0],s=r[1],o=-1!==i.indexOf(Te)?i.split(Te):[i.substring(0,i.lastIndexOf(Ae)+1),i.substring(i.lastIndexOf(Ae)+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf(Pe));for(let e=0;e-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}class qe extends Ue{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(Y(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function $e(e,t,n){return Object(r["ɵregisterLocaleData"])(e,t,n)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function He(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} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */qe.decorators=[{type:r.Injectable}],qe.ctorParameters=(()=>[{type:String,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]);class ze{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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["ɵisListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){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["ɵstringify"])(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)})}}ze.decorators=[{type:r.Directive,args:[{selector:"[ngClass]"}]}],ze.ctorParameters=(()=>[{type:r.IterableDiffers},{type:r.KeyValueDiffers},{type:r.ElementRef},{type:r.Renderer2}]),ze.propDecorators={klass:[{type:r.Input,args:["class"]}],ngClass:[{type:r.Input,args:["ngClass"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class We{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(r.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}We.decorators=[{type:r.Directive,args:[{selector:"[ngComponentOutlet]"}]}],We.ctorParameters=(()=>[{type:r.ViewContainerRef}]),We.propDecorators={ngComponentOutlet:[{type:r.Input}],ngComponentOutletInjector:[{type:r.Input}],ngComponentOutletContent:[{type:r.Input}],ngComponentOutletNgModuleFactory:[{type:r.Input}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Ke{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 Ye{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){"undefined"!=typeof ngDevMode&&!ngDevMode||null==e||"function"==typeof e||console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/api/common/NgForOf#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 t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error(`Cannot find a differ supporting object '${t}' of type '${e=t,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */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 Ke(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Xe(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 Xe(e,i);t.push(s)}});for(let e=0;e{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}Ye.decorators=[{type:r.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],Ye.ctorParameters=(()=>[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:r.IterableDiffers}]),Ye.propDecorators={ngForOf:[{type:r.Input}],ngForTrackBy:[{type:r.Input}],ngForTemplate:[{type:r.Input}]};class Xe{constructor(e,t){this.record=e,this.view=t}}class Qe{constructor(e,t){this._viewContainer=e,this._context=new Ze,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){Je("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Je("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)))}static ngTemplateContextGuard(e,t){return!0}}Qe.decorators=[{type:r.Directive,args:[{selector:"[ngIf]"}]}],Qe.ctorParameters=(()=>[{type:r.ViewContainerRef},{type:r.TemplateRef}]),Qe.propDecorators={ngIf:[{type:r.Input}],ngIfThen:[{type:r.Input}],ngIfElse:[{type:r.Input}]};class Ze{constructor(){this.$implicit=null,this.ngIf=null}}function Je(e,t){if(!!(t&&!t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Object(r["ɵstringify"])(t)}'.`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class et{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}class tt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:tt,decorators:[{type:r.Host}]}]),nt.propDecorators={ngSwitchCase:[{type:r.Input}]};class rt{constructor(e,t,n){n._addDefault(new et(e,t))}}rt.decorators=[{type:r.Directive,args:[{selector:"[ngSwitchDefault]"}]}],rt.ctorParameters=(()=>[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:tt,decorators:[{type:r.Host}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class it{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._switchValue=e,this._updateView()}addCase(e,t){this._caseViews[e]=t}_updateView(){this._clearViews();const e=Object.keys(this._caseViews),t=Ge(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}}it.decorators=[{type:r.Directive,args:[{selector:"[ngPlural]"}]}],it.ctorParameters=(()=>[{type:Ue}]),it.propDecorators={ngPlural:[{type:r.Input}]};class st{constructor(e,t,n,r){this.value=e;const i=!isNaN(Number(e));r.addCase(i?`=${e}`:e,new et(n,t))}}st.decorators=[{type:r.Directive,args:[{selector:"[ngPluralCase]"}]}],st.ctorParameters=(()=>[{type:String,decorators:[{type:r.Attribute,args:["ngPluralCase"]}]},{type:r.TemplateRef},{type:r.ViewContainerRef},{type:it,decorators:[{type:r.Host}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class ot{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}ot.decorators=[{type:r.Directive,args:[{selector:"[ngStyle]"}]}],ot.ctorParameters=(()=>[{type:r.ElementRef},{type:r.KeyValueDiffers},{type:r.Renderer2}]),ot.propDecorators={ngStyle:[{type:r.Input,args:["ngStyle"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class at{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}at.decorators=[{type:r.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],at.ctorParameters=(()=>[{type:r.ViewContainerRef}]),at.propDecorators={ngTemplateOutletContext:[{type:r.Input}],ngTemplateOutlet:[{type:r.Input}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ct=[ze,We,Ye,Qe,at,ot,tt,nt,rt,it,st]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ut(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r["ɵstringify"])(e)}'`)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const lt=new class{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}},ht=new class{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}};class dt{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(Object(r["ɵisPromise"])(e))return lt;if(Object(r["ɵisSubscribable"])(e))return ht;throw ut(dt,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}dt.decorators=[{type:r.Pipe,args:[{name:"async",pure:!1}]}],dt.ctorParameters=(()=>[{type:r.ChangeDetectorRef}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class pt{transform(e){if(null==e)return null;if("string"!=typeof e)throw ut(pt,e);return e.toLowerCase()}}pt.decorators=[{type:r.Pipe,args:[{name:"lowercase"}]}];const ft=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;class _t{transform(e){if(null==e)return null;if("string"!=typeof e)throw ut(_t,e);return e.replace(ft,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}_t.decorators=[{type:r.Pipe,args:[{name:"titlecase"}]}];class mt{transform(e){if(null==e)return null;if("string"!=typeof e)throw ut(mt,e);return e.toUpperCase()}}mt.decorators=[{type:r.Pipe,args:[{name:"uppercase"}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class gt{constructor(e){this.locale=e}transform(e,t="mediumDate",n,r){if(null==e||""===e||e!=e)return null;try{return he(e,t,r||this.locale,n)}catch(e){throw ut(gt,e.message)}}}gt.decorators=[{type:r.Pipe,args:[{name:"date",pure:!0}]}],gt.ctorParameters=(()=>[{type:String,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const bt=/#/g;class yt{constructor(e){this._localization=e}transform(e,t,n){if(null==e)return"";if("object"!=typeof t||null===t)throw ut(yt,t);return t[Ge(e,Object.keys(t),this._localization,n)].replace(bt,e.toString())}}yt.decorators=[{type:r.Pipe,args:[{name:"i18nPlural",pure:!0}]}],yt.ctorParameters=(()=>[{type:Ue}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class vt{transform(e,t){if(null==e)return"";if("object"!=typeof t||"string"!=typeof e)throw ut(vt,t);return t.hasOwnProperty(e)?t[e]:t.hasOwnProperty("other")?t.other:""}}vt.decorators=[{type:r.Pipe,args:[{name:"i18nSelect",pure:!0}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class wt{transform(e){return JSON.stringify(e,null,2)}}wt.decorators=[{type:r.Pipe,args:[{name:"json",pure:!1}]}];class Et{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=function(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n{this.keyValues.push( /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e,t){return{key:e,value:t}}(e.key,e.currentValue))}),this.keyValues.sort(t)),this.keyValues}}Et.decorators=[{type:r.Pipe,args:[{name:"keyvalue",pure:!1}]}],Et.ctorParameters=(()=>[{type:r.KeyValueDiffers}]);class St{constructor(e){this._locale=e}transform(e,t,n){if(!It(e))return null;n=n||this._locale;try{return je(xt(e),n,t)}catch(e){throw ut(St,e.message)}}}St.decorators=[{type:r.Pipe,args:[{name:"number"}]}],St.ctorParameters=(()=>[{type:String,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]);class Ct{constructor(e){this._locale=e}transform(e,t,n){if(!It(e))return null;n=n||this._locale;try{return Fe(xt(e),n,t)}catch(e){throw ut(Ct,e.message)}}}Ct.decorators=[{type:r.Pipe,args:[{name:"percent"}]}],Ct.ctorParameters=(()=>[{type:String,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}]);class Ot{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(e,t,n="symbol",r,i){if(!It(e))return null;i=i||this._locale,"boolean"==typeof n&&(("undefined"==typeof ngDevMode||ngDevMode)&&console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),n=n?"symbol":"code");let s=t||this._defaultCurrencyCode;"code"!==n&&(s="symbol"===n||"symbol-narrow"===n?ne(s,"symbol"===n?"wide":"narrow",i):n);try{return Le(xt(e),i,s,t,r)}catch(e){throw ut(Ot,e.message)}}}function It(e){return!(null==e||""===e||e!=e)}function xt(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */Ot.decorators=[{type:r.Pipe,args:[{name:"currency"}]}],Ot.ctorParameters=(()=>[{type:String,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]},{type:String,decorators:[{type:r.Inject,args:[r.DEFAULT_CURRENCY_CODE]}]}]);class Tt{transform(e,t,n){if(null==e)return null;if(!this.supports(e))throw ut(Tt,e);return e.slice(t,n)}supports(e){return"string"==typeof e||Array.isArray(e)}}Tt.decorators=[{type:r.Pipe,args:[{name:"slice",pure:!1}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const At=[dt,mt,pt,wt,Tt,St,Ct,_t,Ot,gt,yt,vt,Et]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Dt{}Dt.decorators=[{type:r.NgModule,args:[{declarations:[ct,At],exports:[ct,At],providers:[{provide:Ue,useClass:qe}]}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const kt="browser",Pt="server",Mt="browserWorkerApp",Rt="browserWorkerUi";function Nt(e){return e===kt}function Lt(e){return e===Pt}function Ft(e){return e===Mt}function jt(e){return e===Rt} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Vt=new r.Version("11.2.0"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Bt{}Bt.ɵprov=Object(r["ɵɵdefineInjectable"])({token:Bt,providedIn:"root",factory:()=>new Ut(Object(r["ɵɵinject"])(c),window)});class Ut{constructor(e,t){this.document=e,this.window=t,this.offset=(()=>[0,0])}setOffset(e){Array.isArray(e)?this.offset=(()=>e):this.offset=e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}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])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Gt(this.window.history)||Gt(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Gt(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class qt{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}, /*!***********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/innerSubscribe.js ***! \***********************************************************************/ /*! exports provided: SimpleInnerSubscriber, ComplexInnerSubscriber, SimpleOuterSubscriber, ComplexOuterSubscriber, innerSubscribe */ /*! exports used: SimpleInnerSubscriber, SimpleOuterSubscriber, innerSubscribe */function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u});var r=n(/*! tslib */1),i=n(/*! ./Subscriber */3),s=n(/*! ./Observable */6),o=n(/*! ./util/subscribeTo */54),a=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return r.c(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.a),c=(i.a,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.a));i.a;function u(e,t){if(!t.closed)return e instanceof s.a?e.subscribe(t):Object(o.a)(e)(t)}}, /*!*******************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/Observable.js + 1 modules ***! \*******************************************************************************/ /*! exports provided: Observable */ /*! exports used: Observable */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Observer.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscriber.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/config.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/symbol/observable.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/canReportError.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/pipe.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */function(e,t,n){"use strict";var r=n(75),i=n(3),s=n(63),o=n(78);var a=n(30),c=n(61),u=n(21);n.d(t,"a",function(){return l});var l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,a=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[s.a])return e[s.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(r?a.add(r.call(a,this.source)):a.add(this.source||u.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),u.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=h(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;te()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){y(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class w{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const i=this.players.length;0==i?y(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==i&&this._onFinish()}),e.onDestroy(()=>{++n==i&&this._onDestroy()}),e.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>{return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const E="!"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}, /*!**********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/map.js ***! \**********************************************************************/ /*! exports provided: map, MapOperator */ /*! exports used: map */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! tslib */1),i=n(/*! ../Subscriber */3);function s(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 o(e,t))}}var o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a)}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/async.js ***! \************************************************************************/ /*! exports provided: asyncScheduler, async */ /*! exports used: async, asyncScheduler */function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return s});var r=n(/*! ./AsyncAction */46),i=new(n(/*! ./AsyncScheduler */44).a)(r.a),s=i}, /*!*********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/isArray.js ***! \*********************************************************************/ /*! exports provided: isArray */ /*! exports used: isArray */function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()}, /*!*************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/filter.js ***! \*************************************************************************/ /*! exports provided: filter */ /*! exports used: filter */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! tslib */1),i=n(/*! ../Subscriber */3);function s(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.a)}, /*!*************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/isScheduler.js ***! \*************************************************************************/ /*! exports provided: isScheduler */ /*! exports used: isScheduler */function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})}, /*!*************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/empty.js ***! \*************************************************************************/ /*! exports provided: EMPTY, empty */ /*! exports used: EMPTY, empty */function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n(/*! ../Observable */6),i=new r.a(function(e){return e.complete()});function s(e){return e?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(e):i}}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/from.js ***! \************************************************************************/ /*! exports provided: from */ /*! exports used: from */function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(/*! ../Observable */6),i=n(/*! ../util/subscribeTo */54),s=n(/*! ../scheduled/scheduled */106);function o(e,t){return t?Object(s.a)(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}}, /*!***********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/an-object.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/is-object */33);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}}, /*!****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/takeUntil.js ***! \****************************************************************************/ /*! exports provided: takeUntil */ /*! exports used: takeUntil */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! tslib */1),i=n(/*! ../innerSubscribe */5);function s(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new a(e),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.c(t,e),t.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(i.b)}, /*!*****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/fromEvent.js ***! \*****************************************************************************/ /*! exports provided: fromEvent */ /*! exports used: fromEvent */function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(/*! ../Observable */6),i=n(/*! ../util/isArray */12),s=n(/*! ../util/isFunction */36),o=n(/*! ../operators/map */10);function a(e,t,n,c){return Object(s.a)(n)&&(c=n,n=void 0),c?a(e,t,n).pipe(Object(o.a)(function(e){return Object(i.a)(e)?c.apply(void 0,e):c(e)})):new r.a(function(r){!function e(t,n,r,i,s){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var a=t;t.addEventListener(n,r,s),o=function(){return a.removeEventListener(n,r,s)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var c=t;t.on(n,r),o=function(){return c.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var u=t;t.addListener(n,r),o=function(){return u.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l1?r.next(Array.prototype.slice.call(arguments)):r.next(e)},r,n)})}}, /*!*******************************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js + 1 modules ***! \*******************************************************************************************/ /*! exports provided: subscribeToResult */ /*! exports used: subscribeToResult */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Observable.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscriber.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/subscribeTo.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/tabby-core/node_modules/tslib/tslib.es6.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */function(e,t,n){"use strict";var r=n(1),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(3).a),s=n(54),o=n(6);function a(e,t,n,r,a){if(void 0===a&&(a=new i(e,n,r)),!a.closed)return t instanceof o.a?t.subscribe(a):Object(s.a)(t)(a)}n.d(t,"a",function(){return a})}, /*!***************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/config.js ***! \***************************************************************/ /*! exports provided: config */ /*! exports used: config */function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}}, /*!**********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/identity.js ***! \**********************************************************************/ /*! exports provided: identity */ /*! exports used: identity */function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})}, /*!*************************************************************************!*\ !*** ../tabby/app/node_modules/@angular/animations/fesm2015/browser.js ***! \*************************************************************************/ /*! exports provided: AnimationDriver, ɵAnimation, ɵAnimationEngine, ɵAnimationStyleNormalizer, ɵCssKeyframesDriver, ɵCssKeyframesPlayer, ɵNoopAnimationDriver, ɵNoopAnimationStyleNormalizer, ɵWebAnimationsDriver, ɵWebAnimationsPlayer, ɵWebAnimationsStyleNormalizer, ɵallowPreviousPlayerStylesMerge, ɵangular_packages_animations_browser_browser_a, ɵcontainsElement, ɵinvokeQuery, ɵmatchesElement, ɵsupportsWebAnimations, ɵvalidateStyleProperty */ /*! exports used: AnimationDriver, ɵAnimationEngine, ɵAnimationStyleNormalizer, ɵCssKeyframesDriver, ɵNoopAnimationDriver, ɵWebAnimationsDriver, ɵWebAnimationsStyleNormalizer, ɵsupportsWebAnimations */ /*! ModuleConcatenation bailout: Module uses injected variables (process) */function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O}),n.d(t,"b",function(){return ct}),n.d(t,"c",function(){return Ie}),n.d(t,"d",function(){return Dt}),n.d(t,"e",function(){return C}),n.d(t,"f",function(){return Mt}),n.d(t,"g",function(){return xe}),n.d(t,"h",function(){return Rt});var r=n(/*! @angular/animations */9),i=n(/*! @angular/core */0);function s(){return void 0!==e&&"[object process]"==={}.toString.call(e)}function o(e){switch(e.length){case 0:return new r.NoopAnimationPlayer;case 1:return e[0];default:return new r["ɵAnimationGroupPlayer"](e)}}function a(e,t,n,i,s={},o={}){const a=[],c=[];let u=-1,l=null;if(i.forEach(e=>{const n=e.offset,i=n==u,h=i&&l||{};Object.keys(e).forEach(n=>{let i=n,c=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),c){case r["ɵPRE_STYLE"]:c=s[n];break;case r.AUTO_STYLE:c=o[n];break;default:c=t.normalizeStyleValue(n,i,c,a)}h[i]=c}),i||c.push(h),l=h,u=n}),a.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${a.join(e)}`)}return c}function c(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&u(n,"start",e)));break;case"done":e.onDone(()=>r(n&&u(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&u(n,"destroy",e)))}}function u(e,t,n){const r=n.totalTime,i=!!n.disabled,s=l(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,i),o=e._data;return null!=o&&(s._data=o),s}function l(e,t,n,r,i="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function h(e,t,n){let r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function d(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let p=(e,t)=>!1;let f=(e,t)=>!1;let _=(e,t,n)=>[];const m=s();(m||"undefined"!=typeof Element)&&(p=((e,t)=>e.contains(t)),f=(()=>{if(m||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):f}})(),_=((e,t,n)=>{let r=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class C{validateStyleProperty(e){return y(e)}matchesElement(e,t){return v(e,t)}containsElement(e,t){return w(e,t)}query(e,t,n){return E(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,s,o=[],a){return new r.NoopAnimationPlayer(n,i)}}C.decorators=[{type:i.Injectable}];class O{}O.NOOP=new C; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const I=1e3,x="{{",T="ng-enter",A="ng-leave",D="ng-trigger",k=".ng-trigger",P="ng-animating",M=".ng-animating";function R(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:N(parseFloat(t[1]),t[2])}function N(e,t){switch(t){case"s":return e*I;default:return e}}function L(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){const r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,s=0,o="";if("string"==typeof e){const n=e.match(r);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=N(parseFloat(n[1]),n[2]);const a=n[3];null!=a&&(s=N(parseFloat(a),n[4]));const c=n[5];c&&(o=c)}else i=e;if(!n){let n=!1,r=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(r,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:s,easing:o}}(e,t,n)}function F(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function j(e,t,n={}){if(t)for(let t in e)n[t]=e[t];else F(e,n);return n}function V(e,t,n){return n?t+":"+n+";":""}function B(e){let t="";for(let n=0;n{const i=Y(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),s()&&B(e))}function G(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Y(t);e.style[n]=""}),s()&&B(e))}function q(e){return Array.isArray(e)?1==e.length?e[0]:Object(r.sequence)(e):e}const $=new RegExp(`${x}\\s*(.+?)\\s*}}`,"g");function H(e){let t=[];if("string"==typeof e){let n;for(;n=$.exec(e);)t.push(n[1]);$.lastIndex=0}return t}function z(e,t,n){const r=e.toString(),i=r.replace($,(e,r)=>{let i=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),i=""),i.toString()});return i==r?e:i}function W(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const K=/-+([a-z0-9])/g;function Y(e){return e.replace(K,(...e)=>e[1].toUpperCase())}function X(e,t){return 0===e||0===t}function Q(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let s=t[0],o=[];if(r.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var i=1;i(function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const i=r[1],s=r[2],o=r[3];t.push(ie(i,o));const a=i==ee&&o==ee;"<"!=s[0]||a||t.push(ie(o,i))})(e,n,t)):n.push(e),n}const ne=new Set(["true","1"]),re=new Set(["false","0"]);function ie(e,t){const n=ne.has(e)||re.has(e),r=ne.has(t)||re.has(t);return(i,s)=>{let o=e==ee||e==i,a=t==ee||t==s;return!o&&n&&"boolean"==typeof i&&(o=i?ne.has(e):re.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?ne.has(t):re.has(t)),o&&a}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const se=":self",oe=new RegExp(`s*${se}s*,?`,"g");function ae(e,t,n){return new ue(e).build(t,n)}const ce="";class ue{constructor(e){this._driver=e}build(e,t){const n=new le(t);return this._resetContextStyleTimingState(n),Z(this,q(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=ce,e.collectedStyles={},e.collectedStyles[ce]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const i=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,i.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const i=this.visitTransition(e,t);n+=i.queryCount,r+=i.depCount,s.push(i)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const i=new Set,s=r||{};if(n.styles.forEach(e=>{if(he(e)){const t=e;Object.keys(t).forEach(e=>{H(t[e]).forEach(e=>{s.hasOwnProperty(e)||i.add(e)})})}}),i.size){const n=W(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Z(this,q(e.animation),t);return{type:1,matchers:te(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:de(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Z(this,e,t)),options:de(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const i=e.steps.map(e=>{t.currentTime=n;const i=Z(this,e,t);return r=Math.max(r,t.currentTime),i});return t.currentTime=r,{type:3,steps:i,options:de(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e){const n=L(e,t).duration;return pe(n,0,"")}const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=pe(0,0,"");return e.dynamic=!0,e.strValue=r,e}return pe((n=n||L(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let s=e.styles?e.styles:Object(r.style)({});if(5==s.type)i=this.visitKeyframes(s,t);else{let s=e.styles,o=!1;if(!s){o=!0;const e={};n.easing&&(e.easing=n.easing),s=Object(r.style)(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,t);a.isEmptyStep=o,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==r.AUTO_STYLE?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,s=null;return n.forEach(e=>{if(he(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!i)for(let e in t){if(t[e].toString().indexOf(x)>=0){i=!0;break}}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,i=t.currentTime;n&&i>0&&(i-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(i!=r&&i>=o.startTime&&r<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=o.startTime),a&&(s[n]={startTime:i,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},i=H(e);i.length&&i.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let s=!1,o=!1,a=0;const c=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let c=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(he(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(he(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=c&&(r++,u=n.offset=c),o=o||u<0||u>1,s=s||u0&&r{const s=l>0?r==h?1:l*r:i[r],o=s*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Z(this,q(e.animation),t),options:de(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:de(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:de(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[i,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==se);t&&(e=e.replace(oe,""));return[e=e.replace(/@\*/g,k).replace(/@\w+/g,e=>k+"-"+e.substr(1)).replace(/:animating/g,M),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+i:i,h(t.collectedStyles,t.currentQuerySelector,{});const o=Z(this,q(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:de(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:L(e.timings,t.errors,!0);return{type:12,animation:Z(this,q(e.animation),t),timings:n,options:null}}}class le{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function he(e){return!Array.isArray(e)&&"object"==typeof e}function de(e){var t;return e?(e=F(e)).params&&(e.params=(t=e.params)?F(t):null):e={},e}function pe(e,t,n){return{duration:e,delay:t,easing:n}}function fe(e,t,n,r,i,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class _e{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const me=1,ge=new RegExp(":enter","g"),be=new RegExp(":leave","g");function ye(e,t,n,r,i,s={},o={},a,c,u=[]){return(new ve).buildKeyframes(e,t,n,r,i,s,o,a,c,u)}class ve{buildKeyframes(e,t,n,r,i,s,o,a,c,u=[]){c=c||new _e;const l=new Ee(e,t,c,r,i,u,[]);l.options=a,l.currentTimeline.setStyles([s],null,l.errors,a),Z(this,n,l);const h=l.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,l.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[fe(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);i!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const i=null!=n.duration?R(n.duration):null,s=null!=n.delay?R(n.delay):null;return 0!==i&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,i,s);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),Z(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const i=e.options;if(i&&(i.params||i.delay)&&((r=t.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=we);const e=R(i.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Z(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?R(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),Z(this,s,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return L(t.params?z(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{const n=e.offset||0;s.forwardTime(n*i),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?R(r.delay):0;i&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=we);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);i&&o.delayNextStep(i),n===t.element&&(a=o.currentTimeline),Z(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const c=o.currentTimeline.currentTime;s=Math.max(s,c)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,i=e.timings,s=Math.abs(i.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=t.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Z(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const we={};class Ee{constructor(e,t,n,r,i,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Se(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=R(n.duration)),null!=n.delay&&(r.delay=R(n.delay));const i=n.params;if(i){let e=r.params;e||(e=this.options.params={}),Object.keys(i).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=z(i[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,i=new Ee(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,i,s){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(ge,"."+this._enterClassName)).replace(be,"."+this._leaveClassName);const t=1!=n;let r=this._driver.query(this.element,e,t);0!==n&&(r=n<0?r.slice(r.length+n,r.length):r.slice(0,n)),o.push(...r)}return i||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class Se{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Se(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=me,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||r.AUTO_STYLE,this._currentKeyframe[e]=r.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t)).forEach(e=>{n[e]=r.AUTO_STYLE}):j(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=z(o[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:r.AUTO_STYLE),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{const n=e[t];this._currentKeyframe[t]=n}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=j(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r["ɵPRE_STYLE"]?e.add(n):i==r.AUTO_STYLE&&t.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=e.size?W(e.values()):[],o=t.size?W(t.values()):[];if(n){const e=i[0],t=F(e);e.offset=0,t.offset=1,i=[e,t]}return fe(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class Ce extends Se{constructor(e,t,n,r,i,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],s=n+t,o=t/s,a=j(e[0],!1);a.offset=0,i.push(a);const c=j(e[0],!1);c.offset=Oe(o),i.push(c);const u=e.length-1;for(let r=1;r<=u;r++){let o=j(e[r],!1);const a=t+o.offset*n;o.offset=Oe(a/s),i.push(o)}n=s,t=0,r="",e=i}return fe(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function Oe(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Ie{} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class xe extends Ie{normalizePropertyName(e,t){return Y(e)}normalizeStyleValue(e,t,n,r){let i="";const s=n.toString().trim();if(Te[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+i}}const Te=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ae(e,t,n,r,i,s,o,a,c,u,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const De={};class ke{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,i){return e.some(e=>e(t,n,r,i))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],i=this._stateStyles[e],s=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):s}build(e,t,n,r,i,s,o,a,c,u){const l=[],d=this.ast.options&&this.ast.options.params||De,p=o&&o.params||De,f=this.buildStyles(n,p,l),_=a&&a.params||De,m=this.buildStyles(r,_,l),g=new Set,b=new Map,y=new Map,v="void"===r,w={params:Object.assign(Object.assign({},d),_)},E=u?[]:ye(e,t,this.ast.animation,i,s,f,m,w,c,l);let S=0;if(E.forEach(e=>{S=Math.max(e.duration+e.delay,S)}),l.length)return Ae(t,this._triggerName,n,r,v,f,m,[],[],b,y,S,l);E.forEach(e=>{const n=e.element,r=h(b,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const i=h(y,n,{});e.postStyleProps.forEach(e=>i[e]=!0),n!==t&&g.add(n)});const C=W(g.values());return Ae(t,this._triggerName,n,r,v,f,m,E,C,b,y,S)}}class Pe{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=F(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach(e=>{let s=i[e];s.length>1&&(s=z(s,r,t)),n[e]=s})}}),n}}class Me{constructor(e,t){var n,r;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new Pe(e.style,t)}),Re(this.states,"true","1"),Re(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new ke(e,t,this.states))}),this.fallbackTransition=(n=e,r=this.states,new ke(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},r))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(i=>i.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Ne=new _e;class Le{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=ae(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,i=a(this._driver,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],s=this._animations[e];let a;const c=new Map;if(s?(a=ye(this._driver,t,s,T,A,{},{},n,Ne,i)).forEach(e=>{const t=h(c,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(i.push("The requested animation doesn't exist or has already been destroyed"),a=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);c.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,r.AUTO_STYLE)})});const u=o(a.map(e=>{const t=c.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const i=l(t,"","","");return c(this._getPlayer(e),n,i,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n){const n=r[0]||{};return void this.create(e,t,n)}const i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Fe="ng-animate-queued",je=".ng-animate-queued",Ve="ng-animate-disabled",Be=".ng-animate-disabled",Ue="ng-star-inserted",Ge=".ng-star-inserted",qe=[],$e={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},He={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ze="__ng_removed";class We{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=function(e){return null!=e?e:null}(r),n){const t=F(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Ke="void",Ye=new We(Ke);class Xe{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,it(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var i;const s=h(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);const a=h(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(it(e,D),it(e,D+"-"+t),a[t]=Ye),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const i=this._getTrigger(t),s=new Ze(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(it(e,D),it(e,D+"-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const c=new We(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[t]=c,a||(a=Ye),!(c.value===Ke)&&a.value===c.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let r=0;r{G(e,n),U(e,r)})}return}const u=h(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let l=i.matchTransition(a.value,c.value,e,c.params),d=!1;if(!l){if(!r)return;l=i.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:l,fromState:a,toState:c,player:s,isFallbackTransition:d}),d||(it(e,Fe),s.onStart(()=>{st(e,Fe)})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),u.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,k,!0);n.forEach(e=>{if(e[ze])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,r){const i=this._engine.statesByElement.get(e);if(i){const s=[];if(Object.keys(i).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Ke,r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&o(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const r=new Set;t.forEach(t=>{const i=t.name;if(r.has(i))return;r.add(i);const s=this._triggers[i].fallbackTransition,o=n[i]||Ye,a=new We(Ke),c=new Ze(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:s,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;){if(n.statesByElement.get(t)){r=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const r=e[ze];r&&r!==$e||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){it(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,s=this._elementListeners.get(i);s&&s.forEach(t=>{if(t.name==n.triggerName){const r=l(i,n.triggerName,n.fromState.value,n.toState.value);r._data=e,c(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t}}class Qe{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=((e,t)=>{})}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Xe(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--){const n=this._namespaceList[i];if(this.driver.containsElement(n.hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),it(e,Ve)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),st(e,Ve))}removeNode(e,t,n,r){if(Je(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t[ze]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,i){return Je(t)?this._fetchNamespace(e).listen(t,n,r,i):()=>{}}_buildInstruction(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,k,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,M,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return o(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[ze];if(t&&t.setForRemoval){if(e[ze]=$e,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Be)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Be,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;ee()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?o(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new _e,i=[],s=new Map,a=[],c=new Map,u=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(e=>{d.add(e);const t=this.driver.query(e,je,!0);for(let e=0;e{const n=T+g++;m.set(t,n),e.forEach(e=>it(e,n))});const b=[],y=new Set,v=new Set;for(let e=0;ey.add(e)):v.add(t))}const w=new Map,E=nt(f,Array.from(y));E.forEach((e,t)=>{const n=A+g++;w.set(t,n),e.forEach(e=>it(e,n))}),e.push(()=>{_.forEach((e,t)=>{const n=m.get(t);e.forEach(e=>st(e,n))}),E.forEach((e,t)=>{const n=w.get(t);e.forEach(e=>st(e,n))}),b.forEach(e=>{this.processLeaveNode(e)})});const S=[],C=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(S.push(t),this.collectedEnterElements.length){const e=r[ze];if(e&&e.setForMove)return void t.destroy()}const s=!p||!this.driver.containsElement(p,r),o=w.get(r),d=m.get(r),f=this._buildInstruction(e,n,d,o,s);if(f.errors&&f.errors.length)return void C.push(f);if(s)return t.onStart(()=>G(r,f.fromStyles)),t.onDestroy(()=>U(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>G(r,f.fromStyles)),t.onDestroy(()=>U(r,f.toStyles)),void i.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines);const _={instruction:f,player:t,element:r};a.push(_),f.queriedElements.forEach(e=>h(c,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=u.get(t);e||u.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))})})}if(C.length){const e=[];C.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),S.forEach(e=>e.destroy()),this.reportError(e)}const O=new Map,I=new Map;a.forEach(e=>{const t=e.element;n.has(t)&&(I.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{h(O,t,[]).push(e),e.destroy()})});const x=b.filter(e=>at(e,u,l)),D=new Map;tt(D,this.driver,v,l,r.AUTO_STYLE).forEach(e=>{at(e,u,l)&&x.push(e)});const k=new Map;_.forEach((e,t)=>{tt(k,this.driver,new Set(e),u,r["ɵPRE_STYLE"])}),x.forEach(e=>{const t=D.get(e),n=k.get(e);D.set(e,Object.assign(Object.assign({},t),n))});const P=[],R=[],N={};a.forEach(e=>{const{element:t,player:r,instruction:a}=e;if(n.has(t)){if(d.has(t))return r.onDestroy(()=>U(t,a.toStyles)),r.disabled=!0,r.overrideTotalTime(a.totalTime),void i.push(r);let e=N;if(I.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=I.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>I.set(t,e))}const n=this._buildAnimation(r.namespaceId,a,O,s,k,D);if(r.setRealPlayer(n),e===N)P.push(r);else{const t=this.playersByElement.get(e);t&&t.length&&(r.parentPlayer=o(t)),i.push(r)}}else G(t,a.fromStyles),r.onDestroy(()=>U(t,a.toStyles)),R.push(r),d.has(t)&&i.push(r)}),R.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=o(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let e=0;e!e.destroyed);i.length?ot(this,t,i):this.processLeaveNode(t)}return b.length=0,P.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),P}elementContainsData(e,t){let n=!1;const r=t[ze];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,i){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==Ke;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&s.push(t)})}}return(n||r)&&(s=s.filter(e=>(!n||n==e.namespaceId)&&(!r||r==e.triggerName))),s}_beforeAnimationBuild(e,t,n){const r=t.triggerName,i=t.element,s=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:r;for(const e of t.timelines){const r=e.element,a=r!==i,c=h(n,r,[]);this._getPreviousPlayers(r,a,s,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})}G(i,t.fromStyles)}_buildAnimation(e,t,n,i,s,c){const u=t.triggerName,l=t.element,d=[],p=new Set,f=new Set,_=t.timelines.map(t=>{const o=t.element;p.add(o);const h=o[ze];if(h&&h.removedBeforeQueried)return new r.NoopAnimationPlayer(t.duration,t.delay);const _=o!==l,m=function(e){const t=[];return function e(t,n){for(let i=0;ie.getRealPlayer())).filter(e=>{const t=e;return!!t.element&&t.element===o}),g=s.get(o),b=c.get(o),y=a(this.driver,this._normalizer,0,t.keyframes,g,b),v=this._buildPlayer(t,y,m);if(t.subTimeline&&i&&f.add(o),_){const t=new Ze(e,u,o);t.setRealPlayer(v),d.push(t)}return v});d.forEach(e=>{h(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t)){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r})(this.playersByQueriedElement,e.element,e))}),p.forEach(e=>it(e,P));const m=o(_);return m.onDestroy(()=>{p.forEach(e=>st(e,P)),U(l,t.toStyles)}),f.forEach(e=>{h(i,e,[]).push(m)}),m}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new r.NoopAnimationPlayer(e.duration,e.delay)}}class Ze{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new r.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>c(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){h(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Je(e){return e&&1===e.nodeType}function et(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function tt(e,t,n,r,i){const s=[];n.forEach(e=>s.push(et(e)));const o=[];r.forEach((n,r)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[ze]=He,o.push(r))}),e.set(r,s)});let a=0;return n.forEach(e=>et(e,s[a++])),o}function nt(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=1,i=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return r;let o=s.get(t);if(o)return o;const a=t.parentNode;return o=n.has(a)?a:i.has(a)?r:e(a),s.set(t,o),o}(e);t!==r&&n.get(t).push(e)}),n}const rt="$$classes";function it(e,t){if(e.classList)e.classList.add(t);else{let n=e[rt];n||(n=e[rt]={}),n[t]=!0}}function st(e,t){if(e.classList)e.classList.remove(t);else{let n=e[rt];n&&delete n[t]}}function ot(e,t,n){o(n).onDone(()=>e.processLeaveNode(t))}function at(e,t,n){const r=n.get(e);if(!r)return!1;let i=t.get(e);return i?r.forEach(e=>i.add(e)):t.set(e,r),n.delete(e),!0}class ct{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=((e,t)=>{}),this._transitionEngine=new Qe(e,t,n),this._timelineEngine=new Le(e,t,n),this._transitionEngine.onRemovalComplete=((e,t)=>this.onRemovalComplete(e,t))}registerTrigger(e,t,n,r,i){const s=e+"-"+r;let o=this._triggerCache[s];if(!o){const e=[],t=ae(this._driver,i,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Me(e,t)}(r,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,i]=d(n),s=r;this._timelineEngine.command(e,t,i,s)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,i){if("@"==n.charAt(0)){const[e,r]=d(n);return this._timelineEngine.listen(e,t,r,i)}return this._transitionEngine.listen(e,t,n,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ut(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=ht(t[0]),t.length>1&&(r=ht(t[t.length-1]))):t&&(n=ht(t)),n||r?new lt(e,n,r):null}class lt{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let r=lt.initialStylesByElement.get(e);r||lt.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&U(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(U(this._element,this._initialStyles),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(lt.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),U(this._element,this._initialStyles),this._state=3)}}function ht(e){let t=null;const n=Object.keys(e);for(let r=0;rthis._handleCallback(e))}apply(){!function(e,t){const n=St(e,"").trim();let r=0;n.length&&(r=function(e,t){let n=0;for(let r=0;r=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),wt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=St(e,"").split(","),r=vt(n,t);if(r>=0){n.splice(r,1);const t=n.join(",");Et(e,"",t)}}(this._element,this._name))}}function bt(e,t,n){Et(e,"PlayState",n,yt(e,t))}function yt(e,t){const n=St(e,"");if(n.indexOf(",")>0){return vt(n.split(","),t)}return vt([n],t)}function vt(e,t){for(let n=0;n=0)return n;return-1}function wt(e,t,n){n?e.removeEventListener(_t,t):e.addEventListener(_t,t)}function Et(e,t,n,r){const i=ft+t;if(null!=r){const t=e.style[i];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[i]=n}function St(e,t){return e.style[ft+t]||""}const Ct="forwards",Ot="linear";class It{constructor(e,t,n,r,i,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||Ot,this.totalTime=r+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){if(this._state>=1)return;this._state=1;this.element;this._styler.apply(),this._delay&&this._styler.pause()}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new gt(this.element,this.animationName,this._duration,this._delay,this.easing,Ct,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:J(this.element,n))})}this.currentSnapshot=e}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class xt extends r.NoopAnimationPlayer{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=S(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const Tt="gen_css_kf_",At=" ";class Dt{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return y(e)}matchesElement(e,t){return v(e,t)}containsElement(e,t){return w(e,t)}query(e,t,n){return E(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>S(e));let r=`@keyframes ${t} {\n`,i="";n.forEach(e=>{i=At;const t=parseFloat(e.offset);r+=`${i}${100*t}% {\n`,i+=At,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${t}: ${n};\n`)}}),r+=`${i}}\n`}),r+="}\n";const s=document.createElement("style");return s.textContent=r,s}animate(e,t,n,r,i,s=[],o){("undefined"==typeof ngDevMode||ngDevMode)&&o&&function(){if(kt)return;console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit https://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),kt=!0}();const a=s.filter(e=>e instanceof It),c={};X(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=function(e){let t={};if(e){const n=Array.isArray(e)?e:[e];n.forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})})}return t}(t=Q(e,t,c));if(0==n)return new xt(e,u);const l=`${Tt}${this._count++}`,h=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(h);const d=ut(e,t),p=new It(e,t,l,n,r,i,u,d);return p.onDestroy(()=>(function(e){e.parentNode.removeChild(e)})(h)),p}}let kt=!1;class Pt{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:J(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Mt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Nt().toString()),this._cssKeyframesDriver=new Dt}validateStyleProperty(e){return y(e)}matchesElement(e,t){return v(e,t)}containsElement(e,t){return w(e,t)}query(e,t,n){return E(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,i,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,s);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const c={},u=s.filter(e=>e instanceof Pt);X(n,r)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const l=ut(e,t=Q(e,t=t.map(e=>j(e,!1)),c));return new Pt(e,t,a,l)}}function Rt(){return"function"==typeof Nt()}function Nt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}).call(this,n(/*! ./../../../../../../terminus-web/node_modules/process/browser.js */167))}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/OuterSubscriber.js ***! \************************************************************************/ /*! exports provided: OuterSubscriber */ /*! exports used: OuterSubscriber */function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(/*! tslib */1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(/*! ./Subscriber */3).a)}, /*!*********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/Notification.js ***! \*********************************************************************/ /*! exports provided: NotificationKind, Notification */ /*! exports used: Notification, NotificationKind */function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a});var r,i=n(/*! ./observable/empty */15),s=n(/*! ./observable/of */56),o=n(/*! ./observable/throwError */70);r||(r={});var a=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()}, /*!********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/global.js ***! \********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(/*! ./../../../../../terminus-web/node_modules/webpack/buildin/global.js */79))}, /*!****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/multicast.js ***! \****************************************************************************/ /*! exports provided: multicast, MulticastOperator */ /*! exports used: multicast */function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(/*! ../observable/ConnectableObservable */102);function i(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new s(i,t));var o=Object.create(n,r.b);return o.source=n,o.subjectFactory=i,o}}var s=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}()}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/symbol/iterator.js ***! \************************************************************************/ /*! exports provided: getSymbolIterator, iterator, $$iterator */ /*! exports used: iterator */function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()}, /*!******************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/noop.js ***! \******************************************************************/ /*! exports provided: noop */ /*! exports used: noop */function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})}, /*!**************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/symbol/observable.js ***! \**************************************************************************/ /*! exports provided: observable */ /*! exports used: observable */function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()}, /*!*************************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js ***! \*************************************************************************************/ /*! exports provided: ObjectUnsubscribedError */ /*! exports used: ObjectUnsubscribedError */function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()}, /*!********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/export.js ***! \********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/global */26),i=n(/*! ../internals/object-get-own-property-descriptor */137).f,s=n(/*! ../internals/create-non-enumerable-property */67),o=n(/*! ../internals/redefine */91),a=n(/*! ../internals/set-global */120),c=n(/*! ../internals/copy-constructor-properties */187),u=n(/*! ../internals/is-forced */147);e.exports=function(e,t){var n,l,h,d,p,f=e.target,_=e.global,m=e.stat;if(n=_?r:m?r[f]||a(f,{}):(r[f]||{}).prototype)for(l in t){if(d=t[l],h=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!u(_?l:f+(m?".":"#")+l,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),o(n,l,d,e)}}}, /*!***********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/is-object.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}}, /*!*****************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/has.js ***! \*****************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/to-object */119),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}}, /*!*************************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js ***! \*************************************************************************************/ /*! exports provided: ArgumentOutOfRangeError */ /*! exports used: ArgumentOutOfRangeError */function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/isFunction.js ***! \************************************************************************/ /*! exports provided: isFunction */ /*! exports used: isFunction */function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})}, /*!***********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/take.js ***! \***********************************************************************/ /*! exports provided: take */ /*! exports used: take */function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(/*! tslib */1),i=n(/*! ../Subscriber */3),s=n(/*! ../util/ArgumentOutOfRangeError */35),o=n(/*! ../observable/empty */15);function a(e){return function(t){return 0===e?Object(o.b)():t.lift(new c(e))}}var c=function(){function e(e){if(this.total=e,this.total<0)throw new s.a}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(i.a)}, /*!******************************************************************!*\ !*** ../tabby/app/node_modules/@angular/forms/fesm2015/forms.js ***! \******************************************************************/ /*! exports provided: AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormsModule, MaxLengthValidator, MinLengthValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, VERSION, Validators, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption, ɵangular_packages_forms_forms_a, ɵangular_packages_forms_forms_b, ɵangular_packages_forms_forms_ba, ɵangular_packages_forms_forms_bb, ɵangular_packages_forms_forms_bc, ɵangular_packages_forms_forms_bd, ɵangular_packages_forms_forms_be, ɵangular_packages_forms_forms_c, ɵangular_packages_forms_forms_d, ɵangular_packages_forms_forms_e, ɵangular_packages_forms_forms_f, ɵangular_packages_forms_forms_g, ɵangular_packages_forms_forms_h, ɵangular_packages_forms_forms_i, ɵangular_packages_forms_forms_j, ɵangular_packages_forms_forms_k, ɵangular_packages_forms_forms_l, ɵangular_packages_forms_forms_m, ɵangular_packages_forms_forms_n, ɵangular_packages_forms_forms_o, ɵangular_packages_forms_forms_p, ɵangular_packages_forms_forms_q, ɵangular_packages_forms_forms_r, ɵangular_packages_forms_forms_s, ɵangular_packages_forms_forms_t, ɵangular_packages_forms_forms_u, ɵangular_packages_forms_forms_v, ɵangular_packages_forms_forms_w, ɵangular_packages_forms_forms_x, ɵangular_packages_forms_forms_y, ɵangular_packages_forms_forms_z */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./terminal.ts (referenced with cjs require) */function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractControl",function(){return Ce}),n.d(t,"AbstractControlDirective",function(){return D}),n.d(t,"AbstractFormGroupDirective",function(){return ke}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return d}),n.d(t,"CheckboxControlValueAccessor",function(){return l}),n.d(t,"CheckboxRequiredValidator",function(){return et}),n.d(t,"ControlContainer",function(){return k}),n.d(t,"DefaultValueAccessor",function(){return p}),n.d(t,"EmailValidator",function(){return nt}),n.d(t,"FormArray",function(){return xe}),n.d(t,"FormArrayName",function(){return We}),n.d(t,"FormBuilder",function(){return pt}),n.d(t,"FormControl",function(){return Oe}),n.d(t,"FormControlDirective",function(){return Ue}),n.d(t,"FormControlName",function(){return Xe}),n.d(t,"FormGroup",function(){return Ie}),n.d(t,"FormGroupDirective",function(){return qe}),n.d(t,"FormGroupName",function(){return He}),n.d(t,"FormsModule",function(){return _t}),n.d(t,"MaxLengthValidator",function(){return ot}),n.d(t,"MinLengthValidator",function(){return it}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return g}),n.d(t,"NG_VALIDATORS",function(){return m}),n.d(t,"NG_VALUE_ACCESSOR",function(){return c}),n.d(t,"NgControl",function(){return P}),n.d(t,"NgControlStatus",function(){return N}),n.d(t,"NgControlStatusGroup",function(){return L}),n.d(t,"NgForm",function(){return De}),n.d(t,"NgModel",function(){return Fe}),n.d(t,"NgModelGroup",function(){return Re}),n.d(t,"NgSelectOption",function(){return Y}),n.d(t,"NumberValueAccessor",function(){return j}),n.d(t,"PatternValidator",function(){return ct}),n.d(t,"RadioControlValueAccessor",function(){return U}),n.d(t,"RangeValueAccessor",function(){return q}),n.d(t,"ReactiveFormsModule",function(){return mt}),n.d(t,"RequiredValidator",function(){return Je}),n.d(t,"SelectControlValueAccessor",function(){return K}),n.d(t,"SelectMultipleControlValueAccessor",function(){return Z}),n.d(t,"VERSION",function(){return ft}),n.d(t,"Validators",function(){return y}),n.d(t,"ɵInternalFormsSharedModule",function(){return dt}),n.d(t,"ɵNgNoValidate",function(){return je}),n.d(t,"ɵNgSelectMultipleOption",function(){return J}),n.d(t,"ɵangular_packages_forms_forms_a",function(){return ut}),n.d(t,"ɵangular_packages_forms_forms_b",function(){return lt}),n.d(t,"ɵangular_packages_forms_forms_ba",function(){return Ze}),n.d(t,"ɵangular_packages_forms_forms_bb",function(){return tt}),n.d(t,"ɵangular_packages_forms_forms_bc",function(){return rt}),n.d(t,"ɵangular_packages_forms_forms_bd",function(){return st}),n.d(t,"ɵangular_packages_forms_forms_be",function(){return at}),n.d(t,"ɵangular_packages_forms_forms_c",function(){return ht}),n.d(t,"ɵangular_packages_forms_forms_d",function(){return dt}),n.d(t,"ɵangular_packages_forms_forms_e",function(){return u}),n.d(t,"ɵangular_packages_forms_forms_f",function(){return h}),n.d(t,"ɵangular_packages_forms_forms_g",function(){return M}),n.d(t,"ɵangular_packages_forms_forms_h",function(){return R}),n.d(t,"ɵangular_packages_forms_forms_i",function(){return Te}),n.d(t,"ɵangular_packages_forms_forms_j",function(){return Ne}),n.d(t,"ɵangular_packages_forms_forms_k",function(){return Me}),n.d(t,"ɵangular_packages_forms_forms_l",function(){return F}),n.d(t,"ɵangular_packages_forms_forms_m",function(){return V}),n.d(t,"ɵangular_packages_forms_forms_n",function(){return B}),n.d(t,"ɵangular_packages_forms_forms_o",function(){return G}),n.d(t,"ɵangular_packages_forms_forms_p",function(){return Ve}),n.d(t,"ɵangular_packages_forms_forms_q",function(){return Be}),n.d(t,"ɵangular_packages_forms_forms_r",function(){return Ye}),n.d(t,"ɵangular_packages_forms_forms_s",function(){return Ge}),n.d(t,"ɵangular_packages_forms_forms_t",function(){return $e}),n.d(t,"ɵangular_packages_forms_forms_u",function(){return ze}),n.d(t,"ɵangular_packages_forms_forms_v",function(){return z}),n.d(t,"ɵangular_packages_forms_forms_w",function(){return X}),n.d(t,"ɵangular_packages_forms_forms_x",function(){return J}),n.d(t,"ɵangular_packages_forms_forms_y",function(){return je}),n.d(t,"ɵangular_packages_forms_forms_z",function(){return Qe});var r=n(/*! @angular/core */0),i=n(/*! @angular/common */4),s=n(/*! rxjs */136),o=n(/*! rxjs */16),a=n(/*! rxjs/operators */10); /** * @license Angular v11.2.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const c=new r.InjectionToken("NgValueAccessor"),u={provide:c,useExisting:Object(r.forwardRef)(()=>l),multi:!0}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class l{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)}}l.decorators=[{type:r.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[u]}]}],l.ctorParameters=(()=>[{type:r.Renderer2},{type:r.ElementRef}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const h={provide:c,useExisting:Object(r.forwardRef)(()=>p),multi:!0};const d=new r.InjectionToken("CompositionEventMode");class p{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["ɵgetDOM"])()?Object(i["ɵgetDOM"])().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){const t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)}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)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function f(e){return null==e||0===e.length}function _(e){return null!=e&&"number"==typeof e.length}p.decorators=[{type:r.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[h]}]}],p.ctorParameters=(()=>[{type:r.Renderer2},{type:r.ElementRef},{type:Boolean,decorators:[{type:r.Optional},{type:r.Inject,args:[d]}]}]);const m=new r.InjectionToken("NgValidators"),g=new r.InjectionToken("NgAsyncValidators"),b=/^(?=.{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(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return f(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return f(e.value)?null:b.test(e.value)?null:{email:!0}}static minLength(e){return t=>f(t.value)||!_(t.value)?null:t.value.length_(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}: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(f(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(v);return 0==t.length?null:function(e){return E(S(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(v);return 0==t.length?null:function(e){const n=S(e,t).map(w);return Object(s.a)(n).pipe(Object(a.a)(E))}}}function v(e){return null!=e}function w(e){const t=Object(r["ɵisPromise"])(e)?Object(o.a)(e):e;if(!Object(r["ɵisObservable"])(t)&&("undefined"==typeof ngDevMode||ngDevMode))throw new Error("Expected validator to return Promise or Observable.");return t}function E(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function S(e,t){return t.map(t=>t(e))}function C(e){return e.map(e=>(function(e){return!e.validate})(e)?e:t=>e.validate(t))}function O(e){return null!=e?y.compose(C(e)):null}function I(e){return null!=e?y.composeAsync(C(e)):null}function x(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function T(e){return e._rawValidators}function A(e){return e._rawAsyncValidators} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class D{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=O(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=I(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}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}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class k extends D{get formDirective(){return null}get path(){return null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class P extends D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class M{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}const R={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")'};class N extends M{constructor(e){super(e)}}N.decorators=[{type:r.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:R}]}],N.ctorParameters=(()=>[{type:P,decorators:[{type:r.Self}]}]);class L extends M{constructor(e){super(e)}}L.decorators=[{type:r.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:R}]}],L.ctorParameters=(()=>[{type:k,decorators:[{type:r.Optional},{type:r.Self}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const F={provide:c,useExisting:Object(r.forwardRef)(()=>j),multi:!0};class j{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=(e=>{}),this.onTouched=(()=>{})}writeValue(e){const t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)}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)}}j.decorators=[{type:r.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[F]}]}],j.ctorParameters=(()=>[{type:r.Renderer2},{type:r.ElementRef}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const V={provide:c,useExisting:Object(r.forwardRef)(()=>U),multi:!0};class B{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)}}B.decorators=[{type:r.Injectable}];class U{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(P),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&&("undefined"==typeof ngDevMode||ngDevMode)&&function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}(),!this.name&&this.formControlName&&(this.name=this.formControlName)}}U.decorators=[{type:r.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[V]}]}],U.ctorParameters=(()=>[{type:r.Renderer2},{type:r.ElementRef},{type:B},{type:r.Injector}]),U.propDecorators={name:[{type:r.Input}],formControlName:[{type:r.Input}],value:[{type:r.Input}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const G={provide:c,useExisting:Object(r.forwardRef)(()=>q),multi:!0};class q{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)}}q.decorators=[{type:r.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[G]}]}],q.ctorParameters=(()=>[{type:r.Renderer2},{type:r.ElementRef}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const $={formControlName:'\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class H{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${$.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${$.formGroupName}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${$.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${$.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${$.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${$.formArrayName}`)}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(e){console.warn(`\n It looks like you're using ngModel on the same form field as ${e}.\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===e?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const z={provide:c,useExisting:Object(r.forwardRef)(()=>K),multi:!0};function W(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class K{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=Object.is}set compareWith(e){if("function"!=typeof e&&("undefined"==typeof ngDevMode||ngDevMode))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=W(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}}K.decorators=[{type:r.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[z]}]}],K.ctorParameters=(()=>[{type:r.Renderer2},{type:r.ElementRef}]),K.propDecorators={compareWith:[{type:r.Input}]};class Y{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(W(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}Y.decorators=[{type:r.Directive,args:[{selector:"option"}]}],Y.ctorParameters=(()=>[{type:r.ElementRef},{type:r.Renderer2},{type:K,decorators:[{type:r.Optional},{type:r.Host}]}]),Y.propDecorators={ngValue:[{type:r.Input,args:["ngValue"]}],value:[{type:r.Input,args:["value"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const X={provide:c,useExisting:Object(r.forwardRef)(()=>Z),multi:!0};function Q(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class Z{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=Object.is}set compareWith(e){if("function"!=typeof e&&("undefined"==typeof ngDevMode||ngDevMode))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(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t[{type:r.Renderer2},{type:r.ElementRef}]),Z.propDecorators={compareWith:[{type:r.Input}]};class J{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Q(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Q(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ee(e,t){return[...t.path,e]}function te(e,t){("undefined"==typeof ngDevMode||ngDevMode)&&(e||ce(t,"Cannot find control with"),t.valueAccessor||ce(t,"No value accessor for form control with")),ie(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&oe(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&oe(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ne(e,t,n=!0){const r=()=>{n&&("undefined"==typeof ngDevMode||ngDevMode)&&function(e){ce(e,"There is no FormControl instance attached to form control element with")}(t)};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),se(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function re(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ie(e,t,n){const r=T(e);null!==t.validator?e.setValidators(x(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const i=A(e);if(null!==t.asyncValidator?e.setAsyncValidators(x(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){const n=()=>e.updateValueAndValidity();re(t._rawValidators,n),re(t._rawAsyncValidators,n)}}function se(e,t,n){let r=!1;if(null!==e){if(null!==t.validator){const n=T(e);if(Array.isArray(n)&&n.length>0){const i=n.filter(e=>e!==t.validator);i.length!==n.length&&(r=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const n=A(e);if(Array.isArray(n)&&n.length>0){const i=n.filter(e=>e!==t.asyncValidator);i.length!==n.length&&(r=!0,e.setAsyncValidators(i))}}}if(n){const e=()=>{};re(t._rawValidators,e),re(t._rawAsyncValidators,e)}return r}function oe(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ae(e,t){null!=e||"undefined"!=typeof ngDevMode&&!ngDevMode||ce(t,"Cannot find control with"),ie(e,t,!1)}function ce(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 ue(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}J.decorators=[{type:r.Directive,args:[{selector:"option"}]}],J.ctorParameters=(()=>[{type:r.ElementRef},{type:r.Renderer2},{type:Z,decorators:[{type:r.Optional},{type:r.Host}]}]),J.propDecorators={ngValue:[{type:r.Input,args:["ngValue"]}],value:[{type:r.Input,args:["value"]}]};const le=[l,q,j,K,Z,U];function he(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function de(e,t){if(!t)return null;Array.isArray(t)||"undefined"!=typeof ngDevMode&&!ngDevMode||ce(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return t.forEach(t=>{t.constructor===p?n=t:!function(e){return le.some(t=>e.constructor===t)}(t)?(i&&("undefined"==typeof ngDevMode||ngDevMode)&&ce(e,"More than one custom value accessor matches form control with"),i=t):(r&&("undefined"==typeof ngDevMode||ngDevMode)&&ce(e,"More than one built-in value accessor matches form control with"),r=t)}),i||(r||(n||(("undefined"==typeof ngDevMode||ngDevMode)&&ce(e,"No valid value accessor for form control with"),null)))}function pe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function fe(e,t,n,r){"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(H.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const _e="VALID",me="INVALID",ge="PENDING",be="DISABLED";function ye(e){return(Se(e)?e.validators:e)||null}function ve(e){return Array.isArray(e)?O(e):e||null}function we(e,t){return(Se(t)?t.asyncValidators:e)||null}function Ee(e){return Array.isArray(e)?I(e):e||null}function Se(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Ce{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=(()=>{}),this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=ve(this._rawValidators),this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===_e}get invalid(){return this.status===me}get pending(){return this.status==ge}get disabled(){return this.status===be}get enabled(){return this.status!==be}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._rawValidators=e,this._composedValidatorFn=ve(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Ee(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=ge,!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=be,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=_e,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(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(),this.status!==_e&&this.status!==ge||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()?be:_e}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=ge,this._hasOwnPendingAsyncValidator=!0;const t=w(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(n)),Array.isArray(t)&&0===t.length)return null;let r=e;return t.forEach(e=>{r=r instanceof Ie?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof xe&&r.at(e)||null}),r}(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.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?be:this.errors?me:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ge)?ge:this._anyControlsHaveStatus(me)?me:_e}_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){Se(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){const t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}}class Oe extends Ce{constructor(e=null,t,n){super(ye(t),we(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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)}_unregisterOnChange(e){pe(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){pe(this._onDisabledChange,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 Ie extends Ce{constructor(e,t,n){super(ye(t),we(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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={}){null!=e&&(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 Oe?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=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_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 xe extends Ce{constructor(e,t,n){super(ye(t),we(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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={}){null!=e&&(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 Oe?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)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Te={provide:k,useExisting:Object(r.forwardRef)(()=>De)},Ae=(()=>Promise.resolve(null))();class De extends k{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new Ie({},O(e),I(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ae.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),te(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ae.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),pe(this._directives,e)})}addFormGroup(e){Ae.then(()=>{const t=this._findContainer(e.path),n=new Ie({});ae(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ae.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ae.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,he(this.form,this._directives),this.ngSubmit.emit(e),!1}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}}De.decorators=[{type:r.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",providers:[Te],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],De.ctorParameters=(()=>[{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]}]),De.propDecorators={options:[{type:r.Input,args:["ngFormOptions"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class ke extends k{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ee(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}ke.decorators=[{type:r.Directive}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Pe{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 ${$.formControlName}\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 ${$.ngModelWithFormGroup}`)}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 ${$.formGroupName}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${$.ngModelGroup}`)}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: \n Example 2: ')}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 ${$.formGroupName}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${$.ngModelGroup}`)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const Me={provide:k,useExisting:Object(r.forwardRef)(()=>Re)};class Re extends ke{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){this._parent instanceof Re||this._parent instanceof De||"undefined"!=typeof ngDevMode&&!ngDevMode||Pe.modelGroupParentException()}}Re.decorators=[{type:r.Directive,args:[{selector:"[ngModelGroup]",providers:[Me],exportAs:"ngModelGroup"}]}],Re.ctorParameters=(()=>[{type:k,decorators:[{type:r.Host},{type:r.SkipSelf}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]}]),Re.propDecorators={name:[{type:r.Input,args:["ngModelGroup"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Ne={provide:P,useExisting:Object(r.forwardRef)(()=>Fe)},Le=(()=>Promise.resolve(null))();class Fe extends P{constructor(e,t,n,i){super(),this.control=new Oe,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=de(this,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ue(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ee(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){te(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){("undefined"==typeof ngDevMode||ngDevMode)&&(!(this._parent instanceof Re)&&this._parent instanceof ke?Pe.formGroupNameException():this._parent instanceof Re||this._parent instanceof De||Pe.modelParentException())}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||"undefined"!=typeof ngDevMode&&!ngDevMode||Pe.missingNameException()}_updateValue(e){Le.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Le.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}Fe.decorators=[{type:r.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ne],exportAs:"ngModel"}]}],Fe.ctorParameters=(()=>[{type:k,decorators:[{type:r.Optional},{type:r.Host}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[c]}]}]),Fe.propDecorators={name:[{type:r.Input}],isDisabled:[{type:r.Input,args:["disabled"]}],model:[{type:r.Input,args:["ngModel"]}],options:[{type:r.Input,args:["ngModelOptions"]}],update:[{type:r.Output,args:["ngModelChange"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class je{}je.decorators=[{type:r.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Ve=new r.InjectionToken("NgModelWithFormControlWarning"),Be={provide:P,useExisting:Object(r.forwardRef)(()=>Ue)};class Ue extends P{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=de(this,n)}set isDisabled(e){("undefined"==typeof ngDevMode||ngDevMode)&&H.disabledAttrWarning()}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&ne(t,this,!1),te(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ue(e,this.viewModel)&&(("undefined"==typeof ngDevMode||ngDevMode)&&fe("formControl",Ue,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ne(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}Ue._ngModelWarningSentOnce=!1,Ue.decorators=[{type:r.Directive,args:[{selector:"[formControl]",providers:[Be],exportAs:"ngForm"}]}],Ue.ctorParameters=(()=>[{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[c]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[Ve]}]}]),Ue.propDecorators={form:[{type:r.Input,args:["formControl"]}],isDisabled:[{type:r.Input,args:["disabled"]}],model:[{type:r.Input,args:["ngModel"]}],update:[{type:r.Output,args:["ngModelChange"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Ge={provide:k,useExisting:Object(r.forwardRef)(()=>qe)};class qe extends k{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=(()=>this._updateDomValue()),this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(se(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return te(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ne(e.control||null,e,!1),pe(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,he(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(ne(e.control||null,e),t&&te(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ae(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);if(t){(function(e,t){return se(e,t,!1)})(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ie(this.form,this,!1),this._oldForm&&se(this._oldForm,this,!1)}_checkFormPresent(){this.form||"undefined"!=typeof ngDevMode&&!ngDevMode||H.missingFormException()}}qe.decorators=[{type:r.Directive,args:[{selector:"[formGroup]",providers:[Ge],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],qe.ctorParameters=(()=>[{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]}]),qe.propDecorators={form:[{type:r.Input,args:["formGroup"]}],ngSubmit:[{type:r.Output}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const $e={provide:k,useExisting:Object(r.forwardRef)(()=>He)};class He extends ke{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Ke(this._parent)&&("undefined"==typeof ngDevMode||ngDevMode)&&H.groupParentException()}}He.decorators=[{type:r.Directive,args:[{selector:"[formGroupName]",providers:[$e]}]}],He.ctorParameters=(()=>[{type:k,decorators:[{type:r.Optional},{type:r.Host},{type:r.SkipSelf}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]}]),He.propDecorators={name:[{type:r.Input,args:["formGroupName"]}]};const ze={provide:k,useExisting:Object(r.forwardRef)(()=>We)};class We extends k{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ee(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ke(this._parent)&&("undefined"==typeof ngDevMode||ngDevMode)&&H.arrayParentException()}}function Ke(e){return!(e instanceof He||e instanceof qe||e instanceof We)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */We.decorators=[{type:r.Directive,args:[{selector:"[formArrayName]",providers:[ze]}]}],We.ctorParameters=(()=>[{type:k,decorators:[{type:r.Optional},{type:r.Host},{type:r.SkipSelf}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]}]),We.propDecorators={name:[{type:r.Input,args:["formArrayName"]}]};const Ye={provide:P,useExisting:Object(r.forwardRef)(()=>Xe)};class Xe extends P{constructor(e,t,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=de(this,i)}set isDisabled(e){("undefined"==typeof ngDevMode||ngDevMode)&&H.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),ue(e,this.viewModel)&&(("undefined"==typeof ngDevMode||ngDevMode)&&fe("formControlName",Xe,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ee(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){("undefined"==typeof ngDevMode||ngDevMode)&&(!(this._parent instanceof He)&&this._parent instanceof ke?H.ngModelGroupException():this._parent instanceof He||this._parent instanceof qe||this._parent instanceof We||H.controlParentException())}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}Xe._ngModelWarningSentOnce=!1,Xe.decorators=[{type:r.Directive,args:[{selector:"[formControlName]",providers:[Ye]}]}],Xe.ctorParameters=(()=>[{type:k,decorators:[{type:r.Optional},{type:r.Host},{type:r.SkipSelf}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[m]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[g]}]},{type:Array,decorators:[{type:r.Optional},{type:r.Self},{type:r.Inject,args:[c]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[Ve]}]}]),Xe.propDecorators={name:[{type:r.Input,args:["formControlName"]}],isDisabled:[{type:r.Input,args:["disabled"]}],model:[{type:r.Input,args:["ngModel"]}],update:[{type:r.Output,args:["ngModelChange"]}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Qe={provide:m,useExisting:Object(r.forwardRef)(()=>Je),multi:!0},Ze={provide:m,useExisting:Object(r.forwardRef)(()=>et),multi:!0};class Je{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!==`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?y.required(e):null}registerOnValidatorChange(e){this._onChange=e}}Je.decorators=[{type:r.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Qe],host:{"[attr.required]":'required ? "" : null'}}]}],Je.propDecorators={required:[{type:r.Input}]};class et extends Je{validate(e){return this.required?y.requiredTrue(e):null}}et.decorators=[{type:r.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ze],host:{"[attr.required]":'required ? "" : null'}}]}];const tt={provide:m,useExisting:Object(r.forwardRef)(()=>nt),multi:!0};class nt{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?y.email(e):null}registerOnValidatorChange(e){this._onChange=e}}nt.decorators=[{type:r.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[tt]}]}],nt.propDecorators={email:[{type:r.Input}]};const rt={provide:m,useExisting:Object(r.forwardRef)(()=>it),multi:!0};class it{constructor(){this._validator=y.nullValidator}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=y.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}it.decorators=[{type:r.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[rt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],it.propDecorators={minlength:[{type:r.Input}]};const st={provide:m,useExisting:Object(r.forwardRef)(()=>ot),multi:!0};class ot{constructor(){this._validator=y.nullValidator}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=y.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}ot.decorators=[{type:r.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[st],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],ot.propDecorators={maxlength:[{type:r.Input}]};const at={provide:m,useExisting:Object(r.forwardRef)(()=>ct),multi:!0};class ct{constructor(){this._validator=y.nullValidator}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=y.pattern(this.pattern)}}ct.decorators=[{type:r.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[at],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],ct.propDecorators={pattern:[{type:r.Input}]}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ut=[je,Y,J,p,j,q,l,K,Z,U,N,L,Je,it,ot,ct,et,nt],lt=[Fe,Re,De],ht=[Ue,qe,Xe,He,We];class dt{}dt.decorators=[{type:r.NgModule,args:[{declarations:ut,exports:ut}]}];class pt{group(e,t=null){const n=this._reduceControls(e);let r=null,i=null,s=void 0;return null!=t&&(! /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null):(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0)),new Ie(n,{asyncValidators:i,updateOn:s,validators:r})}control(e,t,n){return new Oe(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new xe(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){if(e instanceof Oe||e instanceof Ie||e instanceof xe)return e;if(Array.isArray(e)){const t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)}}pt.decorators=[{type:r.Injectable}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const ft=new r.Version("11.2.0"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class _t{}_t.decorators=[{type:r.NgModule,args:[{declarations:lt,providers:[B],exports:[dt,lt]}]}];class mt{static withConfig(e){return{ngModule:mt,providers:[{provide:Ve,useValue:e.warnOnNgModelWithFormControl}]}}}mt.decorators=[{type:r.NgModule,args:[{declarations:[ht],providers:[pt,B],exports:[dt,ht]}]}]}, /*!*******************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/well-known-symbol.js ***! \*******************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/global */26),i=n(/*! ../internals/shared */123),s=n(/*! ../internals/has */34),o=n(/*! ../internals/uid */125),a=n(/*! ../internals/native-symbol */148),c=n(/*! ../internals/use-symbol-as-uid */199),u=i("wks"),l=r.Symbol,h=c?l:l&&l.withoutSetter||o;e.exports=function(e){return s(u,e)&&(a||"string"==typeof u[e])||(a&&s(l,e)?u[e]=l[e]:u[e]=h("Symbol."+e)),u[e]}}, /*!***************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/mergeMap.js ***! \***************************************************************************/ /*! exports provided: mergeMap, MergeMapOperator, MergeMapSubscriber, flatMap */ /*! exports used: flatMap, mergeMap */function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return l});var r=n(/*! tslib */1),i=n(/*! ./map */10),s=n(/*! ../observable/from */16),o=n(/*! ../innerSubscribe */5);function a(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(a(function(n,r){return Object(s.a)(e(n,r)).pipe(Object(i.a)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))},e}(),u=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.b),l=a}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/EmptyError.js ***! \************************************************************************/ /*! exports provided: EmptyError */ /*! exports used: EmptyError */function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()}, /*!*****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/fromArray.js ***! \*****************************************************************************/ /*! exports provided: fromArray */ /*! exports used: fromArray */function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(/*! ../Observable */6),i=n(/*! ../util/subscribeToArray */109),s=n(/*! ../scheduled/scheduleArray */76);function o(e,t){return t?Object(s.a)(e,t):new r.a(Object(i.a)(e))}}, /*!****************************************************************************************!*\ !*** ../tabby/app/node_modules/@angular/platform-browser/fesm2015/platform-browser.js ***! \****************************************************************************************/ /*! exports provided: ɵgetDOM, BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, ɵBROWSER_SANITIZATION_PROVIDERS, ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__, ɵBrowserDomAdapter, ɵBrowserGetTestability, ɵDomEventsPlugin, ɵDomRendererFactory2, ɵDomSanitizerImpl, ɵDomSharedStylesHost, ɵELEMENT_PROBE_PROVIDERS, ɵELEMENT_PROBE_PROVIDERS__POST_R3__, ɵHAMMER_PROVIDERS__POST_R3__, ɵHammerGesturesPlugin, ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, ɵKeyEventsPlugin, ɵNAMESPACE_URIS, ɵSharedStylesHost, ɵTRANSITION_ID, ɵangular_packages_platform_browser_platform_browser_a, ɵangular_packages_platform_browser_platform_browser_b, ɵangular_packages_platform_browser_platform_browser_c, ɵangular_packages_platform_browser_platform_browser_d, ɵangular_packages_platform_browser_platform_browser_e, ɵangular_packages_platform_browser_platform_browser_f, ɵangular_packages_platform_browser_platform_browser_g, ɵangular_packages_platform_browser_platform_browser_h, ɵangular_packages_platform_browser_platform_browser_i, ɵangular_packages_platform_browser_platform_browser_j, ɵangular_packages_platform_browser_platform_browser_k, ɵangular_packages_platform_browser_platform_browser_l, ɵangular_packages_platform_browser_platform_browser_m, ɵangular_packages_platform_browser_platform_browser_n, ɵangular_packages_platform_browser_platform_browser_o, ɵescapeHtml, ɵflattenStyles, ɵinitDomAdapter, ɵshimContentAttribute, ɵshimHostAttribute */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ../tabby/app/dist/bundle.js (referenced with cjs require), ./terminal.ts (referenced with cjs require) */function(e,t,n){"use strict";n.r(t),n.d(t,"BrowserModule",function(){return be}),n.d(t,"BrowserTransferStateModule",function(){return Re}),n.d(t,"By",function(){return Ne}),n.d(t,"DomSanitizer",function(){return se}),n.d(t,"EVENT_MANAGER_PLUGINS",function(){return E}),n.d(t,"EventManager",function(){return S}),n.d(t,"HAMMER_GESTURE_CONFIG",function(){return H}),n.d(t,"HAMMER_LOADER",function(){return z}),n.d(t,"HammerGestureConfig",function(){return W}),n.d(t,"HammerModule",function(){return Z}),n.d(t,"Meta",function(){return ve}),n.d(t,"Title",function(){return Se}),n.d(t,"TransferState",function(){return Pe}),n.d(t,"VERSION",function(){return Le}),n.d(t,"disableDebugTools",function(){return Ae}),n.d(t,"enableDebugTools",function(){return Te}),n.d(t,"makeStateKey",function(){return ke}),n.d(t,"platformBrowser",function(){return me}),n.d(t,"ɵBROWSER_SANITIZATION_PROVIDERS",function(){return _e}),n.d(t,"ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__",function(){return fe}),n.d(t,"ɵBrowserDomAdapter",function(){return o}),n.d(t,"ɵBrowserGetTestability",function(){return d}),n.d(t,"ɵDomEventsPlugin",function(){return q}),n.d(t,"ɵDomRendererFactory2",function(){return F}),n.d(t,"ɵDomSanitizerImpl",function(){return ae}),n.d(t,"ɵDomSharedStylesHost",function(){return I}),n.d(t,"ɵELEMENT_PROBE_PROVIDERS",function(){return w}),n.d(t,"ɵELEMENT_PROBE_PROVIDERS__POST_R3__",function(){return y}),n.d(t,"ɵHAMMER_PROVIDERS__POST_R3__",function(){return Y}),n.d(t,"ɵHammerGesturesPlugin",function(){return K}),n.d(t,"ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS",function(){return de}),n.d(t,"ɵKeyEventsPlugin",function(){return ie}),n.d(t,"ɵNAMESPACE_URIS",function(){return x}),n.d(t,"ɵSharedStylesHost",function(){return O}),n.d(t,"ɵTRANSITION_ID",function(){return u}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_a",function(){return ue}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_b",function(){return le}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_c",function(){return ge}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_d",function(){return ye}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_e",function(){return Ee}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_f",function(){return Me}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_g",function(){return C}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_h",function(){return X}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_i",function(){return Q}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_j",function(){return oe}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_k",function(){return l}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_l",function(){return h}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_m",function(){return b}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_n",function(){return v}),n.d(t,"ɵangular_packages_platform_browser_platform_browser_o",function(){return s}),n.d(t,"ɵescapeHtml",function(){return De}),n.d(t,"ɵflattenStyles",function(){return R}),n.d(t,"ɵinitDomAdapter",function(){return ce}),n.d(t,"ɵshimContentAttribute",function(){return P}),n.d(t,"ɵshimHostAttribute",function(){return M});var r=n(/*! @angular/common */4);n.d(t,"ɵgetDOM",function(){return r["ɵgetDOM"]});var i=n(/*! @angular/core */0); /** * @license Angular v11.2.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class s extends r["ɵDomAdapter"]{constructor(){super()}supportsDOMEvents(){return!0}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(()=>{if(i["ɵglobal"].Node)i["ɵglobal"].Node.prototype.contains})();class o extends s{static makeCurrent(){Object(r["ɵsetRootDomAdapter"])(new o)}getProperty(e,t){return e[t]}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()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}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=function(){if(!c&&!(c=document.querySelector("base")))return null;return c.getAttribute("href")}();return null==t?null:function(e){a||(a=document.createElement("a"));return a.setAttribute("href",e),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r["ɵparseCookieValue"])(document.cookie,e)}}let a,c=null;const u=new i.InjectionToken("TRANSITION_ID");function l(e,t,n){return()=>{n.get(i.ApplicationInitStatus).donePromise.then(()=>{const n=Object(r["ɵgetDOM"])();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}}const h=[{provide:i.APP_INITIALIZER,useFactory:l,deps:[u,r.DOCUMENT,i.Injector],multi:!0}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class d{static init(){Object(i.setTestabilityGetter)(new d)}addToWindow(e){i["ɵglobal"].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["ɵglobal"].getAllAngularTestabilities=(()=>e.getAllTestabilities()),i["ɵglobal"].getAllAngularRootElements=(()=>e.getAllRootElements());i["ɵglobal"].frameworkStabilizers||(i["ɵglobal"].frameworkStabilizers=[]),i["ɵglobal"].frameworkStabilizers.push(e=>{const t=i["ɵglobal"].getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?Object(r["ɵgetDOM"])().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function p(e,t){if("undefined"==typeof COMPILED||!COMPILED){(i["ɵglobal"].ng=i["ɵglobal"].ng||{})[e]=t}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const f=(()=>({ApplicationRef:i.ApplicationRef,NgZone:i.NgZone}))(),_="probe",m="coreTokens";function g(e){return Object(i["ɵgetDebugNodeR2"])(e)}function b(e){return p(_,g),p(m,Object.assign(Object.assign({},f),(e||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>g}const y=[],v=[{provide:i.APP_INITIALIZER,useFactory:b,deps:[[i.NgProbeToken,new i.Optional]],multi:!0}],w=v,E=new i.InjectionToken("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 t=0;t[{type:Array,decorators:[{type:i.Inject,args:[E]}]},{type:i.NgZone}]);class C{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=Object(r["ɵgetDOM"])().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class O{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)}}O.decorators=[{type:i.Injectable}];class I extends O{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=>Object(r["ɵgetDOM"])().remove(e))}}I.decorators=[{type:i.Injectable}],I.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const x={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/"},T=/%COMP%/g,A="undefined"==typeof ngDevMode||!!ngDevMode,D="_nghost-%COMP%",k="_ngcontent-%COMP%";function P(e){return k.replace(T,e)}function M(e){return D.replace(T,e)}function R(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let L=!1;class F{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new j(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new U(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case i.ViewEncapsulation.ShadowDom:return"undefined"!=typeof ngDevMode&&!ngDevMode||L||1!==t.encapsulation||(L=!0,console.warn("ViewEncapsulation.Native is no longer supported. Falling back to ViewEncapsulation.ShadowDom. The fallback will be removed in v12.")),new G(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=R(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}F.decorators=[{type:i.Injectable}],F.ctorParameters=(()=>[{type:S},{type:I},{type:String,decorators:[{type:i.Inject,args:[i.APP_ID]}]}]);class j{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(x[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=x[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=x[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.RendererStyleFlags2.DashCase|i.RendererStyleFlags2.Important)?e.style.setProperty(t,n,r&i.RendererStyleFlags2.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&i.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){A&&B(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return A&&B(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,N(n)):this.eventManager.addEventListener(e,t,N(n))}}const V=(()=>"@".charCodeAt(0))();function B(e,t){if(e.charCodeAt(0)===V)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class U extends j{constructor(e,t,n,r){super(e),this.component=n;const i=R(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr=P(r+"-"+n.id),this.hostAttr=M(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 G extends j{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=R(r.id,r.styles,[]);for(let e=0;ethis.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}q.decorators=[{type:i.Injectable}],q.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const $={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,doubletap:!0},H=new i.InjectionToken("HammerGestureConfig"),z=new i.InjectionToken("HammerLoader");class W{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 e in this.overrides)t.get(e).set(this.overrides[e]);return t}}W.decorators=[{type:i.Injectable}];class K extends C{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!$.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}}K.decorators=[{type:i.Injectable}],K.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]},{type:W,decorators:[{type:i.Inject,args:[H]}]},{type:i["ɵConsole"]},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[z]}]}]);const Y=[],X=[{provide:E,useClass:K,multi:!0,deps:[r.DOCUMENT,H,i["ɵConsole"],[new i.Optional,z]]},{provide:H,useClass:W,deps:[]}],Q=X;class Z{}Z.decorators=[{type:i.NgModule,args:[{providers:X}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const J=["alt","control","meta","shift"],ee=3,te={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ne={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},re={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class ie extends C{constructor(e){super(e)}supports(e){return null!=ie.parseEventName(e)}addEventListener(e,t,n){const i=ie.parseEventName(t),s=ie.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r["ɵgetDOM"])().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=ie._normalizeKey(t.pop());let i="";if(J.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=function(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===ee&&ne.hasOwnProperty(t)&&(t=ne[t]))}return te[t]||t} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),J.forEach(r=>{if(r!=n){(0,re[r])(e)&&(t+=r+".")}}),t+=n}static eventCallback(e,t,n){return r=>{ie.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}ie.decorators=[{type:i.Injectable}],ie.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]}]);class se{}function oe(e){return new ae(e.get(r.DOCUMENT))}se.ɵprov=Object(i["ɵɵdefineInjectable"])({factory:function(){return Object(i["ɵɵinject"])(ae)},token:se,providedIn:"root"}),se.decorators=[{type:i.Injectable,args:[{providedIn:"root",useExisting:Object(i.forwardRef)(()=>ae)}]}];class ae extends se{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.SecurityContext.NONE:return t;case i.SecurityContext.HTML:return Object(i["ɵallowSanitizationBypassAndThrow"])(t,"HTML")?Object(i["ɵunwrapSafeValue"])(t):Object(i["ɵ_sanitizeHtml"])(this._doc,String(t)).toString();case i.SecurityContext.STYLE:return Object(i["ɵallowSanitizationBypassAndThrow"])(t,"Style")?Object(i["ɵunwrapSafeValue"])(t):t;case i.SecurityContext.SCRIPT:if(Object(i["ɵallowSanitizationBypassAndThrow"])(t,"Script"))return Object(i["ɵunwrapSafeValue"])(t);throw new Error("unsafe value used in a script context");case i.SecurityContext.URL:Object(i["ɵgetSanitizationBypassType"])(t);return Object(i["ɵallowSanitizationBypassAndThrow"])(t,"URL")?Object(i["ɵunwrapSafeValue"])(t):Object(i["ɵ_sanitizeUrl"])(String(t));case i.SecurityContext.RESOURCE_URL:if(Object(i["ɵallowSanitizationBypassAndThrow"])(t,"ResourceURL"))return Object(i["ɵunwrapSafeValue"])(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(i["ɵbypassSanitizationTrustHtml"])(e)}bypassSecurityTrustStyle(e){return Object(i["ɵbypassSanitizationTrustStyle"])(e)}bypassSecurityTrustScript(e){return Object(i["ɵbypassSanitizationTrustScript"])(e)}bypassSecurityTrustUrl(e){return Object(i["ɵbypassSanitizationTrustUrl"])(e)}bypassSecurityTrustResourceUrl(e){return Object(i["ɵbypassSanitizationTrustResourceUrl"])(e)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ce(){o.makeCurrent(),d.init()}function ue(){return new i.ErrorHandler}function le(){return Object(i["ɵsetDocument"])(document),document}ae.ɵprov=Object(i["ɵɵdefineInjectable"])({factory:function(){return oe(Object(i["ɵɵinject"])(i.INJECTOR))},token:ae,providedIn:"root"}),ae.decorators=[{type:i.Injectable,args:[{providedIn:"root",useFactory:oe,deps:[i.Injector]}]}],ae.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]}]);const he=r["ɵPLATFORM_BROWSER_ID"],de=[{provide:i.PLATFORM_ID,useValue:he},{provide:i.PLATFORM_INITIALIZER,useValue:ce,multi:!0},{provide:r.DOCUMENT,useFactory:le,deps:[]}],pe=[{provide:i.Sanitizer,useExisting:se},{provide:se,useClass:ae,deps:[r.DOCUMENT]}],fe=[],_e=pe,me=Object(i.createPlatformFactory)(i.platformCore,"browser",de),ge=[_e,{provide:i["ɵINJECTOR_SCOPE"],useValue:"root"},{provide:i.ErrorHandler,useFactory:ue,deps:[]},{provide:E,useClass:q,multi:!0,deps:[r.DOCUMENT,i.NgZone,i.PLATFORM_ID]},{provide:E,useClass:ie,multi:!0,deps:[r.DOCUMENT]},Q,{provide:F,useClass:F,deps:[S,I,i.APP_ID]},{provide:i.RendererFactory2,useExisting:F},{provide:O,useExisting:I},{provide:I,useClass:I,deps:[r.DOCUMENT]},{provide:i.Testability,useClass:i.Testability,deps:[i.NgZone]},{provide:S,useClass:S,deps:[E,i.NgZone]},w];class be{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:be,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:u,useExisting:i.APP_ID},h]}}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ye(){return new ve(Object(i["ɵɵinject"])(r.DOCUMENT))}be.decorators=[{type:i.NgModule,args:[{providers:ge,exports:[r.CommonModule,i.ApplicationModule]}]}],be.ctorParameters=(()=>[{type:be,decorators:[{type:i.Optional},{type:i.SkipSelf},{type:i.Inject,args:[be]}]}]);class ve{constructor(e){this._doc=e,this._dom=Object(r["ɵgetDOM"])()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((e,n)=>(n&&e.push(this._getOrCreateElement(n,t)),e),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);const n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){const t=this._parseSelector(e),n=this.getTag(t);if(n&&this._containsAttributes(e,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(e,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(n=>t.setAttribute(this._getMetaKeyMap(n),e[n])),t}_parseSelector(e){const t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(n=>t.getAttribute(this._getMetaKeyMap(n))===e[n])}_getMetaKeyMap(e){return we[e]||e}}ve.ɵprov=Object(i["ɵɵdefineInjectable"])({factory:ye,token:ve,providedIn:"root"}),ve.decorators=[{type:i.Injectable,args:[{providedIn:"root",useFactory:ye,deps:[]}]}],ve.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]}]);const we={httpEquiv:"http-equiv"}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ee(){return new Se(Object(i["ɵɵinject"])(r.DOCUMENT))}class Se{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}Se.ɵprov=Object(i["ɵɵdefineInjectable"])({factory:Ee,token:Se,providedIn:"root"}),Se.decorators=[{type:i.Injectable,args:[{providedIn:"root",useFactory:Ee,deps:[]}]}],Se.ctorParameters=(()=>[{type:void 0,decorators:[{type:i.Inject,args:[r.DOCUMENT]}]}]); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const Ce="undefined"!=typeof window&&window||{}; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */class Oe{constructor(e,t){this.msPerTick=e,this.numTicks=t}}class Ie{constructor(e){this.appRef=e.injector.get(i.ApplicationRef)}timeChangeDetection(e){const t=e&&e.record,n=null!=Ce.console.profile;t&&n&&Ce.console.profile("Change Detection");const i=Object(r["ɵgetDOM"])().performanceNow();let s=0;for(;s<5||Object(r["ɵgetDOM"])().performanceNow()-i<500;)this.appRef.tick(),s++;const o=Object(r["ɵgetDOM"])().performanceNow();t&&n&&Ce.console.profileEnd("Change Detection");const a=(o-i)/s;return Ce.console.log(`ran ${s} change detection cycles`),Ce.console.log(`${a.toFixed(2)} ms per check`),new Oe(a,s)}} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */const xe="profiler";function Te(e){return p(xe,new Ie(e)),e}function Ae(){p(xe,null)} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function De(e){const t={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return e.replace(/[&"'<>]/g,e=>t[e])}function ke(e){return e}class Pe{constructor(){this.store={},this.onSerializeCallbacks={}}static init(e){const t=new Pe;return t.store=e,t}get(e,t){return void 0!==this.store[e]?this.store[e]:t}set(e,t){this.store[e]=t}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}onSerialize(e,t){this.onSerializeCallbacks[e]=t}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)}}function Me(e,t){const n=e.getElementById(t+"-state");let r={};if(n&&n.textContent)try{r=JSON.parse(function(e){const t={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,e=>t[e])}(n.textContent))}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return Pe.init(r)}Pe.decorators=[{type:i.Injectable}];class Re{}Re.decorators=[{type:i.NgModule,args:[{providers:[{provide:Pe,useFactory:Me,deps:[r.DOCUMENT,i.APP_ID]}]}]}]; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ class Ne{static all(){return()=>!0}static css(e){return t=>null!=t.nativeElement&&function(e,t){if(Object(r["ɵgetDOM"])().isElementNode(e))return e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t);return!1} /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t.nativeElement,e)}static directive(e){return t=>-1!==t.providerTokens.indexOf(e)}}const Le=new i.Version("11.2.0"); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */}, /*!*********************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js ***! \*********************************************************************************/ /*! exports provided: AsyncScheduler */ /*! exports used: AsyncScheduler */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! tslib */1),i=n(/*! ../Scheduler */87),s=function(e){function t(n,r){void 0===r&&(r=i.a.now);var s=e.call(this,n,function(){return t.delegate&&t.delegate!==s?t.delegate.now():r()})||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return r.c(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.a)}, /*!*********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/AsyncSubject.js ***! \*********************************************************************/ /*! exports provided: AsyncSubject */ /*! exports used: AsyncSubject */function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(/*! tslib */1),i=n(/*! ./Subject */7),s=n(/*! ./Subscription */8),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.c(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),s.a.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.a)}, /*!******************************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js + 1 modules ***! \******************************************************************************************/ /*! exports provided: AsyncAction */ /*! exports used: AsyncAction */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscription.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/tabby-core/node_modules/tslib/tslib.es6.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */function(e,t,n){"use strict";var r=n(1),i=function(e){function t(t,n){return e.call(this)||this}return r.c(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(8).a);n.d(t,"a",function(){return s});var s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.c(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(i)}, /*!****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/switchMap.js ***! \****************************************************************************/ /*! exports provided: switchMap */ /*! exports used: switchMap */function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(/*! tslib */1),i=n(/*! ./map */10),s=n(/*! ../observable/from */16),o=n(/*! ../innerSubscribe */5);function a(e,t){return"function"==typeof t?function(n){return n.pipe(a(function(n,r){return Object(s.a)(e(n,r)).pipe(Object(i.a)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.c(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t)},t.prototype._innerSub=function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new o.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(o.c)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=void 0},t.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e){this.destination.next(e)},t}(o.b)}, /*!***********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/isNumeric.js ***! \***********************************************************************/ /*! exports provided: isNumeric */ /*! exports used: isNumeric */function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(/*! ./isArray */12);function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/BehaviorSubject.js ***! \************************************************************************/ /*! exports provided: BehaviorSubject */ /*! exports used: BehaviorSubject */function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(/*! tslib */1),i=n(/*! ./Subject */7),s=n(/*! ./util/ObjectUnsubscribedError */31),o=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.a)}, /*!*******************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/fails.js ***! \*******************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}}, /*!******************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/reflect-metadata.js ***! \******************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../modules/es.map */194),i=n(/*! ../modules/es.weak-map */215),s=n(/*! ../internals/shared */123)("metadata"),o=s.store||(s.store=new i),a=function(e,t,n){var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}var s=i.get(t);if(!s){if(!n)return;i.set(t,s=new r)}return s};e.exports={store:o,getMap:a,has:function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){a(n,r,!0).set(e,t)},keys:function(e,t){var n=a(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}}, /*!*************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/Observable.js ***! \*************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./util/canReportError */352),i=n(/*! ./util/toSubscriber */354),s=n(/*! ./symbol/observable */83),o=n(/*! ./util/pipe */355),a=n(/*! ./config */134),c=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=i.toSubscriber(e,t,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||a.config.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),a.config.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),r.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=u(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[s.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=c(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(u(n),t.scheduled=void 0)},t}(n(46).a),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof c&&(n=e.pop()),null===a&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(n)(Object(o.a)(e,a))}}, /*!************************************************************!*\ !*** ./node_modules/css-loader/dist/runtime/url-escape.js ***! \************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}}, /*!********************************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/create-non-enumerable-property.js ***! \********************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/descriptors */59),i=n(/*! ../internals/object-define-property */60),s=n(/*! ../internals/create-property-descriptor */116);e.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}}, /*!***************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/mergeAll.js ***! \***************************************************************************/ /*! exports provided: mergeAll */ /*! exports used: mergeAll */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! ./mergeMap */40),i=n(/*! ../util/identity */22);function s(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.b)(i.a,e)}}, /*!***************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/refCount.js ***! \***************************************************************************/ /*! exports provided: refCount */ /*! exports used: refCount */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! tslib */1),i=n(/*! ../Subscriber */3);function s(){return function(e){return e.lift(new o(e))}}var o=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.c(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)}, /*!******************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/throwError.js ***! \******************************************************************************/ /*! exports provided: throwError */ /*! exports used: throwError */function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(/*! ../Observable */6);function i(e,t){return t?new r.a(function(n){return t.schedule(s,0,{error:e,subscriber:n})}):new r.a(function(t){return t.error(e)})}function s(e){var t=e.error;e.subscriber.error(t)}}, /*!**********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/ReplaySubject.js ***! \**********************************************************************/ /*! exports provided: ReplaySubject */ /*! exports used: ReplaySubject */function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(/*! tslib */1),i=n(/*! ./Subject */7),s=n(/*! ./scheduler/queue */85),o=n(/*! ./Subscription */8),a=n(/*! ./operators/observeOn */104),c=n(/*! ./util/ObjectUnsubscribedError */31),u=n(/*! ./SubjectSubscription */107),l=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.c(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new h(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=r.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?t=o.a.EMPTY:(this.observers.push(e),t=new u.a(this,e)),i&&e.add(e=new a.a(e,i)),n)for(var l=0;lt&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r},t}(i.a),h=function(){return function(e,t){this.time=e,this.value=t}}()}, /*!*************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/defer.js ***! \*************************************************************************/ /*! exports provided: defer */ /*! exports used: defer */function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(/*! ../Observable */6),i=n(/*! ./from */16),s=n(/*! ./empty */15);function o(e){return new r.a(function(t){var n;try{n=e()}catch(e){return void t.error(e)}return(n?Object(i.a)(n):Object(s.b)()).subscribe(t)})}}, /*!***********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/zip.js ***! \***********************************************************************/ /*! exports provided: zip, ZipOperator, ZipSubscriber */ /*! exports used: ZipOperator, zip */function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var r=n(/*! tslib */1),i=n(/*! ./fromArray */42),s=n(/*! ../util/isArray */12),o=n(/*! ../Subscriber */3),a=n(/*! ../../internal/symbol/iterator */28),c=n(/*! ../innerSubscribe */5);function u(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),f=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.c(t,e),t.prototype[a.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return Object(c.c)(this.observable,new c.a(this))},t}(c.b)}, /*!**********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/isObject.js ***! \**********************************************************************/ /*! exports provided: isObject */ /*! exports used: isObject */function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})}, /*!****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/canReportError.js ***! \****************************************************************************/ /*! exports provided: canReportError */ /*! exports used: canReportError */function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(/*! ../Subscriber */3);function i(e){for(;e;){var t=e,n=t.closed,i=t.destination,s=t.isStopped;if(n||s)return!1;e=i&&i instanceof r.a?i:null}return!0}}, /*!********************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js ***! \********************************************************************************/ /*! exports provided: scheduleArray */ /*! exports used: scheduleArray */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! ../Observable */6),i=n(/*! ../Subscription */8);function s(e,t){return new r.a(function(n){var r=new i.a,s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}}, /*!***************************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js ***! \***************************************************************************************/ /*! exports provided: distinctUntilChanged */ /*! exports used: distinctUntilChanged */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! tslib */1),i=n(/*! ../Subscriber */3);function s(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.c(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(i.a)}, /*!*****************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/Observer.js ***! \*****************************************************************/ /*! exports provided: empty */ /*! exports used: empty */function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(/*! ./config */21),i=n(/*! ./util/hostReportError */55),s={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}}, /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n}, /*!******************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/index.js + 16 modules ***! \******************************************************************/ /*! exports provided: Observable, ConnectableObservable, GroupedObservable, observable, Subject, BehaviorSubject, ReplaySubject, AsyncSubject, asap, asapScheduler, async, asyncScheduler, queue, queueScheduler, animationFrame, animationFrameScheduler, VirtualTimeScheduler, VirtualAction, Scheduler, Subscription, Subscriber, Notification, NotificationKind, pipe, noop, identity, isObservable, ArgumentOutOfRangeError, EmptyError, ObjectUnsubscribedError, UnsubscriptionError, TimeoutError, bindCallback, bindNodeCallback, combineLatest, concat, defer, empty, forkJoin, from, fromEvent, fromEventPattern, generate, iif, interval, merge, never, of, onErrorResumeNext, pairs, partition, race, range, throwError, timer, using, zip, scheduled, EMPTY, NEVER, config */ /*! all exports used */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/AsyncSubject.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/BehaviorSubject.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Notification.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Observable.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/ReplaySubject.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Scheduler.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subject.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscriber.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscription.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/config.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/combineLatest.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/concat.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/defer.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/empty.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/forkJoin.js because of ../tabby/app/node_modules/@angular/forms/fesm2015/forms.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/from.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/fromEvent.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/merge.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/never.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/of.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/race.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/throwError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/timer.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/zip.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/filter.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/groupBy.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/map.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduled/scheduled.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/asap.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/async.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/queue.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/symbol/observable.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/EmptyError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/TimeoutError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/canReportError.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/identity.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isArray.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isFunction.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isNumeric.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isScheduler.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/noop.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/not.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/pipe.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/subscribeTo.js because of ../tabby/app/node_modules/rxjs/_esm5/operators/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/tabby-core/node_modules/tslib/tslib.es6.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */function(e,t,n){"use strict";n.r(t);var r=n(6),i=n(102),s=n(98),o=n(30),a=n(7),c=n(49),u=n(71),l=n(45),h=n(62),d=n(11),p=n(85),f=n(1),_=n(46),m=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return f.c(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(_.a),g=n(44),b=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f.c(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(_.a),E=n(87),S=n(8),C=n(3),O=n(25),I=n(61),x=n(29),T=n(22);function A(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var D=n(35),k=n(41),P=n(31),M=n(64),R=n(105),N=n(10),L=n(75),F=n(12),j=n(14);function V(e,t,n){if(t){if(!Object(j.a)(t))return function(){for(var r=[],i=0;i=t){r.complete();break}if(r.next(s++),r.closed)break}})}function ye(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var ve=n(70),we=n(86);function Ee(e,t){return new r.a(function(n){var r,i;try{r=e()}catch(e){return void n.error(e)}try{i=t(r)}catch(e){return void n.error(e)}var s=(i?Object(Q.a)(i):Y.a).subscribe(n);return function(){s.unsubscribe(),r&&r.unsubscribe()}})}var Se=n(73),Ce=n(106),Oe=n(21);n.d(t,"Observable",function(){return r.a}),n.d(t,"ConnectableObservable",function(){return i.a}),n.d(t,"GroupedObservable",function(){return s.a}),n.d(t,"observable",function(){return o.a}),n.d(t,"Subject",function(){return a.a}),n.d(t,"BehaviorSubject",function(){return c.a}),n.d(t,"ReplaySubject",function(){return u.a}),n.d(t,"AsyncSubject",function(){return l.a}),n.d(t,"asap",function(){return h.a}),n.d(t,"asapScheduler",function(){return h.b}),n.d(t,"async",function(){return d.a}),n.d(t,"asyncScheduler",function(){return d.b}),n.d(t,"queue",function(){return p.a}),n.d(t,"queueScheduler",function(){return p.b}),n.d(t,"animationFrame",function(){return y}),n.d(t,"animationFrameScheduler",function(){return b}),n.d(t,"VirtualTimeScheduler",function(){return v}),n.d(t,"VirtualAction",function(){return w}),n.d(t,"Scheduler",function(){return E.a}),n.d(t,"Subscription",function(){return S.a}),n.d(t,"Subscriber",function(){return C.a}),n.d(t,"Notification",function(){return O.a}),n.d(t,"NotificationKind",function(){return O.b}),n.d(t,"pipe",function(){return I.a}),n.d(t,"noop",function(){return x.a}),n.d(t,"identity",function(){return T.a}),n.d(t,"isObservable",function(){return A}),n.d(t,"ArgumentOutOfRangeError",function(){return D.a}),n.d(t,"EmptyError",function(){return k.a}),n.d(t,"ObjectUnsubscribedError",function(){return P.a}),n.d(t,"UnsubscriptionError",function(){return M.a}),n.d(t,"TimeoutError",function(){return R.a}),n.d(t,"bindCallback",function(){return V}),n.d(t,"bindNodeCallback",function(){return G}),n.d(t,"combineLatest",function(){return z.b}),n.d(t,"concat",function(){return W.a}),n.d(t,"defer",function(){return K.a}),n.d(t,"empty",function(){return Y.b}),n.d(t,"forkJoin",function(){return X.a}),n.d(t,"from",function(){return Q.a}),n.d(t,"fromEvent",function(){return Z.a}),n.d(t,"fromEventPattern",function(){return ee}),n.d(t,"generate",function(){return te}),n.d(t,"iif",function(){return re}),n.d(t,"interval",function(){return se}),n.d(t,"merge",function(){return ae.a}),n.d(t,"never",function(){return ce.b}),n.d(t,"of",function(){return ue.a}),n.d(t,"onErrorResumeNext",function(){return le}),n.d(t,"pairs",function(){return he}),n.d(t,"partition",function(){return me}),n.d(t,"race",function(){return ge.a}),n.d(t,"range",function(){return be}),n.d(t,"throwError",function(){return ve.a}),n.d(t,"timer",function(){return we.a}),n.d(t,"using",function(){return Ee}),n.d(t,"zip",function(){return Se.b}),n.d(t,"scheduled",function(){return Ce.a}),n.d(t,"EMPTY",function(){return Y.a}),n.d(t,"NEVER",function(){return ce.a}),n.d(t,"config",function(){return Oe.a})}, /*!*************************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/object-get-prototype-of.js ***! \*************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/has */34),i=n(/*! ../internals/to-object */119),s=n(/*! ../internals/shared-key */122),o=n(/*! ../internals/correct-prototype-getter */213),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}, /*!***************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/Subscription.js ***! \***************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./util/isArray */157),i=n(/*! ./util/isObject */158),s=n(/*! ./util/isFunction */133),o=n(/*! ./util/UnsubscriptionError */353),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,a=this._ctorUnsubscribe,u=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var h=0;h0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(46).a),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t}(n(44).a);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var o=new s(i),a=o}, /*!*************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/timer.js ***! \*************************************************************************/ /*! exports provided: timer */ /*! exports used: timer */function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(/*! ../Observable */6),i=n(/*! ../scheduler/async */11),s=n(/*! ../util/isNumeric */48),o=n(/*! ../util/isScheduler */14);function a(e,t,n){void 0===e&&(e=0);var a=-1;return Object(s.a)(t)?a=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=i.a),new r.a(function(t){var r=Object(s.a)(e)?e:+e-n.now();return n.schedule(c,r,{index:0,period:a,subscriber:t})})}function c(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}}, /*!******************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/Scheduler.js ***! \******************************************************************/ /*! exports provided: Scheduler */ /*! exports used: Scheduler */function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()}, /*!************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/race.js ***! \************************************************************************/ /*! exports provided: race, RaceOperator, RaceSubscriber */ /*! exports used: race */function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(/*! tslib */1),i=n(/*! ../util/isArray */12),s=n(/*! ./fromArray */42),o=n(/*! ../OuterSubscriber */24),a=n(/*! ../util/subscribeToResult */20);function c(){for(var e=[],t=0;t0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a)}, /*!**********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/redefine.js ***! \**********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/global */26),i=n(/*! ../internals/create-non-enumerable-property */67),s=n(/*! ../internals/has */34),o=n(/*! ../internals/set-global */120),a=n(/*! ../internals/inspect-source */143),c=n(/*! ../internals/internal-state */92),u=c.get,l=c.enforce,h=String(String).split("String");(e.exports=function(e,t,n,a){var c,u=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||i(n,"name",t),(c=l(n)).source||(c.source=h.join("string"==typeof t?t:""))),e!==r?(u?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:i(e,t,n)):d?e[t]=n:o(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||a(this)})}, /*!****************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/internal-state.js ***! \****************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r,i,s,o=n(/*! ../internals/native-weak-map */144),a=n(/*! ../internals/global */26),c=n(/*! ../internals/is-object */33),u=n(/*! ../internals/create-non-enumerable-property */67),l=n(/*! ../internals/has */34),h=n(/*! ../internals/shared-store */121),d=n(/*! ../internals/shared-key */122),p=n(/*! ../internals/hidden-keys */93),f=a.WeakMap;if(o||h.state){var _=h.state||(h.state=new f),m=_.get,g=_.has,b=_.set;r=function(e,t){if(g.call(_,e))throw new TypeError("Object already initialized");return t.facade=e,b.call(_,e,t),t},i=function(e){return m.call(_,e)||{}},s=function(e){return g.call(_,e)}}else{var y=d("state");p[y]=!0,r=function(e,t){if(l(e,y))throw new TypeError("Object already initialized");return t.facade=e,u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},s=function(e){return l(e,y)}}e.exports={set:r,get:i,has:s,enforce:function(e){return s(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}}, /*!*************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/hidden-keys.js ***! \*************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports={}}, /*!**************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/get-built-in.js ***! \**************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/path */189),i=n(/*! ../internals/global */26),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(r[e])||s(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}, /*!*******************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/internal-metadata.js ***! \*******************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/hidden-keys */93),i=n(/*! ../internals/is-object */33),s=n(/*! ../internals/has */34),o=n(/*! ../internals/object-define-property */60).f,a=n(/*! ../internals/uid */125),c=n(/*! ../internals/freezing */195),u=a("meta"),l=0,h=Object.isExtensible||function(){return!0},d=function(e){o(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,u)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},getWeakData:function(e,t){if(!s(e,u)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},onFreeze:function(e){return c&&p.REQUIRED&&h(e)&&!s(e,u)&&d(e),e}};r[u]=!0}, /*!*********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/iterate.js ***! \*********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/an-object */17),i=n(/*! ../internals/is-array-iterator-method */196),s=n(/*! ../internals/to-length */126),o=n(/*! ../internals/function-bind-context */129),a=n(/*! ../internals/get-iterator-method */201),c=n(/*! ../internals/iterator-close */204),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,h,d,p,f,_,m,g=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),w=o(t,g,1+b+v),E=function(e){return l&&c(l),new u(!0,e)},S=function(e){return b?(r(e),v?w(e[0],e[1],E):w(e[0],e[1])):v?w(e,E):w(e)};if(y)l=e;else{if("function"!=typeof(h=a(e)))throw TypeError("Target is not iterable");if(i(h)){for(d=0,p=s(e.length);p>d;d++)if((f=S(e[d]))&&f instanceof u)return f;return new u(!1)}l=h.call(e)}for(_=l.next;!(m=_.call(l)).done;){try{f=S(m.value)}catch(e){throw c(l),e}if("object"==typeof f&&f&&f instanceof u)return f}return new u(!1)}}, /*!***********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/iterators.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports={}}, /*!**************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/operators/groupBy.js ***! \**************************************************************************/ /*! exports provided: groupBy, GroupedObservable */ /*! exports used: GroupedObservable, groupBy */function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return d});var r=n(/*! tslib */1),i=n(/*! ../Subscriber */3),s=n(/*! ../Subscription */8),o=n(/*! ../Observable */6),a=n(/*! ../Subject */7);function c(e,t,n,r){return function(i){return i.lift(new u(e,t,n,r))}}var u=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;return o.keySelector=n,o.elementSelector=r,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new a.a,n.set(t,i);var s=new d(t,i,this);if(this.destination.next(s),this.durationSelector){var o=void 0;try{o=this.durationSelector(new d(t,i))}catch(e){return void this.error(e)}this.add(o.subscribe(new h(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.a),h=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r.c(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.a),d=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r.c(t,e),t.prototype._subscribe=function(e){var t=new s.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new p(n)),t.add(r.subscribe(e)),t},t}(o.a),p=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.c(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(s.a)}, /*!*************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/Subscriber.js ***! \*************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r,i=this&&this.__extends||(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(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(/*! ./util/isFunction */133),o=n(/*! ./Observer */156),a=n(/*! ./Subscription */82),c=n(/*! ../internal/symbol/rxSubscriber */159),u=n(/*! ./config */134),l=n(/*! ./util/hostReportError */135),h=function(e){function t(n,r,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.empty;break;case 1:if(!n){s.destination=o.empty;break}if("object"==typeof n){n instanceof t?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new d(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new d(s,n,r,i)}return s}return i(t,e),t.prototype[c.rxSubscriber]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.Subscription);t.Subscriber=h;var d=function(e){function t(t,n,r,i){var a,c=e.call(this)||this;c._parentSubscriber=t;var u=c;return s.isFunction(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==o.empty&&(u=Object.create(n),s.isFunction(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=r,c._complete=i,c}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.config.useDeprecatedSynchronousErrorHandling;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):l.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;l.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.config.useDeprecatedSynchronousErrorHandling)throw e;l.hostReportError(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(l.hostReportError(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(h);t.SafeSubscriber=d}, /*!******************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/symbol/iterator.js ***! \******************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.getSymbolIterator=r,t.iterator=r(),t.$$iterator=t.iterator}, /*!****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/operators/index.js + 86 modules ***! \****************************************************************************/ /*! exports provided: audit, auditTime, buffer, bufferCount, bufferTime, bufferToggle, bufferWhen, catchError, combineAll, combineLatest, concat, concatAll, concatMap, concatMapTo, count, debounce, debounceTime, defaultIfEmpty, delay, delayWhen, dematerialize, distinct, distinctUntilChanged, distinctUntilKeyChanged, elementAt, endWith, every, exhaust, exhaustMap, expand, filter, finalize, find, findIndex, first, groupBy, ignoreElements, isEmpty, last, map, mapTo, materialize, max, merge, mergeAll, mergeMap, flatMap, mergeMapTo, mergeScan, min, multicast, observeOn, onErrorResumeNext, pairwise, partition, pluck, publish, publishBehavior, publishLast, publishReplay, race, reduce, repeat, repeatWhen, retry, retryWhen, refCount, sample, sampleTime, scan, sequenceEqual, share, shareReplay, single, skip, skipLast, skipUntil, skipWhile, startWith, subscribeOn, switchAll, switchMap, switchMapTo, take, takeLast, takeUntil, takeWhile, tap, throttle, throttleTime, throwIfEmpty, timeInterval, timeout, timeoutWith, timestamp, toArray, window, windowCount, windowTime, windowToggle, windowWhen, withLatestFrom, zip, zipAll */ /*! all exports used */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/AsyncSubject.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/BehaviorSubject.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Notification.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Observable.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/OuterSubscriber.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/ReplaySubject.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subject.js because of ../tabby/app/node_modules/@angular/core/fesm2015/core.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscriber.js because of ../tabby/app/node_modules/@angular/core/fesm2015/core.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/Subscription.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/innerSubscribe.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/combineLatest.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/concat.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/defer.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/empty.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/from.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/merge.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/of.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/race.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/throwError.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/timer.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/observable/zip.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/concatAll.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/delay.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/filter.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/groupBy.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/map.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/mergeAll.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/mergeMap.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/multicast.js because of ../tabby/app/node_modules/@angular/core/fesm2015/core.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/observeOn.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/refCount.js because of ../tabby/app/node_modules/@angular/core/fesm2015/core.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/share.js because of ../tabby/app/node_modules/@angular/core/fesm2015/core.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/startWith.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/switchMap.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/take.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/takeUntil.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/tap.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/operators/withLatestFrom.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/asap.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/scheduler/async.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/EmptyError.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/TimeoutError.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/identity.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isArray.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isDate.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isNumeric.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/isScheduler.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/not.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/pipe.js because of ../tabby/app/node_modules/rxjs/_esm5/index.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/app/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */ /*! ModuleConcatenation bailout: Cannot concat with ../tabby/tabby-core/node_modules/tslib/tslib.es6.js because of ../tabby/app/node_modules/@ng-bootstrap/ng-bootstrap/fesm5/ng-bootstrap.js */function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(5);function s(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.durationSelector))},e}(),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.c(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=Object(i.c)(t,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(i.b),c=n(11),u=n(86);function l(e,t){return void 0===t&&(t=c.a),s(function(){return Object(u.a)(e,t)})}function h(e){return function(t){return t.lift(new d(e))}}var d=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.closingNotifier))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.c(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(i.b),f=n(3);function _(e,t){return void 0===t&&(t=null),function(n){return n.lift(new m(e,t))}}var m=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?b:g}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.c(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(f.a),b=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.c(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var s=r.length;s--;){var o=r[s];o.push(e),o.length===t&&(r.splice(s,1),this.destination.next(o))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(f.a),y=n(14);function v(e){var t=arguments.length,n=c.a;Object(y.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new w(e,r,i,n))}}var w=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new S(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),E=function(){return function(){this.buffer=[]}}(),S=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=r,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var a=o.openContext();if(o.timespanOnly=null==r||r<0,o.timespanOnly){var c={subscriber:o,context:a,bufferTimeSpan:n};o.add(a.closeAction=s.schedule(C,n,c))}else{var u={subscriber:o,context:a},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:s};o.add(a.closeAction=s.schedule(I,n,u)),o.add(s.schedule(O,r,l))}return o}return r.c(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(C,n,r))}},t.prototype.openContext=function(){var e=new E;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(f.a);function C(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function O(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,s=r.openContext();r.closed||(r.add(s.closeAction=i.schedule(I,n,{subscriber:r,context:s})),this.schedule(e,t))}function I(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var x=n(8),T=n(20),A=n(24);function D(e,t){return function(n){return n.lift(new k(e,t))}}var k=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new P(e,this.openings,this.closingSelector))},e}(),P=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(T.a)(i,n)),i}return r.c(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new x.a,r={buffer:[],subscription:n};t.push(r);var i=Object(T.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(A.a);function M(e){return function(t){return t.lift(new R(e))}}var R=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new N(e,this.closingSelector))},e}(),N=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.c(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new x.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(i.c)(t,new i.a(this))),this.subscribing=!1},t}(i.b);function L(e){return function(t){var n=new F(e),r=t.lift(n);return n.caught=r}}var F=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new j(e,this.selector,this.caught))},e}(),j=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var s=Object(i.c)(n,r);s!==r&&this.add(s)}},t}(i.b),V=n(57);function B(e){return function(t){return t.lift(new V.a(e))}}var U=n(12),G=n(16);function q(){for(var e=[],t=0;t=2;return function(r){return r.pipe(Object(Oe.a)(function(t,n){return n===e}),Object(ke.a)(1),n?oe(t):xe(function(){return new Ce.a}))}}var Me=n(56);function Re(){for(var e=[],t=0;t0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(i.b);function Ke(e){return function(t){return t.lift(new Ye(e))}}var Ye=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Xe(e,this.callback))},e}(),Xe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new x.a(n)),r}return r.c(t,e),t}(f.a);function Qe(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Ze(e,n,!1,t))}}var Ze=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),Je=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;return o.predicate=n,o.source=r,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return r.c(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(f.a);function et(e,t){return function(n){return n.lift(new Ze(e,n,!0,t))}}var tt=n(22);function nt(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Oe.a)(function(t,n){return e(t,n,r)}):tt.a,Object(ke.a)(1),n?oe(t):xe(function(){return new Ie.a}))}}var rt=n(98);function it(){return function(e){return e.lift(new st)}}var st=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new ot(e))},e}(),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype._next=function(e){},t}(f.a);function at(){return function(e){return e.lift(new ct)}}var ct=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new ut(e))},e}(),ut=function(e){function t(t){return e.call(this,t)||this}return r.c(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(f.a),lt=n(15);function ht(e){return function(t){return 0===e?Object(lt.b)():t.lift(new dt(e))}}var dt=function(){function e(e){if(this.total=e,this.total<0)throw new Ce.a}return e.prototype.call=function(e,t){return t.subscribe(new pt(e,this.total))},e}(),pt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?Object(Oe.a)(function(t,n){return e(t,n,r)}):tt.a,ht(1),n?oe(t):xe(function(){return new Ie.a}))}}function _t(e){return function(t){return t.lift(new mt(e))}}var mt=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new gt(e,this.value))},e}(),gt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.c(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(f.a),bt=n(25);function yt(){return function(e){return e.lift(new vt)}}var vt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new wt(e))},e}(),wt=function(e){function t(t){return e.call(this,t)||this}return r.c(t,e),t.prototype._next=function(e){this.destination.next(bt.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(bt.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(bt.a.createComplete()),e.complete()},t}(f.a);function Et(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new St(e,t,n))}}var St=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.accumulator,this.seed,this.hasSeed))},e}(),Ct=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s.accumulator=n,s._seed=r,s.hasSeed=i,s.index=0,s}return r.c(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(f.a),Ot=n(61);function It(e,t){return arguments.length>=2?function(n){return Object(Ot.a)(Et(e,t),ht(1),oe(t))(n)}:function(t){return Object(Ot.a)(Et(function(t,n,r){return e(t,n,r+1)}),ht(1))(t)}}function xt(e){return It("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var Tt=n(65);function At(){for(var e=[],t=0;t0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.b);function Nt(e){return It("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(f.a);function an(e){return function(t){return t.lift(new cn(e))}}var cn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new un(e,this.notifier,t))},e}(),un=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.c(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new Wt.a;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Object(i.c)(t,new i.a(this))},t}(i.b);function ln(e){return void 0===e&&(e=-1),function(t){return t.lift(new hn(e,t))}}var hn=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new dn(e,this.count,this.source))},e}(),dn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(f.a);function pn(e){return function(t){return t.lift(new fn(e,t))}}var fn=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new _n(e,this.notifier,this.source))},e}(),_n=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return r.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,s=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new Wt.a;try{r=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}s=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=s,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(i.b),mn=n(69);function gn(e){return function(t){return t.lift(new bn(e))}}var bn=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new yn(e),r=t.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},e}(),yn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.c(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(i.b);function vn(e,t){return void 0===t&&(t=c.a),function(n){return n.lift(new wn(e,t))}}var wn=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new En(e,this.period,this.scheduler))},e}(),En=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Sn,n,{subscriber:i,period:n})),i}return r.c(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(f.a);function Sn(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function Cn(e,t){return function(n){return n.lift(new On(e,t))}}var On=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new In(e,this.compareTo,this.comparator))},e}(),In=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new xn(t,i))),i}return r.c(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),s=!1;try{s=n?n(r,i):r===i}catch(e){this.destination.error(e)}s||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(f.a),xn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.c(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(f.a),Tn=n(111);function An(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift((s=(t=r).bufferSize,o=void 0===s?Number.POSITIVE_INFINITY:s,a=t.windowTime,c=void 0===a?Number.POSITIVE_INFINITY:a,u=t.refCount,l=t.scheduler,h=0,d=!1,p=!1,function(e){var t;h++,!n||d?(d=!1,n=new Jt.a(o,c,l),t=n.subscribe(this),i=e.subscribe({next:function(e){n.next(e)},error:function(e){d=!0,n.error(e)},complete:function(){p=!0,i=void 0,n.complete()}}),p&&(i=void 0)):t=n.subscribe(this),this.add(function(){h--,t.unsubscribe(),t=void 0,i&&!p&&u&&0===h&&(i.unsubscribe(),i=void 0,n=void 0)})}));var t,n,i,s,o,a,c,u,l,h,d,p}}function Dn(e){return function(t){return t.lift(new kn(e,t))}}var kn=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e,this.predicate,this.source))},e}(),Pn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.c(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Ie.a)},t}(f.a);function Mn(e){return function(t){return t.lift(new Rn(e))}}var Rn=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Nn(e,this.total))},e}(),Nn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(f.a);function Ln(e){return function(t){return t.lift(new Fn(e))}}var Fn=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new Ce.a}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new f.a(e)):t.subscribe(new jn(e,this._skipCount))},e}(),jn=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.c(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,s=i.length,o=0;o=0&&a%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var c=new Wt.a;i.push(c),n.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(f.a);function Mr(e){var t=c.a,n=null,r=Number.POSITIVE_INFINITY;return Object(y.a)(arguments[3])&&(t=arguments[3]),Object(y.a)(arguments[2])?t=arguments[2]:Object(Wn.a)(arguments[2])&&(r=Number(arguments[2])),Object(y.a)(arguments[1])?t=arguments[1]:Object(Wn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Rr(e,n,r,t))}}var Rr=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new Lr(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),Nr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.c(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(Wt.a),Lr=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=r,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var a=o.openWindow();if(null!==r&&r>=0){var c={subscriber:o,window:a,context:null},u={windowTimeSpan:n,windowCreationInterval:r,subscriber:o,scheduler:s};o.add(s.schedule(Vr,n,c)),o.add(s.schedule(jr,r,u))}else{var l={subscriber:o,window:a,windowTimeSpan:n};o.add(s.schedule(Fr,n,l))}return o}return r.c(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new Nr;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(f.a);function Fr(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function jr(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,s=n.openWindow(),o={action:this,subscription:null},a={subscriber:n,window:s,context:o};o.subscription=r.schedule(Vr,t,a),this.add(o.subscription),this.schedule(e,i)}function Vr(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function Br(e,t){return function(n){return n.lift(new Ur(e,t))}}var Ur=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Gr(e,this.openings,this.closingSelector))},e}(),Gr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(T.a)(i,n,n)),i}return r.c(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var s=Math.max(0,n[0].time-r.now());this.schedule(e,s)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new h(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(a.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},t}(o.a),h=function(){return function(e,t){this.time=e,this.notification=t}}()}, /*!********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/isDate.js ***! \********************************************************************/ /*! exports provided: isDate */ /*! exports used: isDate */function(e,t,n){"use strict";function r(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return r})}, /*!*****************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/util/not.js ***! \*****************************************************************/ /*! exports provided: not */ /*! exports used: not */function(e,t,n){"use strict";function r(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,"a",function(){return r})}, /*!****************************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/create-property-descriptor.js ***! \****************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}, /*!*******************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/to-indexed-object.js ***! \*******************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/indexed-object */138),i=n(/*! ../internals/require-object-coercible */139);e.exports=function(e){return r(i(e))}}, /*!*************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/classof-raw.js ***! \*************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}}, /*!***********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/to-object.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/require-object-coercible */139);e.exports=function(e){return Object(r(e))}}, /*!************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/set-global.js ***! \************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/global */26),i=n(/*! ../internals/create-non-enumerable-property */67);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}}, /*!**************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/shared-store.js ***! \**************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/global */26),i=n(/*! ../internals/set-global */120),s=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=s}, /*!************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/shared-key.js ***! \************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/shared */123),i=n(/*! ../internals/uid */125),s=r("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}}, /*!********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/shared.js ***! \********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/is-pure */124),i=n(/*! ../internals/shared-store */121);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.14.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}, /*!*********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/is-pure.js ***! \*********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=!1}, /*!*****************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/uid.js ***! \*****************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}}, /*!***********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/to-length.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/to-integer */146),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}, /*!***************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/enum-bug-keys.js ***! \***************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}, /*!************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/collection.js ***! \************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! ../internals/export */32),i=n(/*! ../internals/global */26),s=n(/*! ../internals/is-forced */147),o=n(/*! ../internals/redefine */91),a=n(/*! ../internals/internal-metadata */95),c=n(/*! ../internals/iterate */96),u=n(/*! ../internals/an-instance */130),l=n(/*! ../internals/is-object */33),h=n(/*! ../internals/fails */50),d=n(/*! ../internals/check-correctness-of-iteration */205),p=n(/*! ../internals/set-to-string-tag */131),f=n(/*! ../internals/inherit-if-required */206);e.exports=function(e,t,n){var _=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=_?"set":"add",b=i[e],y=b&&b.prototype,v=b,w={},E=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(s(e,"function"!=typeof b||!(m||y.forEach&&!h(function(){(new b).entries().next()}))))v=n.getConstructor(t,e,_,g),a.REQUIRED=!0;else if(s(e,!0)){var S=new v,C=S[g](m?{}:-0,1)!=S,O=h(function(){S.has(1)}),I=d(function(e){new b(e)}),x=!m&&h(function(){for(var e=new b,t=5;t--;)e[g](t,t);return!e.has(-0)});I||((v=t(function(t,n){u(t,v,e);var r=f(new b,t,v);return null!=n&&c(n,r[g],{that:r,AS_ENTRIES:_}),r})).prototype=y,y.constructor=v),(O||x)&&(E("delete"),E("has"),_&&E("get")),(x||C)&&E(g),m&&y.clear&&delete y.clear}return w[e]=v,r({global:!0,forced:v!=b},w),p(v,e),m||n.setStrong(v,e,_),v}}, /*!***********************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/function-bind-context.js ***! \***********************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/a-function */200);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}, /*!*************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/an-instance.js ***! \*************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}}, /*!*******************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/set-to-string-tag.js ***! \*******************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/object-define-property */60).f,i=n(/*! ../internals/has */34),s=n(/*! ../internals/well-known-symbol */39)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,s)&&r(e,s,{configurable:!0,value:t})}}, /*!**************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/redefine-all.js ***! \**************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/redefine */91);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}}, /*!******************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/util/isFunction.js ***! \******************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}}, /*!*********************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/config.js ***! \*********************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=!1;t.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}}, /*!***********************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/internal/util/hostReportError.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hostReportError=function(e){setTimeout(function(){throw e},0)}}, /*!****************************************************************************!*\ !*** ../tabby/app/node_modules/rxjs/_esm5/internal/observable/forkJoin.js ***! \****************************************************************************/ /*! exports provided: forkJoin */ /*! exports used: forkJoin */function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(/*! ../Observable */6),i=n(/*! ../util/isArray */12),s=n(/*! ../operators/map */10),o=n(/*! ../util/isObject */74),a=n(/*! ./from */16);function c(){for(var e=[],t=0;tc;)r(a,n=t[c++])&&(~s(u,n)||u.push(n));return u}}, /*!************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/to-integer.js ***! \************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}}, /*!***********************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/is-forced.js ***! \***********************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/fails */50),i=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s}, /*!***************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/native-symbol.js ***! \***************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/engine-v8-version */197),i=n(/*! ../internals/fails */50);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})}, /*!*************************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/object-set-prototype-of.js ***! \*************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ../internals/an-object */17),i=n(/*! ../internals/a-possible-prototype */207);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,s){return r(n),i(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)}, /*!*******************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/collection-strong.js ***! \*******************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! ../internals/object-define-property */60).f,i=n(/*! ../internals/object-create */151),s=n(/*! ../internals/redefine-all */132),o=n(/*! ../internals/function-bind-context */129),a=n(/*! ../internals/an-instance */130),c=n(/*! ../internals/iterate */96),u=n(/*! ../internals/define-iterator */211),l=n(/*! ../internals/set-species */214),h=n(/*! ../internals/descriptors */59),d=n(/*! ../internals/internal-metadata */95).fastKey,p=n(/*! ../internals/internal-state */92),f=p.set,_=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){a(e,l,t),f(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})}),p=_(t),m=function(e,t,n){var r,i,s=p(e),o=g(e,t);return o?o.value=n:(s.last=o={index:i=d(t,!0),key:t,value:n,previous:r=s.last,next:void 0,removed:!1},s.first||(s.first=o),r&&(r.next=o),h?s.size++:e.size++,"F"!==i&&(s.index[i]=o)),e},g=function(e,t){var n,r=p(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return s(l.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t=p(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),h?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),s(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),h&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=_(t),s=_(r);u(e,t,function(e,t){f(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=s(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(t)}}}, /*!***************************************************************************!*\ !*** ../tabby/tabby-core/node_modules/core-js/internals/object-create.js ***! \***************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r,i=n(/*! ../internals/an-object */17),s=n(/*! ../internals/object-define-properties */208),o=n(/*! ../internals/enum-bug-keys */127),a=n(/*! ../internals/hidden-keys */93),c=n(/*! ../internals/html */210),u=n(/*! ../internals/document-create-element */142),l=n(/*! ../internals/shared-key */122),h=l("IE_PROTO"),d=function(){},p=function(e){return"