diff --git a/docs/index.html b/docs/index.html index 8b98eaa..a6cc703 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,5 +9,5 @@ - + diff --git a/docs/main.d7253b581c36b2018266.js b/docs/main.b8a5eea981718f9a3790.js similarity index 80% rename from docs/main.d7253b581c36b2018266.js rename to docs/main.b8a5eea981718f9a3790.js index 7aa10ec..6bb136f 100644 --- a/docs/main.d7253b581c36b2018266.js +++ b/docs/main.b8a5eea981718f9a3790.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{3:function(e,t,n){e.exports=n("zUnb")},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error('Cannot find module "'+e+'".');throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},zUnb:function(e,t,n){"use strict";n.r(t);var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function a(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(H);function Z(e){return e}var q=function(e){function t(){var n=e.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error),Q=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return o(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(w),W=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return o(t,e),t}(x),K=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype[E]=function(){return new W(this)},t.prototype.lift=function(e){var t=new G(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new q;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(x),X=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new w).add(this.source.subscribe(new te(this.getSubject(),this))),e.closed?(this._connection=null,e=w.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Y()(this)},t}(I).prototype,ee={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:X._subscribe},_isComplete:{value:X._isComplete,writable:!0},getSubject:{value:X.getSubject},connect:{value:X.connect},refCount:{value:X.refCount}},te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(W);function ne(){return new K}function re(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var oe=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?re({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),ie="__parameters__";function se(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var s=t[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):ye(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Me,"\n ")}function Fe(e,t){return new Error(Le(e,t))}var Be=void 0;function ze(e){var t=Be;return Be=e,t}String;var Ue=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e}({}),Ze=new function(e){this.full="6.0.4",this.major="6.0.4".split(".")[0],this.minor="6.0.4".split(".")[1],this.patch="6.0.4".split(".").slice(2).join(".")}("6.0.4"),qe="ngDebugContext",Qe="ngOriginalError",We="ngErrorLogger";function Ke(e){return e[qe]}function Ge(e){return e[Qe]}function Ye(e){for(var t=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Vt=function(){function e(){this._applications=new Map,jt.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),jt.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}(),jt=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Ht=!0,Lt=!1,Ft=new oe("AllowMultipleToken");function Bt(){return Lt=!0,Ht}var zt=function(e,t){this.name=e,this.token=t};function Ut(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new oe(r);return function(t){void 0===t&&(t=[]);var i=Zt();if(!i||i.injector.get(Ft,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var s=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(Ot&&!Ot.destroyed&&!Ot.injector.get(Ft,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ot=e.get(qt);var t=e.get(it,null);t&&t.forEach(function(e){return e()})}(Ie.create({providers:s,name:r}))}return function(e){var t=Zt();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Zt(){return Ot&&!Ot.destroyed?Ot:null}var qt=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new Rt:("zone.js"===n?void 0:n)||new It({enableLongStackTrace:Bt()}),i=[{provide:It,useValue:o}];return o.run(function(){var t=Ie.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(Je,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Kt(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,o){try{var i=((s=n.injector.get(tt)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Xe(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var s}(s,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(dt),o=Qt({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Wt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ye(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Qt(e,t){return Array.isArray(t)?t.reduce(Qt,e):i({},e,t)}var Wt=function(){function e(e,t,n,r,o,i){var s=this;this._zone=e,this._console=t,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=Bt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new I(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),a=new I(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){It.assertNotInAngularZone(),he(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){It.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof i&&(r=e.pop()),null===o&&1===e.length&&e[0]instanceof I?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(e(function(e,r){return(o=t(e,r),o instanceof I?o:new I(j(o))).pipe(function(e,t){return function(t){return t.lift(new L(e,void 0))}}(function(t,o){return n(e,t,r,o)}));var o},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new z(t,r))})}(Z,e)}(r)(B(e,o))}(u,a.pipe(function(e){return Y()((t=ne,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ee);return r.source=e,r.subjectFactory=n,r})(e));var t}))}return e.prototype.bootstrap=function(e,t){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=e instanceof ft?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof bt?null:this._injector.get(wt),i=n.create(Ie.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(Mt,null);return s&&i.injector.get(Vt).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Bt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,kt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Kt(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ut,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Kt(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=xt("ApplicationRef#tick()"),e}();function Kt(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Gt=function(){},Yt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Jt=function(){},$t=function(e){this.nativeElement=e},Xt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Tt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[pe()]=function(){return this._results[pe()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),en=function(){},tn=function(){},nn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof rn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),rn=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return o(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,a([o+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof rn&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof rn&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof rn&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(nn),on=new Map;function sn(e){return on.get(e)||null}function un(e){on.set(e.nativeNode,e)}function an(e,t){var n=dn(e),r=dn(t);return n&&r?function(e,t,n){for(var r=e[pe()](),o=t[pe()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(e,t,an):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||ve(e,t)}var ln=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),cn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function dn(e){return!!fn(e)&&(Array.isArray(e)||!(e instanceof Map)&&pe()in e)}function fn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var pn=function(){function e(){}return e.prototype.supports=function(e){return dn(e)},e.prototype.create=function(e){return new vn(e)},e}(),hn=function(e,t){return t},vn=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||hn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<_n(n,r,o)?t:n,s=_n(i,r,o),u=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var a=s-r,l=u-r;if(a!=l){for(var c=0;c',!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(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();qn.hasOwnProperty(t)&&!Bn.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push($n(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Yn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jn=/([^\#-~ |!])/g;function $n(e){return e.replace(/&/g,"&").replace(Yn,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Jn,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Xn(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var er=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),tr=/^url\(([^)]+)\)$/,nr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),rr=function(){};function or(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function ir(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function sr(e,t){return e.nodes[t]}function ur(e,t){return e.nodes[t]}function ar(e,t){return e.nodes[t]}function lr(e,t){return e.nodes[t]}function cr(e,t){return e.nodes[t]}var dr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function fr(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return pr(n,t),n}(o,e)}function pr(e,t){e[qe]=t,e[We]=t.logError.bind(t)}function hr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var vr=function(){},yr=new Map;function gr(e){var t=yr.get(e);return t||(t=ye(e)+"_"+yr.size,yr.set(e,t)),t}var mr="$$undefined",_r="$$empty";function br(e){return{id:mr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var wr=0;function Cr(e,t,n,r){return!(!(2&e.state)&&ve(e.oldValues[t.bindingIndex+n],r))}function Er(e,t,n,r){return!!Cr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function xr(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!an(o,r)){var i=t.bindings[n].name;throw fr(dr.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function kr(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Tr(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Ir(e,t,n,r){try{return kr(33554432&e.def.nodes[t].flags?ur(e,t).componentView:e),dr.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function Sr(e){return e.parent?ur(e.parent,e.parentNodeDef.nodeIndex):null}function Nr(e){return e.parent?e.parentNodeDef.parent:null}function Ar(e,t){switch(201347067&t.flags){case 1:return ur(e,t.nodeIndex).renderElement;case 2:return sr(e,t.nodeIndex).renderText}}function Dr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Pr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Or(e){var t={},n=0,r={};return e&&e.forEach(function(e){var o=u(e,2),i=o[0],s=o[1];"number"==typeof i?(t[i]=s,n|=function(e){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:l,token:t.token},e._providers[l]=$r,e._providers[l]=oo(e,e._def.providersByKey[t.tokenKey])}return e._parent.get(t.token,n)}finally{ze(i)}}function oo(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(ro(e,n[0]));case 2:return new t(ro(e,n[0]),ro(e,n[1]));case 3:return new t(ro(e,n[0]),ro(e,n[1]),ro(e,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,lo(n,t),dr.dirtyParentQueries(r),uo(r),r}function so(e,t,n){var r=t?Ar(t,t.def.lastRenderRootNode):e.renderElement;Hr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function uo(e){Hr(e,3,null,null,void 0)}function ao(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function lo(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var co=new Object,fo=function(e){function t(t,n,r,o,i,s){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=s,u.viewDefFactory=r,u}return o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=jr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=dr.createRootView(e,t||[],n,o,r,co),u=ar(s,i).instance;return n&&s.renderer.setAttribute(ur(s,0).renderElement,"ng-version",Ze.full),new po(s,new go(s),u)},t}(ft),po=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new $t(ur(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new wo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function ho(e,t,n){return new vo(e,t,n)}var vo=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new $t(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new wo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Nr(e),e=e.parent;return e?new wo(e,t):new wo(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=io(this._data,e);dr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new go(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof bt||(o=i.get(wt));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=e;return o=s._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,ao(i,r,o),function(e,t){var n=Sr(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),dr.dirtyParentQueries(o),so(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,u=this._embeddedViews.indexOf(e._view);return o=t,s=(i=(n=this._data).viewContainer._embeddedViews)[r=u],lo(i,r),null==o&&(o=i.length),ao(i,o,s),dr.dirtyParentQueries(s),uo(s),so(n,o>0?i[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=io(this._data,e);t&&dr.destroyView(t)},e.prototype.detach=function(e){var t=io(this._data,e);return t?new go(t):null},e}();function yo(e){return new go(e)}var go=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return Hr(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){kr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{dr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){dr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),dr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,uo(this._view),dr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function mo(e,t){return new _o(e,t)}var _o=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return o(t,e),t.prototype.createEmbeddedView=function(e){return new go(dr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new $t(ur(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(en);function bo(e,t){return new wo(e,t)}var wo=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Ie.THROW_IF_NOT_FOUND),dr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:gr(e)},t)},e}();function Co(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=ur(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return sr(e,n.nodeIndex).renderText;if(20240&n.flags)return ar(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Eo(e){return new xo(e.renderer)}var xo=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=u(Zr(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return Bo(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Uo(e,t,n,o[0]));case 2:return r(Uo(e,t,n,o[0]),Uo(e,t,n,o[1]));case 3:return r(Uo(e,t,n,o[0]),Uo(e,t,n,o[1]),Uo(e,t,n,o[2]));default:for(var s=Array(i),u=0;u0)l=v,oi(v)||(c=v);else for(;l&&h===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&oi(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||vr,updateRenderer:r||vr,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function oi(e){return 0!=(1&e.flags)&&null===e.element.name}function ii(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function si(e,t,n,r){var o=li(e.root,e.renderer,e,t,n);return ci(o,e.component,r),di(o),o}function ui(e,t,n){var r=li(e,e.renderer,null,null,t);return ci(r,n,n),di(r),r}function ai(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,li(e.root,o,e,t.element.componentProvider,n)}function li(e,t,n,r,o){var i=new Array(o.nodes.length),s=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:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function ci(e,t,n){e.component=t,e.context=n}function di(e){var t;Dr(e)&&(t=ur(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Jr(e,t,0,n)&&(p=!0),f>1&&Jr(e,t,1,r)&&(p=!0),f>2&&Jr(e,t,2,o)&&(p=!0),f>3&&Jr(e,t,3,i)&&(p=!0),f>4&&Jr(e,t,4,s)&&(p=!0),f>5&&Jr(e,t,5,u)&&(p=!0),f>6&&Jr(e,t,6,a)&&(p=!0),f>7&&Jr(e,t,7,l)&&(p=!0),f>8&&Jr(e,t,8,c)&&(p=!0),f>9&&Jr(e,t,9,d)&&(p=!0),p}(e,t,n,r,o,i,s,u,a,l,c,d);case 2:return function(e,t,n,r,o,i,s,u,a,l,c,d){var f=!1,p=t.bindings,h=p.length;if(h>0&&Er(e,t,0,n)&&(f=!0),h>1&&Er(e,t,1,r)&&(f=!0),h>2&&Er(e,t,2,o)&&(f=!0),h>3&&Er(e,t,3,i)&&(f=!0),h>4&&Er(e,t,4,s)&&(f=!0),h>5&&Er(e,t,5,u)&&(f=!0),h>6&&Er(e,t,6,a)&&(f=!0),h>7&&Er(e,t,7,l)&&(f=!0),h>8&&Er(e,t,8,c)&&(f=!0),h>9&&Er(e,t,9,d)&&(f=!0),f){var v=t.text.prefix;h>0&&(v+=ni(n,p[0])),h>1&&(v+=ni(r,p[1])),h>2&&(v+=ni(o,p[2])),h>3&&(v+=ni(i,p[3])),h>4&&(v+=ni(s,p[4])),h>5&&(v+=ni(u,p[5])),h>6&&(v+=ni(a,p[6])),h>7&&(v+=ni(l,p[7])),h>8&&(v+=ni(c,p[8])),h>9&&(v+=ni(d,p[9]));var y=sr(e,t.nodeIndex).renderText;e.renderer.setValue(y,v)}return f}(e,t,n,r,o,i,s,u,a,l,c,d);case 16384:return function(e,t,n,r,o,i,s,u,a,l,c,d){var f=ar(e,t.nodeIndex),p=f.instance,h=!1,v=void 0,y=t.bindings.length;return y>0&&Cr(e,t,0,n)&&(h=!0,v=qo(e,f,t,0,n,v)),y>1&&Cr(e,t,1,r)&&(h=!0,v=qo(e,f,t,1,r,v)),y>2&&Cr(e,t,2,o)&&(h=!0,v=qo(e,f,t,2,o,v)),y>3&&Cr(e,t,3,i)&&(h=!0,v=qo(e,f,t,3,i,v)),y>4&&Cr(e,t,4,s)&&(h=!0,v=qo(e,f,t,4,s,v)),y>5&&Cr(e,t,5,u)&&(h=!0,v=qo(e,f,t,5,u,v)),y>6&&Cr(e,t,6,a)&&(h=!0,v=qo(e,f,t,6,a,v)),y>7&&Cr(e,t,7,l)&&(h=!0,v=qo(e,f,t,7,l,v)),y>8&&Cr(e,t,8,c)&&(h=!0,v=qo(e,f,t,8,c,v)),y>9&&Cr(e,t,9,d)&&(h=!0,v=qo(e,f,t,9,d,v)),v&&p.ngOnChanges(v),65536&t.flags&&ir(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,s,u,a,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,s,u,a,l,c,d){var f=t.bindings,p=!1,h=f.length;if(h>0&&Er(e,t,0,n)&&(p=!0),h>1&&Er(e,t,1,r)&&(p=!0),h>2&&Er(e,t,2,o)&&(p=!0),h>3&&Er(e,t,3,i)&&(p=!0),h>4&&Er(e,t,4,s)&&(p=!0),h>5&&Er(e,t,5,u)&&(p=!0),h>6&&Er(e,t,6,a)&&(p=!0),h>7&&Er(e,t,7,l)&&(p=!0),h>8&&Er(e,t,8,c)&&(p=!0),h>9&&Er(e,t,9,d)&&(p=!0),p){var v=lr(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(f.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=s),h>5&&(y[5]=u),h>6&&(y[6]=a),h>7&&(y[7]=l),h>8&&(y[8]=c),h>9&&(y[9]=d);break;case 64:y={},h>0&&(y[f[0].name]=n),h>1&&(y[f[1].name]=r),h>2&&(y[f[2].name]=o),h>3&&(y[f[3].name]=i),h>4&&(y[f[4].name]=s),h>5&&(y[f[5].name]=u),h>6&&(y[f[6].name]=a),h>7&&(y[f[7].name]=l),h>8&&(y[f[8].name]=c),h>9&&(y[f[9].name]=d);break;case 128:var g=n;switch(h){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,s);break;case 6:y=g.transform(r,o,i,s,u);break;case 7:y=g.transform(r,o,i,s,u,a);break;case 8:y=g.transform(r,o,i,s,u,a,l);break;case 9:y=g.transform(r,o,i,s,u,a,l,c);break;case 10:y=g.transform(r,o,i,s,u,a,l,c,d)}}v.value=y}return p}(e,t,n,r,o,i,s,u,a,l,c,d);default:throw"unreachable"}}(e,t,r,o,i,s,u,l,c,d,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&xr(e,t,0,n),f>1&&xr(e,t,1,r),f>2&&xr(e,t,2,o),f>3&&xr(e,t,3,i),f>4&&xr(e,t,4,s),f>5&&xr(e,t,5,u),f>6&&xr(e,t,6,a),f>7&&xr(e,t,7,l),f>8&&xr(e,t,8,c),f>9&&xr(e,t,9,d)}(e,t,r,o,i,s,u,a,l,c,d,f):function(e,t,n){for(var r=0;r0){var i=new Set(e.modules);Oi.forEach(function(t,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:Rr(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[gr(r)]=o}})}}(e=e.factory(function(){return vr})),e):e}(r))}var Pi=new Map,Oi=new Map,Ri=new Map;function Mi(e){Pi.set(e.token,e),"function"==typeof e.token&&e.token.ngInjectableDef&&"function"==typeof e.token.ngInjectableDef.providedIn&&Oi.set(e.token,e)}function Vi(e,t){var n=jr(jr(t.viewDefFactory).nodes[0].element.componentView);Ri.set(e,n)}function ji(){Pi.clear(),Oi.clear(),Ri.clear()}function Hi(e){if(0===Pi.size)return e;var t=function(e){for(var t=[],n=null,r=0;r=bs.length?bs[u]=null:h.tNode=bs[u],_s?(ws=null,ms.view!==Ns&&2!==ms.type||(ngDevMode&&fs(ms.child,"previousOrParentNode's child should not have been set."),ms.child=h)):ms&&(ngDevMode&&fs(ms.next,"previousOrParentNode's next property should not have been set "+u+"."),ms.next=h,ms.dynamicLContainerNode&&(ms.dynamicLContainerNode.next=h))),ms=h,_s=!0,e=h,g=1),s=Ds(e.data,e),t(g,n),Os(),js()}finally{Ps(s),_s=v,ms=y}return e}function js(){for(var e=Ns.child;null!==e;e=e.next)if(0!==e.dynamicViewCount&&e.views)for(var t=e,n=0;n"}(r))),ngDevMode&&ps(o.data,"Component's host node should have an LView attached.");var i,s=o.data;8==(8&s.flags)&&6&s.flags&&(ngDevMode&&Bs(e,xs),Fs(s,o,Ns.tView.directives[e],(i=xs[e],Array.isArray(i)?i[0]:i)))}function Ls(e){var t=zs(e);ngDevMode&&ps(t.data,"Component host node should be attached to an LView"),Fs(t.data,t,t.view.tView.directives[t.tNode.flags>>13],e)}function Fs(e,t,n,r){var o=Ds(e,t),i=n.template;try{i(1&e.flags?3:2,r),Os(),js()}finally{Ps(o)}}function Bs(e,t){null==t&&(t=Es),e>=(t?t.length:0)&&hs("index expected to be a valid data index")}function zs(e){ngDevMode&&ps(e,"expecting component got null");var t=e[Ts];return ngDevMode&&ps(e,"object is not a component"),t}o(function(e,t,n){var r=ks.call(this,e.data,n)||this;return r._lViewNode=e,r},ks=function(){function e(e,t){this._view=e,this.context=t}return e.prototype._setComponentContext=function(e,t){this._view=e,this.context=t},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e.prototype.markForCheck=function(){!function(e){for(var t=e;null!=t.parent;)t.flags|=4,t=t.parent;var n,r;t.flags|=4,ngDevMode&&ps(t.context,"rootContext"),(n=t.context).clean==Is&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){var e,t;t=zs((e=function(e){ngDevMode&&ps(e,"component");for(var t=zs(e).view;t.parent;)t=t.parent;return t}(n.component)).context.component),ngDevMode&&ps(t.data,"Component host node should be attached to an LView"),function(n,r,o,i){var s=Ds(e,t);try{gs.begin&&gs.begin(),Ms(),Rs(Ss),Hs(0,0)}finally{gs.end&&gs.end(),Ps(s)}}(),r(null),n.clean=Is}))}(this._view)},e.prototype.detach=function(){this._view.flags&=-9},e.prototype.reattach=function(){this._view.flags|=8},e.prototype.detectChanges=function(){Ls(this.context)},e.prototype.checkNoChanges=function(){!function(e){As=!0;try{Ls(e)}finally{As=!1}}(this.context)},e}());var Us=function(){},Zs=function(){function e(){this.title="SVG-Icon-Sprite",this.icon="delete",this.width="64px",this.color="red"}return e.prototype.changeIconPath=function(e){this.icon="delete"===e.split("#")[1]?"star":"delete"},e.prototype.changeIconSize=function(e){this.width=Number(e.replace("px",""))+10+"px"},e.prototype.changeIconColor=function(e){this.color=e},e}(),qs=function(){},Qs=void 0,Ws=["en",[["a","p"],["AM","PM"],Qs],[["AM","PM"],Qs,Qs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qs,"{1} 'at' {0}",Qs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ks={},Gs=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Ys=new oe("UseV4Plurals"),Js=function(){},$s=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return o(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Ks[t];if(n)return n;var r=t.split("-")[0];if(n=Ks[r])return n;if("en"===r)return Ws;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[18]}(t||this.locale)(e)){case Gs.Zero:return"zero";case Gs.One:return"one";case Gs.Two:return"two";case Gs.Few:return"few";case Gs.Many:return"many";default:return"other"}},t}(Js),Xs=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(dn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ye(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),eu=function(){function e(e,t){this._viewContainer=e,this._context=new tu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){nu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){nu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),tu=function(){this.$implicit=null,this.ngIf=null};function nu(e,t){if(t&&!t.createEmbeddedView)throw new Error(e+" must be a TemplateRef, but received '"+ye(t)+"'.")}var ru=function(){},ou=new oe("DocumentToken"),iu="server",su=function(){this.classes="icon",this.width="100%",this.preserveAspectRatio="xMinYMax meet"},uu=br({encapsulation:0,styles:[["[_nghost-%COMP%] svg[_ngcontent-%COMP%], [_nghost-%COMP%] use[_ngcontent-%COMP%]{fill:currentColor}"]],data:{}});function au(e){return ri(0,[(e()(),Wr(0,0,null,null,3,null,null,null,null,null,null,null)),(e()(),Wr(1,0,null,null,2,":svg:svg",[],[[1,"width",0],[1,"height",0]],null,null,null,null)),Mo(2,278528,null,0,Xs,[En,xn,$t,Jt],{ngClass:[0,"ngClass"]},null),(e()(),Wr(3,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],function(e,t){e(t,2,0,t.component.classes)},function(e,t){var n=t.component;e(t,1,0,n.width,n.height||n.width),e(t,3,0,n.src)})}function lu(e){return ri(0,[(e()(),Wr(0,0,null,null,2,":svg:svg",[],[[1,"width",0],[1,"height",0],[1,"viewBox",0],[1,"preserveAspectRatio",0]],null,null,null,null)),Mo(1,278528,null,0,Xs,[En,xn,$t,Jt],{ngClass:[0,"ngClass"]},null),(e()(),Wr(2,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],function(e,t){e(t,1,0,t.component.classes)},function(e,t){var n=t.component;e(t,0,0,n.width,n.height||n.width,n.viewBox,n.preserveAspectRatio),e(t,2,0,n.src)})}function cu(e){return ri(0,[(e()(),Qr(16777216,null,null,1,null,au)),Mo(1,16384,null,0,eu,[tn,en],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Qr(0,[["viewBoxTemplate",2]],null,0,null,lu))],function(e,t){e(t,1,0,!t.component.viewBox,Co(t,2))},null)}var du=br({encapsulation:0,styles:[["div[_ngcontent-%COMP%] svg.some-icon-class{height:75px;width:75px;fill:orange}div[_ngcontent-%COMP%] svg.some-icon-class use{fill:orange}"]],data:{}});function fu(e){return ri(0,[(e()(),Wr(0,0,null,null,90,"div",[["class","container"]],null,null,null,null,null)),(e()(),Wr(1,0,null,null,3,"h1",[],null,null,null,null,null)),(e()(),ei(2,null,[" "," "])),(e()(),Wr(3,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),ei(-1,null,["(package development app)"])),(e()(),Wr(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" Angular package that provides both a solution for generating sprites and a component for including them. "])),(e()(),Wr(7,0,null,null,8,"ul",[],null,null,null,null,null)),(e()(),Wr(8,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Wr(9,0,null,null,2,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite"]],null,null,null,null,null)),(e()(),Wr(10,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["ng-svg-icon-sprite sources on Github"])),(e()(),Wr(12,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Wr(13,0,null,null,2,"a",[["href","https://www.npmjs.com/package/ng-svg-icon-sprite"]],null,null,null,null,null)),(e()(),Wr(14,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["ng-svg-icon-sprite package on npm"])),(e()(),Wr(16,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["Usage"])),(e()(),Wr(18,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" install "])),(e()(),Wr(20,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["ng-svg-icon-sprite"])),(e()(),ei(-1,null,[" and import the npm module via "])),(e()(),Wr(23,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["import { SvgIconSpriteModule } from 'ng-svg-icon-sprite';"])),(e()(),ei(-1,null,[" and add it in any "])),(e()(),Wr(26,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["@NgModule"])),(e()(),ei(-1,null,[" imports array. "])),(e()(),Wr(29,0,null,null,7,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" run "])),(e()(),Wr(31,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["npm run create-icon-sprite"])),(e()(),ei(-1,null,[" to create a sprite out of your SVG icons. Include the "])),(e()(),Wr(34,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["svg-icon-sprite"])),(e()(),ei(-1,null,[" directive like shown below. "])),(e()(),Wr(37,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["Basic Examples"])),(e()(),Wr(39,0,null,null,19,"ul",[["class","inline"]],null,null,null,null,null)),(e()(),Wr(40,0,null,null,4,"li",[["style","color: darkred;"]],null,null,null,null,null)),(e()(),Wr(41,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(42,49152,null,0,su,[],{src:[0,"src"],width:[1,"width"]},null),(e()(),Wr(43,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["red, 100px"])),(e()(),Wr(45,0,null,null,4,"li",[["style","color: darkgreen;"]],null,null,null,null,null)),(e()(),Wr(46,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(47,49152,null,0,su,[],{src:[0,"src"],width:[1,"width"],height:[2,"height"]},null),(e()(),Wr(48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["green, 90px"])),(e()(),Wr(50,0,null,null,8,"li",[],null,null,null,null,null)),(e()(),Wr(51,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(52,49152,null,0,su,[],{src:[0,"src"],classes:[1,"classes"]},null),(e()(),Wr(53,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["component styles by "])),(e()(),Wr(55,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["::ng-deep"])),(e()(),Wr(57,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(-1,null,["orange, 75px"])),(e()(),Wr(59,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["ViewBox Example"])),(e()(),Wr(61,0,null,null,9,"ul",[["class","inline"]],null,null,null,null,null)),(e()(),Wr(62,0,null,null,8,"li",[["style","color: magenta;"]],null,null,null,null,null)),(e()(),Wr(63,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(64,49152,null,0,su,[],{src:[0,"src"],width:[1,"width"],viewBox:[2,"viewBox"]},null),(e()(),Wr(65,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["magenta 80px,"])),(e()(),Wr(67,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(-1,null,["viewBox "])),(e()(),Wr(69,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["'0 0 24 24'"])),(e()(),Wr(71,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["Variable Example"])),(e()(),Wr(73,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeIconPath(Co(e,83).src)&&r),r},null,null)),(e()(),ei(-1,null,["Change Icon Path"])),(e()(),Wr(75,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeIconSize(Co(e,83).width)&&r),r},null,null)),(e()(),ei(-1,null,["Size +"])),(e()(),Wr(77,0,[["colorInput",1]],null,0,"input",[["type","text"],["value","red"]],null,null,null,null,null)),(e()(),Wr(78,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeIconColor(Co(e,77).value)&&r),r},null,null)),(e()(),ei(-1,null,["Set color"])),(e()(),Wr(80,0,null,null,3,"ul",[["class","inline"]],null,null,null,null,null)),(e()(),Wr(81,0,null,null,2,"li",[],[[4,"color",null]],null,null,null,null)),(e()(),Wr(82,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(83,49152,[["iconSprite",4]],0,su,[],{src:[0,"src"],width:[1,"width"]},null),(e()(),Wr(84,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" Report bugs or feature requests on "])),(e()(),Wr(86,0,null,null,1,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite/issues"]],null,null,null,null,null)),(e()(),ei(-1,null,["Github Issues"])),(e()(),Wr(88,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Wr(89,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),ei(-1,null,["Copyright Jan Suwart, MIT license"]))],function(e,t){var n=t.component;e(t,42,0,"assets/sprites/sprite.svg#star","100px"),e(t,47,0,"assets/sprites/sprite.svg#delete","90px","80px"),e(t,52,0,"assets/sprites/sprite.svg#star","some-icon-class"),e(t,64,0,"assets/sprites/sprite.svg#star-no-viewBox","80px","0 0 24 24"),e(t,83,0,"assets/sprites/sprite.svg#"+n.icon,n.width)},function(e,t){var n=t.component;e(t,2,0,n.title),e(t,81,0,n.color)})}var pu=function(e,t,n,r,o,i){return new fo("app-root",Zs,function(e){return ri(0,[(e()(),Wr(0,0,null,null,1,"app-root",[],null,null,null,fu,du)),Mo(1,49152,null,0,Zs,[],null,null)],null,null)},{},{},[])}(),hu=null;function vu(){return hu}var yu,gu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},mu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_u={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};ce.Node&&(yu=ce.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var bu,wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,hu||(hu=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,a(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return gu},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return yu.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;s||(s=e[i]=[]);var a=ra(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:a,handler:o});else{for(var l=!1,c=0;c-1},t}(Vu),ca=["alt","control","meta","shift"],da={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},fa=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return vu().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(ca.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=vu().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ca.forEach(function(r){r!=n&&(0,da[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Vu),pa=function(){},ha=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return o(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case nr.NONE:return t;case nr.HTML:return t instanceof ya?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{Fn=Fn||new Rn(e);var r=t?String(t):"";n=Fn.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=Fn.getInertBodyElement(r)}while(r!==i);var s=new Gn,u=s.sanitizeChildren(Xn(n)||n);return Bt()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=Xn(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(t)));case nr.STYLE:return t instanceof ga?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(tr);return t&&jn(t[1])===t[1]||e.match(er)&&function(e){for(var t=!0,n=!0,r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function a(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(H);function Z(e){return e}var q=function(e){function t(){var n=e.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error),Q=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return o(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(w),W=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return o(t,e),t}(x),K=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype[E]=function(){return new W(this)},t.prototype.lift=function(e){var t=new G(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new q;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(x),X=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new w).add(this.source.subscribe(new te(this.getSubject(),this))),e.closed?(this._connection=null,e=w.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Y()(this)},t}(I).prototype,ee={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:X._subscribe},_isComplete:{value:X._isComplete,writable:!0},getSubject:{value:X.getSubject},connect:{value:X.connect},refCount:{value:X.refCount}},te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return o(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(W);function ne(){return new K}function re(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var oe=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?re({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),ie="__parameters__";function se(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var s=t[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):ye(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Me,"\n ")}function Fe(e,t){return new Error(Le(e,t))}var Be=void 0;function ze(e){var t=Be;return Be=e,t}String;var Ue=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e}({}),Ze=new function(e){this.full="6.0.4",this.major="6.0.4".split(".")[0],this.minor="6.0.4".split(".")[1],this.patch="6.0.4".split(".").slice(2).join(".")}("6.0.4"),qe="ngDebugContext",Qe="ngOriginalError",We="ngErrorLogger";function Ke(e){return e[qe]}function Ge(e){return e[Qe]}function Ye(e){for(var t=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Vt=function(){function e(){this._applications=new Map,jt.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),jt.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}(),jt=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Ht=!0,Lt=!1,Ft=new oe("AllowMultipleToken");function Bt(){return Lt=!0,Ht}var zt=function(e,t){this.name=e,this.token=t};function Ut(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new oe(r);return function(t){void 0===t&&(t=[]);var i=Zt();if(!i||i.injector.get(Ft,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var s=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(Ot&&!Ot.destroyed&&!Ot.injector.get(Ft,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ot=e.get(qt);var t=e.get(it,null);t&&t.forEach(function(e){return e()})}(Ie.create({providers:s,name:r}))}return function(e){var t=Zt();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Zt(){return Ot&&!Ot.destroyed?Ot:null}var qt=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new Rt:("zone.js"===n?void 0:n)||new It({enableLongStackTrace:Bt()}),i=[{provide:It,useValue:o}];return o.run(function(){var t=Ie.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(Je,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Kt(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,o){try{var i=((s=n.injector.get(tt)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Xe(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var s}(s,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(dt),o=Qt({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Wt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ye(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Qt(e,t){return Array.isArray(t)?t.reduce(Qt,e):i({},e,t)}var Wt=function(){function e(e,t,n,r,o,i){var s=this;this._zone=e,this._console=t,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=Bt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new I(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),a=new I(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){It.assertNotInAngularZone(),he(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){It.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof i&&(r=e.pop()),null===o&&1===e.length&&e[0]instanceof I?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(e(function(e,r){return(o=t(e,r),o instanceof I?o:new I(j(o))).pipe(function(e,t){return function(t){return t.lift(new L(e,void 0))}}(function(t,o){return n(e,t,r,o)}));var o},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new z(t,r))})}(Z,e)}(r)(B(e,o))}(u,a.pipe(function(e){return Y()((t=ne,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ee);return r.source=e,r.subjectFactory=n,r})(e));var t}))}return e.prototype.bootstrap=function(e,t){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=e instanceof ft?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof bt?null:this._injector.get(wt),i=n.create(Ie.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(Mt,null);return s&&i.injector.get(Vt).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Bt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,kt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Kt(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ut,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Kt(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=xt("ApplicationRef#tick()"),e}();function Kt(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Gt=function(){},Yt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Jt=function(){},$t=function(e){this.nativeElement=e},Xt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Tt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[pe()]=function(){return this._results[pe()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),en=function(){},tn=function(){},nn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof rn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),rn=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return o(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,a([o+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof rn&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof rn&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof rn&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(nn),on=new Map;function sn(e){return on.get(e)||null}function un(e){on.set(e.nativeNode,e)}function an(e,t){var n=dn(e),r=dn(t);return n&&r?function(e,t,n){for(var r=e[pe()](),o=t[pe()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(e,t,an):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||ve(e,t)}var ln=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),cn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function dn(e){return!!fn(e)&&(Array.isArray(e)||!(e instanceof Map)&&pe()in e)}function fn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var pn=function(){function e(){}return e.prototype.supports=function(e){return dn(e)},e.prototype.create=function(e){return new vn(e)},e}(),hn=function(e,t){return t},vn=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||hn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<_n(n,r,o)?t:n,s=_n(i,r,o),u=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var a=s-r,l=u-r;if(a!=l){for(var c=0;c',!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(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();qn.hasOwnProperty(t)&&!Bn.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push($n(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Yn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jn=/([^\#-~ |!])/g;function $n(e){return e.replace(/&/g,"&").replace(Yn,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Jn,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Xn(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var er=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),tr=/^url\(([^)]+)\)$/,nr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),rr=function(){};function or(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function ir(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function sr(e,t){return e.nodes[t]}function ur(e,t){return e.nodes[t]}function ar(e,t){return e.nodes[t]}function lr(e,t){return e.nodes[t]}function cr(e,t){return e.nodes[t]}var dr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function fr(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return pr(n,t),n}(o,e)}function pr(e,t){e[qe]=t,e[We]=t.logError.bind(t)}function hr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var vr=function(){},yr=new Map;function gr(e){var t=yr.get(e);return t||(t=ye(e)+"_"+yr.size,yr.set(e,t)),t}var mr="$$undefined",_r="$$empty";function br(e){return{id:mr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var wr=0;function Cr(e,t,n,r){return!(!(2&e.state)&&ve(e.oldValues[t.bindingIndex+n],r))}function Er(e,t,n,r){return!!Cr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function xr(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!an(o,r)){var i=t.bindings[n].name;throw fr(dr.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function kr(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Tr(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Ir(e,t,n,r){try{return kr(33554432&e.def.nodes[t].flags?ur(e,t).componentView:e),dr.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function Sr(e){return e.parent?ur(e.parent,e.parentNodeDef.nodeIndex):null}function Nr(e){return e.parent?e.parentNodeDef.parent:null}function Ar(e,t){switch(201347067&t.flags){case 1:return ur(e,t.nodeIndex).renderElement;case 2:return sr(e,t.nodeIndex).renderText}}function Dr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Pr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Or(e){var t={},n=0,r={};return e&&e.forEach(function(e){var o=u(e,2),i=o[0],s=o[1];"number"==typeof i?(t[i]=s,n|=function(e){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:l,token:t.token},e._providers[l]=$r,e._providers[l]=oo(e,e._def.providersByKey[t.tokenKey])}return e._parent.get(t.token,n)}finally{ze(i)}}function oo(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(ro(e,n[0]));case 2:return new t(ro(e,n[0]),ro(e,n[1]));case 3:return new t(ro(e,n[0]),ro(e,n[1]),ro(e,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,lo(n,t),dr.dirtyParentQueries(r),uo(r),r}function so(e,t,n){var r=t?Ar(t,t.def.lastRenderRootNode):e.renderElement;Hr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function uo(e){Hr(e,3,null,null,void 0)}function ao(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function lo(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var co=new Object,fo=function(e){function t(t,n,r,o,i,s){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=s,u.viewDefFactory=r,u}return o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=jr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=dr.createRootView(e,t||[],n,o,r,co),u=ar(s,i).instance;return n&&s.renderer.setAttribute(ur(s,0).renderElement,"ng-version",Ze.full),new po(s,new go(s),u)},t}(ft),po=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new $t(ur(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new wo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function ho(e,t,n){return new vo(e,t,n)}var vo=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new $t(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new wo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Nr(e),e=e.parent;return e?new wo(e,t):new wo(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=io(this._data,e);dr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new go(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof bt||(o=i.get(wt));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=e;return o=s._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,ao(i,r,o),function(e,t){var n=Sr(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),dr.dirtyParentQueries(o),so(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,u=this._embeddedViews.indexOf(e._view);return o=t,s=(i=(n=this._data).viewContainer._embeddedViews)[r=u],lo(i,r),null==o&&(o=i.length),ao(i,o,s),dr.dirtyParentQueries(s),uo(s),so(n,o>0?i[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=io(this._data,e);t&&dr.destroyView(t)},e.prototype.detach=function(e){var t=io(this._data,e);return t?new go(t):null},e}();function yo(e){return new go(e)}var go=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return Hr(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){kr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{dr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){dr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),dr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,uo(this._view),dr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function mo(e,t){return new _o(e,t)}var _o=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return o(t,e),t.prototype.createEmbeddedView=function(e){return new go(dr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new $t(ur(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(en);function bo(e,t){return new wo(e,t)}var wo=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Ie.THROW_IF_NOT_FOUND),dr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:gr(e)},t)},e}();function Co(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=ur(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return sr(e,n.nodeIndex).renderText;if(20240&n.flags)return ar(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Eo(e){return new xo(e.renderer)}var xo=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=u(Zr(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return Bo(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Uo(e,t,n,o[0]));case 2:return r(Uo(e,t,n,o[0]),Uo(e,t,n,o[1]));case 3:return r(Uo(e,t,n,o[0]),Uo(e,t,n,o[1]),Uo(e,t,n,o[2]));default:for(var s=Array(i),u=0;u0)l=v,oi(v)||(c=v);else for(;l&&h===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&oi(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||vr,updateRenderer:r||vr,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function oi(e){return 0!=(1&e.flags)&&null===e.element.name}function ii(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function si(e,t,n,r){var o=li(e.root,e.renderer,e,t,n);return ci(o,e.component,r),di(o),o}function ui(e,t,n){var r=li(e,e.renderer,null,null,t);return ci(r,n,n),di(r),r}function ai(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,li(e.root,o,e,t.element.componentProvider,n)}function li(e,t,n,r,o){var i=new Array(o.nodes.length),s=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:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function ci(e,t,n){e.component=t,e.context=n}function di(e){var t;Dr(e)&&(t=ur(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Jr(e,t,0,n)&&(p=!0),f>1&&Jr(e,t,1,r)&&(p=!0),f>2&&Jr(e,t,2,o)&&(p=!0),f>3&&Jr(e,t,3,i)&&(p=!0),f>4&&Jr(e,t,4,s)&&(p=!0),f>5&&Jr(e,t,5,u)&&(p=!0),f>6&&Jr(e,t,6,a)&&(p=!0),f>7&&Jr(e,t,7,l)&&(p=!0),f>8&&Jr(e,t,8,c)&&(p=!0),f>9&&Jr(e,t,9,d)&&(p=!0),p}(e,t,n,r,o,i,s,u,a,l,c,d);case 2:return function(e,t,n,r,o,i,s,u,a,l,c,d){var f=!1,p=t.bindings,h=p.length;if(h>0&&Er(e,t,0,n)&&(f=!0),h>1&&Er(e,t,1,r)&&(f=!0),h>2&&Er(e,t,2,o)&&(f=!0),h>3&&Er(e,t,3,i)&&(f=!0),h>4&&Er(e,t,4,s)&&(f=!0),h>5&&Er(e,t,5,u)&&(f=!0),h>6&&Er(e,t,6,a)&&(f=!0),h>7&&Er(e,t,7,l)&&(f=!0),h>8&&Er(e,t,8,c)&&(f=!0),h>9&&Er(e,t,9,d)&&(f=!0),f){var v=t.text.prefix;h>0&&(v+=ni(n,p[0])),h>1&&(v+=ni(r,p[1])),h>2&&(v+=ni(o,p[2])),h>3&&(v+=ni(i,p[3])),h>4&&(v+=ni(s,p[4])),h>5&&(v+=ni(u,p[5])),h>6&&(v+=ni(a,p[6])),h>7&&(v+=ni(l,p[7])),h>8&&(v+=ni(c,p[8])),h>9&&(v+=ni(d,p[9]));var y=sr(e,t.nodeIndex).renderText;e.renderer.setValue(y,v)}return f}(e,t,n,r,o,i,s,u,a,l,c,d);case 16384:return function(e,t,n,r,o,i,s,u,a,l,c,d){var f=ar(e,t.nodeIndex),p=f.instance,h=!1,v=void 0,y=t.bindings.length;return y>0&&Cr(e,t,0,n)&&(h=!0,v=qo(e,f,t,0,n,v)),y>1&&Cr(e,t,1,r)&&(h=!0,v=qo(e,f,t,1,r,v)),y>2&&Cr(e,t,2,o)&&(h=!0,v=qo(e,f,t,2,o,v)),y>3&&Cr(e,t,3,i)&&(h=!0,v=qo(e,f,t,3,i,v)),y>4&&Cr(e,t,4,s)&&(h=!0,v=qo(e,f,t,4,s,v)),y>5&&Cr(e,t,5,u)&&(h=!0,v=qo(e,f,t,5,u,v)),y>6&&Cr(e,t,6,a)&&(h=!0,v=qo(e,f,t,6,a,v)),y>7&&Cr(e,t,7,l)&&(h=!0,v=qo(e,f,t,7,l,v)),y>8&&Cr(e,t,8,c)&&(h=!0,v=qo(e,f,t,8,c,v)),y>9&&Cr(e,t,9,d)&&(h=!0,v=qo(e,f,t,9,d,v)),v&&p.ngOnChanges(v),65536&t.flags&&ir(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,s,u,a,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,o,i,s,u,a,l,c,d){var f=t.bindings,p=!1,h=f.length;if(h>0&&Er(e,t,0,n)&&(p=!0),h>1&&Er(e,t,1,r)&&(p=!0),h>2&&Er(e,t,2,o)&&(p=!0),h>3&&Er(e,t,3,i)&&(p=!0),h>4&&Er(e,t,4,s)&&(p=!0),h>5&&Er(e,t,5,u)&&(p=!0),h>6&&Er(e,t,6,a)&&(p=!0),h>7&&Er(e,t,7,l)&&(p=!0),h>8&&Er(e,t,8,c)&&(p=!0),h>9&&Er(e,t,9,d)&&(p=!0),p){var v=lr(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(f.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=s),h>5&&(y[5]=u),h>6&&(y[6]=a),h>7&&(y[7]=l),h>8&&(y[8]=c),h>9&&(y[9]=d);break;case 64:y={},h>0&&(y[f[0].name]=n),h>1&&(y[f[1].name]=r),h>2&&(y[f[2].name]=o),h>3&&(y[f[3].name]=i),h>4&&(y[f[4].name]=s),h>5&&(y[f[5].name]=u),h>6&&(y[f[6].name]=a),h>7&&(y[f[7].name]=l),h>8&&(y[f[8].name]=c),h>9&&(y[f[9].name]=d);break;case 128:var g=n;switch(h){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,s);break;case 6:y=g.transform(r,o,i,s,u);break;case 7:y=g.transform(r,o,i,s,u,a);break;case 8:y=g.transform(r,o,i,s,u,a,l);break;case 9:y=g.transform(r,o,i,s,u,a,l,c);break;case 10:y=g.transform(r,o,i,s,u,a,l,c,d)}}v.value=y}return p}(e,t,n,r,o,i,s,u,a,l,c,d);default:throw"unreachable"}}(e,t,r,o,i,s,u,l,c,d,f,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&xr(e,t,0,n),f>1&&xr(e,t,1,r),f>2&&xr(e,t,2,o),f>3&&xr(e,t,3,i),f>4&&xr(e,t,4,s),f>5&&xr(e,t,5,u),f>6&&xr(e,t,6,a),f>7&&xr(e,t,7,l),f>8&&xr(e,t,8,c),f>9&&xr(e,t,9,d)}(e,t,r,o,i,s,u,a,l,c,d,f):function(e,t,n){for(var r=0;r0){var i=new Set(e.modules);Oi.forEach(function(t,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:Rr(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[gr(r)]=o}})}}(e=e.factory(function(){return vr})),e):e}(r))}var Pi=new Map,Oi=new Map,Ri=new Map;function Mi(e){Pi.set(e.token,e),"function"==typeof e.token&&e.token.ngInjectableDef&&"function"==typeof e.token.ngInjectableDef.providedIn&&Oi.set(e.token,e)}function Vi(e,t){var n=jr(jr(t.viewDefFactory).nodes[0].element.componentView);Ri.set(e,n)}function ji(){Pi.clear(),Oi.clear(),Ri.clear()}function Hi(e){if(0===Pi.size)return e;var t=function(e){for(var t=[],n=null,r=0;r=bs.length?bs[u]=null:h.tNode=bs[u],_s?(ws=null,ms.view!==Ns&&2!==ms.type||(ngDevMode&&fs(ms.child,"previousOrParentNode's child should not have been set."),ms.child=h)):ms&&(ngDevMode&&fs(ms.next,"previousOrParentNode's next property should not have been set "+u+"."),ms.next=h,ms.dynamicLContainerNode&&(ms.dynamicLContainerNode.next=h))),ms=h,_s=!0,e=h,g=1),s=Ds(e.data,e),t(g,n),Os(),js()}finally{Ps(s),_s=v,ms=y}return e}function js(){for(var e=Ns.child;null!==e;e=e.next)if(0!==e.dynamicViewCount&&e.views)for(var t=e,n=0;n"}(r))),ngDevMode&&ps(o.data,"Component's host node should have an LView attached.");var i,s=o.data;8==(8&s.flags)&&6&s.flags&&(ngDevMode&&Bs(e,xs),Fs(s,o,Ns.tView.directives[e],(i=xs[e],Array.isArray(i)?i[0]:i)))}function Ls(e){var t=zs(e);ngDevMode&&ps(t.data,"Component host node should be attached to an LView"),Fs(t.data,t,t.view.tView.directives[t.tNode.flags>>13],e)}function Fs(e,t,n,r){var o=Ds(e,t),i=n.template;try{i(1&e.flags?3:2,r),Os(),js()}finally{Ps(o)}}function Bs(e,t){null==t&&(t=Es),e>=(t?t.length:0)&&hs("index expected to be a valid data index")}function zs(e){ngDevMode&&ps(e,"expecting component got null");var t=e[Ts];return ngDevMode&&ps(e,"object is not a component"),t}o(function(e,t,n){var r=ks.call(this,e.data,n)||this;return r._lViewNode=e,r},ks=function(){function e(e,t){this._view=e,this.context=t}return e.prototype._setComponentContext=function(e,t){this._view=e,this.context=t},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e.prototype.markForCheck=function(){!function(e){for(var t=e;null!=t.parent;)t.flags|=4,t=t.parent;var n,r;t.flags|=4,ngDevMode&&ps(t.context,"rootContext"),(n=t.context).clean==Is&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){var e,t;t=zs((e=function(e){ngDevMode&&ps(e,"component");for(var t=zs(e).view;t.parent;)t=t.parent;return t}(n.component)).context.component),ngDevMode&&ps(t.data,"Component host node should be attached to an LView"),function(n,r,o,i){var s=Ds(e,t);try{gs.begin&&gs.begin(),Ms(),Rs(Ss),Hs(0,0)}finally{gs.end&&gs.end(),Ps(s)}}(),r(null),n.clean=Is}))}(this._view)},e.prototype.detach=function(){this._view.flags&=-9},e.prototype.reattach=function(){this._view.flags|=8},e.prototype.detectChanges=function(){Ls(this.context)},e.prototype.checkNoChanges=function(){!function(e){As=!0;try{Ls(e)}finally{As=!1}}(this.context)},e}());var Us=function(){},Zs=function(){function e(){this.title="SVG-Icon-Sprite",this.icon="delete",this.width="64px",this.color="red"}return e.prototype.changeIconPath=function(e){this.icon="delete"===e.split("#")[1]?"star":"delete"},e.prototype.changeIconSize=function(e){this.width=Number(e.replace("px",""))+10+"px"},e.prototype.changeIconColor=function(e){this.color=e},e}(),qs=function(){},Qs=void 0,Ws=["en",[["a","p"],["AM","PM"],Qs],[["AM","PM"],Qs,Qs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qs,"{1} 'at' {0}",Qs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ks={},Gs=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Ys=new oe("UseV4Plurals"),Js=function(){},$s=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return o(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Ks[t];if(n)return n;var r=t.split("-")[0];if(n=Ks[r])return n;if("en"===r)return Ws;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[18]}(t||this.locale)(e)){case Gs.Zero:return"zero";case Gs.One:return"one";case Gs.Two:return"two";case Gs.Few:return"few";case Gs.Many:return"many";default:return"other"}},t}(Js),Xs=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(dn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ye(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),eu=function(){function e(e,t){this._viewContainer=e,this._context=new tu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){nu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){nu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),tu=function(){this.$implicit=null,this.ngIf=null};function nu(e,t){if(t&&!t.createEmbeddedView)throw new Error(e+" must be a TemplateRef, but received '"+ye(t)+"'.")}var ru=function(){},ou=new oe("DocumentToken"),iu="server",su=function(){this.classes="icon",this.width="100%",this.preserveAspectRatio="xMinYMax meet"},uu=br({encapsulation:0,styles:[["[_nghost-%COMP%] svg[_ngcontent-%COMP%], [_nghost-%COMP%] use[_ngcontent-%COMP%]{fill:currentColor}"]],data:{}});function au(e){return ri(0,[(e()(),Wr(0,0,null,null,3,null,null,null,null,null,null,null)),(e()(),Wr(1,0,null,null,2,":svg:svg",[],[[1,"width",0],[1,"height",0]],null,null,null,null)),Mo(2,278528,null,0,Xs,[En,xn,$t,Jt],{ngClass:[0,"ngClass"]},null),(e()(),Wr(3,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],function(e,t){e(t,2,0,t.component.classes)},function(e,t){var n=t.component;e(t,1,0,n.width,n.height||n.width),e(t,3,0,n.src)})}function lu(e){return ri(0,[(e()(),Wr(0,0,null,null,2,":svg:svg",[],[[1,"width",0],[1,"height",0],[1,"viewBox",0],[1,"preserveAspectRatio",0]],null,null,null,null)),Mo(1,278528,null,0,Xs,[En,xn,$t,Jt],{ngClass:[0,"ngClass"]},null),(e()(),Wr(2,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],function(e,t){e(t,1,0,t.component.classes)},function(e,t){var n=t.component;e(t,0,0,n.width,n.height||n.width,n.viewBox,n.preserveAspectRatio),e(t,2,0,n.src)})}function cu(e){return ri(0,[(e()(),Qr(16777216,null,null,1,null,au)),Mo(1,16384,null,0,eu,[tn,en],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Qr(0,[["viewBoxTemplate",2]],null,0,null,lu))],function(e,t){e(t,1,0,!t.component.viewBox,Co(t,2))},null)}var du=br({encapsulation:0,styles:[["div[_ngcontent-%COMP%] svg.some-icon-class{height:75px;width:75px;fill:orange}div[_ngcontent-%COMP%] svg.some-icon-class use{fill:orange}"]],data:{}});function fu(e){return ri(0,[(e()(),Wr(0,0,null,null,90,"div",[["class","container"]],null,null,null,null,null)),(e()(),Wr(1,0,null,null,3,"h1",[],null,null,null,null,null)),(e()(),ei(2,null,[" "," "])),(e()(),Wr(3,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),ei(-1,null,["(package development app)"])),(e()(),Wr(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" Angular package that provides both a solution for generating sprites and a component for including them. "])),(e()(),Wr(7,0,null,null,8,"ul",[],null,null,null,null,null)),(e()(),Wr(8,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Wr(9,0,null,null,2,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite"]],null,null,null,null,null)),(e()(),Wr(10,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["ng-svg-icon-sprite sources on Github"])),(e()(),Wr(12,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Wr(13,0,null,null,2,"a",[["href","https://www.npmjs.com/package/ng-svg-icon-sprite"]],null,null,null,null,null)),(e()(),Wr(14,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["ng-svg-icon-sprite package on npm"])),(e()(),Wr(16,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["Usage"])),(e()(),Wr(18,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" install "])),(e()(),Wr(20,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["ng-svg-icon-sprite"])),(e()(),ei(-1,null,[" and import the npm module via "])),(e()(),Wr(23,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["import { SvgIconSpriteModule } from 'ng-svg-icon-sprite';"])),(e()(),ei(-1,null,[" and add it in any "])),(e()(),Wr(26,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["@NgModule"])),(e()(),ei(-1,null,[" imports array. "])),(e()(),Wr(29,0,null,null,7,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" run "])),(e()(),Wr(31,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ei(-1,null,["npm run create-icon-sprite"])),(e()(),ei(-1,null,[" to create a sprite out of your SVG icons. Include the "])),(e()(),Wr(34,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["svg-icon-sprite"])),(e()(),ei(-1,null,[" directive like shown below. "])),(e()(),Wr(37,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["Basic Examples"])),(e()(),Wr(39,0,null,null,19,"ul",[["class","inline"]],null,null,null,null,null)),(e()(),Wr(40,0,null,null,4,"li",[["style","color: darkred;"]],null,null,null,null,null)),(e()(),Wr(41,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(42,49152,null,0,su,[],{src:[0,"src"],width:[1,"width"]},null),(e()(),Wr(43,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["red, 100px"])),(e()(),Wr(45,0,null,null,4,"li",[["style","color: darkgreen;"]],null,null,null,null,null)),(e()(),Wr(46,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(47,49152,null,0,su,[],{src:[0,"src"],width:[1,"width"],height:[2,"height"]},null),(e()(),Wr(48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["green, 90px"])),(e()(),Wr(50,0,null,null,8,"li",[],null,null,null,null,null)),(e()(),Wr(51,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(52,49152,null,0,su,[],{src:[0,"src"],classes:[1,"classes"]},null),(e()(),Wr(53,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["component styles by "])),(e()(),Wr(55,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["::ng-deep"])),(e()(),Wr(57,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(-1,null,["orange, 75px"])),(e()(),Wr(59,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["ViewBox Example"])),(e()(),Wr(61,0,null,null,9,"ul",[["class","inline"]],null,null,null,null,null)),(e()(),Wr(62,0,null,null,8,"li",[["style","color: magenta;"]],null,null,null,null,null)),(e()(),Wr(63,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(64,49152,null,0,su,[],{src:[0,"src"],width:[1,"width"],viewBox:[2,"viewBox"]},null),(e()(),Wr(65,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),ei(-1,null,["magenta 80px,"])),(e()(),Wr(67,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(-1,null,["viewBox "])),(e()(),Wr(69,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),ei(-1,null,["'0 0 24 24'"])),(e()(),Wr(71,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),ei(-1,null,["Variable Example"])),(e()(),Wr(73,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeIconPath(Co(e,83).src)&&r),r},null,null)),(e()(),ei(-1,null,["Change Icon Path"])),(e()(),Wr(75,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeIconSize(Co(e,83).width)&&r),r},null,null)),(e()(),ei(-1,null,["Size +"])),(e()(),Wr(77,0,[["colorInput",1]],null,0,"input",[["type","text"],["value","red"]],null,null,null,null,null)),(e()(),Wr(78,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changeIconColor(Co(e,77).value)&&r),r},null,null)),(e()(),ei(-1,null,["Set color"])),(e()(),Wr(80,0,null,null,3,"ul",[["class","inline"]],null,null,null,null,null)),(e()(),Wr(81,0,null,null,2,"li",[],[[4,"color",null]],null,null,null,null)),(e()(),Wr(82,0,null,null,1,"svg-icon-sprite",[],null,null,null,cu,uu)),Mo(83,49152,[["iconSprite",4]],0,su,[],{src:[0,"src"],width:[1,"width"],viewBox:[2,"viewBox"]},null),(e()(),Wr(84,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(-1,null,[" Report bugs or feature requests on "])),(e()(),Wr(86,0,null,null,1,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite/issues"]],null,null,null,null,null)),(e()(),ei(-1,null,["Github Issues"])),(e()(),Wr(88,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Wr(89,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),ei(-1,null,["Copyright Jan Suwart, MIT license"]))],function(e,t){var n=t.component;e(t,42,0,"assets/sprites/sprite.svg#star","100px"),e(t,47,0,"assets/sprites/sprite.svg#delete","90px","80px"),e(t,52,0,"assets/sprites/sprite.svg#star","some-icon-class"),e(t,64,0,"assets/sprites/sprite.svg#star-no-viewBox","80px","0 0 24 24"),e(t,83,0,"assets/sprites/sprite.svg#"+n.icon,n.width,"0 0 24 24")},function(e,t){var n=t.component;e(t,2,0,n.title),e(t,81,0,n.color)})}var pu=function(e,t,n,r,o,i){return new fo("app-root",Zs,function(e){return ri(0,[(e()(),Wr(0,0,null,null,1,"app-root",[],null,null,null,fu,du)),Mo(1,49152,null,0,Zs,[],null,null)],null,null)},{},{},[])}(),hu=null;function vu(){return hu}var yu,gu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},mu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_u={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};ce.Node&&(yu=ce.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var bu,wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,hu||(hu=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,a(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return gu},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return yu.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;s||(s=e[i]=[]);var a=ra(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:a,handler:o});else{for(var l=!1,c=0;c-1},t}(Vu),ca=["alt","control","meta","shift"],da={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},fa=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return vu().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(ca.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=vu().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ca.forEach(function(r){r!=n&&(0,da[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Vu),pa=function(){},ha=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return o(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case nr.NONE:return t;case nr.HTML:return t instanceof ya?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{Fn=Fn||new Rn(e);var r=t?String(t):"";n=Fn.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=Fn.getInertBodyElement(r)}while(r!==i);var s=new Gn,u=s.sanitizeChildren(Xn(n)||n);return Bt()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=Xn(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(t)));case nr.STYLE:return t instanceof ga?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(tr);return t&&jn(t[1])===t[1]||e.match(er)&&function(e){for(var t=!0,n=!0,r=0;r