UNPKG

smart-house-frontend

Version:
33 lines 1.04 MB
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,i){r.apply(this,[t,e,i].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}({0:function(t,e,n){"use strict";n(934),n(935),n(957),n(959),n(21),n(1),n(3),n(22),n(389),n(59),n(29),n(249),n(258),n(446)},1:function(t,e,n){(function(t){/** * @license Angular v2.0.0 * (c) 2010-2016 Google, Inc. https://angular.io/ * License: MIT */ !function(t,r){r(e,n(2),n(3),n(21))}(this,function(e,n,r,i){"use strict";function o(t){return void 0!==t&&null!==t}var s,a=i.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS;s="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:t:window;var u=s;u.assert=function(t){};var c=(function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new Error("Invalid integer literal when parsing "+t+" in base "+e)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}(),this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(){t.apply(this,arguments)}return c(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=o(i.response)?i.response:i.responseText,s=1223===i.status?204:i.status;0===s&&(s=r?200:0),200<=s&&s<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:r.Injectable}],e.ctorParameters=[],e}(n.ResourceLoader),p=[a,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:n.ResourceLoader,useClass:l}]},multi:!0}],h=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=function(t){function e(){if(t.call(this),this._cache=u.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return h(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(n.ResourceLoader),d={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:p,ResourceLoaderImpl:l},v=[{provide:n.ResourceLoader,useClass:f}],y=r.createPlatformFactory(n.platformCoreDynamic,"browserDynamic",p);e.RESOURCE_CACHE_PROVIDER=v,e.platformBrowserDynamic=y,e.__platform_browser_dynamic_private__=d})}).call(e,function(){return this}())},2:function(t,e,n){(function(t){/** * @license Angular v2.0.0 * (c) 2010-2016 Google, Inc. https://angular.io/ * License: MIT */ !function(t,r){r(e,n(3))}(this,function(e,n){"use strict";function r(t){return void 0!==t&&null!==t}function i(t){return void 0===t||null===t}function o(t){return"string"==typeof t}function s(t){return"object"==typeof t&&null!==t}function a(t){return s(t)&&Object.getPrototypeOf(t)===Fr}function u(t){return Array.isArray(t)}function c(t){if("string"==typeof t)return t;if(void 0===t||null===t)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;var e=t.toString(),n=e.indexOf("\n");return n===-1?e:e.substring(0,n)}function l(t){return i(t)?null:t}function p(t){return!i(t)&&t}function h(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function f(t,e,n,r){var i=n+"\nreturn "+e+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function d(t){return!h(t)}function v(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(t,e,n){void 0===n&&(n=null);var i=[];return e.forEach(function(e){var o=e.visit(t,n);r(o)&&i.push(o)}),i}function m(t,e){if(r(t))for(var n=0;n<t.length;n++){var i=t[n];u(i)?m(i,e):e.push(i)}return e}function g(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(e==-1)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function _(t){return null===t?null:g(t)[0]}function b(t,e){return t?":"+t+":"+e:e}function w(t){return mi[t.toLowerCase()]||gi}function C(t,e,n){var r=new Ao(t,e);return n.visitExpression(r,null)}function E(t){var e=new Po;return e.visitAllStatements(t,null),e.varNames}function x(t,e){return void 0===e&&(e=null),new qi(t,e)}function S(t,e){return void 0===e&&(e=null),new Qi(t,null,e)}function T(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?new ki(t,e,n):null}function A(t,e){return void 0===e&&(e=null),new oo(t,e)}function P(t,e){return void 0===e&&(e=null),new so(t,e)}function O(t){return new Zi(t)}function k(t,e,n){return void 0===n&&(n=null),new eo(t,e,n)}function M(t,e){return void 0===e&&(e=null),new Yi(t,e)}function N(t){return Hr.replaceAllMapped(t,ko,function(t){return"-"+t[1].toLowerCase()})}function I(t,e){var n=t.indexOf(":");return n==-1?e:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function R(t){return Hr.replaceAll(t,/\W/g,"_")}function D(t,e,n){return u(t)?e.visitArray(t,n):a(t)?e.visitStringMap(t,n):i(t)||d(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function j(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"asset:@angular/lib/"+t+"/index":"asset:@angular/lib/"+t+"/src/"+e}function L(t){return r(t.value)?M(t.value):t.identifierIsInstance?S(t.identifier).instantiate([],T(t.identifier,[],[di.Const])):S(t.identifier)}function V(){throw new Error("unimplemented")}function F(t){var e=wi.parse(t.selector)[0].getMatchingElementTemplate();return ns.create({type:new Zo({reference:Object,name:t.type.name+"_Host",moduleUrl:t.type.moduleUrl,isHost:!0}),template:new es({encapsulation:n.ViewEncapsulation.None,template:e,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:n.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function H(t){var e=new Map;return t.forEach(function(t){e.get(t.identifier.reference)||e.set(t.identifier.reference,t)}),ci.values(e)}function q(t){return r(t)?t:[]}function B(t){return s(t)&&r(t.name)&&r(t.filePath)}function U(t){return t>=Ds&&t<=Hs||t==Ia}function z(t){return ua<=t&&t<=ca}function W(t){return t>=ba&&t<=Oa||t>=la&&t<=da}function G(t){return t>=ba&&t<=Ca||t>=la&&t<=ha||z(t)}function $(t,e){if(n.isDevMode()&&!i(e)){if(!u(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<e.length;r+=1)if(!o(e[r]))throw new Error("Expected '"+t+"' to be an array of strings.")}}function X(t,e){if(r(e)&&(!u(e)||2!=e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(n.isDevMode()&&!i(e)){var o=e[0],s=e[1];Da.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function Y(t,e){return new qa(t,lo.Character,e,Hr.fromCharCode(e))}function Q(t,e){return new qa(t,lo.Identifier,0,e)}function K(t,e){return new qa(t,lo.Keyword,0,e)}function Z(t,e){return new qa(t,lo.Operator,0,e)}function J(t,e){return new qa(t,lo.String,0,e)}function tt(t,e){return new qa(t,lo.Number,e,"")}function et(t,e){return new qa(t,lo.Error,0,e)}function nt(t){return ba<=t&&t<=Oa||la<=t&&t<=da||t==_a||t==zs}function rt(t){if(0==t.length)return!1;var e=new Ua(t);if(!nt(e.peek))return!1;for(e.advance();e.peek!==Rs;){if(!it(e.peek))return!1;e.advance()}return!0}function it(t){return W(t)||z(t)||t==_a||t==zs}function ot(t){return t==wa||t==pa}function st(t){return t==Js||t==Ks}function at(t){return t===$s||t===Bs||t===Ra}function ut(t){switch(t){case Ea:return js;case Ca:return Vs;case xa:return Fs;case Sa:return Ds;case Aa:return Ls;default:return t}}function ct(t){var e=v(t.start)+"([\\s\\S]*?)"+v(t.end);return new RegExp(e,"g")}function lt(t,e,n){void 0===n&&(n=null);var r=[];return e.forEach(function(e){var i=e.visit(t,n);i&&r.push(i)}),r}function pt(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=La),new fu(new Qa(t,e),n,r,i).tokenize()}function ht(t){var e=t===Rs?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Rs}function vt(t){return U(t)||t===sa||t===ea||t===$s||t===Bs||t===oa}function yt(t){return(t<ba||Oa<t)&&(t<la||da<t)&&(t<ua||t>ca)}function mt(t){return t==ra||t==Rs||!G(t)}function gt(t){return t==ra||t==Rs||!W(t)}function _t(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==ka&&!r}function bt(t){return t===oa||W(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=ba&&t<=Oa?t-ba+la:t}function Et(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==Za.TEXT&&i.type==Za.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function xt(t,e){return t.length>0&&t[t.length-1]===e}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use 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 St(t){return At(Tt(t.nodes).join("")+("["+t.meaning+"]"))}function Tt(t){return t.map(function(t){return t.visit(bu,null)})}function At(t){var e=Pt(t),n=kt(e),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],v=h[2],y=h[3],m=h[4],g=0;g<80;g++){g<16?i[g]=n[p+g]:i[g]=Rt(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=Nt(g,a,u,c),b=_[0],w=_[1],C=[Rt(s,5),b,l,w,i[g]].reduce(It);T=[c,u,Rt(a,30),s,C],l=T[0],c=T[1],u=T[2],a=T[3],s=T[4]}A=[It(s,f),It(a,d),It(u,v),It(c,y),It(l,m)],s=A[0],a=A[1],u=A[2],c=A[3],l=A[4]}for(var E=Mt([s,a,u,c,l]),x="",p=0;p<E.length;p++){var S=E.charCodeAt(p);x+=(S>>>4&15).toString(16)+(15&S).toString(16)}return x.toLowerCase();var T,A}function Pt(t){for(var e="",n=0;n<t.length;n++){var r=Ot(t,n);r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(192|r>>>6,128|63&r):r<=65535?e+=String.fromCharCode(224|r>>>12,128|r>>>6&63,128|63&r):r<=2097151&&(e+=String.fromCharCode(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r))}return e}function Ot(t,e){if(e<0||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var n,r=t.charCodeAt(e);return r>=55296&&r<=57343&&t.length>e+1&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}function kt(t){for(var e=Array(t.length>>>2),n=0;n<e.length;n++)e[n]=0;for(var n=0;n<t.length;n++)e[n>>>2]|=(255&t.charCodeAt(n))<<8*(3-n&3);return e}function Mt(t){for(var e="",n=0;n<4*t.length;n++)e+=String.fromCharCode(t[n>>>2]>>>8*(3-n&3)&255);return e}function Nt(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function It(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function Rt(t,e){return t<<e|t>>>32-e}function Dt(t){var e=new Mu(ku,t);return function(t,n,r){return e.toI18nMessage(t,n,r)}}function jt(t){return t.split(Nu)[1]}function Lt(t,e,n,r){var i=new Hu(n,r);return i.extract(t,e)}function Vt(t,e,n,r,i){var o=new Hu(r,i);return o.merge(t,e,n)}function Ft(t){return t instanceof ou&&t.value&&t.value.startsWith("i18n")}function Ht(t){return t instanceof ou&&t.value&&"/i18n"===t.value}function qt(t){return t.attrs.find(function(t){return t.name===Du})||null}function Bt(t){if(!t)return["",""];var e=t.indexOf("|");return e==-1?["",t]:[t.slice(0,e),t.slice(e+1)]}function Ut(t){return Uu}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use 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 zt(t){var e=t.getMessageMap(),n={};return Object.keys(e).forEach(function(t){n[t]=e[t].placeholders}),n}function Wt(t){var e=t.getMessageMap(),n={};return Object.keys(e).forEach(function(t){n[t]=e[t].placeholderToMsgIds}),n}function Gt(t){return t.map(function(t){return t.visit($u)}).join("")}function $t(t){return Zu.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Xt(t){return new $o({name:t.name,moduleUrl:t.moduleUrl,reference:al.resolveIdentifier(t.name,t.moduleUrl,t.runtime)})}function Yt(t){return new Ko({identifier:t})}function Qt(t){return Yt(Xt(t))}function Kt(t,e){var n=al.resolveEnum(t.reference,e);return new $o({name:t.name+"."+e,moduleUrl:t.moduleUrl,reference:n})}function Zt(t){var e=new Ll;return new Dl(lt(e,t),e.isExpanded,e.errors)}function Jt(t,e){var n=t.cases.map(function(t){Rl.indexOf(t.value)!=-1||t.value.match(/^=\d+$/)||e.push(new jl(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Rl.join(", ")));var n=Zt(t.expression);return e.push.apply(e,n.errors),new iu("template",[new ru("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ru("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new iu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function te(t,e){var n=t.cases.map(function(t){var n=Zt(t.expression);return e.push.apply(e,n.errors),new iu("template",[new ru("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ru("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new iu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ee(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return new Yo({token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi})}function ne(t,e){var n=e.eager,r=e.providers;return new ti(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function re(t,e,n,o){return void 0===o&&(o=null),i(o)&&(o=[]),r(t)&&t.forEach(function(t){if(u(t))re(t,e,n,o);else{var i=void 0;t instanceof Yo?i=t:t instanceof Zo?i=new Yo({token:new Ko({identifier:t}),useClass:t}):n.push(new Fl("Unknown provider type "+t,e)),r(i)&&o.push(i)}}),o}function ie(t,n,r){var i=new Map;t.forEach(function(t){var o=new Yo({token:new Ko({identifier:t.type}),useClass:t.type});oe([o],t.isComponent?e.ProviderAstType.Component:e.ProviderAstType.Directive,!0,n,r,i)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){oe(re(t.providers,n,r),e.ProviderAstType.PublicService,!1,n,r,i),oe(re(t.viewProviders,n,r),e.ProviderAstType.PrivateService,!1,n,r,i)}),i}function oe(t,e,n,o,s,a){t.forEach(function(t){var u=a.get(t.token.reference);if(r(u)&&u.multiProvider!==t.multi&&s.push(new Fl("Mixing multi and non multi provider is not possible for token "+u.token.name,o)),i(u)){var c=t.token.identifier&&t.token.identifier instanceof Zo?t.token.identifier.lifecycleHooks:[];u=new ti(t.token,t.multi,n||c.length>0,[t],e,c,o),a.set(t.token.reference,u)}else t.multi||pi.clear(u.providers),u.providers.push(t)})}function se(t){var e=new Map;return r(t.viewQueries)&&t.viewQueries.forEach(function(t){return ue(e,t)}),t.type.diDeps.forEach(function(t){r(t.viewQuery)&&ue(e,t.viewQuery)}),e}function ae(t){var e=new Map;return t.forEach(function(t){r(t.queries)&&t.queries.forEach(function(t){return ue(e,t)}),t.type.diDeps.forEach(function(t){r(t.query)&&ue(e,t.query)})}),e}function ue(t,e){e.selectors.forEach(function(n){var r=t.get(n.reference);i(r)&&(r=[],t.set(n.reference,r)),r.push(e)})}function ce(t){if(i(t)||0===t.length||"/"==t[0])return!1;var e=t.match(Gl);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,n){var i=[],o=Hr.replaceAllMapped(n,Wl,function(n){var o=r(n[1])?n[1]:n[2];return ce(o)?(i.push(t.resolve(e,o)),""):n[0]});return new zl(o,i)}function pe(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==$l?e=t.value:s==Kl?n=t.value:s==Ql?r=t.value:t.name==ep?i=!0:t.name==np&&t.value.length>0&&(o=t.value)}),e=he(e);var s=t.name.toLowerCase(),a=Fu.OTHER;return g(s)[1]==Xl?a=Fu.NG_CONTENT:s==Jl?a=Fu.STYLE:s==tp?a=Fu.SCRIPT:s==Yl&&r==Zl&&(a=Fu.STYLESHEET),new ip(a,e,n,i,o)}function he(t){return null===t||0===t.length?"*":t}function fe(t){return t.trim().split(/\s+/g)}function de(t,e){var n=new wi,r=g(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=g(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==wp){var u=fe(a);u.forEach(function(t){return n.addClassName(t)})}}return n}function ve(){throw new Error("unimplemented")}function ye(t){var e=[],n={},r=[],i=[];t.definitions.forEach(function(t){t instanceof Vo?ge(t,e).forEach(function(t){i.push(t),n[t.stateName]=t.styles}):r.push(t)});var o=r.map(function(t){return _e(t,n,e)}),s=new Wp(t.name,i,o);return new ch(s,e)}function me(t,e){var n,r=t.split("."),i="";if(r.length>1){n=r[0];var o=r[1];switch(o){case"start":case"done":i=o;break;default:e.push(new uh('The provided animation output phase value "'+o+'" for "@'+n+'" is not supported (use start or done)'))}}else n=t,e.push(new uh("The animation trigger output event (@"+n+") is missing its phase value name (start or done are currently supported)"));return new vl(n,i,t)}function ge(t,e){var n=[];t.styles.styles.forEach(function(t){s(t)?n.push(t):e.push(new uh("State based animations cannot contain references to other states"))});var r=new Qp(n),i=t.stateNameExpr.split(/\s*,\s*/);return i.map(function(t){return new Gp(t,r)})}function _e(t,e,n){var r=new rh,i=[],o=t.stateChangeExpr.split(/\s*,\s*/);o.forEach(function(t){be(t,n).forEach(function(t){i.push(t)})});var s=we(t.steps),a=Ee(s,e,n),u=Pe(a,0,r,e,n);0==n.length&&Oe(u,r,n);var c=u instanceof Zp?u:new th([u]);return new Xp(i,c)}function be(t,e){var n=[],i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return e.push(new uh("the provided "+t+" is not of a supported format")),n;var o=i[1],s=i[2],a=i[3];n.push(new $p(o,a));var u=o==yl&&a==yl;return"<"!=s[0]||u||n.push(new $p(a,o)),n}function we(t){return u(t)?new Wo(t):t}function Ce(t,e,n){var r=[];return t.styles.forEach(function(t){o(t)?pi.addAll(r,Te(t,e,n)):r.push(t)}),r}function Ee(t,e,n){var r=Se(t,e,n);return t instanceof Go?new Go(r):new Wo(r)}function xe(t,e){if(s(e)&&t.length>0){var n=t.length-1,r=t[n];if(s(r))return void(t[n]=li.merge(r,e))}t.push(e)}function Se(t,e,n){var i;if(!(t instanceof zo))return[t];i=t.steps;var o,s=[];return i.forEach(function(t){if(t instanceof Bo)r(o)||(o=[]),Ce(t,e,n).forEach(function(t){xe(o,t)});else{if(r(o)&&(s.push(new Bo(0,o)),o=null),t instanceof Uo){var i=t.styles;i instanceof Bo?i.styles=Ce(i,e,n):i instanceof qo&&i.steps.forEach(function(t){t.styles=Ce(t,e,n)})}else if(t instanceof zo){var a=Se(t,e,n);t=t instanceof Go?new Go(a):new Wo(a)}s.push(t)}}),r(o)&&s.push(new Bo(0,o)),s}function Te(t,e,n){var i=[];if(":"!=t[0])n.push(new uh('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),a=e[o];r(a)?a.styles.forEach(function(t){s(t)&&i.push(t)}):n.push(new uh('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Ae(t,e,n,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=r(t.offset)?1:0}),a>0&&a<s&&(o.push(new uh("Not all style() entries contain an offset for the provided keyframe()")),a=s);var u=s-1,c=0==a?1/u:0,l=[],p=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,n={};t.styles.forEach(function(t){li.forEach(t,function(t,e){"offset"!=e&&(n[e]=t)})}),r(e)?h=h||e<f:e=p==u?sh:c*p,l.push([e,n]),f=e,p++}),h&&pi.sort(l,function(t,e){return t[0]<=e[0]?-1:1});var d,v=l[0];v[0]!=oh&&pi.insert(l,0,v=[oh,{}]);var y=v[1];u=l.length-1;var m=l[u];m[0]!=sh&&(l.push(m=[sh,{}]),u++);var g=m[1];for(d=1;d<=u;d++){var _=l[d],b=_[1];li.forEach(b,function(t,e){r(y[e])||(y[e]=_l)})}for(d=u-1;d>=0;d--){var _=l[d],b=_[1];li.forEach(b,function(t,e){r(g[e])||(g[e]=t)})}return l.map(function(t){return new Kp(t[0],new Qp([t[1]]))})}function Pe(t,e,n,i,o){var s,a=0,u=e;if(t instanceof zo){var c,l=0,p=[],h=t instanceof Go;if(t.steps.forEach(function(t){var s=h?u:e;if(t instanceof Bo)return t.styles.forEach(function(t){var e=t;li.forEach(e,function(t,e){n.insertAtTime(e,s,t)})}),void(c=t.styles);var f=Pe(t,s,n,i,o);if(r(c)){if(t instanceof zo){var d=new Qp(c);p.push(new Yp(d,[],0,0,""))}else{var v=f;pi.addAll(v.startingStyles.styles,c)}c=null}var y=f.playTime;e+=y,a+=y,l=eh.max(y,l),p.push(f)}),r(c)){var f=new Qp(c);p.push(new Yp(f,[],0,0,""))}h?(s=new Jp(p),a=l,e=u+a):s=new th(p)}else if(t instanceof Uo){var d,v=ke(t.timings,o),y=t.styles;if(y instanceof qo)d=Ae(y,e,n,i,o);else{var m=y,g=sh,_=new Qp(m.styles),b=new Kp(g,_);d=[b]}s=new Yp(new Qp([]),d,v.duration,v.delay,v.easing),a=v.duration+v.delay,e+=a,d.forEach(function(t){return t.styles.styles.forEach(function(t){return li.forEach(t,function(t,r){return n.insertAtTime(r,e,t)})})})}else s=new Yp(null,[],0,0,"");return s.playTime=a,s.startTime=u,s}function Oe(t,e,n){if(t instanceof Yp&&t.keyframes.length>0){var r=t.keyframes;if(1==r.length){var i=r[0],o=Me(i,t.startTime,t.playTime,e,n);t.keyframes=[o,i]}}else t instanceof Zp&&t.steps.forEach(function(t){return Oe(t,e,n)})}function ke(t,e){var n,s=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,a=0,u=null;if(o(t)){var c=t.match(s);if(null===c)return e.push(new uh('The provided timing value "'+t+'" is invalid.')),new lh(0,0,null);var l=parseFloat(c[1]),p=c[2];"s"==p&&(l*=ah),n=eh.floor(l);var h=c[3],f=c[4];if(r(h)){var d=parseFloat(h);r(f)&&"s"==f&&(d*=ah),a=eh.floor(d)}var v=c[5];i(v)||(u=v)}else n=t;return new lh(n,a,u)}function Me(t,e,n,i,o){var s={},a=e+n;return t.styles.styles.forEach(function(t){li.forEach(t,function(t,n){if("offset"!=n){var u,c,l,p=i.indexOfAtOrBeforeTime(n,e);r(p)?(u=i.getByIndex(n,p),l=u.value,c=i.getByIndex(n,p+1)):l=_l,r(c)&&!c.matches(a,t)&&o.push(new uh('The animated CSS property "'+n+'" unexpectedly changes between steps "'+u.time+'ms" and "'+a+'ms" at "'+c.time+'ms"')),s[n]=l}})}),new Kp(oh,new Qp([s]))}function Ne(t,e){var n=M(gl);switch(e){case gl:return t.equals(n);case yl:return M(!0);default:return t.equals(M(e))}}function Ie(t){if(t instanceof Yp&&t.duration>0&&2==t.keyframes.length){var e=Re(t.keyframes[0])[0],n=Re(t.keyframes[1])[0];return li.isEmpty(e)&&li.isEmpty(n)}return!1}function Re(t){return t.styles.styles}function De(t,e){var n=new Mh(t);return y(n,e),new kh(n.outputs,n.errors)}function je(t,e){return void 0===e&&(e=null),D(t,new Nh,e)}function Le(t,e,n){if(e===n)return t;for(var i=ao,o=e;o!==n&&r(o.declarationElement.view);)o=o.declarationElement.view,i=i.prop("parent");if(o!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);if(t instanceof ro){var s=t;(n.fields.some(function(t){return t.name==s.name})||n.getters.some(function(t){return t.name==s.name}))&&(i=i.cast(n.classType))}return C(ao.name,i,t)}function Ve(t,e){var n=[L(t)];return e&&n.push(co),ao.prop("parentInjector").callMethod("get",n)}function Fe(t,e){return"viewFactory_"+t.type.name+e}function He(t){for(var e=[],n=A([]),r=0;r<t.length;r++){var i=t[r];i.type instanceof Mi?(e.length>0&&(n=n.callMethod(Hi.ConcatArray,[A(e)]),e=[]),n=n.callMethod(Hi.ConcatArray,[i])):e.push(i)}return e.length>0&&(n=n.callMethod(Hi.ConcatArray,[A(e)])),n}function qe(t,e,n,r){r.fields.push(new go(n.name,null));var o=e<kl.pureProxies.length?kl.pureProxies[e]:null;if(i(o))throw new Error("Unsupported number of argument for pure functions: "+e);r.createMethod.addStmt(ao.prop(n.name).set(S(Xt(o)).callFn([t])).toStmt())}function Be(t){return pi.flatten(t.values.map(function(t){return t instanceof jh?Ue(t.view.declarationElement.appElement,t.view,Be(t)):t}))}function Ue(t,e,n){var r=n.map(function(t){return C(ao.name,x("nestedView"),t)});return t.callMethod("mapNestedViews",[x(e.className),k([new to("nestedView",e.classType)],[new yo(A(r))],Ii)])}function ze(t,e,n,r){r.fields.push(new go(n,T(Xt(kl.QueryList),[Ii])));var i=ao.prop(n);return r.createMethod.addStmt(ao.prop(n).set(S(Xt(kl.QueryList),[Ii]).instantiate([])).toStmt()),i}function We(t,e){e.meta.selectors.forEach(function(n){var r=t.get(n.reference);i(r)&&(r=[],t.set(n.reference,r)),r.push(e)})}function Ge(t,e){return S(Kt(t,e))}function $e(t,e,n,r){var i;return i=e>0?M(t).lowerEquals(zh.requestNodeIndex).and(zh.requestNodeIndex.lowerEquals(M(t+e))):M(t).identical(zh.requestNodeIndex),new Co(zh.token.identical(L(n.token)).and(i),[new yo(r)])}function Xe(t,e,n,r,o,s){var a,u,c=s.view;if(r?(a=A(n),u=new Mi(Ii)):(a=n[0],u=n[0].type),i(u)&&(u=Ii),o)c.fields.push(new go(t,u)),c.createMethod.addStmt(ao.prop(t).set(a).toStmt());else{var l="_"+t;c.fields.push(new go(l,u));var p=new Dh(c);p.resetDebugInfo(s.nodeIndex,s.sourceAst),p.addStmt(new Co(ao.prop(l).isBlank(),[ao.prop(l).set(a).toStmt()])),p.addStmt(new yo(ao.prop(l))),c.getters.push(new bo(t,p.finish(),u))}return ao.prop(t)}function Ye(t,e){for(var n=null,r=t.pipeMetas.length-1;r>=0;r--){var o=t.pipeMetas[r];if(o.name==e){n=o;break}}if(i(n))throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return n}function Qe(t,e){return e>0?Dc.EMBEDDED:t.type.isHost?Dc.HOST:Dc.COMPONENT}function Ke(t,e,n,r,i){var o=new ef(t,e,r,i),s=n.visit(o,rp.Expression);return new Jh(s,o.needsValueUnwrapper,o.temporaryCount)}function Ze(t,e,n,r){var i=new ef(t,e,null,r),o=[];return sn(n.visit(i,rp.Statement),o),en(i.temporaryCount,r,o),o}function Je(t,e){return"tmp_"+t+"_"+e}function tn(t,e){return new ho(Je(t,e),co)}function en(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(tn(e,r))}function nn(t,e){if(t!==rp.Statement)throw new Error("Expected a statement, but saw "+e)}function rn(t,e){if(t!==rp.Expression)throw new Error("Expected an expression, but saw "+e)}function on(t,e){return t===rp.Statement?e.toStmt():e}function sn(t,e){u(t)?t.forEach(function(t){return sn(t,e)}):e.push(t)}function an(t,e,n){var r=[];return t.forEach(function(t){n.view.bindings.push(new Zh(n,t));var e=rf.getOrCreate(n,t.target,t.name,r);e.addAction(t,null,null)}),e.forEach(function(t){var e=n.instances.get(Yt(t.directive.type).reference);t.hostEvents.forEach(function(i){n.view.bindings.push(new Zh(n,i));var o=rf.getOrCreate(n,i.target,i.name,r);o.addAction(i,t.directive,e)})}),r.forEach(function(t){return t.finishMethod()}),r}function un(t,e,n){li.forEach(t.directive.outputs,function(t,r){n.filter(function(e){return e.eventName==t}).forEach(function(t){t.listenToDirective(e,r)})})}function cn(t){t.forEach(function(t){return t.listenToRenderer()})}function ln(t){t.forEach(function(t){t.listener.listenToAnimation(t.output)})}function pn(t){return t instanceof vo?t.expr:t instanceof yo?t.value:null}function hn(t){return Hr.replaceAll(t,/[^a-zA-Z_]/g,"_")}function fn(t,e,n){var r=n.view,i=r.detectChangesInInputsMethod,o=t.directive.type.lifecycleHooks;o.indexOf(Tc.OnChanges)!==-1&&t.inputs.length>0&&i.addStmt(new Co(Wh.changes.notIdentical(co),[e.callMethod("ngOnChanges",[Wh.changes]).toStmt()])),o.indexOf(Tc.OnInit)!==-1&&i.addStmt(new Co(of.and(sf),[e.callMethod("ngOnInit",[]).toStmt()])),o.indexOf(Tc.DoCheck)!==-1&&i.addStmt(new Co(sf,[e.callMethod("ngDoCheck",[]).toStmt()]))}function dn(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),i.indexOf(Tc.AfterContentInit)!==-1&&o.addStmt(new Co(of,[e.callMethod("ngAfterContentInit",[]).toStmt()])),i.indexOf(Tc.AfterContentChecked)!==-1&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function vn(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),i.indexOf(Tc.AfterViewInit)!==-1&&o.addStmt(new Co(of,[e.callMethod("ngAfterViewInit",[]).toStmt()])),i.indexOf(Tc.AfterViewChecked)!==-1&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function yn(t,e,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),t.lifecycleHooks.indexOf(Tc.OnDestroy)!==-1&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function mn(t,e,n){var r=n.destroyMethod;t.type.lifecycleHooks.indexOf(Tc.OnDestroy)!==-1&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function gn(t){return ao.prop("_expr_"+t)}function _n(t){return x("currVal_"+t)}function bn(t,e,n,r,o,s,a,u){var c=Ke(t,o,r,Wh.valUnwrapper,u);if(!i(c.expression)){if(c.temporaryCount)for(var l=0;l<c.temporaryCount;l++)a.addStmt(tn(u,l));if(t.fields.push(new go(n.name,null,[Wi.Private])),t.createMethod.addStmt(ao.prop(n.name).set(S(Xt(kl.UNINITIALIZED))).toStmt()),c.needsValueUnwrapper){var p=Wh.valUnwrapper.callMethod("reset",[]).toStmt();a.addStmt(p)}a.addStmt(e.set(c.expression).toDeclStmt(null,[Wi.Final]));var h=S(Xt(kl.checkBinding)).callFn([Wh.throwOnChange,n,e]);c.needsValueUnwrapper&&(h=Wh.valUnwrapper.prop("hasWrappedValue").or(h)),a.addStmt(new Co(h,s.concat([ao.prop(n.name).set(e).toStmt()])))}}function wn(t,e,n){var r=n.bindings.length;n.bindings.push(new Zh(e,t));var i=_n(r),o=gn(r);n.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),bn(n,i,o,t.value,n.componentContext,[ao.prop("renderer").callMethod("setText",[e.renderNode,i]).toStmt()],n.detectChangesRenderPropertiesMethod,r)}function Cn(t,n,i,o){var s=i.view,a=i.renderNode;t.forEach(function(t){var u=s.bindings.length;s.bindings.push(new Zh(i,t)),s.detectChangesRenderPropertiesMethod.resetDebugInfo(i.nodeIndex,t);var c=gn(u),l=_n(u),p=En(t,c),h=En(t,l),f=[],d=s.detectChangesRenderPropertiesMethod;switch(t.type){case e.PropertyBindingType.Property:s.genConfig.logBindingUpdate&&f.push(An(a,t.name,h)),f.push(ao.prop("renderer").callMethod("setElementProperty",[a,M(t.name),h]).toStmt());break;case e.PropertyBindingType.Attribute:h=h.isBlank().conditional(co,h.callMethod("toString",[])),f.push(ao.prop("renderer").callMethod("setElementAttribute",[a,M(t.name),h]).toStmt());break;case e.PropertyBindingType.Class:f.push(ao.prop("renderer").callMethod("setElementClass",[a,M(t.name),h]).toStmt());break;case e.PropertyBindingType.Style:var v=h.callMethod("toString",[]);r(t.unit)&&(v=v.plus(M(t.unit))),h=h.isBlank().conditional(co,v),f.push(ao.prop("renderer").callMethod("setElementStyle",[a,M(t.name),h]).toStmt());break;case e.PropertyBindingType.Animation:var y=t.name,m=ao;o&&(m=i.appElement.prop("componentView")),d=s.animationBindingsMethod;var g=m.prop("componentType").prop("animations").key(M(y)),_=M(gl),b=x("oldRenderVar");f.push(b.set(p).toDeclStmt()),f.push(new Co(b.equals(S(Xt(kl.UNINITIALIZED))),[b.set(_).toStmt()]));var w=x("newRenderVar");f.push(w.set(h).toDeclStmt()),f.push(new Co(w.equals(S(Xt(kl.UNINITIALIZED))),[w.set(_).toStmt()])),f.push(g.callFn([ao,a,b,w]).toStmt()),s.detachMethod.addStmt(g.callFn([ao,a,p,_]).toStmt())}bn(s,l,c,t.value,n,f,d,s.bindings.length)})}function En(t,e){var r;switch(t.securityContext){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:r="HTML";break;case n.SecurityContext.STYLE:r="STYLE";break;case n.SecurityContext.SCRIPT:r="SCRIPT";break;case n.SecurityContext.URL:r="URL";break;case n.SecurityContext.RESOURCE_URL:r="RESOURCE_URL";break;default:throw new Error("internal error, unexpected SecurityContext "+t.securityContext+".")}var i=Bh.viewUtils.prop("sanitizer"),o=[S(Xt(kl.SecurityContext)).prop(r),e];return i.callMethod("sanitize",o)}function xn(t,e){Cn(t,e.view.componentContext,e,!1)}function Sn(t,e,n){Cn(t.hostProperties,e,n,!0)}function Tn(t,e,n){if(0!==t.inputs.length){var r=n.view,i=r.detectChangesInInputsMethod;i.resetDebugInfo(n.nodeIndex,n.sourceAst);var o=t.directive.type.lifecycleHooks,s=o.indexOf(Tc.OnChanges)!==-1,a=t.directive.isComponent&&!xc(t.directive.changeDetection);s&&i.addStmt(Wh.changes.set(co).toStmt()),a&&i.addStmt(Wh.changed.set(M(!1)).toStmt()),t.inputs.forEach(function(t){var o=r.bindings.length;r.bindings.push(new Zh(n,t)),i.resetDebugInfo(n.nodeIndex,t);var u=gn(o),c=_n(o),l=[e.prop(t.directiveName).set(c).toStmt()];s&&(l.push(new Co(Wh.changes.identical(co),[Wh.changes.set(P([],new Ni(T(Xt(kl.SimpleChange))))).toStmt()])),l.push(Wh.changes.key(M(t.directiveName)).set(S(Xt(kl.SimpleChange)).instantiate([u,c])).toStmt())),a&&l.push(Wh.changed.set(M(!0)).toStmt()),r.genConfig.logBindingUpdate&&l.push(An(n.renderNode,t.directiveName,c)),bn(r,c,u,t.value,r.componentContext,l,i,o)}),a&&i.addStmt(new Co(Wh.changed,[n.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function An(t,e,n){var r=ao.prop("renderer").callMethod("setBindingDebugInfo",[t,M("ng-reflect-"+N(e)),n.isBlank().conditional(co,n.callMethod("toString",[]))]).toStmt(),i=ao.prop("renderer").callMethod("setBindingDebugInfo",[t,M("ng-reflect-"+N(e)),M("[ERROR] Exception while trying to serialize the value")]).toStmt();return new Eo([r],[i])}function Pn(t,e,n){var r=new af(t,n);y(r,e),t.pipes.forEach(function(t){mn(t.meta,t.instance,t.view)})}function On(t,e,n){var r=new yf(t,n);return y(r,e,t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent),r.nestedViewCount}function kn(t,e){t.afterNodes(),Vn(t,e),t.nodes.forEach(function(t){t instanceof Xh&&t.hasEmbeddedView&&kn(t.embeddedView,e)})}function Mn(t){for(var e=t.view;In(t.parent,e);)t=t.parent;return t}function Nn(t){for(var e=t.view;In(t,e);)t=t.parent;return t}function In(t,e){return!t.isNull()&&t.sourceAst.name===pf&&t.view===e}function Rn(t,e){var n={};return li.forEach(t,function(t,e){n[e]=t}),e.forEach(function(t){li.forEach(t.hostAttributes,function(t,e){var i=n[e];n[e]=r(i)?jn(e,i,t):t})}),Ln(n)}function Dn(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function jn(t,e,n){return t==cf||t==lf?e+" "+n:n}function Ln(t){var e=[];return li.forEach(t,function(t,n){e.push([n,t])}),pi.sort(e,function(t,e){return Hr.compare(t[0],e[0])}),e}function Vn(t,e){var n=co;t.genConfig.genDebugInfo&&(n=x("nodeDebugInfos_"+t.component.type.name+t.viewIndex),e.push(n.set(A(t.nodes.map(Fn),new Mi(new ki(Xt(kl.StaticNodeDebugInfo)),[di.Const]))).toDeclStmt(null,[Wi.Final])));var r=x("renderType_"+t.component.type.name);0===t.viewIndex&&e.push(r.set(co).toDeclStmt(T(Xt(kl.RenderComponentType))));var i=Hn(t,r,n);e.push(i),e.push(qn(t,i,r))}function Fn(t){var e=t instanceof Xh?t:null,n=[],i=co,o=[];return r(e)&&(n=e.getProviderTokens(),r(e.component)&&(i=L(Yt(e.component.type))),li.forEach(e.referenceTokens,function(t,e){o.push([e,r(t)?L(t):co])})),S(Xt(kl.StaticNodeDebugInfo)).instantiate([A(n,new Mi(Ii,[di.Const])),i,P(o,new Ni(Ii,[di.Const]))],T(Xt(kl.StaticNodeDebugInfo),null,[di.Const]))}function Hn(t,e,n){var r=[new to(qh.viewUtils.name,T(Xt(kl.ViewUtils))),new to(qh.parentInjector.name,T(Xt(kl.Injector))),new to(qh.declarationEl.name,T(Xt(kl.AppElement)))],i=[x(t.className),e,Vh.fromValue(t.viewType),qh.viewUtils,qh.parentInjector,qh.declarationEl,Hh.fromValue(Gn(t))];t.genConfig.genDebugInfo&&i.push(n);var o=new _o(null,r,[uo.callFn(i).toStmt()]),s=[new _o("createInternal",[new to(ff.name,ji)],Bn(t),T(Xt(kl.AppElement))),new _o("injectorGetInternal",[new to(zh.token.name,Ii),new to(zh.requestNodeIndex.name,Di),new to(zh.notFoundResult.name,Ii)],zn(t.injectorGetMethod.finish(),zh.notFoundResult),Ii),new _o("detectChangesInternal",[new to(Wh.throwOnChange.name,Ri)],Un(t)),new _o("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new _o("destroyInternal",[],t.destroyMethod.finish()),new _o("detachInternal",[],t.detachMethod.finish())].concat(t.eventHandlerMethods),a=t.genConfig.genDebugInfo?kl.DebugAppView:kl.AppView,u=new wo(t.className,S(Xt(a),[Wn(t)]),t.fields,t.getters,o,s.filter(function(t){return t.body.length>0}));return u}function qn(t,e,n){var r,i=[new to(qh.viewUtils.name,T(Xt(kl.ViewUtils))),new to(qh.parentInjector.name,T(Xt(kl.Injector))),new to(qh.declarationEl.name,T(Xt(kl.AppElement)))],o=[];if(r=t.component.template.templateUrl==t.component.type.moduleUrl?t.component.type.moduleUrl+" class "+t.component.type.name+" - inline template":t.component.template.templateUrl,0===t.viewIndex){var s=P(t.animations.map(function(t){return[t.name,t.fnVariable]}));o=[new Co(n.identical(co),[n.set(qh.viewUtils.callMethod("createRenderComponentType",[M(r),M(t.component.template.ngContentSelectors.length),Fh.fromValue(t.component.template.encapsulation),t.styles,s])).toStmt()])]}return k(i,o.concat([new yo(x(e.name).instantiate(e.constructorMethod.params.map(function(t){return x(t.name)})))]),T(Xt(kl.AppView),[Wn(t)])).toDeclStmt(t.viewFactory.name,[Wi.Final])}function Bn(t){var e=co,n=[];t.viewType===Dc.COMPONENT&&(e=Bh.renderer.callMethod("createViewRoot",[ao.prop("declarationAppElement").prop("nativeElement")]),n=[hf.set(e).toDeclStmt(T(t.genConfig.renderTypes.renderNode),[Wi.Final])]);var r;return r=t.viewType===Dc.HOST?t.nodes[0].appElement:co,n.concat(t.createMethod.finish(),[ao.callMethod("init",[He(t.rootNodesOrAppElements),A(t.nodes.map(function(t){return t.renderNode})),A(t.disposables),A(t.subscriptions)]).toStmt(),new yo(r)])}function Un(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty())return e;pi.addAll(e,t.animationBindingsMethod.finish()),pi.addAll(e,t.detectChangesInInputsMethod.finish()),e.push(ao.callMethod("detectContentChildrenChanges",[Wh.throwOnChange]).toStmt());var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new Co(O(Wh.throwOnChange),n)),pi.addAll(e,t.detectChangesRenderPropertiesMethod.finish()),e.push(ao.callMethod("detectViewChildrenChanges",[Wh.throwOnChange]).toStmt());var r=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());r.length>0&&e.push(new Co(O(Wh.throwOnChange),r));var i=[],o=E(e);return fi.has(o,Wh.changed.name)&&i.push(Wh.changed.set(M(!0)).toDeclStmt(Ri)),fi.has(o,Wh.changes.name)&&i.push(Wh.changes.set(co).toDeclStmt(new Ni(T(Xt(kl.SimpleChange))))),fi.has(o,Wh.valUnwrapper.name)&&i.push(Wh.valUnwrapper.set(S(Xt(kl.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[Wi.Final])),i.concat(e)}function zn(t,e){return t.length>0?t.concat([new yo(e)]):t}function Wn(t){return t.viewType===Dc.COMPONENT?T(t.component.type):Ii}function Gn(t){var e;return e=t.viewType===Dc.COMPONENT?xc(t.component.changeDetection)?Sc.CheckAlways:Sc.CheckOnce:Sc.CheckAlways}function $n(t){return t.dependencies.forEach(function(t){if(t instanceof df){var e=t;e.placeholder.moduleUrl=Yn(e.comp.moduleUrl)}else if(t instanceof vf){var n=t;n.placeholder.name=Qn(n.comp),n.placeholder.moduleUrl=Yn(n.comp.moduleUrl)}}),t.statements}function Xn(t,e){return t.dependencies.forEach(function(t){t.valuePlaceholder.moduleUrl=Kn(t.moduleUrl,t.isShimmed,e)}),t.statements}function Yn(t){var e=Jn(t);return e[0]+".ngfactory"+e[1]}function Qn(t){return t.name+"NgFactory"}function Kn(t,e,n){return e?t+".shim"+n:""+t+n}function Zn(t){if(!t.isComponent)throw new Error("Could not compile '"+t.type.name+"' because it is not a component.")}function Jn(t){if(/\.d\.ts$/.test(t))return[t.substring(0,t.length-5),".ts"];var e=t.lastIndexOf(".");return e!==-1?[t.substring(0,e),t.substring(e)]:[t,""]}function tr(){return new Sf(Ef)}function er(t){var e=rr(t);return e&&e[tf.Scheme]||""}function nr(t,e,n,i,o,s,a){var u=[];return r(t)&&u.push(t+":"),r(n)&&(u.push("//"),r(e)&&u.push(e+"@"),u.push(n),r(i)&&u.push(":"+i)),r(o)&&u.push(o),r(s)&&u.push("?"+s),r(a)&&u.push("#"+a),u.join("")}function rr(t){return t.match(Tf)}function ir(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function or(t){var e=t[tf.Path];return e=i(e)?"":ir(e),t[tf.Path]=e,nr(t[tf.Scheme],t[tf.UserInfo],t[tf.Domain],t[tf.Port],e,t[tf.QueryData],t[tf.Fragment])}function sr(t,e){var n=rr(encodeURI(e)),o=rr(t);if(r(n[tf.Scheme]))return or(n);n[tf.Scheme]=o[tf.Scheme];for(var s=tf.Scheme;s<=tf.Port;s++)i(n[s])&&(n[s]=o[s]);if("/"==n[tf.Path][0])return or(n);var a=o[tf.Path];i(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+n[tf.Path],n[tf.Path]=a,or(n)}function ar(t,e){return new ns({type:t.type,isComponent:t.isComponent,selector:t.selector,exportAs:t.exportAs,changeDetection:t.changeDetection,inputs:t.inputs,outputs:t.outputs,hostListeners:t.hostListeners,hostProperties:t.hostProperties,hostAttributes:t.hostAttributes,providers:t.providers,viewProviders:t.viewProviders,queries:t.queries,viewQueries:t.viewQueries,entryComponents:t.entryComponents,template:e})}function ur(t){return t instanceof n.Directive}function cr(t,e){var n=kf.get(t),r=Mf.get(t);return al.hasLifecycleHook(e,n,r)}function lr(t){return t instanceof n.NgModule}function pr(t){return t instanceof n.Pipe}function hr(t,e,n,r){return void 0===n&&(n=[]),void 0===r&&(r=new Set),t.forEach(function(t){if(!r.has(t.type.reference)){r.add(t.type.reference);var i=e?t.importedModules.concat(t.exportedModules):t.exportedModules;hr(i,e,n,r),n.push(t)}}),n}function fr(t,e){if(void 0===e&&(e=[]),t)for(var r=0;r<t.length;r++){var i=n.resolveForwardRef(t[r]);u(i)?fr(i,e):e.push(i)}return e}function dr(t){return B(t)||t instanceof n.Type}function vr(t){return B(t)?t.filePath:null}function yr(t,e,n){if(B(e))return vr(e);if(r(n.moduleId)){var i=n.moduleId,o=er(i);return r(o)&&o.length>0?i:"package:"+i+Oo}return t.importUri(e)}function mr(t,e){return D(t,new jf,e)}function gr(t,e,n){if(void 0===n&&(n=!0),i(t))return null;var r=Hr.replaceAllMapped(t,Uf,function(t){return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!zf.test(r);return o?"'"+r+"'":r}function _r(t){for(var e="",n=0;n<t;n++)e+=" ";return e}function br(t){var e,n=new Jf(Kf),r=Xf.createRoot([]);return e=u(t)?t:[t],e.forEach(function(t){if(t instanceof po)t.visitStatement(n,r);else if(t instanceof Fi)t.visitExpression(n,r);else{if(!(t instanceof Ai))throw new Error("Don't know how to print debug info for "+t);t.visitType(n,r)}}),r.toSource()}function wr(t,e){var n=t.concat([new yo(x(e))]),i=new td(null,null,null,new Map),o=new nd,s=o.visitAllStatements(n,i);return r(s)?s.value:null}function Cr(t,e,n,i,o){for(var s=i.createChildWihtLocalVars(),a=0;a<t.length;a++)s.vars.set(t[a],e[a]);var u=o.visitAllStatements(n,s);return r(u)?u.value:null}function Er(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new td(e,this,t.name,e.vars);return Cr([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s-0]=arguments[s];var a=new td(e,this,t.name,e.vars);return Cr(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s-0]=arguments[s];var a=new td(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Cr(i,o,t.constructorMethod.body,a,n)},s=t.parent.visitExpression(n,e);return o.prototype=Object.create(s.prototype,r),o}function xr(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return Cr(t,i,e,n,r)}}function Sr(t,e,n){var r=new ud,i=Xf.createRoot([n]);return r.visitAllStatements(e,i),f(t,n,i.toSource(),r.getArgs())}function Tr(t){return Hr.replaceAllMapped(t,Sd,function(t){return""})}function Ar(t){var e=t.match(Td);return e?e[0]:""}function Pr(t,e){var n=Or(t),i=0;return Hr.replaceAllMapped(n.escapedString,Ad,function(t){var o=t[2],s="",a=t[4],u="";r(t[4])&&t[4].startsWith("{"+Md)&&(s=n.blocks[i++], a=t[4].substring(Md.length+1),u="{");var c=e(new Nd(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Or(t){for(var e=Hr.split(t,Pd),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==kd&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Md),o=[]),n.push(a)),a==Od&&i++}return o.length>0&&(r.push(o.join("")),n.push(Md)),new Id(n.join(""),r)}function kr(t){var e="styles";return t&&(e+="_"+t.type.name),e}function Mr(t){if(!t.isComponent)throw new Error("Could not compile '"+t.type.name+"' because it is not a component.")}function Nr(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];zd[i.toLowerCase()]=t}}function Ir(){al.reflectionCapabilities=new cl}function Rr(t){return{useDebug:Dr(t.map(function(t){return t.useDebug})),useJit:Dr(t.map(function(t){return t.useJit})),defaultEncapsulation:Dr(t.map(function(t){return t.defaultEncapsulation})),providers:jr(t.map(function(t){return t.providers}))}}function Dr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function jr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use 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 Lr;Lr="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:t:window;var Vr=Lr;Vr.assert=function(t){};var Fr=Object.getPrototypeOf({}),Hr=function(){function t(){}return t.fromCharCode=function(t){return String.fromCharCode(t)},t.charCodeAt=function(t,e){return t.charCodeAt(e)},t.split=function(t,e){return t.split(e)},t.equals=function(t,e){return t===e},t.stripLeft=function(t,e){if(t&&t.length){for(var n=0,r=0;r<t.length&&t[r]==e;r++)n++;t=t.substring(n)}return t},t.stripRight=function(t,e){if(t&&t.length){for(var n=t.length,r=t.length-1;r>=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t.splice(-2,2),n(t)})},t.contains=function(t,e){return t.indexOf(e)!=-1},t.compare=function(t,e){return t<e?-1:t>e?1:0},t}(),qr=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}(),Br=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new Error("Invalid integer literal when parsing "+t+" in base "+e)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}(),Ur=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),zr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Wr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Gr=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),$r=function(){function t(t,e,n,r){this.name=t,this.target=e,this.handler=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return r(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),t}(),Xr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),Yr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Qr=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Kr=function(){function t(t,e,n,r,i,o,s,a,u,c){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentInde