From c899f54a29950d07b730f60f617bb778b2db1de8 Mon Sep 17 00:00:00 2001 From: ikeq <9206414+ike-c@users.noreply.github.com> Date: Thu, 26 Sep 2019 11:39:15 +0800 Subject: [PATCH] fix: parse svg properly on post excerpt --- package.json | 2 +- source/_resources.json | 2 +- ...80770b83.zh-Hans.js => main.1efb2acb62d508679d87.zh-Hans.js} | 2 +- ...221e092e.zh-Hant.js => main.5509fae49a8263eb6b15.zh-Hant.js} | 2 +- ...d1e4209486560b00ce.ja.js => main.77374c447781af9644db.ja.js} | 2 +- ...ain.3c8fe2175e9d028e033b.js => main.e456207a2fb3a1560aeb.js} | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename source/{main.5f57ed8aacba80770b83.zh-Hans.js => main.1efb2acb62d508679d87.zh-Hans.js} (78%) rename source/{main.dec5dcd89e85221e092e.zh-Hant.js => main.5509fae49a8263eb6b15.zh-Hant.js} (78%) rename source/{main.45d1e4209486560b00ce.ja.js => main.77374c447781af9644db.ja.js} (78%) rename source/{main.3c8fe2175e9d028e033b.js => main.e456207a2fb3a1560aeb.js} (78%) diff --git a/package.json b/package.json index d0815d5..b591f8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-inside", - "version": "2.4.0", + "version": "2.4.1", "description": "❤️ SPA, flat and clean theme for Hexo.", "scripts": { "test": "jasmine --config=test/jasmine.json" diff --git a/source/_resources.json b/source/_resources.json index 17051e6..35a20a7 100644 --- a/source/_resources.json +++ b/source/_resources.json @@ -1 +1 @@ -{"root":"is-a","styles":["styles.e987407a0a9d77c7ba00.css"],"scripts":["runtime.caef73fae70e33459c5a.js","polyfills.28555e618578fe61f50a.js"],"locales":{"en":"main.3c8fe2175e9d028e033b.js","ja":"main.45d1e4209486560b00ce.ja.js","zh-Hans":"main.5f57ed8aacba80770b83.zh-Hans.js","zh-Hant":"main.dec5dcd89e85221e092e.zh-Hant.js"}} +{"root":"is-a","styles":["styles.e987407a0a9d77c7ba00.css"],"scripts":["runtime.caef73fae70e33459c5a.js","polyfills.28555e618578fe61f50a.js"],"locales":{"zh-Hans":"main.1efb2acb62d508679d87.zh-Hans.js","zh-Hant":"main.5509fae49a8263eb6b15.zh-Hant.js","ja":"main.77374c447781af9644db.ja.js","en":"main.e456207a2fb3a1560aeb.js"}} diff --git a/source/main.5f57ed8aacba80770b83.zh-Hans.js b/source/main.1efb2acb62d508679d87.zh-Hans.js similarity index 78% rename from source/main.5f57ed8aacba80770b83.zh-Hans.js rename to source/main.1efb2acb62d508679d87.zh-Hans.js index da9b6db..9d57597 100644 --- a/source/main.5f57ed8aacba80770b83.zh-Hans.js +++ b/source/main.1efb2acb62d508679d87.zh-Hans.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"5D2u":function(t,e,n){var r,o,i;!function(l){if("object"==typeof t.exports){var u=l(0,e);void 0!==u&&(t.exports=u)}else o=[n,e],void 0===(i="function"==typeof(r=l)?r.apply(e,o):r)||(t.exports=i)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["zh-Hans",[["\u4e0a\u5348","\u4e0b\u5348"],n,n],n,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]],n,[["\u516c\u5143\u524d","\u516c\u5143"],n,n],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",n,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"\uffe5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\uffe5","\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],TWD:["NT$"],USD:["US$","$"]},function(t){return 5}]})},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("5D2u"),o=n.n(r),i=function(t,e){return(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])})(t,e)};function l(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(o=t[u])&&(l=(i<3?o(l):i>3?o(e,n,l):o(e,n))||l);return i>3&&l&&Object.defineProperty(e,n,l),l}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(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}}}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function p(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(G);function rt(t){return t}function ot(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),tt(rt,t)}function it(t,e){return e?J(t,e):new A(H(t))}function lt(){return function(t){return t.lift(new ut(t))}}var ut=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new at(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),at=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return l(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(E),st=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return l(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new m).add(this.source.subscribe(new ft(this.getSubject(),this))),t.closed&&(this._connection=null,t=m.EMPTY)),t},e.prototype.refCount=function(){return lt()(this)},e}(A).prototype,ct={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:st._subscribe},_isComplete:{value:st._isComplete,writable:!0},getSubject:{value:st.getSubject},connect:{value:st.connect},refCount:{value:st.refCount}},ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return l(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(L);function pt(){return new j}var ht="__parameters__",dt="__prop__metadata__";function gt(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var i=[];for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];i.push(l+":"+("string"==typeof u?JSON.stringify(u):It(u)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+t.replace(Vt,"\n ")}var Kt=function(){return function(){}}(),Qt=function(){return function(){}}();function Yt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Jt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}var Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),te=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Lt)}(),ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger";function oe(t){return t[ee]}function ie(t){return t[ne]}function le(t){for(var e=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();xe.hasOwnProperty(e)&&!me.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Pe(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oe=/([^\#-~ |!])/g;function Pe(t){return t.replace(/&/g,"&").replace(Te,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Oe,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Ae(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Re=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Ne=function(){return function(){}}(),De=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Me=/^url\(([^)]+)\)$/,Le=/([A-Z])/g;function je(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}var Ue=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Fe()},t}(),Fe=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providers[c]=t._def.providersByKey[e.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:e.token},t._providers[c]=Lr,t._providers[c]=zr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{$t(i)}}function zr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Hr(t,n[0]));case 2:return new e(Hr(t,n[0]),Hr(t,n[1]));case 3:return new e(Hr(t,n[0]),Hr(t,n[1]),Hr(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Jt(n,e),tr.dirtyParentQueries(r),$r(r),r}function qr(t,e,n){var r=e?yr(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);kr(n,2,o,i,void 0)}function $r(t){kr(t,3,null,null,void 0)}var Wr=new Object;function Zr(t,e,n,r,o,i){return new Gr(t,e,n,r,o,i)}var Gr=function(t){function e(e,n,r,o,i,l){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return l(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=Er(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=tr.createRootView(t,e||[],n,o,r,Wr),u=Yn(l,i).instance;return n&&l.renderer.setAttribute(Qn(l,0).renderElement,"ng-version",Sn.full),new Kr(l,new Xr(l),u)},e}(sn),Kr=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return l(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new yn(Qn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ro(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(an);function Qr(t,e,n){return new Yr(t,e,n)}var Yr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new yn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ro(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=vr(t),t=t.parent;return t?new ro(t,e):new ro(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Br(this._data,t);tr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Xr(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,o){var i=n||this.parentInjector;o||t instanceof gn||(o=i.get(Kt));var l=t.create(i,r,void 0,o);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=l._view).viewContainerParent=this._view,Yt(i,r,o),function(t,e){var n=gr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),tr.dirtyParentQueries(o),qr(n,r>0?i[r-1]:null,o),l.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,r,o,i,l,u=this._embeddedViews.indexOf(t._view);return o=e,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],Jt(i,r),null==o&&(o=i.length),Yt(i,o,l),tr.dirtyParentQueries(l),$r(l),qr(n,o>0?i[o-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Br(this._data,t);e&&tr.destroyView(e)},t.prototype.detach=function(t){var e=Br(this._data,t);return e?new Xr(e):null},t}();function Jr(t){return new Xr(t)}var Xr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return kr(this._view,0,void 0,void 0,t=[]),t;var t},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(){pr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{tr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){tr.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)),tr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,$r(this._view),tr.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}();function to(t,e){return new eo(t,e)}var eo=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return l(e,t),e.prototype.createEmbeddedView=function(t){return new Xr(tr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new yn(Qn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Vn);function no(t,e){return new ro(t,e)}var ro=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=ze.THROW_IF_NOT_FOUND),tr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:rr(t)},e)},t}();function oo(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Qn(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Kn(t,n.nodeIndex).renderText;if(20240&n.flags)return Yn(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function io(t){return new lo(t.renderer)}var lo=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=f(Rr(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},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;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Io(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Oo(t,e,n,o[0]));case 2:return r(Oo(t,e,n,o[0]),Oo(t,e,n,o[1]));case 3:return r(Oo(t,e,n,o[0]),Oo(t,e,n,o[1]),Oo(t,e,n,o[2]));default:for(var l=Array(i),u=0;u0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ei=function(){function t(){this._applications=new Map,ki.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),ki.findTestabilityInTree(this,t,e)},a([s("design:paramtypes",[])],t)}(),ki=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ii=new jt("AllowMultipleToken"),Ti=function(){return function(t,e){this.name=t,this.token=e}}();function Oi(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new jt(r);return function(e){void 0===e&&(e=[]);var i=Pi();if(!i||i.injector.get(Ii,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var l=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(xi&&!xi.destroyed&&!xi.injector.get(Ii,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xi=t.get(Ai);var e=t.get(Ko,null);e&&e.forEach(function(t){return t()})}(ze.create({providers:l,name:r}))}return function(t){var e=Pi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Pi(){return xi&&!xi.destroyed?xi:null}var Ai=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Ci:("zone.js"===n?void 0:n)||new vi({enableLongStackTrace:ce()}),i=[{provide:vi,useValue:o}];return o.run(function(){var e=ze.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(ue,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Di(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,o){try{var i=((l=n.injector.get(Zo)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return on(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(u){throw e.runOutsideAngular(function(){return t.handleError(u)}),u}var l}(l,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Ri({},e);return function(t,e,n){return t.get(ai).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ni);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+It(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}();function Ri(t,e){return Array.isArray(e)?e.reduce(Ri,t):u({},t,e)}var Ni=function(){function t(t,e,n,r,o,i){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ce(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new A(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),a=new A(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){vi.assertNotInAngularZone(),gi(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){vi.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof A?t[0]:ot(n)(it(t,r))}(u,a.pipe(function(t){return lt()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ct);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=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.");n=t instanceof sn?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof gn?null:this._injector.get(Kt),i=n.create(ze.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(Si,null);return l&&i.injector.get(Ei).registerApplication(i.location.nativeElement,l),this._loadComponent(i),ce()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t,n,r,o,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var l=e._tickScope();try{this._runningTick=!0;try{for(var u=c(this._views),a=u.next();!a.done;a=u.next())a.value.detectChanges()}catch(p){t={error:p}}finally{try{a&&!a.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var s=c(this._views),f=s.next();!f.done;f=s.next())f.value.checkNoChanges()}catch(h){r={error:h}}finally{try{f&&!f.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}}catch(d){this._zone.runOutsideAngular(function(){return i._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,hi(l)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Di(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Yo,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Di(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=pi("ApplicationRef#tick()"),t}();function Di(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Mi=function(){return function(){}}(),Li=function(){return function(){}}(),ji={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ui=function(){function t(t,e){this._compiler=t,this._config=e||ji}return t.prototype.load=function(t){return this._compiler instanceof ui?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=f(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("zn8P")(o).then(function(t){return t[i]}).then(function(t){return Fi(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=f(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Fi(t,r,o)})},t}();function Fi(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Vi=function(){return function(t,e){this.name=t,this.callback=e}}(),Hi=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof zi&&e.addChild(this)}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}(),zi=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return l(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,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,p([o+1,0],e)),e.forEach(function(e){e.parent&&e.parent.removeChild(e),t.parent=r}))},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 function t(e,n,r){e.childNodes.forEach(function(e){e instanceof zi&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof zi&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof zi&&t(e,n,r)})}(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}(Hi),Bi=new Map,qi=function(t){return Bi.get(t)||null};function $i(t){Bi.set(t.nativeNode,t)}var Wi=Oi(null,"core",[{provide:Qo,useValue:"unknown"},{provide:Ai,deps:[ze]},{provide:Ei,deps:[]},{provide:Jo,deps:[]}]);function Zi(){return Un}function Gi(){return Fn}function Ki(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}var Qi=function(){return function(t){}}();function Yi(t,e,n,r,o,i){t|=1;var l=_r(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?Er(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||er},provider:null,text:null,query:null,ngContent:null}}function Ji(t,e,n,r,o,i,l,u,a,s,c,p){var h;void 0===l&&(l=[]),s||(s=er);var d=_r(n),g=d.matchedQueries,v=d.references,y=d.matchedQueryIds,m=null,b=null;i&&(m=(h=f(Rr(i),2))[0],b=h[1]),u=u||[];for(var w=new Array(u.length),_=0;_0)s=g,vl(g)||(c=g);else for(;s&&d===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&vl(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||er,updateRenderer:r||er,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function vl(t){return 0!=(1&t.flags)&&null===t.element.name}function yl(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&&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 o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function ml(t,e,n,r){var o=_l(t.root,t.renderer,t,e,n);return xl(o,t.component,r),Cl(o),o}function bl(t,e,n){var r=_l(t,t.renderer,null,null,e);return xl(r,n,n),Cl(r),r}function wl(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,_l(t.root,o,t,e.element.componentProvider,n)}function _l(t,e,n,r,o){var i=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function xl(t,e,n){t.component=e,t.context=n}function Cl(t){var e;mr(t)&&(e=Qn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&nl(t,e,0,n)&&(h=!0),p>1&&nl(t,e,1,r)&&(h=!0),p>2&&nl(t,e,2,o)&&(h=!0),p>3&&nl(t,e,3,i)&&(h=!0),p>4&&nl(t,e,4,l)&&(h=!0),p>5&&nl(t,e,5,u)&&(h=!0),p>6&&nl(t,e,6,a)&&(h=!0),p>7&&nl(t,e,7,s)&&(h=!0),p>8&&nl(t,e,8,c)&&(h=!0),p>9&&nl(t,e,9,f)&&(h=!0),h}(t,e,n,r,o,i,l,u,a,s,c,f);case 2:return function(t,e,n,r,o,i,l,u,a,s,c,f){var p=!1,h=e.bindings,d=h.length;if(d>0&&cr(t,e,0,n)&&(p=!0),d>1&&cr(t,e,1,r)&&(p=!0),d>2&&cr(t,e,2,o)&&(p=!0),d>3&&cr(t,e,3,i)&&(p=!0),d>4&&cr(t,e,4,l)&&(p=!0),d>5&&cr(t,e,5,u)&&(p=!0),d>6&&cr(t,e,6,a)&&(p=!0),d>7&&cr(t,e,7,s)&&(p=!0),d>8&&cr(t,e,8,c)&&(p=!0),d>9&&cr(t,e,9,f)&&(p=!0),p){var g=e.text.prefix;d>0&&(g+=dl(n,h[0])),d>1&&(g+=dl(r,h[1])),d>2&&(g+=dl(o,h[2])),d>3&&(g+=dl(i,h[3])),d>4&&(g+=dl(l,h[4])),d>5&&(g+=dl(u,h[5])),d>6&&(g+=dl(a,h[6])),d>7&&(g+=dl(s,h[7])),d>8&&(g+=dl(c,h[8])),d>9&&(g+=dl(f,h[9]));var v=Kn(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return p}(t,e,n,r,o,i,l,u,a,s,c,f);case 16384:return function(t,e,n,r,o,i,l,u,a,s,c,f){var p=Yn(t,e.nodeIndex),h=p.instance,d=!1,g=void 0,v=e.bindings.length;return v>0&&sr(t,e,0,n)&&(d=!0,g=Ao(t,p,e,0,n,g)),v>1&&sr(t,e,1,r)&&(d=!0,g=Ao(t,p,e,1,r,g)),v>2&&sr(t,e,2,o)&&(d=!0,g=Ao(t,p,e,2,o,g)),v>3&&sr(t,e,3,i)&&(d=!0,g=Ao(t,p,e,3,i,g)),v>4&&sr(t,e,4,l)&&(d=!0,g=Ao(t,p,e,4,l,g)),v>5&&sr(t,e,5,u)&&(d=!0,g=Ao(t,p,e,5,u,g)),v>6&&sr(t,e,6,a)&&(d=!0,g=Ao(t,p,e,6,a,g)),v>7&&sr(t,e,7,s)&&(d=!0,g=Ao(t,p,e,7,s,g)),v>8&&sr(t,e,8,c)&&(d=!0,g=Ao(t,p,e,8,c,g)),v>9&&sr(t,e,9,f)&&(d=!0,g=Ao(t,p,e,9,f,g)),g&&h.ngOnChanges(g),65536&e.flags&&Gn(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,l,u,a,s,c,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,l,u,a,s,c,f){var p=e.bindings,h=!1,d=p.length;if(d>0&&cr(t,e,0,n)&&(h=!0),d>1&&cr(t,e,1,r)&&(h=!0),d>2&&cr(t,e,2,o)&&(h=!0),d>3&&cr(t,e,3,i)&&(h=!0),d>4&&cr(t,e,4,l)&&(h=!0),d>5&&cr(t,e,5,u)&&(h=!0),d>6&&cr(t,e,6,a)&&(h=!0),d>7&&cr(t,e,7,s)&&(h=!0),d>8&&cr(t,e,8,c)&&(h=!0),d>9&&cr(t,e,9,f)&&(h=!0),h){var g=Jn(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(p.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=l),d>5&&(v[5]=u),d>6&&(v[6]=a),d>7&&(v[7]=s),d>8&&(v[8]=c),d>9&&(v[9]=f);break;case 64:v={},d>0&&(v[p[0].name]=n),d>1&&(v[p[1].name]=r),d>2&&(v[p[2].name]=o),d>3&&(v[p[3].name]=i),d>4&&(v[p[4].name]=l),d>5&&(v[p[5].name]=u),d>6&&(v[p[6].name]=a),d>7&&(v[p[7].name]=s),d>8&&(v[p[8].name]=c),d>9&&(v[p[9].name]=f);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,l);break;case 6:v=y.transform(r,o,i,l,u);break;case 7:v=y.transform(r,o,i,l,u,a);break;case 8:v=y.transform(r,o,i,l,u,a,s);break;case 9:v=y.transform(r,o,i,l,u,a,s,c);break;case 10:v=y.transform(r,o,i,l,u,a,s,c,f)}}g.value=v}return h}(t,e,n,r,o,i,l,u,a,s,c,f);default:throw"unreachable"}}(t,e,r,o,i,l,u,a,s,c,f,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&fr(t,e,0,n),p>1&&fr(t,e,1,r),p>2&&fr(t,e,2,o),p>3&&fr(t,e,3,i),p>4&&fr(t,e,4,l),p>5&&fr(t,e,5,u),p>6&&fr(t,e,6,a),p>7&&fr(t,e,7,s),p>8&&fr(t,e,8,c),p>9&&fr(t,e,9,f)}(t,e,r,o,i,l,u,a,s,c,f,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);$l.forEach(function(e,r){if(i.has(Et(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:xr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[rr(r)]=o}})}}(t=t.factory(function(){return er})),t):t}(r))}var ql=new Map,$l=new Map,Wl=new Map;function Zl(t){var e;ql.set(t.token,t),"function"==typeof t.token&&(e=Et(t.token))&&"function"==typeof e.providedIn&&$l.set(t.token,t)}function Gl(t,e){var n=Er(e.viewDefFactory),r=Er(n.nodes[0].element.componentView);Wl.set(t,r)}function Kl(){ql.clear(),$l.clear(),Wl.clear()}function Ql(t){if(0===ql.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Iu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Iu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Iu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Eu),Pu=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}return l(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 Iu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Iu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Iu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Iu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Eu),Au=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Ru=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Nu=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),Du=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Mu=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Lu(t,e){return Hu(Vo(t)[jo.DateFormat],e)}function ju(t,e){return Hu(Vo(t)[jo.TimeFormat],e)}function Uu(t,e){return Hu(Vo(t)[jo.DateTimeFormat],e)}function Fu(t,e){var n=Vo(t),r=n[jo.NumberSymbols][e];if(void 0===r){if(e===Mu.CurrencyDecimal)return n[jo.NumberSymbols][Mu.Decimal];if(e===Mu.CurrencyGroup)return n[jo.NumberSymbols][Mu.Group]}return r}function Vu(t){if(!t[jo.ExtraData])throw new Error('Missing extra locale data for the locale "'+t[jo.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Hu(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function zu(t){var e=f(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var Bu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,qu={},$u=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Wu=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Zu=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Gu=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Ku(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Qu(t,e,n,r,o){void 0===n&&(n="-");var i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));for(var l=String(t);l.length0||a>-n)&&(a+=n),t===Zu.Hours)0===a&&-12===n&&(a=12);else if(t===Zu.FractionalSeconds)return u=e,Qu(a,3).substr(0,u);var s=Fu(l,Mu.MinusSign);return Qu(a,e,s,r,o)}}function Ju(t,e,n,r){return void 0===n&&(n=Ru.Format),void 0===r&&(r=!1),function(o,i){return function(t,e,n,r,o,i){switch(n){case Gu.Months:return function(t,e,n){var r=Vo(t),o=Hu([r[jo.MonthsFormat],r[jo.MonthsStandalone]],e);return Hu(o,n)}(e,o,r)[t.getMonth()];case Gu.Days:return function(t,e,n){var r=Vo(t),o=Hu([r[jo.DaysFormat],r[jo.DaysStandalone]],e);return Hu(o,n)}(e,o,r)[t.getDay()];case Gu.DayPeriods:var l=t.getHours(),u=t.getMinutes();if(i){var a,s=function(t){var e=Vo(t);return Vu(e),(e[jo.ExtraData][2]||[]).map(function(t){return"string"==typeof t?zu(t):[zu(t[0]),zu(t[1])]})}(e),c=function(t,e,n){var r=Vo(t);Vu(r);var o=Hu([r[jo.ExtraData][0],r[jo.ExtraData][1]],e)||[];return Hu(o,n)||[]}(e,o,r);if(s.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],o=r.hours;l>=n.hours&&u>=n.minutes&&(l0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Wu.Short:return(o>=0?"+":"")+Qu(l,2,i)+Qu(Math.abs(o%60),2,i);case Wu.ShortGMT:return"GMT"+(o>=0?"+":"")+Qu(l,1,i);case Wu.Long:return"GMT"+(o>=0?"+":"")+Qu(l,2,i)+":"+Qu(Math.abs(o%60),2,i);case Wu.Extended:return 0===r?"Z":(o>=0?"+":"")+Qu(l,2,i)+":"+Qu(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'+t+'"')}}}var ta=0,ea=4;function na(t,e){return void 0===e&&(e=!1),function(n,r){var o,i,l,u;if(e){var a=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+a)/7)}else{var c=(l=n.getFullYear(),u=new Date(l,ta,1).getDay(),new Date(l,0,1+(u<=ea?ea:ea+7)-u)),f=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(ea-i.getDay()))).getTime()-c.getTime();o=1+Math.round(f/6048e5)}return Qu(o,t,Fu(r,Mu.MinusSign))}}var ra={};function oa(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function ia(t){return t instanceof Date&&!isNaN(t.valueOf())}var la=new jt("UseV4Plurals"),ua=function(){return function(){}}(),aa=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return l(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return Vo(t)[jo.PluralCase]}(e||this.locale)(t)){case Au.Zero:return"zero";case Au.One:return"one";case Au.Two:return"two";case Au.Few:return"few";case Au.Many:return"many";default:return"other"}},e}(ua),sa=function(){return function(){}}(),ca=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return t.prototype.getValue=function(){return null},t.prototype.setClass=function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},t.prototype.setNgClass=function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(nn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},t.prototype.applyChanges=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._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 "+It(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},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}(),fa=function(t){function e(e){return t.call(this,e)||this}return l(e,t),Object.defineProperty(e.prototype,"klass",{set:function(t){this._delegate.setClass(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(t){this._delegate.setNgClass(t)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this._delegate.applyChanges()},e}(function(){function t(t){this._delegate=t}return t.prototype.getValue=function(){return this._delegate.getValue()},t.ngDirectiveDef=void 0,t}()),pa=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}(),ha=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){ce()&&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.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new pa(null,e._ngForOf,-1,-1),null===o?void 0:o),l=new da(t,i);n.push(l)}else null==o?e._viewContainer.remove(null===r?void 0:r):null!==r&&(i=e._viewContainer.get(r),e._viewContainer.move(i,o),l=new da(t,i),n.push(l))});for(var r=0;r"};return t.replace(/&[^;]+;/g,function(t){return e[t]})},t.ngInjectableDef=St({factory:function(){return new t(Wt(Ra),Wt(Ta))},token:t,providedIn:"root"}),t}(),Ya=function(){function t(){this.subject=new j,this.state=this.subject.asObservable(),this.busy=!1}return t.prototype.show=function(){this.busy=!0,this.subject.next(!0)},t.prototype.hide=function(){this.busy=!1,this.subject.next(!1)},t.ngInjectableDef=St({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Ja=function(){function t(t,e){this.loader=t,this.app=e,this.version="",this.prefix=this.app.config.data_prefix,this.version=this.app.config.hash||""}return t.prototype.get=function(t){var e=this;t=this.getFullUrl(t);var n=this.app.getCache(t.split("?")[0]);return n?Promise.resolve(n):(this.loader.show(),Da.fetch(t).then(function(t){return e.loader.hide(),t.json()}).catch(function(t){return e.loader.hide(),Promise.reject(t)}))},t.prototype.request=function(t){var e=this;return this.loader.show(),Da.fetch(t.url,t).then(function(t){return e.loader.hide(),t.json()}).catch(function(t){return e.loader.hide(),Promise.reject(t)})},t.prototype.getFullUrl=function(t){return this.prefix+"/"+function(t){var e,n,r,o,i,l,u,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",c=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t);c>2,i=(3&e)<<4|(n=t.charCodeAt(c++))>>4,l=(15&n)<<2|(r=t.charCodeAt(c++))>>6,u=63&r,isNaN(n)?l=u=64:isNaN(r)&&(u=64),s=s+a.charAt(o)+a.charAt(i)+a.charAt(l)+a.charAt(u);return s.replace(/=/g,"")}(t.replace(/(^\/*|\/*$)/g,""))+".json?v="+this.version},t.ngInjectableDef=St({factory:function(){return new t(Wt(Ya),Wt(Qa))},token:t,providedIn:"root"}),t}();function Xa(){for(var t=[],e=0;e0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?cs(function(e,n){return t(e,n,r)}):rt,gs(1),n?xs(e):ms(function(){return new ns}))}}function ks(t){return function(e){var n=new Is(t),r=e.lift(n);return n.caught=r}}var Is=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ts(t,this.selector,this.caught))},t}(),Ts=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return l(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new V(this,void 0,void 0);this.add(r),Z(this,n,void 0,void 0,r)}},e}(G);function Os(t){return function(e){return 0===t?us():e.lift(new Ps(t))}}var Ps=function(){function t(t){if(this.total=t,this.total<0)throw new ds}return t.prototype.call=function(t,e){return e.subscribe(new As(t,this.total))},t}(),As=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return l(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(E);function Rs(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?cs(function(e,n){return t(e,n,r)}):rt,Os(1),n?xs(e):ms(function(){return new ns}))}}var Ns=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Ds(t,this.predicate,this.thisArg,this.source))},t}(),Ds=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return l(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E);function Ms(t,e){return"function"==typeof e?function(n){return n.pipe(Ms(function(n,r){return X(t(n,r)).pipe(K(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Ls(t))}}var Ls=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new js(t,this.project))},t}(),js=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return l(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new V(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Z(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(G);function Us(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new Vs(t,e,n))}}var Vs=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Hs(t,this.accumulator,this.seed,this.hasSeed))},t}(),Hs=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return l(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(E);function zs(t,e){return tt(t,e,1)}function Bs(t,e,n){return function(r){return r.lift(new qs(t,e,n))}}var qs=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new $s(t,this.nextOrObserver,this.error,this.complete))},t}(),$s=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=T,i._tapError=T,i._tapComplete=T,i._tapError=r||T,i._tapComplete=o||T,g(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||T,i._tapError=n.error||T,i._tapComplete=n.complete||T),i}return l(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(E),Ws=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Zs(t,this.callback))},t}(),Zs=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new m(n)),r}return l(e,t),e}(E),Gs=null;function Ks(){return Gs}var Qs,Ys=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"],o=0;o0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;l||(l=t[i]=[]);var a=Lc(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},e}(gc),qc=["alt","control","meta","shift"],$c={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Wc=function(t){function e(e){return t.call(this,e)||this}var n;return l(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ks().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(qc.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},e.getEventFullKey=function(t){var e="",n=Ks().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),qc.forEach(function(r){r!=n&&(0,$c[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(gc),Zc=function(){return function(){}}(),Gc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return l(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Re.NONE:return e;case Re.HTML:return e instanceof Qc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{ye=ye||new fe(t);var r=e?String(e):"";n=ye.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ye.getInertBodyElement(r)}while(r!==i);var l=new Ie,u=l.sanitizeChildren(Ae(n)||n);return ce()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var a=Ae(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(e)));case Re.STYLE:return e instanceof Yc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Me);return e&&de(e[1])===e[1]||t.match(De)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Hf(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zf(t){return ln(t)?t:on(t)?X(Promise.resolve(t)):Xa(t)}function Bf(t,e,n){return n?function(t,e){return Uf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Zf(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Zf(l=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Zf(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!Zf(n.segments,l)&&!!n.children[If]&&e(n.children[If],r,u)}(e,n,n.segments)}(t.root,e.root)}var qf=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Of(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Yf.serialize(this)},t}(),$f=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Hf(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Jf(this)},t}(),Wf=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Of(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return op(this)},t}();function Zf(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Gf(t,e){var n=[];return Hf(t.children,function(t,r){r===If&&(n=n.concat(e(t,r)))}),Hf(t.children,function(t,r){r!==If&&(n=n.concat(e(t,r)))}),n}var Kf=function(){return function(){}}(),Qf=function(){function t(){}return t.prototype.parse=function(t){var e=new sp(t);return new qf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Jf(e);if(n){var r=e.children[If]?t(e.children[If],!1):"",o=[];return Hf(e.children,function(e,n){n!==If&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Gf(e,function(n,r){return r===If?[t(e.children[If],!1)]:[r+":"+t(n,!1)]});return Jf(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return tp(t)+"="+tp(e)}).join("&"):tp(t)+"="+tp(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Yf=new Qf;function Jf(t){return t.segments.map(function(t){return op(t)}).join("/")}function Xf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tp(t){return Xf(t).replace(/%3B/gi,";")}function ep(t){return Xf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function np(t){return decodeURIComponent(t)}function rp(t){return np(t.replace(/\+/g,"%20"))}function op(t){return""+ep(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+ep(t)+"="+ep(e[t])}).join(""));var e}var ip=/^[^\/()?;=#]+/;function lp(t){var e=t.match(ip);return e?e[0]:""}var up=/^[^=?&#]+/,ap=/^[^?&#]+/,sp=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $f([],{}):new $f([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[If]=new $f(t,e)),n},t.prototype.parseSegment=function(){var t=lp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Wf(np(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=lp(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=lp(this.remaining);r&&this.capture(n=r)}t[np(e)]=np(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(up))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(ap);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=rp(n),l=rp(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(l)}else t[i]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=lp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=If);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[If]:new $f([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),cp=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=fp(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=fp(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=pp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return pp(t,this._root).map(function(t){return t.value})},t}();function fp(t,e){var n,r;if(t===e.value)return e;try{for(var o=c(e.children),i=o.next();!i.done;i=o.next()){var l=fp(t,i.value);if(l)return l}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function pp(t,e){var n,r;if(t===e.value)return[e];try{for(var o=c(e.children),i=o.next();!i.done;i=o.next()){var l=pp(t,i.value);if(l.length)return l.unshift(e),l}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var hp=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function dp(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var gp=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,_p(r,e),r}return l(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(cp);function vp(t,e){var n=function(t,e){var n=new bp([],{},{},"",{},If,e,null,t.root,-1,{});return new wp("",new hp(n,[]))}(t,e),r=new ts([new Wf("",{})]),o=new ts({}),i=new ts({}),l=new ts({}),u=new ts(""),a=new yp(r,o,l,u,i,If,e,n.root);return a.snapshot=n.root,new gp(new hp(a,[]),n)}var yp=function(){function t(t,e,n,r,o,i,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(K(function(t){return Of(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(K(function(t){return Of(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function mp(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:u({},t.params,e.params),data:u({},t.data,e.data),resolve:u({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var bp=function(){function t(t,e,n,r,o,i,l,u,a,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Of(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Of(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),wp=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,_p(r,n),r}return l(e,t),e.prototype.toString=function(){return xp(this._root)},e}(cp);function _p(t,e){e.value._routerState=t,e.children.forEach(function(e){return _p(t,e)})}function xp(t){var e=t.children.length>0?" { "+t.children.map(xp).join(", ")+" } ":"";return""+t.value+e}function Cp(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Uf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Uf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Ep(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Vf(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Tp=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Op(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[If]:""+t}function Pp(t,e,n){if(t||(t=new $f([],{})),0===t.segments.length&&t.hasChildren())return Ap(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var l=t.segments[o],u=Op(n[r]),a=r0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!Mp(u,a,l))return i;r+=2}else{if(!Mp(u,{},l))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new $f([],((r={})[If]=t,r)):t;return new qf(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(K(function(t){return new $f([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Xa({});var i=[],l=[],u={};return Hf(n,function(n,o){var a,s,c=(a=o,s=n,r.expandSegmentGroup(t,e,s,a)).pipe(K(function(t){return u[o]=t}));o===If?i.push(c):l.push(c)}),Xa.apply(null,i.concat(l)).pipe(ss(),Es(),K(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var l=this;return Xa.apply(void 0,p(n)).pipe(K(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,r,o,i).pipe(ks(function(t){if(t instanceof Vp)return Xa(null);throw t}))}),ss(),Rs(function(t){return!!t}),ks(function(t,n){if(t instanceof ns||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,o))return Xa(new $f([],{}));throw new Vp(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,l){return Kp(r)!==i?zp(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):zp(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Bp(i):this.lineralizeSegments(n,i).pipe(tt(function(n){var i=new $f(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var l=this,u=Wp(e,r,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return zp(e);var f=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Bp(f):this.lineralizeSegments(r,f).pipe(tt(function(r){return l.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(K(function(t){return n._loadedConfig=t,new $f(r,{})})):Xa(new $f(r,{}));var i=Wp(e,n,r),l=i.consumedSegments,a=i.lastChild;if(!i.matched)return zp(e);var s=r.slice(a);return this.getChildConfig(t,n,r).pipe(tt(function(t){var n=t.module,r=t.routes,i=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Gp(t,e,n)&&Kp(n)!==If})}(t,n)?{segmentGroup:Zp(new $f(e,function(t,e){var n,r,o={};o[If]=e;try{for(var i=c(t),l=i.next();!l.done;l=i.next()){var u=l.value;""===u.path&&Kp(u)!==If&&(o[Kp(u)]=new $f([],{}))}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new $f(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Gp(t,e,n)})}(t,n)?{segmentGroup:Zp(new $f(t.segments,function(t,e,n,r){var o,i,l={};try{for(var a=c(n),s=a.next();!s.done;s=a.next()){var f=s.value;Gp(t,e,f)&&!r[Kp(f)]&&(l[Kp(f)]=new $f([],{}))}}catch(p){o={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return u({},r,l)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,l,s,r),a=i.segmentGroup,f=i.slicedSegments;return 0===f.length&&a.hasChildren()?o.expandChildren(n,r,a).pipe(K(function(t){return new $f(l,t)})):0===r.length&&0===f.length?Xa(new $f(l,{})):o.expandSegment(n,a,r,f,If,!0).pipe(K(function(t){return new $f(l.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Xa(new Nf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Xa(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?X(o).pipe(K(function(r){var o,i=t.get(r);if(function(t){return t&&Up(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Up(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return zf(o)})).pipe(ss(),(r=function(t){return!0===t},function(t){return t.lift(new Ns(r,void 0,t))})):Xa(!0)}(t.injector,e,n).pipe(tt(function(n){return n?r.configLoader.load(t.injector,e).pipe(K(function(t){return e._loadedConfig=t,t})):function(t){return new A(function(e){return e.error(Af("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Xa(new Nf([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Xa(n);if(r.numberOfChildren>1||!r.children[If])return qp(t.redirectTo);r=r.children[If]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new qf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Hf(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),l={};return Hf(e.children,function(e,i){l[i]=o.createSegmentGroup(t,e,n,r)}),new $f(i,l)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=c(e),l=i.next();!l.done;l=i.next()){var u=l.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Wp(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Rf)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Zp(t){if(1===t.numberOfChildren&&t.children[If]){var e=t.children[If];return new $f(t.segments.concat(e.segments),e.children)}return t}function Gp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Kp(t){return t.outlet||If}var Qp=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Yp=function(){return function(t,e){this.component=t,this.route=e}}();function Jp(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Xp(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=dp(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,l=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(l&&i.routeConfig===l.routeConfig){var a=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Zf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Zf(t.url,e.url)||!Uf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sp(t,e)||!Uf(t.queryParams,e.queryParams);case"paramsChange":default:return!Sp(t,e)}}(l,i,i.routeConfig.runGuardsAndResolvers);a?o.canActivateChecks.push(new Qp(r)):(i.data=l.data,i._resolvedData=l._resolvedData),Xp(t,e,i.component?u?u.children:null:n,r,o),a&&o.canDeactivateChecks.push(new Yp(u&&u.outlet&&u.outlet.component||null,l))}else l&&th(e,u,o),o.canActivateChecks.push(new Qp(r)),Xp(t,null,i.component?u?u.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),Hf(i,function(t,e){return th(t,n.getContext(e),o)}),o}function th(t,e,n){var r=dp(t),o=t.value;Hf(r,function(t,r){th(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Yp(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var eh=Symbol("INITIAL_VALUE");function nh(){return Ms(function(t){return(function(){for(var t=[],e=0;e0?Vf(n).parameters:{};o=new bp(n,a,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,dh(t),r,t.component,t,sh(e),ch(e)+n.length,gh(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new uh;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Rf)(n,t,e);if(!r)throw new uh;var o={};Hf(r.posParams,function(t,e){o[e]=t.path});var i=r.consumed.length>0?u({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=s.consumedSegments,l=n.slice(s.lastChild),o=new bp(i,s.parameters,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,dh(t),r,t.component,t,sh(e),ch(e)+i.length,gh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=fh(e,i,l,c,this.relativeLinkResolution),p=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new hp(o,d)]}if(0===c.length&&0===h.length)return[new hp(o,[])];var g=this.processSegment(c,p,h,If);return[new hp(o,g)]},t}();function sh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ch(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function fh(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return ph(t,e,n)&&hh(n)!==If})}(t,n)){var i=new $f(e,function(t,e,n,r){var o,i,l={};l[If]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var u=c(n),a=u.next();!a.done;a=u.next()){var s=a.value;if(""===s.path&&hh(s)!==If){var f=new $f([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,l[hh(s)]=f}}}catch(p){o={error:p}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return l}(t,e,r,new $f(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return ph(t,e,n)})}(t,n)){var l=new $f(t.segments,function(t,e,n,r,o,i){var l,a,s={};try{for(var f=c(r),p=f.next();!p.done;p=f.next()){var h=p.value;if(ph(t,n,h)&&!o[hh(h)]){var d=new $f([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[hh(h)]=d}}}catch(g){l={error:g}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(l)throw l.error}}return u({},o,s)}(t,e,n,r,t.children,o));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}var a=new $f(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}function ph(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function hh(t){return t.outlet||If}function dh(t){return t.data||{}}function gh(t){return t.resolve||{}}function vh(t,e,n,r){var o=Jp(t,e,r);return zf(o.resolve?o.resolve(e,n):o(e,n))}function yh(t){return function(e){return e.pipe(Ms(function(e){var n=t(e);return n?X(n).pipe(K(function(){return e})):X([e])}))}}var mh=function(){return function(){}}(),bh=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),wh=new jt("ROUTES"),_h=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(K(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Nf(Ff(o.injector.get(wh)).map(jf),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?X(this.loader.load(t)):zf(t()).pipe(tt(function(t){return t instanceof Qt?Xa(t):X(e.compiler.compileModuleAsync(t))}))},t}(),xh=function(){return function(){}}(),Ch=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Sh(t){throw t}function Eh(t,e,n){return e.parse("/")}function kh(t,e){return Xa(null)}var Ih=function(){function t(t,e,n,r,o,i,l,u){var a=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=Sh,this.malformedUriErrorHandler=Eh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kh,afterPreactivation:kh},this.urlHandlingStrategy=new Ch,this.routeReuseStrategy=new bh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Kt),this.console=o.get(Jo);var s=o.get(vi);this.isNgZoneEnabled=s instanceof vi,this.resetConfig(u),this.currentUrlTree=new qf(new $f([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _h(i,l,function(t){return a.triggerEvent(new bf(t))},function(t){return a.triggerEvent(new wf(t))}),this.routerState=vp(this.currentUrlTree,this.rootComponentType),this.transitions=new ts({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(cs(function(t){return 0!==t.id}),K(function(t){return u({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Ms(function(t){var r,o,i,l,a=!1,s=!1;return Xa(t).pipe(Bs(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?u({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Ms(function(t){var r,o,i,l,a=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||a)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Xa(t).pipe(Ms(function(t){var r=e.transitions.getValue();return n.next(new cf(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?ls:[t]}),Ms(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,i=e.urlSerializer,l=e.config,function(t){return t.pipe(Ms(function(t){return function(e,n,r,o,i){return new $p(e,n,r,t.extractedUrl,i).apply()}(r,o,i,0,l).pipe(K(function(e){return u({},t,{urlAfterRedirects:e})}))}))}),Bs(function(t){e.currentNavigation=u({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,r,o,i){return function(r){return r.pipe(tt(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new ah(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(l=r.urlAfterRedirects,e.serializeUrl(l)),o,i).pipe(K(function(t){return u({},r,{targetSnapshot:t})}));var l}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Bs(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),Bs(function(t){var r=new df(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(a&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var s=t.extractedUrl,c=t.source,f=t.restoredState,p=t.extras,h=new cf(t.id,e.serializeUrl(s),c,f);n.next(h);var d=vp(s,e.rootComponentType).snapshot;return Xa(u({},t,{targetSnapshot:d,urlAfterRedirects:s,extras:u({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ls}),yh(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Bs(function(t){var n=new gf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),K(function(t){return u({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,i=n._root,Xp(i,r?r._root:null,o,[i.value]))});var n,r,o,i}),function(t,e){return function(n){return n.pipe(tt(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,i=n.guards,l=i.canActivateChecks,a=i.canDeactivateChecks;return 0===a.length&&0===l.length?Xa(u({},n,{guardsResult:!0})):function(t,e,n,r){return X(a).pipe(tt(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Xa(i.map(function(i){var l,u=Jp(i,e,o);if(function(t){return t&&Up(t.canDeactivate)}(u))l=zf(u.canDeactivate(t,e,n,r));else{if(!Up(u))throw new Error("Invalid CanDeactivate guard");l=zf(u(t,e,n,r))}return l.pipe(Rs())})).pipe(nh()):Xa(!0)}(t.component,t.route,n,e,r)}),Rs(function(t){return!0!==t},!0))}(0,r,o,t).pipe(tt(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return X(l).pipe(zs(function(e){return X([oh(e.route.parent,r),rh(e.route,r),lh(t,e.path,n),ih(t,e.route,n)]).pipe(ss(),Rs(function(t){return!0!==t},!0))}),Rs(function(t){return!0!==t},!0))}(r,0,t,e):Xa(n)}),K(function(t){return u({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Bs(function(t){if(Fp(t.guardsResult)){var n=Af('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Bs(function(t){var n=new vf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),cs(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new pf(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),yh(function(t){if(t.guards.canActivateChecks.length)return Xa(t).pipe(Bs(function(t){var n=new yf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(tt(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?X(o).pipe(zs(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Xa({});if(1===o.length){var i=o[0];return vh(t[i],e,n,r).pipe(K(function(t){var e;return(e={})[i]=t,e}))}var l={};return X(o).pipe(tt(function(o){return vh(t[o],e,n,r).pipe(K(function(t){return l[o]=t,t}))})).pipe(Es(),K(function(){return l}))}(t._resolve,t,e,o).pipe(K(function(e){return t._resolvedData=e,t.data=u({},t.data,mp(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(n){return O(Fs(t,e),gs(1),xs(e))(n)}:function(e){return O(Fs(function(e,n,r){return t(e,n,r+1)}),gs(1))(e)}}(function(t,e){return t}),K(function(e){return t})):Xa(t)}))}),Bs(function(t){var n=new mf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),yh(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),K(function(t){var n,r,o,i=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(a=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var l=c(r.children),u=l.next();!u.done;u=l.next()){var a=u.value;if(e.shouldReuseRoute(a.value.snapshot,n.value))return t(e,n,a)}}catch(s){o={error:s}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new hp(a,o)}var i=e.retrieve(n.value);if(i){var l=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ru;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new Tp(l,!1,u-a)}()}(i,0,t),u=l.processChildren?Ap(l.segmentGroup,l.index,i.commands):Pp(l.segmentGroup,l.index,i.commands);return kp(l.segmentGroup,u,e,r,o)}(s,this.currentUrlTree,t,f,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),ce()&&this.isNgZoneEnabled&&!vi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Fp(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;ethis.device.height?"remove":"add"]("dv")},t}(),sd=function(){function t(t,e,n){this.app=t,this.device=e,this.er=n,this.scrollTop=0,this.action=new Ho,this.currentId="",this.stacks={},this.linedIds=[],this.config=this.app.config.toc||{},this.syncPosition=Ha(this.syncPosition.bind(this))}return t.prototype.navigate=function(t){this.currentId!==t&&(this.currentId=t,this.action.emit(this.getOffset(t)))},t.prototype.syncPosition=function(){var t=this.scrollTop||0;if(t=n.offset&&(void 0===r||t4&&setTimeout(function(){n.style[$a("transitionDuration")]="",n.style[$a("transitionProperty")]=""},e+100)},t}();function cd(){for(var t=[],e=0;e1&&(r=1),t.scrollPercent=Math.round(100*r)}else t.scrollPercent=0;t.isTocOpen&&t.tocData&&t.toc&&t.toc.syncPosition(),"home"===t.currentId&&(t.indexScrollTop=n)}),this.router.events.pipe(cs(function(t){return t instanceof ff})).subscribe(function(){t.screenType!==rd.lg&&t.isSidebarOpen&&t.toggleSb(),t.isTocOpen&&t.toggleToc(),t.device.refreshScroll();var e,n=t.route.snapshot.children[0].children.length?t.route.snapshot.children[0].children[0].data:t.route.snapshot.children[0].data;if(t.currentId=n.id,"home"===t.currentId)setTimeout(function(){t.pageRef.nativeElement.scrollTop=t.indexScrollTop||0},0);else if("post"===t.currentId||"page"===t.currentId){var r=t.route.fragment.value;r?setTimeout(function(){var e=t.doc.getElementById(r);e&&e.scrollIntoView(!0)},24):t.pageRef.nativeElement.scrollTop=0}else t.pageRef.nativeElement.scrollTop=0;t.tocData=n[t.currentId]&&n[t.currentId].toc?n[t.currentId].toc:null,t.setTitle(n),n.post&&n.post.thumbnail?n.post.color?t.themeColor=t.setColor(n.post.color):n.post.thumbnail&&(e=n.post.thumbnail,La[e]?Promise.resolve(La[e]):new Promise(function(t,n){var r=new Image;r.crossOrigin="anonymous",r.onload=function(){var n,o=Da.doc.createElement("canvas").getContext("2d");o.drawImage(r,0,0);var i=(n=o.getImageData(0,0,1,1).data.slice(0,3)).reduce(function(t,e){return t+e}),l=Ma[1]-i;l<0?(l=Math.abs(l),l=Math.floor(l/3),n=n.map(function(t){return t-l})):ic.clientX?"left":"right",u=Math.abs(i-c.clientX),Math.abs(l-c.clientY)>=u||Math.abs(u)>e.hold&&(a=!0,o.next({start:i,offset:s(u),direction:n,isStart:r,isEnd:!1}),r=!1)},{passive:!0}),t.addEventListener("touchend",function(){a&&o.next({start:i,offset:s(u),direction:n,isEnd:!0,isStart:!1}),a=!1,i=l=u=0},{passive:!0}),o.asObservable();function s(t){return Math.ceil((t+(t>0?-e.hold:e.hold))*e.scale)}}(this.pageRef.nativeElement,{scale:.382});e.subscribe(function(e){var n,r=.06*t.device.width,o=t.sidebarWidth,i=t.isSidebarOpen,l=e.offset;!t.isSidebarOpen&&e.start>r||(l>o-1&&(l=o-1),l<1&&(l=1),n=~~(o-l),e.isEnd?lo-1&&(l=o-1),l<1&&(l=1),n=~~(o-l),e.isEnd?l0?(this.isTransiting=!0,this.isTocOpen&&this.toggleToc(),r.classList.add("bm"),this.setColor(i),Fa(r,function(){0===t&&(r.classList.remove("bm"),n.setColor(n.themeColor)),r.style[$a("transitionDuration")]=r.style[$a("transitionProperty")]="",o.style[$a("transitionDuration")]=o.style[$a("transitionProperty")]="",n.isTransiting=!1})):this.isTransiting||(this.isTransiting=!0,r.classList.add("bm"),this.setColor(i)),r.style[$a("transitionProperty")]=$a("transform",!0)+",border-radius",r.style[$a("transform")]=this.transformer(t,1-.14*t/this.sidebarWidth),r.style[$a("transitionDuration")]=e+"ms",o.style.opacity=t/this.sidebarWidth,o.style[$a("transitionDuration")]=e+"ms"},t.prototype.toggleSb=function(t){this.isTransiting||(this.isSidebarOpen||t?(this.stepSb(0,~~(1.5*this.sidebarWidth)),this.isSidebarOpen=!1):(this.stepSb(this.sidebarWidth,~~(1.5*this.sidebarWidth)),this.isSidebarOpen=!0,this.isSearchOpen=!1))},t.prototype.toggleToc=function(t){this.isTocOpen||t?(this.toc.step(this.toc.width,~~(1.5*this.toc.width)),this.isTocOpen=!1):(this.toc.refresh(),this.toc.syncPosition(),this.toc.step(0,~~(1.5*this.toc.width)),this.isTocOpen=!0,this.isSearchOpen=!1)},t.prototype.toggleSearch=function(t){this.isSearchOpen=!t&&!this.isSearchOpen},t.prototype.setTitle=function(t){var e=this,n={post:function(t){return t.post.title},page:function(t){return t.page.title},tags:function(){return e.app.i18n("title.tags")},tag:function(t){return e.app.i18n("title.tags")+" : "+t.tag.name},categories:function(){return e.app.i18n("title.categories")},category:function(t){return e.app.i18n("title.categories")+" : "+t.category.name},archives:function(){return e.app.i18n("title.archives")},search:function(){return e.app.i18n("title.search")},404:function(){return 404}}[t.id],r=n?n(t)+" - "+this.config.title:this.config.title;this.title.setTitle(r)},t.prototype.setColor=function(t){return this.meta.updateTag({name:"theme-color",content:t=t||this.app.config.color[1]||this.config.color[1]||""}),t},t.prototype.onFabAct=function(t){switch(t){case ld.toTop:this.animateTo(0);break;case ld.toBottom:this.animateTo(this.pageRef.nativeElement.scrollHeight-this.pageHeight);break;case ld.toggleSidebar:this.toggleSb();break;case ld.toggleToc:this.toggleToc();break;case ld.search:this.toggleSearch()}},t.prototype.animateTo=function(t){var e=this.scrollTop||0,n=Math.abs(~~(.618*(t-e)/1));ja(this.pageRef.nativeElement,"scrollTop",{from:e,to:t,duration:n>618?618:n})},t.prototype.onOverlay=function(){this.isSidebarOpen&&this.toggleSb(),this.isTocOpen&&this.toggleToc()},t.prototype.onkeyup=function(t,e){"Escape"!==t&&27!==e||(this.isSearchOpen&&this.toggleSearch(),this.isTocOpen&&this.toggleToc(),this.isSidebarOpen&&this.toggleSb())},t}(),dd=ur({encapsulation:2,styles:[],data:{}});function gd(t){return gl(0,[(t()(),Ji(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),mo(1,212992,null,0,Dh,[Nh,zn,hn,[8,null],Ue],null,null)],function(t,e){t(e,1,0)},null)}function vd(t){return gl(0,[(t()(),Ji(0,0,null,null,1,"ng-component",[],null,null,null,gd,dd)),mo(1,49152,null,0,kf,[],null,null)],null,null)}var yd=Zr("ng-component",kf,vd,{},{},[]),md=function(){function t(){this.ratio=.625,this.state=-1}return t.prototype.ngOnChanges=function(t){t.src&&(this.state=-1)},t.prototype.onLoad=function(){this.state=1},t.prototype.onError=function(){this.state=0},t}(),bd=ur({encapsulation:2,styles:[],data:{}});function wd(t){return gl(0,[(t()(),Ji(0,0,null,null,6,"span",[["class","cr"]],null,null,null,null,null)),wo(512,null,sa,ca,[Mn,Ln,yn,xn]),mo(2,278528,null,0,fa,[sa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),cl(3,{cs:0}),wo(512,null,ma,ba,[yn,Ln,xn]),mo(5,278528,null,0,wa,[ma],{ngStyle:[0,"ngStyle"]},null),cl(6,{padding:0})],function(t,e){var n=e.component,r=t(e,3,0,0===n.state);t(e,2,0,"cr",r);var o=t(e,6,0,(50*n.ratio).toFixed(3)+"% 0");t(e,5,0,o)},null)}function _d(t){return gl(2,[(t()(),Yi(16777216,null,null,1,null,wd)),mo(1,16384,null,0,ga,[zn,Vn],{ngIf:[0,"ngIf"]},null),(t()(),Ji(2,0,null,null,3,"img",[["class","cq"]],[[8,"src",4],[8,"alt",0]],[[null,"load"],[null,"error"]],function(t,e,n){var r=!0,o=t.component;return"load"===e&&(r=!1!==o.onLoad()&&r),"error"===e&&(r=!1!==o.onError()&&r),r},null,null)),wo(512,null,ma,ba,[yn,Ln,xn]),mo(4,278528,null,0,wa,[ma],{ngStyle:[0,"ngStyle"]},null),cl(5,{display:0})],function(t,e){var n=e.component;t(e,1,0,1!==n.state);var r=t(e,5,0,1===n.state?"":"none");t(e,4,0,r)},function(t,e){var n=e.component;t(e,2,0,Dr(1,"",n.src,""),Dr(1,"",n.alt,""))})}var xd=function(){function t(t,e){this.er=t,this.renderer=e,this.className="is-snippet"}return t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.process()},0)},t.prototype.process=function(){var t=this,e=/^https?\:\/\/gist.github.com/,n=this.er.nativeElement&&this.er.nativeElement.getElementsByClassName(this.className);n&&n.length&&Array.from(n).forEach(function(n){var r=n.querySelector("script");if(n.classList.remove(t.className),r){var o=r.innerHTML,i=r.src;if(o||i){if(n.removeChild(r),i&&i.match(e)){var l=t.renderer.createElement("iframe");return l.style.display="none",l.onload=function(){var e=l.contentDocument;if(e){var r=t.renderer.createElement("div"),o=e.querySelector('link[rel="stylesheet"]'),i=e.querySelector(".gist");if(o&&i){var u=i.cloneNode();u.innerHTML=i.innerHTML,r.appendChild(o.cloneNode()),r.appendChild(u)}n.removeChild(l),n.appendChild(r),l=e=null}},l.srcdoc='