diff --git a/file-size.json b/file-size.json index 1671cc5..8714a04 100644 --- a/file-size.json +++ b/file-size.json @@ -1,10 +1,10 @@ { "angularDemoAotIndexBundleJs": "441 kB 116 kB", - "angularDemoJitIndexBundleJs": "809 kB 207 kB", + "angularDemoJitIndexBundleJs": "812 kB 208 kB", "coreDemoIndexBundleCss": "39 kB 9.19 kB", "coreDemoTreeIconPng": "636 B 647 B", "reactDemoIndexBundleJs": "119 kB 36.2 kB", - "vueDemoIndexBundleJs": "112 kB 37.9 kB", + "vueDemoIndexBundleJs": "112 kB 38.1 kB", "packagesAngularDemoAotIndexHtml": "855 B 565 B", "packagesAngularDemoJitIndexHtml": "855 B 568 B", "packagesReactDemoIndexHtml": "867 B 573 B", diff --git a/package.json b/package.json index e29492b..649dc1d 100644 --- a/package.json +++ b/package.json @@ -22,16 +22,16 @@ }, "homepage": "https://github.com/plantain-00/tree-component#readme", "devDependencies": { - "@angular/compiler": "5.0.5", - "@angular/compiler-cli": "5.0.5", - "@angular/core": "5.0.5", - "@commitlint/cli": "5.2.0", + "@angular/compiler": "5.1.0", + "@angular/compiler-cli": "5.1.0", + "@angular/core": "5.1.0", + "@commitlint/cli": "5.2.5", "@commitlint/config-angular": "5.1.1", "@types/jasmine": "2.8.2", - "@types/puppeteer": "0.13.6", - "@types/react": "16.0.26", + "@types/puppeteer": "0.13.7", + "@types/react": "16.0.28", "@types/react-dom": "16.0.3", - "autoprefixer": "7.2.0", + "autoprefixer": "7.2.2", "clean-css-cli": "4.1.10", "clean-scripts": "1.7.0", "file2variable-cli": "1.6.0", @@ -41,7 +41,7 @@ "jasmine": "2.8.0", "karma": "1.7.1", "karma-chrome-launcher": "2.2.0", - "karma-firefox-launcher": "1.0.1", + "karma-firefox-launcher": "1.1.0", "karma-jasmine": "1.1.1", "karma-webpack": "2.0.6", "lerna": "^2.5.1", @@ -58,7 +58,7 @@ "tslint": "5.8.0", "typescript": "2.4.2", "watch-then-execute": "1.1.1", - "webpack": "3.9.1" + "webpack": "3.10.0" }, "dependencies": { "@types/node": "*", diff --git a/packages/angular/demo/jit/index.bundle-1b18815bb7acf032dc7e88fc8c1a68b2.js b/packages/angular/demo/jit/index.bundle-1b18815bb7acf032dc7e88fc8c1a68b2.js new file mode 100644 index 0000000..a3a5ac3 --- /dev/null +++ b/packages/angular/demo/jit/index.bundle-1b18815bb7acf032dc7e88fc8c1a68b2.js @@ -0,0 +1 @@ +!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=133)}([function(t,e,n){var r=n(4),i=n(28),o=n(13),s=n(11),a=n(21),u=function(t,e,n){var c,l,p,h,f=t&u.F,d=t&u.G,v=t&u.S,y=t&u.P,m=t&u.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=d?i:i[e]||(i[e]={}),b=_.prototype||(_.prototype={});d&&(n=e);for(c in n)l=!f&&g&&void 0!==g[c],p=(l?g:n)[c],h=m&&l?a(p,r):y&&"function"==typeof p?a(Function.call,p):p,g&&s(g,c,p,t&u.U),_[c]!=p&&o(_,c,h),y&&b[c]!=p&&(b[c]=p)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(51)("wks"),i=n(33),o=n(4).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e,n){var r=n(1),i=n(88),o=n(29),s=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(23),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),i=n(2),o=n(31),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(4),i=n(13),o=n(9),s=n(33)("src"),a=Function.toString,u=(""+a).split("toString");n(28).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,n){var r=n(31);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(6),i=n(32);t.exports=n(7)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(46),i=n(31);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(0),i=n(28),o=n(2);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(9),i=n(12),o=n(63)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(21),i=n(46),o=n(12),s=n(8),a=n(227);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,p=6==t,h=5==t||p,f=e||a;return function(e,a,d){for(var v,y,m=o(e),g=i(m),_=r(a,d,3),b=s(g.length),w=0,E=n?f(e,b):u?f(e,0):void 0;b>w;w++)if((h||w in g)&&(v=g[w],y=_(v,w,m),t))if(n)E[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:E.push(v)}else if(l)return!1;return p?-1:c||l?l:E}}},function(t,e,n){"use strict";var r=n(44),i=n(294),o=n(124),s=n(297),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e0?r:n)(t)}},function(t,e,n){var r=n(53),i=n(32),o=n(16),s=n(29),a=n(9),u=n(88),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";if(n(7)){var r=n(39),i=n(4),o=n(2),s=n(0),a=n(59),u=n(81),c=n(21),l=n(41),p=n(32),h=n(13),f=n(42),d=n(23),v=n(8),y=n(118),m=n(34),g=n(29),_=n(9),b=n(54),w=n(3),E=n(12),C=n(76),x=n(35),S=n(18),T=n(36).f,P=n(77),O=n(33),k=n(5),M=n(19),A=n(62),N=n(80),I=n(108),D=n(47),R=n(56),j=n(40),F=n(78),L=n(107),V=n(6),H=n(24),B=V.f,U=H.f,z=i.RangeError,q=i.TypeError,W=i.Uint8Array,G=Array.prototype,Z=u.ArrayBuffer,K=u.DataView,Q=M(0),$=M(2),X=M(3),J=M(4),Y=M(5),tt=M(6),et=A(!0),nt=A(!1),rt=I.values,it=I.keys,ot=I.entries,st=G.lastIndexOf,at=G.reduce,ut=G.reduceRight,ct=G.join,lt=G.sort,pt=G.slice,ht=G.toString,ft=G.toLocaleString,dt=k("iterator"),vt=k("toStringTag"),yt=O("typed_constructor"),mt=O("def_constructor"),gt=a.CONSTR,_t=a.TYPED,bt=a.VIEW,wt=M(1,function(t,e){return Tt(N(t,t[mt]),e)}),Et=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Ct=!!W&&!!W.prototype.set&&o(function(){new W(1).set({})}),xt=function(t,e){var n=d(t);if(n<0||n%e)throw z("Wrong offset!");return n},St=function(t){if(w(t)&&_t in t)return t;throw q(t+" is not a typed array!")},Tt=function(t,e){if(!(w(t)&&yt in t))throw q("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(N(t,t[mt]),e)},Ot=function(t,e){for(var n=0,r=e.length,i=Tt(t,r);r>n;)i[n]=e[n++];return i},kt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,i,o,s,a=E(t),u=arguments.length,l=u>1?arguments[1]:void 0,p=void 0!==l,h=P(a);if(void 0!=h&&!C(h)){for(s=h.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(p&&u>2&&(l=c(l,arguments[2],2)),e=0,n=v(a.length),i=Tt(this,n);n>e;e++)i[e]=p?l(a[e],e):a[e];return i},At=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!W&&o(function(){ft.call(new W(1))}),It=function(){return ft.apply(Nt?pt.call(St(this)):St(this),arguments)},Dt={copyWithin:function(t,e){return L.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(St(this),arguments)},filter:function(t){return Pt(this,$(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Y(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(St(this),arguments)},lastIndexOf:function(t){return st.apply(St(this),arguments)},map:function(t){return wt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(St(this),arguments)},reduceRight:function(t){return ut.apply(St(this),arguments)},reverse:function(){for(var t,e=this,n=St(e).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return lt.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=m(t,r);return new(N(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-i))}},Rt=function(t,e){return Pt(this,pt.call(St(this),t,e))},jt=function(t){St(this);var e=xt(arguments[1],1),n=this.length,r=E(t),i=v(r.length),o=0;if(i+e>n)throw z("Wrong length!");for(;o255?255:255&r),i.v[f](n*e+i.o,r,Et)},k=function(t,e){B(t,e,{get:function(){return P(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};_?(d=n(function(t,n,r,i){l(t,d,c,"_d");var o,s,a,u,p=0,f=0;if(w(n)){if(!(n instanceof Z||"ArrayBuffer"==(u=b(n))||"SharedArrayBuffer"==u))return _t in n?Ot(d,n):Mt.call(d,n);o=n,f=xt(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw z("Wrong length!");if((s=m-f)<0)throw z("Wrong length!")}else if((s=v(i)*e)+f>m)throw z("Wrong length!");a=s/e}else a=y(n),s=a*e,o=new Z(s);for(h(t,"_d",{b:o,o:f,l:s,e:a,v:new K(o)});p ");else if("object"==typeof e){var r=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];r.push(i+":"+("string"==typeof o?JSON.stringify(o):l(o)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+t.replace(eo,"\n ")}function b(t,e){return new Error(_(t,e))}function w(t){return t[io]}function E(t){return t[oo]}function C(t){return t[so]||x}function x(t){for(var e=[],n=1;n-1)return e.push(t[n]),e;e.push(t[n])}return e}function P(t){if(t.length>1){return" ("+T(t.slice().reverse()).map(function(t){return l(t.token)}).join(" -> ")+")"}return""}function O(t,e,n,r){var i=[e],o=n(i),s=r?S(o,r):Error(o);return s.addKey=k,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[oo]=r,s}function k(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function M(t,e){return O(t,e,function(t){return"No provider for "+l(t[0].token)+"!"+P(t)})}function A(t,e){return O(t,e,function(t){return"Cannot instantiate cyclic dependency!"+P(t)})}function N(t,e,n,r){return O(t,r,function(t){var n=l(t[0].token);return e.message+": Error during instantiation of "+n+"!"+P(t)+"."},e)}function I(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function D(t,e){for(var n=[],r=0,i=e.length;r-1&&t.splice(n,1)}function wt(t,e){var n=fs.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);fs.set(t,e)}function Et(t){return t.reduce(function(t,e){var n=Array.isArray(e)?Et(e):e;return t.concat(n)},[])}function Ct(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function xt(t,e,n){t.childNodes.forEach(function(t){t instanceof Cs&&(e(t)&&n.push(t),xt(t,e,n))})}function St(t,e,n){t instanceof Cs&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Cs&&St(t,e,n)})}function Tt(t){return xs.get(t)||null}function Pt(t){xs.set(t.nativeNode,t)}function Ot(t){xs.delete(t.nativeNode)}function kt(t,e){var n=Mt(t),r=Mt(e);if(n&&r)return At(t,e,kt);var i=t&&("object"==typeof t||"function"==typeof t),o=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!o)||c(t,e)}function Mt(t){return!!It(t)&&(Array.isArray(t)||!(t instanceof Map)&&a()in t)}function At(t,e,n){for(var r=t[a()](),i=e[a()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}function Nt(t,e){if(Array.isArray(t))for(var n=0;n0&&Re(t,e,0,n)&&(f=!0),h>1&&Re(t,e,1,r)&&(f=!0),h>2&&Re(t,e,2,i)&&(f=!0),h>3&&Re(t,e,3,o)&&(f=!0),h>4&&Re(t,e,4,s)&&(f=!0),h>5&&Re(t,e,5,a)&&(f=!0),h>6&&Re(t,e,6,u)&&(f=!0),h>7&&Re(t,e,7,c)&&(f=!0),h>8&&Re(t,e,8,l)&&(f=!0),h>9&&Re(t,e,9,p)&&(f=!0),f}function De(t,e,n){for(var r=!1,i=0;i0?i[n-1]:null,r)}function Qe(t,e){var n=se(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),$e(e.parent.def,e.parentNodeDef)}}function $e(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function Xe(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,rn(n,e),Xs.dirtyParentQueries(r),en(r),r}function Je(t){if(16&t.state){var e=se(t);if(e){var n=e.template._projectedViews;n&&(rn(n,n.indexOf(t)),Xs.dirtyParentQueries(t))}}}function Ye(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];return rn(r,e),null==n&&(n=r.length),nn(r,n,i),Xs.dirtyParentQueries(i),en(i),tn(t,n>0?r[n-1]:null,i),i}function tn(t,e,n){var r=e?ue(e,e.def.lastRenderRootNode):t.renderElement;ge(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function en(t){ge(t,3,null,null,void 0)}function nn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function rn(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function on(t,e,n,r,i,o){return new pa(t,e,n,r,i,o)}function sn(t,e,n){return new fa(t,e,n)}function an(t){return new da(t)}function un(t,e){return new va(t,e)}function cn(t,e){return new ya(t,e)}function ln(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Ht(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vt(t,n.nodeIndex).renderText;if(20240&n.flags)return Bt(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function pn(t){return new ma(t.renderer)}function hn(t,e,n,r){return new ga(t,e,n,r)}function fn(t,e,n,r,i,o,s,a){var u=[];if(s)for(var c in s){var l=s[c],p=l[0],h=l[1];u[p]={flags:8,name:c,nonMinifiedName:h,ns:null,securityContext:null,suffix:null}}var f=[];if(a)for(var d in a)f.push({type:1,propName:d,target:null,eventName:a[d]});return e|=16384,yn(t,e,n,r,i,i,o,u,f)}function dn(t,e,n){return t|=16,yn(-1,t,null,0,e,e,n)}function vn(t,e,n,r,i){return yn(-1,t,e,0,n,r,i)}function yn(t,e,n,r,i,o,s,a,u){var c=fe(n),l=c.matchedQueries,p=c.references,f=c.matchedQueryIds;u||(u=[]),a||(a=[]),o=h(o);var d=de(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:xe(a),outputs:u,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function mn(t,e){return Cn(t,e)}function gn(t,e){for(var n=t;n.parent&&!le(n);)n=n.parent;return xn(n.parent,ae(n),!0,e.provider.value,e.provider.deps)}function _n(t,e){var n=(32768&e.flags)>0,r=xn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i0&&te(t,e,0,n)&&(d=!0,v=On(t,h,e,0,n,v)),y>1&&te(t,e,1,r)&&(d=!0,v=On(t,h,e,1,r,v)),y>2&&te(t,e,2,i)&&(d=!0,v=On(t,h,e,2,i,v)),y>3&&te(t,e,3,o)&&(d=!0,v=On(t,h,e,3,o,v)),y>4&&te(t,e,4,s)&&(d=!0,v=On(t,h,e,4,s,v)),y>5&&te(t,e,5,a)&&(d=!0,v=On(t,h,e,5,a,v)),y>6&&te(t,e,6,u)&&(d=!0,v=On(t,h,e,6,u,v)),y>7&&te(t,e,7,c)&&(d=!0,v=On(t,h,e,7,c,v)),y>8&&te(t,e,8,l)&&(d=!0,v=On(t,h,e,8,l,v)),y>9&&te(t,e,9,p)&&(d=!0,v=On(t,h,e,9,p,v)),v&&f.ngOnChanges(v),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function En(t,e,n){for(var r=Bt(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a0,r=e.provider;switch(201347067&e.flags){case 512:return xn(t,e.parent,n,r.value,r.deps);case 1024:return Sn(t,e.parent,n,r.value,r.deps);case 2048:return Tn(t,e.parent,n,r.deps[0]);case 256:return r.value}}function xn(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Tn(t,e,n,i[0]));case 2:return new r(Tn(t,e,n,i[0]),Tn(t,e,n,i[1]));case 3:return new r(Tn(t,e,n,i[0]),Tn(t,e,n,i[1]),Tn(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a0&&ee(t,e,0,n)&&(f=!0),d>1&&ee(t,e,1,r)&&(f=!0),d>2&&ee(t,e,2,i)&&(f=!0),d>3&&ee(t,e,3,o)&&(f=!0),d>4&&ee(t,e,4,s)&&(f=!0),d>5&&ee(t,e,5,a)&&(f=!0),d>6&&ee(t,e,6,u)&&(f=!0),d>7&&ee(t,e,7,c)&&(f=!0),d>8&&ee(t,e,8,l)&&(f=!0),d>9&&ee(t,e,9,p)&&(f=!0),f){var v=Ut(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}function Gn(t,e,n){for(var r=e.bindings,i=!1,o=0;o0&&ee(t,e,0,n)&&(h=!0),d>1&&ee(t,e,1,r)&&(h=!0),d>2&&ee(t,e,2,i)&&(h=!0),d>3&&ee(t,e,3,o)&&(h=!0),d>4&&ee(t,e,4,s)&&(h=!0),d>5&&ee(t,e,5,a)&&(h=!0),d>6&&ee(t,e,6,u)&&(h=!0),d>7&&ee(t,e,7,c)&&(h=!0),d>8&&ee(t,e,8,l)&&(h=!0),d>9&&ee(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=Xn(n,f[0])),d>1&&(v+=Xn(r,f[1])),d>2&&(v+=Xn(i,f[2])),d>3&&(v+=Xn(o,f[3])),d>4&&(v+=Xn(s,f[4])),d>5&&(v+=Xn(a,f[5])),d>6&&(v+=Xn(u,f[6])),d>7&&(v+=Xn(c,f[7])),d>8&&(v+=Xn(l,f[8])),d>9&&(v+=Xn(p,f[9]));var y=Vt(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}function $n(t,e,n){for(var r=e.bindings,i=!1,o=0;o0)c=v,Yn(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_,l=c&&Yn(c)?c.renderParent:c}}var b=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Js,updateRenderer:r||Js,handleEvent:b,bindingCount:i,outputCount:o,lastRenderRootNode:f}}function Yn(t){return 0!=(1&t.flags)&&null===t.element.name}function tr(t,e,n){var r=e.element&&e.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 "+e.nodeIndex+"!")}if(20224&e.flags){if(0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!")}if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function er(t,e,n,r){var i=ir(t.root,t.renderer,t,e,n);return or(i,t.component,r),sr(i),i}function nr(t,e,n){var r=ir(t,t.renderer,null,null,e);return or(r,n,n),sr(r),r}function rr(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ir(t.root,i,t,e.element.componentProvider,n)}function ir(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s}}function or(t,e,n){t.component=e,t.context=n}function sr(t){var e;if(le(t)){var n=t.parentNodeDef;e=Ht(t.parent,n.parent.nodeIndex).renderElement}for(var r=t.def,i=t.nodes,o=0;o0&&ne(t,e,0,n),h>1&&ne(t,e,1,r),h>2&&ne(t,e,2,i),h>3&&ne(t,e,3,o),h>4&&ne(t,e,4,s),h>5&&ne(t,e,5,a),h>6&&ne(t,e,6,u),h>7&&ne(t,e,7,c),h>8&&ne(t,e,8,l),h>9&&ne(t,e,9,p)}function vr(t,e,n){for(var r=0;r=this._providers.length)throw R(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw A(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+l(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.decorators=[{type:Ii}],t.ctorParameters=function(){return[{type:Wi}]},t}(),as=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ht(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new si.Observable(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),c=new si.Observable(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Qo.assertNotInAngularZone(),u(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Qo.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(ai.merge)(a,ui.share.call(c))}return t.prototype.bootstrap=function(t,e){var n=this;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.");var r;r=t instanceof Fo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(r.componentType);var i=r instanceof Uo?null:this._injector.get(zo),o=e||r.selector,s=r.create(Wi.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(Jo,null);return a&&s.injector.get(Yo).registerApplication(s.location.nativeElement,a),this._loadComponent(s),ht()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Zo(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;bt(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Mo,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),bt(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Go("ApplicationRef#tick()"),t.decorators=[{type:Ii}],t.ctorParameters=function(){return[{type:Qo},{type:No},{type:Wi},{type:ao},{type:Ho},{type:So}]},t}(),us=(function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),function(){function t(){}}(),function(){function t(){}return t}()),cs=(new li("Renderer2Interceptor"),function(){function t(){}}(),function(){function t(){}return t}()),ls={Important:1,DashCase:2};ls[ls.Important]="Important",ls[ls.DashCase]="DashCase";var ps=function(){function t(){}return t}(),hs=function(){function t(t){this.nativeElement=t}return t}(),fs=(function(){function t(){}}(),new Map),ds=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Ko}return Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[a()]=function(){return this._results[a()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=Et(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),vs=function(){function t(){}return t}(),ys={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ms=(function(){function t(t,e){this._compiler=t,this._config=e||ys}t.prototype.load=function(t){return this._compiler instanceof Io?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n(131)(i).then(function(t){return t[o]}).then(function(t){return Ct(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n(131)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Ct(t,r,i)})},t.decorators=[{type:Ii}],t.ctorParameters=function(){return[{type:Io},{type:vs,decorators:[{type:Ni}]}]}}(),function(){function t(){}return t}()),gs=function(){function t(){}return t}(),_s=function(){function t(){}return t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(oi.b)(e,t),e}(_s),ws=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(oi.b)(e,t)}(bs),function(){function t(t,e){this.name=t,this.callback=e}return t}()),Es=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cs?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Cs=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(oi.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return xt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return St(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Es),xs=new Map,Ss=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ts=(function(){function t(){this.hasWrappedValue=!1}t.prototype.unwrap=function(t){return t instanceof Ss?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1}}(),function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}()),Ps=function(){function t(){}return t.prototype.supports=function(t){return Mt(t)},t.prototype.create=function(t){return new ks(t)},t}(),Os=function(t,e){return e},ks=function(){function t(t){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=t||Os}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex=0;e--){var n=Xe(this._data,e);Xs.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new da(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Uo||(i=o.get(zo));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return Ke(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return Ye(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Xe(this._data,t);e&&Xs.destroyView(e)},t.prototype.detach=function(t){var e=Xe(this._data,t);return e?new da(e):null},t}(),da=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return me(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){re(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),Xs.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){Xs.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Xs.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,en(this._view),Xs.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),va=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(oi.b)(e,t),e.prototype.createEmbeddedView=function(t){return new da(Xs.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new hs(Ht(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(ms),ya=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Wi.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Xs.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:$t(t)},e)},t}(),ma=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Ce(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;ndocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(90),i=n(64).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";var r=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)},i=n(119),o=n(60),s=n(123),a=n(83),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var a,u=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(u=Object.create(n),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},function(t,e,n){var r=n(6).f,i=n(9),o=n(5)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports=!1},function(t,e,n){"use strict";var r=n(4),i=n(6),o=n(7),s=n(5)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=n||i||r;e.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n(82))},function(t,e,n){var r=n(90),i=n(64);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(5)("unscopables"),i=Array.prototype;void 0==i[r]&&n(13)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(21),i=n(104),o=n(76),s=n(1),a=n(8),u=n(77),c={},l={},e=t.exports=function(t,e,n,p,h){var f,d,v,y,m=h?function(){return t}:u(t),g=r(n,p,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(f=a(t.length);f>_;_++)if((y=e?g(s(d=t[_])[0],d[1]):g(t[_]))===c||y===l)return y}else for(v=m.call(t);!(d=v.next()).done;)if((y=i(v,g,d.value,e))===c||y===l)return y};e.BREAK=c,e.RETURN=l},function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}e.b=r,n.d(e,"a",function(){return o});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o=Object.assign||function(t){for(var e,n=1,r=arguments.length;nl;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(51)("keys"),i=n(33);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(3),i=n(1),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(21)(Function.call,n(24).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(3),i=n(67).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){"use strict";var r=n(39),i=n(0),o=n(11),s=n(13),a=n(9),u=n(47),c=n(103),l=n(38),p=n(18),h=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){c(n,e,v);var _,b,w,E=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",x="values"==y,S=!1,T=t.prototype,P=T[h]||T["@@iterator"]||y&&T[y],O=P||E(y),k=y?x?E("entries"):O:void 0,M="Array"==e?T.entries||P:P;if(M&&(w=p(M.call(new t)))!==Object.prototype&&w.next&&(l(w,C,!0),r||a(w,h)||s(w,h,d)),x&&P&&"values"!==P.name&&(S=!0,O=function(){return P.call(this)}),r&&!g||!f&&!S&&T[h]||s(T,h,O),u[e]=O,u[C]=d,y)if(_={values:x?O:E("values"),keys:m?O:E("keys"),entries:k},g)for(b in _)b in T||o(T,b,_[b]);else i(i.P+i.F*(f||S),e,_);return _}},function(t,e,n){var r=n(74),i=n(31);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(3),i=n(22),o=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(47),i=n(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(54),i=n(5)("iterator"),o=n(47);t.exports=n(28).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(12),i=n(34),o=n(8);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var r=n(1);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(1),i=n(15),o=n(5)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},function(t,e,n){"use strict";function r(t,e,n){var r,i,o,s=Array(n),a=8*n-e-1,u=(1<>1,l=23===e?L(2,-24)-L(2,-77):0,p=0,h=t<0||0===t&&1/t<0?1:0;for(t=F(t),t!=t||t===R?(i=t!=t?1:0,r=u):(r=V(H(t)/B),t*(o=L(2,-r))<1&&(r--,o*=2),t+=r+c>=1?l/o:l*L(2,1-c),t*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*L(2,e),r+=c):(i=t*L(2,c-1)*L(2,e),r=0));e>=8;s[p++]=255&i,i/=256,e-=8);for(r=r<0;s[p++]=255&r,r/=256,a-=8);return s[--p]|=128*h,s}function i(t,e,n){var r,i=8*n-e-1,o=(1<>1,a=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;a>0;l=256*l+t[u],u--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=e;a>0;r=256*r+t[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:c?-R:R;r+=L(2,e),l-=s}return(c?-1:1)*r*L(2,l-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function s(t){return[255&t]}function a(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function c(t){return r(t,52,8)}function l(t){return r(t,23,4)}function p(t,e,n){T(t[k],e,{get:function(){return this[n]}})}function h(t,e,n,r){var i=+n,o=x(i);if(o+e>t[z])throw D(M);var s=t[U]._b,a=o+t[q],u=s.slice(a,a+e);return r?u:u.reverse()}function f(t,e,n,r,i,o){var s=+n,a=x(s);if(a+e>t[z])throw D(M);for(var u=t[U]._b,c=a+t[q],l=r(+i),p=0;pK;)(W=Z[K++])in A||g(A,W,j[W]);y||(G.constructor=A)}var Q=new N(new A(2)),$=N[k].setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||_(N[k],{setInt8:function(t,e){$.call(this,t,e<<24>>24)},setUint8:function(t,e){$.call(this,t,e<<24>>24)}},!0)}else A=function(t){w(this,A,"ArrayBuffer");var e=x(t);this._b=P.call(Array(e),0),this[z]=e},N=function(t,e,n){w(this,N,"DataView"),w(t,A,"DataView");var r=t[z],i=E(e);if(i<0||i>r)throw D("Wrong offset!");if(n=void 0===n?r-i:C(n),i+n>r)throw D("Wrong length!");this[U]=t,this[q]=i,this[z]=n},v&&(p(A,"byteLength","_l"),p(N,"buffer","_b"),p(N,"byteLength","_l"),p(N,"byteOffset","_o")),_(N[k],{getInt8:function(t){return h(this,1,t)[0]<<24>>24},getUint8:function(t){return h(this,1,t)[0]},getInt16:function(t){var e=h(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=h(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return o(h(this,4,t,arguments[1]))},getUint32:function(t){return o(h(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(h(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(h(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){f(this,1,t,s,e)},setUint8:function(t,e){f(this,1,t,s,e)},setInt16:function(t,e){f(this,2,t,a,e,arguments[2])},setUint16:function(t,e){f(this,2,t,a,e,arguments[2])},setInt32:function(t,e){f(this,4,t,u,e,arguments[2])},setUint32:function(t,e){f(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){f(this,4,t,l,e,arguments[2])},setFloat64:function(t,e){f(this,8,t,c,e,arguments[2])}});O(A,"ArrayBuffer"),O(N,"DataView"),g(N[k],m.VIEW,!0),e.ArrayBuffer=A,e.DataView=N},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(44),i=r.root.Symbol;e.rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},function(t,e,n){"use strict";var r=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)},i=n(20),o=n(37),s=n(60),a=n(314),u=n(315),c=n(83),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function b(t){var e=t.split(":");return{hours:+e[0],minutes:+e[1]}}function w(t){var e=t.toLowerCase().replace(/_/g,"-"),n=bt[e];if(n)return n;var r=e.split("-")[0];if(n=bt[r])return n;if("en"===r)return _t;throw new Error('Missing locale data for the locale "'+t+'".')}function E(t,e){var n=gt[t]||{},r=n[0]||t;return"wide"===e?r:n[1]||r}function C(t,e,n,r){var i="="+t;if(e.indexOf(i)>-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function x(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?Et.One:Et.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?Et.One:Et.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?Et.One:Et.Other;case"ar":return 0===n?Et.Zero:1===n?Et.One:2===n?Et.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?Et.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?Et.Many:Et.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?Et.One:Et.Other;case"be":return n%10==1&&n%100!=11?Et.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?Et.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?Et.Many:Et.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?Et.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?Et.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?Et.Few:0!==n&&n%1e6==0?Et.Many:Et.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?Et.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?Et.Few:Et.Other;case"cs":case"sk":return 1===i&&0===o?Et.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?Et.Few:0!==o?Et.Many:Et.Other;case"cy":return 0===n?Et.Zero:1===n?Et.One:2===n?Et.Two:3===n?Et.Few:6===n?Et.Many:Et.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?Et.One:Et.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?Et.One:0===o&&i%100==2||s%100==2?Et.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?Et.Few:Et.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?Et.One:Et.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?Et.One:Et.Other;case"ga":return 1===n?Et.One:2===n?Et.Two:n===Math.floor(n)&&n>=3&&n<=6?Et.Few:n===Math.floor(n)&&n>=7&&n<=10?Et.Many:Et.Other;case"gd":return 1===n||11===n?Et.One:2===n||12===n?Et.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?Et.Few:Et.Other;case"gv":return 0===o&&i%10==1?Et.One:0===o&&i%10==2?Et.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?Et.Many:Et.Other:Et.Few;case"he":return 1===i&&0===o?Et.One:2===i&&0===o?Et.Two:0!==o||n>=0&&n<=10||n%10!=0?Et.Other:Et.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?Et.One:Et.Other;case"ksh":return 0===n?Et.Zero:1===n?Et.One:Et.Other;case"kw":case"naq":case"se":case"smn":return 1===n?Et.One:2===n?Et.Two:Et.Other;case"lag":return 0===n?Et.Zero:0!==i&&1!==i||0===n?Et.Other:Et.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?Et.Few:0!==s?Et.Many:Et.Other:Et.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?Et.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?Et.One:Et.Other;case"mk":return 0===o&&i%10==1||s%10==1?Et.One:Et.Other;case"mt":return 1===n?Et.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?Et.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?Et.Many:Et.Other;case"pl":return 1===i&&0===o?Et.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Et.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?Et.Many:Et.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?Et.One:Et.Other;case"ro":return 1===i&&0===o?Et.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?Et.Few:Et.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?Et.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Et.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?Et.Many:Et.Other;case"shi":return 0===i||1===n?Et.One:n===Math.floor(n)&&n>=2&&n<=10?Et.Few:Et.Other;case"si":return 0===n||1===n||0===i&&1===s?Et.One:Et.Other;case"sl":return 0===o&&i%100==1?Et.One:0===o&&i%100==2?Et.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?Et.Few:Et.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?Et.One:Et.Other;default:return Et.Other}}function S(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n0||a>-n)&&(a+=n),t===$t.Hours&&0===a&&-12===n&&(a=12),M(a,e,f(s,Tt.MinusSign),r,i)}}function N(t,e,n){switch(t){case $t.FullYear:return e.getFullYear();case $t.Month:return e.getMonth();case $t.Date:return e.getDate();case $t.Hours:return e.getHours();case $t.Minutes:return e.getMinutes();case $t.Seconds:return e.getSeconds();case $t.Milliseconds:var r=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/r);case $t.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}function I(t,e,n,r){return void 0===n&&(n=Ct.Format),void 0===r&&(r=!1),function(i,o){return D(i,o,t,e,n,r)}}function D(t,e,n,r,i,o){switch(n){case Xt.Months:return u(e,i,r)[t.getMonth()];case Xt.Days:return a(e,i,r)[t.getDay()];case Xt.DayPeriods:var l=t.getHours(),p=t.getMinutes();if(o){var h,f=m(e),d=g(e,i,r);if(f.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,o=t[1],s=o.hours,a=o.minutes;l>=r&&p>=i&&(l0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Qt.Short:return(i>=0?"+":"")+M(s,2,o)+M(Math.abs(i%60),2,o);case Qt.ShortGMT:return"GMT"+(i>=0?"+":"")+M(s,1,o);case Qt.Long:return"GMT"+(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);case Qt.Extended:return 0===r?"Z":(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}function j(t){var e=new Date(t,Jt,1).getDay();return new Date(t,0,1+(e<=Yt?Yt:Yt+7)-e)}function F(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(Yt-t.getDay()))}function L(t,e){return void 0===e&&(e=!1),function(n,r){var i;if(e){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{var a=j(n.getFullYear()),u=F(n),c=u.getTime()-a.getTime();i=1+Math.round(c/6048e5)}return M(i,t,f(r,Tt.MinusSign))}}function V(t){if(te[t])return te[t];var e;switch(t){case"G":case"GG":case"GGG":e=I(Xt.Eras,xt.Abbreviated);break;case"GGGG":e=I(Xt.Eras,xt.Wide);break;case"GGGGG":e=I(Xt.Eras,xt.Narrow);break;case"y":e=A($t.FullYear,1,0,!1,!0);break;case"yy":e=A($t.FullYear,2,0,!0,!0);break;case"yyy":e=A($t.FullYear,3,0,!1,!0);break;case"yyyy":e=A($t.FullYear,4,0,!1,!0);break;case"M":case"L":e=A($t.Month,1,1);break;case"MM":case"LL":e=A($t.Month,2,1);break;case"MMM":e=I(Xt.Months,xt.Abbreviated);break;case"MMMM":e=I(Xt.Months,xt.Wide);break;case"MMMMM":e=I(Xt.Months,xt.Narrow);break;case"LLL":e=I(Xt.Months,xt.Abbreviated,Ct.Standalone);break;case"LLLL":e=I(Xt.Months,xt.Wide,Ct.Standalone);break;case"LLLLL":e=I(Xt.Months,xt.Narrow,Ct.Standalone);break;case"w":e=L(1);break;case"ww":e=L(2);break;case"W":e=L(1,!0);break;case"d":e=A($t.Date,1);break;case"dd":e=A($t.Date,2);break;case"E":case"EE":case"EEE":e=I(Xt.Days,xt.Abbreviated);break;case"EEEE":e=I(Xt.Days,xt.Wide);break;case"EEEEE":e=I(Xt.Days,xt.Narrow);break;case"EEEEEE":e=I(Xt.Days,xt.Short);break;case"a":case"aa":case"aaa":e=I(Xt.DayPeriods,xt.Abbreviated);break;case"aaaa":e=I(Xt.DayPeriods,xt.Wide);break;case"aaaaa":e=I(Xt.DayPeriods,xt.Narrow);break;case"b":case"bb":case"bbb":e=I(Xt.DayPeriods,xt.Abbreviated,Ct.Standalone,!0);break;case"bbbb":e=I(Xt.DayPeriods,xt.Wide,Ct.Standalone,!0);break;case"bbbbb":e=I(Xt.DayPeriods,xt.Narrow,Ct.Standalone,!0);break;case"B":case"BB":case"BBB":e=I(Xt.DayPeriods,xt.Abbreviated,Ct.Format,!0);break;case"BBBB":e=I(Xt.DayPeriods,xt.Wide,Ct.Format,!0);break;case"BBBBB":e=I(Xt.DayPeriods,xt.Narrow,Ct.Format,!0);break;case"h":e=A($t.Hours,1,-12);break;case"hh":e=A($t.Hours,2,-12);break;case"H":e=A($t.Hours,1);break;case"HH":e=A($t.Hours,2);break;case"m":e=A($t.Minutes,1);break;case"mm":e=A($t.Minutes,2);break;case"s":e=A($t.Seconds,1);break;case"ss":e=A($t.Seconds,2);break;case"S":e=A($t.Milliseconds,1);break;case"SS":e=A($t.Milliseconds,2);break;case"SSS":e=A($t.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=R(Qt.Short);break;case"ZZZZZ":e=R(Qt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=R(Qt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=R(Qt.Long);break;default:return null}return te[t]=e,e}function H(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function B(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function U(t,e,n){var r=n?-1:1,i=t.getTimezoneOffset();return B(t,r*(H(e,i)-i))}function z(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(ht._42)(t)+"'")}function q(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=+(t[9]+t[10]),r=+(t[9]+t[11])),i.call(e,+t[1],+t[2]-1,+t[3]);var s=+(t[4]||"0")-n,a=+(t[5]||"0")-r,u=+(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function W(t){return t instanceof Date&&!isNaN(t.valueOf())}function G(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function Z(t){return function(e,n){return t(e,n).split(" ")[0]}}function K(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function Q(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=K(t,n,e);return r?r.substring(3):""}}function $(t,e){return t.hour12=e,t}function X(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function J(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function Y(t){return t.reduce(function(t,e){return Object(ft.a)({},t,e)},{})}function tt(t){return function(e,n){return K(e,n,t)}}function et(t,e,n){var r=oe[t];if(r)return r(e,n);var i=t,o=ae.get(i);if(!o){o=[];var s=void 0;ie.exec(t);for(var a=t;a;)s=ie.exec(a),s?(o=o.concat(s.slice(1)),a=o.pop()):(o.push(a),a=null);ae.set(i,o)}return o.reduce(function(t,r){var i=se[r];return t+(i?i(e,n):nt(r))},"")}function nt(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}function it(t,e,n,r,i){void 0===i&&(i=null);var o,s={str:null},a=d(e,n);if("string"!=typeof t||isNaN(+t-parseFloat(t))){if("number"!=typeof t)return s.error=t+" is not a number",s;o=t}else o=+t;n===wt.Percent&&(o*=100);var u=Math.abs(o)+"",c=ot(a,f(e,Tt.MinusSign)),l="",p=!1;if(isFinite(o)){var h=st(u),v=c.minInt,y=c.minFrac,m=c.maxFrac;if(r){var g=r.match(le);if(null===g)return s.error=r+" is not a valid digit info",s;var _=g[1],b=g[3],w=g[5];null!=_&&(v=ut(_)),null!=b&&(y=ut(b)),null!=w?m=ut(w):null!=b&&y>m&&(m=y)}at(h,y,m);var E=h.digits,C=h.integerLen,x=h.exponent,S=[];for(p=E.every(function(t){return!t});C0?S=E.splice(C,E.length):(S=E,E=[0]);var T=[];for(E.length>=c.lgSize&&T.unshift(E.splice(-c.lgSize,E.length).join(""));E.length>c.gSize;)T.unshift(E.splice(-c.gSize,E.length).join(""));E.length&&T.unshift(E.join(""));var P=i?Tt.CurrencyGroup:Tt.Group;if(l=T.join(f(e,P)),S.length){l+=f(e,i?Tt.CurrencyDecimal:Tt.Decimal)+S.join("")}x&&(l+=f(e,Tt.Exponential)+"+"+x)}else l=f(e,Tt.Infinity);return l=o<0&&!p?c.negPre+l+c.negSuf:c.posPre+l+c.posSuf,n===wt.Currency&&null!==i?(s.str=l.replace(me,i).replace(me,""),s):n===wt.Percent?(s.str=l.replace(new RegExp(ge,"g"),f(e,Tt.PercentSign)),s):(s.str=l,s)}function ot(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(de),i=r[0],o=r[1],s=-1!==i.indexOf(he)?i.split(he):[i.substring(0,i.lastIndexOf(fe)+1),i.substring(i.lastIndexOf(fe)+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf(ye));for(var c=0;c-1&&(t=t.replace(he,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)===fe;r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===fe;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>pe&&(e=e.splice(0,pe-1),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}function at(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(var u=s;u=5)if(s-1<0){for(var l=0;l>s;l--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=mt.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.decorators=[{type:ht.w}],e.ctorParameters=function(){return[{type:dt},{type:void 0,decorators:[{type:ht.J},{type:ht.v,args:[yt]}]}]}}(vt),function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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.");return r._baseHref=n,r}Object(ft.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return mt.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+mt.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.decorators=[{type:ht.w}],e.ctorParameters=function(){return[{type:dt},{type:void 0,decorators:[{type:ht.J},{type:ht.v,args:[yt]}]}]}}(vt),{AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"৳"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"р."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN¥","¥"],COP:[,"$"],CRC:[,"₡"],CUC:[,"$"],CUP:[,"$"],CZK:[,"Kč"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E£"],ESP:[,"₧"],EUR:["€"],FJD:[,"$"],FKP:[,"£"],GBP:["£"],GEL:[,"₾"],GIP:[,"£"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["₪"],INR:["₹"],ISK:[,"kr"],JMD:[,"$"],JPY:["¥"],KHR:[,"៛"],KMF:[,"CF"],KPW:[,"₩"],KRW:["₩"],KYD:[,"$"],KZT:[,"₸"],LAK:[,"₭"],LBP:[,"L£"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"₮"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"₦"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"₱"],PKR:[,"Rs"],PLN:[,"zł"],PYG:[,"₲"],RON:[,"lei"],RUB:[,"₽"],RUR:[,"р."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"£"],SRD:[,"$"],SSP:[,"£"],STD:[,"Db"],SYP:[,"£"],THB:[,"฿"],TOP:[,"T$"],TRY:[,"₺"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"₴"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["₫"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]}),_t=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["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"]],,[["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"]],,[["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}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],bt={},wt={Decimal:0,Percent:1,Currency:2,Scientific:3};wt[wt.Decimal]="Decimal",wt[wt.Percent]="Percent",wt[wt.Currency]="Currency",wt[wt.Scientific]="Scientific";var Et={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};Et[Et.Zero]="Zero",Et[Et.One]="One",Et[Et.Two]="Two",Et[Et.Few]="Few",Et[Et.Many]="Many",Et[Et.Other]="Other";var Ct={Format:0,Standalone:1};Ct[Ct.Format]="Format",Ct[Ct.Standalone]="Standalone";var xt={Narrow:0,Abbreviated:1,Wide:2,Short:3};xt[xt.Narrow]="Narrow",xt[xt.Abbreviated]="Abbreviated",xt[xt.Wide]="Wide",xt[xt.Short]="Short";var St={Short:0,Medium:1,Long:2,Full:3};St[St.Short]="Short",St[St.Medium]="Medium",St[St.Long]="Long",St[St.Full]="Full";var Tt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Tt[Tt.Decimal]="Decimal",Tt[Tt.Group]="Group",Tt[Tt.List]="List",Tt[Tt.PercentSign]="PercentSign",Tt[Tt.PlusSign]="PlusSign",Tt[Tt.MinusSign]="MinusSign",Tt[Tt.Exponential]="Exponential",Tt[Tt.SuperscriptingExponent]="SuperscriptingExponent",Tt[Tt.PerMille]="PerMille",Tt[Tt.Infinity]="Infinity",Tt[Tt.NaN]="NaN",Tt[Tt.TimeSeparator]="TimeSeparator",Tt[Tt.CurrencyDecimal]="CurrencyDecimal",Tt[Tt.CurrencyGroup]="CurrencyGroup";var Pt={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};Pt[Pt.Sunday]="Sunday",Pt[Pt.Monday]="Monday",Pt[Pt.Tuesday]="Tuesday",Pt[Pt.Wednesday]="Wednesday",Pt[Pt.Thursday]="Thursday",Pt[Pt.Friday]="Friday",Pt[Pt.Saturday]="Saturday";var Ot=new ht.x("UseV4Plurals"),kt=function(){function t(){}return t}(),Mt=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(ft.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):v(e||this.locale)(t)){case Et.Zero:return"zero";case Et.One:return"one";case Et.Two:return"two";case Et.Few:return"few";case Et.Many:return"many";default:return"other"}},e.decorators=[{type:ht.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht.v,args:[ht.C]}]},{type:void 0,decorators:[{type:ht.J},{type:ht.v,args:[Ot]}]}]},e}(kt),At=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(ht._27)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(ht._42)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t.decorators=[{type:ht.q,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:ht.A},{type:ht.B},{type:ht.r},{type:ht.R}]},t.propDecorators={klass:[{type:ht.z,args:["class"]}],ngClass:[{type:ht.z}]},t}(),Nt=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(ht.G);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(ht.o),i=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.decorators=[{type:ht.q,args:[{selector:"[ngComponentOutlet]"}]}],t.ctorParameters=function(){return[{type:ht._3}]},t.propDecorators={ngComponentOutlet:[{type:ht.z}],ngComponentOutletInjector:[{type:ht.z}],ngComponentOutletContent:[{type:ht.z}],ngComponentOutletNgModuleFactory:[{type:ht.z}]},t}(),It=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Dt=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(ht._10)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+T(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new It(null,e.ngForOf,-1,-1),i),s=new Rt(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new Rt(t,o);n.push(s)}});for(var r=0;r/g,">")}function S(t){zt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||zt.removeAttribute(t,n)});for(var e=0,n=zt.childNodesAsList(t);e"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}function I(t,e){var n=t.getElementById(e+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(N(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return _e.init(r)}n.d(e,"a",function(){return ye}),n.d(e,"b",function(){return de}),n.d(e,"c",function(){return r});var D,R=n(85),j=n(27),F=n(50),L=null,V=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),H=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[s]=[]);var c=Tt(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:c,handler:o});else{for(var l=!1,p=0;p-1},e.decorators=[{type:j.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.v,args:[K]}]},{type:At,decorators:[{type:j.v,args:[Mt]}]}]},e}(at),It=["alt","control","meta","shift"],Dt=function(t){return t.altKey},Rt=function(t){return t.ctrlKey},jt=function(t){return t.metaKey},Ft=function(t){return t.shiftKey},Lt={alt:Dt,control:Rt,meta:jt,shift:Ft},Vt=function(t){function e(e){return t.call(this,e)||this}return Object(F.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(It.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),It.forEach(function(r){if(r!=n){(0,Lt[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:j.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.v,args:[K]}]}]},e}(at),Ht=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Bt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ut=null,zt=null,qt=w("area,br,col,hr,img,wbr"),Wt=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gt=w("rp,rt"),Zt=E(Gt,Wt),Kt=E(Wt,w("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")),Qt=E(Gt,w("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")),$t=E(qt,Kt,Qt,Zt),Xt=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jt=w("srcset"),Yt=w("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"),te=E(Xt,Jt,Yt),ee=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(zt.isElementNode(e)?this.startElement(e):zt.isTextNode(e)?this.chars(zt.nodeValue(e)):this.sanitizedSomething=!0,zt.firstChild(e))e=zt.firstChild(e);else for(;e;){zt.isElementNode(e)&&this.endElement(e);var n=C(e,zt.nextSibling(e));if(n){e=n;break}e=C(e,zt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=zt.nodeName(t).toLowerCase();if(!$t.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),zt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!te.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Xt[r]&&(t=g(t)),Jt[r]&&(t=_(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=zt.nodeName(t).toLowerCase();$t.hasOwnProperty(e)&&!qt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),ne=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,re=/([^\#-~ |!])/g,ie=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),oe=/^url\(([^)]+)\)$/,se=function(){function t(){}return t}(),ae=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(F.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case j.V.NONE:return e;case j.V.HTML:return e instanceof ce?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case j.V.STYLE:return e instanceof le?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case j.V.SCRIPT:if(e instanceof pe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case j.V.URL:return e instanceof fe||e instanceof he?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case j.V.RESOURCE_URL:if(e instanceof fe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ue)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new ce(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new le(t)},e.prototype.bypassSecurityTrustScript=function(t){return new pe(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new he(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new fe(t)},e.decorators=[{type:j.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.v,args:[K]}]}]},e}(se),ue=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ue),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ue),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ue),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ue),fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ue),de=[{provide:j.M,useValue:R.d},{provide:j.N,useValue:k,multi:!0},{provide:R.c,useClass:Q,deps:[K]},{provide:K,useFactory:A,deps:[]}],ve=[{provide:j.U,useExisting:se},{provide:se,useClass:ae,deps:[K]}],ye=(Object(j._6)(j._11,"browser",de),function(){function t(t){if(t)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.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:j.b,useValue:e.appId},{provide:X,useExisting:j.b},J]}},t.decorators=[{type:j.E,args:[{providers:[ve,{provide:j.s,useFactory:M,deps:[]},{provide:ot,useClass:Ot,multi:!0},{provide:ot,useClass:Vt,multi:!0},{provide:ot,useClass:Nt,multi:!0},{provide:Mt,useClass:At},dt,{provide:j.S,useExisting:dt},{provide:ut,useExisting:ct},ct,j._1,st,it,$,tt],exports:[R.a,j.e]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:j.J},{type:j.X}]}]},t}()),me="undefined"!=typeof window&&window||{},ge=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),_e=(function(){function t(t){this.appRef=t.injector.get(j.f)}t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=me.console.profile;e&&n&&me.console.profile("Change Detection");for(var i=r().performanceNow(),o=0;o<5||r().performanceNow()-i<500;)this.appRef.tick(),o++;var s=r().performanceNow();e&&n&&me.console.profileEnd("Change Detection");var a=(s-i)/o;return me.console.log("ran "+o+" change detection cycles"),me.console.log(a.toFixed(2)+" ms per check"),new ge(a,o)}}(),function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return this.store[t]||e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:j.w}],t.ctorParameters=function(){return[]},t}());(function(){function t(){}t.decorators=[{type:j.E,args:[{providers:[{provide:_e,useFactory:I,deps:[K,j.b]}]}]}],t.ctorParameters=function(){return[]}})(),function(){function t(){}t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}}}(),new j._2("5.0.3")},function(t,e,n){"use strict";function r(t){var e=["tree-container-ul","tree-children"];return t&&e.push("tree-no-dots"),e.join(" ")}function i(t,e){var n=["tree-node"];return t.state.openable||t.children.length>0?(t.state.opened?n.push("tree-open"):n.push("tree-closed"),t.state.loading&&n.push("tree-loading")):n.push("tree-leaf"),e&&n.push("tree-last"),n.join(" ")}function o(t,e,n){var r=["tree-anchor","tree-relative","tree-anchor-"+n.join("-")];return t.state.selected&&r.push("tree-clicked"),t.state.disabled&&r.push("tree-disabled"),t.state.highlighted&&r.push("tree-search"),e&&r.push("tree-hovered"),r.join(" ")}function s(t,e){var n=["tree-icon","tree-checkbox","tree-checkbox-"+e.join("-")];return t.children&&t.children.some(function(t){return t.state.selected})&&t.children.some(function(t){return!t.state.selected})&&n.push("tree-undetermined"),n.join(" ")}function a(t,e,n){void 0===n&&(n="default");var r=["tree"];return e?r.push("tree-"+n+"-"+e):r.push("tree-"+n),t&&r.push("tree-checkbox-selection","tree-checkbox-no-clicked"),r.join(" ")}function u(t){var e=["tree-icon","tree-themeicon"];return t&&e.push(t,"tree-themeicon-custom"),e.join(" ")}function c(t){return["tree-icon","tree-ocl","tree-ocl-"+t.join("-")].join(" ")}function l(t){var e=["tree-marker-"+t.state.dropPosition];return t.state.dropAllowed?e.push("allowed"):e.push("not-allowed"),e.join(" ")}function p(t,e){for(var n=null,r=0,i=e;r2*n/3?3:2}function f(t){if(t.state.dropPosition&&(t.state.dropPosition=0),t.children)for(var e=0,n=t.children;eu;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(6),i=n(1),o=n(45);t.exports=n(7)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(16),i=n(36).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,e,n){"use strict";var r=n(45),i=n(52),o=n(53),s=n(12),a=n(46),u=Object.assign;t.exports=!u||n(2)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,l=i.f,p=o.f;u>c;)for(var h,f=a(arguments[c++]),d=l?r(f).concat(l(f)):r(f),v=d.length,y=0;v>y;)p.call(f,h=d[y++])&&(n[h]=f[h]);return n}:u},function(t,e,n){"use strict";var r=n(15),i=n(3),o=n(95),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i>>0||(s.test(n)?16:10))}:r},function(t,e,n){var r=n(4).parseFloat,i=n(55).trim;t.exports=1/r(n(68)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(22);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(23),i=n(31);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(3),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(23),i=n(31);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(35),i=n(32),o=n(38),s={};n(13)(s,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(1);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(6),i=n(32);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(15),i=n(12),o=n(46),s=n(8);t.exports=function(t,e,n,a,u){r(e);var c=i(t),l=o(c),p=s(c.length),h=u?p-1:0,f=u?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=f;break}if(h+=f,u?h<0:p<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:p>h;h+=f)h in l&&(a=e(a,l[h],h,c));return a}},function(t,e,n){"use strict";var r=n(12),i=n(34),o=n(8);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),p=1;for(u0;)u in n?n[a]=n[u]:delete n[a],a+=p,u+=p;return n}},function(t,e,n){"use strict";var r=n(48),i=n(109),o=n(47),s=n(16);t.exports=n(72)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(7)&&"g"!=/./g.flags&&n(6).f(RegExp.prototype,"flags",{configurable:!0,get:n(79)})},function(t,e,n){var r,i,o,s=n(21),a=n(95),u=n(66),c=n(61),l=n(4),p=l.process,h=l.setImmediate,f=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){g.call(t.data)};h&&f||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){a("function"==typeof t?t:Function(t),e)},r(y),y},f=function(t){delete m[t]},"process"==n(22)(p)?r=function(t){p.nextTick(s(g,t,1))}:v&&v.now?r=function(t){v.now(s(g,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(s(g,t,1),0)}),t.exports={set:h,clear:f}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(15);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";var r=n(114),i=n(43);t.exports=n(58)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(6).f,i=n(35),o=n(42),s=n(21),a=n(41),u=n(49),c=n(72),l=n(109),p=n(40),h=n(7),f=n(30).fastKey,d=n(43),v=h?"_s":"size",y=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){a(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&u(r,n,t[c],t)});return o(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=d(this,e),r=y(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(t){d(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(d(this,e),t)}}),h&&r(l.prototype,"size",{get:function(){return d(this,e)[v]}}),l},def:function(t,e,n){var r,i,o=y(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),p(e)}}},function(t,e,n){"use strict";var r=n(114),i=n(43);t.exports=n(58)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(19)(0),o=n(11),s=n(30),a=n(93),u=n(117),c=n(3),l=n(2),p=n(43),h=s.getWeak,f=Object.isExtensible,d=u.ufstore,v={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(c(t)){var e=h(t);return!0===e?d(p(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(p(this,"WeakMap"),t,e)}},g=t.exports=n(58)("WeakMap",y,m,u,!0,!0);l(function(){return 7!=(new g).set((Object.freeze||Object)(v),7).get(v)})&&(r=u.getConstructor(y,"WeakMap"),a(r.prototype,m),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!f(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(42),i=n(30).getWeak,o=n(1),s=n(3),a=n(41),u=n(49),c=n(19),l=n(9),p=n(43),h=c(5),f=c(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},m=function(t,e){return h(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){a(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(c.prototype,{delete:function(t){if(!s(t))return!1;var n=i(t);return!0===n?v(p(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=i(t);return!0===n?v(p(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(23),i=n(8);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},function(t,e,n){"use strict";e.errorObject={e:{}}},function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=n(44);e.getSymbolObservable=r,e.observable=r(i.root),e.$$observable=e.observable},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof o.Observable?t[0]:a.mergeAll(n)(new s.ArrayObservable(t,r))}var o=n(20),s=n(301),a=n(303),u=n(127);e.merge=r,e.mergeStatic=i},function(t,e,n){"use strict";var r=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)},i=n(20),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(i.Observable);e.EmptyObservable=o},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(o.isArrayLike(e)){for(var f=0,d=e.length;f1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(o.Subscriber)},function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=131},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n(27),i=n(87),o=n(326),s=function(){function t(){this.toggle=new r.t,this.change=new r.t,this.hovered=!1,this.doubleClick=new i.a}return Object.defineProperty(t.prototype,"nodeClassName",{get:function(){return i.i(this.data,this.last)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anchorClassName",{get:function(){return i.c(this.data,this.hovered,this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkboxClassName",{get:function(){return i.d(this.data,this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClassName",{get:function(){return i.f(this.data.icon)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oclClassName",{get:function(){return i.k(this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathString",{get:function(){return this.path.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasMarker",{get:function(){return this.draggable&&0!==this.data.state.dropPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerClassName",{get:function(){return i.h(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eventData",{get:function(){return{data:this.data,path:this.path}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return i.g(this.path,this.preid)},enumerable:!0,configurable:!0}),t.prototype.geChildPath=function(t){return this.path.concat(t)},t.prototype.hover=function(t){this.hovered=t},t.prototype.ontoggle=function(t){t?this.toggle.emit(t):(this.data.state.openable||this.data.children.length>0)&&this.toggle.emit(this.eventData)},t.prototype.onchange=function(t){var e=this;if(t)this.change.emit(t);else{if(this.data.state.disabled)return;this.doubleClick.onclick(function(){e.change.emit(e.eventData)})}},t.prototype.trackBy=function(t,e){return e},t.decorators=[{type:r.m,args:[{selector:"node",template:o.a}]}],t.ctorParameters=function(){return[]},t.propDecorators={data:[{type:r.z}],last:[{type:r.z}],checkbox:[{type:r.z}],path:[{type:r.z}],draggable:[{type:r.z}],preid:[{type:r.z}],toggle:[{type:r.K}],change:[{type:r.K}]},t}(),a=function(){function t(){this.toggle=new r.t,this.change=new r.t,this.drop=new r.t,this.dragTarget=null,this.dropTarget=null}return Object.defineProperty(t.prototype,"rootClassName",{get:function(){return i.l(this.checkbox,this.size,this.theme)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerClassName",{get:function(){return i.e(this.nodots)},enumerable:!0,configurable:!0}),t.prototype.ontoggle=function(t){this.toggle.emit(t)},t.prototype.onchange=function(t){this.change.emit(t)},t.prototype.ondragstart=function(t){this.draggable&&(this.dragTarget=t.target,this.dropTarget=t.target)},t.prototype.ondragend=function(t){if(this.draggable){this.dragTarget=null;for(var e=0,n=this.data;ei;)G(t,n=r[i++],e[n]);return t},K=function(t,e){return void 0===e?E(t):Z(E(t),e)},Q=function(t){var e=R.call(this,t=b(t,!0));return!(this===V&&i(F,t)&&!i(L,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,I)&&this[I][t])||e)},$=function(t,e){if(t=_(t),e=b(e,!0),t!==V||!i(F,e)||i(L,e)){var n=P(t,e);return!n||!i(F,e)||i(t,I)&&t[I][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=k(_(t)),r=[],o=0;n.length>o;)i(F,e=n[o++])||e==I||e==u||r.push(e);return r},J=function(t){for(var e,n=t===V,r=k(n?L:_(t)),o=[],s=0;r.length>s;)!i(F,e=r[s++])||n&&!i(V,e)||o.push(F[e]);return o};H||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(L,n),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),z(this,t,w(1,n))};return o&&U&&z(V,t,{configurable:!0,set:e}),q(t)},a(M.prototype,"toString",function(){return this._k}),x.f=$,S.f=G,n(36).f=C.f=X,n(53).f=Q,n(52).f=J,o&&!n(39)&&a(V,"propertyIsEnumerable",Q,!0),d.f=function(t){return q(f(t))}),s(s.G+s.W+s.F*!H,{Symbol:M});for(var Y="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Y.length>tt;)f(Y[tt++]);for(var et=T(f.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return i(j,t+="")?j[t]:j[t]=M(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),s(s.S+s.F*!H,"Object",{create:K,defineProperty:G,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:J}),A&&s(s.S+s.F*(!H||c(function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,N.apply(A,r)}}}),M.prototype[D]||n(13)(M.prototype,D,M.prototype.valueOf),p(M,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){var r=n(4),i=n(28),o=n(39),s=n(89),a=n(6).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(45),i=n(52),o=n(53);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(35)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(7),"Object",{defineProperty:n(6).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(7),"Object",{defineProperties:n(91)})},function(t,e,n){var r=n(16),i=n(24).f;n(17)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(12),i=n(18);n(17)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(12),i=n(45);n(17)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(17)("getOwnPropertyNames",function(){return n(92).f})},function(t,e,n){var r=n(3),i=n(30).onFreeze;n(17)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(3),i=n(30).onFreeze;n(17)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(3),i=n(30).onFreeze;n(17)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(3);n(17)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(3);n(17)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(3);n(17)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(93)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(153)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(67).set})},function(t,e,n){"use strict";var r=n(54),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(11)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(94)})},function(t,e,n){var r=n(6).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(7)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(3),i=n(18),o=n(5)("hasInstance"),s=Function.prototype;o in s||n(6).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),i=n(96);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(0),i=n(97);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(4),i=n(9),o=n(22),s=n(69),a=n(29),u=n(2),c=n(36).f,l=n(24).f,p=n(6).f,h=n(55).trim,f=r.Number,d=f,v=f.prototype,y="Number"==o(n(35)(v)),m="trim"in String.prototype,g=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;ci)return NaN;return parseInt(u,r)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(y?u(function(){v.valueOf.call(n)}):"Number"!=o(n))?s(new d(g(e)),n,f):g(e)};for(var _,b=n(7)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)i(d,_=b[w])&&!i(f,_)&&p(f,_,l(d,_));f.prototype=v,v.constructor=f,n(11)(r,"Number",f)}},function(t,e,n){"use strict";var r=n(0),i=n(23),o=n(98),s=n(99),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",p=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)},v=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)(function(){a.call({})})),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,l),c=i(t),y="",m="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(e=v(u*d(2,69,1))-69,n=e<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(p(0,n),r=c;r>=7;)p(1e7,0),r-=7;for(p(d(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<0?(a=m.length,m=y+(a<=c?"0."+s.call("0",c-a)+m:m.slice(0,a-c)+"."+m.slice(a-c))):m=y+m,m}})},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(98),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),i=n(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(100)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(100),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),i=n(97);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(0),i=n(96);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(0),i=n(101),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(0),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(70);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(71);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(181)})},function(t,e,n){var r=n(70),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126),c=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),l=r(t);return ia||n!=n?l*(1/0):l*n)}},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(2)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(101)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(70)})},function(t,e,n){var r=n(0),i=n(71),o=Math.exp;r(r.S+r.F*n(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(71),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(34),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(16),o=n(8);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),i=n(102)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(73),s="".endsWith;r(r.P+r.F*n(75)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(0),i=n(73);r(r.P+r.F*n(75)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(99)})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(73),s="".startsWith;r(r.P+r.F*n(75)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(10)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(10)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(10)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(10)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(10)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(10)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(10)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(10)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(10)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(10)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(10)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(10)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(10)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),i=n(12),o=n(29);r(r.P+r.F*n(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),i=n(216);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",function(){var t=o.call(this);return t===t?i.call(this):"Invalid Date"})},function(t,e,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(13)(i,r,n(219))},function(t,e,n){"use strict";var r=n(1),i=n(29);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(65)})},function(t,e,n){"use strict";var r=n(21),i=n(0),o=n(12),s=n(104),a=n(76),u=n(8),c=n(105),l=n(77);i(i.S+i.F*!n(56)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,p,h=o(t),f="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,m=0,g=l(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||f==Array&&a(g))for(e=u(h.length),n=new f(e);e>m;m++)c(n,m,y?v(h[m],m):h[m]);else for(p=g.call(h),n=new f;!(i=p.next()).done;m++)c(n,m,y?s(p,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),i=n(105);r(r.S+r.F*n(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),i=n(16),o=[].join;r(r.P+r.F*(n(46)!=Object||!n(14)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),i=n(66),o=n(22),s=n(34),a=n(8),u=[].slice;r(r.P+r.F*n(2)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),c=s(e,n),l=a(c-i),p=Array(l),h=0;h1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(107)}),n(48)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(78)}),n(48)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(19)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(48)("find")},function(t,e,n){"use strict";var r=n(0),i=n(19)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(48)(o)},function(t,e,n){n(40)("Array")},function(t,e,n){var r=n(4),i=n(69),o=n(6).f,s=n(36).f,a=n(74),u=n(79),c=r.RegExp,l=c,p=c.prototype,h=/a/g,f=/a/g,d=new c(h)!==h;if(n(7)&&(!d||n(2)(function(){return f[n(5)("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=a(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:p,c)};for(var v=s(l),y=0;v.length>y;)!function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}(v[y++]);p.constructor=c,c.prototype=p,n(11)(r,"RegExp",c)}n(40)("RegExp")},function(t,e,n){"use strict";n(110);var r=n(1),i=n(79),o=n(7),s=/./.toString,a=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(t,e,n){n(57)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(57)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(57)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(57)("split",2,function(t,e,r){"use strict";var i=n(74),o=r,s=[].push,a="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[a]||2!="ab".split(/(?:ab)*/)[a]||4!=".".split(/(.?)(.?)/)[a]||".".split(/()()/)[a]>1||"".split(/.?/)[a]){var u=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,c,l,p,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,d+"g");for(u||(r=new RegExp("^"+m.source+"$(?!\\s)",d));(c=m.exec(n))&&!((l=c.index+c[0][a])>v&&(f.push(n.slice(v,c.index)),!u&&c[a]>1&&c[0].replace(r,function(){for(h=1;h1&&c.index=y));)m.lastIndex===c.index&&m.lastIndex++;return v===n[a]?!p&&m.test("")||f.push(""):f.push(n.slice(v)),f[a]>y?f.slice(0,y):f}}else"0".split(void 0,0)[a]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){"use strict";var r,i,o,s,a=n(39),u=n(4),c=n(21),l=n(54),p=n(0),h=n(3),f=n(15),d=n(41),v=n(49),y=n(80),m=n(111).set,g=n(249)(),_=n(112),b=n(250),w=n(251),E=u.TypeError,C=u.process,x=u.Promise,S="process"==l(C),T=function(){},P=i=_.f,O=!!function(){try{var t=x.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(T,T)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e}catch(t){}}(),k=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,s=i?e.ok:e.fail,a=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2==t._h&&I(t),t._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&c.exit()),n===e.promise?u(E("Promise-chain cycle")):(o=k(n))?o.call(n,a,u):a(n)):u(r)}catch(t){u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){m.call(u,function(){var e,n,r,i=t._v,o=N(t);if(o&&(e=b(function(){S?C.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=S||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},N=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!N(e.promise))return!1;return!0},I=function(t){m.call(u,function(){var e;S?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=k(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(R,r,1),c(D,r,1))}catch(t){D.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};O||(x=function(t){d(this,x,"Promise","_h"),f(t),r.call(this);try{t(c(R,this,1),c(D,this,1))}catch(t){D.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(42)(x.prototype,{then:function(t,e){var n=P(y(this,x));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(R,t,1),this.reject=c(D,t,1)},_.f=P=function(t){return t===x||t===s?new o(t):i(t)}),p(p.G+p.W+p.F*!O,{Promise:x}),n(38)(x,"Promise"),n(40)("Promise"),s=n(28).Promise,p(p.S+p.F*!O,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),p(p.S+p.F*(a||!O),"Promise",{resolve:function(t){return w(a&&this===s?x:this,t)}}),p(p.S+p.F*!(O&&n(56)(function(t){x.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,s=1;v(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(4),i=n(111).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(22)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(o){var l=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}else if(a&&a.resolve){var h=a.resolve();n=function(){h.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(1),i=n(3),o=n(112);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(117),i=n(43);n(58)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),i=n(59),o=n(81),s=n(1),a=n(34),u=n(8),c=n(3),l=n(4).ArrayBuffer,p=n(80),h=o.ArrayBuffer,f=o.DataView,d=i.ABV&&l.isView,v=h.prototype.slice,y=i.VIEW;r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&y in t}}),r(r.P+r.U+r.F*n(2)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(p(this,h))(u(i-r)),c=new f(this),l=new f(o),d=0;r=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){function r(t,e){var n,a,l=arguments.length<3?t:arguments[2];return c(t)===l?t[e]:(n=i.f(t,e))?s(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(a=o(t))?r(a,e,l):void 0}var i=n(24),o=n(18),s=n(9),a=n(0),u=n(3),c=n(1);a(a.S,"Reflect",{get:r})},function(t,e,n){var r=n(24),i=n(0),o=n(1);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(0),i=n(18),o=n(1);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(1),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(275)})},function(t,e,n){var r=n(36),i=n(52),o=n(1),s=n(4).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(0),i=n(1),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var u,h,f=arguments.length<4?t:arguments[3],d=o.f(l(t),e);if(!d){if(p(h=s(t)))return r(h,e,n,f);d=c(0)}return a(d,"value")?!(!1===d.writable||!p(f))&&(u=o.f(f,e)||c(0),u.value=n,i.f(f,e,u),!0):void 0!==d.set&&(d.set.call(f,n),!0)}var i=n(6),o=n(24),s=n(18),a=n(9),u=n(0),c=n(32),l=n(1),p=n(3);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(0),i=n(67);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(280),n(281),n(282),n(283),n(285),n(286),n(287),n(288),n(289),t.exports=n(28).Reflect},function(t,e,n){var r=n(26),i=n(1),o=r.key,s=r.set;r.exp({defineMetadata:function(t,e,n,r){s(t,e,i(n),o(r))}})},function(t,e,n){var r=n(26),i=n(1),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var u=a.get(e);return u.delete(n),!!u.size||a.delete(e)}})},function(t,e,n){var r=n(26),i=n(1),o=n(18),s=r.has,a=r.get,u=r.key,c=function(t,e,n){if(s(t,e,n))return a(t,e,n);var r=o(e);return null!==r?c(t,r,n):void 0};r.exp({getMetadata:function(t,e){return c(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(115),i=n(284),o=n(26),s=n(1),a=n(18),u=o.keys,c=o.key,l=function(t,e){var n=u(t,e),o=a(t);if(null===o)return n;var s=l(o,e);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(t){return l(s(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(49);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(26),i=n(1),o=r.get,s=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(26),i=n(1),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,e,n){var r=n(26),i=n(1),o=n(18),s=r.has,a=r.key,u=function(t,e,n){if(s(t,e,n))return!0;var r=o(e);return null!==r&&u(t,r,n)};r.exp({hasMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(26),i=n(1),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(26),i=n(1),o=n(15),s=r.key,a=r.set;r.exp({metadata:function(t,e){return function(n,r){a(t,e,(void 0!==r?i:o)(n),s(r))}}})},function(t,e,n){(function(t){!function(t,e){e()}(0,function(){"use strict";function e(t,e){for(var n=t.length-1;n>=0;n--)typeof t[n]===I&&(t[n]=Zone.current.wrap(t[n],e+"_"+n));return t}function n(t,n){for(var i=t.constructor.name,o=0;o=0&&"function"==typeof i[o.callbackIndex]){return Zone.current.scheduleMacroTask(o.name,i[o.callbackIndex],o,r,null)}return t.apply(e,i)}})}function c(t,e){t[A("OriginalDelegate")]=e}function l(){if(z)return q;z=!0;try{var t=window.navigator.userAgent;t.indexOf("MSIE ");return-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(q=!0),q}catch(t){}}function p(t,e,n){for(var r=n&&n.addEventListenerFnName||"addEventListener",i=n&&n.removeEventListenerFnName||"removeEventListener",o=n&&n.listenersFnName||"eventListeners",s=n&&n.removeAllFnName||"removeAllListeners",a=A(r),u="."+r+":",l="prependListener",p="."+l+":",f=function(t,e,n){if(!t.isRemoved){var r=t.callback;typeof r===tt&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;if(o&&"object"==typeof o&&o.once){var s=t.originalDelegate?t.originalDelegate:t.callback;e[i].apply(e,[n.type,s,o])}}},d=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[$[e.type][K]];if(r)if(1===r.length)f(r[0],n,e);else for(var i=r.slice(),o=0;o1?new n(t,e):new n(t),a=Object.getOwnPropertyDescriptor(s,"onmessage");return a&&!1===a.configurable?(r=Object.create(s),i=s,["addEventListener","removeEventListener","send","close"].forEach(function(t){r[t]=function(){var e=Array.prototype.slice.call(arguments);if("addEventListener"===t||"removeEventListener"===t){var n=e.length>0?e[0]:void 0;if(n){var i=Zone.__symbol__("ON_PROPERTY"+n);s[i]=r[i]}}return s[t].apply(s,e)}})):r=s,o(r,["close","error","message","open"],i),r};var r=e.WebSocket;for(var i in n)r[i]=n[i]}function w(t,e,n){if(!n)return e;var r=n.filter(function(e){return e.target===t});if(!r||0===r.length)return e;var i=r[0].ignoreProperties;return e.filter(function(t){return-1===i.indexOf(t)})}function E(t,e,n,r){o(t,w(t,e,n),r)}function C(t,e){if(!F||V){var n="undefined"!=typeof WebSocket;if(x()){var r=e.__Zone_ignore_on_properties;if(L){E(window,Ot.concat(["messageerror"]),r,Object.getPrototypeOf(window)),E(Document.prototype,Ot,r),void 0!==window.SVGElement&&E(window.SVGElement.prototype,Ot,r),E(Element.prototype,Ot,r),E(HTMLElement.prototype,Ot,r),E(HTMLMediaElement.prototype,yt,r),E(HTMLFrameSetElement.prototype,dt.concat(Et),r),E(HTMLBodyElement.prototype,dt.concat(Et),r),E(HTMLFrameElement.prototype,wt,r),E(HTMLIFrameElement.prototype,wt,r);var i=window.HTMLMarqueeElement;i&&E(i.prototype,Ct,r);var o=window.Worker;o&&E(o.prototype,Pt,r)}E(XMLHttpRequest.prototype,xt,r);var a=e.XMLHttpRequestEventTarget;a&&E(a&&a.prototype,xt,r),"undefined"!=typeof IDBIndex&&(E(IDBIndex.prototype,St,r),E(IDBRequest.prototype,St,r),E(IDBOpenDBRequest.prototype,St,r),E(IDBDatabase.prototype,St,r),E(IDBTransaction.prototype,St,r),E(IDBCursor.prototype,St,r)),n&&E(WebSocket.prototype,Tt,r)}else S(),s("XMLHttpRequest"),n&&b(t,e)}}function x(){if((L||V)&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var t=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(t&&!t.configurable)return!1}var e=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"onreadystatechange");if(e){Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var n=new XMLHttpRequest,r=!!n.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",e||{}),r}var i=A("fakeonreadystatechange");Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[i]},set:function(t){this[i]=t}});var n=new XMLHttpRequest,o=function(){};n.onreadystatechange=o;var r=n[i]===o;return n.onreadystatechange=null,r}function S(){for(var t=0;t",this._properties=e&&e.properties||{},this._zoneDelegate=new p(this,this._parent&&this._parent._zoneDelegate,e)}return r.assertZonePatched=function(){if(t.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(r,"root",{get:function(){for(var t=r.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(r,"current",{get:function(){return M.zone},enumerable:!0,configurable:!0}),Object.defineProperty(r,"currentTask",{get:function(){return A},enumerable:!0,configurable:!0}),r.__load_patch=function(i,o){if(O.hasOwnProperty(i))throw Error("Already loaded patch: "+i);if(!t["__Zone_disable_"+i]){var s="Zone:"+i;e(s),O[i]=o(t,r,k),n(s,s)}},Object.defineProperty(r.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},r.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},r.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},r.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},r.prototype.run=function(t,e,n,r){void 0===e&&(e=void 0),void 0===n&&(n=null),void 0===r&&(r=null),M={parent:M,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{M=M.parent}},r.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),M={parent:M,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{M=M.parent}},r.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");if(t.state!==_||t.type!==P){var r=t.state!=E;r&&t._transitionTo(E,w),t.runCount++;var i=A;A=t,M={parent:M,zone:this};try{t.type==T&&t.data&&!t.data.isPeriodic&&(t.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==_&&t.state!==x&&(t.type==P||t.data&&t.data.isPeriodic?r&&t._transitionTo(w,E):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(_,E,_))),M=M.parent,A=i}}},r.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(b,_);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(x,b,_),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==b&&t._transitionTo(w,b),t},r.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new h(S,t,e,n,r,null))},r.prototype.scheduleMacroTask=function(t,e,n,r,i){return this.scheduleTask(new h(T,t,e,n,r,i))},r.prototype.scheduleEventTask=function(t,e,n,r,i){return this.scheduleTask(new h(P,t,e,n,r,i))},r.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");t._transitionTo(C,w,E);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(x,C),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(_,C),t.runCount=0,t},r.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};this.hasTask(this.zone,o)}},t}(),h=function(){function e(n,r,i,o,s,a){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=o,this.scheduleFn=s,this.cancelFn=a,this.callback=i;var u=this;n===P&&o&&o.isUsingGlobalCallback?this.invoke=e.invokeTask:this.invoke=function(){return e.invokeTask.apply(t,[u,this,arguments])}}return e.invokeTask=function(t,e,n){t||(t=this),N++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==N&&i(),N--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(_,b)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==_&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,invoke:this.invoke,scheduleFn:this.scheduleFn,cancelFn:this.cancelFn,runCount:this.runCount,callback:this.callback}},e}(),f=s("setTimeout"),d=s("Promise"),v=s("then"),y=[],m=!1,g={name:"NO ZONE"},_="notScheduled",b="scheduling",w="scheduled",E="running",C="canceling",x="unknown",S="microTask",T="macroTask",P="eventTask",O={},k={symbol:s,currentZoneFrame:function(){return M},onUnhandledError:o,microtaskDrainDone:o,scheduleMicroTask:r,showUncaughtError:function(){return!u[s("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:o,patchMethod:function(){return o},setNativePromise:function(t){c=t.resolve(0)}},M={parent:null,zone:new u(null,null)},A=null,N=0;n("Zone","Zone"),t.Zone=u}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||t),function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}),M=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Zone.__load_patch("ZoneAwarePromise",function(t,e,n){function r(t){n.onUnhandledError(t);try{var r=e[y];r&&"function"==typeof r&&r.apply(this,[t])}catch(t){}}function i(t){return t&&t.then}function o(t){return t}function s(t){return N.reject(t)}function a(t,e){return function(n){try{u(t,e,n)}catch(e){u(t,!1,e)}}}function u(t,r,i){var o=x();if(t===i)throw new TypeError(S);if(t[m]===b){var s=null;try{typeof i!==T&&typeof i!==P||(s=i&&i.then)}catch(e){return o(function(){u(t,!1,e)})(),t}if(r!==E&&i instanceof N&&i.hasOwnProperty(m)&&i.hasOwnProperty(g)&&i[m]!==b)c(i),u(t,i[m],i[g]);else if(r!==E&&typeof s===P)try{s.apply(i,[o(a(t,r)),o(a(t,!1))])}catch(e){o(function(){u(t,!1,e)})()}else{t[m]=r;var p=t[g];t[g]=i,r===E&&i instanceof Error&&(i[O]=e.currentTask);for(var h=0;h0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},G=function(){for(var t=[],e=0;e=0;e--)if(void 0!==t[e])return t[e]}function o(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}n.d(e,"a",function(){return x});var s=n(292),a=n(27),u=n(85),c=n(86),l=n(50),p=function(){var t=new Map;return t.set(s.j.ANALYZE_FOR_ENTRY_COMPONENTS,a.a),t.set(s.j.ElementRef,a.r),t.set(s.j.NgModuleRef,a.G),t.set(s.j.ViewContainerRef,a._3),t.set(s.j.ChangeDetectorRef,a.j),t.set(s.j.QueryList,a.P),t.set(s.j.TemplateRef,a._0),t.set(s.j.CodegenComponentFactoryResolver,a._13),t.set(s.j.ComponentFactoryResolver,a.o),t.set(s.j.ComponentFactory,a.n),t.set(s.j.ComponentRef,a.p),t.set(s.j.NgModuleFactory,a.F),t.set(s.j.createModuleFactory,a._20),t.set(s.j.moduleDef,a._31),t.set(s.j.moduleProviderDef,a._32),t.set(s.j.RegisterModuleFactoryFn,a._41),t.set(s.j.Injector,a.y),t.set(s.j.ViewEncapsulation,a._4),t.set(s.j.ChangeDetectionStrategy,a.i),t.set(s.j.SecurityContext,a.V),t.set(s.j.LOCALE_ID,a.C),t.set(s.j.TRANSLATIONS_FORMAT,a.Z),t.set(s.j.inlineInterpolate,a._25),t.set(s.j.interpolate,a._26),t.set(s.j.EMPTY_ARRAY,a._15),t.set(s.j.EMPTY_MAP,a._16),t.set(s.j.Renderer,a.Q),t.set(s.j.viewDef,a._45),t.set(s.j.elementDef,a._23),t.set(s.j.anchorDef,a._18),t.set(s.j.textDef,a._43),t.set(s.j.directiveDef,a._22),t.set(s.j.providerDef,a._39),t.set(s.j.queryDef,a._40),t.set(s.j.pureArrayDef,a._35),t.set(s.j.pureObjectDef,a._37),t.set(s.j.purePipeDef,a._38),t.set(s.j.pipeDef,a._36),t.set(s.j.nodeValue,a._34),t.set(s.j.ngContentDef,a._33),t.set(s.j.unwrapValue,a._44),t.set(s.j.createRendererType2,a._21),t.set(s.j.createComponentFactory,a._19),t}(),h=function(){function t(){this.builtinExternalReferences=new Map,this.reflectionCapabilities=new a._17}return t.prototype.componentModuleUrl=function(t,e){var n=e.moduleId;if("string"==typeof n){return Object(s.z)(n)?n:"package:"+n}if(null!==n&&void 0!==n)throw Object(s.A)('moduleId should be a string in "'+Object(a._42)(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+Object(a._42)(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.resolveExternalReference=function(t){return p.get(t)||t.runtime},t}(),f=new a.x("ErrorCollector"),d={provide:a.L,useValue:"/"},v={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},y=new a.x("HtmlParser"),m=function(){function t(t,e,n,r,i,o,a,u,c,l){this._metadataResolver=e,this._delegate=new s.k(e,n,r,i,o,a,u,c,l,this.getExtraNgModuleProviders.bind(this)),this.injector=t}return t.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new s.r(a.k,{useValue:this}))]},t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){var e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(function(t){return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}})},t.prototype.loadAotSummaries=function(t){this._delegate.loadAotSummaries(t)},t.prototype.hasAotSummary=function(t){return this._delegate.hasAotSummary(t)},t.prototype.getComponentFactory=function(t){return this._delegate.getComponentFactory(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),g=[{provide:s.b,useValue:new h},{provide:s.s,useValue:v},{provide:s.l,deps:[]},{provide:s.v,useExisting:s.l},{provide:a._14,deps:[]},{provide:s.m,deps:[]},{provide:s.p,deps:[s.m]},{provide:y,useClass:s.h,deps:[]},{provide:s.i,useFactory:function(t,e,n,r,i){e=e||"";var o=e?r.missingTranslation:a.D.Ignore;return new s.i(t,e,n,o,i)},deps:[y,[new a.J,new a.v(a.Y)],[new a.J,new a.v(a.Z)],[s.c],[a._14]]},{provide:s.h,useExisting:s.i},{provide:s.w,deps:[s.c,s.b,s.p,s.g,s.i,a._14]},{provide:s.d,deps:[s.s,s.x,s.h,s.c]},{provide:s.a,deps:[s.c,s.h,s.o,s.e,s.q,s.v,s.g,s.d,a._14,[a.J,s.t],s.b,[a.J,f]]},d,{provide:s.u,deps:[s.x]},{provide:s.y,deps:[s.b]},{provide:s.n,deps:[s.b]},{provide:s.c,useValue:new s.c},{provide:a.k,useClass:m,deps:[a.y,s.a,s.w,s.u,s.y,s.n,s.v,s.b,s.c,a._14]},{provide:s.f,deps:[]},{provide:s.g,useExisting:s.f},{provide:s.x,deps:[a.L]},{provide:s.e,deps:[s.b]},{provide:s.q,deps:[s.b]},{provide:s.o,deps:[s.b]}],_=function(){function t(t){var e={useJit:!0,defaultEncapsulation:a._4.Emulated,missingTranslation:a.D.Warning,enableLegacyTemplate:!1};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e=r(this._defaultOptions.concat(t));return a.y.create([g,{provide:s.c,useFactory:function(){return new s.c({useJit:e.useJit,jitDevMode:Object(a._10)(),defaultEncapsulation:e.defaultEncapsulation,missingTranslation:e.missingTranslation,enableLegacyTemplate:e.enableLegacyTemplate,preserveWhitespaces:e.preserveWhitespaces})},deps:[]},e.providers]).get(a.k)},t}(),b=Object(a._6)(a._11,"coreDynamic",[{provide:a.h,useValue:{},multi:!0},{provide:a.l,useClass:_,deps:[a.h]}]),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(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=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:a.w}],e.ctorParameters=function(){return[]},e}(s.s),E=[c.b,{provide:a.h,useValue:{providers:[{provide:s.s,useClass:w,deps:[]}]},multi:!0},{provide:a.M,useValue:u.d}],C=function(t){function e(){var e=t.call(this)||this;if(e._cache=a._24.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return Object(l.b)(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}(s.s),x=(new a._2("5.0.3"),s.s,Object(a._6)(b,"browserDynamic",E))},function(t,e,n){"use strict";function r(){}function i(){}function o(){}function s(){}function a(){}function u(){}function c(){}function l(){}function p(){}function h(){}function f(){}function d(){}function v(){}function y(){}function m(t,e){var n=function(){for(var n=[],r=0;r=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function M(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(M).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function A(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function N(t){return!!t&&"function"==typeof t.then}function I(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function D(t,e){return void 0===e&&(e=!0),null===t?e:t}function R(t){return t.replace(/\W/g,"_")}function j(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Fo)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=M(e);return n.indexOf("(")>=0?(n="anonymous_"+Ho++,e.__anonymousType=n):n=R(n),n}function F(t){var e=t.reference;return e instanceof Fo?e.filePath:"./"+M(e)}function L(t,e){return"View_"+j({reference:t})+"_"+e}function V(t){return"RenderType_"+j({reference:t})}function H(t){return"HostView_"+j({reference:t})}function B(t){return j({reference:t})+"NgFactory"}function U(t){return null!=t.value?R(t.value):j(t.identifier)}function z(t){return null!=t.identifier?t.identifier.reference:t.value}function q(t){return t||[]}function W(t){return t.reduce(function(t,e){var n=Array.isArray(e)?W(e):e;return t.concat(n)},[])}function G(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Z(t,e,n){var r;return r=n.isInline?e.type.reference instanceof Fo?e.type.reference.filePath+"."+e.type.reference.name+".html":j(t)+"/"+j(e.type)+".html":n.templateUrl,e.type.reference instanceof Fo?r:G(r)}function K(t,e){var n=t.moduleUrl.split(/\/\\/g);return G("css/"+e+n[n.length-1]+".ngstyle.js")}function Q(t){return G(j(t.type)+"/module.ngfactory.js")}function $(t,e){return G(j(t)+"/"+j(e.type)+".ngfactory.js")}function X(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function J(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n0&&(o=t.value)}),e=ct(e);var s=t.name.toLowerCase(),a=bs.OTHER;return it(s)?a=bs.NG_CONTENT:s==ys?a=bs.STYLE:s==ms?a=bs.SCRIPT:s==hs&&r==vs&&(a=bs.STYLESHEET),new ws(a,e,n,i,o)}function ct(t){return null===t||0===t.length?"*":t}function lt(t){return Vi.isTypeOf(t)||Ui.isTypeOf(t)}function pt(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function ht(t){return t>=Ps&&t<=Ns||t==ia}function ft(t){return Us<=t&&t<=zs}function dt(t){return t>=Qs&&t<=na||t>=qs&&t<=Zs}function vt(t){return t>=Qs&&t<=Xs||t>=qs&&t<=Gs||ft(t)}function yt(t,e){return new ca(t,sa.Character,e,String.fromCharCode(e))}function mt(t,e){return new ca(t,sa.Identifier,0,e)}function gt(t,e){return new ca(t,sa.Keyword,0,e)}function _t(t,e){return new ca(t,sa.Operator,0,e)}function bt(t,e){return new ca(t,sa.String,0,e)}function wt(t,e){return new ca(t,sa.Number,e,"")}function Et(t,e){return new ca(t,sa.Error,0,e)}function Ct(t){return Qs<=t&&t<=na||qs<=t&&t<=Zs||t==Ks||t==Ds}function xt(t){if(0==t.length)return!1;var e=new pa(t);if(!Ct(e.peek))return!1;for(e.advance();e.peek!==Ts;){if(!St(e.peek))return!1;e.advance()}return!0}function St(t){return dt(t)||ft(t)||t==Ks||t==Ds}function Tt(t){return t==$s||t==Ws}function Pt(t){return t==Fs||t==js}function Ot(t){return t===Rs||t===Is||t===oa}function kt(t){switch(t){case Js:return Os;case Xs:return Ms;case Ys:return As;case ta:return Ps;case ea:return ks;default:return t}}function Mt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function At(t){var e=P(t.start)+"([\\s\\S]*?)"+P(t.end);return new RegExp(e,"g")}function Nt(t,e){var n=F(e),r=null!=n?"in "+t+" "+j(e)+" in "+n:"in "+t+" "+j(e),i=new Ga("",r);return new Za(new Wa(i,-1,-1,-1),new Wa(i,-1,-1,-1))}function It(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=rs),new nu(new Ga(t,e),n,r,i).tokenize()}function Dt(t){return'Unexpected character "'+(t===Ts?"EOF":String.fromCharCode(t))+'"'}function Rt(t){return'Unknown entity "'+t+'" - use the "&#;" or "&#x;" syntax'}function jt(t){return!ht(t)||t===Ts}function Ft(t){return ht(t)||t===Bs||t===Ls||t===Rs||t===Is||t===Hs}function Lt(t){return(tzs)}function Vt(t){return t==Vs||t==Ts||!vt(t)}function Ht(t){return t==Vs||t==Ts||!dt(t)}function Bt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==ra&&!r}function Ut(t){return t===Hs||dt(t)||ft(t)}function zt(t,e){return qt(t)==qt(e)}function qt(t){return t>=Qs&&t<=na?t-Qs+qs:t}function Wt(t){for(var e=[],n=void 0,r=0;r0&&t[t.length-1]===e}function Zt(t){return t.id||$t(Qt(t.nodes).join("")+"["+t.meaning+"]")}function Kt(t){if(t.id)return t.id;var e=new cu;return Yt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Qt(t){return t.map(function(t){return t.visit(uu,null)})}function $t(t){var e=k(t),n=ue(e,lu.Big),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[15+(r+64>>9<<4)]=r;for(var p=0;p>>13,n=oe(n,r),n=oe(n,e),n^=e<<8,r=oe(r,e),r=oe(r,n),r^=n>>>13,e=oe(e,n),e=oe(e,r),e^=r>>>12,n=oe(n,r),n=oe(n,e),n^=e<<16,r=oe(r,e),r=oe(r,n),r^=n>>>5,e=oe(e,n),e=oe(e,r),e^=r>>>3,n=oe(n,r),n=oe(n,e),n^=e<<10,r=oe(r,e),r=oe(r,n),r^=n>>>15,[e,n,r]}function ne(t,e){return re(t,e)[1]}function re(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ie(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=re(r,o),a=s[0],u=s[1];return[ne(ne(n,i),a),u]}function oe(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function se(t,e){return t<>>32-e}function ae(t,e){var n=t[0],r=t[1];return[n<>>32-e,r<>>32-e]}function ue(t,e){for(var n=Array(t.length+3>>>2),r=0;r=t.length?0:255&t.charCodeAt(e)}function le(t,e,n){var r=0;if(n===lu.Big)for(var i=0;i<4;i++)r+=ce(t,e+i)<<24-8*i;else for(var i=0;i<4;i++)r+=ce(t,e+i)<<8*i;return r}function pe(t){return t.reduce(function(t,e){return t+he(e)},"")}function he(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function fe(t){for(var e="",n=0;n>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function de(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ve(e,ye(ce(t,r),n)),n=ye(256,n);return e.split("").reverse().join("")}function ve(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function ye(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ve(n,r)),r=ve(r,r);return n}function me(t){return wu[t.toLowerCase()]||Eu}function ge(t){var e=new Tu(Su,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}function _e(t){return t.split(Pu)[2]}function be(t,e,n,r){return new ju(n,r).extract(t,e)}function we(t,e,n,r,i){return new ju(r,i).merge(t,e,n)}function Ee(t){return!!(t instanceof ts&&t.value&&t.value.startsWith("i18n"))}function Ce(t){return!!(t instanceof ts&&t.value&&"/i18n"===t.value)}function xe(t){return t.attrs.find(function(t){return t.name===ku})||null}function Se(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Nu),n=t.indexOf(Au),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:s[0],description:s[1],id:o}}function Te(t){return Lu}function Pe(t){return t.map(function(t){return t.visit(zu)}).join("")}function Oe(t){return Qu.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ke(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Me(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function Ae(t){return Kt(t)}function Ne(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function Ie(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function De(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new ic;case"xtb":return new ac;case"xliff2":case"xlf2":return new tc;case"xliff":case"xlf":default:return new $u}}function Re(t,e){void 0===e&&(e=!1);var n=Le(t,e);return n[0]+".ngfactory"+n[1]}function je(t){return t.replace(vc,".")}function Fe(t){return vc.test(t)}function Le(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function Ve(t){return t.replace(dc,"")+".ngsummary.json"}function He(t,e){void 0===e&&(e=!1);var n=Le(je(t),e);return n[0]+".ngsummary"+n[1]}function Be(t){return t.replace(yc,".")}function Ue(t){return t+"NgSummary"}function ze(t){return t.replace(mc,"")}function qe(t){return gc.test(t)}function We(t){return{identifier:{reference:t}}}function Ge(t,e){return We(t.resolveExternalReference(e))}function Ze(t,e,n){return t.hasLifecycleHook(n,Qe(e))}function Ke(t,e){return Ec.filter(function(n){return Ze(t,n,e)})}function Qe(t){switch(t){case wc.OnInit:return"ngOnInit";case wc.OnDestroy:return"ngOnDestroy";case wc.DoCheck:return"ngDoCheck";case wc.OnChanges:return"ngOnChanges";case wc.AfterContentInit:return"ngAfterContentInit";case wc.AfterContentChecked:return"ngAfterContentChecked";case wc.AfterViewInit:return"ngAfterViewInit";case wc.AfterViewChecked:return"ngAfterViewChecked"}}function $e(t,e){if(void 0===e&&(e=[]),t)for(var n=0;n>2),e+=jn((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":jn((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":jn(63&o)}return e}function Rn(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n|=32),e+=jn(n)}while(t>0);return e}function jn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return zl[t]}function Fn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(ql,function(){for(var t=[],n=0;n0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Ip),o=[]),n.push(a)),a==Ap&&i++}return o.length>0&&(r.push(o.join("")),n.push(Ip)),new Rp(n.join(""),r)}function Gn(t){var e="styles";return t&&(e+="_"+j(t.type)),e}function Zn(t){return t.some(function(t){return t.name===Vp})}function Kn(t){return t.replace(new RegExp(ls,"g")," ")}function Qn(t){return new iu(X(new qp,t.rootNodes),t.errors)}function $n(t){var e=new Kp;return new Gp(X(e,t),e.isExpanded,e.errors)}function Xn(t,e){var n=t.cases.map(function(t){-1!=Wp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Zp(t.valueSourceSpan,'Plural cases should be "=" or one of '+Wp.join(", ")));var n=$n(t.expression);return e.push.apply(e,n.errors),new Yo("ng-template",[new Jo("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Jo("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Yo("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function Jn(t,e){var n=t.cases.map(function(t){var n=$n(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Yo("ng-template",[new Jo("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Yo("ng-template",[new Jo("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Jo("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Yo("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function Yn(t){return"@"==t[0]}function tr(t,e,n,r){var i=[];return xc.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=o.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,r)}))}),0===i.length?[ro.NONE]:Array.from(new Set(i)).sort()}function er(t){return function(e){return-1===t.indexOf(e.msg)||(ih[e.msg]=(ih[e.msg]||0)+1,ih[e.msg]<=1)}}function nr(t){return t?t.split(",").map(function(t){return t.trim()}):[]}function rr(t){return t.trim().split(/\s+/g)}function ir(t,e){var n=new xc,r=nt(t)[1];n.setElement(r);for(var i=0;i=0){var c=s[a],l=Er(c);l&&(u=wr(r),s[a]=u.set(l.cast(Lc).notIdentical(gn(!1))).toDeclStmt(null,[yl.Final]))}return new vh(s,u)}function lr(t,e){return hr(t,e)}function pr(t,e,n,r){t||(t=new bh);var i=br(r),o=[],s=new _h(t,e,r),a=n.visit(s,mh.Expression);if(s.temporaryCount)for(var u=0;u=0;r--)n.unshift(dr(e,r))}function yr(t,e){if(t!==mh.Statement)throw new Error("Expected a statement, but saw "+e)}function mr(t,e){if(t!==mh.Expression)throw new Error("Expected an expression, but saw "+e)}function gr(t,e){return t===mh.Statement?e.toStmt():e}function _r(t,e){Array.isArray(t)?t.forEach(function(t){return _r(t,e)}):e.push(t)}function br(t){return cn("currVal_"+t)}function wr(t){return cn("pd_"+t)}function Er(t){return t instanceof bl?t.expr:t instanceof wl?t.value:null}function Cr(t){var e=t[t.length-1];return e instanceof Oo?e.hasViewContainer:e instanceof Po?rt(e.name)&&e.children.length?Cr(e.children):e.hasViewContainer:e instanceof Io}function xr(t,e){switch(t.type){case Do.Attribute:return fn([gn(1),gn(t.name),gn(t.securityContext)]);case Do.Property:return fn([gn(8),gn(t.name),gn(t.securityContext)]);case Do.Animation:return fn([gn(8|(e&&e.directive.isComponent?32:16)),gn("@"+t.name),gn(t.securityContext)]);case Do.Class:return fn([gn(2),gn(t.name),dl]);case Do.Style:return fn([gn(4),gn(t.name),gn(t.unit)])}}function Sr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?Tr(n,i,r):r})}),fn(Object.keys(e).sort().map(function(t){return fn([gn(t),gn(e[t])])}))}function Tr(t,e,n){return t==Sh||t==Th?e+" "+n:n}function Pr(t,e){return e.length>10?Ah.callFn([Mh,gn(t),gn(1),fn(e)]):Ah.callFn([Mh,gn(t),gn(0)].concat(e))}function Or(t,e,n){return ln(bc.unwrapValue).callFn([Mh,gn(t),gn(e),n])}function kr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,i=void 0;t instanceof Po?(kr(t.children,e),t.children.forEach(function(t){var i=e.get(t);i.staticQueryIds.forEach(function(t){return n.add(t)}),i.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches):t instanceof Oo&&(kr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches),i&&i.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function Mr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function Ar(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function Nr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function Ir(t,e){return t?t+":"+e:e}function Dr(t,e){for(var n=[],r=0,i=t.transitiveModule.providers;r0?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 ki(t){var e=t[Sf.Path];return e=null==e?"":Oi(e),t[Sf.Path]=e,Ti(t[Sf.Scheme],t[Sf.UserInfo],t[Sf.Domain],t[Sf.Port],e,t[Sf.QueryData],t[Sf.Fragment])}function Mi(t,e){var n=Pi(encodeURI(e)),r=Pi(t);if(null!=n[Sf.Scheme])return ki(n);n[Sf.Scheme]=r[Sf.Scheme];for(var i=Sf.Scheme;i<=Sf.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Sf.Path][0])return ki(n);var o=r[Sf.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Sf.Path],n[Sf.Path]=o,ki(n)}n.d(e,"c",function(){return jo}),n.d(e,"j",function(){return bc}),n.d(e,"k",function(){return bf}),n.d(e,"e",function(){return Ss}),n.d(e,"q",function(){return Yl}),n.d(e,"o",function(){return Bl}),n.d(e,"n",function(){return Hl}),n.d(e,"y",function(){return Oh}),n.d(e,"A",function(){return T}),n.d(e,"r",function(){return Ko}),n.d(e,"t",function(){return Lo}),n.d(e,"v",function(){return pf}),n.d(e,"l",function(){return hf}),n.d(e,"b",function(){return Ef}),n.d(e,"x",function(){return Cf}),n.d(e,"z",function(){return Si}),n.d(e,"s",function(){return Tf}),n.d(e,"g",function(){return ep}),n.d(e,"i",function(){return fc}),n.d(e,"d",function(){return Es}),n.d(e,"m",function(){return ua}),n.d(e,"p",function(){return Ua}),n.d(e,"a",function(){return kc}),n.d(e,"h",function(){return lc}),n.d(e,"f",function(){return up}),n.d(e,"u",function(){return Lp}),n.d(e,"w",function(){return ah});var Ai=n(293),Ni=m("Inject",function(t){return{token:t}}),Ii=m("InjectionToken",function(t){return{_desc:t}}),Di=m("Attribute",function(t){return{attributeName:t}}),Ri=m("ContentChildren",function(t,e){return void 0===e&&(e={}),Object(Ai.a)({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),ji=m("ContentChild",function(t,e){return void 0===e&&(e={}),Object(Ai.a)({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),Fi=m("ViewChildren",function(t,e){return void 0===e&&(e={}),Object(Ai.a)({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),Li=m("ViewChild",function(t,e){return Object(Ai.a)({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),Vi=m("Directive",function(t){return void 0===t&&(t={}),t}),Hi={Emulated:0,Native:1,None:2};Hi[Hi.Emulated]="Emulated",Hi[Hi.Native]="Native",Hi[Hi.None]="None";var Bi={OnPush:0,Default:1};Bi[Bi.OnPush]="OnPush",Bi[Bi.Default]="Default";var Ui=m("Component",function(t){return void 0===t&&(t={}),Object(Ai.a)({changeDetection:Bi.Default},t)}),zi=m("Pipe",function(t){return Object(Ai.a)({pure:!0},t)}),qi=m("Input",function(t){return{bindingPropertyName:t}}),Wi=m("Output",function(t){return{bindingPropertyName:t}}),Gi=m("HostBinding",function(t){return{hostPropertyName:t}}),Zi=m("HostListener",function(t,e){return{eventName:t,args:e}}),Ki=m("NgModule",function(t){return t}),Qi={name:"custom-elements"},$i={name:"no-errors-schema"},Xi=m("Optional"),Ji=m("Injectable"),Yi=m("Self"),to=m("SkipSelf"),eo=m("Host"),no=Function,ro={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};ro[ro.NONE]="NONE",ro[ro.HTML]="HTML",ro[ro.STYLE]="STYLE",ro[ro.SCRIPT]="SCRIPT",ro[ro.URL]="URL",ro[ro.RESOURCE_URL]="RESOURCE_URL";var io={None:0,TypeElement:1,TypeText:2,ProjectedTemplate:4,CatRenderNode:3,TypeNgContent:8,TypePipe:16,TypePureArray:32,TypePureObject:64,TypePurePipe:128,CatPureExpression:224,TypeValueProvider:256,TypeClassProvider:512,TypeFactoryProvider:1024,TypeUseExistingProvider:2048,LazyProvider:4096,PrivateProvider:8192,TypeDirective:16384,Component:32768,CatProviderNoDirective:3840,CatProvider:20224,OnInit:65536,OnDestroy:131072,DoCheck:262144,OnChanges:524288,AfterContentInit:1048576,AfterContentChecked:2097152,AfterViewInit:4194304,AfterViewChecked:8388608,EmbeddedViews:16777216,ComponentView:33554432,TypeContentQuery:67108864,TypeViewQuery:134217728,StaticQuery:268435456,DynamicQuery:536870912,CatQuery:201326592,Types:201347067},oo={None:0,SkipSelf:1,Optional:2,Value:8},so={Inline:0,Dynamic:1},ao={TypeElementAttribute:1,TypeElementClass:2,TypeElementStyle:4,TypeProperty:8,SyntheticProperty:16,SyntheticHostProperty:32,CatSyntheticProperty:48,Types:15},uo={First:0,All:1},co={ElementRef:0,RenderElement:1,TemplateRef:2,ViewContainerRef:3,Provider:4},lo={None:0,OnPush:2},po={Error:0,Warning:1,Ignore:2};po[po.Error]="Error",po[po.Warning]="Warning",po[po.Ignore]="Ignore";var ho=(Object.freeze({Inject:r,createInject:Ni,createInjectionToken:Ii,Attribute:i,createAttribute:Di,Query:o,createContentChildren:Ri,createContentChild:ji,createViewChildren:Fi,createViewChild:Li,Directive:s,createDirective:Vi,Component:a,ViewEncapsulation:Hi,ChangeDetectionStrategy:Bi,createComponent:Ui,Pipe:u,createPipe:zi,Input:c,createInput:qi,Output:l,createOutput:Wi,HostBinding:p,createHostBinding:Gi,HostListener:h,createHostListener:Zi,NgModule:f,createNgModule:Ki,ModuleWithProviders:d,SchemaMetadata:v,CUSTOM_ELEMENTS_SCHEMA:Qi,NO_ERRORS_SCHEMA:$i,createOptional:Xi,createInjectable:Ji,createSelf:Yi,createSkipSelf:to,createHost:eo,Type:no,SecurityContext:ro,NodeFlags:io,DepFlags:oo,ArgumentType:so,BindingFlags:ao,QueryBindingType:uo,QueryValueType:co,ViewFlags:lo,MissingTranslationStrategy:po,MetadataFactory:y,Route:g}),/-+([a-z0-9])/g),fo=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return C(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=C(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),vo={assertSync:function(t){if(N(t))throw new Error("Illegal state: value cannot be a promise");return t},then:function(t,e){return N(t)?t.then(e):e(t)},all:function(t){return t.some(N)?Promise.all(t):t}},yo="ngSyntaxError",mo="ngParseErrors",go=Object.getPrototypeOf({}),_o=function(){function t(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}return t}(),bo=(new _o("5.1.0"),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}()),wo=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}(),Eo=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}(),Co=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,this.isAnimation=this.type===Do.Animation}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),xo=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),So=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}(),To=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}(),Po=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){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.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Oo=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),ko=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Mo=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Ao=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),No={PublicService:0,PrivateService:1,Component:2,Directive:3,Builtin:4};No[No.PublicService]="PublicService",No[No.PrivateService]="PrivateService",No[No.Component]="Component",No[No.Directive]="Directive",No[No.Builtin]="Builtin";var Io=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Do={Property:0,Attribute:1,Class:2,Style:3,Animation:4};Do[Do.Property]="Property",Do[Do.Attribute]="Attribute",Do[Do.Class]="Class",Do[Do.Style]="Style",Do[Do.Animation]="Animation";var Ro=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),jo=(function(t){function e(){return t.call(this)||this}Object(Ai.b)(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){function n(e){e&&e.length&&r.push(I(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)}}(Ro),function(){function t(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?Hi.Emulated:n,i=e.useJit,o=void 0===i||i,s=e.jitDevMode,a=void 0!==s&&s,u=e.missingTranslation,c=void 0===u?null:u,l=e.enableLegacyTemplate,p=e.preserveWhitespaces,h=e.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!a,this.missingTranslation=c,this.enableLegacyTemplate=!0===l,this.preserveWhitespaces=D(S(p)),this.strictInjectionParameters=!0===h}return t}()),Fo=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),Lo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",i='"'+t+'".'+e+r,o=this.cache.get(i);return o||(o=new Fo(t,e,n),this.cache.set(i,o)),o},t}(),Vo=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Ho=0,Bo={Pipe:0,Directive:1,NgModule:2,Injectable:3};Bo[Bo.Pipe]="Pipe",Bo[Bo.Directive]="Directive",Bo[Bo.NgModule]="NgModule",Bo[Bo.Injectable]="Injectable";var Uo=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=q(r),this.styleUrls=q(i)}return t}(),zo=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.htmlAst,o=t.styles,s=t.styleUrls,a=t.externalStylesheets,u=t.animations,c=t.ngContentSelectors,l=t.interpolation,p=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=q(o),this.styleUrls=q(s),this.externalStylesheets=q(a),this.animations=u?W(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p,this.preserveWhitespaces=h}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),qo=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,v=t.viewQueries,y=t.entryComponents,m=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=q(h),this.viewProviders=q(f),this.queries=q(d),this.viewQueries=q(v),this.entryComponents=q(y),this.template=m,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,h=e.viewProviders,f=e.queries,d=e.viewQueries,v=e.entryComponents,y=e.template,m=e.componentViewType,g=e.rendererType,_=e.componentFactory,w={},E={},C={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(Vo);null===n?C[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var x={};null!=u&&u.forEach(function(t){var e=b(t,[t,t]);x[e[0]]=e[1]});var S={};return null!=c&&c.forEach(function(t){var e=b(t,[t,t]);S[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:x,outputs:S,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:h,queries:f,viewQueries:d,entryComponents:v,template:y,componentViewType:m,rendererType:g,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:Bo.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,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Wo=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Bo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Go=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=q(r),this.exportedDirectives=q(i),this.declaredPipes=q(o),this.exportedPipes=q(s),this.providers=q(n),this.entryComponents=q(a),this.bootstrapComponents=q(u),this.importedModules=q(c),this.exportedModules=q(l),this.schemas=q(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Bo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Zo=function(){function t(){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=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Ko=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}return t}(),Qo=(function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()}}(),function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}()),$o=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Xo=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Jo=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Yo=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ts=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),es=(function(){function t(){}t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){function n(e){e&&r.push(X(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)}}(),[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//]),ns=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(Y("interpolation",e),new t(e[0],e[1])):rs},t}(),rs=new ns("{{","}}"),is=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),os=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,ss=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,as=/^([^:\/?#]+):/,us={RAW_TEXT:0,ESCAPABLE_RAW_TEXT:1,PARSABLE_DATA:2};us[us.RAW_TEXT]="RAW_TEXT",us[us.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",us[us.PARSABLE_DATA]="PARSABLE_DATA";var cs={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:"‌"},ls="";cs.ngsp=ls;var ps="select",hs="link",fs="rel",ds="href",vs="stylesheet",ys="style",ms="script",gs="ngNonBindable",_s="ngProjectAs",bs={NG_CONTENT:0,STYLE:1,STYLESHEET:2,SCRIPT:3,OTHER:4};bs[bs.NG_CONTENT]="NG_CONTENT",bs[bs.STYLE]="STYLE",bs[bs.STYLESHEET]="STYLESHEET",bs[bs.SCRIPT]="SCRIPT",bs[bs.OTHER]="OTHER";var ws=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),Es=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this;if(x(t.template)){if(x(t.templateUrl))throw T("'"+M(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw T("The template specified for component "+M(t.componentType)+" is not a string")}else{if(!x(t.templateUrl))throw T("No template specified for component "+M(t.componentType));if("string"!=typeof t.templateUrl)throw T("The templateUrl specified for component "+M(t.componentType)+" is not a string")}if(x(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw T("The preserveWhitespaces option for component "+M(t.componentType)+" must be a boolean");return vo.then(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),vo.then(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=ns.fromArray(t.interpolation),o=this._htmlParser.parse(e,Z({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0){throw T("Template parse errors:\n"+o.errors.join("\n"))}var s=this._normalizeStylesheet(new Uo({styles:t.styles,moduleUrl:t.moduleUrl})),a=new Cs;X(a,o.rootNodes);var u=this._normalizeStylesheet(new Uo({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:s.styles.concat(u.styles),inlineStyleUrls:s.styleUrls.concat(u.styleUrls),styleUrls:this._normalizeStylesheet(new Uo({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:a.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return vo.then(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=e.styles.slice();this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=e.styles.slice();return r._inlineStyles(e.styleUrls,n,i),new Uo({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===Hi.Emulated&&0===i.length&&0===o.length&&(a=Hi.None),new zo({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:D(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),vo.then(vo.all(t.filter(function(t){return!e.has(t)}).map(function(t){return vo.then(n._fetch(t),function(r){var i=n._normalizeStylesheet(new Uo({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(tt).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=et(e._urlResolver,n,t);return r.push.apply(r,i.styleUrls),i.style});return new Uo({styles:i,styleUrls:r,moduleUrl:n})},t}(),Cs=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=ut(t);switch(n.type){case bs.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case bs.STYLE:var r="";t.children.forEach(function(t){t instanceof Qo&&(r+=t.value)}),this.styles.push(r);break;case bs.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,X(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){X(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){X(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),xs=[Li,Fi,ji,Ri],Ss=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(A(t));return e&&e.some(lt)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(A(t));if(n){var r=pt(n,lt);if(r){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(r,i,t)}}if(e)throw new Error("No Directive annotation found on "+M(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n){var r=[],i=[],o={},s={};return Object.keys(e).forEach(function(t){var n=pt(e[t],function(t){return qi.isTypeOf(t)});n&&(n.bindingPropertyName?r.push(t+": "+n.bindingPropertyName):r.push(t));var a=pt(e[t],function(t){return Wi.isTypeOf(t)});a&&(a.bindingPropertyName?i.push(t+": "+a.bindingPropertyName):i.push(t)),e[t].filter(function(t){return Gi.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.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["["+e.hostPropertyName+"]"]=t}else o["["+t+"]"]=t}),e[t].filter(function(t){return Zi.isTypeOf(t)}).forEach(function(e){var n=e.args||[];o["("+e.eventName+")"]=t+"("+n.join(",")+")"});var u=pt(e[t],function(t){return xs.some(function(e){return e.isTypeOf(t)})});u&&(s[t]=u)}),this._merge(t,r,i,o,s,n)},t.prototype._extractPublicName=function(t){return b(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,e,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?Object(Ai.a)({},t.host,r):r,c=t.queries?Object(Ai.a)({},t.queries,i):i;if(Ui.isTypeOf(t)){var l=t;return Ui({selector:l.selector,inputs:s,outputs:a,host:u,exportAs:l.exportAs,moduleId:l.moduleId,queries:c,changeDetection:l.changeDetection,providers:l.providers,viewProviders:l.viewProviders,entryComponents:l.entryComponents,template:l.template,templateUrl:l.templateUrl,styles:l.styles,styleUrls:l.styleUrls,encapsulation:l.encapsulation,animations:l.animations,interpolation:l.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return Vi({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}(),Ts=0,Ps=9,Os=10,ks=11,Ms=12,As=13,Ns=32,Is=34,Ds=36,Rs=39,js=43,Fs=45,Ls=47,Vs=59,Hs=61,Bs=62,Us=48,zs=57,qs=65,Ws=69,Gs=70,Zs=90,Ks=95,Qs=97,$s=101,Xs=102,Js=110,Ys=114,ta=116,ea=118,na=122,ra=123,ia=160,oa=96,sa={Character:0,Identifier:1,Keyword:2,String:3,Operator:4,Number:5,Error:6};sa[sa.Character]="Character",sa[sa.Identifier]="Identifier",sa[sa.Keyword]="Keyword",sa[sa.String]="String",sa[sa.Operator]="Operator",sa[sa.Number]="Number",sa[sa.Error]="Error";var aa=["var","let","as","null","undefined","true","false","if","else","this"],ua=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new pa(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}(),ca=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==sa.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==sa.Number},t.prototype.isString=function(){return this.type==sa.String},t.prototype.isOperator=function(t){return this.type==sa.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==sa.Identifier},t.prototype.isKeyword=function(){return this.type==sa.Keyword},t.prototype.isKeywordLet=function(){return this.type==sa.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==sa.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==sa.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==sa.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==sa.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==sa.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==sa.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==sa.Error},t.prototype.toNumber=function(){return this.type==sa.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case sa.Character:case sa.Identifier:case sa.Keyword:case sa.Operator:case sa.String:case sa.Error:return this.strValue;case sa.Number:return this.numValue.toString();default:return null}},t}(),la=new ca(-1,sa.Character,0,""),pa=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ts:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Ns;){if(++r>=e){n=Ts;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(Ct(n))return this.scanIdentifier();if(ft(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),ft(this.peek)?this.scanNumber(i):yt(i,46);case 40:case 41:case ra:case 125:case 91:case 93:case 44:case 58:case Vs:return this.scanCharacter(i,n);case Rs:case Is:return this.scanString();case 35:case js:case Fs:case 42:case Ls:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Bs:return this.scanComplexOperator(i,String.fromCharCode(n),Hs,"=");case 33:case Hs:return this.scanComplexOperator(i,String.fromCharCode(n),Hs,"=",Hs,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case ia:for(;ht(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),yt(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),_t(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),_t(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();St(this.peek);)this.advance();var e=this.input.substring(t,this.index);return aa.indexOf(e)>-1?gt(t,e):mt(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(ft(this.peek));else if(46==this.peek)e=!1;else{if(!Tt(this.peek))break;if(this.advance(),Pt(this.peek)&&this.advance(),!ft(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return wt(t,e?Mt(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=kt(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Ts)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),bt(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return Et(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),ha=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),fa=function(){function t(t,e){this.start=t,this.end=e}return t}(),da=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),va=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(da),ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(da),ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(da),ga=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(da),_a=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(da),ba=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(da),wa=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(da),Ea=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(da),Ca=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(da),xa=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(da),Sa=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(da),Ta=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(da),Pa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(da),Oa=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(da),ka=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(da),Ma=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(da),Aa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(da),Na=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(da),Ia=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(da),Da=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(da),Ra=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(da),ja=function(t){function e(e,n,r,i){var o=t.call(this,new fa(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return Object(Ai.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(da),Fa=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),La=(function(){function t(){}t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){}}(),function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}()),Va=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new ka(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Ta(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new ba(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new wa(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Ea(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new Ia(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new Da(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Ra(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Pa(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Oa(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new Ma(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new Aa(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new Na(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new _a(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Sa(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Ca(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new xa(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new ja(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new ha(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new za(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!xt(r))return null;var i=t.substring(n+1);return new va(new fa(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new za(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=rs);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Ha(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new ja(new Ta(new fa(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new Ma(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==sa.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new Ma(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==sa.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new Ma(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==sa.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new Ma(this.span(t),e,new Ta(new fa(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new Aa(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new xa(this.span(t.span.start),t,e,n)}else t=new Ca(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Ra(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new Na(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Ta(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Ta(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Ta(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Ta(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new ma(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Pa(this.span(t),n)}if(this.next.isCharacter(ra))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new ma(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Ta(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Ta(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ya(this.span(t))):(this.error("Unexpected token "+this.next),new ya(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(ra),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Oa(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new Da(o,t,r,i):new Ia(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ya(this.span(n))):new Ea(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ya(this.span(n));var s=this.parseConditional();return new wa(this.span(n),t,r,s)}return new ba(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index0&&e<0;){i--,e++;var a=n.charCodeAt(i);if(a==Os){o--;var u=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Os));s=u>0?i-u:i}else s--}for(;i0;){var a=n.charCodeAt(i);i++,e--,a==Os?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;o]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}(),$a={TAG_OPEN_START:0,TAG_OPEN_END:1,TAG_OPEN_END_VOID:2,TAG_CLOSE:3,TEXT:4,ESCAPABLE_RAW_TEXT:5,RAW_TEXT:6,COMMENT_START:7,COMMENT_END:8,CDATA_START:9,CDATA_END:10,ATTR_NAME:11,ATTR_VALUE:12,DOC_TYPE:13,EXPANSION_FORM_START:14,EXPANSION_CASE_VALUE:15,EXPANSION_CASE_EXP_START:16,EXPANSION_CASE_EXP_END:17,EXPANSION_FORM_END:18,EOF:19};$a[$a.TAG_OPEN_START]="TAG_OPEN_START",$a[$a.TAG_OPEN_END]="TAG_OPEN_END",$a[$a.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",$a[$a.TAG_CLOSE]="TAG_CLOSE",$a[$a.TEXT]="TEXT",$a[$a.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",$a[$a.RAW_TEXT]="RAW_TEXT",$a[$a.COMMENT_START]="COMMENT_START",$a[$a.COMMENT_END]="COMMENT_END",$a[$a.CDATA_START]="CDATA_START",$a[$a.CDATA_END]="CDATA_END",$a[$a.ATTR_NAME]="ATTR_NAME",$a[$a.ATTR_VALUE]="ATTR_VALUE",$a[$a.DOC_TYPE]="DOC_TYPE",$a[$a.EXPANSION_FORM_START]="EXPANSION_FORM_START",$a[$a.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",$a[$a.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",$a[$a.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",$a[$a.EXPANSION_FORM_END]="EXPANSION_FORM_END",$a[$a.EOF]="EOF";var Xa=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Ja=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return Object(Ai.b)(e,t),e}(Qa),Ya=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),tu=/\r\n?/g,eu=function(){function t(t){this.error=t}return t}(),nu=function(){function t(t,e,n,r){void 0===r&&(r=rs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(tu,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ts;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Fs)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Ls)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof eu))throw t;this.errors.push(t.error)}}return this._beginToken($a.EOF),this._endToken([]),new Ya(Wt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Bt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(Ut(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Wa(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Za(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Xa(this._currentTokenType,t,new Za(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Ja(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new eu(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Dt(Ts),this._getSpan());this._peek===Os?(this._line++,this._column=0):this._peek!==Os&&this._peek!==As&&this._column++,this._index++,this._peek=this._index>=this._length?Ts:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ts:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!zt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Dt(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;rr.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken($a.COMMENT_START,t),this._requireCharCode(Fs),this._endToken([]);var n=this._consumeRawText(!1,Fs,function(){return e._attemptStr("->")});this._beginToken($a.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken($a.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken($a.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken($a.DOC_TYPE,t),this._attemptUntilChar(Bs),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!Lt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(Ft,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!dt(this._peek))throw this._createError(Dt(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(jt);this._peek!==Ls&&this._peek!==Bs;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(jt),this._attemptCharCode(Hs)&&(this._attemptCharCodeUntilFn(jt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(jt);this._consumeTagOpenEnd()}catch(e){if(e instanceof eu)return this._restorePosition(r),this._beginToken($a.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===us.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===us.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Ls)&&(n._attemptCharCodeUntilFn(jt),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(jt),n._attemptCharCode(Bs)))});this._beginToken($a.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken($a.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken($a.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken($a.ATTR_VALUE);var t;if(this._peek===Rs||this._peek===Is){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(Ft,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Ls)?$a.TAG_OPEN_END_VOID:$a.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Bs),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken($a.TAG_CLOSE,t),this._attemptCharCodeUntilFn(jt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(jt),this._requireCharCode(Bs),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken($a.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ra),this._endToken([]),this._expansionCaseStack.push($a.EXPANSION_FORM_START),this._beginToken($a.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(jt),this._beginToken($a.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(jt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken($a.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ra).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(jt),this._beginToken($a.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ra),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(jt),this._expansionCaseStack.push($a.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken($a.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(jt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken($a.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken($a.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ts)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Bt(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===$a.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===$a.EXPANSION_FORM_START},t}(),ru=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return Object(Ai.b)(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Qa),iu=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ou=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=rs);var i=It(t,e,this.getTagDefinition,n,r),o=new su(i.tokens,this.getTagDefinition).build();return new iu(o.rootNodes,i.errors.concat(o.errors))},t}(),su=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==$a.EOF;)this._peek.type===$a.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===$a.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===$a.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===$a.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===$a.TEXT||this._peek.type===$a.RAW_TEXT||this._peek.type===$a.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===$a.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new iu(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index0)return this._errors=this._errors.concat(o.errors),null;var s=new Za(e.sourceSpan.start,i.sourceSpan.end),a=new Za(n.sourceSpan.start,i.sourceSpan.end);return new Xo(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[$a.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==$a.EXPANSION_FORM_START&&this._peek.type!==$a.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===$a.EXPANSION_CASE_EXP_END){if(!Gt(n,$a.EXPANSION_CASE_EXP_START))return this._errors.push(ru.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===$a.EXPANSION_FORM_END){if(!Gt(n,$a.EXPANSION_FORM_START))return this._errors.push(ru.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===$a.EOF)return this._errors.push(ru.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Qo(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===$a.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===$a.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==st(i)||s.isVoid||this._errors.push(ru.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===$a.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new Za(t.sourceSpan.start,a),c=new Yo(i,r,[],u,u,void 0);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Yo(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(ru.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". 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(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=at(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===$a.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Jo(e,r,new Za(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!rt(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=st(n.name)),at(t,e)},t}(),au=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'':''+t.children.map(function(t){return t.visit(n)}).join(", ")+''},t.prototype.visitPlaceholder=function(t,e){return t.value?''+t.value+"":''},t.prototype.visitIcuPlaceholder=function(t,e){return''+t.value.visit(this)+""},t}(),uu=new au,cu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(au),lu={Little:0,Big:1};lu[lu.Little]="Little",lu[lu.Big]="Big";var pu=function(){function t(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),hu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),fu=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),du=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),vu=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),yu=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),mu=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),gu=function(){function t(){}return t.prototype.visitText=function(t,e){return new hu(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new fu(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new du(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new vu(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new yu(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new mu(t.value,t.name,t.sourceSpan)},t}(),_u=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),bu=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?us.PARSABLE_DATA:o,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),wu={base:new bu({isVoid:!0}),meta:new bu({isVoid:!0}),area:new bu({isVoid:!0}),embed:new bu({isVoid:!0}),link:new bu({isVoid:!0}),img:new bu({isVoid:!0}),input:new bu({isVoid:!0}),param:new bu({isVoid:!0}),hr:new bu({isVoid:!0}),br:new bu({isVoid:!0}),source:new bu({isVoid:!0}),track:new bu({isVoid:!0}),wbr:new bu({isVoid:!0}),p:new bu({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 bu({closedByChildren:["tbody","tfoot"]}),tbody:new bu({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new bu({closedByChildren:["tbody"],closedByParent:!0}),tr:new bu({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new bu({closedByChildren:["td","th"],closedByParent:!0}),th:new bu({closedByChildren:["td","th"],closedByParent:!0}),col:new bu({requiredParents:["colgroup"],isVoid:!0}),svg:new bu({implicitNamespacePrefix:"svg"}),math:new bu({implicitNamespacePrefix:"math"}),li:new bu({closedByChildren:["li"],closedByParent:!0}),dt:new bu({closedByChildren:["dt","dd"]}),dd:new bu({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new bu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new bu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new bu({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new bu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new bu({closedByChildren:["optgroup"],closedByParent:!0}),option:new bu({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new bu({ignoreFirstLf:!0}),listing:new bu({ignoreFirstLf:!0}),style:new bu({contentType:us.RAW_TEXT}),script:new bu({contentType:us.RAW_TEXT}),title:new bu({contentType:us.ESCAPABLE_RAW_TEXT}),textarea:new bu({contentType:us.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Eu=new bu,Cu={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"},xu=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=Cu[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=Cu[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Su=new Ua(new ua),Tu=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof $o,this._icuDepth=0,this._placeholderRegistry=new xu,this._placeholderToContent={},this._placeholderToMessage={};var i=X(this,t,{});return new pu(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=X(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=me(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]=""),new vu(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new du(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new fu(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new mu(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new hu(t,e);for(var r=[],i=new fu(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u element instead ("+t.sourceSpan.start+s+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Mu,"").trim(),this._openTranslatableSection(t)}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=xe(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Ru.Extract&&X(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==Ru.Extract){var h=a||l;h&&this._openTranslatableSection(t),X(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===Ru.Merge){(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Ru.Merge){var f=this._translateAttributes(t);return new Yo(t.name,f,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,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=ge(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Jo&&!t[0].value)return null;var n=Se(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Ru.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=Se(t.value))});var i=[];return n.forEach(function(n){if(n.name!==ku&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)i.push(new Jo(n.name,"",n.sourceSpan));else if(l[0]instanceof Qo){var p=l[0].value;i.push(new Jo(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof ts?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof hu)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),Fu=function(){function t(){this.closedByParent=!1,this.contentType=us.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}(),Lu=new Fu,Vu=function(t){function e(){return t.call(this,Te)||this}return Object(Ai.b)(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(ou),Hu=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Bu=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Object(Ai.b)(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(_u),Uu=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+""},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return""},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return""},t}(),zu=new Uu,qu=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Oe(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Wu=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Gu=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Oe(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Zu=function(){function t(t){this.value=Oe(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Ku=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Object(Ai.b)(e,t),e}(Zu),Qu=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]],$u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.write=function(t,e){var n=new Xu,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Gu("context-group",{purpose:"location"});n.children.push(new Ku(10),new Gu("context",{"context-type":"sourcefile"},[new Zu(t.filePath)]),new Ku(10),new Gu("context",{"context-type":"linenumber"},[new Zu(""+t.startLine)]),new Ku(8)),e.push(new Ku(8),n)});var i=new Gu("trans-unit",{id:t.id,datatype:"html"});(o=i.children).push.apply(o,[new Ku(8),new Gu("source",{},n.serialize(t.nodes))].concat(e)),t.description&&i.children.push(new Ku(8),new Gu("note",{priority:"1",from:"description"},[new Zu(t.description)])),t.meaning&&i.children.push(new Ku(8),new Gu("note",{priority:"1",from:"meaning"},[new Zu(t.meaning)])),i.children.push(new Ku(6)),r.push(new Ku(6),i);var o});var i=new Gu("body",{},r.concat([new Ku(4)])),o=new Gu("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Ku(4),i,new Ku(2)]),s=new Gu("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Ku(2),o,new Ku]);return Pe([new qu({version:"1.0",encoding:"UTF-8"}),new Ku,s,new Ku])},e.prototype.load=function(t,e){var n=new Ju,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new Yu;if(Object.keys(o).forEach(function(t){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;s.push.apply(s,i),a[t]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Zt(t)},e}(Hu),Xu=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Zu(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Zu("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Zu(e+" {")].concat(t.cases[e].visit(n),[new Zu("} ")]))}),r.push(new Zu("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=ke(t.tag);if(t.isVoid)return[new Gu("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var r=new Gu("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),i=new Gu("x",{id:t.closeName,ctype:n,"equiv-text":""});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Gu("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Gu("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ju=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Vu).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(X(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._unitMlString=a;break;case"file":var u=t.attrs.find(function(t){return"target-language"===t.name});u&&(this._locale=u.value),X(this,t.children,null);break;default:X(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),Yu=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Vu).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:X(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new hu(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new yu("",n.value,t.sourceSpan);this._addError(t,' misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return X(this,t.cases).forEach(function(e){n[e.value]=new fu(e.nodes,t.sourceSpan)}),new du(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.write=function(t,e){var n=new ec,r=[];t.forEach(function(t){var e=new Gu("unit",{id:t.id}),i=new Gu("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new Ku(8),new Gu("note",{category:"description"},[new Zu(t.description)])),t.meaning&&i.children.push(new Ku(8),new Gu("note",{category:"meaning"},[new Zu(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new Ku(8),new Gu("note",{category:"location"},[new Zu(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Ku(6)),e.children.push(new Ku(6),i);var o=new Gu("segment");o.children.push(new Ku(8),new Gu("source",{},n.serialize(t.nodes)),new Ku(6)),e.children.push(new Ku(6),o,new Ku(4)),r.push(new Ku(4),e)});var i=new Gu("file",{original:"ng.template",id:"ngi18n"},r.concat([new Ku(2)])),o=new Gu("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Ku(2),i,new Ku]);return Pe([new qu({version:"1.0",encoding:"UTF-8"}),new Ku,o,new Ku])},e.prototype.load=function(t,e){var n=new nc,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new rc;if(Object.keys(o).forEach(function(t){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;s.push.apply(s,i),a[t]=r}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Kt(t)},e}(Hu),ec=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Zu(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Zu("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Zu(e+" {")].concat(t.cases[e].visit(n),[new Zu("} ")]))}),r.push(new Zu("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=Me(t.tag);if(t.isVoid){return[new Gu("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})]}var i=new Gu("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:""}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Zu("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Gu("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Gu("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),nc=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Vu).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(X(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._unitMlString=a;break;case"xliff":var u=t.attrs.find(function(t){return"trgLang"===t.name});u&&(this._locale=u.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):X(this,t.children,null)}break;default:X(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),rc=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Vu).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],X(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new hu(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new yu("",r.value,t.sourceSpan)];this._addError(t,' misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=i.value,a=o.value,u=[];return u.concat.apply(u,[new yu("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new yu("",a,t.sourceSpan)]))}this._addError(t,' misses the "equivEnd" attribute')}else this._addError(t,' misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return X(this,t.cases).forEach(function(e){n[e.value]=new fu(e.nodes,t.sourceSpan)}),new du(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],X(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),ic=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.write=function(t,e){var n=new sc,r=new oc,i=new Gu("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Gu("source",{},[new Zu(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Ku(2),new Gu("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new Ku),Pe([new qu({version:"1.0",encoding:"UTF-8"}),new Ku,new Wu("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new Ku,n.addDefaultExamples(i),new Ku])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return Ae(t)},e.prototype.createNameMapper=function(t){return new Bu(t,Ne)},e}(Hu),oc=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Zu(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Zu("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Zu(e+" {")].concat(t.cases[e].visit(n),[new Zu("} ")]))}),r.push(new Zu("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Gu("ex",{},[new Zu("<"+t.tag+">")]),r=new Gu("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Gu("ex",{},[new Zu("")]),o=new Gu("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Gu("ex",{},[new Zu("{{"+t.value+"}}")]);return[new Gu("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Gu("ex",{},[new Zu("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Gu("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),sc=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Zu(t.attrs.name||"...");t.children=[new Gu("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),ac=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new uc,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new cc;if(Object.keys(o).forEach(function(t){Ie(a,t,function(){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return r})}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ae(t)},e.prototype.createNameMapper=function(t){return new Bu(t,Ne)},e}(Hu),uc=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Vu).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t," elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),X(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content,u=a.slice(o,s);this._msgIdToHtml[i]=u}}else this._addError(t,' misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),cc=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Vu).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:X(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new hu(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return X(this,t.cases).forEach(function(e){n[e.value]=new fu(e.nodes,t.sourceSpan)}),new du(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new yu("",n.value,t.sourceSpan);this._addError(t,' misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),lc=function(t){function e(){return t.call(this,me)||this}return Object(Ai.b)(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=rs),t.prototype.parse.call(this,e,n,r,i)},e}(ou),pc=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=po.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new hc(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),hc=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new lc).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+""},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===po.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===po.Warning){var o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var s=e.map(function(t){return t.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},t.prototype._addError=function(t,e){this._errors.push(new Ou(t.sourceSpan,e))},t}(),fc=function(){function t(t,e,n,r,i){if(void 0===r&&(r=po.Warning),this._htmlParser=t,e){var o=De(n);this._translationBundle=pc.load(e,"i18n",o,r,i)}else this._translationBundle=new pc({},null,Zt,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=rs);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new iu(i.rootNodes,i.errors):we(i.rootNodes,this._translationBundle,r,[],{})},t}(),dc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,vc=/\.ngfactory\.|\.ngsummary\./,yc=/\.ngsummary\./,mc=/NgSummary$/,gc=/\u0275\d+/,_c="@angular/core",bc=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:_c},t.ElementRef={name:"ElementRef",moduleName:_c},t.NgModuleRef={name:"NgModuleRef",moduleName:_c},t.ViewContainerRef={name:"ViewContainerRef",moduleName:_c},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:_c},t.QueryList={name:"QueryList",moduleName:_c},t.TemplateRef={name:"TemplateRef",moduleName:_c},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:_c},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:_c},t.ComponentFactory={name:"ComponentFactory",moduleName:_c},t.ComponentRef={name:"ComponentRef",moduleName:_c},t.NgModuleFactory={name:"NgModuleFactory",moduleName:_c},t.createModuleFactory={name:"ɵcmf",moduleName:_c},t.moduleDef={name:"ɵmod",moduleName:_c},t.moduleProviderDef={name:"ɵmpd",moduleName:_c},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:_c},t.Injector={name:"Injector",moduleName:_c},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:_c},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:_c},t.SecurityContext={name:"SecurityContext",moduleName:_c},t.LOCALE_ID={name:"LOCALE_ID",moduleName:_c},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:_c},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:_c},t.interpolate={name:"ɵinterpolate",moduleName:_c},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:_c},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:_c},t.Renderer={name:"Renderer",moduleName:_c},t.viewDef={name:"ɵvid",moduleName:_c},t.elementDef={name:"ɵeld",moduleName:_c},t.anchorDef={name:"ɵand",moduleName:_c},t.textDef={name:"ɵted",moduleName:_c},t.directiveDef={name:"ɵdid",moduleName:_c},t.providerDef={name:"ɵprd",moduleName:_c},t.queryDef={name:"ɵqud",moduleName:_c},t.pureArrayDef={name:"ɵpad",moduleName:_c},t.pureObjectDef={name:"ɵpod",moduleName:_c},t.purePipeDef={name:"ɵppd",moduleName:_c},t.pipeDef={name:"ɵpid",moduleName:_c},t.nodeValue={name:"ɵnov",moduleName:_c},t.ngContentDef={name:"ɵncd",moduleName:_c},t.unwrapValue={name:"ɵunv",moduleName:_c},t.createRendererType2={name:"ɵcrt",moduleName:_c},t.RendererType2={name:"RendererType2",moduleName:_c},t.ViewDefinition={name:"ɵViewDefinition",moduleName:_c},t.createComponentFactory={name:"ɵccf",moduleName:_c},t}(),wc={OnInit:0,OnDestroy:1,DoCheck:2,OnChanges:3,AfterContentInit:4,AfterContentChecked:5,AfterViewInit:6,AfterViewChecked:7};wc[wc.OnInit]="OnInit",wc[wc.OnDestroy]="OnDestroy",wc[wc.DoCheck]="DoCheck",wc[wc.OnChanges]="OnChanges",wc[wc.AfterContentInit]="AfterContentInit",wc[wc.AfterContentChecked]="AfterContentChecked",wc[wc.AfterViewInit]="AfterViewInit",wc[wc.AfterViewChecked]="AfterViewChecked";var Ec=[wc.OnInit,wc.OnDestroy,wc.DoCheck,wc.OnChanges,wc.AfterContentInit,wc.AfterContentChecked,wc.AfterViewInit,wc.AfterViewChecked],Cc=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),xc=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(Cc.lastIndex=0;n=Cc.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r":"<"+t+e+n+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e1&&(n=new Tc(t),this._listContexts.push(n));for(var r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!Sc.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Oc="ngComponentType",kc=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+M(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof Fo?this._staticSymbolCache.get(Re(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,L(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,H(t))},t.prototype.getHostComponentType=function(t){var e=j({reference:t})+"_Host";if(t instanceof Fo)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof Fo?this._staticSymbolCache.get(Re(t.filePath),V(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof Fo)return this._staticSymbolCache.get(Re(e.filePath),B(e));var i=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(bc.createComponentFactory)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){t instanceof Fo||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=xc.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return qo.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new zo({encapsulation:Hi.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:Bi.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:Hi.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=A(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.annotation,s=i.metadata,a=function(t){var n=new qo({isHost:!1,type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,componentViewType:s.componentViewType,rendererType:s.rendererType,componentFactory:s.componentFactory,template:t});return t&&r.initComponentFactory(s.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(s.isComponent){var u=s.template,c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,o),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation,preserveWhitespaces:u.preserveWhitespaces});return N(c)&&n?(this._reportError(nn(e),e),null):vo.then(c,a)}return a(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=A(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(Ui.isTypeOf(r)){var o=r;J("styles",o.styles),J("styleUrls",o.styleUrls),Y("interpolation",o.interpolation);var s=o.animations;i=new zo({encapsulation:S(o.encapsulation),template:S(o.template),templateUrl:S(o.templateUrl),htmlAst:null,styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:S(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:S(r.preserveWhitespaces)})}var a=null,u=[],c=[],l=r.selector;if(Ui.isTypeOf(r)){var o=r;a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+en(t)+'"',[],t)),o.entryComponents&&(c=Je(o.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())}else l||(this._reportError(T("Directive "+en(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+en(t)+'"',[],t));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),f=this._getQueriesMetadata(r.queries,!0,t));var d=qo.create({isHost:!1,selector:l,exportAs:S(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(T("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+en(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Bo.Directive);return e||this._reportError(T("Illegal state: Could not load the summary for directive "+en(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Bo.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Bo.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Bo.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Bo.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e){var n=this;void 0===e&&(e=!0),t=A(t);var r=this._ngModuleCache.get(t);if(r)return r;var i=this._ngModuleResolver.resolve(t,e);if(!i)return null;var o=[],s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[];i.imports&&Je(i.imports).forEach(function(e){var r=void 0;if(Ye(e))r=e;else if(e&&e.ngModule){var i=e;r=i.ngModule,i.providers&&l.push.apply(l,n._getProvidersMetadata(i.providers,p,"provider for the NgModule '"+en(r)+"'",[],e))}if(!r)return void n._reportError(T("Unexpected value '"+en(e)+"' imported by the module '"+en(t)+"'"),t);if(!n._checkSelfImport(t,r)){var o=n.getNgModuleSummary(r);if(!o)return void n._reportError(T("Unexpected "+n._getTypeDescriptor(e)+" '"+en(e)+"' imported by the module '"+en(t)+"'. Please add a @NgModule annotation."),t);u.push(o)}}),i.exports&&Je(i.exports).forEach(function(e){if(!Ye(e))return void n._reportError(T("Unexpected value '"+en(e)+"' exported by the module '"+en(t)+"'"),t);var r=n.getNgModuleSummary(e);r?c.push(r):s.push(n._getIdentifierMetadata(e))});var d=this._getTransitiveNgModuleMetadata(u,c);i.declarations&&Je(i.declarations).forEach(function(e){if(!Ye(e))return void n._reportError(T("Unexpected value '"+en(e)+"' declared by the module '"+en(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n.isDirective(e))d.addDirective(r),o.push(r),n._addTypeToModule(e,t);else{if(!n.isPipe(e))return void n._reportError(T("Unexpected "+n._getTypeDescriptor(e)+" '"+en(e)+"' declared by the module '"+en(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);d.addPipe(r),d.pipes.push(r),a.push(r),n._addTypeToModule(e,t)}});var v=[],y=[];return s.forEach(function(e){if(d.directivesSet.has(e.reference))v.push(e),d.addExportedDirective(e);else{if(!d.pipesSet.has(e.reference))return void n._reportError(T("Can't export "+n._getTypeDescriptor(e.reference)+" "+en(e.reference)+" from "+en(t)+" as it was neither declared nor imported!"),t);y.push(e),d.addExportedPipe(e)}}),i.providers&&l.push.apply(l,this._getProvidersMetadata(i.providers,p,"provider for the NgModule '"+en(t)+"'",[],t)),i.entryComponents&&p.push.apply(p,Je(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&Je(i.bootstrap).forEach(function(e){if(!Ye(e))return void n._reportError(T("Unexpected value '"+en(e)+"' used in the bootstrap property of module '"+en(t)+"'"),t);h.push(n._getIdentifierMetadata(e))}),p.push.apply(p,h.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&f.push.apply(f,Je(i.schemas)),r=new Go({type:this._getTypeMetadata(t),providers:l,entryComponents:p,bootstrapComponents:h,schemas:f,declaredDirectives:o,exportedDirectives:v,declaredPipes:a,exportedPipes:y,importedModules:u,exportedModules:c,transitiveModule:d,id:i.id||null}),p.forEach(function(t){return d.addEntryComponent(t)}),l.forEach(function(t){return d.addProvider(t,r.type)}),d.addModule(r.type),this._ngModuleCache.set(t,r),r},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(T("'"+en(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Ye(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);if(n&&n!==e)return void this._reportError(T("Type "+en(t)+" is part of the declarations of 2 modules: "+en(n)+" and "+en(e)+"! Please consider moving "+en(t)+" to a higher module that imports "+en(n)+" and "+en(e)+". You can also create a new NgModule that exports and includes "+en(t)+" then import that NgModule in "+en(n)+" and "+en(e)+"."),e);this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Zo,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=z(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=A(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return Ji.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Bo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Bo.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:Ke(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=A(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(T("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+en(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Bo.Pipe);return e||this._reportError(T("Illegal state: Could not load the summary for pipe "+en(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=A(t);var e=this._pipeResolver.resolve(t),n=new Wo({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=e||this._reflector.parameters(t)||[],s=o.map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){eo.isTypeOf(t)?n=!0:Yi.isTypeOf(t)?o=!0:to.isTypeOf(t)?s=!0:Xi.isTypeOf(t)?a=!0:Di.isTypeOf(t)?(e=!0,u=t.attributeName):Ni.isTypeOf(t)?u=t.token:Ii.isTypeOf(t)||t instanceof Fo?u=t:Ye(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var a=s.map(function(t){return t?en(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+en(t)+": ("+a+").";n||this._config.strictInjectionParameters?this._reportError(T(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v6.x")}return s},t.prototype._getTokenMetadata=function(t){t=A(t);return"string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{s=A(s);var u=void 0;if(s&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new Ko(s.provide,s);else{if(!Ye(s)){if(void 0===s)return void o._reportError(T("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(z(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(z(e));if(!i||(t===No.Directive||t===No.PublicService)&&i.providerType===No.PrivateService||(t===No.PrivateService||t===No.PublicService)&&i.providerType===No.Builtin)return null;var o=this._transformedProviders.get(z(e));if(o)return o;if(null!=this._seenProviders.get(z(e)))return this.viewContext.errors.push(new Il("Cannot instantiate cyclic dependency! "+U(e),this._sourceSpan)),null;this._seenProviders.set(z(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return _n(t,{useExisting:o,useValue:e,deps:s})});return o=bn(i,{eager:n,providers:s}),this._transformedProviders.set(z(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===No.Directive||t===No.Component){if(z(e.token)===this.viewContext.reflector.resolveExternalReference(bc.Renderer)||z(e.token)===this.viewContext.reflector.resolveExternalReference(bc.ElementRef)||z(e.token)===this.viewContext.reflector.resolveExternalReference(bc.ChangeDetectorRef)||z(e.token)===this.viewContext.reflector.resolveExternalReference(bc.TemplateRef))return e;z(e.token)===this.viewContext.reflector.resolveExternalReference(bc.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(z(e.token)===this.viewContext.reflector.resolveExternalReference(bc.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(No.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===z(e.token)||null!=this.viewContext.viewProviders.get(z(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Il("No provider for "+U(e.token),this._sourceSpan)),o},t}(),jl=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){En([{token:{identifier:t},useClass:t}],No.PublicService,!0,r,i._errors,i._allProviders)}),En(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),No.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(z(t));if(!r)return null;var i=this._transformedProviders.get(z(t));if(i)return i;if(null!=this._seenProviders.get(z(t)))return this._errors.push(new Il("Cannot instantiate cyclic dependency! "+U(t),r.sourceSpan)),null;this._seenProviders.set(z(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return _n(t,{useExisting:o,useValue:i,deps:s})});return i=bn(r,{eager:e,providers:o}),this._transformedProviders.set(z(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(z(t.token)===this.reflector.resolveExternalReference(bc.Injector)||z(t.token)===this.reflector.resolveExternalReference(bc.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Il("No provider for "+U(t.token),n))),i},t}(),Fl=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return fn(t.map(function(t){return C(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new pl(e,C(t[e],n,null),i.has(e)))}),new hl(r,e)},t.prototype.visitPrimitive=function(t,e){return gn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Uc?t:this.ctx.importExpr(t)},t}(),Ll=function(){function t(t){this.ngModuleFactoryVar=t}return t}(),Vl=cn("_l"),Hl=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=Nt("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,s=new jl(this.reflector,e,n,r),a=[In(this.reflector,t,0,i)].concat(s.parse().map(function(e){return Pn(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return ln(bc.moduleProviderDef).callFn([gn(r),i,e,n])}),u=ln(bc.moduleDef).callFn([fn(a)]),c=mn([new ol(Vl.name)],[new wl(u)],Vc),l=j(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,ln(bc.createModuleFactory).callFn([t.importExpr(e.type.reference),fn(o.map(function(e){return t.importExpr(e.reference)})),c])),e.id){var p=ln(bc.RegisterModuleFactoryFn).callFn([gn(e.id),cn(l)]).toStmt();t.statements.push(p)}return new Ll(l)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,dl)},t.prototype._createNgModuleFactory=function(t,e,n){var r=j({reference:e})+"NgFactory",i=cn(r).set(n).toDeclStmt(pn(bc.NgModuleFactory,[hn(t.importExpr(e))],[Ac.Const]),[yl.Final,yl.Exported]);t.statements.push(i)},t}(),Bl=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Ki.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=pt(this._reflector.annotations(t),Ki.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+M(t)+"'.");return null},t}(),Ul=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Ql(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ln(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new Ul(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;or)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Xl=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case zc.Super:n="super";break;case zc.This:n="this";break;case zc.CatchError:n=Zl.name;break;case zc.CatchStack:n=Kl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Fn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Bc.Equals:n="==";break;case Bc.Identical:n="===";break;case Bc.NotEquals:n="!=";break;case Bc.NotIdentical:n="!==";break;case Bc.And:n="&&";break;case Bc.Or:n="||";break;case Bc.Plus:n="+";break;case Bc.Minus:n="-";break;case Bc.Divide:n="/";break;case Bc.Multiply:n="*";break;case Bc.Modulo:n="%";break;case Bc.Lower:n="<";break;case Bc.LowerEquals:n="<=";break;case Bc.Bigger:n=">";break;case Bc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,Fn(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Jl=(function(){function t(){}t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new Jl(i),s=$l.createRoot();o.visitAllStatements(e,s);var a=n?n.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");a.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){a.push("import * as "+t+" from '"+e+"';")});var u=r?s.toSourceMapGenerator(t,a.length).toJsComment():"",c=a.concat([s.toSource(),u]);return u&&c.push(""),s.setPreambleLineCount(a.length),{sourceText:c.join("\n"),context:s}},t.prototype.emitStatements=function(t,e,n){return void 0===n&&(n=""),this.emitStatementsAndContext(t,e,n).sourceText}}(),function(t){function e(e){var n=t.call(this,!1)||this;return n.referenceFilter=e,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Object(Ai.b)(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Vc?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(yl.Exported)&&t.value instanceof Yc&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(yl.Exported)&&e.print(t,"export "),t.hasModifier(yl.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(yl.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(yl.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(yl.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(yl.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(yl.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zl.name+") {"),e.incIndent();var n=[Kl.set(Zl.prop("stack",null)).toDeclStmt(null,[yl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Ic.Bool:n="boolean";break;case Ic.Dynamic:n="any";break;case Ic.Function:n="Function";break;case Ic.Number:case Ic.Int:n="number";break;case Ic.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Kc.ConcatArray:e="concat";break;case Kc.SubscribeObservable:e="subscribe";break;case Kc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))return void n.print(null,"(null as any)");if(o){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}if(n.print(null,i),this.typeExpression>0){(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==Vc&&(e.print(null,":"),this.visitType(t,e,n))},e}(Xl)),Yl=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(A(t));return e&&e.some(zi.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(A(t));if(n){var r=pt(n,zi.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+M(t));return null},t}(),tp={};Hn(ro.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Hn(ro.STYLE,["*|style"]),Hn(ro.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"]),Hn(ro.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"]);var ep=function(){function t(){}return t}(),np="boolean",rp="number",ip="string",op="object",sp=["[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:|"],ap={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},up=function(t){function e(){var e=t.call(this)||this;return e._schema={},sp.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=np;break;case"#":n[t.substring(1)]=rp;break;case"%":n[t.substring(1)]=op;break;default:n[t]=ip}})}),e}return Object(Ai.b)(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===$i.name}))return!0;if(t.indexOf("-")>-1){if(rt(t)||it(t))return!1;if(n.some(function(t){return t.name===Qi.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===$i.name}))return!0;if(t.indexOf("-")>-1){if(rt(t)||it(t))return!0;if(e.some(function(t){return t.name===Qi.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=tp[t+"|"+e];return r||((r=tp["*|"+e])||ro.NONE)},e.prototype.getMappedPropName=function(t){return ap[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}}return{error:!1}},e.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}}return{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return _(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Bn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},e}(ep),cp=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=zn(t);return t=Un(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(pp,function(){for(var t=[],e=0;e-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(dp,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return wp.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return qn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new Dp(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(Ep)}).map(function(t){var o=t[0],s=t.slice(1);return[function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t}(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+Cp,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(xp.lastIndex=0,xp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(bp,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(xp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(t){for(var e=[],n=1;n-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(xp,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new lp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(_p)>-1,f=!h;null!==(u=p.exec(t));){var d=u[1],v=t.slice(l,u.index).trim();f=f||v.indexOf(_p)>-1;c+=(f?s(v):v)+" "+d+" ",l=p.lastIndex}var y=t.substring(l);return f=f||y.indexOf(_p)>-1,c+=f?s(y):y,a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Tp,vp).replace(Sp,dp)},t}(),lp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),pp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,hp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,fp=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,dp="-shadowcsshost",vp="-shadowcsscontext",yp=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",mp=new RegExp("("+dp+yp,"gim"),gp=new RegExp("("+vp+yp,"gim"),_p=dp+"-no-combinator",bp=/-shadowcsshost-no-combinator([^\s]*)/,wp=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ep=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Cp="([>\\s~+[.,{:][\\s\\S]*)?$",xp=/-shadowcsshost/gim,Sp=/:host/gim,Tp=/:host-context/gim,Pp=/\/\*\s*[\s\S]*?\*\//g,Op=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,kp=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Mp=/([{}])/g,Ap="{",Np="}",Ip="%BLOCK%",Dp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Rp=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),jp=function(){function t(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}return t}(),Fp=function(){function t(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),Lp=function(){function t(t){this._urlResolver=t,this._shadowCss=new cp}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Uo({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:F(e.type)}),this.needsStyleShim(e),!0)},t.prototype.compileStyles=function(t,e,n,r){return void 0===r&&(r=this.needsStyleShim(e)),this._compileStyles(t,e,n,r,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===Hi.Emulated},t.prototype._compileStyles=function(t,e,n,r,i){var o=this,s=n.styles.map(function(t){return gn(o._shimIfNeeded(t,r))}),a=[];n.styleUrls.forEach(function(e){var n=s.length;s.push(null),a.push(new jp(Gn(null),e,function(e){return s[n]=t.importExpr(e)}))});var u=Gn(i?e:null),c=cn(u).set(fn(s,new jc(Lc,[Ac.Const]))).toDeclStmt(null,i?[yl.Final]:[yl.Final,yl.Exported]);return t.statements.push(c),new Fp(t,u,a,r,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}(),Vp="ngPreserveWhitespaces",Hp=new Set(["pre","template","textarea","script","style"]),Bp=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",Up=new RegExp("[^"+Bp+"]"),zp=new RegExp("["+Bp+"]{2,}","g"),qp=function(){function t(){}return t.prototype.visitElement=function(t,e){return Hp.has(t.name)||Zn(t.attrs)?new Yo(t.name,X(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Yo(t.name,t.attrs,X(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==Vp?t:null},t.prototype.visitText=function(t,e){return t.value.match(Up)?new Qo(Kn(t.value).replace(zp," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Wp=["zero","one","two","few","many","other"],Gp=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Zp=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(Ai.b)(e,t),e}(Qa),Kp=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Yo(t.name,t.attrs,X(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?Xn(t,this.errors):Jn(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Qp={DEFAULT:0,LITERAL_ATTR:1,ANIMATION:2};Qp[Qp.DEFAULT]="DEFAULT",Qp[Qp.LITERAL_ATTR]="LITERAL_ATTR",Qp[Qp.ANIMATION]="ANIMATION";var $p=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===Qp.LITERAL_ATTR,this.isAnimation=this.type===Qp.ANIMATION}return t}(),Xp=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),s=tr(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),c=i.substring(a+1);i=at(u,c)}r=Do.Attribute}else"class"==o[0]?(i=o[1],r=Do.Class,s=[ro.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=Do.Style,s=[ro.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=tr(this._schemaRegistry,t,i,!1),r=Do.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new Co(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Yn(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=w(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new xo(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=b(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new xo(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof ya?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ka.ERROR),this._targetErrors.push(new Qa(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n element is deprecated. Use instead",ih={},oh=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Object(Ai.b)(e,t),e}(Qa),sh=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),ah=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===Ka.WARNING}).filter(er(["The template attribute is deprecated. Use an ng-template element instead.",rh])),c=a.errors.filter(function(t){return t.level===Ka.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0){throw T("Template parse errors:\n"+c.join("\n"),c)}return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=Qn(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var u=sr(n),c=sr(r),l=new Dl(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new Xp(this._exprParser,p,this._schemaRegistry,c,s),f=new uh(this._reflector,this._config,l,u,h,this._schemaRegistry,i,s);o=X(f,t.rootNodes,hh),s.push.apply(s,l.errors),a.push.apply(a,h.getUsedPipes())}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new sh(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=I(t,o)}),new sh(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=$n(t.rootNodes);n.push.apply(n,r.errors),t=new iu(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ns.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new oh('Reference "#'+r+'" is defined several times',t.sourceSpan,Ka.ERROR);e.push(i)}})})},t}(),uh=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new Sc,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=xc.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(nh),r=Kn(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new wo(i,n,t.sourceSpan):new bo(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Eo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=ut(t);if(o.type===bs.SCRIPT||o.type===bs.STYLE)return null;if(o.type===bs.STYLESHEET&&tt(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,v=[],y=ur(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Ka.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,Ka.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||m||(v.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=ir(i,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],E=new Set,C=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,E),x=this._createElementPropertyAsts(t.name,a,E),S=e.isTemplateElement||d,T=new Rl(this.providerViewContext,e.providerContext,S,C,v,w,y,r,t.sourceSpan),P=X(o.nonBindable?fh:this,t.children,ph.create(y,C,y?e.providerContext:T));T.afterElement();var O,k=null!=o.projectAs?xc.parse(o.projectAs)[0]:m,M=e.findNgContentIndex(k);if(o.type===bs.NG_CONTENT)t.children&&!t.children.every(or)&&this._reportError(" element cannot have content.",t.sourceSpan),O=new Io(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,x,t.sourceSpan),O=new Oo(v,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(C,t.sourceSpan);var A=d?null:e.findNgContentIndex(k);O=new Po(i,v,x,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:A,t.sourceSpan,t.endSourceSpan||null)}if(d){var N=this.contentQueryStartId,I=ir(th,h),D=this._parseDirectives(this.selectorMatcher,I).directives,R=new Set,j=this._createDirectiveAsts(!0,t.name,D,p,[],t.sourceSpan,[],R),F=this._createElementPropertyAsts(t.name,p,R);this._assertNoComponentsNorElementBindingsOnTemplate(j,F,t.sourceSpan);var L=new Rl(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,N,t.sourceSpan);L.afterElement(),O=new Oo([],[],[],f,L.transformedDirectiveAsts,L.transformProviders,L.transformedHasViewContainer,L.queryMatches,[O],M,t.sourceSpan)}return O},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Yp),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){var h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on ng-template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,o)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new To(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new lh(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Za(o.start,o.end,"Directive "+j(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new So(e.name,We(t.type.reference),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new Mo(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=Ge(u.reflector,bc.TemplateRef)),s.push(new So(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),ar(s.expression)||n.push(new ko(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return j(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);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.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.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)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.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".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===Do.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.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.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' 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."),n._reportError(r,e.sourceSpan)}return!ar(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ka.ERROR),this._targetErrors.push(new Qa(e,t,n))},t}(),ch=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=ut(t);if(n.type===bs.SCRIPT||n.type===bs.STYLE||n.type===bs.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=ir(t.name,r),o=e.findNgContentIndex(i),s=X(this,t.children,hh);return new Po(t.name,X(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Eo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(nh);return new bo(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),lh=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==nr(t.exportAs).indexOf(this.value)},t}(),ph=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Sc,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?e[0]:null},t}(),hh=new ph(!0,new Sc,null,null),fh=new ch,dh=function(){function t(){}return t.event=cn("$event"),t}(),vh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),yh=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),mh={Statement:0,Expression:1};mh[mh.Statement]="Statement",mh[mh.Expression]="Expression";var gh=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Object(Ai.b)(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new wh(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new wh(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new wh(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Va),_h=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Bc.Plus;break;case"-":n=Bc.Minus;break;case"*":n=Bc.Multiply;break;case"/":n=Bc.Divide;break;case"%":n=Bc.Modulo;break;case"&&":n=Bc.And;break;case"||":n=Bc.Or;break;case"==":n=Bc.Equals;break;case"!=":n=Bc.NotEquals;break;case"===":n=Bc.Identical;break;case"!==":n=Bc.NotIdentical;break;case"<":n=Bc.Lower;break;case">":n=Bc.Bigger;break;case"<=":n=Bc.LowerEquals;break;case">=":n=Bc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return gr(e,new al(n,this._visit(t.left,mh.Expression),this._visit(t.right,mh.Expression)))},t.prototype.visitChain=function(t,e){return yr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return gr(e,this._visit(t.condition,mh.Expression).conditional(this._visit(t.trueExp,mh.Expression),this._visit(t.falseExp,mh.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,mh.Expression);return n=t instanceof wh?t.converter(r):this._visit(t.target,mh.Expression).callFn(r),gr(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return mr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){mr(e,t);for(var n=[gn(t.expressions.length)],r=0;r0?Lc:hn(e.importExpr(this.component.type.reference)),this.viewName=L(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var r=Mr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var i=e+1,o=t.first?0:1,s=134217728|Nr(r,i,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:ln(bc.queryDef).callFn([gn(s),gn(i),new hl([new pl(t.propertyName,gn(o),!1)])])}})})}I(this,e),this.parent&&(0===e.length||Cr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:ln(bc.anchorDef).callFn([gn(0),dl,dl,gn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==Bi.OnPush||(a|=2);var u=new _l(this.viewName,[new ol(kh.name)],[new wl(ln(bc.viewDef).callFn([gn(a),fn(i),s,o]))],pn(bc.ViewDefinition),0===this.embeddedViewIndex?[yl.Exported]:[]);return t.push(u),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&sn(t).has(Nh.name)&&n.push(Nh.set(Mh.prop("component")).toDeclStmt(this.compType)),e=mn([new ol(Ah.name,Vc),new ol(Mh.name,Vc)],n.concat(t),Vc)}else e=dl;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:ln(bc.ngContentDef).callFn([gn(t.ngContentIndex),gn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:ln(bc.textDef).callFn([gn(-1),gn(t.ngContentIndex),fn([gn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value,o=i.ast,s=o.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:Nh,value:e})}),a=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:ln(bc.textDef).callFn([gn(a),gn(t.ngContentIndex),fn(o.strings.map(function(t){return gn(t)}))]),updateRenderer:s}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:ln(bc.anchorDef).callFn([gn(o),s,gn(t.ngContentIndex),gn(c),n._createElementHandleEventFn(r,a),cn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=rt(t.name)?null:t.name,o=this._visitElementOrTemplate(r,t),s=o.flags,a=o.usedEvents,u=o.queryMatchesExpr,c=o.hostBindings,l=o.hostEvents,p=[],h=[],f=[];if(i){var d=t.inputs.map(function(t){return{context:Nh,inputAst:t,dirAst:null}}).concat(c);d.length&&(h=d.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=d.map(function(t){return xr(t.inputAst,t.dirAst)})),f=a.map(function(t){var e=t[0],n=t[1];return fn([gn(e),gn(n)])})}I(this,t.children);var v=this.nodes.length-r-1,y=t.directives.find(function(t){return t.directive.isComponent}),m=dl,g=dl;y&&(g=this.outputCtx.importExpr(y.directive.componentViewType),m=this.outputCtx.importExpr(y.directive.rendererType));var _=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|s,nodeDef:ln(bc.elementDef).callFn([gn(_),gn(s),u,gn(t.ngContentIndex),gn(v),gn(i),i?Sr(t):dl,p.length?fn(p):dl,f.length?fn(f):dl,n._createElementHandleEventFn(r,l),g,m]),updateRenderer:h}}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=Ar(t,null),n=e.name,r=e.target;i.set(Ir(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=Ar(e,t),r=n.name,o=n.target;i.set(Ir(o,r),[o,r])})});var o=[],s=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,a){var u=void 0,c=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===z(r.token)&&(u=t,c=e)}),u){var l=n._visitDirective(r,u,c,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=l.hostBindings,h=l.hostEvents;o.push.apply(o,p),s.push.apply(s,h)}else n._visitProvider(r,e.queryMatches)});var a=[];return e.queryMatches.forEach(function(t){var e=void 0;z(t.value)===n.reflector.resolveExternalReference(bc.ElementRef)?e=0:z(t.value)===n.reflector.resolveExternalReference(bc.ViewContainerRef)?e=3:z(t.value)===n.reflector.resolveExternalReference(bc.TemplateRef)&&(e=2),null!=e&&a.push(fn([gn(t.queryId),gn(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?z(e.value)===n.reflector.resolveExternalReference(bc.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,a.push(fn([gn(e.name),gn(r)])))}),e.outputs.forEach(function(t){s.push({context:Nh,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?fn(a):dl,hostBindings:o,hostEvents:s}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|Nr(a,r,t.first),o=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:ln(bc.queryDef).callFn([gn(i),gn(r),new hl([new pl(t.propertyName,gn(o),!1)])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,o),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,v=p.depsExpr;i.forEach(function(e){e.value&&z(e.value)===z(t.token)&&(u.refNodeIndices[e.name]=c,f.push(fn([gn(e.name),gn(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=fn([gn(e),gn(t.directiveName)]);return new pl(t.directiveName,n,!1)}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new pl(t,gn(e),!1))});var _=[];(e.inputs.length||(327680&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Nh,value:t.value})}));var b=ln(bc.nodeValue).callFn([Mh,gn(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),E=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}}),C=c;return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:ln(bc.directiveDef).callFn([gn(C),gn(h),f.length?fn(f):dl,gn(l),d,v,y.length?new hl(y):dl,m.length?new hl(m):dl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:E}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=In(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:ln(bc.providerDef).callFn([gn(t.flags),t.queryMatchExprs.length?fn(t.queryMatchExprs):dl,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){z(e.value)===z(t.token)&&n.push(fn([gn(e.queryId),gn(4)]))});var r=Pn(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==dh.event.name)return dh.event;for(var e=Mh,n=this;n;n=n.parent,e=e.prop("parent").cast(Lc)){var r=n.refNodeIndices[t];if(null!=r)return ln(bc.nodeValue).callFn([e,gn(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(t,e){if(0===e){var n=ln(bc.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:ln(bc.pureArrayDef).callFn([gn(r),gn(e)])}}),function(t){return Pr(r,t)}},t.prototype._createLiteralMapConverter=function(t,e){if(0===e.length){var n=ln(bc.EMPTY_MAP);return function(){return n}}var r=dn(e.map(function(t,e){return Object(Ai.a)({},t,{value:gn(e)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:ln(bc.pureObjectDef).callFn([gn(i),r])}}),function(t){return Pr(i,t)}},t.prototype._createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:ln(bc.purePipeDef).callFn([gn(i),gn(n)])}});for(var o=Mh,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(Lc);var a=s.purePipeNodeIndices[e],u=ln(bc.nodeValue).callFn([o,gn(a)]);return function(e){return Or(t.nodeIndex,t.bindingIndex,Pr(i,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=ln(bc.nodeValue).callFn([Mh,gn(c)]);return function(e){return Or(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===wc.OnDestroy&&(i|=Nn(t))});var o=e.type.diDeps.map(function(t){return An(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:ln(bc.pipeDef).callFn([gn(i),n.outputCtx.importExpr(e.type.reference),fn(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:lr({createLiteralArrayConverter:function(n){return e._createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e._createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e._createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,u=i===Nh?e:null,c=pr(u,i,o,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return an(t,r)})),un(p,r)});return(i.length||o)&&s.push(an(Pr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,u=o.updateDirectives,c=o.updateRenderer,l=o.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&i.push.apply(i,t(n,l,u,(327680&a)>0)),un(3&a?new fl([kh.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,e){var n=this,r=[],i=0;e.forEach(function(t){var e=t.context,o=t.eventAst,s=t.dirAst,a=""+i++,u=e===Nh?n:null,c=cr(u,e,o.handler,a),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(Dh.set(p.and(Dh)).toStmt());var f=Ar(o,s),d=f.target,v=f.name,y=Ir(d,v);r.push(an(new Tl(gn(y).identical(Ih),h),o.sourceSpan))});var o;if(r.length>0){var s=[Dh.set(gn(!0)).toDeclStmt(Hc)];!this.component.isHost&&sn(r).has(Nh.name)&&s.push(Nh.set(Mh.prop("component")).toDeclStmt(this.compType)),o=mn([new ol(Mh.name,Vc),new ol(Ih.name,Vc),new ol(dh.event.name,Vc)],s.concat(r,[new wl(Dh)]),Vc)}else o=dl;return o},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),jh=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=be(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:((o=this._messages).push.apply(o,i.messages),[]);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new Fh;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(i=n[r].sources).push.apply(i,e.sources):n[r]=e;var i});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new pu(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(i,this._locale)},t}(),Fh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(Ai.b)(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new vu(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new yu(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new mu(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(gu),Lh=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t.prototype.isEquivalent=function(t){return this.genFileUrl===t.genFileUrl&&(this.source?this.source===t.source:null!=t.stmts&&on(this.stmts,t.stmts))},t}(),Vh=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Hh=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);if(e)return e;var n=this.resolvedSymbols.get(t);return n||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=Be(t.filePath);if(r!==t.filePath){var i=ze(t.name),e=this.getStaticSymbol(r,i,t.members),n=this.getImportAs(e);return n?this.getStaticSymbol(He(n.filePath),Ue(n.name),e.members):null}var o=this.summaryResolver.getImportAs(t);return o||(o=this.importAs.get(t)),o},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Fe(t.filePath))return null;for(var e=Lr(this.resolveSymbol(t));e&&e.metadata instanceof Fo;)e=Lr(this.resolveSymbol(e.metadata));return e&&e.metadata&&e.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n=0?{__symbolic:"reference",name:h}:n.has(h)?a.getStaticSymbol(e,h):void 0},i}(fo),c=C(r,new u,[]),l=Lr(c);return l instanceof Fo?this.createExport(t,l):new Vh(t,c)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Vh(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 4";this.reportError(new Error(i))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to "+n:""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Bh=function(t){function e(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return Object(Ai.b)(e,t),e.prototype.addSummary=function(t){var e=this,n=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),r=this.processedSummaryBySymbol.get(t.symbol);if(n||(n={symbol:t.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(t.symbol,n),r={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),!n.metadata&&t.metadata){var i=t.metadata||{};if("class"===i.__symbolic){var o={};Object.keys(i).forEach(function(t){"decorators"!==t&&(o[t]=i[t])}),i=o}else zr(i)&&(qr(i)||Wr(i)||(i={__symbolic:"error",message:"Complex function calls are not supported."}));if(n.metadata=i,r.metadata=this.processValue(i,1),i instanceof Fo&&this.summaryResolver.isLibraryFile(i.filePath)){var s=this.symbols[this.indexBySymbol.get(i)];qe(s.name)||this.reexportedBy.set(s,t.symbol)}}if(!n.type&&t.type&&(n.type=t.type,r.type=this.processValue(t.type,0),t.type.summaryKind===Bo.NgModule)){var a=t.type;a.exportedDirectives.concat(a.exportedPipes).forEach(function(t){var n=t.reference;if(e.summaryResolver.isLibraryFile(n.filePath)&&!e.unprocessedSymbolSummariesBySymbol.has(n)){var r=e.summaryResolver.resolveSummary(n);r&&e.addSummary(r)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var s=t.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||(i=n.name+"_"+r,e.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return C(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof Fo){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;r=this.loadSummary(t),r&&r.metadata instanceof Fo&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e},e}(fo),Uh=function(){function t(t,e,n){this.outputCtx=t,this.symbolResolver=e,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(t,e){this.data.push({summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.push({summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){for(var e=this,n=new Map,r=0,i=t;r0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)}),r=[];return n.forEach(function(t){return t.ngModules.forEach(function(t){return r.push(e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1))})}),Promise.all(r).then(function(t){return ni(n)})},t.prototype.loadFilesSync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)});return n.forEach(function(t){return t.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)})}),ni(n)},t.prototype._createNgFactoryStub=function(t,e,n){var r=this,i=0;e.ngModules.forEach(function(e,o){r._ngModuleCompiler.createStub(t,e.type.reference);var s=e.transitiveModule.directives.map(function(t){return t.reference}).concat(e.transitiveModule.pipes.map(function(t){return t.reference}),e.importedModules.map(function(t){return t.type.reference}),e.exportedModules.map(function(t){return t.type.reference}),r._externalIdentifierReferences([bc.TemplateRef,bc.ElementRef])),a=new Map;s.forEach(function(t,e){r._host.isSourceFile(t.filePath)&&a.set(t,"_decl"+o+"_"+e)}),a.forEach(function(e,n){t.statements.push(cn(e).set(dl.cast(Lc)).toDeclStmt(hn(t.importExpr(n))))}),n&qh.TypeCheck&&e.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(t,o.type.reference.name+"_Host_"+i,e,r._metadataResolver.getHostComponentMetadata(o),[o.type],a),r._createTypeCheckBlock(t,o.type.reference.name+"_"+i,e,o,e.transitiveModule.directives,a))})}),0===t.statements.length&&Gr(t)},t.prototype._externalIdentifierReferences=function(t){for(var e=[],n=0,r=t;n0||this._options.allowEmptyCodegenFiles){var l=this._codegenSourceModule(t,c);u.unshift(l)}return u},t.prototype._createSummary=function(t,e,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),u=r.map(function(t){return{summary:s._metadataResolver.getNgModuleSummary(t.type.reference),metadata:s._metadataResolver.getNgModuleMetadata(t.type.reference)}}).concat(e.map(function(t){return{summary:s._metadataResolver.getDirectiveSummary(t),metadata:s._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:s._metadataResolver.getPipeSummary(t),metadata:s._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:s._metadataResolver.getInjectableSummary(t),metadata:s._metadataResolver.getInjectableSummary(t).type}})),c=this._options.enableSummariesForJit?this._createOutputContext(He(t,!0)):null,l=Vr(t,c,this._summaryResolver,this._symbolResolver,a,u),p=l.json;l.exportAs.forEach(function(t){o.statements.push(cn(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[yl.Exported]))});var h=new Lh(t,Ve(t),p),f=[h];return c&&f.push(this._codegenSourceModule(t,c)),f},t.prototype._compileModule=function(t,e){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:Ge(this._reflector,bc.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:Ge(this._reflector,bc.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(t,e,n)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentMetadata(e),o=this._compileComponent(t,i,n,[e.type],null,r).viewClassVar,s=B(e.type.reference),a=[];for(var u in e.inputs){var c=e.inputs[u];a.push(new pl(u,gn(c),!1))}var l=[];for(var u in e.outputs){var c=e.outputs[u];l.push(new pl(u,gn(c),!1))}t.statements.push(cn(s).set(ln(bc.createComponentFactory).callFn([gn(e.selector),t.importExpr(e.type.reference),cn(o),new hl(a),new hl(l),fn(e.template.ngContentSelectors.map(function(t){return gn(t)}))])).toDeclStmt(pn(bc.ComponentFactory,[hn(t.importExpr(e.type.reference))],[Ac.Const]),[yl.Final,yl.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this._parseTemplate(e,n,r),a=s.template,u=s.pipes,c=i?cn(i.stylesVar):fn([]),l=this._viewCompiler.compileComponent(t,e,a,c,u);return i&&Zr(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),l},t.prototype._parseTemplate=function(t,e,n){var r=this;if(this._templateAstCache.has(t.type.reference))return this._templateAstCache.get(t.type.reference);var i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),s=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)}),a=this._templateParser.parse(t,t.template.htmlAst,o,s,e.schemas,Z(e.type,t,t.template),i);return this._templateAstCache.set(t.type.reference,a),a},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r){if(void 0===r&&(r=null),!(n instanceof Fo))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var i=e._symbolResolver.getTypeArity(n)||0,o=e._symbolResolver.getImportAs(n)||n,s=o.filePath,a=o.name,u=o.members,c=e._fileNameToModuleName(s,t),l=e._fileNameToModuleName(t,t),p=c===l?null:c,h=r||[],f=i-h.length,d=h.concat(new Array(f).fill(Lc));return u.reduce(function(t,e){return t.prop(e)},ln(new tl(p,a,null),d))}}},t.prototype._fileNameToModuleName=function(t,e){return this._summaryResolver.getKnownModuleName(t)||this._symbolResolver.getKnownModuleName(t)||this._host.fileNameToModuleName(t,e)},t.prototype._codegenStyles=function(t,e,n,r,i){var o=this._createOutputContext(Kr(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,e,n,r);return Zr(this._symbolResolver,s,r,i),this._codegenSourceModule(t,o)},t.prototype._codegenSourceModule=function(t,e){return new Lh(t,e.genFilePath,e.statements)},t.prototype.listLazyRoutes=function(t,e){function n(t,e,i){if(void 0===e&&(e=new Set),void 0===i&&(i=[]),e.has(t)||!t.name)return i;e.add(t);for(var o=Dr(r._metadataResolver.getNgModuleMetadata(t,!0),r._reflector),s=0,a=o;sa.length&&a.push.apply(a,h.slice(a.length).map(function(t){return f(t)})),s.set(e,!0);for(var d=uf.build(),v=0;v0&&!e.members.length)return e;var E=e,C=u(E);return null!=C?p(E,C):E}if(e){if(e.__symbolic){var E=void 0;switch(e.__symbolic){case"binop":var x=f(e.left);if(si(x))return x;var S=f(e.right);if(si(S))return S;switch(e.operator){case"&&":return x&&S;case"||":return x||S;case"|":return x|S;case"^":return x^S;case"&":return x&S;case"==":return x==S;case"!=":return x!=S;case"===":return x===S;case"!==":return x!==S;case"<":return x":return x>S;case"<=":return x<=S;case">=":return x>=S;case"<<":return x<>":return x>>S;case"+":return x+S;case"-":return x-S;case"*":return x*S;case"/":return x/S;case"%":return x%S}return null;case"if":return f(f(e.condition)?e.thenExpression:e.elseExpression);case"pre":var T=f(e.operand);if(si(T))return T;switch(e.operator){case"+":return T;case"-":return-T;case"!":return!T;case"~":return~T}return null;case"index":var P=c(e.expression),O=c(e.index);return P&&fi(O)?P[O]:null;case"select":var k=e.member,M=t,A=f(e.expression);if(A instanceof Fo){var N=A.members.concat(k);M=i.getStaticSymbol(A.filePath,A.name,N);var C=u(M);return null!=C?p(M,C):M}return A&&fi(k)?p(M,A[k]):null;case"reference":var I=e.name,D=o.resolve(I);if(D!=uf.missing)return D;break;case"resolved":try{return f(e.symbol)}catch(t){throw ui(t)&&null!=e.fileName&&null!=e.line&&null!=e.character&&(t.position={fileName:e.fileName,line:e.line,column:e.character}),t}case"class":case"function":return t;case"new":case"call":if((E=n(t,e.expression,r+1,0))instanceof Fo){if(E===i.injectionToken||E===i.opaqueToken)return t;var R=e.arguments||[],j=i.conversionMap.get(E);if(j){var F=R.map(function(e){return p(t,e)}).map(function(t){return si(t)?void 0:t});return j(t,F)}return h(E,u(E),R,e.expression)}return Kh;case"error":var L=e.message;return null!=e.line?i.error({message:L,context:e.context,value:e,position:{fileName:e.fileName,line:e.line,column:e.character}},t):i.error({message:L,context:e.context},t),Kh;case"ignore":return e}return null}return hi(e,function(t,n){if(Xh.has(n)){if(n===Qh&&$h in e){var r=f(e.provide);if(r===i.ROUTES||r==i.ANALYZE_FOR_ENTRY_COMPONENTS)return f(t)}return l(t)}return f(t)})}return Kh}return f(e)}var r,i=this,o=uf.empty,s=new Map;try{r=n(t,e,0,0)}catch(e){if(!this.errorRecorder)throw vi(e,t);this.reportError(e,t)}if(!si(r))return r},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(vi(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){var n=t.message,r=t.summary,i=t.advise,o=t.position,s=t.context,a=(t.value,t.symbol),u=t.chain;this.reportError(ai(n,r,i,o,a,s,u),e)},t}(),Yh="ngMetadataError",tf="Reference to non-exported class",ef="Variable not initialized",nf="Destructuring not supported",rf="Could not resolve type",of="Function call not supported",sf="Reference to a local symbol",af="Lambda not supported",uf=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new cf(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),cf=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Object(Ai.b)(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):uf.missing},e}(uf),lf=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(je(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=Ve(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(n=null!=r,this.loadedFilePaths.set(t,n),r){var o=Hr(this.staticSymbolCache,this,t,r),s=o.moduleName,a=o.summaries,u=o.importAs;a.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s&&this.knownFileNameToModuleNames.set(t,s),u.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),pf=function(){function t(){}return t}(),hf=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}(),ff=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),df=function(){function t(t){this.value=t}return t}(),vf=function(){function t(t){this.reflector=t}return t.prototype.debugAst=function(t){return Vn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(yl.Exported)&&e.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case zc.Super:return e.instance.__proto__;case zc.This:return e.instance;case zc.CatchError:n=yf;break;case zc.CatchStack:n=mf;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Kc.ConcatArray:n=r.concat.apply(r,i);break;case Kc.SubscribeObservable:n=r.subscribe({next:i[0]});break;case Kc.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof qc&&r.builtin===zc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new df(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=_i(t,e,this);return e.vars.set(t.name,n),t.hasModifier(yl.Exported)&&e.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(yf,r),n.vars.set(mf,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return this.reflector.resolveExternalReference(t.value)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return bi(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,bi(n,t.statements,e,this)),t.hasModifier(yl.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Bc.Equals:return r()==i();case Bc.Identical:return r()===i();case Bc.NotEquals:return r()!=i();case Bc.NotIdentical:return r()!==i();case Bc.And:return r()&&i();case Bc.Or:return r()||i();case Bc.Plus:return r()+i();case Bc.Minus:return r()-i();case Bc.Divide:return r()/i();case Bc.Multiply:return r()*i();case Bc.Modulo:return r()%i();case Bc.Lower:return r()i();case Bc.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===zc.This)n.print(e,"self");else{if(e.builtin===zc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof qc&&r.builtin===zc.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zl.name+") {"),e.incIndent();var n=[Kl.set(Zl.prop("stack")).toDeclStmt(null,[yl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Kc.ConcatArray:e="concat";break;case Kc.SubscribeObservable:e="subscribe";break;case Kc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Xl),_f=function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return Object(Ai.b)(e,t),e.prototype.createReturnStmt=function(t){new wl(new hl(this._evalExportedVars.map(function(t){return new pl(t,cn(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e0&&(n=Mi(t,n));var r=Pi(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Sf.Scheme]){var o=r[Sf.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}(),xf=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Sf={Scheme:1,UserInfo:2,Domain:3,Port:4,Path:5,QueryData:6,Fragment:7};Sf[Sf.Scheme]="Scheme",Sf[Sf.UserInfo]="UserInfo",Sf[Sf.Domain]="Domain",Sf[Sf.Port]="Port",Sf[Sf.Path]="Path",Sf[Sf.QueryData]="QueryData",Sf[Sf.Fragment]="Fragment";var Tf=function(){function t(){}return t.prototype.get=function(t){return""},t}();!function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}t.prototype.extract=function(t){var e=this,n=$r(t,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=ns.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.fileName,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new lc,i=yi(e),o=new Lo,s=new lf(e,o),a=new Hh(e,o,s),u=new Jh(s,a),c=new jo({defaultEncapsulation:Hi.Emulated,useJit:!1}),l=new Es({get:function(t){return e.loadResource(t)}},i,r,c),p=new up,h=new kc(c,r,new Bl(u),new Ss(u),new Yl(u),s,p,l,console,o,u),f=new jh(r,[],{},n);return{extractor:new t(e,a,f,h),staticReflector:u}}}()},function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}e.b=r,n.d(e,"a",function(){return o});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);e.MergeMapSubscriber=u},function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber))},function(t,e,n){"use strict";var r=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)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=i},function(t,e,n){"use strict";var r=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)},i=n(60),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);e.SubjectSubscription=o},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(27),i=n(86),o=n(317),s=n(324),a=n(327),u=function(){function t(){}return t.decorators=[{type:r.E,args:[{imports:[i.a,o.a,s.a],declarations:[a.a],bootstrap:[a.a]}]}],t.ctorParameters=function(){return[]},t}()},function(t,e,n){"use strict";function r(t){return null==t||0===t.length}function i(t){return null!=t}function o(t){var e=Object(H._29)(t)?Object(U.fromPromise)(t):t;if(!Object(H._28)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function s(t,e){return e.map(function(e){return e(t)})}function a(t,e){return e.map(function(e){return e(t)})}function u(t){var e=t.reduce(function(t,e){return null!=e?Object(V.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}function c(){return/android (\d+)/.test((Object(q.c)()?Object(q.c)().getUserAgent():"").toLowerCase())}function l(t){return t.validate?function(e){return t.validate(e)}:t}function p(t){return t.validate?function(e){return t.validate(e)}:t}function h(){throw new Error("unimplemented")}function f(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function d(t){return t.split(":")[0]}function v(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function y(t){return t.split(":")[0]}function m(t,e){return e.path.concat([t])}function g(t,e){t||T(e,"Cannot find control with"),e.valueAccessor||T(e,"No value accessor for form control with"),t.validator=$.compose([t.validator,e.validator]),t.asyncValidator=$.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),b(t,e),C(t,e),w(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function _(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function b(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&E(t,e)})}function w(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&E(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}function E(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function C(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}function x(t,e){null==t&&T(e,"Cannot find control with"),t.validator=$.compose([t.validator,e.validator]),t.asyncValidator=$.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return T(t,"There is no FormControl instance attached to form control element with")}function T(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function P(t){return null!=t?$.compose(t.map(l)):null}function O(t){return null!=t?$.composeAsync(t.map(p)):null}function k(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(H._30)(e,n.currentValue)}function M(t){return mt.some(function(e){return t.constructor===e})}function A(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function N(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===nt?n=e:M(e)?(r&&T(t,"More than one built-in value accessor matches form control with"),r=e):(i&&T(t,"More than one custom value accessor matches form control with"),i=e)}),i||(r||(n||(T(t,"No valid value accessor for form control with"),null)))}function I(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function D(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof St?t.controls[e]||null:t instanceof Tt?t.at(e)||null:null},t))}function R(t){var e=F(t)?t.validators:t;return Array.isArray(e)?P(e):e||null}function j(t,e){var n=F(e)?e.asyncValidators:t;return Array.isArray(n)?O(n):n||null}function F(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function L(t){return!(t instanceof zt||t instanceof Bt||t instanceof Wt)}n.d(e,"a",function(){return he});var V=n(50),H=n(27),B=n(318),U=(n.n(B),n(320)),z=(n.n(U),n(322)),q=(n.n(z),n(86)),W=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(W),Z=new H.x("NgValidators"),K=new H.x("NgAsyncValidators"),Q=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,$=function(){function t(){}return t.min=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Q.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,i;return"string"==typeof e?(i="^"+e+"$",n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){var n=a(t,e).map(o);return z.map.call(Object(B.forkJoin)(n),u)}},t}(),X=new H.x("NgValueAccessor"),J={provide:X,useExisting:Object(H._8)(function(){return Y}),multi:!0},Y=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:H.q,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[J]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r}]},t}(),tt={provide:X,useExisting:Object(H._8)(function(){return nt}),multi:!0},et=new H.x("CompositionEventMode"),nt=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!c())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.decorators=[{type:H.q,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)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[tt]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r},{type:void 0,decorators:[{type:H.J},{type:H.v,args:[et]}]}]},t}(),rt={provide:X,useExisting:Object(H._8)(function(){return it}),multi:!0},it=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:H.q,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r}]},t}(),ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return h()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return h()},enumerable:!0,configurable:!0}),e}(W),st={provide:X,useExisting:Object(H._8)(function(){return ut}),multi:!0},at=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t.decorators=[{type:H.w}],t.ctorParameters=function(){return[]},t}(),ut=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(ot),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=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 ')},t.decorators=[{type:H.q,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[st]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r},{type:at},{type:H.y}]},t.propDecorators={name:[{type:H.z}],formControlName:[{type:H.z}],value:[{type:H.z}]},t}(),ct={provide:X,useExisting:Object(H._8)(function(){return lt}),multi:!0},lt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:H.q,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:[ct]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r}]},t}(),pt={provide:X,useExisting:Object(H._8)(function(){return ht}),multi:!0},ht=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=H._30}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=f(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Ct),Tt=function(t){function e(e,n,r){var i=t.call(this,R(n),j(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(V.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof xt?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Ct),Pt={provide:G,useExisting:Object(H._8)(function(){return kt})},Ot=Promise.resolve(null),kt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new H.t,r.form=new St({},P(e),O(n)),r}return Object(V.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),g(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),I(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path),r=new St({});x(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Ot.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,A(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.decorators=[{type:H.q,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Pt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={options:[{type:H.z,args:["ngFormOptions"]}]},e}(G),Mt={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 '},At=function(){function t(){}return t.modelParentException=function(){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 '+Mt.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 "+Mt.ngModelWithFormGroup)},t.formGroupNameException=function(){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 "+Mt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Mt.ngModelGroup)},t.missingNameException=function(){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: ')},t.modelGroupParentException=function(){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 "+Mt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Mt.ngModelGroup)},t}(),Nt={provide:G,useExisting:Object(H._8)(function(){return It})},It=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(V.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof kt||At.modelGroupParentException()},e.decorators=[{type:H.q,args:[{selector:"[ngModelGroup]",providers:[Nt],exportAs:"ngModelGroup"}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={name:[{type:H.z,args:["ngModelGroup"]}]},e}(gt),Dt={provide:ot,useExisting:Object(H._8)(function(){return jt})},Rt=Promise.resolve(null),jt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new xt,o._registered=!1,o.update=new H.t,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=N(o,i),o}return Object(V.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),k(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?m(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){g(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof It)&&this._parent instanceof gt?At.formGroupNameException():this._parent instanceof It||this._parent instanceof kt||At.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},e.prototype._updateValue=function(t){var e=this;Rt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Rt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e.decorators=[{type:H.q,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Dt],exportAs:"ngModel"}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[X]}]}]},e.propDecorators={name:[{type:H.z}],isDisabled:[{type:H.z,args:["disabled"]}],model:[{type:H.z,args:["ngModel"]}],options:[{type:H.z,args:["ngModelOptions"]}],update:[{type:H.K,args:["ngModelChange"]}]},e}(ot),Ft=function(){function t(){}return t.controlParentException=function(){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 "+Mt.formControlName)},t.ngModelGroupException=function(){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 '+Mt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Mt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Mt.formControlName)},t.groupParentException=function(){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 "+Mt.formGroupName)},t.arrayParentException=function(){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 "+Mt.formArrayName)},t.disabledAttrWarning=function(){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 ")},t}(),Lt={provide:ot,useExisting:Object(H._8)(function(){return Vt})},Vt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.update=new H.t,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=N(i,r),i}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Ft.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(g(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),k(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e.decorators=[{type:H.q,args:[{selector:"[formControl]",providers:[Lt],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[X]}]}]},e.propDecorators={form:[{type:H.z,args:["formControl"]}],model:[{type:H.z,args:["ngModel"]}],update:[{type:H.K,args:["ngModelChange"]}],isDisabled:[{type:H.z,args:["disabled"]}]},e}(ot),Ht={provide:G,useExisting:Object(H._8)(function(){return Bt})},Bt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new H.t,r}return Object(V.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return g(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){I(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,A(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(_(e.control,e),n&&g(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=P(this._validators);this.form.validator=$.compose([this.form.validator,t]);var e=O(this._asyncValidators);this.form.asyncValidator=$.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Ft.missingFormException()},e.decorators=[{type:H.q,args:[{selector:"[formGroup]",providers:[Ht],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={form:[{type:H.z,args:["formGroup"]}],ngSubmit:[{type:H.K}]},e}(G),Ut={provide:G,useExisting:Object(H._8)(function(){return zt})},zt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(V.b)(e,t),e.prototype._checkParentType=function(){L(this._parent)&&Ft.groupParentException()},e.decorators=[{type:H.q,args:[{selector:"[formGroupName]",providers:[Ut]}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={name:[{type:H.z,args:["formGroupName"]}]},e}(gt),qt={provide:G,useExisting:Object(H._8)(function(){return Wt})},Wt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(V.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){L(this._parent)&&Ft.arrayParentException()},e.decorators=[{type:H.q,args:[{selector:"[formArrayName]",providers:[qt]}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={name:[{type:H.z,args:["formArrayName"]}]},e}(G),Gt={provide:ot,useExisting:Object(H._8)(function(){return Zt})},Zt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._added=!1,o.update=new H.t,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=N(o,i),o}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Ft.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),k(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof zt)&&this._parent instanceof gt?Ft.ngModelGroupException():this._parent instanceof zt||this._parent instanceof Bt||this._parent instanceof Wt||Ft.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e.decorators=[{type:H.q,args:[{selector:"[formControlName]",providers:[Gt]}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[X]}]}]},e.propDecorators={name:[{type:H.z,args:["formControlName"]}],model:[{type:H.z,args:["ngModel"]}],update:[{type:H.K,args:["ngModelChange"]}],isDisabled:[{type:H.z,args:["disabled"]}]},e}(ot),Kt={provide:Z,useExisting:Object(H._8)(function(){return $t}),multi:!0},Qt={provide:Z,useExisting:Object(H._8)(function(){return Xt}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?$.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:H.q,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Kt],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:H.z}]},t}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(V.b)(e,t),e.prototype.validate=function(t){return this.required?$.requiredTrue(t):null},e.decorators=[{type:H.q,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Qt],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e}($t),Jt={provide:Z,useExisting:Object(H._8)(function(){return Yt}),multi:!0},Yt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?$.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:H.q,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Jt]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:H.z}]},t}(),te={provide:Z,useExisting:Object(H._8)(function(){return ee}),multi:!0},ee=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=$.minLength(parseInt(this.minlength,10))},t.decorators=[{type:H.q,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[te],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:H.z}]},t}(),ne={provide:Z,useExisting:Object(H._8)(function(){return re}),multi:!0},re=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=$.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:H.q,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[ne],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:H.z}]},t}(),ie={provide:Z,useExisting:Object(H._8)(function(){return oe}),multi:!0},oe=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=$.pattern(this.pattern)},t.decorators=[{type:H.q,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ie],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:H.z}]},t}(),se=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,i=null!=e?e.asyncValidator:null;return new St(n,r,i)},t.prototype.control=function(t,e,n){return new xt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new Tt(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof xt||t instanceof St||t instanceof Tt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t.decorators=[{type:H.w}],t.ctorParameters=function(){return[]},t}(),ae=(new H._2("5.0.3"),function(){function t(){}return t.decorators=[{type:H.q,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}()),ue=[ae,ft,yt,nt,it,lt,Y,ht,vt,ut,wt,Et,$t,ee,re,oe,Xt,Yt],ce=[jt,It,kt],le=[Vt,Bt,Zt,zt,Wt],pe=function(){function t(){}return t.decorators=[{type:H.E,args:[{declarations:ue,exports:ue}]}],t.ctorParameters=function(){return[]},t}(),he=function(){function t(){}return t.decorators=[{type:H.E,args:[{declarations:ce,providers:[at],exports:[pe,ce]}]}],t.ctorParameters=function(){return[]},t}();!function(){function t(){}t.decorators=[{type:H.E,args:[{declarations:[le],providers:[se,at],exports:[pe,le]}]}],t.ctorParameters=function(){return[]}}()},function(t,e,n){"use strict";var r=n(319);e.forkJoin=r.ForkJoinObservable.create},function(t,e,n){"use strict";var r=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)},i=n(20),o=n(126),s=n(120),a=n(128),u=n(129),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}e.c=r,n.d(e,"a",function(){return s}),e.b=i;var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n\n the source code of the demo\n
\n default:\n
\n \n
\n selected id: {{selectedId}}\n
\n checkbox:\n
\n \n
\n
\n draggable:\n
\n \n
\n
\n no dots:\n
\n \n
\n
\n large:\n
\n \n
\n
\n small:\n
\n \n
\n
\n dark theme:\n
\n \n
\n
\n node id:\n
\n \n
\n \n '}]}],t.ctorParameters=function(){return[]},t}()},function(t,e,n){"use strict";function r(t){void 0===t.state&&(t.state={}),void 0===t.state.opened&&(t.state.opened=!1),void 0===t.state.selected&&(t.state.selected=!1),void 0===t.state.disabled&&(t.state.disabled=!1),void 0===t.state.loading&&(t.state.loading=!1),void 0===t.state.highlighted&&(t.state.highlighted=!1),void 0===t.state.openable&&(t.state.openable=!1),void 0===t.state.dropPosition&&(t.state.dropPosition=0),void 0===t.state.dropAllowed&&(t.state.dropAllowed=!0),void 0===t.children&&(t.children=[]);for(var e=0,n=t.children;e0?i(r(t),9007199254740991):0}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),i=n(2),o=n(31),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(4),i=n(13),o=n(9),s=n(33)("src"),a=Function.toString,u=(""+a).split("toString");n(28).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,n){var r=n(31);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(6),i=n(32);t.exports=n(7)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(46),i=n(31);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(0),i=n(28),o=n(2);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(9),i=n(12),o=n(63)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(21),i=n(46),o=n(12),s=n(8),a=n(227);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,p=6==t,h=5==t||p,f=e||a;return function(e,a,d){for(var v,y,m=o(e),g=i(m),_=r(a,d,3),b=s(g.length),w=0,E=n?f(e,b):u?f(e,0):void 0;b>w;w++)if((h||w in g)&&(v=g[w],y=_(v,w,m),t))if(n)E[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:E.push(v)}else if(l)return!1;return p?-1:c||l?l:E}}},function(t,e,n){"use strict";var r=n(44),i=n(294),o=n(124),s=n(297),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e0?r:n)(t)}},function(t,e,n){var r=n(53),i=n(32),o=n(16),s=n(29),a=n(9),u=n(88),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";if(n(7)){var r=n(39),i=n(4),o=n(2),s=n(0),a=n(59),u=n(81),c=n(21),l=n(41),p=n(32),h=n(13),f=n(42),d=n(23),v=n(8),y=n(118),m=n(34),g=n(29),_=n(9),b=n(54),w=n(3),E=n(12),C=n(76),x=n(35),S=n(18),T=n(36).f,P=n(77),O=n(33),k=n(5),M=n(19),A=n(62),N=n(80),I=n(108),D=n(47),R=n(56),j=n(40),F=n(78),L=n(107),V=n(6),H=n(24),B=V.f,U=H.f,z=i.RangeError,q=i.TypeError,W=i.Uint8Array,G=Array.prototype,Z=u.ArrayBuffer,K=u.DataView,Q=M(0),$=M(2),X=M(3),J=M(4),Y=M(5),tt=M(6),et=A(!0),nt=A(!1),rt=I.values,it=I.keys,ot=I.entries,st=G.lastIndexOf,at=G.reduce,ut=G.reduceRight,ct=G.join,lt=G.sort,pt=G.slice,ht=G.toString,ft=G.toLocaleString,dt=k("iterator"),vt=k("toStringTag"),yt=O("typed_constructor"),mt=O("def_constructor"),gt=a.CONSTR,_t=a.TYPED,bt=a.VIEW,wt=M(1,function(t,e){return Tt(N(t,t[mt]),e)}),Et=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Ct=!!W&&!!W.prototype.set&&o(function(){new W(1).set({})}),xt=function(t,e){var n=d(t);if(n<0||n%e)throw z("Wrong offset!");return n},St=function(t){if(w(t)&&_t in t)return t;throw q(t+" is not a typed array!")},Tt=function(t,e){if(!(w(t)&&yt in t))throw q("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Ot(N(t,t[mt]),e)},Ot=function(t,e){for(var n=0,r=e.length,i=Tt(t,r);r>n;)i[n]=e[n++];return i},kt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,i,o,s,a=E(t),u=arguments.length,l=u>1?arguments[1]:void 0,p=void 0!==l,h=P(a);if(void 0!=h&&!C(h)){for(s=h.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(p&&u>2&&(l=c(l,arguments[2],2)),e=0,n=v(a.length),i=Tt(this,n);n>e;e++)i[e]=p?l(a[e],e):a[e];return i},At=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!W&&o(function(){ft.call(new W(1))}),It=function(){return ft.apply(Nt?pt.call(St(this)):St(this),arguments)},Dt={copyWithin:function(t,e){return L.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(St(this),arguments)},filter:function(t){return Pt(this,$(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Y(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(St(this),arguments)},lastIndexOf:function(t){return st.apply(St(this),arguments)},map:function(t){return wt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(St(this),arguments)},reduceRight:function(t){return ut.apply(St(this),arguments)},reverse:function(){for(var t,e=this,n=St(e).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return lt.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=m(t,r);return new(N(n,n[mt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-i))}},Rt=function(t,e){return Pt(this,pt.call(St(this),t,e))},jt=function(t){St(this);var e=xt(arguments[1],1),n=this.length,r=E(t),i=v(r.length),o=0;if(i+e>n)throw z("Wrong length!");for(;o255?255:255&r),i.v[f](n*e+i.o,r,Et)},k=function(t,e){B(t,e,{get:function(){return P(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};_?(d=n(function(t,n,r,i){l(t,d,c,"_d");var o,s,a,u,p=0,f=0;if(w(n)){if(!(n instanceof Z||"ArrayBuffer"==(u=b(n))||"SharedArrayBuffer"==u))return _t in n?Ot(d,n):Mt.call(d,n);o=n,f=xt(r,e);var m=n.byteLength;if(void 0===i){if(m%e)throw z("Wrong length!");if((s=m-f)<0)throw z("Wrong length!")}else if((s=v(i)*e)+f>m)throw z("Wrong length!");a=s/e}else a=y(n),s=a*e,o=new Z(s);for(h(t,"_d",{b:o,o:f,l:s,e:a,v:new K(o)});p ");else if("object"==typeof e){var r=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];r.push(i+":"+("string"==typeof o?JSON.stringify(o):l(o)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+t.replace(eo,"\n ")}function b(t,e){return new Error(_(t,e))}function w(t){return t[io]}function E(t){return t[oo]}function C(t){return t[so]||x}function x(t){for(var e=[],n=1;n-1)return e.push(t[n]),e;e.push(t[n])}return e}function P(t){if(t.length>1){return" ("+T(t.slice().reverse()).map(function(t){return l(t.token)}).join(" -> ")+")"}return""}function O(t,e,n,r){var i=[e],o=n(i),s=r?S(o,r):Error(o);return s.addKey=k,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[oo]=r,s}function k(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function M(t,e){return O(t,e,function(t){return"No provider for "+l(t[0].token)+"!"+P(t)})}function A(t,e){return O(t,e,function(t){return"Cannot instantiate cyclic dependency!"+P(t)})}function N(t,e,n,r){return O(t,r,function(t){var n=l(t[0].token);return e.message+": Error during instantiation of "+n+"!"+P(t)+"."},e)}function I(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function D(t,e){for(var n=[],r=0,i=e.length;r-1&&t.splice(n,1)}function wt(t,e){var n=fs.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);fs.set(t,e)}function Et(t){return t.reduce(function(t,e){var n=Array.isArray(e)?Et(e):e;return t.concat(n)},[])}function Ct(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function xt(t,e,n){t.childNodes.forEach(function(t){t instanceof Cs&&(e(t)&&n.push(t),xt(t,e,n))})}function St(t,e,n){t instanceof Cs&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Cs&&St(t,e,n)})}function Tt(t){return xs.get(t)||null}function Pt(t){xs.set(t.nativeNode,t)}function Ot(t){xs.delete(t.nativeNode)}function kt(t,e){var n=Mt(t),r=Mt(e);if(n&&r)return At(t,e,kt);var i=t&&("object"==typeof t||"function"==typeof t),o=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!o)||c(t,e)}function Mt(t){return!!It(t)&&(Array.isArray(t)||!(t instanceof Map)&&a()in t)}function At(t,e,n){for(var r=t[a()](),i=e[a()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}function Nt(t,e){if(Array.isArray(t))for(var n=0;n0&&Re(t,e,0,n)&&(f=!0),h>1&&Re(t,e,1,r)&&(f=!0),h>2&&Re(t,e,2,i)&&(f=!0),h>3&&Re(t,e,3,o)&&(f=!0),h>4&&Re(t,e,4,s)&&(f=!0),h>5&&Re(t,e,5,a)&&(f=!0),h>6&&Re(t,e,6,u)&&(f=!0),h>7&&Re(t,e,7,c)&&(f=!0),h>8&&Re(t,e,8,l)&&(f=!0),h>9&&Re(t,e,9,p)&&(f=!0),f}function De(t,e,n){for(var r=!1,i=0;i0?i[n-1]:null,r)}function Qe(t,e){var n=se(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),$e(e.parent.def,e.parentNodeDef)}}function $e(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function Xe(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,rn(n,e),Xs.dirtyParentQueries(r),en(r),r}function Je(t){if(16&t.state){var e=se(t);if(e){var n=e.template._projectedViews;n&&(rn(n,n.indexOf(t)),Xs.dirtyParentQueries(t))}}}function Ye(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];return rn(r,e),null==n&&(n=r.length),nn(r,n,i),Xs.dirtyParentQueries(i),en(i),tn(t,n>0?r[n-1]:null,i),i}function tn(t,e,n){var r=e?ue(e,e.def.lastRenderRootNode):t.renderElement;ge(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function en(t){ge(t,3,null,null,void 0)}function nn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function rn(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function on(t,e,n,r,i,o){return new pa(t,e,n,r,i,o)}function sn(t,e,n){return new fa(t,e,n)}function an(t){return new da(t)}function un(t,e){return new va(t,e)}function cn(t,e){return new ya(t,e)}function ln(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Ht(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Vt(t,n.nodeIndex).renderText;if(20240&n.flags)return Bt(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function pn(t){return new ma(t.renderer)}function hn(t,e,n,r){return new ga(t,e,n,r)}function fn(t,e,n,r,i,o,s,a){var u=[];if(s)for(var c in s){var l=s[c],p=l[0],h=l[1];u[p]={flags:8,name:c,nonMinifiedName:h,ns:null,securityContext:null,suffix:null}}var f=[];if(a)for(var d in a)f.push({type:1,propName:d,target:null,eventName:a[d]});return e|=16384,yn(t,e,n,r,i,i,o,u,f)}function dn(t,e,n){return t|=16,yn(-1,t,null,0,e,e,n)}function vn(t,e,n,r,i){return yn(-1,t,e,0,n,r,i)}function yn(t,e,n,r,i,o,s,a,u){var c=fe(n),l=c.matchedQueries,p=c.references,f=c.matchedQueryIds;u||(u=[]),a||(a=[]),o=h(o);var d=de(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:xe(a),outputs:u,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function mn(t,e){return Cn(t,e)}function gn(t,e){for(var n=t;n.parent&&!le(n);)n=n.parent;return xn(n.parent,ae(n),!0,e.provider.value,e.provider.deps)}function _n(t,e){var n=(32768&e.flags)>0,r=xn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i0&&te(t,e,0,n)&&(d=!0,v=On(t,h,e,0,n,v)),y>1&&te(t,e,1,r)&&(d=!0,v=On(t,h,e,1,r,v)),y>2&&te(t,e,2,i)&&(d=!0,v=On(t,h,e,2,i,v)),y>3&&te(t,e,3,o)&&(d=!0,v=On(t,h,e,3,o,v)),y>4&&te(t,e,4,s)&&(d=!0,v=On(t,h,e,4,s,v)),y>5&&te(t,e,5,a)&&(d=!0,v=On(t,h,e,5,a,v)),y>6&&te(t,e,6,u)&&(d=!0,v=On(t,h,e,6,u,v)),y>7&&te(t,e,7,c)&&(d=!0,v=On(t,h,e,7,c,v)),y>8&&te(t,e,8,l)&&(d=!0,v=On(t,h,e,8,l,v)),y>9&&te(t,e,9,p)&&(d=!0,v=On(t,h,e,9,p,v)),v&&f.ngOnChanges(v),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function En(t,e,n){for(var r=Bt(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a0,r=e.provider;switch(201347067&e.flags){case 512:return xn(t,e.parent,n,r.value,r.deps);case 1024:return Sn(t,e.parent,n,r.value,r.deps);case 2048:return Tn(t,e.parent,n,r.deps[0]);case 256:return r.value}}function xn(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Tn(t,e,n,i[0]));case 2:return new r(Tn(t,e,n,i[0]),Tn(t,e,n,i[1]));case 3:return new r(Tn(t,e,n,i[0]),Tn(t,e,n,i[1]),Tn(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a0&&ee(t,e,0,n)&&(f=!0),d>1&&ee(t,e,1,r)&&(f=!0),d>2&&ee(t,e,2,i)&&(f=!0),d>3&&ee(t,e,3,o)&&(f=!0),d>4&&ee(t,e,4,s)&&(f=!0),d>5&&ee(t,e,5,a)&&(f=!0),d>6&&ee(t,e,6,u)&&(f=!0),d>7&&ee(t,e,7,c)&&(f=!0),d>8&&ee(t,e,8,l)&&(f=!0),d>9&&ee(t,e,9,p)&&(f=!0),f){var v=Ut(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}function Gn(t,e,n){for(var r=e.bindings,i=!1,o=0;o0&&ee(t,e,0,n)&&(h=!0),d>1&&ee(t,e,1,r)&&(h=!0),d>2&&ee(t,e,2,i)&&(h=!0),d>3&&ee(t,e,3,o)&&(h=!0),d>4&&ee(t,e,4,s)&&(h=!0),d>5&&ee(t,e,5,a)&&(h=!0),d>6&&ee(t,e,6,u)&&(h=!0),d>7&&ee(t,e,7,c)&&(h=!0),d>8&&ee(t,e,8,l)&&(h=!0),d>9&&ee(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=Xn(n,f[0])),d>1&&(v+=Xn(r,f[1])),d>2&&(v+=Xn(i,f[2])),d>3&&(v+=Xn(o,f[3])),d>4&&(v+=Xn(s,f[4])),d>5&&(v+=Xn(a,f[5])),d>6&&(v+=Xn(u,f[6])),d>7&&(v+=Xn(c,f[7])),d>8&&(v+=Xn(l,f[8])),d>9&&(v+=Xn(p,f[9]));var y=Vt(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}function $n(t,e,n){for(var r=e.bindings,i=!1,o=0;o0)c=v,Yn(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_,l=c&&Yn(c)?c.renderParent:c}}var b=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Js,updateRenderer:r||Js,handleEvent:b,bindingCount:i,outputCount:o,lastRenderRootNode:f}}function Yn(t){return 0!=(1&t.flags)&&null===t.element.name}function tr(t,e,n){var r=e.element&&e.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 "+e.nodeIndex+"!")}if(20224&e.flags){if(0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!")}if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function er(t,e,n,r){var i=ir(t.root,t.renderer,t,e,n);return or(i,t.component,r),sr(i),i}function nr(t,e,n){var r=ir(t,t.renderer,null,null,e);return or(r,n,n),sr(r),r}function rr(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ir(t.root,i,t,e.element.componentProvider,n)}function ir(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s}}function or(t,e,n){t.component=e,t.context=n}function sr(t){var e;if(le(t)){var n=t.parentNodeDef;e=Ht(t.parent,n.parent.nodeIndex).renderElement}for(var r=t.def,i=t.nodes,o=0;o0&&ne(t,e,0,n),h>1&&ne(t,e,1,r),h>2&&ne(t,e,2,i),h>3&&ne(t,e,3,o),h>4&&ne(t,e,4,s),h>5&&ne(t,e,5,a),h>6&&ne(t,e,6,u),h>7&&ne(t,e,7,c),h>8&&ne(t,e,8,l),h>9&&ne(t,e,9,p)}function vr(t,e,n){for(var r=0;r=this._providers.length)throw R(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw A(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+l(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.decorators=[{type:Ii}],t.ctorParameters=function(){return[{type:Wi}]},t}(),as=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ht(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new si.Observable(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),c=new si.Observable(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Qo.assertNotInAngularZone(),u(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Qo.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(ai.merge)(a,ui.share.call(c))}return t.prototype.bootstrap=function(t,e){var n=this;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.");var r;r=t instanceof Fo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(r.componentType);var i=r instanceof Uo?null:this._injector.get(zo),o=e||r.selector,s=r.create(Wi.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(Jo,null);return a&&s.injector.get(Yo).registerApplication(s.location.nativeElement,a),this._loadComponent(s),ht()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Zo(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;bt(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Mo,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),bt(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Go("ApplicationRef#tick()"),t.decorators=[{type:Ii}],t.ctorParameters=function(){return[{type:Qo},{type:No},{type:Wi},{type:ao},{type:Ho},{type:So}]},t}(),us=(function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),function(){function t(){}}(),function(){function t(){}return t}()),cs=(new li("Renderer2Interceptor"),function(){function t(){}}(),function(){function t(){}return t}()),ls={Important:1,DashCase:2};ls[ls.Important]="Important",ls[ls.DashCase]="DashCase";var ps=function(){function t(){}return t}(),hs=function(){function t(t){this.nativeElement=t}return t}(),fs=(function(){function t(){}}(),new Map),ds=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Ko}return Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[a()]=function(){return this._results[a()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=Et(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),vs=function(){function t(){}return t}(),ys={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ms=(function(){function t(t,e){this._compiler=t,this._config=e||ys}t.prototype.load=function(t){return this._compiler instanceof Io?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n(131)(i).then(function(t){return t[o]}).then(function(t){return Ct(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n(131)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Ct(t,r,i)})},t.decorators=[{type:Ii}],t.ctorParameters=function(){return[{type:Io},{type:vs,decorators:[{type:Ni}]}]}}(),function(){function t(){}return t}()),gs=function(){function t(){}return t}(),_s=function(){function t(){}return t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(oi.b)(e,t),e}(_s),ws=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(oi.b)(e,t)}(bs),function(){function t(t,e){this.name=t,this.callback=e}return t}()),Es=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cs?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Cs=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(oi.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return xt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return St(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Es),xs=new Map,Ss=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ts=(function(){function t(){this.hasWrappedValue=!1}t.prototype.unwrap=function(t){return t instanceof Ss?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1}}(),function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}()),Ps=function(){function t(){}return t.prototype.supports=function(t){return Mt(t)},t.prototype.create=function(t){return new ks(t)},t}(),Os=function(t,e){return e},ks=function(){function t(t){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=t||Os}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex=0;e--){var n=Xe(this._data,e);Xs.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new da(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Uo||(i=o.get(zo));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return Ke(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return Ye(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Xe(this._data,t);e&&Xs.destroyView(e)},t.prototype.detach=function(t){var e=Xe(this._data,t);return e?new da(e):null},t}(),da=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return me(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){re(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),Xs.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){Xs.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Xs.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,en(this._view),Xs.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),va=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(oi.b)(e,t),e.prototype.createEmbeddedView=function(t){return new da(Xs.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new hs(Ht(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(ms),ya=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Wi.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Xs.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:$t(t)},e)},t}(),ma=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Ce(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;ndocument.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(90),i=n(64).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";var r=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)},i=n(119),o=n(60),s=n(123),a=n(83),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var a,u=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(u=Object.create(n),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},function(t,e,n){var r=n(6).f,i=n(9),o=n(5)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports=!1},function(t,e,n){"use strict";var r=n(4),i=n(6),o=n(7),s=n(5)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=n||i||r;e.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n(82))},function(t,e,n){var r=n(90),i=n(64);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(5)("unscopables"),i=Array.prototype;void 0==i[r]&&n(13)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(21),i=n(104),o=n(76),s=n(1),a=n(8),u=n(77),c={},l={},e=t.exports=function(t,e,n,p,h){var f,d,v,y,m=h?function(){return t}:u(t),g=r(n,p,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(f=a(t.length);f>_;_++)if((y=e?g(s(d=t[_])[0],d[1]):g(t[_]))===c||y===l)return y}else for(v=m.call(t);!(d=v.next()).done;)if((y=i(v,g,d.value,e))===c||y===l)return y};e.BREAK=c,e.RETURN=l},function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}e.b=r,n.d(e,"a",function(){return o});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o=Object.assign||function(t){for(var e,n=1,r=arguments.length;nl;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(51)("keys"),i=n(33);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(3),i=n(1),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(21)(Function.call,n(24).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(3),i=n(67).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){"use strict";var r=n(39),i=n(0),o=n(11),s=n(13),a=n(9),u=n(47),c=n(103),l=n(38),p=n(18),h=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){c(n,e,v);var _,b,w,E=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",x="values"==y,S=!1,T=t.prototype,P=T[h]||T["@@iterator"]||y&&T[y],O=P||E(y),k=y?x?E("entries"):O:void 0,M="Array"==e?T.entries||P:P;if(M&&(w=p(M.call(new t)))!==Object.prototype&&w.next&&(l(w,C,!0),r||a(w,h)||s(w,h,d)),x&&P&&"values"!==P.name&&(S=!0,O=function(){return P.call(this)}),r&&!g||!f&&!S&&T[h]||s(T,h,O),u[e]=O,u[C]=d,y)if(_={values:x?O:E("values"),keys:m?O:E("keys"),entries:k},g)for(b in _)b in T||o(T,b,_[b]);else i(i.P+i.F*(f||S),e,_);return _}},function(t,e,n){var r=n(74),i=n(31);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(3),i=n(22),o=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(47),i=n(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(54),i=n(5)("iterator"),o=n(47);t.exports=n(28).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(12),i=n(34),o=n(8);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var r=n(1);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(1),i=n(15),o=n(5)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},function(t,e,n){"use strict";function r(t,e,n){var r,i,o,s=Array(n),a=8*n-e-1,u=(1<>1,l=23===e?L(2,-24)-L(2,-77):0,p=0,h=t<0||0===t&&1/t<0?1:0;for(t=F(t),t!=t||t===R?(i=t!=t?1:0,r=u):(r=V(H(t)/B),t*(o=L(2,-r))<1&&(r--,o*=2),t+=r+c>=1?l/o:l*L(2,1-c),t*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*L(2,e),r+=c):(i=t*L(2,c-1)*L(2,e),r=0));e>=8;s[p++]=255&i,i/=256,e-=8);for(r=r<0;s[p++]=255&r,r/=256,a-=8);return s[--p]|=128*h,s}function i(t,e,n){var r,i=8*n-e-1,o=(1<>1,a=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;a>0;l=256*l+t[u],u--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=e;a>0;r=256*r+t[u],u--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:c?-R:R;r+=L(2,e),l-=s}return(c?-1:1)*r*L(2,l-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function s(t){return[255&t]}function a(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function c(t){return r(t,52,8)}function l(t){return r(t,23,4)}function p(t,e,n){T(t[k],e,{get:function(){return this[n]}})}function h(t,e,n,r){var i=+n,o=x(i);if(o+e>t[z])throw D(M);var s=t[U]._b,a=o+t[q],u=s.slice(a,a+e);return r?u:u.reverse()}function f(t,e,n,r,i,o){var s=+n,a=x(s);if(a+e>t[z])throw D(M);for(var u=t[U]._b,c=a+t[q],l=r(+i),p=0;pK;)(W=Z[K++])in A||g(A,W,j[W]);y||(G.constructor=A)}var Q=new N(new A(2)),$=N[k].setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||_(N[k],{setInt8:function(t,e){$.call(this,t,e<<24>>24)},setUint8:function(t,e){$.call(this,t,e<<24>>24)}},!0)}else A=function(t){w(this,A,"ArrayBuffer");var e=x(t);this._b=P.call(Array(e),0),this[z]=e},N=function(t,e,n){w(this,N,"DataView"),w(t,A,"DataView");var r=t[z],i=E(e);if(i<0||i>r)throw D("Wrong offset!");if(n=void 0===n?r-i:C(n),i+n>r)throw D("Wrong length!");this[U]=t,this[q]=i,this[z]=n},v&&(p(A,"byteLength","_l"),p(N,"buffer","_b"),p(N,"byteLength","_l"),p(N,"byteOffset","_o")),_(N[k],{getInt8:function(t){return h(this,1,t)[0]<<24>>24},getUint8:function(t){return h(this,1,t)[0]},getInt16:function(t){var e=h(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=h(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return o(h(this,4,t,arguments[1]))},getUint32:function(t){return o(h(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(h(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(h(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){f(this,1,t,s,e)},setUint8:function(t,e){f(this,1,t,s,e)},setInt16:function(t,e){f(this,2,t,a,e,arguments[2])},setUint16:function(t,e){f(this,2,t,a,e,arguments[2])},setInt32:function(t,e){f(this,4,t,u,e,arguments[2])},setUint32:function(t,e){f(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){f(this,4,t,l,e,arguments[2])},setFloat64:function(t,e){f(this,8,t,c,e,arguments[2])}});O(A,"ArrayBuffer"),O(N,"DataView"),g(N[k],m.VIEW,!0),e.ArrayBuffer=A,e.DataView=N},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(44),i=r.root.Symbol;e.rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},function(t,e,n){"use strict";var r=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)},i=n(20),o=n(37),s=n(60),a=n(314),u=n(315),c=n(83),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function b(t){var e=t.split(":");return{hours:+e[0],minutes:+e[1]}}function w(t){var e=t.toLowerCase().replace(/_/g,"-"),n=bt[e];if(n)return n;var r=e.split("-")[0];if(n=bt[r])return n;if("en"===r)return _t;throw new Error('Missing locale data for the locale "'+t+'".')}function E(t,e){var n=gt[t]||{},r=n[0]||t;return"wide"===e?r:n[1]||r}function C(t,e,n,r){var i="="+t;if(e.indexOf(i)>-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function x(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?Et.One:Et.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?Et.One:Et.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?Et.One:Et.Other;case"ar":return 0===n?Et.Zero:1===n?Et.One:2===n?Et.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?Et.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?Et.Many:Et.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?Et.One:Et.Other;case"be":return n%10==1&&n%100!=11?Et.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?Et.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?Et.Many:Et.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?Et.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?Et.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?Et.Few:0!==n&&n%1e6==0?Et.Many:Et.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?Et.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?Et.Few:Et.Other;case"cs":case"sk":return 1===i&&0===o?Et.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?Et.Few:0!==o?Et.Many:Et.Other;case"cy":return 0===n?Et.Zero:1===n?Et.One:2===n?Et.Two:3===n?Et.Few:6===n?Et.Many:Et.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?Et.One:Et.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?Et.One:0===o&&i%100==2||s%100==2?Et.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?Et.Few:Et.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?Et.One:Et.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?Et.One:Et.Other;case"ga":return 1===n?Et.One:2===n?Et.Two:n===Math.floor(n)&&n>=3&&n<=6?Et.Few:n===Math.floor(n)&&n>=7&&n<=10?Et.Many:Et.Other;case"gd":return 1===n||11===n?Et.One:2===n||12===n?Et.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?Et.Few:Et.Other;case"gv":return 0===o&&i%10==1?Et.One:0===o&&i%10==2?Et.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?Et.Many:Et.Other:Et.Few;case"he":return 1===i&&0===o?Et.One:2===i&&0===o?Et.Two:0!==o||n>=0&&n<=10||n%10!=0?Et.Other:Et.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?Et.One:Et.Other;case"ksh":return 0===n?Et.Zero:1===n?Et.One:Et.Other;case"kw":case"naq":case"se":case"smn":return 1===n?Et.One:2===n?Et.Two:Et.Other;case"lag":return 0===n?Et.Zero:0!==i&&1!==i||0===n?Et.Other:Et.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?Et.Few:0!==s?Et.Many:Et.Other:Et.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?Et.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?Et.One:Et.Other;case"mk":return 0===o&&i%10==1||s%10==1?Et.One:Et.Other;case"mt":return 1===n?Et.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?Et.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?Et.Many:Et.Other;case"pl":return 1===i&&0===o?Et.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Et.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?Et.Many:Et.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?Et.One:Et.Other;case"ro":return 1===i&&0===o?Et.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?Et.Few:Et.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?Et.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Et.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?Et.Many:Et.Other;case"shi":return 0===i||1===n?Et.One:n===Math.floor(n)&&n>=2&&n<=10?Et.Few:Et.Other;case"si":return 0===n||1===n||0===i&&1===s?Et.One:Et.Other;case"sl":return 0===o&&i%100==1?Et.One:0===o&&i%100==2?Et.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?Et.Few:Et.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?Et.One:Et.Other;default:return Et.Other}}function S(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n0||a>-n)&&(a+=n),t===$t.Hours&&0===a&&-12===n&&(a=12),M(a,e,f(s,Tt.MinusSign),r,i)}}function N(t,e,n){switch(t){case $t.FullYear:return e.getFullYear();case $t.Month:return e.getMonth();case $t.Date:return e.getDate();case $t.Hours:return e.getHours();case $t.Minutes:return e.getMinutes();case $t.Seconds:return e.getSeconds();case $t.Milliseconds:var r=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/r);case $t.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}function I(t,e,n,r){return void 0===n&&(n=Ct.Format),void 0===r&&(r=!1),function(i,o){return D(i,o,t,e,n,r)}}function D(t,e,n,r,i,o){switch(n){case Xt.Months:return u(e,i,r)[t.getMonth()];case Xt.Days:return a(e,i,r)[t.getDay()];case Xt.DayPeriods:var l=t.getHours(),p=t.getMinutes();if(o){var h,f=m(e),d=g(e,i,r);if(f.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,o=t[1],s=o.hours,a=o.minutes;l>=r&&p>=i&&(l0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Qt.Short:return(i>=0?"+":"")+M(s,2,o)+M(Math.abs(i%60),2,o);case Qt.ShortGMT:return"GMT"+(i>=0?"+":"")+M(s,1,o);case Qt.Long:return"GMT"+(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);case Qt.Extended:return 0===r?"Z":(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}function j(t){var e=new Date(t,Jt,1).getDay();return new Date(t,0,1+(e<=Yt?Yt:Yt+7)-e)}function F(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(Yt-t.getDay()))}function L(t,e){return void 0===e&&(e=!1),function(n,r){var i;if(e){var o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{var a=j(n.getFullYear()),u=F(n),c=u.getTime()-a.getTime();i=1+Math.round(c/6048e5)}return M(i,t,f(r,Tt.MinusSign))}}function V(t){if(te[t])return te[t];var e;switch(t){case"G":case"GG":case"GGG":e=I(Xt.Eras,xt.Abbreviated);break;case"GGGG":e=I(Xt.Eras,xt.Wide);break;case"GGGGG":e=I(Xt.Eras,xt.Narrow);break;case"y":e=A($t.FullYear,1,0,!1,!0);break;case"yy":e=A($t.FullYear,2,0,!0,!0);break;case"yyy":e=A($t.FullYear,3,0,!1,!0);break;case"yyyy":e=A($t.FullYear,4,0,!1,!0);break;case"M":case"L":e=A($t.Month,1,1);break;case"MM":case"LL":e=A($t.Month,2,1);break;case"MMM":e=I(Xt.Months,xt.Abbreviated);break;case"MMMM":e=I(Xt.Months,xt.Wide);break;case"MMMMM":e=I(Xt.Months,xt.Narrow);break;case"LLL":e=I(Xt.Months,xt.Abbreviated,Ct.Standalone);break;case"LLLL":e=I(Xt.Months,xt.Wide,Ct.Standalone);break;case"LLLLL":e=I(Xt.Months,xt.Narrow,Ct.Standalone);break;case"w":e=L(1);break;case"ww":e=L(2);break;case"W":e=L(1,!0);break;case"d":e=A($t.Date,1);break;case"dd":e=A($t.Date,2);break;case"E":case"EE":case"EEE":e=I(Xt.Days,xt.Abbreviated);break;case"EEEE":e=I(Xt.Days,xt.Wide);break;case"EEEEE":e=I(Xt.Days,xt.Narrow);break;case"EEEEEE":e=I(Xt.Days,xt.Short);break;case"a":case"aa":case"aaa":e=I(Xt.DayPeriods,xt.Abbreviated);break;case"aaaa":e=I(Xt.DayPeriods,xt.Wide);break;case"aaaaa":e=I(Xt.DayPeriods,xt.Narrow);break;case"b":case"bb":case"bbb":e=I(Xt.DayPeriods,xt.Abbreviated,Ct.Standalone,!0);break;case"bbbb":e=I(Xt.DayPeriods,xt.Wide,Ct.Standalone,!0);break;case"bbbbb":e=I(Xt.DayPeriods,xt.Narrow,Ct.Standalone,!0);break;case"B":case"BB":case"BBB":e=I(Xt.DayPeriods,xt.Abbreviated,Ct.Format,!0);break;case"BBBB":e=I(Xt.DayPeriods,xt.Wide,Ct.Format,!0);break;case"BBBBB":e=I(Xt.DayPeriods,xt.Narrow,Ct.Format,!0);break;case"h":e=A($t.Hours,1,-12);break;case"hh":e=A($t.Hours,2,-12);break;case"H":e=A($t.Hours,1);break;case"HH":e=A($t.Hours,2);break;case"m":e=A($t.Minutes,1);break;case"mm":e=A($t.Minutes,2);break;case"s":e=A($t.Seconds,1);break;case"ss":e=A($t.Seconds,2);break;case"S":e=A($t.Milliseconds,1);break;case"SS":e=A($t.Milliseconds,2);break;case"SSS":e=A($t.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=R(Qt.Short);break;case"ZZZZZ":e=R(Qt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=R(Qt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=R(Qt.Long);break;default:return null}return te[t]=e,e}function H(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function B(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function U(t,e,n){var r=n?-1:1,i=t.getTimezoneOffset();return B(t,r*(H(e,i)-i))}function z(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(ht._42)(t)+"'")}function q(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=+(t[9]+t[10]),r=+(t[9]+t[11])),i.call(e,+t[1],+t[2]-1,+t[3]);var s=+(t[4]||"0")-n,a=+(t[5]||"0")-r,u=+(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function W(t){return t instanceof Date&&!isNaN(t.valueOf())}function G(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function Z(t){return function(e,n){return t(e,n).split(" ")[0]}}function K(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function Q(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=K(t,n,e);return r?r.substring(3):""}}function $(t,e){return t.hour12=e,t}function X(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function J(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function Y(t){return t.reduce(function(t,e){return Object(ft.a)({},t,e)},{})}function tt(t){return function(e,n){return K(e,n,t)}}function et(t,e,n){var r=oe[t];if(r)return r(e,n);var i=t,o=ae.get(i);if(!o){o=[];var s=void 0;ie.exec(t);for(var a=t;a;)s=ie.exec(a),s?(o=o.concat(s.slice(1)),a=o.pop()):(o.push(a),a=null);ae.set(i,o)}return o.reduce(function(t,r){var i=se[r];return t+(i?i(e,n):nt(r))},"")}function nt(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}function it(t,e,n,r,i){void 0===i&&(i=null);var o,s={str:null},a=d(e,n);if("string"!=typeof t||isNaN(+t-parseFloat(t))){if("number"!=typeof t)return s.error=t+" is not a number",s;o=t}else o=+t;n===wt.Percent&&(o*=100);var u=Math.abs(o)+"",c=ot(a,f(e,Tt.MinusSign)),l="",p=!1;if(isFinite(o)){var h=st(u),v=c.minInt,y=c.minFrac,m=c.maxFrac;if(r){var g=r.match(le);if(null===g)return s.error=r+" is not a valid digit info",s;var _=g[1],b=g[3],w=g[5];null!=_&&(v=ut(_)),null!=b&&(y=ut(b)),null!=w?m=ut(w):null!=b&&y>m&&(m=y)}at(h,y,m);var E=h.digits,C=h.integerLen,x=h.exponent,S=[];for(p=E.every(function(t){return!t});C0?S=E.splice(C,E.length):(S=E,E=[0]);var T=[];for(E.length>=c.lgSize&&T.unshift(E.splice(-c.lgSize,E.length).join(""));E.length>c.gSize;)T.unshift(E.splice(-c.gSize,E.length).join(""));E.length&&T.unshift(E.join(""));var P=i?Tt.CurrencyGroup:Tt.Group;if(l=T.join(f(e,P)),S.length){l+=f(e,i?Tt.CurrencyDecimal:Tt.Decimal)+S.join("")}x&&(l+=f(e,Tt.Exponential)+"+"+x)}else l=f(e,Tt.Infinity);return l=o<0&&!p?c.negPre+l+c.negSuf:c.posPre+l+c.posSuf,n===wt.Currency&&null!==i?(s.str=l.replace(me,i).replace(me,""),s):n===wt.Percent?(s.str=l.replace(new RegExp(ge,"g"),f(e,Tt.PercentSign)),s):(s.str=l,s)}function ot(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(de),i=r[0],o=r[1],s=-1!==i.indexOf(he)?i.split(he):[i.substring(0,i.lastIndexOf(fe)+1),i.substring(i.lastIndexOf(fe)+1)],a=s[0],u=s[1]||"";n.posPre=a.substr(0,a.indexOf(ye));for(var c=0;c-1&&(t=t.replace(he,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)===fe;r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===fe;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>pe&&(e=e.splice(0,pe-1),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}function at(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(var u=s;u=5)if(s-1<0){for(var l=0;l>s;l--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=mt.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.decorators=[{type:ht.w}],e.ctorParameters=function(){return[{type:dt},{type:void 0,decorators:[{type:ht.J},{type:ht.v,args:[yt]}]}]}}(vt),function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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.");return r._baseHref=n,r}Object(ft.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return mt.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+mt.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+mt.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.decorators=[{type:ht.w}],e.ctorParameters=function(){return[{type:dt},{type:void 0,decorators:[{type:ht.J},{type:ht.v,args:[yt]}]}]}}(vt),{AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"৳"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"р."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN¥","¥"],COP:[,"$"],CRC:[,"₡"],CUC:[,"$"],CUP:[,"$"],CZK:[,"Kč"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E£"],ESP:[,"₧"],EUR:["€"],FJD:[,"$"],FKP:[,"£"],GBP:["£"],GEL:[,"₾"],GIP:[,"£"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["₪"],INR:["₹"],ISK:[,"kr"],JMD:[,"$"],JPY:["¥"],KHR:[,"៛"],KMF:[,"CF"],KPW:[,"₩"],KRW:["₩"],KYD:[,"$"],KZT:[,"₸"],LAK:[,"₭"],LBP:[,"L£"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"₮"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"₦"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"₱"],PKR:[,"Rs"],PLN:[,"zł"],PYG:[,"₲"],RON:[,"lei"],RUB:[,"₽"],RUR:[,"р."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"£"],SRD:[,"$"],SSP:[,"£"],STD:[,"Db"],SYP:[,"£"],THB:[,"฿"],TOP:[,"T$"],TRY:[,"₺"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"₴"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["₫"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]}),_t=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["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"]],,[["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"]],,[["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}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],bt={},wt={Decimal:0,Percent:1,Currency:2,Scientific:3};wt[wt.Decimal]="Decimal",wt[wt.Percent]="Percent",wt[wt.Currency]="Currency",wt[wt.Scientific]="Scientific";var Et={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};Et[Et.Zero]="Zero",Et[Et.One]="One",Et[Et.Two]="Two",Et[Et.Few]="Few",Et[Et.Many]="Many",Et[Et.Other]="Other";var Ct={Format:0,Standalone:1};Ct[Ct.Format]="Format",Ct[Ct.Standalone]="Standalone";var xt={Narrow:0,Abbreviated:1,Wide:2,Short:3};xt[xt.Narrow]="Narrow",xt[xt.Abbreviated]="Abbreviated",xt[xt.Wide]="Wide",xt[xt.Short]="Short";var St={Short:0,Medium:1,Long:2,Full:3};St[St.Short]="Short",St[St.Medium]="Medium",St[St.Long]="Long",St[St.Full]="Full";var Tt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Tt[Tt.Decimal]="Decimal",Tt[Tt.Group]="Group",Tt[Tt.List]="List",Tt[Tt.PercentSign]="PercentSign",Tt[Tt.PlusSign]="PlusSign",Tt[Tt.MinusSign]="MinusSign",Tt[Tt.Exponential]="Exponential",Tt[Tt.SuperscriptingExponent]="SuperscriptingExponent",Tt[Tt.PerMille]="PerMille",Tt[Tt.Infinity]="Infinity",Tt[Tt.NaN]="NaN",Tt[Tt.TimeSeparator]="TimeSeparator",Tt[Tt.CurrencyDecimal]="CurrencyDecimal",Tt[Tt.CurrencyGroup]="CurrencyGroup";var Pt={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};Pt[Pt.Sunday]="Sunday",Pt[Pt.Monday]="Monday",Pt[Pt.Tuesday]="Tuesday",Pt[Pt.Wednesday]="Wednesday",Pt[Pt.Thursday]="Thursday",Pt[Pt.Friday]="Friday",Pt[Pt.Saturday]="Saturday";var Ot=new ht.x("UseV4Plurals"),kt=function(){function t(){}return t}(),Mt=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(ft.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):v(e||this.locale)(t)){case Et.Zero:return"zero";case Et.One:return"one";case Et.Two:return"two";case Et.Few:return"few";case Et.Many:return"many";default:return"other"}},e.decorators=[{type:ht.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:ht.v,args:[ht.C]}]},{type:void 0,decorators:[{type:ht.J},{type:ht.v,args:[Ot]}]}]},e}(kt),At=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(ht._27)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(ht._42)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t.decorators=[{type:ht.q,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:ht.A},{type:ht.B},{type:ht.r},{type:ht.R}]},t.propDecorators={klass:[{type:ht.z,args:["class"]}],ngClass:[{type:ht.z}]},t}(),Nt=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(ht.G);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(ht.o),i=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.decorators=[{type:ht.q,args:[{selector:"[ngComponentOutlet]"}]}],t.ctorParameters=function(){return[{type:ht._3}]},t.propDecorators={ngComponentOutlet:[{type:ht.z}],ngComponentOutletInjector:[{type:ht.z}],ngComponentOutletContent:[{type:ht.z}],ngComponentOutletNgModuleFactory:[{type:ht.z}]},t}(),It=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Dt=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(ht._10)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+T(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new It(null,e.ngForOf,-1,-1),i),s=new Rt(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new Rt(t,o);n.push(s)}});for(var r=0;r/g,">")}function S(t){zt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||zt.removeAttribute(t,n)});for(var e=0,n=zt.childNodesAsList(t);e"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}function I(t,e){var n=t.getElementById(e+"-state"),r={};if(n&&n.textContent)try{r=JSON.parse(N(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return _e.init(r)}n.d(e,"a",function(){return ye}),n.d(e,"b",function(){return de}),n.d(e,"c",function(){return r});var D,R=n(85),j=n(27),F=n(50),L=null,V=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),H=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[s]=[]);var c=Tt(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:c,handler:o});else{for(var l=!1,p=0;p-1},e.decorators=[{type:j.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.v,args:[K]}]},{type:At,decorators:[{type:j.v,args:[Mt]}]}]},e}(at),It=["alt","control","meta","shift"],Dt=function(t){return t.altKey},Rt=function(t){return t.ctrlKey},jt=function(t){return t.metaKey},Ft=function(t){return t.shiftKey},Lt={alt:Dt,control:Rt,meta:jt,shift:Ft},Vt=function(t){function e(e){return t.call(this,e)||this}return Object(F.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(It.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),It.forEach(function(r){if(r!=n){(0,Lt[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:j.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.v,args:[K]}]}]},e}(at),Ht=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Bt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ut=null,zt=null,qt=w("area,br,col,hr,img,wbr"),Wt=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gt=w("rp,rt"),Zt=E(Gt,Wt),Kt=E(Wt,w("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")),Qt=E(Gt,w("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")),$t=E(qt,Kt,Qt,Zt),Xt=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jt=w("srcset"),Yt=w("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"),te=E(Xt,Jt,Yt),ee=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(zt.isElementNode(e)?this.startElement(e):zt.isTextNode(e)?this.chars(zt.nodeValue(e)):this.sanitizedSomething=!0,zt.firstChild(e))e=zt.firstChild(e);else for(;e;){zt.isElementNode(e)&&this.endElement(e);var n=C(e,zt.nextSibling(e));if(n){e=n;break}e=C(e,zt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=zt.nodeName(t).toLowerCase();if(!$t.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),zt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!te.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Xt[r]&&(t=g(t)),Jt[r]&&(t=_(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=zt.nodeName(t).toLowerCase();$t.hasOwnProperty(e)&&!qt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),ne=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,re=/([^\#-~ |!])/g,ie=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),oe=/^url\(([^)]+)\)$/,se=function(){function t(){}return t}(),ae=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(F.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case j.V.NONE:return e;case j.V.HTML:return e instanceof ce?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case j.V.STYLE:return e instanceof le?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case j.V.SCRIPT:if(e instanceof pe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case j.V.URL:return e instanceof fe||e instanceof he?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case j.V.RESOURCE_URL:if(e instanceof fe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ue)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new ce(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new le(t)},e.prototype.bypassSecurityTrustScript=function(t){return new pe(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new he(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new fe(t)},e.decorators=[{type:j.w}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.v,args:[K]}]}]},e}(se),ue=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ue),le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ue),pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ue),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ue),fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(F.b)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ue),de=[{provide:j.M,useValue:R.d},{provide:j.N,useValue:k,multi:!0},{provide:R.c,useClass:Q,deps:[K]},{provide:K,useFactory:A,deps:[]}],ve=[{provide:j.U,useExisting:se},{provide:se,useClass:ae,deps:[K]}],ye=(Object(j._6)(j._11,"browser",de),function(){function t(t){if(t)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.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:j.b,useValue:e.appId},{provide:X,useExisting:j.b},J]}},t.decorators=[{type:j.E,args:[{providers:[ve,{provide:j.s,useFactory:M,deps:[]},{provide:ot,useClass:Ot,multi:!0},{provide:ot,useClass:Vt,multi:!0},{provide:ot,useClass:Nt,multi:!0},{provide:Mt,useClass:At},dt,{provide:j.S,useExisting:dt},{provide:ut,useExisting:ct},ct,j._1,st,it,$,tt],exports:[R.a,j.e]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:j.J},{type:j.X}]}]},t}()),me="undefined"!=typeof window&&window||{},ge=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),_e=(function(){function t(t){this.appRef=t.injector.get(j.f)}t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=me.console.profile;e&&n&&me.console.profile("Change Detection");for(var i=r().performanceNow(),o=0;o<5||r().performanceNow()-i<500;)this.appRef.tick(),o++;var s=r().performanceNow();e&&n&&me.console.profileEnd("Change Detection");var a=(s-i)/o;return me.console.log("ran "+o+" change detection cycles"),me.console.log(a.toFixed(2)+" ms per check"),new ge(a,o)}}(),function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return this.store[t]||e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:j.w}],t.ctorParameters=function(){return[]},t}());(function(){function t(){}t.decorators=[{type:j.E,args:[{providers:[{provide:_e,useFactory:I,deps:[K,j.b]}]}]}],t.ctorParameters=function(){return[]}})(),function(){function t(){}t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}}}(),new j._2("5.0.3")},function(t,e,n){"use strict";function r(t){var e=["tree-container-ul","tree-children"];return t&&e.push("tree-no-dots"),e.join(" ")}function i(t,e){var n=["tree-node"];return t.state.openable||t.children.length>0?(t.state.opened?n.push("tree-open"):n.push("tree-closed"),t.state.loading&&n.push("tree-loading")):n.push("tree-leaf"),e&&n.push("tree-last"),n.join(" ")}function o(t,e,n){var r=["tree-anchor","tree-relative","tree-anchor-"+n.join("-")];return t.state.selected&&r.push("tree-clicked"),t.state.disabled&&r.push("tree-disabled"),t.state.highlighted&&r.push("tree-search"),e&&r.push("tree-hovered"),r.join(" ")}function s(t,e){var n=["tree-icon","tree-checkbox","tree-checkbox-"+e.join("-")];return t.children&&t.children.some(function(t){return t.state.selected})&&t.children.some(function(t){return!t.state.selected})&&n.push("tree-undetermined"),n.join(" ")}function a(t,e,n){void 0===n&&(n="default");var r=["tree"];return e?r.push("tree-"+n+"-"+e):r.push("tree-"+n),t&&r.push("tree-checkbox-selection","tree-checkbox-no-clicked"),r.join(" ")}function u(t){var e=["tree-icon","tree-themeicon"];return t&&e.push(t,"tree-themeicon-custom"),e.join(" ")}function c(t){return["tree-icon","tree-ocl","tree-ocl-"+t.join("-")].join(" ")}function l(t){var e=["tree-marker-"+t.state.dropPosition];return t.state.dropAllowed?e.push("allowed"):e.push("not-allowed"),e.join(" ")}function p(t,e){for(var n=null,r=0,i=e;r2*n/3?3:2}function f(t){if(t.state.dropPosition&&(t.state.dropPosition=0),t.children)for(var e=0,n=t.children;eu;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(6),i=n(1),o=n(45);t.exports=n(7)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(16),i=n(36).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,e,n){"use strict";var r=n(45),i=n(52),o=n(53),s=n(12),a=n(46),u=Object.assign;t.exports=!u||n(2)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,l=i.f,p=o.f;u>c;)for(var h,f=a(arguments[c++]),d=l?r(f).concat(l(f)):r(f),v=d.length,y=0;v>y;)p.call(f,h=d[y++])&&(n[h]=f[h]);return n}:u},function(t,e,n){"use strict";var r=n(15),i=n(3),o=n(95),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i>>0||(s.test(n)?16:10))}:r},function(t,e,n){var r=n(4).parseFloat,i=n(55).trim;t.exports=1/r(n(68)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(22);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(23),i=n(31);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(3),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(23),i=n(31);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(35),i=n(32),o=n(38),s={};n(13)(s,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(1);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(6),i=n(32);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(15),i=n(12),o=n(46),s=n(8);t.exports=function(t,e,n,a,u){r(e);var c=i(t),l=o(c),p=s(c.length),h=u?p-1:0,f=u?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=f;break}if(h+=f,u?h<0:p<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:p>h;h+=f)h in l&&(a=e(a,l[h],h,c));return a}},function(t,e,n){"use strict";var r=n(12),i=n(34),o=n(8);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),p=1;for(u0;)u in n?n[a]=n[u]:delete n[a],a+=p,u+=p;return n}},function(t,e,n){"use strict";var r=n(48),i=n(109),o=n(47),s=n(16);t.exports=n(72)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){n(7)&&"g"!=/./g.flags&&n(6).f(RegExp.prototype,"flags",{configurable:!0,get:n(79)})},function(t,e,n){var r,i,o,s=n(21),a=n(95),u=n(66),c=n(61),l=n(4),p=l.process,h=l.setImmediate,f=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){g.call(t.data)};h&&f||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){a("function"==typeof t?t:Function(t),e)},r(y),y},f=function(t){delete m[t]},"process"==n(22)(p)?r=function(t){p.nextTick(s(g,t,1))}:v&&v.now?r=function(t){v.now(s(g,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(s(g,t,1),0)}),t.exports={set:h,clear:f}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(15);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";var r=n(114),i=n(43);t.exports=n(58)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(6).f,i=n(35),o=n(42),s=n(21),a=n(41),u=n(49),c=n(72),l=n(109),p=n(40),h=n(7),f=n(30).fastKey,d=n(43),v=h?"_s":"size",y=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){a(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&u(r,n,t[c],t)});return o(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=d(this,e),r=y(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(t){d(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(d(this,e),t)}}),h&&r(l.prototype,"size",{get:function(){return d(this,e)[v]}}),l},def:function(t,e,n){var r,i,o=y(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),p(e)}}},function(t,e,n){"use strict";var r=n(114),i=n(43);t.exports=n(58)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(19)(0),o=n(11),s=n(30),a=n(93),u=n(117),c=n(3),l=n(2),p=n(43),h=s.getWeak,f=Object.isExtensible,d=u.ufstore,v={},y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(c(t)){var e=h(t);return!0===e?d(p(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(p(this,"WeakMap"),t,e)}},g=t.exports=n(58)("WeakMap",y,m,u,!0,!0);l(function(){return 7!=(new g).set((Object.freeze||Object)(v),7).get(v)})&&(r=u.getConstructor(y,"WeakMap"),a(r.prototype,m),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!f(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(42),i=n(30).getWeak,o=n(1),s=n(3),a=n(41),u=n(49),c=n(19),l=n(9),p=n(43),h=c(5),f=c(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},m=function(t,e){return h(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){a(t,c,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(c.prototype,{delete:function(t){if(!s(t))return!1;var n=i(t);return!0===n?v(p(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=i(t);return!0===n?v(p(this,e)).has(t):n&&l(n,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(23),i=n(8);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},function(t,e,n){"use strict";e.errorObject={e:{}}},function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=n(44);e.getSymbolObservable=r,e.observable=r(i.root),e.$$observable=e.observable},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof o.Observable?t[0]:a.mergeAll(n)(new s.ArrayObservable(t,r))}var o=n(20),s=n(301),a=n(303),u=n(127);e.merge=r,e.mergeStatic=i},function(t,e,n){"use strict";var r=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)},i=n(20),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(i.Observable);e.EmptyObservable=o},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(o.isArrayLike(e)){for(var f=0,d=e.length;f1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(o.Subscriber)},function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=131},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n(27),i=n(87),o=n(326),s=function(){function t(){this.toggle=new r.t,this.change=new r.t,this.hovered=!1,this.doubleClick=new i.a}return Object.defineProperty(t.prototype,"nodeClassName",{get:function(){return i.i(this.data,this.last)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"anchorClassName",{get:function(){return i.c(this.data,this.hovered,this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkboxClassName",{get:function(){return i.d(this.data,this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClassName",{get:function(){return i.f(this.data.icon)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oclClassName",{get:function(){return i.k(this.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathString",{get:function(){return this.path.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasMarker",{get:function(){return this.draggable&&0!==this.data.state.dropPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerClassName",{get:function(){return i.h(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eventData",{get:function(){return{data:this.data,path:this.path}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return i.g(this.path,this.preid)},enumerable:!0,configurable:!0}),t.prototype.geChildPath=function(t){return this.path.concat(t)},t.prototype.hover=function(t){this.hovered=t},t.prototype.ontoggle=function(t){t?this.toggle.emit(t):(this.data.state.openable||this.data.children.length>0)&&this.toggle.emit(this.eventData)},t.prototype.onchange=function(t){var e=this;if(t)this.change.emit(t);else{if(this.data.state.disabled)return;this.doubleClick.onclick(function(){e.change.emit(e.eventData)})}},t.prototype.trackBy=function(t,e){return e},t.decorators=[{type:r.m,args:[{selector:"node",template:o.a}]}],t.ctorParameters=function(){return[]},t.propDecorators={data:[{type:r.z}],last:[{type:r.z}],checkbox:[{type:r.z}],path:[{type:r.z}],draggable:[{type:r.z}],preid:[{type:r.z}],toggle:[{type:r.K}],change:[{type:r.K}]},t}(),a=function(){function t(){this.toggle=new r.t,this.change=new r.t,this.drop=new r.t,this.dragTarget=null,this.dropTarget=null}return Object.defineProperty(t.prototype,"rootClassName",{get:function(){return i.l(this.checkbox,this.size,this.theme)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerClassName",{get:function(){return i.e(this.nodots)},enumerable:!0,configurable:!0}),t.prototype.ontoggle=function(t){this.toggle.emit(t)},t.prototype.onchange=function(t){this.change.emit(t)},t.prototype.ondragstart=function(t){this.draggable&&(this.dragTarget=t.target,this.dropTarget=t.target)},t.prototype.ondragend=function(t){if(this.draggable){this.dragTarget=null;for(var e=0,n=this.data;ei;)G(t,n=r[i++],e[n]);return t},K=function(t,e){return void 0===e?E(t):Z(E(t),e)},Q=function(t){var e=R.call(this,t=b(t,!0));return!(this===V&&i(F,t)&&!i(L,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,I)&&this[I][t])||e)},$=function(t,e){if(t=_(t),e=b(e,!0),t!==V||!i(F,e)||i(L,e)){var n=P(t,e);return!n||!i(F,e)||i(t,I)&&t[I][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=k(_(t)),r=[],o=0;n.length>o;)i(F,e=n[o++])||e==I||e==u||r.push(e);return r},J=function(t){for(var e,n=t===V,r=k(n?L:_(t)),o=[],s=0;r.length>s;)!i(F,e=r[s++])||n&&!i(V,e)||o.push(F[e]);return o};H||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===V&&e.call(L,n),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),z(this,t,w(1,n))};return o&&U&&z(V,t,{configurable:!0,set:e}),q(t)},a(M.prototype,"toString",function(){return this._k}),x.f=$,S.f=G,n(36).f=C.f=X,n(53).f=Q,n(52).f=J,o&&!n(39)&&a(V,"propertyIsEnumerable",Q,!0),d.f=function(t){return q(f(t))}),s(s.G+s.W+s.F*!H,{Symbol:M});for(var Y="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Y.length>tt;)f(Y[tt++]);for(var et=T(f.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return i(j,t+="")?j[t]:j[t]=M(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),s(s.S+s.F*!H,"Object",{create:K,defineProperty:G,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:J}),A&&s(s.S+s.F*(!H||c(function(){var t=M();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,N.apply(A,r)}}}),M.prototype[D]||n(13)(M.prototype,D,M.prototype.valueOf),p(M,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){var r=n(4),i=n(28),o=n(39),s=n(89),a=n(6).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(45),i=n(52),o=n(53);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(35)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(7),"Object",{defineProperty:n(6).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(7),"Object",{defineProperties:n(91)})},function(t,e,n){var r=n(16),i=n(24).f;n(17)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(12),i=n(18);n(17)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(12),i=n(45);n(17)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(17)("getOwnPropertyNames",function(){return n(92).f})},function(t,e,n){var r=n(3),i=n(30).onFreeze;n(17)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(3),i=n(30).onFreeze;n(17)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(3),i=n(30).onFreeze;n(17)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(3);n(17)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(3);n(17)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(3);n(17)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(93)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(153)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(67).set})},function(t,e,n){"use strict";var r=n(54),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(11)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(94)})},function(t,e,n){var r=n(6).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(7)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(3),i=n(18),o=n(5)("hasInstance"),s=Function.prototype;o in s||n(6).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),i=n(96);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(0),i=n(97);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";var r=n(4),i=n(9),o=n(22),s=n(69),a=n(29),u=n(2),c=n(36).f,l=n(24).f,p=n(6).f,h=n(55).trim,f=r.Number,d=f,v=f.prototype,y="Number"==o(n(35)(v)),m="trim"in String.prototype,g=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,l=u.length;ci)return NaN;return parseInt(u,r)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(y?u(function(){v.valueOf.call(n)}):"Number"!=o(n))?s(new d(g(e)),n,f):g(e)};for(var _,b=n(7)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)i(d,_=b[w])&&!i(f,_)&&p(f,_,l(d,_));f.prototype=v,v.constructor=f,n(11)(r,"Number",f)}},function(t,e,n){"use strict";var r=n(0),i=n(23),o=n(98),s=n(99),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",p=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call("0",7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2==1?d(t,e-1,n*t):d(t*t,e/2,n)},v=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)(function(){a.call({})})),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,l),c=i(t),y="",m="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(y="-",u=-u),u>1e-21)if(e=v(u*d(2,69,1))-69,n=e<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(p(0,n),r=c;r>=7;)p(1e7,0),r-=7;for(p(d(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<0?(a=m.length,m=y+(a<=c?"0."+s.call("0",c-a)+m:m.slice(0,a-c)+"."+m.slice(a-c))):m=y+m,m}})},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(98),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),i=n(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(100)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),i=n(100),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),i=n(97);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(0),i=n(96);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(0),i=n(101),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(0),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(70);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(71);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(181)})},function(t,e,n){var r=n(70),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),u=i(2,-126),c=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),l=r(t);return ia||n!=n?l*(1/0):l*n)}},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(2)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(101)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(70)})},function(t,e,n){var r=n(0),i=n(71),o=Math.exp;r(r.S+r.F*n(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(71),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),i=n(34),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),i=n(16),o=n(8);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),i=n(102)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(73),s="".endsWith;r(r.P+r.F*n(75)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),u=String(t);return s?s.call(e,u,a):e.slice(a-u.length,a)===u}})},function(t,e,n){"use strict";var r=n(0),i=n(73);r(r.P+r.F*n(75)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(99)})},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(73),s="".startsWith;r(r.P+r.F*n(75)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(10)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(10)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(10)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(10)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(10)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(10)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(10)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(10)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(10)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(10)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(10)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(10)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(10)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),i=n(12),o=n(29);r(r.P+r.F*n(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),i=n(216);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,n){"use strict";var r=n(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},function(t,e,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",function(){var t=o.call(this);return t===t?i.call(this):"Invalid Date"})},function(t,e,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(13)(i,r,n(219))},function(t,e,n){"use strict";var r=n(1),i=n(29);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(65)})},function(t,e,n){"use strict";var r=n(21),i=n(0),o=n(12),s=n(104),a=n(76),u=n(8),c=n(105),l=n(77);i(i.S+i.F*!n(56)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,p,h=o(t),f="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,m=0,g=l(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||f==Array&&a(g))for(e=u(h.length),n=new f(e);e>m;m++)c(n,m,y?v(h[m],m):h[m]);else for(p=g.call(h),n=new f;!(i=p.next()).done;m++)c(n,m,y?s(p,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){"use strict";var r=n(0),i=n(105);r(r.S+r.F*n(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),i=n(16),o=[].join;r(r.P+r.F*(n(46)!=Object||!n(14)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),i=n(66),o=n(22),s=n(34),a=n(8),u=[].slice;r(r.P+r.F*n(2)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),c=s(e,n),l=a(c-i),p=Array(l),h=0;h1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(107)}),n(48)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(78)}),n(48)("fill")},function(t,e,n){"use strict";var r=n(0),i=n(19)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(48)("find")},function(t,e,n){"use strict";var r=n(0),i=n(19)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(48)(o)},function(t,e,n){n(40)("Array")},function(t,e,n){var r=n(4),i=n(69),o=n(6).f,s=n(36).f,a=n(74),u=n(79),c=r.RegExp,l=c,p=c.prototype,h=/a/g,f=/a/g,d=new c(h)!==h;if(n(7)&&(!d||n(2)(function(){return f[n(5)("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=a(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new l(r&&!o?t.source:t,e):l((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:p,c)};for(var v=s(l),y=0;v.length>y;)!function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}(v[y++]);p.constructor=c,c.prototype=p,n(11)(r,"RegExp",c)}n(40)("RegExp")},function(t,e,n){"use strict";n(110);var r=n(1),i=n(79),o=n(7),s=/./.toString,a=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(t,e,n){n(57)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(57)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(57)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(57)("split",2,function(t,e,r){"use strict";var i=n(74),o=r,s=[].push,a="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[a]||2!="ab".split(/(?:ab)*/)[a]||4!=".".split(/(.?)(.?)/)[a]||".".split(/()()/)[a]>1||"".split(/.?/)[a]){var u=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,c,l,p,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,d+"g");for(u||(r=new RegExp("^"+m.source+"$(?!\\s)",d));(c=m.exec(n))&&!((l=c.index+c[0][a])>v&&(f.push(n.slice(v,c.index)),!u&&c[a]>1&&c[0].replace(r,function(){for(h=1;h1&&c.index=y));)m.lastIndex===c.index&&m.lastIndex++;return v===n[a]?!p&&m.test("")||f.push(""):f.push(n.slice(v)),f[a]>y?f.slice(0,y):f}}else"0".split(void 0,0)[a]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){"use strict";var r,i,o,s,a=n(39),u=n(4),c=n(21),l=n(54),p=n(0),h=n(3),f=n(15),d=n(41),v=n(49),y=n(80),m=n(111).set,g=n(249)(),_=n(112),b=n(250),w=n(251),E=u.TypeError,C=u.process,x=u.Promise,S="process"==l(C),T=function(){},P=i=_.f,O=!!function(){try{var t=x.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(T,T)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e}catch(t){}}(),k=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,s=i?e.ok:e.fail,a=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2==t._h&&I(t),t._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&c.exit()),n===e.promise?u(E("Promise-chain cycle")):(o=k(n))?o.call(n,a,u):a(n)):u(r)}catch(t){u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){m.call(u,function(){var e,n,r,i=t._v,o=N(t);if(o&&(e=b(function(){S?C.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=S||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},N=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!N(e.promise))return!1;return!0},I=function(t){m.call(u,function(){var e;S?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=k(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(R,r,1),c(D,r,1))}catch(t){D.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){D.call({_w:n,_d:!1},t)}}};O||(x=function(t){d(this,x,"Promise","_h"),f(t),r.call(this);try{t(c(R,this,1),c(D,this,1))}catch(t){D.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(42)(x.prototype,{then:function(t,e){var n=P(y(this,x));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(R,t,1),this.reject=c(D,t,1)},_.f=P=function(t){return t===x||t===s?new o(t):i(t)}),p(p.G+p.W+p.F*!O,{Promise:x}),n(38)(x,"Promise"),n(40)("Promise"),s=n(28).Promise,p(p.S+p.F*!O,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),p(p.S+p.F*(a||!O),"Promise",{resolve:function(t){return w(a&&this===s?x:this,t)}}),p(p.S+p.F*!(O&&n(56)(function(t){x.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,s=1;v(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=b(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(4),i=n(111).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(22)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(o){var l=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}else if(a&&a.resolve){var h=a.resolve();n=function(){h.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(1),i=n(3),o=n(112);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(117),i=n(43);n(58)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),i=n(59),o=n(81),s=n(1),a=n(34),u=n(8),c=n(3),l=n(4).ArrayBuffer,p=n(80),h=o.ArrayBuffer,f=o.DataView,d=i.ABV&&l.isView,v=h.prototype.slice,y=i.VIEW;r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&y in t}}),r(r.P+r.U+r.F*n(2)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(p(this,h))(u(i-r)),c=new f(this),l=new f(o),d=0;r=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){function r(t,e){var n,a,l=arguments.length<3?t:arguments[2];return c(t)===l?t[e]:(n=i.f(t,e))?s(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:u(a=o(t))?r(a,e,l):void 0}var i=n(24),o=n(18),s=n(9),a=n(0),u=n(3),c=n(1);a(a.S,"Reflect",{get:r})},function(t,e,n){var r=n(24),i=n(0),o=n(1);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(0),i=n(18),o=n(1);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(1),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(275)})},function(t,e,n){var r=n(36),i=n(52),o=n(1),s=n(4).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(0),i=n(1),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var u,h,f=arguments.length<4?t:arguments[3],d=o.f(l(t),e);if(!d){if(p(h=s(t)))return r(h,e,n,f);d=c(0)}return a(d,"value")?!(!1===d.writable||!p(f))&&(u=o.f(f,e)||c(0),u.value=n,i.f(f,e,u),!0):void 0!==d.set&&(d.set.call(f,n),!0)}var i=n(6),o=n(24),s=n(18),a=n(9),u=n(0),c=n(32),l=n(1),p=n(3);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(0),i=n(67);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(280),n(281),n(282),n(283),n(285),n(286),n(287),n(288),n(289),t.exports=n(28).Reflect},function(t,e,n){var r=n(26),i=n(1),o=r.key,s=r.set;r.exp({defineMetadata:function(t,e,n,r){s(t,e,i(n),o(r))}})},function(t,e,n){var r=n(26),i=n(1),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var u=a.get(e);return u.delete(n),!!u.size||a.delete(e)}})},function(t,e,n){var r=n(26),i=n(1),o=n(18),s=r.has,a=r.get,u=r.key,c=function(t,e,n){if(s(t,e,n))return a(t,e,n);var r=o(e);return null!==r?c(t,r,n):void 0};r.exp({getMetadata:function(t,e){return c(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(115),i=n(284),o=n(26),s=n(1),a=n(18),u=o.keys,c=o.key,l=function(t,e){var n=u(t,e),o=a(t);if(null===o)return n;var s=l(o,e);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(t){return l(s(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(49);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(26),i=n(1),o=r.get,s=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(26),i=n(1),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,e,n){var r=n(26),i=n(1),o=n(18),s=r.has,a=r.key,u=function(t,e,n){if(s(t,e,n))return!0;var r=o(e);return null!==r&&u(t,r,n)};r.exp({hasMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(26),i=n(1),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(26),i=n(1),o=n(15),s=r.key,a=r.set;r.exp({metadata:function(t,e){return function(n,r){a(t,e,(void 0!==r?i:o)(n),s(r))}}})},function(t,e,n){(function(t){!function(t,e){e()}(0,function(){"use strict";function e(t,e){for(var n=t.length-1;n>=0;n--)typeof t[n]===I&&(t[n]=Zone.current.wrap(t[n],e+"_"+n));return t}function n(t,n){for(var i=t.constructor.name,o=0;o=0&&"function"==typeof i[o.callbackIndex]){return Zone.current.scheduleMacroTask(o.name,i[o.callbackIndex],o,r,null)}return t.apply(e,i)}})}function c(t,e){t[A("OriginalDelegate")]=e}function l(){if(z)return q;z=!0;try{var t=window.navigator.userAgent;t.indexOf("MSIE ");return-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(q=!0),q}catch(t){}}function p(t,e,n){for(var r=n&&n.addEventListenerFnName||"addEventListener",i=n&&n.removeEventListenerFnName||"removeEventListener",o=n&&n.listenersFnName||"eventListeners",s=n&&n.removeAllFnName||"removeAllListeners",a=A(r),u="."+r+":",l="prependListener",p="."+l+":",f=function(t,e,n){if(!t.isRemoved){var r=t.callback;typeof r===tt&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;if(o&&"object"==typeof o&&o.once){var s=t.originalDelegate?t.originalDelegate:t.callback;e[i].apply(e,[n.type,s,o])}}},d=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[$[e.type][K]];if(r)if(1===r.length)f(r[0],n,e);else for(var i=r.slice(),o=0;o1?new n(t,e):new n(t),a=Object.getOwnPropertyDescriptor(s,"onmessage");return a&&!1===a.configurable?(r=Object.create(s),i=s,["addEventListener","removeEventListener","send","close"].forEach(function(t){r[t]=function(){var e=Array.prototype.slice.call(arguments);if("addEventListener"===t||"removeEventListener"===t){var n=e.length>0?e[0]:void 0;if(n){var i=Zone.__symbol__("ON_PROPERTY"+n);s[i]=r[i]}}return s[t].apply(s,e)}})):r=s,o(r,["close","error","message","open"],i),r};var r=e.WebSocket;for(var i in n)r[i]=n[i]}function w(t,e,n){if(!n)return e;var r=n.filter(function(e){return e.target===t});if(!r||0===r.length)return e;var i=r[0].ignoreProperties;return e.filter(function(t){return-1===i.indexOf(t)})}function E(t,e,n,r){o(t,w(t,e,n),r)}function C(t,e){if(!F||V){var n="undefined"!=typeof WebSocket;if(x()){var r=e.__Zone_ignore_on_properties;if(L){E(window,Ot.concat(["messageerror"]),r,Object.getPrototypeOf(window)),E(Document.prototype,Ot,r),void 0!==window.SVGElement&&E(window.SVGElement.prototype,Ot,r),E(Element.prototype,Ot,r),E(HTMLElement.prototype,Ot,r),E(HTMLMediaElement.prototype,yt,r),E(HTMLFrameSetElement.prototype,dt.concat(Et),r),E(HTMLBodyElement.prototype,dt.concat(Et),r),E(HTMLFrameElement.prototype,wt,r),E(HTMLIFrameElement.prototype,wt,r);var i=window.HTMLMarqueeElement;i&&E(i.prototype,Ct,r);var o=window.Worker;o&&E(o.prototype,Pt,r)}E(XMLHttpRequest.prototype,xt,r);var a=e.XMLHttpRequestEventTarget;a&&E(a&&a.prototype,xt,r),"undefined"!=typeof IDBIndex&&(E(IDBIndex.prototype,St,r),E(IDBRequest.prototype,St,r),E(IDBOpenDBRequest.prototype,St,r),E(IDBDatabase.prototype,St,r),E(IDBTransaction.prototype,St,r),E(IDBCursor.prototype,St,r)),n&&E(WebSocket.prototype,Tt,r)}else S(),s("XMLHttpRequest"),n&&b(t,e)}}function x(){if((L||V)&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var t=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(t&&!t.configurable)return!1}var e=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"onreadystatechange");if(e){Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var n=new XMLHttpRequest,r=!!n.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",e||{}),r}var i=A("fakeonreadystatechange");Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[i]},set:function(t){this[i]=t}});var n=new XMLHttpRequest,o=function(){};n.onreadystatechange=o;var r=n[i]===o;return n.onreadystatechange=null,r}function S(){for(var t=0;t",this._properties=e&&e.properties||{},this._zoneDelegate=new p(this,this._parent&&this._parent._zoneDelegate,e)}return r.assertZonePatched=function(){if(t.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(r,"root",{get:function(){for(var t=r.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(r,"current",{get:function(){return M.zone},enumerable:!0,configurable:!0}),Object.defineProperty(r,"currentTask",{get:function(){return A},enumerable:!0,configurable:!0}),r.__load_patch=function(i,o){if(O.hasOwnProperty(i))throw Error("Already loaded patch: "+i);if(!t["__Zone_disable_"+i]){var s="Zone:"+i;e(s),O[i]=o(t,r,k),n(s,s)}},Object.defineProperty(r.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},r.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},r.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},r.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},r.prototype.run=function(t,e,n,r){void 0===e&&(e=void 0),void 0===n&&(n=null),void 0===r&&(r=null),M={parent:M,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{M=M.parent}},r.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),M={parent:M,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{M=M.parent}},r.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");if(t.state!==_||t.type!==P){var r=t.state!=E;r&&t._transitionTo(E,w),t.runCount++;var i=A;A=t,M={parent:M,zone:this};try{t.type==T&&t.data&&!t.data.isPeriodic&&(t.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==_&&t.state!==x&&(t.type==P||t.data&&t.data.isPeriodic?r&&t._transitionTo(w,E):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(_,E,_))),M=M.parent,A=i}}},r.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(b,_);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(x,b,_),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==b&&t._transitionTo(w,b),t},r.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new h(S,t,e,n,r,null))},r.prototype.scheduleMacroTask=function(t,e,n,r,i){return this.scheduleTask(new h(T,t,e,n,r,i))},r.prototype.scheduleEventTask=function(t,e,n,r,i){return this.scheduleTask(new h(P,t,e,n,r,i))},r.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");t._transitionTo(C,w,E);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(x,C),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(_,C),t.runCount=0,t},r.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};this.hasTask(this.zone,o)}},t}(),h=function(){function e(n,r,i,o,s,a){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=o,this.scheduleFn=s,this.cancelFn=a,this.callback=i;var u=this;n===P&&o&&o.isUsingGlobalCallback?this.invoke=e.invokeTask:this.invoke=function(){return e.invokeTask.apply(t,[u,this,arguments])}}return e.invokeTask=function(t,e,n){t||(t=this),N++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==N&&i(),N--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(_,b)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==_&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,invoke:this.invoke,scheduleFn:this.scheduleFn,cancelFn:this.cancelFn,runCount:this.runCount,callback:this.callback}},e}(),f=s("setTimeout"),d=s("Promise"),v=s("then"),y=[],m=!1,g={name:"NO ZONE"},_="notScheduled",b="scheduling",w="scheduled",E="running",C="canceling",x="unknown",S="microTask",T="macroTask",P="eventTask",O={},k={symbol:s,currentZoneFrame:function(){return M},onUnhandledError:o,microtaskDrainDone:o,scheduleMicroTask:r,showUncaughtError:function(){return!u[s("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:o,patchMethod:function(){return o},setNativePromise:function(t){c=t.resolve(0)}},M={parent:null,zone:new u(null,null)},A=null,N=0;n("Zone","Zone"),t.Zone=u}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||t),function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}),M=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Zone.__load_patch("ZoneAwarePromise",function(t,e,n){function r(t){n.onUnhandledError(t);try{var r=e[y];r&&"function"==typeof r&&r.apply(this,[t])}catch(t){}}function i(t){return t&&t.then}function o(t){return t}function s(t){return N.reject(t)}function a(t,e){return function(n){try{u(t,e,n)}catch(e){u(t,!1,e)}}}function u(t,r,i){var o=x();if(t===i)throw new TypeError(S);if(t[m]===b){var s=null;try{typeof i!==T&&typeof i!==P||(s=i&&i.then)}catch(e){return o(function(){u(t,!1,e)})(),t}if(r!==E&&i instanceof N&&i.hasOwnProperty(m)&&i.hasOwnProperty(g)&&i[m]!==b)c(i),u(t,i[m],i[g]);else if(r!==E&&typeof s===P)try{s.apply(i,[o(a(t,r)),o(a(t,!1))])}catch(e){o(function(){u(t,!1,e)})()}else{t[m]=r;var p=t[g];t[g]=i,r===E&&i instanceof Error&&(i[O]=e.currentTask);for(var h=0;h0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},G=function(){for(var t=[],e=0;e=0;e--)if(void 0!==t[e])return t[e]}function o(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}n.d(e,"a",function(){return x});var s=n(292),a=n(27),u=n(85),c=n(86),l=n(50),p=function(){var t=new Map;return t.set(s.j.ANALYZE_FOR_ENTRY_COMPONENTS,a.a),t.set(s.j.ElementRef,a.r),t.set(s.j.NgModuleRef,a.G),t.set(s.j.ViewContainerRef,a._3),t.set(s.j.ChangeDetectorRef,a.j),t.set(s.j.QueryList,a.P),t.set(s.j.TemplateRef,a._0),t.set(s.j.CodegenComponentFactoryResolver,a._13),t.set(s.j.ComponentFactoryResolver,a.o),t.set(s.j.ComponentFactory,a.n),t.set(s.j.ComponentRef,a.p),t.set(s.j.NgModuleFactory,a.F),t.set(s.j.createModuleFactory,a._20),t.set(s.j.moduleDef,a._31),t.set(s.j.moduleProviderDef,a._32),t.set(s.j.RegisterModuleFactoryFn,a._41),t.set(s.j.Injector,a.y),t.set(s.j.ViewEncapsulation,a._4),t.set(s.j.ChangeDetectionStrategy,a.i),t.set(s.j.SecurityContext,a.V),t.set(s.j.LOCALE_ID,a.C),t.set(s.j.TRANSLATIONS_FORMAT,a.Z),t.set(s.j.inlineInterpolate,a._25),t.set(s.j.interpolate,a._26),t.set(s.j.EMPTY_ARRAY,a._15),t.set(s.j.EMPTY_MAP,a._16),t.set(s.j.Renderer,a.Q),t.set(s.j.viewDef,a._45),t.set(s.j.elementDef,a._23),t.set(s.j.anchorDef,a._18),t.set(s.j.textDef,a._43),t.set(s.j.directiveDef,a._22),t.set(s.j.providerDef,a._39),t.set(s.j.queryDef,a._40),t.set(s.j.pureArrayDef,a._35),t.set(s.j.pureObjectDef,a._37),t.set(s.j.purePipeDef,a._38),t.set(s.j.pipeDef,a._36),t.set(s.j.nodeValue,a._34),t.set(s.j.ngContentDef,a._33),t.set(s.j.unwrapValue,a._44),t.set(s.j.createRendererType2,a._21),t.set(s.j.createComponentFactory,a._19),t}(),h=function(){function t(){this.builtinExternalReferences=new Map,this.reflectionCapabilities=new a._17}return t.prototype.componentModuleUrl=function(t,e){var n=e.moduleId;if("string"==typeof n){return Object(s.z)(n)?n:"package:"+n}if(null!==n&&void 0!==n)throw Object(s.A)('moduleId should be a string in "'+Object(a._42)(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+Object(a._42)(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.resolveExternalReference=function(t){return p.get(t)||t.runtime},t}(),f=new a.x("ErrorCollector"),d={provide:a.L,useValue:"/"},v={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},y=new a.x("HtmlParser"),m=function(){function t(t,e,n,r,i,o,a,u,c,l){this._metadataResolver=e,this._delegate=new s.k(e,n,r,i,o,a,u,c,l,this.getExtraNgModuleProviders.bind(this)),this.injector=t}return t.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new s.r(a.k,{useValue:this}))]},t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){var e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(function(t){return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}})},t.prototype.loadAotSummaries=function(t){this._delegate.loadAotSummaries(t)},t.prototype.hasAotSummary=function(t){return this._delegate.hasAotSummary(t)},t.prototype.getComponentFactory=function(t){return this._delegate.getComponentFactory(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),g=[{provide:s.b,useValue:new h},{provide:s.s,useValue:v},{provide:s.l,deps:[]},{provide:s.v,useExisting:s.l},{provide:a._14,deps:[]},{provide:s.m,deps:[]},{provide:s.p,deps:[s.m]},{provide:y,useClass:s.h,deps:[]},{provide:s.i,useFactory:function(t,e,n,r,i){e=e||"";var o=e?r.missingTranslation:a.D.Ignore;return new s.i(t,e,n,o,i)},deps:[y,[new a.J,new a.v(a.Y)],[new a.J,new a.v(a.Z)],[s.c],[a._14]]},{provide:s.h,useExisting:s.i},{provide:s.w,deps:[s.c,s.b,s.p,s.g,s.i,a._14]},{provide:s.d,deps:[s.s,s.x,s.h,s.c]},{provide:s.a,deps:[s.c,s.h,s.o,s.e,s.q,s.v,s.g,s.d,a._14,[a.J,s.t],s.b,[a.J,f]]},d,{provide:s.u,deps:[s.x]},{provide:s.y,deps:[s.b]},{provide:s.n,deps:[s.b]},{provide:s.c,useValue:new s.c},{provide:a.k,useClass:m,deps:[a.y,s.a,s.w,s.u,s.y,s.n,s.v,s.b,s.c,a._14]},{provide:s.f,deps:[]},{provide:s.g,useExisting:s.f},{provide:s.x,deps:[a.L]},{provide:s.e,deps:[s.b]},{provide:s.q,deps:[s.b]},{provide:s.o,deps:[s.b]}],_=function(){function t(t){var e={useJit:!0,defaultEncapsulation:a._4.Emulated,missingTranslation:a.D.Warning,enableLegacyTemplate:!1};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e=r(this._defaultOptions.concat(t));return a.y.create([g,{provide:s.c,useFactory:function(){return new s.c({useJit:e.useJit,jitDevMode:Object(a._10)(),defaultEncapsulation:e.defaultEncapsulation,missingTranslation:e.missingTranslation,enableLegacyTemplate:e.enableLegacyTemplate,preserveWhitespaces:e.preserveWhitespaces})},deps:[]},e.providers]).get(a.k)},t}(),b=Object(a._6)(a._11,"coreDynamic",[{provide:a.h,useValue:{},multi:!0},{provide:a.l,useClass:_,deps:[a.h]}]),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(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=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:a.w}],e.ctorParameters=function(){return[]},e}(s.s),E=[c.b,{provide:a.h,useValue:{providers:[{provide:s.s,useClass:w,deps:[]}]},multi:!0},{provide:a.M,useValue:u.d}],C=function(t){function e(){var e=t.call(this)||this;if(e._cache=a._24.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return Object(l.b)(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}(s.s),x=(new a._2("5.0.3"),s.s,Object(a._6)(b,"browserDynamic",E))},function(t,e,n){"use strict";function r(){}function i(){}function o(){}function s(){}function a(){}function u(){}function c(){}function l(){}function p(){}function h(){}function f(){}function d(){}function v(){}function y(){}function m(t,e){var n=function(){for(var n=[],r=0;r=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function M(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(M).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function A(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function N(t){return!!t&&"function"==typeof t.then}function I(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function D(t,e){return void 0===e&&(e=!0),null===t?e:t}function R(t){return t.replace(/\W/g,"_")}function j(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Mo)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=M(e);return n.indexOf("(")>=0?(n="anonymous_"+Io++,e.__anonymousType=n):n=R(n),n}function F(t){var e=t.reference;return e instanceof Mo?e.filePath:"./"+M(e)}function L(t,e){return"View_"+j({reference:t})+"_"+e}function V(t){return"RenderType_"+j({reference:t})}function H(t){return"HostView_"+j({reference:t})}function B(t){return j({reference:t})+"NgFactory"}function U(t){return null!=t.value?R(t.value):j(t.identifier)}function z(t){return null!=t.identifier?t.identifier.reference:t.value}function q(t){return t||[]}function W(t){return t.reduce(function(t,e){var n=Array.isArray(e)?W(e):e;return t.concat(n)},[])}function G(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Z(t,e,n){var r;return r=n.isInline?e.type.reference instanceof Mo?e.type.reference.filePath+"."+e.type.reference.name+".html":j(t)+"/"+j(e.type)+".html":n.templateUrl,e.type.reference instanceof Mo?r:G(r)}function K(t,e){var n=t.moduleUrl.split(/\/\\/g);return G("css/"+e+n[n.length-1]+".ngstyle.js")}function Q(t){return G(j(t.type)+"/module.ngfactory.js")}function $(t,e){return G(j(t)+"/"+j(e.type)+".ngfactory.js")}function X(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function J(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n0&&(o=t.value)}),e=ct(e);var s=t.name.toLowerCase(),a=fs.OTHER;return it(s)?a=fs.NG_CONTENT:s==cs?a=fs.STYLE:s==ls?a=fs.SCRIPT:s==os&&r==us&&(a=fs.STYLESHEET),new ds(a,e,n,i,o)}function ct(t){return null===t||0===t.length?"*":t}function lt(t){return Ni.isTypeOf(t)||Ri.isTypeOf(t)}function pt(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function ht(t){return t>=bs&&t<=Ss||t==Xs}function ft(t){return Rs<=t&&t<=js}function dt(t){return t>=Us&&t<=Qs||t>=Fs&&t<=Hs}function vt(t){return t>=Us&&t<=qs||t>=Fs&&t<=Vs||ft(t)}function yt(t,e){return new na(t,Ys.Character,e,String.fromCharCode(e))}function mt(t,e){return new na(t,Ys.Identifier,0,e)}function gt(t,e){return new na(t,Ys.Keyword,0,e)}function _t(t,e){return new na(t,Ys.Operator,0,e)}function bt(t,e){return new na(t,Ys.String,0,e)}function wt(t,e){return new na(t,Ys.Number,e,"")}function Et(t,e){return new na(t,Ys.Error,0,e)}function Ct(t){return Us<=t&&t<=Qs||Fs<=t&&t<=Hs||t==Bs||t==Ps}function xt(t){if(0==t.length)return!1;var e=new ia(t);if(!Ct(e.peek))return!1;for(e.advance();e.peek!==_s;){if(!St(e.peek))return!1;e.advance()}return!0}function St(t){return dt(t)||ft(t)||t==Bs||t==Ps}function Tt(t){return t==zs||t==Ls}function Pt(t){return t==Ms||t==ks}function Ot(t){return t===Os||t===Ts||t===Js}function kt(t){switch(t){case Ws:return ws;case qs:return Cs;case Gs:return xs;case Zs:return bs;case Ks:return Es;default:return t}}function Mt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function At(t){var e=P(t.start)+"([\\s\\S]*?)"+P(t.end);return new RegExp(e,"g")}function Nt(t,e){var n=F(e),r=null!=n?"in "+t+" "+j(e)+" in "+n:"in "+t+" "+j(e),i=new Va("",r);return new Ha(new La(i,-1,-1,-1),new La(i,-1,-1,-1))}function It(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=$o),new Qa(new Va(t,e),n,r,i).tokenize()}function Dt(t){return'Unexpected character "'+(t===_s?"EOF":String.fromCharCode(t))+'"'}function Rt(t){return'Unknown entity "'+t+'" - use the "&#;" or "&#x;" syntax'}function jt(t){return!ht(t)||t===_s}function Ft(t){return ht(t)||t===Ds||t===As||t===Os||t===Ts||t===Is}function Lt(t){return(tjs)}function Vt(t){return t==Ns||t==_s||!vt(t)}function Ht(t){return t==Ns||t==_s||!dt(t)}function Bt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==$s&&!r}function Ut(t){return t===Is||dt(t)||ft(t)}function zt(t,e){return qt(t)==qt(e)}function qt(t){return t>=Us&&t<=Qs?t-Us+Fs:t}function Wt(t){for(var e=[],n=void 0,r=0;r0&&t[t.length-1]===e}function Zt(t){return t.id||$t(Qt(t.nodes).join("")+"["+t.meaning+"]")}function Kt(t){if(t.id)return t.id;var e=new nu;return Yt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Qt(t){return t.map(function(t){return t.visit(eu,null)})}function $t(t){var e=k(t),n=ue(e,ru.Big),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[15+(r+64>>9<<4)]=r;for(var p=0;p>>13,n=oe(n,r),n=oe(n,e),n^=e<<8,r=oe(r,e),r=oe(r,n),r^=n>>>13,e=oe(e,n),e=oe(e,r),e^=r>>>12,n=oe(n,r),n=oe(n,e),n^=e<<16,r=oe(r,e),r=oe(r,n),r^=n>>>5,e=oe(e,n),e=oe(e,r),e^=r>>>3,n=oe(n,r),n=oe(n,e),n^=e<<10,r=oe(r,e),r=oe(r,n),r^=n>>>15,[e,n,r]}function ne(t,e){return re(t,e)[1]}function re(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ie(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=re(r,o),a=s[0],u=s[1];return[ne(ne(n,i),a),u]}function oe(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function se(t,e){return t<>>32-e}function ae(t,e){var n=t[0],r=t[1];return[n<>>32-e,r<>>32-e]}function ue(t,e){for(var n=Array(t.length+3>>>2),r=0;r=t.length?0:255&t.charCodeAt(e)}function le(t,e,n){var r=0;if(n===ru.Big)for(var i=0;i<4;i++)r+=ce(t,e+i)<<24-8*i;else for(var i=0;i<4;i++)r+=ce(t,e+i)<<8*i;return r}function pe(t){return t.reduce(function(t,e){return t+he(e)},"")}function he(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function fe(t){for(var e="",n=0;n>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function de(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ve(e,ye(ce(t,r),n)),n=ye(256,n);return e.split("").reverse().join("")}function ve(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function ye(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ve(n,r)),r=ve(r,r);return n}function me(t){return du[t.toLowerCase()]||vu}function ge(t){var e=new _u(gu,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}function _e(t){return t.split(bu)[2]}function be(t,e,n,r){return new ku(n,r).extract(t,e)}function we(t,e,n,r,i){return new ku(r,i).merge(t,e,n)}function Ee(t){return!!(t instanceof Zo&&t.value&&t.value.startsWith("i18n"))}function Ce(t){return!!(t instanceof Zo&&t.value&&"/i18n"===t.value)}function xe(t){return t.attrs.find(function(t){return t.name===Eu})||null}function Se(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Su),n=t.indexOf(xu),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:s[0],description:s[1],id:o}}function Te(t){return Au}function Pe(t){return t.map(function(t){return t.visit(ju)}).join("")}function Oe(t){return Uu.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ke(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Me(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function Ae(t){return Kt(t)}function Ne(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function Ie(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function De(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Xu;case"xtb":return new tc;case"xliff2":case"xlf2":return new Zu;case"xliff":case"xlf":default:return new zu}}function Re(t,e){void 0===e&&(e=!1);var n=Le(t,e);return n[0]+".ngfactory"+n[1]}function je(t){return t.replace(uc,".")}function Fe(t){return uc.test(t)}function Le(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function Ve(t){return t.replace(ac,"")+".ngsummary.json"}function He(t,e){void 0===e&&(e=!1);var n=Le(je(t),e);return n[0]+".ngsummary"+n[1]}function Be(t){return t.replace(cc,".")}function Ue(t){return t+"NgSummary"}function ze(t){return t.replace(lc,"")}function qe(t){return pc.test(t)}function We(t){return{identifier:{reference:t}}}function Ge(t,e){return We(t.resolveExternalReference(e))}function Ze(t,e,n){return t.hasLifecycleHook(n,Qe(e))}function Ke(t,e){return vc.filter(function(n){return Ze(t,n,e)})}function Qe(t){switch(t){case dc.OnInit:return"ngOnInit";case dc.OnDestroy:return"ngOnDestroy";case dc.DoCheck:return"ngDoCheck";case dc.OnChanges:return"ngOnChanges";case dc.AfterContentInit:return"ngAfterContentInit";case dc.AfterContentChecked:return"ngAfterContentChecked";case dc.AfterViewInit:return"ngAfterViewInit";case dc.AfterViewChecked:return"ngAfterViewChecked"}}function $e(t,e){if(void 0===e&&(e=[]),t)for(var n=0;n>2),e+=jn((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":jn((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":jn(63&o)}return e}function Rn(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n|=32),e+=jn(n)}while(t>0);return e}function jn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return jl[t]}function Fn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(Fl,function(){for(var t=[],n=0;n0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Tp),o=[]),n.push(a)),a==xp&&i++}return o.length>0&&(r.push(o.join("")),n.push(Tp)),new Op(n.join(""),r)}function Gn(t){var e="styles";return t&&(e+="_"+j(t.type)),e}function Zn(t){return t.some(function(t){return t.name===Np})}function Kn(t){return t.replace(new RegExp(rs,"g")," ")}function Qn(t){return new Xa(X(new Fp,t.rootNodes),t.errors)}function $n(t){var e=new Bp;return new Vp(X(e,t),e.isExpanded,e.errors)}function Xn(t,e){var n=t.cases.map(function(t){-1!=Lp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Hp(t.valueSourceSpan,'Plural cases should be "=" or one of '+Lp.join(", ")));var n=$n(t.expression);return e.push.apply(e,n.errors),new Go("ng-template",[new Wo("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Wo("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Go("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function Jn(t,e){var n=t.cases.map(function(t){var n=$n(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Go("ng-template",[new Wo("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Go("ng-template",[new Wo("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Wo("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Go("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function Yn(t){return"@"==t[0]}function tr(t,e,n,r){var i=[];return mc.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=o.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,r)}))}),0===i.length?[$i.NONE]:Array.from(new Set(i)).sort()}function er(t){return function(e){return-1===t.indexOf(e.msg)||(Xp[e.msg]=(Xp[e.msg]||0)+1,Xp[e.msg]<=1)}}function nr(t){return t?t.split(",").map(function(t){return t.trim()}):[]}function rr(t){return t.trim().split(/\s+/g)}function ir(t,e){var n=new mc,r=nt(t)[1];n.setElement(r);for(var i=0;i=0){var c=s[a],l=Er(c);l&&(u=wr(r),s[a]=u.set(l.cast(Ac).notIdentical(gn(!1))).toDeclStmt(null,[cl.Final]))}return new uh(s,u)}function lr(t,e){return hr(t,e)}function pr(t,e,n,r){t||(t=new fh);var i=br(r),o=[],s=new hh(t,e,r),a=n.visit(s,lh.Expression);if(s.temporaryCount)for(var u=0;u=0;r--)n.unshift(dr(e,r))}function yr(t,e){if(t!==lh.Statement)throw new Error("Expected a statement, but saw "+e)}function mr(t,e){if(t!==lh.Expression)throw new Error("Expected an expression, but saw "+e)}function gr(t,e){return t===lh.Statement?e.toStmt():e}function _r(t,e){Array.isArray(t)?t.forEach(function(t){return _r(t,e)}):e.push(t)}function br(t){return cn("currVal_"+t)}function wr(t){return cn("pd_"+t)}function Er(t){return t instanceof fl?t.expr:t instanceof dl?t.value:null}function Cr(t){var e=t[t.length-1];return e instanceof wo?e.hasViewContainer:e instanceof bo?rt(e.name)&&e.children.length?Cr(e.children):e.hasViewContainer:e instanceof To}function xr(t,e){switch(t.type){case Po.Attribute:return fn([gn(1),gn(t.name),gn(t.securityContext)]);case Po.Property:return fn([gn(8),gn(t.name),gn(t.securityContext)]);case Po.Animation:return fn([gn(8|(e&&e.directive.isComponent?32:16)),gn("@"+t.name),gn(t.securityContext)]);case Po.Class:return fn([gn(2),gn(t.name),al]);case Po.Style:return fn([gn(4),gn(t.name),gn(t.unit)])}}function Sr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?Tr(n,i,r):r})}),fn(Object.keys(e).sort().map(function(t){return fn([gn(t),gn(e[t])])}))}function Tr(t,e,n){return t==gh||t==_h?e+" "+n:n}function Pr(t,e){return e.length>10?xh.callFn([Ch,gn(t),gn(1),fn(e)]):xh.callFn([Ch,gn(t),gn(0)].concat(e))}function Or(t,e,n){return ln(fc.unwrapValue).callFn([Ch,gn(t),gn(e),n])}function kr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,i=void 0;t instanceof bo?(kr(t.children,e),t.children.forEach(function(t){var i=e.get(t);i.staticQueryIds.forEach(function(t){return n.add(t)}),i.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches):t instanceof wo&&(kr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches),i&&i.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function Mr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function Ar(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function Nr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function Ir(t,e){return t?t+":"+e:e}function Dr(t,e){for(var n=[],r=0,i=t.transitiveModule.providers;r0?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 Ei(t){var e=t[cf.Path];return e=null==e?"":wi(e),t[cf.Path]=e,_i(t[cf.Scheme],t[cf.UserInfo],t[cf.Domain],t[cf.Port],e,t[cf.QueryData],t[cf.Fragment])}function Ci(t,e){var n=bi(encodeURI(e)),r=bi(t);if(null!=n[cf.Scheme])return Ei(n);n[cf.Scheme]=r[cf.Scheme];for(var i=cf.Scheme;i<=cf.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[cf.Path][0])return Ei(n);var o=r[cf.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[cf.Path],n[cf.Path]=o,Ei(n)}n.d(e,"c",function(){return ko}),n.d(e,"j",function(){return fc}),n.d(e,"k",function(){return rf}),n.d(e,"e",function(){return gs}),n.d(e,"q",function(){return Gl}),n.d(e,"o",function(){return Dl}),n.d(e,"n",function(){return Il}),n.d(e,"y",function(){return wh}),n.d(e,"A",function(){return T}),n.d(e,"r",function(){return Bo}),n.d(e,"t",function(){return Ao}),n.d(e,"v",function(){return Kh}),n.d(e,"l",function(){return Qh}),n.d(e,"b",function(){return sf}),n.d(e,"x",function(){return af}),n.d(e,"z",function(){return gi}),n.d(e,"s",function(){return lf}),n.d(e,"g",function(){return Kl}),n.d(e,"i",function(){return sc}),n.d(e,"d",function(){return vs}),n.d(e,"m",function(){return ea}),n.d(e,"p",function(){return Ra}),n.d(e,"a",function(){return Ec}),n.d(e,"h",function(){return rc}),n.d(e,"f",function(){return ep}),n.d(e,"u",function(){return Ap}),n.d(e,"w",function(){return th});var xi=n(293),Si=m("Inject",function(t){return{token:t}}),Ti=m("InjectionToken",function(t){return{_desc:t}}),Pi=m("Attribute",function(t){return{attributeName:t}}),Oi=m("ContentChildren",function(t,e){return void 0===e&&(e={}),Object(xi.a)({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),ki=m("ContentChild",function(t,e){return void 0===e&&(e={}),Object(xi.a)({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),Mi=m("ViewChildren",function(t,e){return void 0===e&&(e={}),Object(xi.a)({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),Ai=m("ViewChild",function(t,e){return Object(xi.a)({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),Ni=m("Directive",function(t){return void 0===t&&(t={}),t}),Ii={Emulated:0,Native:1,None:2};Ii[Ii.Emulated]="Emulated",Ii[Ii.Native]="Native",Ii[Ii.None]="None";var Di={OnPush:0,Default:1};Di[Di.OnPush]="OnPush",Di[Di.Default]="Default";var Ri=m("Component",function(t){return void 0===t&&(t={}),Object(xi.a)({changeDetection:Di.Default},t)}),ji=m("Pipe",function(t){return Object(xi.a)({pure:!0},t)}),Fi=m("Input",function(t){return{bindingPropertyName:t}}),Li=m("Output",function(t){return{bindingPropertyName:t}}),Vi=m("HostBinding",function(t){return{hostPropertyName:t}}),Hi=m("HostListener",function(t,e){return{eventName:t,args:e}}),Bi=m("NgModule",function(t){return t}),Ui={name:"custom-elements"},zi={name:"no-errors-schema"},qi=m("Optional"),Wi=m("Injectable"),Gi=m("Self"),Zi=m("SkipSelf"),Ki=m("Host"),Qi=Function,$i={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};$i[$i.NONE]="NONE",$i[$i.HTML]="HTML",$i[$i.STYLE]="STYLE",$i[$i.SCRIPT]="SCRIPT",$i[$i.URL]="URL",$i[$i.RESOURCE_URL]="RESOURCE_URL";var Xi={None:0,TypeElement:1,TypeText:2,ProjectedTemplate:4,CatRenderNode:3,TypeNgContent:8,TypePipe:16,TypePureArray:32,TypePureObject:64,TypePurePipe:128,CatPureExpression:224,TypeValueProvider:256,TypeClassProvider:512,TypeFactoryProvider:1024,TypeUseExistingProvider:2048,LazyProvider:4096,PrivateProvider:8192,TypeDirective:16384,Component:32768,CatProviderNoDirective:3840,CatProvider:20224,OnInit:65536,OnDestroy:131072,DoCheck:262144,OnChanges:524288,AfterContentInit:1048576,AfterContentChecked:2097152,AfterViewInit:4194304,AfterViewChecked:8388608,EmbeddedViews:16777216,ComponentView:33554432,TypeContentQuery:67108864,TypeViewQuery:134217728,StaticQuery:268435456,DynamicQuery:536870912,CatQuery:201326592,Types:201347067},Ji={None:0,SkipSelf:1,Optional:2,Value:8},Yi={Inline:0,Dynamic:1},to={TypeElementAttribute:1,TypeElementClass:2,TypeElementStyle:4,TypeProperty:8,SyntheticProperty:16,SyntheticHostProperty:32,CatSyntheticProperty:48,Types:15},eo={First:0,All:1},no={ElementRef:0,RenderElement:1,TemplateRef:2,ViewContainerRef:3,Provider:4},ro={None:0,OnPush:2},io={Error:0,Warning:1,Ignore:2};io[io.Error]="Error",io[io.Warning]="Warning",io[io.Ignore]="Ignore";var oo=(Object.freeze({Inject:r,createInject:Si,createInjectionToken:Ti,Attribute:i,createAttribute:Pi,Query:o,createContentChildren:Oi,createContentChild:ki,createViewChildren:Mi,createViewChild:Ai,Directive:s,createDirective:Ni,Component:a,ViewEncapsulation:Ii,ChangeDetectionStrategy:Di,createComponent:Ri,Pipe:u,createPipe:ji,Input:c,createInput:Fi,Output:l,createOutput:Li,HostBinding:p,createHostBinding:Vi,HostListener:h,createHostListener:Hi,NgModule:f,createNgModule:Bi,ModuleWithProviders:d,SchemaMetadata:v,CUSTOM_ELEMENTS_SCHEMA:Ui,NO_ERRORS_SCHEMA:zi,createOptional:qi,createInjectable:Wi,createSelf:Gi,createSkipSelf:Zi,createHost:Ki,Type:Qi,SecurityContext:$i,NodeFlags:Xi,DepFlags:Ji,ArgumentType:Yi,BindingFlags:to,QueryBindingType:eo,QueryValueType:no,ViewFlags:ro,MissingTranslationStrategy:io,MetadataFactory:y,Route:g}),/-+([a-z0-9])/g),so=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return C(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=C(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),ao={assertSync:function(t){if(N(t))throw new Error("Illegal state: value cannot be a promise");return t},then:function(t,e){return N(t)?t.then(e):e(t)},all:function(t){return t.some(N)?Promise.all(t):t}},uo="ngSyntaxError",co="ngParseErrors",lo=Object.getPrototypeOf({}),po=function(){function t(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}return t}(),ho=(new po("5.0.5"),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}()),fo=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}(),vo=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}(),yo=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,this.isAnimation=this.type===Po.Animation}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),mo=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),go=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}(),_o=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}(),bo=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){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.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),wo=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),Eo=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Co=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),xo=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),So={PublicService:0,PrivateService:1,Component:2,Directive:3,Builtin:4};So[So.PublicService]="PublicService",So[So.PrivateService]="PrivateService",So[So.Component]="Component",So[So.Directive]="Directive",So[So.Builtin]="Builtin";var To=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Po={Property:0,Attribute:1,Class:2,Style:3,Animation:4};Po[Po.Property]="Property",Po[Po.Attribute]="Attribute",Po[Po.Class]="Class",Po[Po.Style]="Style",Po[Po.Animation]="Animation";var Oo=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),ko=(function(t){function e(){return t.call(this)||this}Object(xi.b)(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){function n(e){e&&e.length&&r.push(I(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)}}(Oo),function(){function t(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?Ii.Emulated:n,i=e.useJit,o=void 0===i||i,s=e.jitDevMode,a=void 0!==s&&s,u=e.missingTranslation,c=void 0===u?null:u,l=e.enableLegacyTemplate,p=e.preserveWhitespaces,h=e.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!a,this.missingTranslation=c,this.enableLegacyTemplate=!0===l,this.preserveWhitespaces=D(S(p)),this.strictInjectionParameters=!0===h}return t}()),Mo=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),Ao=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",i='"'+t+'".'+e+r,o=this.cache.get(i);return o||(o=new Mo(t,e,n),this.cache.set(i,o)),o},t}(),No=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Io=0,Do={Pipe:0,Directive:1,NgModule:2,Injectable:3};Do[Do.Pipe]="Pipe",Do[Do.Directive]="Directive",Do[Do.NgModule]="NgModule",Do[Do.Injectable]="Injectable";var Ro=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=q(r),this.styleUrls=q(i)}return t}(),jo=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.htmlAst,o=t.styles,s=t.styleUrls,a=t.externalStylesheets,u=t.animations,c=t.ngContentSelectors,l=t.interpolation,p=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=q(o),this.styleUrls=q(s),this.externalStylesheets=q(a),this.animations=u?W(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p,this.preserveWhitespaces=h}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Fo=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,v=t.viewQueries,y=t.entryComponents,m=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=q(h),this.viewProviders=q(f),this.queries=q(d),this.viewQueries=q(v),this.entryComponents=q(y),this.template=m,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,h=e.viewProviders,f=e.queries,d=e.viewQueries,v=e.entryComponents,y=e.template,m=e.componentViewType,g=e.rendererType,_=e.componentFactory,w={},E={},C={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(No);null===n?C[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var x={};null!=u&&u.forEach(function(t){var e=b(t,[t,t]);x[e[0]]=e[1]});var S={};return null!=c&&c.forEach(function(t){var e=b(t,[t,t]);S[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:x,outputs:S,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:h,queries:f,viewQueries:d,entryComponents:v,template:y,componentViewType:m,rendererType:g,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:Do.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,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Lo=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Do.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Vo=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=q(r),this.exportedDirectives=q(i),this.declaredPipes=q(o),this.exportedPipes=q(s),this.providers=q(n),this.entryComponents=q(a),this.bootstrapComponents=q(u),this.importedModules=q(c),this.exportedModules=q(l),this.schemas=q(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Do.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Ho=function(){function t(){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=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Bo=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}return t}(),Uo=(function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()}}(),function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}()),zo=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),qo=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Wo=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Go=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Zo=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Ko=(function(){function t(){}t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){function n(e){e&&r.push(X(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)}}(),[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//]),Qo=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(Y("interpolation",e),new t(e[0],e[1])):$o},t}(),$o=new Qo("{{","}}"),Xo=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),Jo=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Yo=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,ts=/^([^:\/?#]+):/,es={RAW_TEXT:0,ESCAPABLE_RAW_TEXT:1,PARSABLE_DATA:2};es[es.RAW_TEXT]="RAW_TEXT",es[es.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",es[es.PARSABLE_DATA]="PARSABLE_DATA";var ns={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:"‌"},rs="";ns.ngsp=rs;var is="select",os="link",ss="rel",as="href",us="stylesheet",cs="style",ls="script",ps="ngNonBindable",hs="ngProjectAs",fs={NG_CONTENT:0,STYLE:1,STYLESHEET:2,SCRIPT:3,OTHER:4};fs[fs.NG_CONTENT]="NG_CONTENT",fs[fs.STYLE]="STYLE",fs[fs.STYLESHEET]="STYLESHEET",fs[fs.SCRIPT]="SCRIPT",fs[fs.OTHER]="OTHER";var ds=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),vs=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this;if(x(t.template)){if(x(t.templateUrl))throw T("'"+M(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw T("The template specified for component "+M(t.componentType)+" is not a string")}else{if(!x(t.templateUrl))throw T("No template specified for component "+M(t.componentType));if("string"!=typeof t.templateUrl)throw T("The templateUrl specified for component "+M(t.componentType)+" is not a string")}if(x(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw T("The preserveWhitespaces option for component "+M(t.componentType)+" must be a boolean");return ao.then(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),ao.then(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=Qo.fromArray(t.interpolation),o=this._htmlParser.parse(e,Z({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0){throw T("Template parse errors:\n"+o.errors.join("\n"))}var s=this._normalizeStylesheet(new Ro({styles:t.styles,moduleUrl:t.moduleUrl})),a=new ys;X(a,o.rootNodes);var u=this._normalizeStylesheet(new Ro({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:s.styles.concat(u.styles),inlineStyleUrls:s.styleUrls.concat(u.styleUrls),styleUrls:this._normalizeStylesheet(new Ro({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:a.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return ao.then(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=e.styles.slice();this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=e.styles.slice();return r._inlineStyles(e.styleUrls,n,i),new Ro({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===Ii.Emulated&&0===i.length&&0===o.length&&(a=Ii.None),new jo({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:D(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),ao.then(ao.all(t.filter(function(t){return!e.has(t)}).map(function(t){return ao.then(n._fetch(t),function(r){var i=n._normalizeStylesheet(new Ro({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(tt).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=et(e._urlResolver,n,t);return r.push.apply(r,i.styleUrls),i.style});return new Ro({styles:i,styleUrls:r,moduleUrl:n})},t}(),ys=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=ut(t);switch(n.type){case fs.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case fs.STYLE:var r="";t.children.forEach(function(t){t instanceof Uo&&(r+=t.value)}),this.styles.push(r);break;case fs.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,X(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){X(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){X(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),ms=[Ai,Mi,ki,Oi],gs=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(A(t));return e&&e.some(lt)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(A(t));if(n){var r=pt(n,lt);if(r){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(r,i,t)}}if(e)throw new Error("No Directive annotation found on "+M(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n){var r=[],i=[],o={},s={};return Object.keys(e).forEach(function(t){var n=pt(e[t],function(t){return Fi.isTypeOf(t)});n&&(n.bindingPropertyName?r.push(t+": "+n.bindingPropertyName):r.push(t));var a=pt(e[t],function(t){return Li.isTypeOf(t)});a&&(a.bindingPropertyName?i.push(t+": "+a.bindingPropertyName):i.push(t)),e[t].filter(function(t){return Vi.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.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["["+e.hostPropertyName+"]"]=t}else o["["+t+"]"]=t}),e[t].filter(function(t){return Hi.isTypeOf(t)}).forEach(function(e){var n=e.args||[];o["("+e.eventName+")"]=t+"("+n.join(",")+")"});var u=pt(e[t],function(t){return ms.some(function(e){return e.isTypeOf(t)})});u&&(s[t]=u)}),this._merge(t,r,i,o,s,n)},t.prototype._extractPublicName=function(t){return b(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,e,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?Object(xi.a)({},t.host,r):r,c=t.queries?Object(xi.a)({},t.queries,i):i;if(Ri.isTypeOf(t)){var l=t;return Ri({selector:l.selector,inputs:s,outputs:a,host:u,exportAs:l.exportAs,moduleId:l.moduleId,queries:c,changeDetection:l.changeDetection,providers:l.providers,viewProviders:l.viewProviders,entryComponents:l.entryComponents,template:l.template,templateUrl:l.templateUrl,styles:l.styles,styleUrls:l.styleUrls,encapsulation:l.encapsulation,animations:l.animations,interpolation:l.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return Ni({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}(),_s=0,bs=9,ws=10,Es=11,Cs=12,xs=13,Ss=32,Ts=34,Ps=36,Os=39,ks=43,Ms=45,As=47,Ns=59,Is=61,Ds=62,Rs=48,js=57,Fs=65,Ls=69,Vs=70,Hs=90,Bs=95,Us=97,zs=101,qs=102,Ws=110,Gs=114,Zs=116,Ks=118,Qs=122,$s=123,Xs=160,Js=96,Ys={Character:0,Identifier:1,Keyword:2,String:3,Operator:4,Number:5,Error:6};Ys[Ys.Character]="Character",Ys[Ys.Identifier]="Identifier",Ys[Ys.Keyword]="Keyword",Ys[Ys.String]="String",Ys[Ys.Operator]="Operator",Ys[Ys.Number]="Number",Ys[Ys.Error]="Error";var ta=["var","let","as","null","undefined","true","false","if","else","this"],ea=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new ia(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}(),na=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==Ys.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==Ys.Number},t.prototype.isString=function(){return this.type==Ys.String},t.prototype.isOperator=function(t){return this.type==Ys.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==Ys.Identifier},t.prototype.isKeyword=function(){return this.type==Ys.Keyword},t.prototype.isKeywordLet=function(){return this.type==Ys.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==Ys.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==Ys.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==Ys.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==Ys.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==Ys.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==Ys.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==Ys.Error},t.prototype.toNumber=function(){return this.type==Ys.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case Ys.Character:case Ys.Identifier:case Ys.Keyword:case Ys.Operator:case Ys.String:case Ys.Error:return this.strValue;case Ys.Number:return this.numValue.toString();default:return null}},t}(),ra=new na(-1,Ys.Character,0,""),ia=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?_s:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Ss;){if(++r>=e){n=_s;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(Ct(n))return this.scanIdentifier();if(ft(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),ft(this.peek)?this.scanNumber(i):yt(i,46);case 40:case 41:case $s:case 125:case 91:case 93:case 44:case 58:case Ns:return this.scanCharacter(i,n);case Os:case Ts:return this.scanString();case 35:case ks:case Ms:case 42:case As:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Ds:return this.scanComplexOperator(i,String.fromCharCode(n),Is,"=");case 33:case Is:return this.scanComplexOperator(i,String.fromCharCode(n),Is,"=",Is,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case Xs:for(;ht(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),yt(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),_t(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),_t(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();St(this.peek);)this.advance();var e=this.input.substring(t,this.index);return ta.indexOf(e)>-1?gt(t,e):mt(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(ft(this.peek));else if(46==this.peek)e=!1;else{if(!Tt(this.peek))break;if(this.advance(),Pt(this.peek)&&this.advance(),!ft(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return wt(t,e?Mt(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=kt(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==_s)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),bt(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return Et(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),oa=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),sa=function(){function t(t,e){this.start=t,this.end=e}return t}(),aa=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),ua=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(aa),ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(aa),la=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(aa),pa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(aa),ha=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(aa),fa=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(aa),da=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(aa),va=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(aa),ya=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(aa),ma=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(aa),ga=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(aa),_a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(aa),ba=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(aa),wa=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(aa),Ea=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(aa),Ca=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(aa),xa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(aa),Sa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(aa),Ta=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(aa),Pa=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(aa),Oa=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(aa),ka=function(t){function e(e,n,r,i){var o=t.call(this,new sa(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return Object(xi.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(aa),Ma=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),Aa=(function(){function t(){}t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){}}(),function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}()),Na=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new Ea(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new _a(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new fa(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new da(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new va(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new Ta(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new Pa(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Oa(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new ba(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new wa(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new Ca(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new xa(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new Sa(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new ha(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new ga(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new ya(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new ma(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new ka(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new oa(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new ja(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!xt(r))return null;var i=t.substring(n+1);return new ua(new sa(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new ja(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=$o);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Ia(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new ka(new _a(new sa(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new Ca(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==Ys.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new Ca(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==Ys.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new Ca(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==Ys.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new Ca(this.span(t),e,new _a(new sa(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new xa(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new ma(this.span(t.span.start),t,e,n)}else t=new ya(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Oa(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new Sa(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new _a(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new _a(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new _a(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new _a(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new la(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new ba(this.span(t),n)}if(this.next.isCharacter($s))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new la(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new _a(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new _a(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ca(this.span(t))):(this.error("Unexpected token "+this.next),new ca(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter($s),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new wa(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new Pa(o,t,r,i):new Ta(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ca(this.span(n))):new va(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ca(this.span(n));var s=this.parseConditional();return new da(this.span(n),t,r,s)}return new fa(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index0&&e<0;){i--,e++;var a=n.charCodeAt(i);if(a==ws){o--;var u=n.substr(0,i-1).lastIndexOf(String.fromCharCode(ws));s=u>0?i-u:i}else s--}for(;i0;){var a=n.charCodeAt(i);i++,e--,a==ws?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;o]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}(),za={TAG_OPEN_START:0,TAG_OPEN_END:1,TAG_OPEN_END_VOID:2,TAG_CLOSE:3,TEXT:4,ESCAPABLE_RAW_TEXT:5,RAW_TEXT:6,COMMENT_START:7,COMMENT_END:8,CDATA_START:9,CDATA_END:10,ATTR_NAME:11,ATTR_VALUE:12,DOC_TYPE:13,EXPANSION_FORM_START:14,EXPANSION_CASE_VALUE:15,EXPANSION_CASE_EXP_START:16,EXPANSION_CASE_EXP_END:17,EXPANSION_FORM_END:18,EOF:19};za[za.TAG_OPEN_START]="TAG_OPEN_START",za[za.TAG_OPEN_END]="TAG_OPEN_END",za[za.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",za[za.TAG_CLOSE]="TAG_CLOSE",za[za.TEXT]="TEXT",za[za.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",za[za.RAW_TEXT]="RAW_TEXT",za[za.COMMENT_START]="COMMENT_START",za[za.COMMENT_END]="COMMENT_END",za[za.CDATA_START]="CDATA_START",za[za.CDATA_END]="CDATA_END",za[za.ATTR_NAME]="ATTR_NAME",za[za.ATTR_VALUE]="ATTR_VALUE",za[za.DOC_TYPE]="DOC_TYPE",za[za.EXPANSION_FORM_START]="EXPANSION_FORM_START",za[za.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",za[za.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",za[za.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",za[za.EXPANSION_FORM_END]="EXPANSION_FORM_END",za[za.EOF]="EOF";var qa=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Wa=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return Object(xi.b)(e,t),e}(Ua),Ga=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Za=/\r\n?/g,Ka=function(){function t(t){this.error=t}return t}(),Qa=function(){function t(t,e,n,r){void 0===r&&(r=$o),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Za,"\n")},t.prototype.tokenize=function(){for(;this._peek!==_s;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Ms)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(As)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ka))throw t;this.errors.push(t.error)}}return this._beginToken(za.EOF),this._endToken([]),new Ga(Wt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Bt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(Ut(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new La(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Ha(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new qa(this._currentTokenType,t,new Ha(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Wa(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ka(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Dt(_s),this._getSpan());this._peek===ws?(this._line++,this._column=0):this._peek!==ws&&this._peek!==xs&&this._column++,this._index++,this._peek=this._index>=this._length?_s:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?_s:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!zt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Dt(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;rr.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(za.COMMENT_START,t),this._requireCharCode(Ms),this._endToken([]);var n=this._consumeRawText(!1,Ms,function(){return e._attemptStr("->")});this._beginToken(za.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(za.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(za.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(za.DOC_TYPE,t),this._attemptUntilChar(Ds),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!Lt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(Ft,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!dt(this._peek))throw this._createError(Dt(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(jt);this._peek!==As&&this._peek!==Ds;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(jt),this._attemptCharCode(Is)&&(this._attemptCharCodeUntilFn(jt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(jt);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ka)return this._restorePosition(r),this._beginToken(za.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===es.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===es.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(As)&&(n._attemptCharCodeUntilFn(jt),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(jt),n._attemptCharCode(Ds)))});this._beginToken(za.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(za.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(za.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(za.ATTR_VALUE);var t;if(this._peek===Os||this._peek===Ts){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(Ft,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(As)?za.TAG_OPEN_END_VOID:za.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ds),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(za.TAG_CLOSE,t),this._attemptCharCodeUntilFn(jt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(jt),this._requireCharCode(Ds),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(za.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode($s),this._endToken([]),this._expansionCaseStack.push(za.EXPANSION_FORM_START),this._beginToken(za.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(jt),this._beginToken(za.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(jt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(za.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil($s).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(jt),this._beginToken(za.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode($s),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(jt),this._expansionCaseStack.push(za.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(za.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(jt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(za.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(za.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===_s)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Bt(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===za.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===za.EXPANSION_FORM_START},t}(),$a=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return Object(xi.b)(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Ua),Xa=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Ja=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=$o);var i=It(t,e,this.getTagDefinition,n,r),o=new Ya(i.tokens,this.getTagDefinition).build();return new Xa(o.rootNodes,i.errors.concat(o.errors))},t}(),Ya=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==za.EOF;)this._peek.type===za.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===za.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===za.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===za.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===za.TEXT||this._peek.type===za.RAW_TEXT||this._peek.type===za.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===za.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Xa(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index0)return this._errors=this._errors.concat(o.errors),null;var s=new Ha(e.sourceSpan.start,i.sourceSpan.end),a=new Ha(n.sourceSpan.start,i.sourceSpan.end);return new qo(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[za.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==za.EXPANSION_FORM_START&&this._peek.type!==za.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===za.EXPANSION_CASE_EXP_END){if(!Gt(n,za.EXPANSION_CASE_EXP_START))return this._errors.push($a.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===za.EXPANSION_FORM_END){if(!Gt(n,za.EXPANSION_FORM_START))return this._errors.push($a.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===za.EOF)return this._errors.push($a.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Uo(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===za.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===za.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==st(i)||s.isVoid||this._errors.push($a.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===za.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new Ha(t.sourceSpan.start,a),c=new Go(i,r,[],u,u,void 0);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Go(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push($a.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". 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($a.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=at(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===za.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Wo(e,r,new Ha(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!rt(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=st(n.name)),at(t,e)},t}(),tu=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'':''+t.children.map(function(t){return t.visit(n)}).join(", ")+''},t.prototype.visitPlaceholder=function(t,e){return t.value?''+t.value+"":''},t.prototype.visitIcuPlaceholder=function(t,e){return''+t.value.visit(this)+""},t}(),eu=new tu,nu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(tu),ru={Little:0,Big:1};ru[ru.Little]="Little",ru[ru.Big]="Big";var iu=function(){function t(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),ou=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),su=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),au=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),uu=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),cu=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),lu=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),pu=function(){function t(){}return t.prototype.visitText=function(t,e){return new ou(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new su(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new au(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new uu(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new cu(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new lu(t.value,t.name,t.sourceSpan)},t}(),hu=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),fu=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?es.PARSABLE_DATA:o,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),du={base:new fu({isVoid:!0}),meta:new fu({isVoid:!0}),area:new fu({isVoid:!0}),embed:new fu({isVoid:!0}),link:new fu({isVoid:!0}),img:new fu({isVoid:!0}),input:new fu({isVoid:!0}),param:new fu({isVoid:!0}),hr:new fu({isVoid:!0}),br:new fu({isVoid:!0}),source:new fu({isVoid:!0}),track:new fu({isVoid:!0}),wbr:new fu({isVoid:!0}),p:new fu({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 fu({closedByChildren:["tbody","tfoot"]}),tbody:new fu({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new fu({closedByChildren:["tbody"],closedByParent:!0}),tr:new fu({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new fu({closedByChildren:["td","th"],closedByParent:!0}),th:new fu({closedByChildren:["td","th"],closedByParent:!0}),col:new fu({requiredParents:["colgroup"],isVoid:!0}),svg:new fu({implicitNamespacePrefix:"svg"}),math:new fu({implicitNamespacePrefix:"math"}),li:new fu({closedByChildren:["li"],closedByParent:!0}),dt:new fu({closedByChildren:["dt","dd"]}),dd:new fu({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new fu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new fu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new fu({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new fu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new fu({closedByChildren:["optgroup"],closedByParent:!0}),option:new fu({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new fu({ignoreFirstLf:!0}),listing:new fu({ignoreFirstLf:!0}),style:new fu({contentType:es.RAW_TEXT}),script:new fu({contentType:es.RAW_TEXT}),title:new fu({contentType:es.ESCAPABLE_RAW_TEXT}),textarea:new fu({contentType:es.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},vu=new fu,yu={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"},mu=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=yu[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=yu[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),gu=new Ra(new ea),_u=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof zo,this._icuDepth=0,this._placeholderRegistry=new mu,this._placeholderToContent={},this._placeholderToMessage={};var i=X(this,t,{});return new iu(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=X(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=me(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]=""),new uu(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new au(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new su(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new lu(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new ou(t,e);for(var r=[],i=new su(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u element instead ("+t.sourceSpan.start+s+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Cu,"").trim(),this._openTranslatableSection(t)}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=xe(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Ou.Extract&&X(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==Ou.Extract){var h=a||l;h&&this._openTranslatableSection(t),X(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===Ou.Merge){(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Ou.Merge){var f=this._translateAttributes(t);return new Go(t.name,f,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,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=ge(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Wo&&!t[0].value)return null;var n=Se(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Ou.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=Se(t.value))});var i=[];return n.forEach(function(n){if(n.name!==Eu&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)i.push(new Wo(n.name,"",n.sourceSpan));else if(l[0]instanceof Uo){var p=l[0].value;i.push(new Wo(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof Zo?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof ou)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),Mu=function(){function t(){this.closedByParent=!1,this.contentType=es.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}(),Au=new Mu,Nu=function(t){function e(){return t.call(this,Te)||this}return Object(xi.b)(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Ja),Iu=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Du=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Object(xi.b)(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(hu),Ru=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+""},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return""},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return""},t}(),ju=new Ru,Fu=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Oe(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Lu=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Vu=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Oe(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Hu=function(){function t(t){this.value=Oe(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Bu=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Object(xi.b)(e,t),e}(Hu),Uu=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]],zu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.write=function(t,e){var n=new qu,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Vu("context-group",{purpose:"location"});n.children.push(new Bu(10),new Vu("context",{"context-type":"sourcefile"},[new Hu(t.filePath)]),new Bu(10),new Vu("context",{"context-type":"linenumber"},[new Hu(""+t.startLine)]),new Bu(8)),e.push(new Bu(8),n)});var i=new Vu("trans-unit",{id:t.id,datatype:"html"});(o=i.children).push.apply(o,[new Bu(8),new Vu("source",{},n.serialize(t.nodes))].concat(e)),t.description&&i.children.push(new Bu(8),new Vu("note",{priority:"1",from:"description"},[new Hu(t.description)])),t.meaning&&i.children.push(new Bu(8),new Vu("note",{priority:"1",from:"meaning"},[new Hu(t.meaning)])),i.children.push(new Bu(6)),r.push(new Bu(6),i);var o});var i=new Vu("body",{},r.concat([new Bu(4)])),o=new Vu("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Bu(4),i,new Bu(2)]),s=new Vu("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Bu(2),o,new Bu]);return Pe([new Fu({version:"1.0",encoding:"UTF-8"}),new Bu,s,new Bu])},e.prototype.load=function(t,e){var n=new Wu,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new Gu;if(Object.keys(o).forEach(function(t){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;s.push.apply(s,i),a[t]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Zt(t)},e}(Iu),qu=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Hu(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Hu("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Hu(e+" {")].concat(t.cases[e].visit(n),[new Hu("} ")]))}),r.push(new Hu("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=ke(t.tag);if(t.isVoid)return[new Vu("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var r=new Vu("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),i=new Vu("x",{id:t.closeName,ctype:n,"equiv-text":""});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Vu("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Vu("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Wu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Nu).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(X(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._unitMlString=a;break;case"file":var u=t.attrs.find(function(t){return"target-language"===t.name});u&&(this._locale=u.value),X(this,t.children,null);break;default:X(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),Gu=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Nu).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:X(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ou(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new cu("",n.value,t.sourceSpan);this._addError(t,' misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return X(this,t.cases).forEach(function(e){n[e.value]=new su(e.nodes,t.sourceSpan)}),new au(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),Zu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.write=function(t,e){var n=new Ku,r=[];t.forEach(function(t){var e=new Vu("unit",{id:t.id}),i=new Vu("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new Bu(8),new Vu("note",{category:"description"},[new Hu(t.description)])),t.meaning&&i.children.push(new Bu(8),new Vu("note",{category:"meaning"},[new Hu(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new Bu(8),new Vu("note",{category:"location"},[new Hu(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Bu(6)),e.children.push(new Bu(6),i);var o=new Vu("segment");o.children.push(new Bu(8),new Vu("source",{},n.serialize(t.nodes)),new Bu(6)),e.children.push(new Bu(6),o,new Bu(4)),r.push(new Bu(4),e)});var i=new Vu("file",{original:"ng.template",id:"ngi18n"},r.concat([new Bu(2)])),o=new Vu("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Bu(2),i,new Bu]);return Pe([new Fu({version:"1.0",encoding:"UTF-8"}),new Bu,o,new Bu])},e.prototype.load=function(t,e){var n=new Qu,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new $u;if(Object.keys(o).forEach(function(t){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;s.push.apply(s,i),a[t]=r}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Kt(t)},e}(Iu),Ku=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Hu(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Hu("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Hu(e+" {")].concat(t.cases[e].visit(n),[new Hu("} ")]))}),r.push(new Hu("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=Me(t.tag);if(t.isVoid){return[new Vu("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})]}var i=new Vu("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:""}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Hu("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Vu("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Vu("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Qu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Nu).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(X(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._unitMlString=a;break;case"xliff":var u=t.attrs.find(function(t){return"trgLang"===t.name});u&&(this._locale=u.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):X(this,t.children,null)}break;default:X(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),$u=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Nu).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],X(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new ou(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new cu("",r.value,t.sourceSpan)];this._addError(t,' misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=i.value,a=o.value,u=[];return u.concat.apply(u,[new cu("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new cu("",a,t.sourceSpan)]))}this._addError(t,' misses the "equivEnd" attribute')}else this._addError(t,' misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return X(this,t.cases).forEach(function(e){n[e.value]=new su(e.nodes,t.sourceSpan)}),new au(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],X(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),Xu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.write=function(t,e){var n=new Yu,r=new Ju,i=new Vu("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Vu("source",{},[new Hu(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Bu(2),new Vu("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new Bu),Pe([new Fu({version:"1.0",encoding:"UTF-8"}),new Bu,new Lu("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new Bu,n.addDefaultExamples(i),new Bu])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return Ae(t)},e.prototype.createNameMapper=function(t){return new Du(t,Ne)},e}(Iu),Ju=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Hu(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Hu("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Hu(e+" {")].concat(t.cases[e].visit(n),[new Hu("} ")]))}),r.push(new Hu("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Vu("ex",{},[new Hu("<"+t.tag+">")]),r=new Vu("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Vu("ex",{},[new Hu("")]),o=new Vu("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Vu("ex",{},[new Hu("{{"+t.value+"}}")]);return[new Vu("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Vu("ex",{},[new Hu("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Vu("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Yu=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Hu(t.attrs.name||"...");t.children=[new Vu("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new ec,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new nc;if(Object.keys(o).forEach(function(t){Ie(a,t,function(){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return r})}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ae(t)},e.prototype.createNameMapper=function(t){return new Du(t,Ne)},e}(Iu),ec=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Nu).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t," elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),X(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content,u=a.slice(o,s);this._msgIdToHtml[i]=u}}else this._addError(t,' misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),nc=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Nu).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:X(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ou(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return X(this,t.cases).forEach(function(e){n[e.value]=new su(e.nodes,t.sourceSpan)}),new au(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new cu("",n.value,t.sourceSpan);this._addError(t,' misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),rc=function(t){function e(){return t.call(this,me)||this}return Object(xi.b)(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=$o),t.prototype.parse.call(this,e,n,r,i)},e}(Ja),ic=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=io.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new oc(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),oc=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new rc).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+""},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===io.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===io.Warning){var o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var s=e.map(function(t){return t.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},t.prototype._addError=function(t,e){this._errors.push(new wu(t.sourceSpan,e))},t}(),sc=function(){function t(t,e,n,r,i){if(void 0===r&&(r=io.Warning),this._htmlParser=t,e){var o=De(n);this._translationBundle=ic.load(e,"i18n",o,r,i)}else this._translationBundle=new ic({},null,Zt,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=$o);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new Xa(i.rootNodes,i.errors):we(i.rootNodes,this._translationBundle,r,[],{})},t}(),ac=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,uc=/\.ngfactory\.|\.ngsummary\./,cc=/\.ngsummary\./,lc=/NgSummary$/,pc=/\u0275\d+/,hc="@angular/core",fc=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:hc},t.ElementRef={name:"ElementRef",moduleName:hc},t.NgModuleRef={name:"NgModuleRef",moduleName:hc},t.ViewContainerRef={name:"ViewContainerRef",moduleName:hc},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:hc},t.QueryList={name:"QueryList",moduleName:hc},t.TemplateRef={name:"TemplateRef",moduleName:hc},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:hc},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:hc},t.ComponentFactory={name:"ComponentFactory",moduleName:hc},t.ComponentRef={name:"ComponentRef",moduleName:hc},t.NgModuleFactory={name:"NgModuleFactory",moduleName:hc},t.createModuleFactory={name:"ɵcmf",moduleName:hc},t.moduleDef={name:"ɵmod",moduleName:hc},t.moduleProviderDef={name:"ɵmpd",moduleName:hc},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:hc},t.Injector={name:"Injector",moduleName:hc},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:hc},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:hc},t.SecurityContext={name:"SecurityContext",moduleName:hc},t.LOCALE_ID={name:"LOCALE_ID",moduleName:hc},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:hc},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:hc},t.interpolate={name:"ɵinterpolate",moduleName:hc},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:hc},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:hc},t.Renderer={name:"Renderer",moduleName:hc},t.viewDef={name:"ɵvid",moduleName:hc},t.elementDef={name:"ɵeld",moduleName:hc},t.anchorDef={name:"ɵand",moduleName:hc},t.textDef={name:"ɵted",moduleName:hc},t.directiveDef={name:"ɵdid",moduleName:hc},t.providerDef={name:"ɵprd",moduleName:hc},t.queryDef={name:"ɵqud",moduleName:hc},t.pureArrayDef={name:"ɵpad",moduleName:hc},t.pureObjectDef={name:"ɵpod",moduleName:hc},t.purePipeDef={name:"ɵppd",moduleName:hc},t.pipeDef={name:"ɵpid",moduleName:hc},t.nodeValue={name:"ɵnov",moduleName:hc},t.ngContentDef={name:"ɵncd",moduleName:hc},t.unwrapValue={name:"ɵunv",moduleName:hc},t.createRendererType2={name:"ɵcrt",moduleName:hc},t.RendererType2={name:"RendererType2",moduleName:hc},t.ViewDefinition={name:"ɵViewDefinition",moduleName:hc},t.createComponentFactory={name:"ɵccf",moduleName:hc},t}(),dc={OnInit:0,OnDestroy:1,DoCheck:2,OnChanges:3,AfterContentInit:4,AfterContentChecked:5,AfterViewInit:6,AfterViewChecked:7};dc[dc.OnInit]="OnInit",dc[dc.OnDestroy]="OnDestroy",dc[dc.DoCheck]="DoCheck",dc[dc.OnChanges]="OnChanges",dc[dc.AfterContentInit]="AfterContentInit",dc[dc.AfterContentChecked]="AfterContentChecked",dc[dc.AfterViewInit]="AfterViewInit",dc[dc.AfterViewChecked]="AfterViewChecked";var vc=[dc.OnInit,dc.OnDestroy,dc.DoCheck,dc.OnChanges,dc.AfterContentInit,dc.AfterContentChecked,dc.AfterViewInit,dc.AfterViewChecked],yc=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),mc=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(yc.lastIndex=0;n=yc.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r":"<"+t+e+n+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e1&&(n=new _c(t),this._listContexts.push(n));for(var r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!gc.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),wc="ngComponentType",Ec=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+M(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof Mo?this._staticSymbolCache.get(Re(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,L(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,H(t))},t.prototype.getHostComponentType=function(t){var e=j({reference:t})+"_Host";if(t instanceof Mo)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof Mo?this._staticSymbolCache.get(Re(t.filePath),V(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof Mo)return this._staticSymbolCache.get(Re(e.filePath),B(e));var i=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(fc.createComponentFactory)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){t instanceof Mo||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=mc.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Fo.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new jo({encapsulation:Ii.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:Di.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:Ii.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=A(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.annotation,s=i.metadata,a=function(t){var n=new Fo({isHost:!1,type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,componentViewType:s.componentViewType,rendererType:s.rendererType,componentFactory:s.componentFactory,template:t});return t&&r.initComponentFactory(s.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(s.isComponent){var u=s.template,c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,o),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation,preserveWhitespaces:u.preserveWhitespaces});return N(c)&&n?(this._reportError(nn(e),e),null):ao.then(c,a)}return a(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=A(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(Ri.isTypeOf(r)){var o=r;J("styles",o.styles),J("styleUrls",o.styleUrls),Y("interpolation",o.interpolation);var s=o.animations;i=new jo({encapsulation:S(o.encapsulation),template:S(o.template),templateUrl:S(o.templateUrl),htmlAst:null,styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:S(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:S(r.preserveWhitespaces)})}var a=null,u=[],c=[],l=r.selector;if(Ri.isTypeOf(r)){var o=r;a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+en(t)+'"',[],t)),o.entryComponents&&(c=Je(o.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())}else l||(this._reportError(T("Directive "+en(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+en(t)+'"',[],t));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),f=this._getQueriesMetadata(r.queries,!0,t));var d=Fo.create({isHost:!1,selector:l,exportAs:S(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(T("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+en(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Do.Directive);return e||this._reportError(T("Illegal state: Could not load the summary for directive "+en(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Do.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Do.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Do.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Do.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e){var n=this;void 0===e&&(e=!0),t=A(t);var r=this._ngModuleCache.get(t);if(r)return r;var i=this._ngModuleResolver.resolve(t,e);if(!i)return null;var o=[],s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[];i.imports&&Je(i.imports).forEach(function(e){var r=void 0;if(Ye(e))r=e;else if(e&&e.ngModule){var i=e;r=i.ngModule,i.providers&&l.push.apply(l,n._getProvidersMetadata(i.providers,p,"provider for the NgModule '"+en(r)+"'",[],e))}if(!r)return void n._reportError(T("Unexpected value '"+en(e)+"' imported by the module '"+en(t)+"'"),t);if(!n._checkSelfImport(t,r)){var o=n.getNgModuleSummary(r);if(!o)return void n._reportError(T("Unexpected "+n._getTypeDescriptor(e)+" '"+en(e)+"' imported by the module '"+en(t)+"'. Please add a @NgModule annotation."),t);u.push(o)}}),i.exports&&Je(i.exports).forEach(function(e){if(!Ye(e))return void n._reportError(T("Unexpected value '"+en(e)+"' exported by the module '"+en(t)+"'"),t);var r=n.getNgModuleSummary(e);r?c.push(r):s.push(n._getIdentifierMetadata(e))});var d=this._getTransitiveNgModuleMetadata(u,c);i.declarations&&Je(i.declarations).forEach(function(e){if(!Ye(e))return void n._reportError(T("Unexpected value '"+en(e)+"' declared by the module '"+en(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n.isDirective(e))d.addDirective(r),o.push(r),n._addTypeToModule(e,t);else{if(!n.isPipe(e))return void n._reportError(T("Unexpected "+n._getTypeDescriptor(e)+" '"+en(e)+"' declared by the module '"+en(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);d.addPipe(r),d.pipes.push(r),a.push(r),n._addTypeToModule(e,t)}});var v=[],y=[];return s.forEach(function(e){if(d.directivesSet.has(e.reference))v.push(e),d.addExportedDirective(e);else{if(!d.pipesSet.has(e.reference))return void n._reportError(T("Can't export "+n._getTypeDescriptor(e.reference)+" "+en(e.reference)+" from "+en(t)+" as it was neither declared nor imported!"),t);y.push(e),d.addExportedPipe(e)}}),i.providers&&l.push.apply(l,this._getProvidersMetadata(i.providers,p,"provider for the NgModule '"+en(t)+"'",[],t)),i.entryComponents&&p.push.apply(p,Je(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&Je(i.bootstrap).forEach(function(e){if(!Ye(e))return void n._reportError(T("Unexpected value '"+en(e)+"' used in the bootstrap property of module '"+en(t)+"'"),t);h.push(n._getIdentifierMetadata(e))}),p.push.apply(p,h.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&f.push.apply(f,Je(i.schemas)),r=new Vo({type:this._getTypeMetadata(t),providers:l,entryComponents:p,bootstrapComponents:h,schemas:f,declaredDirectives:o,exportedDirectives:v,declaredPipes:a,exportedPipes:y,importedModules:u,exportedModules:c,transitiveModule:d,id:i.id||null}),p.forEach(function(t){return d.addEntryComponent(t)}),l.forEach(function(t){return d.addProvider(t,r.type)}),d.addModule(r.type),this._ngModuleCache.set(t,r),r},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(T("'"+en(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Ye(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);if(n&&n!==e)return void this._reportError(T("Type "+en(t)+" is part of the declarations of 2 modules: "+en(n)+" and "+en(e)+"! Please consider moving "+en(t)+" to a higher module that imports "+en(n)+" and "+en(e)+". You can also create a new NgModule that exports and includes "+en(t)+" then import that NgModule in "+en(n)+" and "+en(e)+"."),e);this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Ho,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=z(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=A(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return Wi.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Do.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Do.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:Ke(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=A(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(T("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+en(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Do.Pipe);return e||this._reportError(T("Illegal state: Could not load the summary for pipe "+en(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=A(t);var e=this._pipeResolver.resolve(t),n=new Lo({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=e||this._reflector.parameters(t)||[],s=o.map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){Ki.isTypeOf(t)?n=!0:Gi.isTypeOf(t)?o=!0:Zi.isTypeOf(t)?s=!0:qi.isTypeOf(t)?a=!0:Pi.isTypeOf(t)?(e=!0,u=t.attributeName):Si.isTypeOf(t)?u=t.token:Ti.isTypeOf(t)||t instanceof Mo?u=t:Ye(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var a=s.map(function(t){return t?en(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+en(t)+": ("+a+").";n||this._config.strictInjectionParameters?this._reportError(T(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v6.x")}return s},t.prototype._getTokenMetadata=function(t){t=A(t);return"string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{s=A(s);var u=void 0;if(s&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new Bo(s.provide,s);else{if(!Ye(s)){if(void 0===s)return void o._reportError(T("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(z(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(z(e));if(!i||(t===So.Directive||t===So.PublicService)&&i.providerType===So.PrivateService||(t===So.PrivateService||t===So.PublicService)&&i.providerType===So.Builtin)return null;var o=this._transformedProviders.get(z(e));if(o)return o;if(null!=this._seenProviders.get(z(e)))return this.viewContext.errors.push(new Tl("Cannot instantiate cyclic dependency! "+U(e),this._sourceSpan)),null;this._seenProviders.set(z(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return _n(t,{useExisting:o,useValue:e,deps:s})});return o=bn(i,{eager:n,providers:s}),this._transformedProviders.set(z(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===So.Directive||t===So.Component){if(z(e.token)===this.viewContext.reflector.resolveExternalReference(fc.Renderer)||z(e.token)===this.viewContext.reflector.resolveExternalReference(fc.ElementRef)||z(e.token)===this.viewContext.reflector.resolveExternalReference(fc.ChangeDetectorRef)||z(e.token)===this.viewContext.reflector.resolveExternalReference(fc.TemplateRef))return e;z(e.token)===this.viewContext.reflector.resolveExternalReference(fc.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(z(e.token)===this.viewContext.reflector.resolveExternalReference(fc.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(So.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===z(e.token)||null!=this.viewContext.viewProviders.get(z(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Tl("No provider for "+U(e.token),this._sourceSpan)),o},t}(),kl=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){En([{token:{identifier:t},useClass:t}],So.PublicService,!0,r,i._errors,i._allProviders)}),En(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),So.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(z(t));if(!r)return null;var i=this._transformedProviders.get(z(t));if(i)return i;if(null!=this._seenProviders.get(z(t)))return this._errors.push(new Tl("Cannot instantiate cyclic dependency! "+U(t),r.sourceSpan)),null;this._seenProviders.set(z(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return _n(t,{useExisting:o,useValue:i,deps:s})});return i=bn(r,{eager:e,providers:o}),this._transformedProviders.set(z(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(z(t.token)===this.reflector.resolveExternalReference(fc.Injector)||z(t.token)===this.reflector.resolveExternalReference(fc.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Tl("No provider for "+U(t.token),n))),i},t}(),Ml=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return fn(t.map(function(t){return C(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new il(e,C(t[e],n,null),i.has(e)))}),new ol(r,e)},t.prototype.visitPrimitive=function(t,e){return gn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Rc?t:this.ctx.importExpr(t)},t}(),Al=function(){function t(t){this.ngModuleFactoryVar=t}return t}(),Nl=cn("_l"),Il=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=Nt("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,s=new kl(this.reflector,e,n,r),a=[In(this.reflector,t,0,i)].concat(s.parse().map(function(e){return Pn(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return ln(fc.moduleProviderDef).callFn([gn(r),i,e,n])}),u=ln(fc.moduleDef).callFn([fn(a)]),c=mn([new Jc(Nl.name)],[new dl(u)],Nc),l=j(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,ln(fc.createModuleFactory).callFn([t.importExpr(e.type.reference),fn(o.map(function(e){return t.importExpr(e.reference)})),c])),e.id){var p=ln(fc.RegisterModuleFactoryFn).callFn([gn(e.id),cn(l)]).toStmt();t.statements.push(p)}return new Al(l)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,al)},t.prototype._createNgModuleFactory=function(t,e,n){var r=j({reference:e})+"NgFactory",i=cn(r).set(n).toDeclStmt(pn(fc.NgModuleFactory,[hn(t.importExpr(e))],[xc.Const]),[cl.Final,cl.Exported]);t.statements.push(i)},t}(),Dl=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Bi.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=pt(this._reflector.annotations(t),Bi.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+M(t)+"'.");return null},t}(),Rl=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Ul(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ln(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new Rl(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;or)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),ql=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case jc.Super:n="super";break;case jc.This:n="this";break;case jc.CatchError:n=Hl.name;break;case jc.CatchStack:n=Bl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Fn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Dc.Equals:n="==";break;case Dc.Identical:n="===";break;case Dc.NotEquals:n="!=";break;case Dc.NotIdentical:n="!==";break;case Dc.And:n="&&";break;case Dc.Or:n="||";break;case Dc.Plus:n="+";break;case Dc.Minus:n="-";break;case Dc.Divide:n="/";break;case Dc.Multiply:n="*";break;case Dc.Modulo:n="%";break;case Dc.Lower:n="<";break;case Dc.LowerEquals:n="<=";break;case Dc.Bigger:n=">";break;case Dc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,Fn(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Wl=(function(){function t(){}t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new Wl(i),s=zl.createRoot();o.visitAllStatements(e,s);var a=n?n.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");a.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){a.push("import * as "+t+" from '"+e+"';")});var u=r?s.toSourceMapGenerator(t,a.length).toJsComment():"",c=a.concat([s.toSource(),u]);return u&&c.push(""),s.setPreambleLineCount(a.length),{sourceText:c.join("\n"),context:s}},t.prototype.emitStatements=function(t,e,n){return void 0===n&&(n=""),this.emitStatementsAndContext(t,e,n).sourceText}}(),function(t){function e(e){var n=t.call(this,!1)||this;return n.referenceFilter=e,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Object(xi.b)(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Nc?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(cl.Exported)&&t.value instanceof Gc&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(cl.Exported)&&e.print(t,"export "),t.hasModifier(cl.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(cl.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(cl.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(cl.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(cl.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(cl.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Hl.name+") {"),e.incIndent();var n=[Bl.set(Hl.prop("stack",null)).toDeclStmt(null,[cl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Tc.Bool:n="boolean";break;case Tc.Dynamic:n="any";break;case Tc.Function:n="Function";break;case Tc.Number:case Tc.Int:n="number";break;case Tc.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bc.ConcatArray:e="concat";break;case Bc.SubscribeObservable:e="subscribe";break;case Bc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))return void n.print(null,"(null as any)");if(o){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}if(n.print(null,i),this.typeExpression>0){(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==Nc&&(e.print(null,":"),this.visitType(t,e,n))},e}(ql)),Gl=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(A(t));return e&&e.some(ji.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(A(t));if(n){var r=pt(n,ji.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+M(t));return null},t}(),Zl={};Hn($i.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Hn($i.STYLE,["*|style"]),Hn($i.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"]),Hn($i.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"]);var Kl=function(){function t(){}return t}(),Ql="boolean",$l="number",Xl="string",Jl="object",Yl=["[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:|"],tp={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},ep=function(t){function e(){var e=t.call(this)||this;return e._schema={},Yl.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Ql;break;case"#":n[t.substring(1)]=$l;break;case"%":n[t.substring(1)]=Jl;break;default:n[t]=Xl}})}),e}return Object(xi.b)(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===zi.name}))return!0;if(t.indexOf("-")>-1){if(rt(t)||it(t))return!1;if(n.some(function(t){return t.name===Ui.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===zi.name}))return!0;if(t.indexOf("-")>-1){if(rt(t)||it(t))return!0;if(e.some(function(t){return t.name===Ui.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=Zl[t+"|"+e];return r||((r=Zl["*|"+e])||$i.NONE)},e.prototype.getMappedPropName=function(t){return tp[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}}return{error:!1}},e.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}}return{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return _(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Bn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},e}(Kl),np=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=zn(t);return t=Un(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(ip,function(){for(var t=[],e=0;e-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(ap,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return dp.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return qn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new Pp(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(vp)}).map(function(t){var o=t[0],s=t.slice(1);return[function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t}(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+yp,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(mp.lastIndex=0,mp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(fp,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(mp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(t){for(var e=[],n=1;n-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(mp,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new rp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(hp)>-1,f=!h;null!==(u=p.exec(t));){var d=u[1],v=t.slice(l,u.index).trim();f=f||v.indexOf(hp)>-1;c+=(f?s(v):v)+" "+d+" ",l=p.lastIndex}var y=t.substring(l);return f=f||y.indexOf(hp)>-1,c+=f?s(y):y,a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(_p,up).replace(gp,ap)},t}(),rp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),ip=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,op=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,sp=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,ap="-shadowcsshost",up="-shadowcsscontext",cp=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",lp=new RegExp("("+ap+cp,"gim"),pp=new RegExp("("+up+cp,"gim"),hp=ap+"-no-combinator",fp=/-shadowcsshost-no-combinator([^\s]*)/,dp=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],vp=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,yp="([>\\s~+[.,{:][\\s\\S]*)?$",mp=/-shadowcsshost/gim,gp=/:host/gim,_p=/:host-context/gim,bp=/\/\*\s*[\s\S]*?\*\//g,wp=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Ep=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Cp=/([{}])/g,xp="{",Sp="}",Tp="%BLOCK%",Pp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Op=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),kp=function(){function t(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}return t}(),Mp=function(){function t(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),Ap=function(){function t(t){this._urlResolver=t,this._shadowCss=new np}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Ro({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:F(e.type)}),this.needsStyleShim(e),!0)},t.prototype.compileStyles=function(t,e,n,r){return void 0===r&&(r=this.needsStyleShim(e)),this._compileStyles(t,e,n,r,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===Ii.Emulated},t.prototype._compileStyles=function(t,e,n,r,i){var o=this,s=n.styles.map(function(t){return gn(o._shimIfNeeded(t,r))}),a=[];n.styleUrls.forEach(function(e){var n=s.length;s.push(null),a.push(new kp(Gn(null),e,function(e){return s[n]=t.importExpr(e)}))});var u=Gn(i?e:null),c=cn(u).set(fn(s,new kc(Ac,[xc.Const]))).toDeclStmt(null,i?[cl.Final]:[cl.Final,cl.Exported]);return t.statements.push(c),new Mp(t,u,a,r,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}(),Np="ngPreserveWhitespaces",Ip=new Set(["pre","template","textarea","script","style"]),Dp=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",Rp=new RegExp("[^"+Dp+"]"),jp=new RegExp("["+Dp+"]{2,}","g"),Fp=function(){function t(){}return t.prototype.visitElement=function(t,e){return Ip.has(t.name)||Zn(t.attrs)?new Go(t.name,X(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Go(t.name,t.attrs,X(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==Np?t:null},t.prototype.visitText=function(t,e){return t.value.match(Rp)?new Uo(Kn(t.value).replace(jp," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Lp=["zero","one","two","few","many","other"],Vp=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Hp=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(xi.b)(e,t),e}(Ua),Bp=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Go(t.name,t.attrs,X(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?Xn(t,this.errors):Jn(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Up={DEFAULT:0,LITERAL_ATTR:1,ANIMATION:2};Up[Up.DEFAULT]="DEFAULT",Up[Up.LITERAL_ATTR]="LITERAL_ATTR",Up[Up.ANIMATION]="ANIMATION";var zp=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===Up.LITERAL_ATTR,this.isAnimation=this.type===Up.ANIMATION}return t}(),qp=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),s=tr(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),c=i.substring(a+1);i=at(u,c)}r=Po.Attribute}else"class"==o[0]?(i=o[1],r=Po.Class,s=[$i.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=Po.Style,s=[$i.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=tr(this._schemaRegistry,t,i,!1),r=Po.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new yo(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Yn(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=w(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new mo(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=b(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new mo(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof ca?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ba.ERROR),this._targetErrors.push(new Ua(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n element is deprecated. Use instead",Xp={},Jp=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Object(xi.b)(e,t),e}(Ua),Yp=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),th=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===Ba.WARNING}).filter(er(["The template attribute is deprecated. Use an ng-template element instead.",$p])),c=a.errors.filter(function(t){return t.level===Ba.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0){throw T("Template parse errors:\n"+c.join("\n"),c)}return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=Qn(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var u=sr(n),c=sr(r),l=new Pl(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new qp(this._exprParser,p,this._schemaRegistry,c,s),f=new eh(this._reflector,this._config,l,u,h,this._schemaRegistry,i,s);o=X(f,t.rootNodes,oh),s.push.apply(s,l.errors),a.push.apply(a,h.getUsedPipes())}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new Yp(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=I(t,o)}),new Yp(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=$n(t.rootNodes);n.push.apply(n,r.errors),t=new Xa(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Qo.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Jp('Reference "#'+r+'" is defined several times',t.sourceSpan,Ba.ERROR);e.push(i)}})})},t}(),eh=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new gc,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=mc.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Qp),r=Kn(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new fo(i,n,t.sourceSpan):new ho(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new vo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=ut(t);if(o.type===fs.SCRIPT||o.type===fs.STYLE)return null;if(o.type===fs.STYLESHEET&&tt(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,v=[],y=ur(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Ba.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,Ba.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||m||(v.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=ir(i,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],E=new Set,C=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,E),x=this._createElementPropertyAsts(t.name,a,E),S=e.isTemplateElement||d,T=new Ol(this.providerViewContext,e.providerContext,S,C,v,w,y,r,t.sourceSpan),P=X(o.nonBindable?sh:this,t.children,ih.create(y,C,y?e.providerContext:T));T.afterElement();var O,k=null!=o.projectAs?mc.parse(o.projectAs)[0]:m,M=e.findNgContentIndex(k);if(o.type===fs.NG_CONTENT)t.children&&!t.children.every(or)&&this._reportError(" element cannot have content.",t.sourceSpan),O=new To(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,x,t.sourceSpan),O=new wo(v,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(C,t.sourceSpan);var A=d?null:e.findNgContentIndex(k);O=new bo(i,v,x,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:A,t.sourceSpan,t.endSourceSpan||null)}if(d){var N=this.contentQueryStartId,I=ir(Zp,h),D=this._parseDirectives(this.selectorMatcher,I).directives,R=new Set,j=this._createDirectiveAsts(!0,t.name,D,p,[],t.sourceSpan,[],R),F=this._createElementPropertyAsts(t.name,p,R);this._assertNoComponentsNorElementBindingsOnTemplate(j,F,t.sourceSpan);var L=new Ol(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,N,t.sourceSpan);L.afterElement(),O=new wo([],[],[],f,L.transformedDirectiveAsts,L.transformProviders,L.transformedHasViewContainer,L.queryMatches,[O],M,t.sourceSpan)}return O},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Gp),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){var h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on ng-template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,o)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new _o(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new rh(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Ha(o.start,o.end,"Directive "+j(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new go(e.name,We(t.type.reference),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new Co(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=Ge(u.reflector,fc.TemplateRef)),s.push(new go(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),ar(s.expression)||n.push(new Eo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return j(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);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.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.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)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.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".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===Po.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.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.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' 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."),n._reportError(r,e.sourceSpan)}return!ar(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ba.ERROR),this._targetErrors.push(new Ua(e,t,n))},t}(),nh=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=ut(t);if(n.type===fs.SCRIPT||n.type===fs.STYLE||n.type===fs.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=ir(t.name,r),o=e.findNgContentIndex(i),s=X(this,t.children,oh);return new bo(t.name,X(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new vo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Qp);return new ho(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),rh=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==nr(t.exportAs).indexOf(this.value)},t}(),ih=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new gc,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?e[0]:null},t}(),oh=new ih(!0,new gc,null,null),sh=new nh,ah=function(){function t(){}return t.event=cn("$event"),t}(),uh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),ch=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),lh={Statement:0,Expression:1};lh[lh.Statement]="Statement",lh[lh.Expression]="Expression";var ph=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Object(xi.b)(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new dh(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new dh(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new dh(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Na),hh=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Dc.Plus;break;case"-":n=Dc.Minus;break;case"*":n=Dc.Multiply;break;case"/":n=Dc.Divide;break;case"%":n=Dc.Modulo;break;case"&&":n=Dc.And;break;case"||":n=Dc.Or;break;case"==":n=Dc.Equals;break;case"!=":n=Dc.NotEquals;break;case"===":n=Dc.Identical;break;case"!==":n=Dc.NotIdentical;break;case"<":n=Dc.Lower;break;case">":n=Dc.Bigger;break;case"<=":n=Dc.LowerEquals;break;case">=":n=Dc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return gr(e,new tl(n,this._visit(t.left,lh.Expression),this._visit(t.right,lh.Expression)))},t.prototype.visitChain=function(t,e){return yr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return gr(e,this._visit(t.condition,lh.Expression).conditional(this._visit(t.trueExp,lh.Expression),this._visit(t.falseExp,lh.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,lh.Expression);return n=t instanceof dh?t.converter(r):this._visit(t.target,lh.Expression).callFn(r),gr(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return mr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){mr(e,t);for(var n=[gn(t.expressions.length)],r=0;r0?Ac:hn(e.importExpr(this.component.type.reference)),this.viewName=L(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var r=Mr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var i=e+1,o=t.first?0:1,s=134217728|Nr(r,i,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:ln(fc.queryDef).callFn([gn(s),gn(i),new ol([new il(t.propertyName,gn(o),!1)])])}})})}I(this,e),this.parent&&(0===e.length||Cr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:ln(fc.anchorDef).callFn([gn(0),al,al,gn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==Di.OnPush||(a|=2);var u=new hl(this.viewName,[new Jc(Eh.name)],[new dl(ln(fc.viewDef).callFn([gn(a),fn(i),s,o]))],pn(fc.ViewDefinition),0===this.embeddedViewIndex?[cl.Exported]:[]);return t.push(u),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&sn(t).has(Sh.name)&&n.push(Sh.set(Ch.prop("component")).toDeclStmt(this.compType)),e=mn([new Jc(xh.name,Nc),new Jc(Ch.name,Nc)],n.concat(t),Nc)}else e=al;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:ln(fc.ngContentDef).callFn([gn(t.ngContentIndex),gn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:ln(fc.textDef).callFn([gn(-1),gn(t.ngContentIndex),fn([gn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value,o=i.ast,s=o.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:Sh,value:e})}),a=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:ln(fc.textDef).callFn([gn(a),gn(t.ngContentIndex),fn(o.strings.map(function(t){return gn(t)}))]),updateRenderer:s}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:ln(fc.anchorDef).callFn([gn(o),s,gn(t.ngContentIndex),gn(c),n._createElementHandleEventFn(r,a),cn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=rt(t.name)?null:t.name,o=this._visitElementOrTemplate(r,t),s=o.flags,a=o.usedEvents,u=o.queryMatchesExpr,c=o.hostBindings,l=o.hostEvents,p=[],h=[],f=[];if(i){var d=t.inputs.map(function(t){return{context:Sh,inputAst:t,dirAst:null}}).concat(c);d.length&&(h=d.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=d.map(function(t){return xr(t.inputAst,t.dirAst)})),f=a.map(function(t){var e=t[0],n=t[1];return fn([gn(e),gn(n)])})}I(this,t.children);var v=this.nodes.length-r-1,y=t.directives.find(function(t){return t.directive.isComponent}),m=al,g=al;y&&(g=this.outputCtx.importExpr(y.directive.componentViewType),m=this.outputCtx.importExpr(y.directive.rendererType));var _=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|s,nodeDef:ln(fc.elementDef).callFn([gn(_),gn(s),u,gn(t.ngContentIndex),gn(v),gn(i),i?Sr(t):al,p.length?fn(p):al,f.length?fn(f):al,n._createElementHandleEventFn(r,l),g,m]),updateRenderer:h}}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=Ar(t,null),n=e.name,r=e.target;i.set(Ir(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=Ar(e,t),r=n.name,o=n.target;i.set(Ir(o,r),[o,r])})});var o=[],s=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,a){var u=void 0,c=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===z(r.token)&&(u=t,c=e)}),u){var l=n._visitDirective(r,u,c,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=l.hostBindings,h=l.hostEvents;o.push.apply(o,p),s.push.apply(s,h)}else n._visitProvider(r,e.queryMatches)});var a=[];return e.queryMatches.forEach(function(t){var e=void 0;z(t.value)===n.reflector.resolveExternalReference(fc.ElementRef)?e=0:z(t.value)===n.reflector.resolveExternalReference(fc.ViewContainerRef)?e=3:z(t.value)===n.reflector.resolveExternalReference(fc.TemplateRef)&&(e=2),null!=e&&a.push(fn([gn(t.queryId),gn(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?z(e.value)===n.reflector.resolveExternalReference(fc.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,a.push(fn([gn(e.name),gn(r)])))}),e.outputs.forEach(function(t){s.push({context:Sh,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?fn(a):al,hostBindings:o,hostEvents:s}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|Nr(a,r,t.first),o=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:ln(fc.queryDef).callFn([gn(i),gn(r),new ol([new il(t.propertyName,gn(o),!1)])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,o),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,v=p.depsExpr;i.forEach(function(e){e.value&&z(e.value)===z(t.token)&&(u.refNodeIndices[e.name]=c,f.push(fn([gn(e.name),gn(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=fn([gn(e),gn(t.directiveName)]);return new il(t.directiveName,n,!1)}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new il(t,gn(e),!1))});var _=[];(e.inputs.length||(327680&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Sh,value:t.value})}));var b=ln(fc.nodeValue).callFn([Ch,gn(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),E=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}}),C=c;return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:ln(fc.directiveDef).callFn([gn(C),gn(h),f.length?fn(f):al,gn(l),d,v,y.length?new ol(y):al,m.length?new ol(m):al]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:E}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=In(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:ln(fc.providerDef).callFn([gn(t.flags),t.queryMatchExprs.length?fn(t.queryMatchExprs):al,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){z(e.value)===z(t.token)&&n.push(fn([gn(e.queryId),gn(4)]))});var r=Pn(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==ah.event.name)return ah.event;for(var e=Ch,n=this;n;n=n.parent,e=e.prop("parent").cast(Ac)){var r=n.refNodeIndices[t];if(null!=r)return ln(fc.nodeValue).callFn([e,gn(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(t,e){if(0===e){var n=ln(fc.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:ln(fc.pureArrayDef).callFn([gn(r),gn(e)])}}),function(t){return Pr(r,t)}},t.prototype._createLiteralMapConverter=function(t,e){if(0===e.length){var n=ln(fc.EMPTY_MAP);return function(){return n}}var r=dn(e.map(function(t,e){return Object(xi.a)({},t,{value:gn(e)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:ln(fc.pureObjectDef).callFn([gn(i),r])}}),function(t){return Pr(i,t)}},t.prototype._createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:ln(fc.purePipeDef).callFn([gn(i),gn(n)])}});for(var o=Ch,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(Ac);var a=s.purePipeNodeIndices[e],u=ln(fc.nodeValue).callFn([o,gn(a)]);return function(e){return Or(t.nodeIndex,t.bindingIndex,Pr(i,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=ln(fc.nodeValue).callFn([Ch,gn(c)]);return function(e){return Or(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===dc.OnDestroy&&(i|=Nn(t))});var o=e.type.diDeps.map(function(t){return An(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:ln(fc.pipeDef).callFn([gn(i),n.outputCtx.importExpr(e.type.reference),fn(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:lr({createLiteralArrayConverter:function(n){return e._createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e._createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e._createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,u=i===Sh?e:null,c=pr(u,i,o,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return an(t,r)})),un(p,r)});return(i.length||o)&&s.push(an(Pr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,u=o.updateDirectives,c=o.updateRenderer,l=o.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&i.push.apply(i,t(n,l,u,(327680&a)>0)),un(3&a?new sl([Eh.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,e){var n=this,r=[],i=0;e.forEach(function(t){var e=t.context,o=t.eventAst,s=t.dirAst,a=""+i++,u=e===Sh?n:null,c=cr(u,e,o.handler,a),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(Ph.set(p.and(Ph)).toStmt());var f=Ar(o,s),d=f.target,v=f.name,y=Ir(d,v);r.push(an(new _l(gn(y).identical(Th),h),o.sourceSpan))});var o;if(r.length>0){var s=[Ph.set(gn(!0)).toDeclStmt(Ic)];!this.component.isHost&&sn(r).has(Sh.name)&&s.push(Sh.set(Ch.prop("component")).toDeclStmt(this.compType)),o=mn([new Jc(Ch.name,Nc),new Jc(Th.name,Nc),new Jc(ah.event.name,Nc)],s.concat(r,[new dl(Ph)]),Nc)}else o=al;return o},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),kh=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=be(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:((o=this._messages).push.apply(o,i.messages),[]);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new Mh;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(i=n[r].sources).push.apply(i,e.sources):n[r]=e;var i});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new iu(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(i,this._locale)},t}(),Mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(xi.b)(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new uu(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new cu(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new lu(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(pu),Ah=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t.prototype.isEquivalent=function(t){return this.genFileUrl===t.genFileUrl&&(this.source?this.source===t.source:null!=t.stmts&&on(this.stmts,t.stmts))},t}(),Nh=function(t){function e(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return Object(xi.b)(e,t),e.prototype.addSummary=function(t){var e=this,n=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),r=this.processedSummaryBySymbol.get(t.symbol);if(n||(n={symbol:t.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(t.symbol,n),r={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),!n.metadata&&t.metadata){var i=t.metadata||{};if("class"===i.__symbolic){var o={};Object.keys(i).forEach(function(t){"decorators"!==t&&(o[t]=i[t])}),i=o}else Br(i)&&(Ur(i)||zr(i)||(i={__symbolic:"error",message:"Complex function calls are not supported."}));if(n.metadata=i,r.metadata=this.processValue(i,1),i instanceof Mo&&this.summaryResolver.isLibraryFile(i.filePath)){var s=this.symbols[this.indexBySymbol.get(i)];qe(s.name)||this.reexportedBy.set(s,t.symbol)}}if(!n.type&&t.type&&(n.type=t.type,r.type=this.processValue(t.type,0),t.type.summaryKind===Do.NgModule)){var a=t.type;a.exportedDirectives.concat(a.exportedPipes).forEach(function(t){var n=t.reference;if(e.summaryResolver.isLibraryFile(n.filePath)&&!e.unprocessedSymbolSummariesBySymbol.has(n)){var r=e.summaryResolver.resolveSummary(n);r&&e.addSummary(r)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var s=t.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||(i=n.name+"_"+r,e.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return C(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof Mo){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;r=this.loadSummary(t),r&&r.metadata instanceof Mo&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e},e}(so),Ih=function(){function t(t,e,n){this.outputCtx=t,this.symbolResolver=e,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(t,e){this.data.push({summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.push({summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){for(var e=this,n=new Map,r=0,i=t;r0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)}),r=[];return n.forEach(function(t){return t.ngModules.forEach(function(t){return r.push(e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1))})}),Promise.all(r).then(function(t){return ti(n)})},t.prototype.loadFilesSync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)});return n.forEach(function(t){return t.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)})}),ti(n)},t.prototype._createNgFactoryStub=function(t,e,n){var r=this,i=0;e.ngModules.forEach(function(e,o){r._ngModuleCompiler.createStub(t,e.type.reference);var s=e.transitiveModule.directives.map(function(t){return t.reference}).concat(e.transitiveModule.pipes.map(function(t){return t.reference}),e.importedModules.map(function(t){return t.type.reference}),e.exportedModules.map(function(t){return t.type.reference}),r._externalIdentifierReferences([fc.TemplateRef,fc.ElementRef])),a=new Map;s.forEach(function(t,e){r._host.isSourceFile(t.filePath)&&a.set(t,"_decl"+o+"_"+e)}),a.forEach(function(e,n){t.statements.push(cn(e).set(al.cast(Ac)).toDeclStmt(hn(t.importExpr(n))))}),n&Rh.TypeCheck&&e.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(t,o.type.reference.name+"_Host_"+i,e,r._metadataResolver.getHostComponentMetadata(o),[o.type],a),r._createTypeCheckBlock(t,o.type.reference.name+"_"+i,e,o,e.transitiveModule.directives,a))})}),0===t.statements.length&&qr(t)},t.prototype._externalIdentifierReferences=function(t){for(var e=[],n=0,r=t;n0||this._options.allowEmptyCodegenFiles){var l=this._codegenSourceModule(t,c);u.unshift(l)}return u},t.prototype._createSummary=function(t,e,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),u=r.map(function(t){return{summary:s._metadataResolver.getNgModuleSummary(t.type.reference),metadata:s._metadataResolver.getNgModuleMetadata(t.type.reference)}}).concat(e.map(function(t){return{summary:s._metadataResolver.getDirectiveSummary(t),metadata:s._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:s._metadataResolver.getPipeSummary(t),metadata:s._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:s._metadataResolver.getInjectableSummary(t),metadata:s._metadataResolver.getInjectableSummary(t).type}})),c=this._options.enableSummariesForJit?this._createOutputContext(He(t,!0)):null,l=Fr(t,c,this._summaryResolver,this._symbolResolver,a,u),p=l.json;l.exportAs.forEach(function(t){o.statements.push(cn(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[cl.Exported]))});var h=new Ah(t,Ve(t),p),f=[h];return c&&f.push(this._codegenSourceModule(t,c)),f},t.prototype._compileModule=function(t,e){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:Ge(this._reflector,fc.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:Ge(this._reflector,fc.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(t,e,n)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentMetadata(e),o=this._compileComponent(t,i,n,[e.type],null,r).viewClassVar,s=B(e.type.reference),a=[];for(var u in e.inputs){var c=e.inputs[u];a.push(new il(u,gn(c),!1))}var l=[];for(var u in e.outputs){var c=e.outputs[u];l.push(new il(u,gn(c),!1))}t.statements.push(cn(s).set(ln(fc.createComponentFactory).callFn([gn(e.selector),t.importExpr(e.type.reference),cn(o),new ol(a),new ol(l),fn(e.template.ngContentSelectors.map(function(t){return gn(t)}))])).toDeclStmt(pn(fc.ComponentFactory,[hn(t.importExpr(e.type.reference))],[xc.Const]),[cl.Final,cl.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this._parseTemplate(e,n,r),a=s.template,u=s.pipes,c=i?cn(i.stylesVar):fn([]),l=this._viewCompiler.compileComponent(t,e,a,c,u);return i&&Wr(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),l},t.prototype._parseTemplate=function(t,e,n){var r=this;if(this._templateAstCache.has(t.type.reference))return this._templateAstCache.get(t.type.reference);var i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),s=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)}),a=this._templateParser.parse(t,t.template.htmlAst,o,s,e.schemas,Z(e.type,t,t.template),i);return this._templateAstCache.set(t.type.reference,a),a},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r){if(void 0===r&&(r=null),!(n instanceof Mo))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var i=e._symbolResolver.getTypeArity(n)||0,o=e._symbolResolver.getImportAs(n)||n,s=o.filePath,a=o.name,u=o.members,c=e._fileNameToModuleName(s,t),l=e._fileNameToModuleName(t,t),p=c===l?null:c,h=r||[],f=i-h.length,d=h.concat(new Array(f).fill(Ac));return u.reduce(function(t,e){return t.prop(e)},ln(new Zc(p,a,null),d))}}},t.prototype._fileNameToModuleName=function(t,e){return this._summaryResolver.getKnownModuleName(t)||this._symbolResolver.getKnownModuleName(t)||this._host.fileNameToModuleName(t,e)},t.prototype._codegenStyles=function(t,e,n,r,i){var o=this._createOutputContext(Gr(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,e,n,r);return Wr(this._symbolResolver,s,r,i),this._codegenSourceModule(t,o)},t.prototype._codegenSourceModule=function(t,e){return new Ah(t,e.genFilePath,e.statements)},t.prototype.listLazyRoutes=function(t,e){function n(t,e,i){if(void 0===e&&(e=new Set),void 0===i&&(i=[]),e.has(t)||!t.name)return i;e.add(t);for(var o=Dr(r._metadataResolver.getNgModuleMetadata(t,!0),r._reflector),s=0,a=o;su.length&&u.push.apply(u,h.slice(u.length).map(function(t){return l(t)})),s.set(e,!0);for(var f=zh.build(),d=0;d0&&!e.members.length)return e;var _=e,b=u(_);return null!=b?n(_,b,r+1,a):_}if(e){if(e.__symbolic){var _=void 0;switch(e.__symbolic){case"binop":var w=l(e.left);if(ei(w))return w;var E=l(e.right);if(ei(E))return E;switch(e.operator){case"&&":return w&&E;case"||":return w||E;case"|":return w|E;case"^":return w^E;case"&":return w&E;case"==":return w==E;case"!=":return w!=E;case"===":return w===E;case"!==":return w!==E;case"<":return w":return w>E;case"<=":return w<=E;case">=":return w>=E;case"<<":return w<>":return w>>E;case"+":return w+E;case"-":return w-E;case"*":return w*E;case"/":return w/E;case"%":return w%E}return null;case"if":return l(l(e.condition)?e.thenExpression:e.elseExpression);case"pre":var C=l(e.operand);if(ei(C))return C;switch(e.operator){case"+":return C;case"-":return-C;case"!":return!C;case"~":return~C}return null;case"index":var x=n(t,e.expression,r,0),S=n(t,e.index,r,0);return x&&oi(S)?x[S]:null;case"select":var T=e.member,P=t,O=l(e.expression);if(O instanceof Mo){var k=O.members.concat(T);P=i.getStaticSymbol(O.filePath,O.name,k);var b=u(P);return null!=b?n(P,b,r+1,a):P}return O&&oi(T)?n(P,O[T],r+1,a):null;case"reference":var M=e.name,A=o.resolve(M);if(A!=zh.missing)return A;break;case"class":case"function":return t;case"new":case"call":if((_=n(t,e.expression,r+1,0))instanceof Mo){if(_===i.injectionToken||_===i.opaqueToken)return t;var N=e.arguments||[],I=i.conversionMap.get(_);if(I){var D=N.map(function(e){return n(t,e,r+1,a)}).map(function(t){return ei(t)?void 0:t});return I(t,D)}return c(_,u(_),N)}return Lh;case"error":var R=ri(e);return e.line?(R=R+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",i.reportError(si(R,t.filePath,e.line,e.character),t)):i.reportError(new Error(R),t),Lh;case"ignore":return e}return null}return ii(e,function(o,s){if(Bh.has(s)){if(s===Vh&&Hh in e){var u=l(e.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return l(o)}return n(t,o,r,a+1)}return l(o)})}return Lh}try{return l(e)}catch(e){var p=t.members.length?"."+t.members.join("."):"",h=e.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(e.fileName)throw si(h,e.fileName,e.line,e.column);throw T(h)}}var r=this,i=this,o=zh.empty,s=new Map,a=this.errorRecorder?function(t,e){try{return n(t,e,0,0)}catch(e){r.reportError(e,t)}}(t,e):n(t,e,0,0);if(!ei(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),zh=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new qh(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),qh=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Object(xi.b)(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):zh.missing},e}(zh),Wh=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Gh=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);if(e)return e;var n=this.resolvedSymbols.get(t);return n||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=Be(t.filePath);if(r!==t.filePath){var i=ze(t.name),e=this.getStaticSymbol(r,i,t.members),n=this.getImportAs(e);return n?this.getStaticSymbol(He(n.filePath),Ue(n.name),e.members):null}var o=this.summaryResolver.getImportAs(t);return o||(o=this.importAs.get(t)),o},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Fe(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof Mo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n=0?{__symbolic:"reference",name:p}:n.has(p)?o.getStaticSymbol(e,p):void 0},i}(so),a=C(r,new s,[]);return a instanceof Mo?this.createExport(t,a):new Wh(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Wh(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 4";this.reportError(new Error(i))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to "+n:""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Zh=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(je(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=Ve(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(n=null!=r,this.loadedFilePaths.set(t,n),r){var o=Lr(this.staticSymbolCache,this,t,r),s=o.moduleName,a=o.summaries,u=o.importAs;a.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s&&this.knownFileNameToModuleNames.set(t,s),u.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),Kh=function(){function t(){}return t}(),Qh=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}(),$h=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Xh=function(){function t(t){this.value=t}return t}(),Jh=function(){function t(t){this.reflector=t}return t.prototype.debugAst=function(t){return Vn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(cl.Exported)&&e.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case jc.Super:return e.instance.__proto__;case jc.This:return e.instance;case jc.CatchError:n=Yh;break;case jc.CatchStack:n=tf;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Bc.ConcatArray:n=r.concat.apply(r,i);break;case Bc.SubscribeObservable:n=r.subscribe({next:i[0]});break;case Bc.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof Fc&&r.builtin===jc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Xh(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=pi(t,e,this);return e.vars.set(t.name,n),t.hasModifier(cl.Exported)&&e.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Yh,r),n.vars.set(tf,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return this.reflector.resolveExternalReference(t.value)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return hi(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,hi(n,t.statements,e,this)),t.hasModifier(cl.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Dc.Equals:return r()==i();case Dc.Identical:return r()===i();case Dc.NotEquals:return r()!=i();case Dc.NotIdentical:return r()!==i();case Dc.And:return r()&&i();case Dc.Or:return r()||i();case Dc.Plus:return r()+i();case Dc.Minus:return r()-i();case Dc.Divide:return r()/i();case Dc.Multiply:return r()*i();case Dc.Modulo:return r()%i();case Dc.Lower:return r()i();case Dc.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===jc.This)n.print(e,"self");else{if(e.builtin===jc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Fc&&r.builtin===jc.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Hl.name+") {"),e.incIndent();var n=[Bl.set(Hl.prop("stack")).toDeclStmt(null,[cl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bc.ConcatArray:e="concat";break;case Bc.SubscribeObservable:e="subscribe";break;case Bc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(ql),nf=function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return Object(xi.b)(e,t),e.prototype.createReturnStmt=function(t){new dl(new ol(this._evalExportedVars.map(function(t){return new il(t,cn(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e0&&(n=Ci(t,n));var r=bi(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[cf.Scheme]){var o=r[cf.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}(),uf=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),cf={Scheme:1,UserInfo:2,Domain:3,Port:4,Path:5,QueryData:6,Fragment:7};cf[cf.Scheme]="Scheme",cf[cf.UserInfo]="UserInfo",cf[cf.Domain]="Domain",cf[cf.Port]="Port",cf[cf.Path]="Path",cf[cf.QueryData]="QueryData",cf[cf.Fragment]="Fragment";var lf=function(){function t(){}return t.prototype.get=function(t){return""},t}();!function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}t.prototype.extract=function(t){var e=this,n=Kr(t,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=Qo.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.fileName,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new rc,i=ui(e),o=new Ao,s=new Zh(e,o),a=new Gh(e,o,s),u=new Uh(s,a),c=new ko({defaultEncapsulation:Ii.Emulated,useJit:!1}),l=new vs({get:function(t){return e.loadResource(t)}},i,r,c),p=new ep,h=new Ec(c,r,new Dl(u),new gs(u),new Gl(u),s,p,l,console,o,u),f=new kh(r,[],{},n);return{extractor:new t(e,a,f,h),staticReflector:u}}}()},function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}e.b=r,n.d(e,"a",function(){return o});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);e.MergeMapSubscriber=u},function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber))},function(t,e,n){"use strict";var r=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)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=i},function(t,e,n){"use strict";var r=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)},i=n(60),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);e.SubjectSubscription=o},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(27),i=n(86),o=n(317),s=n(324),a=n(327),u=function(){function t(){}return t.decorators=[{type:r.E,args:[{imports:[i.a,o.a,s.a],declarations:[a.a],bootstrap:[a.a]}]}],t.ctorParameters=function(){return[]},t}()},function(t,e,n){"use strict";function r(t){return null==t||0===t.length}function i(t){return null!=t}function o(t){var e=Object(H._29)(t)?Object(U.fromPromise)(t):t;if(!Object(H._28)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function s(t,e){return e.map(function(e){return e(t)})}function a(t,e){return e.map(function(e){return e(t)})}function u(t){var e=t.reduce(function(t,e){return null!=e?Object(V.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}function c(){return/android (\d+)/.test((Object(q.c)()?Object(q.c)().getUserAgent():"").toLowerCase())}function l(t){return t.validate?function(e){return t.validate(e)}:t}function p(t){return t.validate?function(e){return t.validate(e)}:t}function h(){throw new Error("unimplemented")}function f(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function d(t){return t.split(":")[0]}function v(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function y(t){return t.split(":")[0]}function m(t,e){return e.path.concat([t])}function g(t,e){t||T(e,"Cannot find control with"),e.valueAccessor||T(e,"No value accessor for form control with"),t.validator=$.compose([t.validator,e.validator]),t.asyncValidator=$.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),b(t,e),C(t,e),w(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function _(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function b(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&E(t,e)})}function w(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&E(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}function E(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function C(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}function x(t,e){null==t&&T(e,"Cannot find control with"),t.validator=$.compose([t.validator,e.validator]),t.asyncValidator=$.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return T(t,"There is no FormControl instance attached to form control element with")}function T(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function P(t){return null!=t?$.compose(t.map(l)):null}function O(t){return null!=t?$.composeAsync(t.map(p)):null}function k(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(H._30)(e,n.currentValue)}function M(t){return mt.some(function(e){return t.constructor===e})}function A(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function N(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===nt?n=e:M(e)?(r&&T(t,"More than one built-in value accessor matches form control with"),r=e):(i&&T(t,"More than one custom value accessor matches form control with"),i=e)}),i||(r||(n||(T(t,"No valid value accessor for form control with"),null)))}function I(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function D(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof St?t.controls[e]||null:t instanceof Tt?t.at(e)||null:null},t))}function R(t){var e=F(t)?t.validators:t;return Array.isArray(e)?P(e):e||null}function j(t,e){var n=F(e)?e.asyncValidators:t;return Array.isArray(n)?O(n):n||null}function F(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function L(t){return!(t instanceof zt||t instanceof Bt||t instanceof Wt)}n.d(e,"a",function(){return he});var V=n(50),H=n(27),B=n(318),U=(n.n(B),n(320)),z=(n.n(U),n(322)),q=(n.n(z),n(86)),W=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(W),Z=new H.x("NgValidators"),K=new H.x("NgAsyncValidators"),Q=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,$=function(){function t(){}return t.min=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Q.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,i;return"string"==typeof e?(i="^"+e+"$",n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){var n=a(t,e).map(o);return z.map.call(Object(B.forkJoin)(n),u)}},t}(),X=new H.x("NgValueAccessor"),J={provide:X,useExisting:Object(H._8)(function(){return Y}),multi:!0},Y=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:H.q,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[J]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r}]},t}(),tt={provide:X,useExisting:Object(H._8)(function(){return nt}),multi:!0},et=new H.x("CompositionEventMode"),nt=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!c())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.decorators=[{type:H.q,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)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[tt]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r},{type:void 0,decorators:[{type:H.J},{type:H.v,args:[et]}]}]},t}(),rt={provide:X,useExisting:Object(H._8)(function(){return it}),multi:!0},it=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:H.q,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r}]},t}(),ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return h()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return h()},enumerable:!0,configurable:!0}),e}(W),st={provide:X,useExisting:Object(H._8)(function(){return ut}),multi:!0},at=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t.decorators=[{type:H.w}],t.ctorParameters=function(){return[]},t}(),ut=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(ot),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=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 ')},t.decorators=[{type:H.q,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[st]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r},{type:at},{type:H.y}]},t.propDecorators={name:[{type:H.z}],formControlName:[{type:H.z}],value:[{type:H.z}]},t}(),ct={provide:X,useExisting:Object(H._8)(function(){return lt}),multi:!0},lt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:H.q,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:[ct]}]}],t.ctorParameters=function(){return[{type:H.R},{type:H.r}]},t}(),pt={provide:X,useExisting:Object(H._8)(function(){return ht}),multi:!0},ht=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=H._30}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=f(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Ct),Tt=function(t){function e(e,n,r){var i=t.call(this,R(n),j(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(V.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof xt?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Ct),Pt={provide:G,useExisting:Object(H._8)(function(){return kt})},Ot=Promise.resolve(null),kt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new H.t,r.form=new St({},P(e),O(n)),r}return Object(V.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),g(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),I(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path),r=new St({});x(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Ot.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Ot.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,A(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.decorators=[{type:H.q,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Pt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={options:[{type:H.z,args:["ngFormOptions"]}]},e}(G),Mt={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 '},At=function(){function t(){}return t.modelParentException=function(){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 '+Mt.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 "+Mt.ngModelWithFormGroup)},t.formGroupNameException=function(){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 "+Mt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Mt.ngModelGroup)},t.missingNameException=function(){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: ')},t.modelGroupParentException=function(){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 "+Mt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Mt.ngModelGroup)},t}(),Nt={provide:G,useExisting:Object(H._8)(function(){return It})},It=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(V.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof kt||At.modelGroupParentException()},e.decorators=[{type:H.q,args:[{selector:"[ngModelGroup]",providers:[Nt],exportAs:"ngModelGroup"}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={name:[{type:H.z,args:["ngModelGroup"]}]},e}(gt),Dt={provide:ot,useExisting:Object(H._8)(function(){return jt})},Rt=Promise.resolve(null),jt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new xt,o._registered=!1,o.update=new H.t,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=N(o,i),o}return Object(V.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),k(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?m(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){g(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof It)&&this._parent instanceof gt?At.formGroupNameException():this._parent instanceof It||this._parent instanceof kt||At.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},e.prototype._updateValue=function(t){var e=this;Rt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Rt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e.decorators=[{type:H.q,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Dt],exportAs:"ngModel"}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[X]}]}]},e.propDecorators={name:[{type:H.z}],isDisabled:[{type:H.z,args:["disabled"]}],model:[{type:H.z,args:["ngModel"]}],options:[{type:H.z,args:["ngModelOptions"]}],update:[{type:H.K,args:["ngModelChange"]}]},e}(ot),Ft=function(){function t(){}return t.controlParentException=function(){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 "+Mt.formControlName)},t.ngModelGroupException=function(){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 '+Mt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Mt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Mt.formControlName)},t.groupParentException=function(){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 "+Mt.formGroupName)},t.arrayParentException=function(){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 "+Mt.formArrayName)},t.disabledAttrWarning=function(){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 ")},t}(),Lt={provide:ot,useExisting:Object(H._8)(function(){return Vt})},Vt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.update=new H.t,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=N(i,r),i}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Ft.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(g(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),k(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e.decorators=[{type:H.q,args:[{selector:"[formControl]",providers:[Lt],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[X]}]}]},e.propDecorators={form:[{type:H.z,args:["formControl"]}],model:[{type:H.z,args:["ngModel"]}],update:[{type:H.K,args:["ngModelChange"]}],isDisabled:[{type:H.z,args:["disabled"]}]},e}(ot),Ht={provide:G,useExisting:Object(H._8)(function(){return Bt})},Bt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new H.t,r}return Object(V.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return g(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){I(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,A(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(_(e.control,e),n&&g(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=P(this._validators);this.form.validator=$.compose([this.form.validator,t]);var e=O(this._asyncValidators);this.form.asyncValidator=$.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Ft.missingFormException()},e.decorators=[{type:H.q,args:[{selector:"[formGroup]",providers:[Ht],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={form:[{type:H.z,args:["formGroup"]}],ngSubmit:[{type:H.K}]},e}(G),Ut={provide:G,useExisting:Object(H._8)(function(){return zt})},zt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(V.b)(e,t),e.prototype._checkParentType=function(){L(this._parent)&&Ft.groupParentException()},e.decorators=[{type:H.q,args:[{selector:"[formGroupName]",providers:[Ut]}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={name:[{type:H.z,args:["formGroupName"]}]},e}(gt),qt={provide:G,useExisting:Object(H._8)(function(){return Wt})},Wt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(V.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){L(this._parent)&&Ft.arrayParentException()},e.decorators=[{type:H.q,args:[{selector:"[formArrayName]",providers:[qt]}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]}]},e.propDecorators={name:[{type:H.z,args:["formArrayName"]}]},e}(G),Gt={provide:ot,useExisting:Object(H._8)(function(){return Zt})},Zt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._added=!1,o.update=new H.t,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=N(o,i),o}return Object(V.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Ft.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),k(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof zt)&&this._parent instanceof gt?Ft.ngModelGroupException():this._parent instanceof zt||this._parent instanceof Bt||this._parent instanceof Wt||Ft.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e.decorators=[{type:H.q,args:[{selector:"[formControlName]",providers:[Gt]}]}],e.ctorParameters=function(){return[{type:G,decorators:[{type:H.J},{type:H.u},{type:H.X}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[Z]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[K]}]},{type:Array,decorators:[{type:H.J},{type:H.W},{type:H.v,args:[X]}]}]},e.propDecorators={name:[{type:H.z,args:["formControlName"]}],model:[{type:H.z,args:["ngModel"]}],update:[{type:H.K,args:["ngModelChange"]}],isDisabled:[{type:H.z,args:["disabled"]}]},e}(ot),Kt={provide:Z,useExisting:Object(H._8)(function(){return $t}),multi:!0},Qt={provide:Z,useExisting:Object(H._8)(function(){return Xt}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?$.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:H.q,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Kt],host:{"[attr.required]":'required ? "" : null'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:H.z}]},t}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(V.b)(e,t),e.prototype.validate=function(t){return this.required?$.requiredTrue(t):null},e.decorators=[{type:H.q,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Qt],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e}($t),Jt={provide:Z,useExisting:Object(H._8)(function(){return Yt}),multi:!0},Yt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?$.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:H.q,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Jt]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:H.z}]},t}(),te={provide:Z,useExisting:Object(H._8)(function(){return ee}),multi:!0},ee=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=$.minLength(parseInt(this.minlength,10))},t.decorators=[{type:H.q,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[te],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:H.z}]},t}(),ne={provide:Z,useExisting:Object(H._8)(function(){return re}),multi:!0},re=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=$.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:H.q,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[ne],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:H.z}]},t}(),ie={provide:Z,useExisting:Object(H._8)(function(){return oe}),multi:!0},oe=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=$.pattern(this.pattern)},t.decorators=[{type:H.q,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ie],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:H.z}]},t}(),se=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,i=null!=e?e.asyncValidator:null;return new St(n,r,i)},t.prototype.control=function(t,e,n){return new xt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new Tt(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof xt||t instanceof St||t instanceof Tt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t.decorators=[{type:H.w}],t.ctorParameters=function(){return[]},t}(),ae=(new H._2("5.0.3"),function(){function t(){}return t.decorators=[{type:H.q,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}()),ue=[ae,ft,yt,nt,it,lt,Y,ht,vt,ut,wt,Et,$t,ee,re,oe,Xt,Yt],ce=[jt,It,kt],le=[Vt,Bt,Zt,zt,Wt],pe=function(){function t(){}return t.decorators=[{type:H.E,args:[{declarations:ue,exports:ue}]}],t.ctorParameters=function(){return[]},t}(),he=function(){function t(){}return t.decorators=[{type:H.E,args:[{declarations:ce,providers:[at],exports:[pe,ce]}]}],t.ctorParameters=function(){return[]},t}();!function(){function t(){}t.decorators=[{type:H.E,args:[{declarations:[le],providers:[se,at],exports:[pe,le]}]}],t.ctorParameters=function(){return[]}}()},function(t,e,n){"use strict";var r=n(319);e.forkJoin=r.ForkJoinObservable.create},function(t,e,n){"use strict";var r=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)},i=n(20),o=n(126),s=n(120),a=n(128),u=n(129),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}e.c=r,n.d(e,"a",function(){return s}),e.b=i;var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n\n the source code of the demo\n
\n default:\n
\n \n
\n selected id: {{selectedId}}\n
\n checkbox:\n
\n \n
\n
\n draggable:\n
\n \n
\n
\n no dots:\n
\n \n
\n
\n large:\n
\n \n
\n
\n small:\n
\n \n
\n
\n dark theme:\n
\n \n
\n
\n node id:\n
\n \n
\n \n '}]}],t.ctorParameters=function(){return[]},t}()},function(t,e,n){"use strict";function r(t){void 0===t.state&&(t.state={}),void 0===t.state.opened&&(t.state.opened=!1),void 0===t.state.selected&&(t.state.selected=!1),void 0===t.state.disabled&&(t.state.disabled=!1),void 0===t.state.loading&&(t.state.loading=!1),void 0===t.state.highlighted&&(t.state.highlighted=!1),void 0===t.state.openable&&(t.state.openable=!1),void 0===t.state.dropPosition&&(t.state.dropPosition=0),void 0===t.state.dropAllowed&&(t.state.dropAllowed=!0),void 0===t.children&&(t.children=[]);for(var e=0,n=t.children;e - + \ No newline at end of file diff --git a/packages/vue/demo/index.bundle-75daa7dee1f807179ce7feb9c8aeaab9.js b/packages/vue/demo/index.bundle-75daa7dee1f807179ce7feb9c8aeaab9.js deleted file mode 100644 index 9a21425..0000000 --- a/packages/vue/demo/index.bundle-75daa7dee1f807179ce7feb9c8aeaab9.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){(function(t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function i(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Object]"===Po.call(e)}function u(e){return"[object RegExp]"===Po.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}function h(e,t){return Io.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function m(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function y(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function b(e,t){for(var n in t)e[n]=t[n];return e}function _(e){for(var t={},n=0;n0&&(he((s=ge(s,(n||"")+"_"+i))[0])&&he(u)&&(l[c]=P(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?he(u)?l[c]=P(u.text+s):""!==s&&l.push(P(s)):he(s)&&he(u)?l[c]=P(u.text+s.text):(o(t._isVList)&&r(s.tag)&&e(s.key)&&r(n)&&(s.key="__vlist"+n+"_"+i+"__"),l.push(s)));return l}function me(e,t){return(e.__esModule||li&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function ye(e,t,n,r,o){var i=mi();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function be(t,n,i){if(o(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(o(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var a=t.contexts=[i],c=!0,u=function(){for(var e=0,t=a.length;eJi&&Mi[n].id>e.id;)n--;Mi.splice(n+1,0,e)}else Mi.push(e);Hi||(Hi=!0,ie(Me))}}function Je(e,t,n){Vi.get=function(){return this[t][n]},Vi.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Vi)}function Be(e){e._watchers=[];var t=e.$options;t.props&&Ue(e,t.props),t.methods&&Xe(e,t.methods),t.data?Ve(e):L(e._data={},!0),t.computed&&qe(e,t.computed),t.watch&&t.watch!==ri&&Ze(e,t.watch)}function Ue(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;$i.shouldConvert=i;for(var a in t)!function(i){o.push(i);var a=X(i,t,n,e);M(r,i,a),i in e||Je(e,"_props",i)}(a);$i.shouldConvert=!0}function Ve(e){var t=e.$options.data;c(t=e._data="function"==typeof t?Ke(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,o=n.length;o--;){var i=n[o];r&&h(r,i)||k(i)||Je(e,"_data",i)}L(t,!0)}function Ke(e,t){try{return e.call(t,t)}catch(e){return ee(e,t,"data()"),{}}}function qe(e,t){var n=e._computedWatchers=Object.create(null),r=ci();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new Ui(e,a||$,$,Ki)),o in e||We(e,o,i)}}function We(e,t,n){var r=!ci();"function"==typeof n?(Vi.get=r?Ge(t):n,Vi.set=$):(Vi.get=n.get?r&&!1!==n.cache?Ge(t):n.get:$,Vi.set=n.set?n.set:$),Object.defineProperty(e,t,Vi)}function Ge(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),pi.target&&t.depend(),t.value}}function Xe(e,t){for(var n in t)e[n]=null==t[n]?$:m(t[n],e)}function Ze(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function jt(e){this._init(e)}function St(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Pt(e){e.mixin=function(e){return this.options=W(this.options,e),this}}function Nt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=W(n.options,e),a.super=n,a.options.props&&Et(a),a.options.computed&&It(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Bo.forEach(function(e){a[e]=n[e]}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=b({},a.options),o[r]=a,a}}function Et(e){var t=e.options.props;for(var n in t)Je(e.prototype,"_props",n)}function It(e){var t=e.options.computed;for(var n in t)We(e.prototype,n,t[n])}function Dt(e){Bo.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Lt(e){return e&&(e.Ctor.options.name||e.tag)}function Mt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function Ft(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=Lt(a.componentOptions);s&&!t(s)&&Rt(n,i,r,o)}}}function Rt(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,v(n,t)}function Ht(e){for(var t=e.data,n=e,o=e;r(o.componentInstance);)(o=o.componentInstance._vnode).data&&(t=zt(o.data,t));for(;r(n=n.parent);)n.data&&(t=zt(t,n.data));return Jt(t.staticClass,t.class)}function zt(e,t){return{staticClass:Bt(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Jt(e,t){return r(e)||r(t)?Bt(e,Ut(t)):""}function Bt(e,t){return e?t?e+" "+t:e:t||""}function Ut(e){return Array.isArray(e)?Vt(e):s(e)?Kt(e):"string"==typeof e?e:""}function Vt(e){for(var t,n="",o=0,i=e.length;o=0&&" "===(g=e.charAt(h));h--);g&&Na.test(g)||(l=!0)}}else void 0===i?(v=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==v&&t(),a)for(o=0;o-1?{exp:e.slice(0,ra),key:'"'+e.slice(ra+1)+'"'}:{exp:e,key:null};for(ta=e,ra=oa=ia=0;!xn();)wn(na=$n())?kn(na):91===na&&On(na);return{exp:e.slice(0,oa),key:e.slice(oa+1,ia)}}function $n(){return ta.charCodeAt(++ra)}function xn(){return ra>=ea}function wn(e){return 34===e||39===e}function On(e){var t=1;for(oa=ra;!xn();)if(e=$n(),wn(e))kn(e);else if(91===e&&t++,93===e&&t--,0===t){ia=ra;break}}function kn(e){for(var t=e;!xn()&&(e=$n())!==t;);}function Cn(e,t,n){var r=n&&n.number,o=gn(e,"value")||"null",i=gn(e,"true-value")||"true",a=gn(e,"false-value")||"false";dn(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),hn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+bn(t,"$$c")+"}",null,!0)}function An(e,t,n){var r=n&&n.number,o=gn(e,"value")||"null";dn(e,"checked","_q("+t+","+(o=r?"_n("+o+")":o)+")"),hn(e,"change",bn(t,o),null,!0)}function Tn(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";hn(e,"change",r=r+" "+bn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function jn(e,t,n){var r=e.attrsMap.type,o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Ea:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=bn(t,l);c&&(f="if($event.target.composing)return;"+f),dn(e,"value","("+t+")"),hn(e,u,f,null,!0),(s||a)&&hn(e,"blur","$forceUpdate()")}function Sn(e){if(r(e[Ea])){var t=Yo?"change":"input";e[t]=[].concat(e[Ea],e[t]||[]),delete e[Ea]}r(e[Ia])&&(e.change=[].concat(e[Ia],e.change||[]),delete e[Ia])}function Pn(e,t,n){var r=aa;return function o(){null!==e.apply(null,arguments)&&En(t,o,n,r)}}function Nn(e,t,n,r,o){t=oe(t),n&&(t=Pn(t,e,r)),aa.addEventListener(e,t,oi?{capture:r,passive:o}:r)}function En(e,t,n,r){(r||aa).removeEventListener(e,t._withTask||t,n)}function In(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},o=t.data.on||{};aa=n.elm,Sn(r),ue(r,o,Nn,En,n.context),aa=void 0}}function Dn(t,n){if(!e(t.data.domProps)||!e(n.data.domProps)){var o,i,a=n.elm,s=t.data.domProps||{},c=n.data.domProps||{};r(c.__ob__)&&(c=n.data.domProps=b({},c));for(o in s)e(c[o])&&(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(n.children&&(n.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o){a._value=i;var u=e(i)?"":String(i);Ln(a,u)&&(a.value=u)}else a[o]=i}}}function Ln(e,t){return!e.composing&&("OPTION"===e.tagName||Mn(e,t)||Fn(e,t))}function Mn(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function Fn(e,t){var n=e.value,o=e._vModifiers;return r(o)&&o.number?d(n)!==d(t):r(o)&&o.trim?n.trim()!==t.trim():n!==t}function Rn(e){var t=Hn(e.style);return e.staticStyle?b(e.staticStyle,t):t}function Hn(e){return Array.isArray(e)?_(e):"string"==typeof e?Ma(e):e}function zn(e,t){var n,r={};if(t)for(var o=e;o.componentInstance;)(o=o.componentInstance._vnode).data&&(n=Rn(o.data))&&b(r,n);(n=Rn(e.data))&&b(r,n);for(var i=e;i=i.parent;)i.data&&(n=Rn(i.data))&&b(r,n);return r}function Jn(t,n){var o=n.data,i=t.data;if(!(e(o.staticStyle)&&e(o.style)&&e(i.staticStyle)&&e(i.style))){var a,s,c=n.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,d=Hn(n.data.style)||{};n.data.normalizedStyle=r(d.__ob__)?b({},d):d;var p=zn(n,!0);for(s in f)e(p[s])&&Ha(c,s,"");for(s in p)(a=p[s])!==f[s]&&Ha(c,s,null==a?"":a)}}function Bn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Un(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Vn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&b(t,Ua(e.name||"v")),b(t,e),t}return"string"==typeof e?Ua(e):void 0}}function Kn(e){Ya(function(){Ya(e)})}function qn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Bn(e,t))}function Wn(e,t){e._transitionClasses&&v(e._transitionClasses,t),Un(e,t)}function Gn(e,t,n){var r=Xn(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Ka?Ga:Za,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Ka,l=a,f=i.length):t===qa?u>0&&(n=qa,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ka:qa:null)?n===Ka?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ka&&Qa.test(r[Wa+"Property"])}}function Zn(e,t){for(;e.length1}function rr(e,t){!0!==t.data.show&&Qn(t)}function or(e,t,n){ir(e,t,n),(Yo||ei)&&setTimeout(function(){ir(e,t,n)},0)}function ir(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=e.options.length;s-1,a.selected!==i&&(a.selected=i);else if(x(sr(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function ar(e,t){return t.every(function(t){return!x(t,e)})}function sr(e){return"_value"in e?e._value:e.value}function cr(e){e.target.composing=!0}function ur(e){e.target.composing&&(e.target.composing=!1,lr(e.target,"input"))}function lr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function fr(e){return!e.componentInstance||e.data&&e.data.transition?e:fr(e.componentInstance._vnode)}function dr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?dr($e(t.children)):e}function pr(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[Lo(i)]=o[i];return t}function vr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function hr(e){for(;e=e.parent;)if(e.data.transition)return!0}function gr(e,t){return t.key===e.key&&t.tag===e.tag}function mr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function yr(e){e.data.newPos=e.elm.getBoundingClientRect()}function br(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}function _r(e,t){var n=t?ls(t):cs;if(n.test(e)){for(var r,o,i=[],a=n.lastIndex=0;r=n.exec(e);){(o=r.index)>a&&i.push(JSON.stringify(e.slice(a,o)));var s=cn(r[1].trim());i.push("_s("+s+")"),a=o+r[0].length}return a=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,r);a.length=o,i=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var o,i,a=[],s=t.expectHTML,c=t.isUnaryTag||Ho,u=t.canBeLeftOpenTag||Ho,l=0;e;){if(o=e,i&&Fs(i)){var f=0,d=i.toLowerCase(),p=Rs[d]||(Rs[d]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=e.replace(p,function(e,n,r){return f=r.length,Fs(d)||"noscript"===d||(n=n.replace(//g,"$1").replace(//g,"$1")),Us(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-v.length,e=v,r(d,l-f,l)}else{var h=e.indexOf("<");if(0===h){if(Os.test(e)){var g=e.indexOf("--\x3e");if(g>=0){t.shouldKeepComment&&t.comment(e.substring(4,g)),n(g+3);continue}}if(ks.test(e)){var m=e.indexOf("]>");if(m>=0){n(m+2);continue}}var y=e.match(ws);if(y){n(y[0].length);continue}var b=e.match(xs);if(b){var _=l;n(b[0].length),r(b[1],_,l);continue}var $=function(){var t=e.match(_s);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var o,i;!(o=e.match($s))&&(i=e.match(ms));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=l,r}}();if($){!function(e){var n=e.tagName,o=e.unarySlash;s&&("p"===i&&gs(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=e.attrs.length,d=new Array(f),p=0;p=0){for(w=e.slice(h);!(xs.test(w)||_s.test(w)||Os.test(w)||ks.test(w)||(O=w.indexOf("<",1))<0);)h+=O,w=e.slice(h);x=e.substring(0,h),n(h)}h<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===o){t.chars&&t.chars(e);break}}r()}function wr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:zr(t),parent:n,children:[]}}function Or(e,t){function n(e){e.pre&&(s=!1),Ns(e.tag)&&(c=!1)}As=t.warn||ln,Ns=t.isPreTag||Ho,Es=t.mustUseProp||Ho,Is=t.getTagNamespace||Ho,js=fn(t.modules,"transformNode"),Ss=fn(t.modules,"preTransformNode"),Ps=fn(t.modules,"postTransformNode"),Ts=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=!1,c=!1;return xr(e,{warn:As,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,a,u){var l=o&&o.ns||Is(e);Yo&&"svg"===l&&(a=Ur(a));var f=wr(e,a,o);l&&(f.ns=l),Br(f)&&!ci()&&(f.forbidden=!0);for(var d=0;d':'
',Ms.innerHTML.indexOf(" ")>0}function jo(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var So=Object.freeze({}),Po=Object.prototype.toString,No=p("slot,component",!0),Eo=p("key,ref,slot,slot-scope,is"),Io=Object.prototype.hasOwnProperty,Do=/-(\w)/g,Lo=g(function(e){return e.replace(Do,function(e,t){return t?t.toUpperCase():""})}),Mo=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Fo=/\B([A-Z])/g,Ro=g(function(e){return e.replace(Fo,"-$1").toLowerCase()}),Ho=function(e,t,n){return!1},zo=function(e){return e},Jo="data-server-rendered",Bo=["component","directive","filter"],Uo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Vo={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Ho,isReservedAttr:Ho,isUnknownElement:Ho,getTagNamespace:$,parsePlatformTagName:zo,mustUseProp:Ho,_lifecycleHooks:Uo},Ko=/[^\w.$]/,qo="__proto__"in{},Wo="undefined"!=typeof window,Go="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Xo=Go&&WXEnvironment.platform.toLowerCase(),Zo=Wo&&window.navigator.userAgent.toLowerCase(),Yo=Zo&&/msie|trident/.test(Zo),Qo=Zo&&Zo.indexOf("msie 9.0")>0,ei=Zo&&Zo.indexOf("edge/")>0,ti=Zo&&Zo.indexOf("android")>0||"android"===Xo,ni=Zo&&/iphone|ipad|ipod|ios/.test(Zo)||"ios"===Xo,ri=(Zo&&/chrome\/\d+/.test(Zo),{}.watch),oi=!1;if(Wo)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){oi=!0}}),window.addEventListener("test-passive",null,ii)}catch(e){}var ai,si,ci=function(){return void 0===ai&&(ai=!Wo&&void 0!==t&&"server"===t.process.env.VUE_ENV),ai},ui=Wo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,li="undefined"!=typeof Symbol&&T(Symbol)&&"undefined"!=typeof Reflect&&T(Reflect.ownKeys);si="undefined"!=typeof Set&&T(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fi=$,di=0,pi=function(){this.id=di++,this.subs=[]};pi.prototype.addSub=function(e){this.subs.push(e)},pi.prototype.removeSub=function(e){v(this.subs,e)},pi.prototype.depend=function(){pi.target&&pi.target.addDep(this)},pi.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?y(n):n;for(var r=y(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Rt(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={};t.get=function(){return Vo},Object.defineProperty(e,"config",t),e.util={warn:fi,extend:b,mergeOptions:W,defineReactive:M},e.set=F,e.delete=R,e.nextTick=ie,e.options=Object.create(null),Bo.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,b(e.options.components,Qi),St(e),Pt(e),Nt(e),Dt(e)}(jt),Object.defineProperty(jt.prototype,"$isServer",{get:ci}),Object.defineProperty(jt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),jt.version="2.5.9";var ea,ta,na,ra,oa,ia,aa,sa,ca=p("style,class"),ua=p("input,textarea,option,select,progress"),la=function(e,t,n){return"value"===n&&ua(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},fa=p("contenteditable,draggable,spellcheck"),da=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),pa="http://www.w3.org/1999/xlink",va=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},ha=function(e){return va(e)?e.slice(6,e.length):""},ga=function(e){return null==e||!1===e},ma={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ya=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ba=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),_a=function(e){return ya(e)||ba(e)},$a=Object.create(null),xa=p("text,number,password,search,email,tel,url"),wa=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(ma[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),Oa={create:function(e,t){Gt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Gt(e,!0),Gt(t))},destroy:function(e){Gt(e,!0)}},ka=new hi("",{},[]),Ca=["create","activate","update","remove","destroy"],Aa={create:Qt,update:Qt,destroy:function(e){Qt(e,ka)}},Ta=Object.create(null),ja=[Oa,Aa],Sa={create:on,update:on},Pa={create:sn,update:sn},Na=/[\w).+\-_$\]]/,Ea="__r",Ia="__c",Da={create:In,update:In},La={create:Dn,update:Dn},Ma=g(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Fa=/^--/,Ra=/\s*!important$/,Ha=function(e,t,n){if(Fa.test(t))e.style.setProperty(t,n);else if(Ra.test(n))e.style.setProperty(t,n.replace(Ra,""),"important");else{var r=Ja(t);if(Array.isArray(n))for(var o=0,i=n.length;op?y(t,e(o[g+1])?null:o[g+1].elm,o,d,g,i):d>g&&_(t,n,f,p)}function w(e,t,n,o){for(var i=n;i-1?$a[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:$a[e]=/HTMLUnknownElement/.test(t.toString())},b(jt.options.directives,ns),b(jt.options.components,as),jt.prototype.__patch__=Wo?es:$,jt.prototype.$mount=function(e,t){return e=e&&Wo?Wt(e):void 0,Se(this,e,t)},jt.nextTick(function(){Vo.devtools&&ui&&ui.emit("init",jt)},0);var ss,cs=/\{\{((?:.|\n)+?)\}\}/g,us=/[-.*+?^${}()|[\]\/\\]/g,ls=g(function(e){var t=e[0].replace(us,"\\$&"),n=e[1].replace(us,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),fs={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=mn(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=gn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},ds={staticKeys:["staticStyle"],transformNode:function(e,t){var n=mn(e,"style");n&&(e.staticStyle=JSON.stringify(Ma(n)));var r=gn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ps={decode:function(e){return ss=ss||document.createElement("div"),ss.innerHTML=e,ss.textContent}},vs=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),hs=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),gs=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ms=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ys="[a-zA-Z_][\\w\\-\\.]*",bs="((?:"+ys+"\\:)?"+ys+")",_s=new RegExp("^<"+bs),$s=/^\s*(\/?)>/,xs=new RegExp("^<\\/"+bs+"[^>]*>"),ws=/^]+>/i,Os=/^/g,"$1").replace(//g,"$1")),wc(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-v.length,e=v,r(d,l-f,l)}else{var h=e.indexOf("<");if(0===h){if(rc.test(e)){var g=e.indexOf("--\x3e");if(g>=0){t.shouldKeepComment&&t.comment(e.substring(4,g)),n(g+3);continue}}if(oc.test(e)){var m=e.indexOf("]>");if(m>=0){n(m+2);continue}}var y=e.match(nc);if(y){n(y[0].length);continue}var b=e.match(tc);if(b){var _=l;n(b[0].length),r(b[1],_,l);continue}var $=function(){var t=e.match(Qs);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var o,i;!(o=e.match(ec))&&(i=e.match(Xs));)n(i[0].length),r.attrs.push(i);if(o)return r.unarySlash=o[1],n(o[0].length),r.end=l,r}}();if($){!function(e){var n=e.tagName,o=e.unarySlash;s&&("p"===i&&Gs(n)&&r(i),u(n)&&i===n&&r(n));for(var l=c(n)||!!o,f=e.attrs.length,d=new Array(f),p=0;p=0){for(w=e.slice(h);!(tc.test(w)||Qs.test(w)||rc.test(w)||oc.test(w)||(O=w.indexOf("<",1))<0);)h+=O,w=e.slice(h);x=e.substring(0,h),n(h)}h<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===o){t.chars&&t.chars(e);break}}r()}function Jr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ao(t),parent:n,children:[]}}function Br(e,t){function n(e){e.pre&&(s=!1),fc(e.tag)&&(c=!1)}ac=t.warn||On,fc=t.isPreTag||fi,dc=t.mustUseProp||fi,pc=t.getTagNamespace||fi,cc=kn(t.modules,"transformNode"),uc=kn(t.modules,"preTransformNode"),lc=kn(t.modules,"postTransformNode"),sc=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=!1,c=!1;return zr(e,{warn:ac,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,a,u){var l=o&&o.ns||pc(e);wi&&"svg"===l&&(a=uo(a));var f=Jr(e,a,o);l&&(f.ns=l),co(f)&&!Ei()&&(f.forbidden=!0);for(var d=0;d':'
',gc.innerHTML.indexOf(" ")>0}function ei(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var ti=Object.freeze({}),ni=Object.prototype.toString,ri=v("slot,component",!0),oi=v("key,ref,slot,slot-scope,is"),ii=Object.prototype.hasOwnProperty,ai=/-(\w)/g,si=m(function(e){return e.replace(ai,function(e,t){return t?t.toUpperCase():""})}),ci=m(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),ui=/\B([A-Z])/g,li=m(function(e){return e.replace(ui,"-$1").toLowerCase()}),fi=function(e,t,n){return!1},di=function(e){return e},pi="data-server-rendered",vi=["component","directive","filter"],hi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],gi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:fi,isReservedAttr:fi,isUnknownElement:fi,getTagNamespace:x,parsePlatformTagName:di,mustUseProp:fi,_lifecycleHooks:hi},mi=/[^\w.$]/,yi="__proto__"in{},bi="undefined"!=typeof window,_i="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,$i=_i&&WXEnvironment.platform.toLowerCase(),xi=bi&&window.navigator.userAgent.toLowerCase(),wi=xi&&/msie|trident/.test(xi),Oi=xi&&xi.indexOf("msie 9.0")>0,ki=xi&&xi.indexOf("edge/")>0,Ci=xi&&xi.indexOf("android")>0||"android"===$i,Ai=xi&&/iphone|ipad|ipod|ios/.test(xi)||"ios"===$i,Ti=(xi&&/chrome\/\d+/.test(xi),{}.watch),ji=!1;if(bi)try{var Si={};Object.defineProperty(Si,"passive",{get:function(){ji=!0}}),window.addEventListener("test-passive",null,Si)}catch(e){}var Pi,Ni,Ei=function(){return void 0===Pi&&(Pi=!bi&&void 0!==e&&"server"===e.process.env.VUE_ENV),Pi},Ii=bi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Di="undefined"!=typeof Symbol&&j(Symbol)&&"undefined"!=typeof Reflect&&j(Reflect.ownKeys);Ni="undefined"!=typeof Set&&j(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Li=x,Mi=0,Fi=function(){this.id=Mi++,this.subs=[]};Fi.prototype.addSub=function(e){this.subs.push(e)},Fi.prototype.removeSub=function(e){h(this.subs,e)},Fi.prototype.depend=function(){Fi.target&&Fi.target.addDep(this)},Fi.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?b(n):n;for(var r=b(arguments,1),o=0,i=n.length;oparseInt(this.max)&&Ht(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ka={KeepAlive:Oa};!function(e){var t={};t.get=function(){return gi},Object.defineProperty(e,"config",t),e.util={warn:Li,extend:_,mergeOptions:G,defineReactive:F},e.set=R,e.delete=H,e.nextTick=ae,e.options=Object.create(null),vi.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,_(e.options.components,ka),Pt(e),Nt(e),Et(e),Lt(e)}(St),Object.defineProperty(St.prototype,"$isServer",{get:Ei}),Object.defineProperty(St.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),St.version="2.5.9";var Ca,Aa,Ta,ja,Sa,Pa,Na,Ea,Ia,Da=v("style,class"),La=v("input,textarea,option,select,progress"),Ma=function(e,t,n){return"value"===n&&La(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Fa=v("contenteditable,draggable,spellcheck"),Ra=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ha="http://www.w3.org/1999/xlink",za=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ja=function(e){return za(e)?e.slice(6,e.length):""},Ba=function(e){return null==e||!1===e},Ua={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Va=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ka=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),qa=function(e){return"pre"===e},Wa=function(e){return Va(e)||Ka(e)},Ga=Object.create(null),Xa=v("text,number,password,search,email,tel,url"),Za=Object.freeze({createElement:Zt,createElementNS:Yt,createTextNode:Qt,createComment:en,insertBefore:tn,removeChild:nn,appendChild:rn,parentNode:on,nextSibling:an,tagName:sn,setTextContent:cn,setAttribute:un}),Ya={create:function(e,t){ln(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ln(e,!0),ln(t))},destroy:function(e){ln(e,!0)}},Qa=new Hi("",{},[]),es=["create","activate","update","remove","destroy"],ts={create:vn,update:vn,destroy:function(e){vn(e,Qa)}},ns=Object.create(null),rs=[Ya,ts],os={create:bn,update:bn},is={create:$n,update:$n},as=/[\w).+\-_$\]]/,ss="__r",cs="__c",us={create:Gn,update:Gn},ls={create:Xn,update:Xn},fs=m(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),ds=/^--/,ps=/\s*!important$/,vs=function(e,t,n){if(ds.test(t))e.style.setProperty(t,n);else if(ps.test(n))e.style.setProperty(t,n.replace(ps,""),"important");else{var r=gs(t);if(Array.isArray(n))for(var o=0,i=n.length;ov?(f=r(n[m+1])?null:n[m+1].elm,y(e,f,n,p,m,i)):p>m&&_(e,t,d,v)}function w(e,t,n,r){for(var i=n;i\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Zs="[a-zA-Z_][\\w\\-\\.]*",Ys="((?:"+Zs+"\\:)?"+Zs+")",Qs=new RegExp("^<"+Ys),ec=/^\s*(\/?)>/,tc=new RegExp("^<\\/"+Ys+"[^>]*>"),nc=/^]+>/i,rc=/^