(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function c(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(X);function ut(t){return t}function lt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),it(ut,t)}function ct(){return function(t){return t.lift(new ht(t))}}var ht=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new pt(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(P),ft=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new _).add(this.source.subscribe(new gt(this.getSubject(),this))),t.closed?(this._connection=null,t=_.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ct()(this)},e}(R).prototype,dt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ft._subscribe},_isComplete:{value:ft._isComplete,writable:!0},getSubject:{value:ft.getSubject},connect:{value:ft.connect},refCount:{value:ft.refCount}},gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(F);function yt(){return new L}function mt(t){for(var e in t)if(t[e]===mt)return e;throw Error("Could not find renamed property on target object.")}function vt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var bt=mt({ngInjectableDef:mt}),_t=mt({ngBaseDef:mt});function wt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ct(t){return t.hasOwnProperty(bt)?t[bt]:null}var St=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?wt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Et="__parameters__",xt="__prop__metadata__";function Tt(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var s=e[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):Ft(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(ne,"\n ")}function ae(t,e){return new Error(se(t,e))}var ue=void 0;function le(t){var e=ue;return ue=t,e}function ce(t,e){if(void 0===e&&(e=0),void 0===ue)throw new Error("inject() must be called from an injection context");if(null===ue){var n=Ct(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Ft(t)+"]")}return ue.get(t,8&e?null:void 0,e)}var he=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});function pe(t,e){var n=ge(t),r=ge(e);return n&&r?function(t,e,n){for(var r=t[Dt()](),o=e[Dt()]();;){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}}(t,e,pe):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||jt(t,e)}var fe=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),de=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function ge(t){return!!ye(t)&&(Array.isArray(t)||!(t instanceof Map)&&Dt()in t)}function ye(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var me=function(){return function(){}}(),ve=function(){return function(){}}();function be(t){var e=Error("No component factory found for "+Ft(t)+". Did you add it to @NgModule.entryComponents?");return e[_e]=t,e}var _e="ngComponent",we=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw be(t)},t}(),Ce=function(){function t(){}return t.NULL=new we,t}(),Se=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Je.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(ln(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),an=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,un=/([^\#-~ |!])/g;function ln(t){return t.replace(/&/g,"&").replace(an,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(un,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function cn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var hn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),pn=function(){return function(){}}(),fn=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"),dn=/^url\(([^)]+)\)$/,gn=kt("Input",function(t){return{bindingPropertyName:t}},void 0,function(t){return function(t,e){for(var n=[],r=2;r0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),er=function(){function t(){this._applications=new Map,nr.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),nr.findTestabilityInTree(this,t,e)},s([a("design:paramtypes",[])],t)}(),nr=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),rr=new St("AllowMultipleToken"),or=function(){return function(t,e){this.name=t,this.token=e}}();function ir(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new St(r);return function(e){void 0===e&&(e=[]);var i=sr();if(!i||i.injector.get(rr,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var s=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Yn&&!Yn.destroyed&&!Yn.injector.get(rr,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yn=t.get(ar);var e=t.get(Nn,null);e&&e.forEach(function(t){return t()})}(Zt.create({providers:s,name:r}))}return function(t){var e=sr();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function sr(){return Yn&&!Yn.destroyed?Yn:null}var ar=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Xn:("zone.js"===n?void 0:n)||new Qn({enableLongStackTrace:ze()}),i=[{provide:Qn,useValue:o}];return o.run(function(){var e=Zt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(En,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return cr(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,o){try{var i=((s=n.injector.get(kn)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return xn(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(a){throw e.runOutsideAngular(function(){return t.handleError(a)}),a}var s}(s,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=ur({},e);return function(t,e,n){return t.get(Un).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(lr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Ft(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function ur(t,e){return Array.isArray(e)?e.reduce(ur,t):i({},t,e)}var lr=function(){function t(t,e,n,r,o,i){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ze(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new R(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new R(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Qn.assertNotInAngularZone(),Vt(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Qn.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof R?t[0]:lt(n)(rt(t,r))}(a,u.pipe(function(t){return ct()((e=yt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,dt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ve?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Ee?null:this._injector.get(xe),i=n.create(Zt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(tr,null);return s&&i.injector.get(er).registerApplication(i.location.nativeElement,s),this._loadComponent(i),ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.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(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Gn(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;cr(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Mn,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),cr(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=qn("ApplicationRef#tick()"),t}();function cr(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var hr=function(){return function(){}}(),pr=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Dt()]=function(){return this._results[Dt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),fr=function(){return function(){}}(),dr={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},gr=function(){function t(t,e){this._compiler=t,this._config=e||dr}return t.prototype.load=function(t){return this._compiler instanceof Ln?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=l(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return yr(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=l(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return yr(t,r,o)})},t}();function yr(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var mr=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Ae(t,Re)},t}(),vr=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Ie()},t}(),br=function(){return function(t,e){this.name=t,this.callback=e}}(),_r=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof wr&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),wr=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,c([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof wr&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof wr&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof wr&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(_r),Cr=new Map;function Sr(t){return Cr.get(t)||null}function Er(t){Cr.set(t.nativeNode,t)}var xr=function(){function t(){}return t.prototype.supports=function(t){return ge(t)},t.prototype.create=function(t){return new Pr(t)},t}(),Tr=function(t,e){return e},Pr=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Tr}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:e.token},t._providers[c]=Go,t._providers[c]=Jo(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{le(i)}}function Jo(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e($o(t,n[0]));case 2:return new e($o(t,n[0]),$o(t,n[1]));case 3:return new e($o(t,n[0]),$o(t,n[1]),$o(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,ni(n,e),Xr.dirtyParentQueries(r),ti(r),r}function Xo(t,e,n){var r=e?_o(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Oo(n,2,o,i,void 0)}function ti(t){Oo(t,3,null,null,void 0)}function ei(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ni(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var ri=new Object;function oi(t,e,n,r,o,i){return new ii(t,e,n,r,o,i)}var ii=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=ko(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Xr.createRootView(t,e||[],n,o,r,ri),a=$r(s,i).instance;return n&&s.renderer.setAttribute(Zr(s,0).renderElement,"ng-version",mn.full),new si(s,new ci(s),a)},e}(ve),si=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Re(Zr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new di(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(me);function ai(t,e,n){return new ui(t,e,n)}var ui=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Re(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new di(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=bo(t),t=t.parent;return t?new di(t,e):new di(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Yo(this._data,t);Xr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ci(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Ee||(o=i.get(xe));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=s._view).viewContainerParent=this._view,ei(i,r,o),function(t,e){var n=vo(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Xr.dirtyParentQueries(o),Xo(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(t._view);return o=e,s=(i=(n=this._data).viewContainer._embeddedViews)[r=a],ni(i,r),null==o&&(o=i.length),ei(i,o,s),Xr.dirtyParentQueries(s),ti(s),Xo(n,o>0?i[o-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Yo(this._data,t);e&&Xr.destroyView(e)},t.prototype.detach=function(t){var e=Yo(this._data,t);return e?new ci(e):null},t}();function li(t){return new ci(t)}var ci=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Oo(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){go(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Xr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Xr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Xr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,ti(this._view),Xr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function hi(t,e){return new pi(t,e)}var pi=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new ci(Xr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Re(Zr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Ue);function fi(t,e){return new di(t,e)}var di=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Zt.THROW_IF_NOT_FOUND),Xr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:io(t)},e)},t}();function gi(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Zr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Wr(t,n.nodeIndex).renderText;if(20240&n.flags)return $r(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function yi(t){return new mi(t.renderer)}var mi=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=l(Do(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return ji(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Li(t,e,n,o[0]));case 2:return r(Li(t,e,n,o[0]),Li(t,e,n,o[1]));case 3:return r(Li(t,e,n,o[0]),Li(t,e,n,o[1]),Li(t,e,n,o[2]));default:for(var s=Array(i),a=0;a0)l=g,is(g)||(c=g);else for(;l&&d===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&is(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||ro,updateRenderer:r||ro,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function is(t){return 0!=(1&t.flags)&&null===t.element.name}function ss(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function as(t,e,n,r){var o=cs(t.root,t.renderer,t,e,n);return hs(o,t.component,r),ps(o),o}function us(t,e,n){var r=cs(t,t.renderer,null,null,e);return hs(r,n,n),ps(r),r}function ls(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,cs(t.root,o,t,e.element.componentProvider,n)}function cs(t,e,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:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function hs(t,e,n){t.component=e,t.context=n}function ps(t){var e;wo(t)&&(e=Zr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&qo(t,e,0,n)&&(f=!0),p>1&&qo(t,e,1,r)&&(f=!0),p>2&&qo(t,e,2,o)&&(f=!0),p>3&&qo(t,e,3,i)&&(f=!0),p>4&&qo(t,e,4,s)&&(f=!0),p>5&&qo(t,e,5,a)&&(f=!0),p>6&&qo(t,e,6,u)&&(f=!0),p>7&&qo(t,e,7,l)&&(f=!0),p>8&&qo(t,e,8,c)&&(f=!0),p>9&&qo(t,e,9,h)&&(f=!0),f}(t,e,n,r,o,i,s,a,u,l,c,h);case 2:return function(t,e,n,r,o,i,s,a,u,l,c,h){var p=!1,f=e.bindings,d=f.length;if(d>0&&po(t,e,0,n)&&(p=!0),d>1&&po(t,e,1,r)&&(p=!0),d>2&&po(t,e,2,o)&&(p=!0),d>3&&po(t,e,3,i)&&(p=!0),d>4&&po(t,e,4,s)&&(p=!0),d>5&&po(t,e,5,a)&&(p=!0),d>6&&po(t,e,6,u)&&(p=!0),d>7&&po(t,e,7,l)&&(p=!0),d>8&&po(t,e,8,c)&&(p=!0),d>9&&po(t,e,9,h)&&(p=!0),p){var g=e.text.prefix;d>0&&(g+=rs(n,f[0])),d>1&&(g+=rs(r,f[1])),d>2&&(g+=rs(o,f[2])),d>3&&(g+=rs(i,f[3])),d>4&&(g+=rs(s,f[4])),d>5&&(g+=rs(a,f[5])),d>6&&(g+=rs(u,f[6])),d>7&&(g+=rs(l,f[7])),d>8&&(g+=rs(c,f[8])),d>9&&(g+=rs(h,f[9]));var y=Wr(t,e.nodeIndex).renderText;t.renderer.setValue(y,g)}return p}(t,e,n,r,o,i,s,a,u,l,c,h);case 16384:return function(t,e,n,r,o,i,s,a,u,l,c,h){var p=$r(t,e.nodeIndex),f=p.instance,d=!1,g=void 0,y=e.bindings.length;return y>0&&ho(t,e,0,n)&&(d=!0,g=Bi(t,p,e,0,n,g)),y>1&&ho(t,e,1,r)&&(d=!0,g=Bi(t,p,e,1,r,g)),y>2&&ho(t,e,2,o)&&(d=!0,g=Bi(t,p,e,2,o,g)),y>3&&ho(t,e,3,i)&&(d=!0,g=Bi(t,p,e,3,i,g)),y>4&&ho(t,e,4,s)&&(d=!0,g=Bi(t,p,e,4,s,g)),y>5&&ho(t,e,5,a)&&(d=!0,g=Bi(t,p,e,5,a,g)),y>6&&ho(t,e,6,u)&&(d=!0,g=Bi(t,p,e,6,u,g)),y>7&&ho(t,e,7,l)&&(d=!0,g=Bi(t,p,e,7,l,g)),y>8&&ho(t,e,8,c)&&(d=!0,g=Bi(t,p,e,8,c,g)),y>9&&ho(t,e,9,h)&&(d=!0,g=Bi(t,p,e,9,h,g)),g&&f.ngOnChanges(g),65536&e.flags&&Kr(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,s,a,u,l,c,h);case 32:case 64:case 128:return function(t,e,n,r,o,i,s,a,u,l,c,h){var p=e.bindings,f=!1,d=p.length;if(d>0&&po(t,e,0,n)&&(f=!0),d>1&&po(t,e,1,r)&&(f=!0),d>2&&po(t,e,2,o)&&(f=!0),d>3&&po(t,e,3,i)&&(f=!0),d>4&&po(t,e,4,s)&&(f=!0),d>5&&po(t,e,5,a)&&(f=!0),d>6&&po(t,e,6,u)&&(f=!0),d>7&&po(t,e,7,l)&&(f=!0),d>8&&po(t,e,8,c)&&(f=!0),d>9&&po(t,e,9,h)&&(f=!0),f){var g=Jr(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(p.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=l),d>8&&(y[8]=c),d>9&&(y[9]=h);break;case 64:y={},d>0&&(y[p[0].name]=n),d>1&&(y[p[1].name]=r),d>2&&(y[p[2].name]=o),d>3&&(y[p[3].name]=i),d>4&&(y[p[4].name]=s),d>5&&(y[p[5].name]=a),d>6&&(y[p[6].name]=u),d>7&&(y[p[7].name]=l),d>8&&(y[p[8].name]=c),d>9&&(y[p[9].name]=h);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,o);break;case 4:y=m.transform(r,o,i);break;case 5:y=m.transform(r,o,i,s);break;case 6:y=m.transform(r,o,i,s,a);break;case 7:y=m.transform(r,o,i,s,a,u);break;case 8:y=m.transform(r,o,i,s,a,u,l);break;case 9:y=m.transform(r,o,i,s,a,u,l,c);break;case 10:y=m.transform(r,o,i,s,a,u,l,c,h)}}g.value=y}return f}(t,e,n,r,o,i,s,a,u,l,c,h);default:throw"unreachable"}}(t,e,r,o,i,s,a,u,l,h,p,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&fo(t,e,0,n),p>1&&fo(t,e,1,r),p>2&&fo(t,e,2,o),p>3&&fo(t,e,3,i),p>4&&fo(t,e,4,s),p>5&&fo(t,e,5,a),p>6&&fo(t,e,6,u),p>7&&fo(t,e,7,l),p>8&&fo(t,e,8,c),p>9&&fo(t,e,9,h)}(t,e,r,o,i,s,a,u,l,c,h,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Ms.forEach(function(e,r){if(i.has(Ct(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:xo(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[io(r)]=o}})}}(t=t.factory(function(){return ro})),t):t}(r))}var Rs=new Map,Ms=new Map,Ds=new Map;function Vs(t){var e;Rs.set(t.token,t),"function"==typeof t.token&&(e=Ct(t.token))&&"function"==typeof e.providedIn&&Ms.set(t.token,t)}function js(t,e){var n=ko(e.viewDefFactory),r=ko(n.nodes[0].element.componentView);Ds.set(t,r)}function Fs(){Rs.clear(),Ms.clear(),Ds.clear()}function Ls(t){if(0===Rs.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Ca(function(e,n){return t(e,n,r)}):ut,Pa(1),n?Da(e):Ra(function(){return new _a}))}}function La(t,e){return function(n){return n.lift(new Ua(t,e,n))}}var Ua=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Ba(t,this.predicate,this.thisArg,this.source))},t}(),Ba=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(P);function Ha(t){return function(e){var n=new za(t),r=e.lift(n);return n.caught=r}}var za=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new qa(t,this.selector,this.caught))},t}(),qa=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new H(this,void 0,void 0);this.add(r),Y(this,n,void 0,void 0,r)}},e}(X);function Ga(t){return function(e){return 0===t?ya():e.lift(new Qa(t))}}var Qa=function(){function t(t){if(this.total=t,this.total<0)throw new Ta}return t.prototype.call=function(t,e){return e.subscribe(new Ka(t,this.total))},t}(),Ka=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(P);function Wa(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Ca(function(e,n){return t(e,n,r)}):ut,Ga(1),n?Da(e):Ra(function(){return new _a}))}}function Za(t,e){return"function"==typeof e?function(n){return n.pipe(Za(function(n,r){return ot(t(n,r)).pipe(tt(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new $a(t))}}var $a=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ja(t,this.project))},t}(),Ja=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return o(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new H(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Y(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(X);function Ya(t,e){return it(t,e,1)}function Xa(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new tu(t,e,n))}}var tu=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new eu(t,this.accumulator,this.seed,this.hasSeed))},t}(),eu=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(P),nu=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ru(t,this.callback))},t}(),ru=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new _(n)),r}return o(e,t),e}(P),ou=function(){return function(){}}(),iu=new St("Location Initialized"),su=function(){return function(){}}(),au=new St("appBaseHref"),uu=function(){function t(t){var n=this;this._subject=new Le,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(lu(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,lu(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function lu(t){return t.replace(/\/index.html$/,"")}var cu=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=uu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+uu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+uu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(su),hu=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return uu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+uu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+uu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+uu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(su),pu=void 0,fu=["en",[["a","p"],["AM","PM"],pu],[["AM","PM"],pu,pu],[["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"]],pu,[["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"]],pu,[["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}",pu,"{1} 'at' {0}",pu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],du={},gu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),yu=new St("UseV4Plurals"),mu=function(){return function(){}}(),vu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=du[e];if(n)return n;var r=e.split("-")[0];if(n=du[r])return n;if("en"===r)return fu;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case gu.Zero:return"zero";case gu.One:return"one";case gu.Two:return"two";case gu.Few:return"few";case gu.Many:return"many";default:return"other"}},e}(mu);function bu(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=u(t.split(";")),i=o.next();!i.done;i=o.next()){var s=i.value,a=s.indexOf("="),c=l(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),h=c[1];if(c[0].trim()===e)return decodeURIComponent(h)}}catch(p){n={error:p}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var _u=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),wu=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){ze()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new _u(null,e._ngForOf,-1,-1),o),s=new Cu(t,i);n.push(s)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),s=new Cu(t,i),n.push(s))});for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[i]=[]);var u=bl(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var l=!1,c=0;c-1},e}(Yu),Pl=["alt","control","meta","shift"],kl={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ol=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ru().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(Pl.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=Ru().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Pl.forEach(function(r){r!=n&&(0,kl[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Yu),Il=function(){return function(){}}(),Al=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case hn.NONE:return e;case hn.HTML:return e instanceof Rl?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{$e=$e||new qe(t);var r=e?String(e):"";n=$e.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=$e.getInertBodyElement(r)}while(r!==i);var s=new sn,a=s.sanitizeChildren(cn(n)||n);return ze()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var u=cn(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case hn.STYLE:return e instanceof Ml?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(dn);return e&&Ke(e[1])===e[1]||t.match(fn)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function bc(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function _c(t){return t.pipe(lt(),La(function(t){return!0===t}))}function wc(t){return Tn(t)?t:xn(t)?ot(Promise.resolve(t)):ma(t)}function Cc(t,e,n){return n?function(t,e){return yc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Tc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Tc(s=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Tc(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var s=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!Tc(n.segments,s)&&!!n.children[ac]&&e(n.children[ac],r,a)}(e,n,n.segments)}(t.root,e.root)}var Sc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=lc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ic.serialize(this)},t}(),Ec=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,bc(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ac(this)},t}(),xc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=lc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return jc(this)},t}();function Tc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Pc(t,e){var n=[];return bc(t.children,function(t,r){r===ac&&(n=n.concat(e(t,r)))}),bc(t.children,function(t,r){r!==ac&&(n=n.concat(e(t,r)))}),n}var kc=function(){return function(){}}(),Oc=function(){function t(){}return t.prototype.parse=function(t){var e=new Hc(t);return new Sc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Ac(e);if(n){var r=e.children[ac]?t(e.children[ac],!1):"",o=[];return bc(e.children,function(e,n){n!==ac&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Pc(e,function(n,r){return r===ac?[t(e.children[ac],!1)]:[r+":"+t(n,!1)]});return Ac(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Rc(t)+"="+Rc(e)}).join("&"):Rc(t)+"="+Rc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ic=new Oc;function Ac(t){return t.segments.map(function(t){return jc(t)}).join("/")}function Nc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rc(t){return Nc(t).replace(/%3B/gi,";")}function Mc(t){return Nc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dc(t){return decodeURIComponent(t)}function Vc(t){return Dc(t.replace(/\+/g,"%20"))}function jc(t){return""+Mc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Mc(t)+"="+Mc(e[t])}).join(""));var e}var Fc=/^[^\/()?;=#]+/;function Lc(t){var e=t.match(Fc);return e?e[0]:""}var Uc=/^[^=?&#]+/,Bc=/^[^?&#]+/,Hc=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ec([],{}):new Ec([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ac]=new Ec(t,e)),n},t.prototype.parseSegment=function(){var t=Lc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new xc(Dc(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Lc(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Lc(this.remaining);r&&this.capture(n=r)}t[Dc(e)]=Dc(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Uc))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Bc);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Vc(n),s=Vc(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(s)}else t[i]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Lc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ac);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[ac]:new Ec([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),zc=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=qc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=qc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Gc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Gc(t,this._root).map(function(t){return t.value})},t}();function qc(t,e){var n,r;if(t===e.value)return e;try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var s=qc(t,i.value);if(s)return s}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function Gc(t,e){var n,r;if(t===e.value)return[e];try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var s=Gc(t,i.value);if(s.length)return s.unshift(e),s}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var Qc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Kc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Wc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,th(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(zc);function Zc(t,e){var n=function(t,e){var n=new Yc([],{},{},"",{},ac,e,null,t.root,-1,{});return new Xc("",new Qc(n,[]))}(t,e),r=new va([new xc("",{})]),o=new va({}),i=new va({}),s=new va({}),a=new va(""),u=new $c(r,o,s,a,i,ac,e,n.root);return u.snapshot=n.root,new Wc(new Qc(u,[]),n)}var $c=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(tt(function(t){return lc(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(tt(function(t){return lc(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Jc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],s=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Yc=function(){function t(t,e,n,r,o,i,s,a,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=lc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=lc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Xc=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,th(r,n),r}return o(e,t),e.prototype.toString=function(){return eh(this._root)},e}(zc);function th(t,e){e.value._routerState=t,e.children.forEach(function(e){return th(t,e)})}function eh(t){var e=t.children.length>0?" { "+t.children.map(eh).join(", ")+" } ":"";return""+t.value+e}function nh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,yc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),yc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&oh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==vc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),ah=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function uh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[ac]:""+t}function lh(t,e,n){if(t||(t=new Ec([],{})),0===t.segments.length&&t.hasChildren())return ch(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var s=t.segments[o],a=uh(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!dh(a,u,s))return i;r+=2}else{if(!dh(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Ec([],((r={})[ac]=t,r)):t;return new Sc(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(tt(function(t){return new Ec([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return ma({});var i=[],s=[],a={};return bc(n,function(n,o){var u,l,c=(u=o,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(tt(function(t){return a[o]=t}));o===ac?i.push(c):s.push(c)}),ma.apply(null,i.concat(s)).pipe(wa(),Fa(),tt(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var s=this;return ma.apply(void 0,c(n)).pipe(tt(function(a){return s.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(Ha(function(t){if(t instanceof mh)return ma(null);throw t}))}),wa(),Wa(function(t){return!!t}),Ha(function(t,n){if(t instanceof _a||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,o))return ma(new Ec([],{}));throw new mh(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,s){return Th(r)!==i?bh(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):bh(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_h(i):this.lineralizeSegments(n,i).pipe(it(function(n){var i=new Ec(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=Sh(e,r,o),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return bh(e);var h=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?_h(h):this.lineralizeSegments(r,h).pipe(it(function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(tt(function(t){return n._loadedConfig=t,new Ec(r,{})})):ma(new Ec(r,{}));var s=Sh(e,n,r),a=s.consumedSegments,l=s.lastChild;if(!s.matched)return bh(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(it(function(t){var n=t.module,r=t.routes,s=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return xh(t,e,n)&&Th(n)!==ac})}(t,n)?{segmentGroup:Eh(new Ec(e,function(t,e){var n,r,o={};o[ac]=e;try{for(var i=u(t),s=i.next();!s.done;s=i.next()){var a=s.value;""===a.path&&Th(a)!==ac&&(o[Th(a)]=new Ec([],{}))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Ec(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return xh(t,e,n)})}(t,n)?{segmentGroup:Eh(new Ec(t.segments,function(t,e,n,r){var o,s,a={};try{for(var l=u(n),c=l.next();!c.done;c=l.next()){var h=c.value;xh(t,e,h)&&!r[Th(h)]&&(a[Th(h)]=new Ec([],{}))}}catch(p){o={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),l=s.segmentGroup,h=s.slicedSegments;return 0===h.length&&l.hasChildren()?o.expandChildren(n,r,l).pipe(tt(function(t){return new Ec(a,t)})):0===r.length&&0===h.length?ma(new Ec(a,{})):o.expandSegment(n,l,r,h,ac,!0).pipe(tt(function(t){return new Ec(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?ma(new hc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ma(e._loadedConfig):function(t,e,n){var r=e.canLoad;return r&&0!==r.length?_c(ot(r).pipe(tt(function(r){var o=t.get(r);return wc(o.canLoad?o.canLoad(e,n):o(e,n))}))):ma(!0)}(t.injector,e,n).pipe(it(function(n){return n?r.configLoader.load(t.injector,e).pipe(tt(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):ma(new hc([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ma(n);if(r.numberOfChildren>1||!r.children[ac])return wh(t.redirectTo);r=r.children[ac]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Sc(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return bc(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),s={};return bc(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new Ec(i,s)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=u(e),s=i.next();!s.done;s=i.next()){var a=s.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Sh(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||cc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Eh(t){if(1===t.numberOfChildren&&t.children[ac]){var e=t.children[ac];return new Ec(t.segments.concat(e.segments),e.children)}return t}function xh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Th(t){return t.outlet||ac}var Ph=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),kh=function(){return function(t,e){this.component=t,this.route=e}}();function Oh(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ih(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=Kc(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){var u=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!rh(t,e)||!yc(t.queryParams,e.queryParams);case"paramsChange":default:return!rh(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Ph(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Ih(t,e,i.component?a?a.children:null:n,r,o),u&&o.canDeactivateChecks.push(new kh(a&&a.outlet&&a.outlet.component||null,s))}else s&&Ah(e,a,o),o.canActivateChecks.push(new Ph(r)),Ih(t,null,i.component?a?a.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),bc(i,function(t,e){return Ah(t,n.getContext(e),o)}),o}function Ah(t,e,n){var r=Kc(t),o=t.value;bc(r,function(t,r){Ah(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new kh(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}function Nh(t,e){return null!==t&&e&&e(new rc(t)),ma(!0)}function Rh(t,e){return null!==t&&e&&e(new ec(t)),ma(!0)}function Mh(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?_c(ot(r).pipe(tt(function(r){var o=Oh(r,e,n);return wc(o.canActivate?o.canActivate(e,t):o(e,t)).pipe(Wa())}))):ma(!0)}function Dh(t,e,n){var r=e[e.length-1];return _c(ot(e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t})).pipe(tt(function(e){return _c(ot(e.guards).pipe(tt(function(o){var i=Oh(o,e.node,n);return wc(i.canActivateChild?i.canActivateChild(r,t):i(r,t)).pipe(Wa())})))})))}var Vh=function(){return function(){}}(),jh=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=Uh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ac),n=new Yc([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},ac,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Qc(n,e),o=new Xc(this.url,r);return this.inheritParamsAndData(o._root),ma(o)}catch(s){return new R(function(t){return t.error(s)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Jc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Pc(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===ac?-1:e.value.outlet===ac?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var s=u(t),a=s.next();!a.done;a=s.next()){var l=a.value;try{return this.processSegmentAgainstRoute(l,e,n,r)}catch(c){if(!(c instanceof Vh))throw c}}}catch(h){o={error:h}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Vh},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Vh;if((t.outlet||ac)!==r)throw new Vh;var o,s=[],a=[];if("**"===t.path){var u=n.length>0?vc(n).parameters:{};o=new Yc(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,zh(t),r,t.component,t,Fh(e),Lh(e)+n.length,qh(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Vh;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||cc)(n,t,e);if(!r)throw new Vh;var o={};bc(r.posParams,function(t,e){o[e]=t.path});var s=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=l.consumedSegments,a=n.slice(l.lastChild),o=new Yc(s,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,zh(t),r,t.component,t,Fh(e),Lh(e)+s.length,qh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=Uh(e,s,a,c,this.relativeLinkResolution),p=h.segmentGroup,f=h.slicedSegments;if(0===f.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new Qc(o,d)]}if(0===c.length&&0===f.length)return[new Qc(o,[])];var g=this.processSegment(c,p,f,ac);return[new Qc(o,g)]},t}();function Fh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Lh(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Uh(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Bh(t,e,n)&&Hh(n)!==ac})}(t,n)){var s=new Ec(e,function(t,e,n,r){var o,i,s={};s[ac]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=u(n),l=a.next();!l.done;l=a.next()){var c=l.value;if(""===c.path&&Hh(c)!==ac){var h=new Ec([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,s[Hh(c)]=h}}}catch(p){o={error:p}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return s}(t,e,r,new Ec(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Bh(t,e,n)})}(t,n)){var a=new Ec(t.segments,function(t,e,n,r,o,s){var a,l,c={};try{for(var h=u(r),p=h.next();!p.done;p=h.next()){var f=p.value;if(Bh(t,n,f)&&!o[Hh(f)]){var d=new Ec([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===s?t.segments.length:e.length,c[Hh(f)]=d}}}catch(g){a={error:g}}finally{try{p&&!p.done&&(l=h.return)&&l.call(h)}finally{if(a)throw a.error}}return i({},o,c)}(t,e,n,r,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var l=new Ec(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function Bh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Hh(t){return t.outlet||ac}function zh(t){return t.data||{}}function qh(t){return t.resolve||{}}function Gh(t,e,n,r){var o=Oh(t,e,r);return wc(o.resolve?o.resolve(e,n):o(e,n))}function Qh(t){return function(e){return e.pipe(Za(function(e){var n=t(e);return n?ot(n).pipe(tt(function(){return e})):ot([e])}))}}var Kh=function(){return function(){}}(),Wh=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Zh=new St("ROUTES"),$h=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(tt(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new hc(mc(o.injector.get(Zh)).map(gc),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?ot(this.loader.load(t)):wc(t()).pipe(it(function(t){return t instanceof Te?ma(t):ot(e.compiler.compileModuleAsync(t))}))},t}(),Jh=function(){return function(){}}(),Yh=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Xh(t){throw t}function tp(t,e,n){return e.parse("/")}function ep(t,e){return ma(null)}var np=function(){function t(t,e,n,r,o,i,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=Xh,this.malformedUriErrorHandler=tp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ep,afterPreactivation:ep},this.urlHandlingStrategy=new Yh,this.routeReuseStrategy=new Wh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(xe),this.console=o.get(Dn);var l=o.get(Qn);this.isNgZoneEnabled=l instanceof Qn,this.resetConfig(a),this.currentUrlTree=new Sc(new Ec([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new $h(i,s,function(t){return u.triggerEvent(new Xl(t))},function(t){return u.triggerEvent(new tc(t))}),this.routerState=Zc(this.currentUrlTree,this.rootComponentType),this.transitions=new va({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",state:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Ca(function(t){return 0!==t.id}),tt(function(t){return i({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Za(function(t){var r,o,s,a,l=!1,c=!1;return ma(t).pipe(Za(function(t){var r,o,s,a,u=!e.navigated||t.extractedUrl.toString()!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return ma(t).pipe(Ia(function(t){return"eager"===e.urlUpdateStrategy&&!t.extras.skipLocationChange&&e.setBrowserUrl(t.rawUrl,!!t.extras.replaceUrl,t.id)}),Za(function(t){var r=e.transitions.getValue();return n.next(new ql(t.id,e.serializeUrl(t.extractedUrl),t.source,t.state)),r!==e.transitions.getValue()?ga:[t]}),Za(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,s=e.urlSerializer,a=e.config,function(t){return t.pipe(Za(function(t){return function(e,n,r,o,i){return new Ch(e,n,r,t.extractedUrl,i).apply()}(r,o,s,0,a).pipe(tt(function(e){return i({},t,{urlAfterRedirects:e})}))}))}),function(t,n,r,o,s){return function(r){return r.pipe(it(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new jh(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),o,s).pipe(tt(function(t){return i({},r,{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Ia(function(t){var r=new Wl(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,h=t.state,p=t.extras,f=new ql(t.id,e.serializeUrl(l),c,h);n.next(f);var d=Zc(l,e.rootComponentType).snapshot;return ma(i({},t,{targetSnapshot:d,urlAfterRedirects:l,extras:i({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),ga}),Qh(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Ia(function(t){var n=new Zl(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),tt(function(t){return i({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,s=n._root,Ih(s,r?r._root:null,o,[s.value]))});var n,r,o,s}),function(t,e){return function(n){return n.pipe(it(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===a.length?ma(i({},n,{guardsResult:!0})):function(t,e,n,r){return ot(u).pipe(it(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?ot(i).pipe(it(function(i){var s=Oh(i,e,o);return wc(s.canDeactivate?s.canDeactivate(t,e,n,r):s(t,e,n,r)).pipe(Wa())})).pipe(La(function(t){return!0===t})):ma(!0)}(t.component,t.route,n,e,r)}),La(function(t){return!0===t}))}(0,r,o,t).pipe(it(function(n){return n?function(t,e,n,r){return ot(a).pipe(Ya(function(e){return _c(ot([Rh(e.route.parent,r),Nh(e.route,r),Dh(t,e.path,n),Mh(t,e.route,n)]))}),La(function(t){return!0===t}))}(r,0,t,e):ma(!1)}),tt(function(t){return i({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Ia(function(t){var n=new $l(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Ca(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Ql(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),Qh(function(t){if(t.guards.canActivateChecks.length)return ma(t).pipe(Ia(function(t){var n=new Jl(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(it(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?ot(o).pipe(Ya(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return ma({});if(1===o.length){var i=o[0];return Gh(t[i],e,n,r).pipe(tt(function(t){var e;return(e={})[i]=t,e}))}var s={};return ot(o).pipe(it(function(o){return Gh(t[o],e,n,r).pipe(tt(function(t){return s[o]=t,t}))})).pipe(Fa(),tt(function(){return s}))}(t._resolve,t,e,o).pipe(tt(function(e){return t._resolvedData=e,t.data=i({},t.data,Jc(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(e){return A(Xa(t,void 0),Pa(1),Da(void 0))(e)}:function(e){return A(Xa(function(e,n,r){return t(e)}),Pa(1))(e)}}(function(t,e){return t}),tt(function(e){return t})):ma(t)}))}),Ia(function(t){var n=new Yl(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),Qh(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),tt(function(t){var n,r,o,s=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var s=u(r.children),a=s.next();!a.done;a=s.next()){var l=a.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new Qc(l,o)}var i=e.retrieve(n.value);if(i){var s=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ra;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new ah(s,!1,a-u)}()}(i,0,t),a=s.processChildren?ch(s.segmentGroup,s.index,i.commands):lh(s.segmentGroup,s.index,i.commands);return ih(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,t,p,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),ze()&&this.isNgZoneEnabled&&!Qn.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof Sc?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return jp(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return jp(t.value)?null:Fp.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(jp(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(jp(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Up);return 0==e.length?null:function(t){return Hp(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Up);return 0==e.length?null:function(t){return Rp(function(t,n){return e.map(function(e){return e(t)})}(t).map(Bp)).pipe(tt(Hp))}},t}();function Up(t){return null!=t}function Bp(t){var e=xn(t)?ot(t):t;if(!Tn(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Hp(t){var e=t.reduce(function(t,e){return null!=e?i({},t,e):t},{});return 0===Object.keys(e).length?null:e}var zp=new St("NgValueAccessor"),qp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Gp=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Ru()?Ru().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function Qp(t){return t.validate?function(e){return t.validate(e)}:t}function Kp(t){return t.validate?function(e){return t.validate(e)}:t}var Wp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function Zp(){throw new Error("unimplemented")}var $p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return o(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return Zp()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Zp()},enumerable:!0,configurable:!0}),e}(Dp),Jp=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Yp=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get($p),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),Xp='\n

\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',tf='\n
\n
\n \n
\n
';function ef(t,e){return c(e.path,[t])}function nf(t,e){t||of(e,"Cannot find control with"),e.valueAccessor||of(e,"No value accessor for form control with"),t.validator=Lp.compose([t.validator,e.validator]),t.asyncValidator=Lp.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rf(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rf(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function rf(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function of(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function sf(t){return null!=t?Lp.compose(t.map(Qp)):null}function af(t){return null!=t?Lp.composeAsync(t.map(Kp)):null}var uf=[qp,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Wp,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=jt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=u(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=jt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(df),mf=function(t){function e(e,n,r){var o=t.call(this,hf(n),pf(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof gf?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=u(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(df),vf=Promise.resolve(null),bf=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Le,r.form=new yf({},sf(e),af(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;vf.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),nf(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;vf.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;vf.then(function(){var n=e._findContainer(t.path),r=new yf({});(function(t,e){null==t&&of(e,"Cannot find control with"),t.validator=Lp.compose([t.validator,e.validator]),t.asyncValidator=Lp.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;vf.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;vf.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(Vp),_f=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Xp+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+tf)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Xp+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+tf)},t.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n \n\n After:\n \n ")},t}(),wf=new St("NgFormSelectorWarning"),Cf=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}var n;return o(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof bf||_f.modelGroupParentException()},e}(lf),Sf=Promise.resolve(null),Ef=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new gf,i._registered=!1,i.update=new Le,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||of(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Gp?n=e:(i=e,uf.some(function(t){return i.constructor===t})?(r&&of(t,"More than one built-in value accessor matches form control with"),r=e):(o&&of(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(of(t,"No valid value accessor for form control with"),null)}(i,o),i}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!jt(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?ef(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return sf(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return af(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){nf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Cf)&&this._parent instanceof lf?_f.formGroupNameException():this._parent instanceof Cf||this._parent instanceof bf||_f.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_f.missingNameException()},e.prototype._updateValue=function(t){var e=this;Sf.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Sf.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}($p),xf=function(){return function(){}}(),Tf=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:wf,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),Pf=function(){function t(t,e){this.elRef=t,this.renderer=e}return t.prototype.onClick=function(){this.renderer.invokeElementMethod(this.elRef.nativeElement,"blur",[])},t}(),kf=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return void 0===t?"":this.sanitizer.bypassSecurityTrustHtml(t)},t}();function Of(){return window}var If=function(){function t(t){var e=this;this.route=t,this.resize=function t(e,n,r,o){return f(r)&&(o=r,r=void 0),o?t(e,n,r).pipe(tt(function(t){return h(t)?o.apply(void 0,t):o(t)})):new R(function(t){!function t(e,n,r,o,i){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),s=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),s=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,r),s=function(){return l.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1?Array.prototype.slice.call(arguments):e)},t,r)})}(window,"resize"),this.originalBrowserScale=1,window.devicePixelRatio&&(this.originalBrowserScale=window.devicePixelRatio),this.route.queryParams.subscribe(function(t){t.cid&&!e.correlationId&&(e.correlationId=t.cid),t.a&&void 0===window.showAnnotations&&(e.showAnnotations=t.a),t.b&&void 0===window.showBeacons&&(e.showBeacons=t.b)})}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return Of()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"demoData",{get:function(){return Of().demoData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){var t=Of().sessionId;return t||(t=this.createGuid(),this.sessionId=t),t},set:function(t){Of().sessionId=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showAnnotations",{get:function(){var t=Of().showAnnotations;return void 0===t&&(t=!this.demoData||this.demoData.showAnnotations),t},set:function(t){Of().showAnnotations=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showBeacons",{get:function(){var t=Of().showBeacons;return void 0===t&&(t=!this.demoData||this.demoData.showBeacons),t},set:function(t){Of().showBeacons=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reducedMotion",{get:function(){var t=Of().reducedMotion;return void 0===t&&(t=!1),t},set:function(t){Of().reducedMotion=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"correlationId",{get:function(){return Of().correlationId},set:function(t){Of().correlationId=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useAltKeyShortcuts",{get:function(){return Of().useAltKeyShortcuts||!1},set:function(t){Of().useAltKeyShortcuts=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"browserScale",{get:function(){return window.devicePixelRatio?window.devicePixelRatio:1},enumerable:!0,configurable:!0}),t.prototype.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},t.ngInjectableDef=wt({factory:function(){return new t(ce($c))},token:t,providedIn:"root"}),t}(),Af=function(){function t(){}return t.prototype.log=function(t){ze()&&console.log(t)},t.ngInjectableDef=wt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Nf=function(){function t(t,e,n,r,o){this.route=t,this.windowRef=e,this.router=n,this.titleService=r,this.logger=o,this.demo=e.demoData}return t.prototype.ngOnInit=function(){this.title=this.demo.title,this.abstract=this.demo.abstract,this.setupSteps=this.demo.setupSteps,this.sections=this.demo.sections,this.windowRef.showAnnotations=this.demo.showAnnotations,this.windowRef.showBeacons=this.demo.showAnnotations,this.titleService.setTitle(this.title),this.demo.showHomePage||(this.logger.log("Navigating to first screen"),this.router.navigate(["",0,0],{skipLocationChange:!0}))},t}(),Rf=lo({encapsulation:0,styles:[[".container[_ngcontent-%COMP%]{padding:24px;background-color:#fff}.container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:25px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block;margin-top:10px}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:5px}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-bottom:1rem}.bookmarks[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;background-color:#e5e5e5;margin:0 -24px -24px}.bookmarks[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:0}.bookmarks[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:16px;color:#000;text-decoration:none}.bookmarks[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%]{margin-bottom:10px}.bookmarks[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline-block;height:180px}.bookmarks[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{cursor:pointer;transform:scale(1.01)}.bookmarks[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.1em;font-weight:700}.column[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-flexbox;float:left;width:25%}@media only screen and (max-width:1600px){.column[_ngcontent-%COMP%]{width:33%}}@media only screen and (max-width:1200px){.column[_ngcontent-%COMP%]{width:50%}}@media only screen and (max-width:900px){.column[_ngcontent-%COMP%]{width:100%}}@media only screen and (orientation:portrait){.column[_ngcontent-%COMP%]{width:100%}}@media only screen and (max-width:400px){.bookmarks[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:150px}}"]],data:{}});function Mf(t){return os(0,[(t()(),Uo(0,0,null,null,1,"div",[],[[8,"innerHTML",1]],null,null,null,null)),Ji(1,1)],null,function(t,e){var n=e.component,r=so(e,0,0,t(e,1,0,gi(e.parent,0),n.setupSteps));t(e,0,0,r)})}function Df(t){return os(0,[(t()(),Uo(0,0,null,null,15,"ul",[],null,null,null,null,null)),(t()(),Uo(1,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),es(-1,null,["Switch the "])),(t()(),Uo(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["browser to full-screen mode"])),(t()(),es(-1,null,[" by using the shortcut key F11"])),(t()(),Uo(6,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),es(-1,null,["To show the experience with text annotations, select the "])),(t()(),Uo(8,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["'Show Annotations'"])),(t()(),es(-1,null,[" checkbox"])),(t()(),Uo(11,0,null,null,4,"li",[],null,null,null,null,null)),(t()(),es(-1,null,["To show the experience with click beacons, select the "])),(t()(),Uo(13,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["'Show Click Beacons'"])),(t()(),es(-1,null,[" checkbox"]))],null,null)}function Vf(t){return os(0,[(t()(),Uo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),es(-1,null,["Settings:"])),(t()(),Uo(2,0,null,null,8,"div",[],null,null,null,null,null)),(t()(),Uo(3,0,null,null,5,"input",[["id","showAnnotationsInput"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(t,e,n){var r=!0,o=t.component;return"change"===e&&(r=!1!==gi(t,4).onChange(n.target.checked)&&r),"blur"===e&&(r=!1!==gi(t,4).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(o.windowRef.showAnnotations=n)&&r),r},null,null)),ki(4,16384,null,0,qp,[je,Re],null,null),Ii(1024,null,zp,function(t){return[t]},[qp]),ki(6,671744,null,0,Ef,[[8,null],[8,null],[8,null],[6,zp]],{model:[0,"model"]},{update:"ngModelChange"}),Ii(2048,null,$p,null,[Ef]),ki(8,16384,null,0,cf,[[4,$p]],null,null),(t()(),Uo(9,0,null,null,1,"label",[["for","showAnnotationsInput"]],null,null,null,null,null)),(t()(),es(-1,null,["Show Annotations"])),(t()(),Uo(11,0,null,null,8,"div",[],null,null,null,null,null)),(t()(),Uo(12,0,null,null,5,"input",[["id","showBeaconsInput"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(t,e,n){var r=!0,o=t.component;return"change"===e&&(r=!1!==gi(t,13).onChange(n.target.checked)&&r),"blur"===e&&(r=!1!==gi(t,13).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(o.windowRef.showBeacons=n)&&r),r},null,null)),ki(13,16384,null,0,qp,[je,Re],null,null),Ii(1024,null,zp,function(t){return[t]},[qp]),ki(15,671744,null,0,Ef,[[8,null],[8,null],[8,null],[6,zp]],{model:[0,"model"]},{update:"ngModelChange"}),Ii(2048,null,$p,null,[Ef]),ki(17,16384,null,0,cf,[[4,$p]],null,null),(t()(),Uo(18,0,null,null,1,"label",[["for","showBeaconsInput"]],null,null,null,null,null)),(t()(),es(-1,null,["Show Click Beacons"]))],function(t,e){var n=e.component;t(e,6,0,n.windowRef.showAnnotations),t(e,15,0,n.windowRef.showBeacons)},function(t,e){t(e,3,0,gi(e,8).ngClassUntouched,gi(e,8).ngClassTouched,gi(e,8).ngClassPristine,gi(e,8).ngClassDirty,gi(e,8).ngClassValid,gi(e,8).ngClassInvalid,gi(e,8).ngClassPending),t(e,12,0,gi(e,17).ngClassUntouched,gi(e,17).ngClassTouched,gi(e,17).ngClassPristine,gi(e,17).ngClassDirty,gi(e,17).ngClassValid,gi(e,17).ngClassInvalid,gi(e,17).ngClassPending)})}function jf(t){return os(0,[(t()(),Uo(0,0,null,null,9,"a",[["aria-label","Section Link"],["class","column"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==gi(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),"click"===e&&(r=!1!==gi(t,3).onClick()&&r),r},null,null)),ki(1,671744,null,0,rp,[np,$c,su],{routerLink:[0,"routerLink"]},null),Yi(2,3),ki(3,16384,null,0,Pf,[Re,Me],null,null),(t()(),Uo(4,0,null,null,1,"div",[["class","imgContainer"]],null,null,null,null,null)),(t()(),Uo(5,0,null,null,0,"img",[["aria-label","Section Thumbnail"]],[[8,"src",4]],null,null,null,null)),(t()(),Uo(6,0,null,null,1,"span",[["title","Title"]],null,null,null,null,null)),(t()(),es(7,null,["",""])),(t()(),Uo(8,0,null,null,1,"p",[["style","white-space: pre-wrap;"],["title","Description"]],[[8,"innerHTML",1]],null,null,null,null)),Ji(9,1)],function(t,e){var n=t(e,2,0,"",e.context.index,0);t(e,1,0,n)},function(t,e){t(e,0,0,gi(e,1).target,gi(e,1).href),t(e,5,0,jo(1,"./assets/images/",e.context.$implicit.screens[0].images[0].path,"")),t(e,7,0,e.context.$implicit.title);var n=so(e,8,0,t(e,9,0,gi(e.parent,0),e.context.$implicit.abstract));t(e,8,0,n)})}function Ff(t){return os(0,[Oi(0,kf,[Il]),(t()(),Uo(1,0,null,null,28,"main",[],null,null,null,null,null)),(t()(),Uo(2,0,null,null,21,"section",[["class","container"]],null,null,null,null,null)),(t()(),Uo(3,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),Uo(4,0,null,null,0,"img",[["aria-label","Logo"],["class","logo"],["src","./logo.png"]],null,null,null,null,null)),(t()(),Uo(5,0,null,null,4,"div",[["class","title"]],null,null,null,null,null)),(t()(),Uo(6,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),es(7,null,["",":"])),(t()(),Uo(8,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),es(-1,null,["Guided Simulation"])),(t()(),Uo(10,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),es(-1,null,[" Guided Simulations allow you to demo complex technologies in a simulated environment with or without the assistance of click beacons and annotations. To best leverage the experience, please follow the below setup steps: "])),(t()(),Uo(12,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),es(-1,null,["Recommended Setup Steps:"])),(t()(),Lo(16777216,null,null,1,null,Mf)),ki(15,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Df)),ki(17,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(18,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),es(-1,null,["Introduction:"])),(t()(),Uo(20,0,null,null,1,"p",[["style","white-space: pre-wrap;"]],[[8,"innerHTML",1]],null,null,null,null)),Ji(21,1),(t()(),Lo(16777216,null,null,1,null,Vf)),ki(23,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(24,0,null,null,5,"section",[["aria-label","Click Through Sections"],["class","container"]],null,null,null,null,null)),(t()(),Uo(25,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),es(-1,null,["Scenarios:"])),(t()(),Uo(27,0,null,null,2,"div",[["class","bookmarks"]],null,null,null,null,null)),(t()(),Lo(16777216,null,null,1,null,jf)),ki(29,278528,null,0,wu,[mr,Ue,Dr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,15,0,n.setupSteps),t(e,17,0,!n.setupSteps),t(e,23,0,n.demo.allowBeaconToggles),t(e,29,0,n.sections)},function(t,e){var n=e.component;t(e,7,0,n.title);var r=so(e,20,0,t(e,21,0,gi(e,0),n.abstract));t(e,20,0,r)})}function Lf(t){return os(0,[(t()(),Uo(0,0,null,null,1,"app-start",[],null,null,null,Ff,Rf)),ki(1,114688,null,0,Nf,[$c,If,np,Hl,Af],null,null)],function(t,e){t(e,1,0)},null)}var Uf=oi("app-start",Nf,Lf,{},{},[]),Bf=function(){function t(t){this.logger=t,this.imageLoaded=new Le}return t.prototype.ngOnChanges=function(){this.src="./assets/images/"+this.image.path},t.prototype.emitLoadEvent=function(){this.imageLoaded.emit()},t}(),Hf=function(){function t(t,e){this.logger=t,this.winref=e,this.imagesLoaded=new Le,this.animationStateChange=new Le,this.canAnimate=!1,this.isAnimating=!1,this.destroy=new L,this.transitionState="none"}return Object.defineProperty(t.prototype,"images",{set:function(t){this.isAnimating=!1,this.hideableImages=Array.isArray(t)?t.map(function(t,e){return{screenImage:t,hidden:0!==e}}):[],this.logger.log("Image Set: images set -> count "+this.hideableImages.length+" "),this.canAnimate=this.hideableImages.length>1},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.logger.log("Image Set: on init"),this.animationStateChange.asObservable().subscribe(function(e){t.isAnimating="animating"===e,t.logger.log("Image-Set: State changed: "+e)}),this.imagesLoaded.asObservable().subscribe(function(){t.startAnimation()})},t.prototype.ngAfterViewInit=function(){var t=this;"none"==this.transitionState&&(this.screenImages.changes.pipe(Ia(function(){t.isAnimating&&(t.logger.log("Image-Set: Animation Completed."),t.animationStateChange.emit("completed"))})).subscribe(function(){return t.waitForLoading()}),this.screenImages.length&&(console.log("Image-Set: length > 0"),this.waitForLoading()))},t.prototype.ngOnDestroy=function(){this.destroy.next(),this.destroy.complete()},t.prototype.ngOnChanges=function(t){this.logger.log("Image Set: on changes"),t.frameDuration&&(this.frameDuration=this.frameDuration||250)},t.prototype.hideSet=function(){this.hideableImages.forEach(function(t){return t.hidden=!0})},t.prototype.stopAnimation=function(){this.logger.log("Image Set: stop"),this.isAnimating=!1},t.prototype.waitForLoading=function(){var t=this;this.logger.log("Image Set: wait for loading"),this.canAnimate&&this.animationStateChange.emit("waiting"),Rp(this.screenImages.map(function(t){return t.imageLoaded.pipe(Ga(1))})).subscribe(function(){return t.imagesLoaded.emit()})},t.prototype.startAnimation=function(){if(this.canAnimate&&this.doAnimate&&!this.isAnimating){this.visibleIndex=0,this.animationStateChange.emit("animating"),this.animationStart=null,this.logger.log("Image Set: Starting animation with "+this.frameDuration+"ms interval"),this.isAnimating=!0;var t=this.winref.nativeWindow;t.imageSet=this,t.requestAnimationFrame(this.onAnimate)}},t.prototype.onAnimate=function(t){var e=window.imageSet;if(!e.isAnimating)return e.logger.log("Image Set: animation finished"),void e.animationStateChange.emit("completed");var n=e.visibleIndex+1,r=n*e.frameDuration;e.animationStart||(e.animationStart=t);var o=t-e.animationStart;if(r<=o&&(e.visibleIndex=n,e.hideableImages[e.visibleIndex]?(e.hideableImages[e.visibleIndex].hidden=!1,e.logger.log("Image Set: frame "+e.visibleIndex+"/"+(e.hideableImages.length-1)+" at "+o+"ms ("+(o-r)+"ms off)")):e.logger.log("Image Set: index "+e.visibleIndex+" not found."),n+1>=e.hideableImages.length))return e.isAnimating=!1,e.logger.log("Image Set: animation finished"),void e.animationStateChange.emit("completed");e.winref.nativeWindow.requestAnimationFrame(e.onAnimate)},t}(),zf=lo({encapsulation:0,styles:[["img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%}"]],data:{}});function qf(t){return os(0,[(t()(),Uo(0,0,null,null,1,"img",[["aria-hidden","true"]],[[8,"hidden",0],[8,"src",4]],[[null,"load"]],function(t,e,n){var r=!0;return"load"===e&&(r=!1!==gi(t,1).emitLoadEvent()&&r),r},null,null)),ki(1,540672,[[1,4]],0,Bf,[Af],{image:[0,"image"]},null)],function(t,e){t(e,1,0,e.context.$implicit.screenImage)},function(t,e){t(e,0,0,e.context.$implicit.hidden,gi(e,1).src)})}function Gf(t){return os(0,[Gi(671088640,1,{screenImages:1}),(t()(),Lo(16777216,null,null,1,null,qf)),ki(2,278528,null,0,wu,[mr,Ue,Dr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.hideableImages)},null)}var Qf=function(){return function(){}}(),Kf=function(){function t(t,e,n,r){this.color=t,this.direction=e,this.depth=n,this.softness=r}return Object.defineProperty(t.prototype,"horizontalOffset",{get:function(){return this.hOffset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalOffset",{get:function(){return this.vOffset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurVal},enumerable:!0,configurable:!0}),t.prototype.scaleValues=function(t){var e=this.depth*t,n=(this.direction>0?this.direction:360+this.direction)*Math.PI/180;this.hOffset=this.round(e*Math.cos(n)),this.vOffset=-this.round(e*Math.sin(n)),this.blurVal=this.round(10*this.softness*t)},t.prototype.getCssValue=function(){return this.hOffset+"px "+this.vOffset+"px "+this.blurVal+"px "+this.color},t.prototype.round=function(t){return Math.round(100*t+Number.EPSILON)/100},t}(),Wf=function(){function t(t){this.sanitizer=t,this.borderStyle="solid"}return Object.defineProperty(t.prototype,"marginTop",{get:function(){return this.isMobileView?"0px":200*this.scaling+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.isMobileView?"100%":this.scaling*this.popupStyle.width+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this.popupStyle.fontSize*this.scaling+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.popupStyle.padding*this.scaling+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.popupStyle.color},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.popupStyle.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this.popupStyle.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderWidth",{get:function(){return this.popupStyle.borderThickness+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderRadius",{get:function(){return this.popupStyle.borderRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"boxShadow",{get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.dropShadow.getCssValue())},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.scaling=this.scaling||1,this.dropShadow=new Kf(this.popupStyle.dropShadowColor,this.popupStyle.dropShadowDirection,this.popupStyle.dropShadowDepth,this.popupStyle.dropShadowSoftness),this.dropShadow.scaleValues(this.scaling)},t}(),Zf=function(){function t(t){this.changeDetectorRef=t}return Object.defineProperty(t.prototype,"popupStyle",{set:function(t){t&&(this.color=t.buttonColor,this.backgroundColor=t.borderColor,this.changeDetectorRef.detectChanges())},enumerable:!0,configurable:!0}),t}(),$f=function(){function t(){this.popupStyle=new Qf,this.cssClass=!0}return t.prototype.ngAfterContentInit=function(){var t=this;this.updateButtons(),this.buttons.changes.subscribe(function(){return t.updateButtons()}),this.modalDiv.nativeElement.focus()},t.prototype.ngOnChanges=function(t){t.popupStyle&&!t.popupStyle.isFirstChange()&&this.updateButtons()},t.prototype.updateButtons=function(){var t=this;this.buttons.forEach(function(e){return e.popupStyle=t.popupStyle})},t}(),Jf=lo({encapsulation:0,styles:[[".backdrop[_ngcontent-%COMP%]{position:absolute;background-color:rgba(0,0,0,.5);top:0;left:0;right:0;bottom:0;z-index:1}.backdrop[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%]{position:relative;margin-left:auto;margin-right:auto;max-width:100%;min-height:100px;z-index:2}.backdrop[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.1em}.backdrop[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.05em}.backdrop[_ngcontent-%COMP%] .app-modal-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.02em}"]],data:{}});function Yf(t){return os(2,[Gi(402653184,1,{modalDiv:0}),(t()(),Uo(1,0,null,null,3,"div",[["class","backdrop"]],null,null,null,null,null)),(t()(),Uo(2,0,[[1,0],["modal",1]],null,2,"div",[["appModalContainer",""],["aria-modal","true"],["class","app-modal-container"],["role","dialog"],["tabindex","0"]],[[1,"aria-label",0],[4,"margin-top",null],[4,"width",null],[4,"font-size",null],[4,"padding",null],[4,"color",null],[4,"background-color",null],[4,"border-style",null],[4,"border-color",null],[4,"border-width",null],[4,"border-radius",null],[4,"box-shadow",null]],null,null,null,null)),ki(3,81920,null,0,Wf,[Il],{scaling:[0,"scaling"],popupStyle:[1,"popupStyle"],isMobileView:[2,"isMobileView"]},null),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:null,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:0}}],function(t,e){var n=e.component;t(e,3,0,n.scaling,n.popupStyle,n.isMobileView)},function(t,e){t(e,2,1,[e.component.dialogTitle,gi(e,3).marginTop,gi(e,3).width,gi(e,3).fontSize,gi(e,3).padding,gi(e,3).color,gi(e,3).backgroundColor,gi(e,3).borderStyle,gi(e,3).borderColor,gi(e,3).borderWidth,gi(e,3).borderRadius,gi(e,3).boxShadow])})}var Xf=function(){function t(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},set:function(t){this.x=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},set:function(t){this.y=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},set:function(t){this.x=t-this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},set:function(t){this.y=t-this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return t.x>this.x&&t.y>this.y&&t.rightt.right&&(this.right=t.right),this.yt.bottom&&(this.bottom=t.bottom)},t}(),td=function(){function t(t,e){this.logger=t,this.win=e,this.pageNumber=0,this.pageCount=1,this.cssClass=!0,this.navigatePrevious=new Le,this.navigateNext=new Le,this.isCollapsed=!1,this.isTopAligned=!1,this.showCollapse=!1,this.showProg=!1,this.isVisible=!1}return t.prototype.ngOnChanges=function(){if(this.logger.log("Caption: OnChanges"),this.beacon&&this.beacon.text&&this.showAnnotations){if(this.beacon.popupAction&&"AfterAnimation"!==this.beacon.popupAction?"BeforeAnimation"===this.beacon.popupAction?this.isVisible=!0:"OnHover"===this.beacon.popupAction&&(this.isVisible=!this.isAnimating&&this.isAreaHovered):this.isVisible=!this.isAnimating,!this.screenRect)throw new Error("screenRect must be provided for caption");this.scaling=this.scaling||1,this.isCollapsed=!1,this.showProg=this.beacon.popupStyle.showProgress,this.isMobileView?this.renderMobileView():this.renderStandardView()}else this.isVisible=!1},t.prototype.renderStandardView=function(){this.logger.log("Caption: Render Standard");var t=this.beacon.popupStyle,e=new Xf(t.left,t.top,t.width,t.height||200);e.scale(this.scaling),e.moveInside(this.screenRect);var n=new Kf(t.dropShadowColor,t.dropShadowDirection,t.dropShadowDepth,t.dropShadowSoftness);n.scaleValues(this.scaling),this.captionStyle={top:e.top+"px",left:e.left+"px",width:e.width+"px",height:t.height?e.height+"px":"","font-size":t.fontSize*this.scaling+"px",padding:t.padding*this.scaling+"px","background-color":t.backgroundColor,color:t.color,border:t.borderThickness*this.scaling+"px solid "+t.borderColor,"border-radius":t.borderRadius+"px","box-shadow":n.getCssValue()},this.linkStylePrev={color:t.borderColor},this.linkStyleNext={color:t.borderColor},this.canGoPrevious||(this.linkStylePrev.display="none"),this.canGoNext||(this.linkStyleNext.display="none"),this.progStyle={},t.progressUsesBorderColor&&t.showProgress&&(this.progStyle.color=t.borderColor),this.buttonIconStyle={transform:"scaleY("+(t.linkIconHeightScale||2)+")"}},t.prototype.renderMobileView=function(){this.logger.log("Caption: Render Mobile"),this.showCollapse=!0;var t=this.beacon.popupStyle,e=new Xf(this.screenRect.left,this.screenRect.top,this.screenRect.width,t.height||200);this.isTopAligned=(this.beacon.top+this.beacon.topOffset+this.beacon.beaconSize/2)*this.scaling>this.screenRect.center.y,this.captionStyle={top:this.isTopAligned?e.top+"px":"",bottom:this.isTopAligned?"":"0px",left:e.left+"px",width:e.width+"px",height:t.height?e.height*this.scaling+"px":"","font-size":t.fontSize*this.scaling+"px",padding:t.padding*this.scaling+"px","background-color":t.backgroundColor,color:t.color,border:t.borderThickness*this.scaling+"px solid "+t.borderColor,"border-radius":t.borderRadius*this.scaling}},t.prototype.toggleCollapsed=function(){this.isCollapsed=!this.isCollapsed},t.prototype.prevClicked=function(t){this.navigatePrevious.emit(t)},t.prototype.nextClicked=function(t){this.navigateNext.emit(t)},t}(),ed=lo({encapsulation:0,styles:[[".caption[_ngcontent-%COMP%]{position:absolute;white-space:pre-wrap;z-index:1}.beaconText[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden}.withCollapse[_ngcontent-%COMP%]{height:calc(100% - 1em)}.withNav[_ngcontent-%COMP%]{height:calc(100% - 2em)}.withCollapse.withNav[_ngcontent-%COMP%]{height:calc(100% - 3em)}.navLinks[_ngcontent-%COMP%]{position:relative;height:2em}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{background:0 0;border:none;color:inherit;display:block;font-size:inherit;padding:0;cursor:pointer}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:active, .navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:focus{border:none}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:hover{opacity:.9}.navLinks[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:absolute;bottom:0;display:block;width:100%;text-align:center}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-of-type{position:absolute;bottom:0;left:0}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-of-type .btnIconLeft[_ngcontent-%COMP%]{display:inline-block;padding-right:.5em}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:last-of-type{position:absolute;bottom:0;right:0}.navLinks[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:last-of-type .btnIconRight[_ngcontent-%COMP%]{display:inline-block;padding-left:.5em}.collapseArrow[_ngcontent-%COMP%]{position:relative;text-align:center;height:1.5em;width:33%;max-width:400px;cursor:pointer;margin:0 auto}.downArrow[_ngcontent-%COMP%]{margin-bottom:0}.upArrow[_ngcontent-%COMP%]{margin-top:0}.downArrow[_ngcontent-%COMP%]::before{content:'';position:absolute;top:.6em;height:20%;left:25%;width:25%;background-color:currentColor;transform:skew(0deg,10deg)}.downArrow[_ngcontent-%COMP%]::after{content:'';position:absolute;top:.6em;height:20%;right:25.1%;width:25%;background-color:currentColor;transform:skew(0deg,-10deg)}.upArrow[_ngcontent-%COMP%]::before{content:'';position:absolute;top:.7em;height:20%;left:25%;width:25%;background-color:currentColor;transform:skew(0deg,-10deg)}.upArrow[_ngcontent-%COMP%]::after{content:'';position:absolute;top:.7em;height:20%;right:25.1%;width:25%;background-color:currentColor;transform:skew(0deg,10deg)}"]],data:{}});function nd(t){return os(0,[(t()(),Uo(0,0,null,null,0,"div",[["aria-hidden","true"],["class","collapseArrow downArrow"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=0!=(o.isCollapsed=!o.isCollapsed)&&r),r},null,null))],null,null)}function rd(t){return os(0,[(t()(),Uo(0,0,null,null,6,"span",[],null,null,null,null,null)),ki(1,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Uo(2,0,null,null,1,"span",[["class","screenReaderText"],["style","position:relative;"]],null,null,null,null,null)),(t()(),es(3,null,[" Screen "," of "," "])),(t()(),Uo(4,0,null,null,2,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),es(5,null,["","/",""])),Yi(6,1)],function(t,e){t(e,1,0,e.component.progStyle)},function(t,e){var n=e.component;t(e,3,0,n.pageNumber+1,n.pageCount);var r=n.pageNumber+1,o=t(e,6,0,n.pageCount);t(e,5,0,r,o)})}function od(t){return os(0,[(t()(),Uo(0,0,null,null,16,"div",[["class","navLinks"]],null,null,null,null,null)),(t()(),Lo(16777216,null,null,1,null,rd)),ki(2,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(3,0,null,null,6,"button",[["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,5).onClick()&&r),"click"===e&&(r=!1!==o.prevClicked(n)&&r),r},null,null)),ki(4,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),ki(5,16384,null,0,Pf,[Re,Me],null,null),(t()(),Uo(6,0,null,null,2,"span",[["aria-hidden","true"],["class","btnIconLeft"]],null,null,null,null,null)),ki(7,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),es(8,null,["",""])),(t()(),es(9,null,[" "," "])),(t()(),Uo(10,0,null,null,6,"button",[["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,12).onClick()&&r),"click"===e&&(r=!1!==o.nextClicked(n)&&r),r},null,null)),ki(11,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),ki(12,16384,null,0,Pf,[Re,Me],null,null),(t()(),es(13,null,[" "," "])),(t()(),Uo(14,0,null,null,2,"span",[["aria-hidden","true"],["class","btnIconRight"]],null,null,null,null,null)),ki(15,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),es(16,null,["",""]))],function(t,e){var n=e.component;t(e,2,0,n.showProg),t(e,4,0,n.linkStylePrev),t(e,7,0,n.buttonIconStyle),t(e,11,0,n.linkStyleNext),t(e,15,0,n.buttonIconStyle)},function(t,e){var n=e.component;t(e,8,0,n.beacon.popupStyle.previousChar||"<"),t(e,9,0,n.beacon.popupStyle.previousText||"Previous"),t(e,13,0,n.beacon.popupStyle.nextText||"Next"),t(e,16,0,n.beacon.popupStyle.nextChar||">")})}function id(t){return os(0,[(t()(),Uo(0,0,null,null,0,"div",[["aria-hidden","true"],["class","collapseArrow upArrow"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=0!=(o.isCollapsed=!o.isCollapsed)&&r),r},null,null))],null,null)}function sd(t){return os(0,[(t()(),Uo(0,0,null,null,9,"div",[["class","caption"],["tabindex","0"]],null,null,null,null,null)),ki(1,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(16777216,null,null,1,null,nd)),ki(3,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(4,0,null,null,1,"div",[["class","beaconText"]],[[2,"withCollapse",null],[2,"withNav",null],[8,"innerHTML",1]],null,null,null,null)),Ji(5,1),(t()(),Lo(16777216,null,null,1,null,od)),ki(7,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,id)),ki(9,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.captionStyle),t(e,3,0,!n.isTopAligned&&n.showCollapse),t(e,7,0,n.showNavLinks),t(e,9,0,n.isTopAligned&&n.showCollapse)},function(t,e){var n=e.component,r=n.showCollapse,o=n.showNavLinks,i=so(e,4,2,t(e,5,0,gi(e.parent.parent,0),n.beacon.text));t(e,4,0,r,o,i)})}function ad(t){return os(0,[(t()(),Lo(16777216,null,null,1,null,sd)),ki(1,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(0,null,null,0))],function(t,e){t(e,1,0,!e.component.isCollapsed)},null)}function ud(t){return os(2,[Oi(0,kf,[Il]),(t()(),Lo(16777216,null,null,1,null,ad)),ki(2,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.isVisible)},null)}var ld=function(){function t(t){this.logger=t,this.areaClicked=new Le,this.areaHovered=new Le,this.cssClass=!0,this.isVisible=!1}return t.prototype.ngOnChanges=function(){if(this.beacon){if(this.isVisible=!(!this.showBeacons||!this.beacon.showBeacon||this.isAnimating),!this.screenRect)throw new Error("screenRect must be provided for click area");this.logger.log("ClickArea: OnChanges"),this.scaling=this.scaling||1;var t=new Xf(this.beacon.left,this.beacon.top,this.beacon.width?this.beacon.width:40,this.beacon.height?this.beacon.height:40);t.scale(this.scaling),t.moveInside(this.screenRect),this.clickBoxStyle={top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"};var e=new Xf(this.beacon.leftOffset?this.beacon.leftOffset:0,this.beacon.topOffset?this.beacon.topOffset:0,this.beacon.beaconSize,this.beacon.beaconSize);switch(e.scale(this.scaling),this.beaconClass="beacon",this.beacon.beaconStyle){case"Circle":this.beaconClass+=" beacon-circle",this.beaconInnerStyle={"background-color":this.beacon.beaconColor};break;case"Rectangle":this.beaconClass+=" beacon-rectangle",this.beaconInnerStyle={"background-color":this.beacon.beaconColor},e.left=0,e.top=0,e.width=t.width,e.height=t.height;break;default:this.beaconClass+=" beacon-ring",this.beaconInnerStyle={border:"2px solid","border-color":this.beacon.beaconColor}}this.reducedMotion&&(this.beaconClass+=" reducedmotion"),this.beaconStyle={"margin-left":e.left+"px","margin-top":e.top+"px",width:e.width+"px",height:e.height+"px","border-color":this.beacon.beaconColor?this.beacon.beaconColor:""}}else this.isVisible=!1},t.prototype.handleClick=function(t){this.areaClicked.emit(t)},t.prototype.handleHover=function(t){this.areaHovered.emit("mouseenter"===t.type)},t.prototype.handleEnterKey=function(t){this.areaClicked.emit(t)},t}(),cd=lo({encapsulation:0,styles:[['.click-area[_ngcontent-%COMP%]{display:flex;position:absolute;cursor:pointer;border:0;background-color:transparent;padding:0;margin:0;box-shadow:none;vertical-align:top;text-align:left;z-index:1}.click-area[_ngcontent-%COMP%]:active{outline:0}.click-area[_ngcontent-%COMP%] .beacon[_ngcontent-%COMP%]{position:relative;height:40px;width:40px;border-color:#5c2d91}.click-area[_ngcontent-%COMP%] .beacon[_ngcontent-%COMP%] .beacon-inner[_ngcontent-%COMP%]{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;content:" ";position:absolute;height:100%;width:100%}.click-area[_ngcontent-%COMP%] .beacon-ring[_ngcontent-%COMP%] .beacon-inner[_ngcontent-%COMP%]{-webkit-animation-name:expand-and-fade-animation;animation-name:expand-and-fade-animation;background:0 0;border-radius:50%}.click-area[_ngcontent-%COMP%] .beacon-circle[_ngcontent-%COMP%] .beacon-inner[_ngcontent-%COMP%]{-webkit-animation-name:fade-in-out-animation;animation-name:fade-in-out-animation;background:0 0;border-radius:50%}.click-area[_ngcontent-%COMP%] .beacon-rectangle[_ngcontent-%COMP%] .beacon-inner[_ngcontent-%COMP%]{-webkit-animation-name:fade-in-out-animation;animation-name:fade-in-out-animation;background:inherit;border:0}.click-area[_ngcontent-%COMP%] .beacon.reducedmotion[_ngcontent-%COMP%]{opacity:.8}.click-area[_ngcontent-%COMP%] .beacon.reducedmotion[_ngcontent-%COMP%] .beacon-inner[_ngcontent-%COMP%]{-webkit-animation-name:none;animation-name:none;-webkit-animation-duration:0s;animation-duration:0s}@media (prefers-reduced-motion:reduce){.click-area[_ngcontent-%COMP%] .beacon[_ngcontent-%COMP%]{opacity:.75}.click-area[_ngcontent-%COMP%] .beacon[_ngcontent-%COMP%]:after, .click-area[_ngcontent-%COMP%] .beacon[_ngcontent-%COMP%]:before{-webkit-animation-name:none;animation-name:none;-webkit-animation-duration:0s;animation-duration:0s}}']],data:{}});function hd(t){return os(0,[(t()(),Uo(0,0,null,null,2,"button",[["class","click-area"],["tabindex","0"],["type","button"]],[[1,"aria-label",0]],[[null,"click"],[null,"keyup.enter"],[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,2).onClick()&&r),"click"===e&&(r=!1!==o.handleClick(n)&&r),"keyup.enter"===e&&(r=!1!==o.handleEnterKey(n)&&r),"mouseenter"===e&&(r=!1!==o.handleHover(n)&&r),"mouseleave"===e&&(r=!1!==o.handleHover(n)&&r),r},null,null)),ki(1,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),ki(2,16384,null,0,Pf,[Re,Me],null,null)],function(t,e){t(e,1,0,e.component.clickBoxStyle)},function(t,e){t(e,0,0,e.component.beacon.name)})}function pd(t){return os(0,[(t()(),Uo(0,0,null,null,2,"a",[["class","click-area"],["tabindex","0"]],[[8,"href",4],[1,"target",0],[1,"aria-label",0]],[[null,"mouseenter"],[null,"mouseleave"],[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,2).onClick()&&r),"mouseenter"===e&&(r=!1!==o.handleHover(n)&&r),"mouseleave"===e&&(r=!1!==o.handleHover(n)&&r),r},null,null)),ki(1,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),ki(2,16384,null,0,Pf,[Re,Me],null,null)],function(t,e){t(e,1,0,e.component.clickBoxStyle)},function(t,e){var n=e.component;t(e,0,0,jo(1,"",n.beacon.linkPath,""),n.beacon.openInNewTab?"_blank":null,n.beacon.name)})}function fd(t){return os(0,[(t()(),Uo(0,0,null,null,5,"div",[["aria-hidden","true"],["class","click-area"]],null,null,null,null,null)),ki(1,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Uo(2,0,null,null,3,"div",[["aria-hidden","true"]],[[8,"className",0],[8,"hidden",0]],null,null,null,null)),ki(3,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Uo(4,0,null,null,1,"div",[["class","beacon-inner"]],null,null,null,null,null)),ki(5,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Lo(16777216,null,null,1,null,hd)),ki(7,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,pd)),ki(9,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,n.clickBoxStyle),t(e,3,0,n.beaconStyle),t(e,5,0,n.beaconInnerStyle),t(e,7,0,"ExternalLink"!==n.beacon.clickAction),t(e,9,0,"ExternalLink"===n.beacon.clickAction)},function(t,e){var n=e.component;t(e,2,0,n.beaconClass,!n.isVisible)})}function dd(t){return os(2,[(t()(),Lo(16777216,null,null,1,null,fd)),ki(1,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,e.component.beacon)},null)}var gd=function(){function t(){this.pageNumber=0,this.pageCount=1,this.navigateNext=new Le,this.navigatePrevious=new Le,this.navigateBeacon=new Le}return t.prototype.onNavigateNext=function(){this.navigateNext.emit()},t.prototype.onNavigatePrev=function(){this.navigatePrevious.emit()},t.prototype.onNavigateBeacon=function(){this.navigateBeacon.emit(this.beacon)},t.prototype.onClickAreaHover=function(t){this.isAreaMouseOver=t},t}(),yd=lo({encapsulation:2,styles:[],data:{}});function md(t){return os(0,[(t()(),Uo(0,0,null,null,4,"section",[],null,null,null,null,null)),(t()(),Uo(1,0,null,null,1,"app-caption",[],[[2,"app-caption",null]],[[null,"navigatePrevious"],[null,"navigateNext"]],function(t,e,n){var r=!0,o=t.component;return"navigatePrevious"===e&&(r=!1!==o.onNavigatePrev()&&r),"navigateNext"===e&&(r=!1!==o.onNavigateNext()&&r),r},ud,ed)),ki(2,573440,null,0,td,[Af,If],{beacon:[0,"beacon"],scaling:[1,"scaling"],screenRect:[2,"screenRect"],showAnnotations:[3,"showAnnotations"],isMobileView:[4,"isMobileView"],showNavLinks:[5,"showNavLinks"],pageNumber:[6,"pageNumber"],pageCount:[7,"pageCount"],canGoPrevious:[8,"canGoPrevious"],canGoNext:[9,"canGoNext"],isAnimating:[10,"isAnimating"],isAreaHovered:[11,"isAreaHovered"]},{navigatePrevious:"navigatePrevious",navigateNext:"navigateNext"}),(t()(),Uo(3,0,null,null,1,"app-click-area",[],[[2,"app-click-area",null]],[[null,"areaClicked"],[null,"areaHovered"]],function(t,e,n){var r=!0,o=t.component;return"areaClicked"===e&&(r=!1!==o.onNavigateBeacon()&&r),"areaHovered"===e&&(r=!1!==o.onClickAreaHover(n)&&r),r},dd,cd)),ki(4,573440,null,0,ld,[Af],{beacon:[0,"beacon"],scaling:[1,"scaling"],screenRect:[2,"screenRect"],showAnnotations:[3,"showAnnotations"],reducedMotion:[4,"reducedMotion"],showBeacons:[5,"showBeacons"],isAnimating:[6,"isAnimating"]},{areaClicked:"areaClicked",areaHovered:"areaHovered"})],function(t,e){var n=e.component;t(e,2,1,[n.beacon,n.scaling,n.screenRect,n.showAnnotations,n.isMobileView,n.beacon.popupStyle.useNavButtons,n.pageNumber,n.pageCount,n.canGoPrevious,n.canGoNext,n.isAnimating,n.isAreaMouseOver]),t(e,4,0,n.beacon,n.scaling,n.screenRect,n.showAnnotations,n.reducedMotion,n.showBeacons,n.isAnimating)},function(t,e){t(e,1,0,gi(e,2).cssClass),t(e,3,0,gi(e,4).cssClass)})}var vd=function(){return function(){}}(),bd=function(){function t(t){this.windoRef=t}return t.prototype.getNavigationIndex=function(t,e,n){return"Next"===n.clickAction?this.getNextPage(t,e):"Previous"===n.clickAction?this.getPreviousPage(t,e):"PageLink"===n.clickAction?this.getLinkedPage(n.linkedPageId):null},t.prototype.getNextPage=function(t,e){var n,r=this.windoRef.demoData,o=e+1>=r.sections[t].screens.length;return o&&t+1>=r.sections.length?null:o?((n=new vd).sectionIndex=t+1,n.screenIndex=0,n):((n=new vd).sectionIndex=t,n.screenIndex=e+1,n)},t.prototype.getPreviousPage=function(t,e){var n=this.windoRef.demoData,r=0===t,o=0===e,i=new vd;if(r&&o)return null;if(o)return i.sectionIndex=t-1,i.screenIndex=n.sections[t-1].screens.length-1,i;i.sectionIndex=t,i.screenIndex=e-1;var s=n.sections[i.sectionIndex].screens[i.screenIndex];return"Automatic"===s.transitionMode&&0===s.beacons.length&&(i=this.getPreviousPage(i.sectionIndex,i.screenIndex)),i},t.prototype.getLinkedPage=function(t){for(var e=this.windoRef.demoData,n=0;n=this.demo.sections.length?(this.sectionIndex=0,this.screenIndex=0):this.screenIndex>=this.demo.sections[this.sectionIndex].screens.length&&(this.sectionIndex++,this.screenIndex++,this.verifySectionAndScreenIndexes())},t.prototype.subscribeToChanges=function(){var t=this;Rp(this.screenImages.map(function(t){return t.imageLoaded.subscribe(function(){t.image.hasBeenBuffered=!0}),t.imageLoaded.pipe(Ga(1))})).subscribe(function(){t.imagesLoaded.emit()})},t.prototype.shouldBuffer=function(){return!this.isBuffering&&this.canBuffer&&this.totalBufferedPages0)&&(this.images=[]),this.doBuffering(this.sectionIndex,this.screenIndex,0,this.totalBufferedPages),this.isBuffering=!1)},t.prototype.doBuffering=function(t,e,n,r){if(!(n>=this.maxBufferSize||r>=this.maxBufferPages)){t>=this.demo.sections.length&&(t=0);var o=this.demo.sections[t];if(e>=o.screens.length)this.doBuffering(++t,0,n,r);else{var i=o.screens[e],s=!0,a=0;if(!i.hasBeenBuffered)for(var u=0;u transitionSlideOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"{{slideInit}}"},offset:null},{type:6,styles:{transform:"{{slideEnd}}"},offset:null}]},timings:"{{length}}"}],options:null},{type:0,name:"transitionFadeOut",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"* => transitionFadeOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1},offset:null},{type:6,styles:{opacity:0},offset:null},{type:6,styles:{opacity:0},offset:null}]},timings:"{{length}}"}],options:null}],options:{}},{type:7,name:"transitionIn",definitions:[{type:0,name:"transitionSlideIn",styles:{type:6,styles:{transform:"{{slideInit}}"},offset:null},options:{params:{slideInit:"0",slideEnd:"0"}}},{type:1,expr:"* => transitionSlideIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"{{slideInit}}"},offset:null},{type:6,styles:{transform:"{{slideEnd}}"},offset:null}]},timings:"{{length}}"}],options:null},{type:0,name:"transitionFadeIn",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"* => transitionFadeIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:0},offset:null},{type:6,styles:{opacity:1},offset:null}]},timings:"{{length}}"}],options:null}],options:{}}]}});function Td(t){return os(0,[(t()(),Uo(0,0,null,null,5,"div",[["id","transition-vp-container"]],null,null,null,null,null)),(t()(),Uo(1,0,null,null,4,"div",[["id","transition-vp"]],null,null,null,null,null)),ki(2,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Uo(3,0,null,null,2,"img",[["aria-hidden","true"]],[[8,"hidden",0],[8,"src",4],[24,"@transitionIn",0]],[[null,"@transitionIn.done"]],function(t,e,n){var r=!0;return"@transitionIn.done"===e&&(r=!1!==t.component.onTransitionDone(n)&&r),r},null,null)),Xi(4,{length:0,slideInit:1,slideEnd:2,fadeStart:3}),Xi(5,{value:0,params:1})],function(t,e){t(e,2,0,e.component.screenStyle)},function(t,e){var n=e.component,r=n.nextImgHidden,o=n.nextImageSrc,i=t(e,5,0,n.transitionIn,t(e,4,0,n.config.length,n.config.slideInInit,n.config.slideInEnd,""));t(e,3,0,r,o,i)})}var Pd=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new kd(t),r=Y(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),kd=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(X),Od=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(_)),Id=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Ad=new(function(t){function e(n,r){void 0===r&&(r=Id.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Id))(Od),Nd=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Rd(t,this.dueTime,this.scheduler))},t}(),Rd=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Md,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(P);function Md(t){t.debouncedNext()}var Dd=function(){return function(){}}(),Vd=function(){return function(){}}(),jd=function(){return function(){}}(),Fd=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,c(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Ld=function(){function t(){}return t.prototype.encodeKey=function(t){return Ud(t)},t.prototype.encodeValue=function(t){return Ud(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Ud(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Bd=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ld,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=l(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],s=o[1],a=r.get(i)||[];a.push(s),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function Hd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function zd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function qd(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Gd=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fd),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}(),Wd=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Qd.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Kd),Zd=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Qd.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Kd),$d=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(Kd);function Jd(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Yd=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof Gd)r=t;else{var i;i=n.headers instanceof Fd?n.headers:new Fd(n.headers);var s=void 0;n.params&&(s=n.params instanceof Bd?n.params:new Bd({fromObject:n.params})),r=new Gd(t,e,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=ma(r).pipe(Ya(function(t){return o.handler.handle(t)}));if(t instanceof Gd||"events"===n.observe)return a;var u=a.pipe(Ca(function(t){return t instanceof Zd}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(tt(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(tt(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(tt(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(tt(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Bd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Jd(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Jd(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Jd(n,e))},t}(),Xd=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),tg=new St("HTTP_INTERCEPTORS"),eg=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),ng=/^\)\]\}',?\n/,rg=function(){return function(){}}(),og=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),ig=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new R(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var s=t.serializeBody(),a=null,u=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new Fd(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new Wd({headers:o,status:e,statusText:n,url:i})},l=function(){var e=u(),o=e.headers,i=e.status,s=e.statusText,a=e.url,l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(ng,"");try{l=""!==l?JSON.parse(l):null}catch(p){l=h,c&&(c=!1,l={error:p,text:l})}}c?(n.next(new Zd({body:l,headers:o,status:i,statusText:s,url:a||void 0})),n.complete()):n.error(new $d({error:l,headers:o,status:i,statusText:s,url:a||void 0}))},c=function(t){var e=new $d({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},h=!1,p=function(e){h||(n.next(u()),h=!0);var o={type:Qd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:Qd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==s&&r.upload&&r.upload.addEventListener("progress",f)),r.send(s),n.next({type:Qd.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",p),null!==s&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),sg=new St("XSRF_COOKIE_NAME"),ag=new St("XSRF_HEADER_NAME"),ug=function(){return function(){}}(),lg=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=bu(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),cg=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),hg=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(tg,[]);this.chain=e.reduceRight(function(t,e){return new Xd(t,e)},this.backend)}return this.chain.handle(t)},t}(),pg=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:cg,useClass:eg}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:sg,useValue:t.cookieName}:[],t.headerName?{provide:ag,useValue:t.headerName}:[]]}},t}(),fg=function(){return function(){}}(),dg=function(){function t(t,e,n){this.http=t,this.winRef=e,this.logger=n,this.url="api/common/onlineclickthroughview/"}return t.prototype.trackView=function(t,e,n){if(!t.analyticsEndpoint)return R.create(function(t){t.next(null),t.complete()});this.logger.log("t-service: view start");var r=new Dd;return r.sessionId=this.winRef.sessionId,r.correlationId=this.winRef.correlationId,r.sectionTitle=e?t.sections[e].title:null,r.sectionIndex=e,r.pageIndex=n,this.http.post(""+t.analyticsEndpoint+this.url+t.demoId,r)},t.prototype.trackViewEnd=function(t,e){t.analyticsEndpoint&&e&&(this.logger.log("t-service: view end"),this.http.post(""+t.analyticsEndpoint+this.url+"end/"+e,{}).subscribe())},t.ngInjectableDef=wt({factory:function(){return new t(ce(Yd),ce(If),ce(Af))},token:t,providedIn:"root"}),t}(),gg=function(){function t(t,e,n,r,o,i,s){this.route=t,this.router=e,this.windowRef=n,this.tracking=r,this.titleService=o,this.logger=i,this.navService=s,this.showBeacons=!0,this.canBuffer=!1,this.isAnimating=!1,this.isPageLoading=!1,this.isPageTransitioning=!1,this.history=[],this.destroy=new L,this.keySubject=new L,this.demo=this.windowRef.demoData,this.isMobileView=this.demo.isMobileView,this.windowRect=new Xf(0,0,n.nativeWindow.innerWidth,n.nativeWindow.innerHeight),this.showAnnotations=n.showAnnotations,this.showBeacons=n.showBeacons,this.reducedMotion=n.reducedMotion}return t.prototype.ngOnInit=function(){var t,e,n=this;if(this.logger.log("Demo Component: on init"),!this.demo)throw new Error("Demo data is not set!");this.titleService.setTitle(this.demo.title),this.route.paramMap.pipe(Ia(function(t){n.logger.log("Demo Component: Routre Param Map"),n.sectionIdx=+t.get("section"),n.screenIdx=+t.get("screen"),n.loadPage(n.sectionIdx,n.screenIdx)}),Za(function(){return n.windowRef.resize}),(t=this.destroy,function(e){return e.lift(new Pd(t))}),Ia(function(t){var e=t.target;n.windowRect=new Xf(0,0,e.innerWidth,e.innerHeight),n.updateScreenScaling()})).subscribe(),this.router.events.pipe(Ca(function(t){return t instanceof Gl})).subscribe(function(){n.logger.log("Demo Component: router => NavigationEnd");var t=document.querySelector("#screenDescription");t&&n.screen&&(n.screen.beacons.length>0||"Automatic"!==n.screen.transitionMode)&&t.focus()}),this.keySubject.pipe((void 0===e&&(e=Ad),function(t){return t.lift(new Nd(100,e))})).subscribe(function(t){return n.handleKeyInput(t)})},t.prototype.ngOnDestroy=function(){this.logger.log("Demo Component: on destroy"),this.destroy.next(),this.destroy.complete()},t.prototype.keyEvent=function(t){t.ctrlKey||(this.isPageLoading?this.logger.log("Key press during page load ignored."):this.keySubject.next(t))},t.prototype.handleKeyInput=function(t){this.windowRef.useAltKeyShortcuts&&t.altKey||!this.windowRef.useAltKeyShortcuts&&!t.altKey?39===t.keyCode?this.navigateDefault():37===t.keyCode?this.returnPage():84===t.keyCode&&this.demo.allowToc?this.toggleToc():65===t.keyCode&&this.demo.allowBeaconToggles?(this.showAnnotations=!this.showAnnotations,this.windowRef.showAnnotations=this.showAnnotations):77===t.keyCode?(this.reducedMotion=!this.reducedMotion,this.windowRef.reducedMotion=this.reducedMotion):66===t.keyCode&&this.demo.allowBeaconToggles?(this.showBeacons=!this.showBeacons,this.windowRef.showBeacons=this.showBeacons):72===t.keyCode&&this.toggleHelp():t.altKey&&72==t.keyCode&&this.toggleHelp(),27===t.keyCode&&(this.showToc||this.showHelp)&&(this.showToc=!1,this.showHelp=!1,this.lastFocusEl&&this.lastFocusEl.focus())},t.prototype.loadPage=function(t,e){var n=this;if(this.isPageLoading)this.logger.log("Demo Compoenent: loadPage double entry detected.");else{if(this.isPageLoading=!0,this.logger.log("Demo Component: loadPage, section "+t+", screen "+e+" "),this.start=!1,this.end=!1,this.showToc=!1,this.canBuffer=!1,this.showAnnotations=this.windowRef.showAnnotations,this.showBeacons=this.windowRef.showBeacons,t<0||!this.demo.sections||this.demo.sections.length<=t)return this.logger.log("Demo Component: bad section info, going home"),void this.navigateHome();var r=this.demo.sections[t];if(this.screenIdx<0||!r.screens||r.screens.length<=this.screenIdx)return this.logger.log("Demo Component: bad screen info, going home"),void this.navigateHome();if(this.screenCount=r.screens.length,this.screen=r.screens[e],this.title=r.title,this.tracking.trackView(this.demo,t,e).subscribe(function(t){return n.viewId=t}),this.updateScreenScaling(),0===e&&t>0&&this.demo.showSectionMarkers&&(this.start=!0,this.text=r.abstract),this.nextScreen=r.screens.length>e+1?r.screens[e+1]:null,this.screen.beacons.length>0)this.popupStyle=this.screen.beacons[0].popupStyle;else for(var o=0;o0){this.popupStyle=i.beacons[0].popupStyle;break}}this.screen.images.length<=1&&(this.canBuffer=!0,this.handleAutomaticTransition()),this.isPageLoading=!1}},t.prototype.handleAnimationStateChange=function(t){switch(this.logger.log("Demo Component: animation state change -> "+t),t){case"waiting":case"animating":this.isAnimating=!0;break;case"completed":this.canBuffer=!0,this.isAnimating=!1,this.handleAutomaticTransition()}},t.prototype.handleAutomaticTransition=function(){var t=this;if(this.logger.log("Demo Component: handle automatic transition"),"Automatic"==this.screen.transitionMode){var e=this.screenIdx,n=1e3*this.screen.transitionAfter;this.logger.log("Demo Automatic Transition timer for "+n+"ms started."),setTimeout(function(){t.screenIdx==e?(t.logger.log("Performing Automatic Transition."),t.navigateDefault()):t.logger.log("Automatic transition was cancelled by page change.")},n)}},t.prototype.toggleStart=function(){this.start=!this.start},t.prototype.toggleHelp=function(){this.showHelp||(this.lastFocusEl=this.windowRef.nativeWindow.document.activeElement),this.showHelp=!this.showHelp,this.showHelp?this.showToc=!1:this.lastFocusEl&&this.lastFocusEl.focus()},t.prototype.toggleToc=function(){this.showToc||(this.lastFocusEl=this.windowRef.nativeWindow.document.activeElement),this.showToc=!this.showToc,this.showToc?this.showHelp=!1:this.lastFocusEl&&this.lastFocusEl.focus()},t.prototype.navigateHome=function(){this.logger.log("Navigating to home page"),this.trackViewEnd(),this.demo.showHomePage?this.router.navigate(["/"]):this.navigateToScreen({sectionIndex:0,screenIndex:0},!0)},t.prototype.navigatePage=function(t){if(this.logger.log("Demo: navigatePage"),"ExternalLink"!==t.clickAction){var e=this.navService.getNavigationIndex(this.sectionIdx,this.screenIdx,t);this.navigateToScreen(e,!0)}},t.prototype.navigateDefault=function(){this.logger.log("Demo: navigateDefault");var t=this.screen.beacons.find(function(t){return t.isDefault});t?this.navigatePage(t):this.navigateToNextScreen()},t.prototype.navigateToNextScreen=function(){this.logger.log("Demo: navigateToNextScreen");var t=this.navService.getNextPage(this.sectionIdx,this.screenIdx);this.navigateToScreen(t,!0)},t.prototype.returnPage=function(){if(this.logger.log("Demo: returnPage"),this.history.length>0){var t=this.history.pop();this.navigateToScreen(t,!1)}else this.navigateToPreviousScreen()},t.prototype.navigateToPreviousScreen=function(){this.logger.log("Demo: navigateToPreviousScreen");var t=this.navService.getPreviousPage(this.sectionIdx,this.screenIdx);this.navigateToScreen(t,!1)},t.prototype.navigateToScreen=function(t,e){if(this.logger.log("Demo: navigateToScreen"),this.trackViewEnd(),this.imageSet.stopAnimation(),t)if(this.logger.log("Navigating to section "+t.sectionIndex+", screen "+t.screenIndex),e&&this.screen.beacons.length>0&&"Automatic"!==this.screen.transitionMode&&this.history.push({sectionIndex:this.sectionIdx,screenIndex:this.screenIdx}),this.nextScreen=this.demo.sections[t.sectionIndex].screens[t.screenIndex],t.screenIndex>this.screenIdx&&this.nextScreen.transitionType&&"None"!=this.nextScreen.transitionType){var n=this;this.isPageTransitioning=!0,this.imgTransition.runTransition().then(function(){n.isPageTransitioning=!1,n.router.navigate(["",t.sectionIndex,t.screenIndex])})}else this.router.navigate(["",t.sectionIndex,t.screenIndex]);else this.logger.log("Navigate To Screen: nav null, going home"),this.navigateHome()},t.prototype.trackViewEnd=function(){this.viewId&&this.tracking.trackViewEnd(this.demo,this.viewId)},t.prototype.updateScreenScaling=function(){this.logger.log("Demo Component: update screen scaling");var t=0,e=0;if(this.screen.images&&this.screen.images.length){var n=this.screen.images[0];t=n.width,e=n.height}this.screenRect=new Xf(0,0,t,e),this.scaling=this.screenRect.getScaleToFitFactor(this.windowRect);var r=Math.max(-.25,this.windowRef.browserScale-this.windowRef.originalBrowserScale);0!==r&&(this.scaling*=1+r),this.screenRect.scale(this.scaling,this.scaling),this.screenStyle={width:this.screenRect.width+"px",height:this.screenRect.height+"px",top:Math.max(0,Math.round(this.windowRect.center.y-this.screenRect.center.y))+"px",left:Math.max(0,Math.round(this.windowRect.center.x-this.screenRect.center.x))+"px"}},t}(),yg=lo({encapsulation:0,styles:[[".screen-container[_ngcontent-%COMP%]{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-modal[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-top:0}.app-modal[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{text-align:center;margin-top:1.5rem}.app-modal[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{border:none;border-radius:5px;background-color:#0d66d0;color:#fff;cursor:pointer;display:inline-block;outline:0;padding:10px 30px;text-decoration:none;margin-bottom:10px;font-size:inherit}.tocContainer[_ngcontent-%COMP%]{overflow-y:auto;max-height:55vh}.toc[_ngcontent-%COMP%]{list-style:none;padding-left:5px}.toc[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.5rem;min-height:3.5rem;clear:both}.toc[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.toc[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1em;height:3.5rem;float:left}.toc[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.toc[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-weight:700;font-style:italic}"]],data:{}});function mg(t){return os(0,[(t()(),Uo(0,0,null,null,1,"app-image-set",[],null,null,null,Gf,zf)),ki(1,4964352,[[2,4],["imgNextSet",4]],0,Hf,[Af,If],{images:[0,"images"]},null)],function(t,e){t(e,1,0,e.component.nextScreen.images)},null)}function vg(t){return os(0,[(t()(),Uo(0,0,null,null,1,"app-image-set",[],null,[[null,"animationStateChange"]],function(t,e,n){var r=!0;return"animationStateChange"===e&&(r=!1!==t.component.handleAnimationStateChange(n)&&r),r},Gf,zf)),ki(1,4964352,[[1,4],["imgSet",4]],0,Hf,[Af,If],{images:[0,"images"],doAnimate:[1,"doAnimate"],frameDuration:[2,"frameDuration"]},{animationStateChange:"animationStateChange"})],function(t,e){var n=e.component;t(e,1,0,n.screen.images,!0,n.screen.animationDelay)},null)}function bg(t){return os(0,[(t()(),Uo(0,0,null,null,10,"app-modal",[],[[2,"app-modal",null]],null,null,Yf,Jf)),ki(1,1622016,null,1,$f,[],{popupStyle:[0,"popupStyle"],scaling:[1,"scaling"],isMobileView:[2,"isMobileView"],dialogTitle:[3,"dialogTitle"]},null),Gi(603979776,4,{buttons:1}),(t()(),Uo(3,0,null,0,1,"h1",[],null,null,null,null,null)),(t()(),es(4,null,["",""])),(t()(),Uo(5,0,null,0,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(t()(),Uo(6,0,null,0,4,"div",[["class","buttons"]],null,null,null,null,null)),(t()(),Uo(7,0,null,null,3,"button",[["appModalButton",""],["class","button"],["tabindex","0"]],[[4,"color",null],[4,"background-color",null]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,9).onClick()&&r),"click"===e&&(r=!1!==o.toggleStart()&&r),r},null,null)),ki(8,16384,[[4,4]],0,Zf,[vr],null,null),ki(9,16384,null,0,Pf,[Re,Me],null,null),(t()(),es(-1,null,["Continue"]))],function(t,e){var n=e.component;t(e,1,0,n.demo.theme,n.scaling,n.isMobileView,"Scenario Start")},function(t,e){var n=e.component;t(e,0,0,gi(e,1).cssClass),t(e,4,0,n.title),t(e,5,0,n.text),t(e,7,0,gi(e,8).color,gi(e,8).backgroundColor)})}function _g(t){return os(0,[(t()(),Uo(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),es(-1,null,["Click Next Scenario to continue."]))],null,null)}function wg(t){return os(0,[(t()(),Uo(0,0,null,null,3,"button",[["appModalButton",""],["class","button"],["style","margin-left:10px"],["tabindex","0"]],[[4,"color",null],[4,"background-color",null]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,2).onClick()&&r),"click"===e&&(r=!1!==o.navigatePage()&&r),r},null,null)),ki(1,16384,[[5,4]],0,Zf,[vr],null,null),ki(2,16384,null,0,Pf,[Re,Me],null,null),(t()(),es(-1,null,[" Next Scenario "]))],null,function(t,e){t(e,0,0,gi(e,1).color,gi(e,1).backgroundColor)})}function Cg(t){return os(0,[(t()(),Uo(0,0,null,null,15,"app-modal",[],[[2,"app-modal",null]],null,null,Yf,Jf)),ki(1,1622016,null,1,$f,[],{popupStyle:[0,"popupStyle"],scaling:[1,"scaling"],isMobileView:[2,"isMobileView"],dialogTitle:[3,"dialogTitle"]},null),Gi(603979776,5,{buttons:1}),(t()(),Uo(3,0,null,0,1,"h1",[],null,null,null,null,null)),(t()(),es(4,null,["",""])),(t()(),Uo(5,0,null,0,3,"p",[],null,null,null,null,null)),(t()(),es(-1,null,[" Scenario completed. Click Home to return to the home page. "])),(t()(),Lo(16777216,null,null,1,null,_g)),ki(8,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(9,0,null,0,6,"div",[["class","buttons"]],null,null,null,null,null)),(t()(),Uo(10,0,null,null,3,"button",[["appModalButton",""],["class","button"],["tabindex","0"]],[[4,"color",null],[4,"background-color",null]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==gi(t,12).onClick()&&r),"click"===e&&(r=!1!==o.navigateHome()&&r),r},null,null)),ki(11,16384,[[5,4]],0,Zf,[vr],null,null),ki(12,16384,null,0,Pf,[Re,Me],null,null),(t()(),es(-1,null,["Home"])),(t()(),Lo(16777216,null,null,1,null,wg)),ki(15,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.demo.theme,n.scaling,n.isMobileView,"Scenario Completed"),t(e,8,0,n.canContinue),t(e,15,0,n.canContinue)},function(t,e){var n=e.component;t(e,0,0,gi(e,1).cssClass),t(e,4,0,n.title),t(e,10,0,gi(e,11).color,gi(e,11).backgroundColor)})}function Sg(t){return os(0,[(t()(),Uo(0,0,null,null,1,"app-beacon",[],null,[[null,"navigatePrevious"],[null,"navigateNext"],[null,"navigateBeacon"]],function(t,e,n){var r=!0,o=t.component;return"navigatePrevious"===e&&(r=!1!==o.returnPage()&&r),"navigateNext"===e&&(r=!1!==o.navigateDefault()&&r),"navigateBeacon"===e&&(r=!1!==o.navigatePage(t.parent.context.$implicit)&&r),r},md,yd)),ki(1,49152,null,0,gd,[],{beacon:[0,"beacon"],scaling:[1,"scaling"],screenRect:[2,"screenRect"],showAnnotations:[3,"showAnnotations"],showBeacons:[4,"showBeacons"],reducedMotion:[5,"reducedMotion"],isAnimating:[6,"isAnimating"],isMobileView:[7,"isMobileView"],showNavLinks:[8,"showNavLinks"],pageNumber:[9,"pageNumber"],pageCount:[10,"pageCount"],canGoPrevious:[11,"canGoPrevious"],canGoNext:[12,"canGoNext"]},{navigateNext:"navigateNext",navigatePrevious:"navigatePrevious",navigateBeacon:"navigateBeacon"})],function(t,e){var n=e.component;t(e,1,1,[e.parent.context.$implicit,n.scaling,n.screenRect,n.showAnnotations,n.showBeacons,n.reducedMotion,n.isAnimating,n.isMobileView,e.parent.context.$implicit.popupStyle.useNavButtons,n.screenIdx,n.screenCount,!(0===n.sectionIdx&&0===n.screenIdx),!(n.sectionIdx===n.demo.sections.length-1&&n.screenIdx===n.demo.sections[n.sectionIdx].screens.length-1)])},null)}function Eg(t){return os(0,[(t()(),Lo(16777216,null,null,1,null,Sg)),ki(1,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(0,null,null,0))],function(t,e){t(e,1,0,!e.component.isPageTransitioning)},null)}function xg(t){return os(0,[(t()(),Lo(16777216,null,null,1,null,Eg)),ki(1,278528,null,0,wu,[mr,Ue,Dr],{ngForOf:[0,"ngForOf"]},null),(t()(),Lo(0,null,null,0))],function(t,e){t(e,1,0,e.component.screen.beacons)},null)}function Tg(t){return os(0,[(t()(),Uo(0,0,null,null,7,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(1,0,null,null,6,"a",[],[[2,"selected",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==gi(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),"click"===e&&(r=!1!==gi(t,4).onClick()&&r),r},null,null)),ki(2,671744,null,0,rp,[np,$c,su],{routerLink:[0,"routerLink"]},null),Yi(3,3),ki(4,16384,null,0,Pf,[Re,Me],null,null),(t()(),Uo(5,0,null,null,0,"img",[["aria-hidden","true"]],[[8,"src",4]],null,null,null,null)),(t()(),Uo(6,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),es(7,null,["",""]))],function(t,e){var n=t(e,3,0,"",e.context.index,0);t(e,2,0,n)},function(t,e){t(e,1,0,e.context.index===e.component.sectionIdx,gi(e,2).target,gi(e,2).href),t(e,5,0,jo(1,"./assets/images/",e.context.$implicit.screens[0].images[0].path,"")),t(e,7,0,e.context.$implicit.title)})}function Pg(t){return os(0,[(t()(),Uo(0,0,null,null,10,"app-modal",[],[[2,"app-modal",null]],null,null,Yf,Jf)),ki(1,1622016,null,1,$f,[],{popupStyle:[0,"popupStyle"],scaling:[1,"scaling"],isMobileView:[2,"isMobileView"],dialogTitle:[3,"dialogTitle"]},null),Gi(603979776,6,{buttons:1}),(t()(),Uo(3,0,null,0,1,"h1",[],null,null,null,null,null)),(t()(),es(4,null,["",""])),(t()(),Uo(5,0,null,0,1,"h2",[],null,null,null,null,null)),(t()(),es(-1,null,["Table of Contents"])),(t()(),Uo(7,0,null,0,3,"div",[["class","tocContainer"],["role","doc-toc"]],null,null,null,null,null)),(t()(),Uo(8,0,null,null,2,"ol",[["class","toc"],["role","list"]],null,null,null,null,null)),(t()(),Lo(16777216,null,null,1,null,Tg)),ki(10,278528,null,0,wu,[mr,Ue,Dr],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.demo.theme,n.scaling,n.isMobileView,"Table of Contents"),t(e,10,0,n.demo.sections)},function(t,e){var n=e.component;t(e,0,0,gi(e,1).cssClass),t(e,4,0,n.demo.title)})}function kg(t){return os(0,[(t()(),Uo(0,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["A"])),(t()(),es(-1,null,[" - Toggle text annotations"]))],null,null)}function Og(t){return os(0,[(t()(),Uo(0,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["B"])),(t()(),es(-1,null,[" - Toggle click beacons"]))],null,null)}function Ig(t){return os(0,[(t()(),Uo(0,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["M"])),(t()(),es(-1,null,[" - Toggle click beacon animations"]))],null,null)}function Ag(t){return os(0,[(t()(),Uo(0,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["T"])),(t()(),es(-1,null,[" - Show Table of Contents"]))],null,null)}function Ng(t){return os(0,[(t()(),Uo(0,0,null,null,34,"app-modal",[],[[2,"app-modal",null]],null,null,Yf,Jf)),ki(1,1622016,null,1,$f,[],{popupStyle:[0,"popupStyle"],scaling:[1,"scaling"],isMobileView:[2,"isMobileView"],dialogTitle:[3,"dialogTitle"]},null),Gi(603979776,7,{buttons:1}),(t()(),Uo(3,0,null,0,1,"h1",[],null,null,null,null,null)),(t()(),es(-1,null,["Help"])),(t()(),Uo(5,0,null,0,1,"h2",[],null,null,null,null,null)),(t()(),es(-1,null,["Keyboard Shortcuts:"])),(t()(),Uo(7,0,null,0,0,"input",[["id","useControlKeyCheck"],["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(t,e,n){var r=!0,o=t.component;return"change"===e&&(r=0!=(o.windowRef.useAltKeyShortcuts=!o.windowRef.useAltKeyShortcuts)&&r),r},null,null)),(t()(),Uo(8,0,null,0,1,"label",[["for","useControlKeyCheck"]],null,null,null,null,null)),(t()(),es(-1,null,["Use the Alt Key to access shortcuts"])),(t()(),Uo(10,0,null,0,24,"ul",[["role","list"]],null,null,null,null,null)),(t()(),Uo(11,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(12,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["Left Arrow"])),(t()(),es(-1,null,[" - Previous screen"])),(t()(),Uo(15,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(16,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["Right Arrow"])),(t()(),es(-1,null,[" - Next screen"])),(t()(),Lo(16777216,null,null,1,null,kg)),ki(20,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Og)),ki(22,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Ig)),ki(24,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Ag)),ki(26,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(27,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(28,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["H"])),(t()(),es(-1,null,[" - Show this Help dialog"])),(t()(),Uo(31,0,null,null,3,"li",[["role","listitem"]],null,null,null,null,null)),(t()(),Uo(32,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),es(-1,null,["ESC"])),(t()(),es(-1,null,[" - Close popup dialogs"]))],function(t,e){var n=e.component;t(e,1,0,n.demo.theme,n.scaling,n.isMobileView,"Help"),t(e,20,0,n.demo.allowBeaconToggles),t(e,22,0,n.demo.allowBeaconToggles),t(e,24,0,n.demo.showBeacons||n.demo.allowBeaconToggles),t(e,26,0,n.demo.allowToc)},function(t,e){var n=e.component;t(e,0,0,gi(e,1).cssClass),t(e,7,0,n.windowRef.useAltKeyShortcuts)})}function Rg(t){return os(0,[Oi(0,kf,[Il]),Gi(671088640,1,{imageSet:0}),Gi(671088640,2,{imgNextSet:0}),Gi(402653184,3,{imgTransition:0}),(t()(),Uo(4,0,null,null,25,"main",[["class","screenBackground"]],null,null,null,null,null)),(t()(),Uo(5,0,null,null,24,"div",[["class","screen-container"]],null,null,null,null,null)),ki(6,278528,null,0,Tu,[Vr,Re,je],{ngStyle:[0,"ngStyle"]},null),(t()(),Uo(7,0,null,null,1,"app-image-buffer",[],null,null,null,Sd,wd)),ki(8,4833280,null,0,_d,[Af,bd],{demo:[0,"demo"],sectionIndex:[1,"sectionIndex"],screenIndex:[2,"screenIndex"],canBuffer:[3,"canBuffer"]},null),(t()(),Lo(16777216,null,null,1,null,mg)),ki(10,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,vg)),ki(12,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Uo(13,0,null,null,1,"app-image-page-transition",[],null,null,null,Td,xd)),ki(14,49152,[[3,4],["imgTransition",4]],0,Ed,[],{pageTransition:[0,"pageTransition"],pageTransitionLength:[1,"pageTransitionLength"],pageTransitionSlideDirection:[2,"pageTransitionSlideDirection"],screenStyle:[3,"screenStyle"],nextScreenImages:[4,"nextScreenImages"]},null),(t()(),Uo(15,0,null,null,4,"div",[["class","screenReaderText"],["id","screenDescription"],["tabindex","0"]],null,null,null,null,null)),(t()(),Uo(16,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),es(17,null,["",", Screen ",""])),(t()(),Uo(18,0,null,null,1,"div",[],[[8,"innerHTML",1]],null,null,null,null)),Ji(19,1),(t()(),Lo(16777216,null,null,1,null,bg)),ki(21,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Cg)),ki(23,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,xg)),ki(25,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Pg)),ki(27,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null),(t()(),Lo(16777216,null,null,1,null,Ng)),ki(29,16384,null,0,Su,[mr,Ue],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,6,0,n.screenStyle),t(e,8,0,n.demo,n.sectionIdx,n.screenIdx+2,n.canBuffer),t(e,10,0,n.nextScreen),t(e,12,0,n.screen),t(e,14,0,null==n.nextScreen?null:n.nextScreen.transitionType,null==n.nextScreen?null:n.nextScreen.transitionLength,null==n.nextScreen?null:n.nextScreen.transitionSlideDirection,n.screenStyle,null==n.nextScreen?null:n.nextScreen.images),t(e,21,0,n.start),t(e,23,0,n.end),t(e,25,0,!n.start&&!n.end&&n.screen.beacons),t(e,27,0,n.showToc),t(e,29,0,n.showHelp)},function(t,e){var n=e.component;t(e,17,0,n.title,n.screenIdx+1);var r=so(e,18,0,t(e,19,0,gi(e,0),n.screen.description));t(e,18,0,r)})}function Mg(t){return os(0,[(t()(),Uo(0,0,null,null,1,"app-demo",[],null,[["window","keyup"]],function(t,e,n){var r=!0;return"window:keyup"===e&&(r=!1!==gi(t,1).keyEvent(n)&&r),r},Rg,yg)),ki(1,245760,null,0,gg,[$c,np,If,dg,Hl,Af,bd],null,null)],function(t,e){t(e,1,0)},null)}var Dg=oi("app-demo",gg,Mg,{},{},[]),Vg=lo({encapsulation:0,styles:[[""]],data:{}});function jg(t){return os(0,[(t()(),Uo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ki(1,212992,null,0,ap,[sp,mr,Ce,[8,null],vr],null,null)],function(t,e){t(e,1,0)},null)}function Fg(t){return os(0,[(t()(),Uo(0,0,null,null,1,"app-root",[],null,null,null,jg,Vg)),ki(1,49152,null,0,da,[],null,null)],null,null)}var Lg=oi("app-root",da,Fg,{},{},[]),Ug=function(){return function(){}}(),Bg=function(){return function(){}}(),Hg="*";function zg(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function qg(t){return{type:6,styles:t,offset:null}}function Gg(t){Promise.resolve(null).then(t)}var Qg=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;Gg(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Kg=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,o=0,i=this.players.length;0==i?Gg(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==i&&e._onFinish()}),t.onDestroy(function(){++r==i&&e._onDestroy()}),t.onStart(function(){++o==i&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Wg="!";function Zg(){return"undefined"!=typeof process}function $g(t){switch(t.length){case 0:return new Qg;case 1:return t[0];default:return new Kg(t)}}function Jg(t,e,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var s=[],a=[],u=-1,l=null;if(r.forEach(function(t){var n=t.offset,r=n==u,c=r&&l||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case Wg:a=o[n];break;case Hg:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}c[r]=a}),r||a.push(c),l=c,u=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function Yg(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&Xg(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&Xg(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&Xg(n,"destroy",t))})}}function Xg(t,e,n){var r=n.totalTime,o=ty(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(o._data=i),o}function ty(t,e,n,r,o,i,s){return void 0===o&&(o=""),void 0===i&&(i=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function ey(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function ny(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var ry=function(t,e){return!1},oy=function(t,e){return!1},iy=function(t,e,n){return[]},sy=Zg();if(sy||"undefined"!=typeof Element){if(ry=function(t,e){return t.contains(e)},sy||Element.prototype.matches)oy=function(t,e){return t.matches(e)};else{var ay=Element.prototype,uy=ay.matchesSelector||ay.mozMatchesSelector||ay.msMatchesSelector||ay.oMatchesSelector||ay.webkitMatchesSelector;uy&&(oy=function(t,e){return uy.apply(t,[e])})}iy=function(t,e,n){var r=[];if(n)r.push.apply(r,c(t.querySelectorAll(e)));else{var o=t.querySelector(e);o&&r.push(o)}return r}}var ly=null,cy=!1;function hy(t){ly||(ly=("undefined"!=typeof document?document.body:null)||{},cy=!!ly.style&&"WebkitAppearance"in ly.style);var e=!0;return ly.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in ly.style)&&cy&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ly.style),e}var py=oy,fy=ry,dy=iy;function gy(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var yy=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return hy(t)},t.prototype.matchesElement=function(t,e){return py(t,e)},t.prototype.containsElement=function(t,e){return fy(t,e)},t.prototype.query=function(t,e,n){return dy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,o,i,s){return void 0===i&&(i=[]),new Qg(n,r)},t}(),my=function(){function t(){}return t.NOOP=new yy,t}(),vy=1e3;function by(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:_y(parseFloat(e[1]),e[2])}function _y(t,e){switch(e){case"s":return t*vy;default:return t}}function wy(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,o=0,i="";if("string"==typeof t){var s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=_y(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(o=_y(Math.floor(parseFloat(a)),s[4]));var u=s[5];u&&(i=u)}else r=t;if(!n){var l=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:i}}(t,e,n)}function Cy(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Sy(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Cy(t,n);return n}function Ey(t,e,n){return n?e+":"+n+";":""}function xy(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],s=o[2],a=o[3];e.push(Hy(i,a)),"<"!=s[0]||i==Ly&&a==Ly||e.push(Hy(a,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wy(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return jy(n,t,e)}),options:Wy(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=jy(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:Wy(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Zy(wy(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Zy(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Zy((n=n||wy(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:qg({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=qg(a)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Hg?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(Ky(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],h=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),h=!1),i=c.startTime),h&&(l[r]={startTime:i,endTime:o}),e.options&&(s=e.errors,a=e.options.params||{},(u=Iy(t[r])).length&&u.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,u=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Ky(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Ky(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(o++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&o0?o==p?1:h*o:i[o],a=s*g;e.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:jy(this,ky(t.animation),e),options:Wy(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Wy(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Wy(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=l(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(zy,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),i=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+i:i,ey(e.collectedStyles,e.currentQuerySelector,{});var a=jy(this,ky(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Wy(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:wy(t.timings,e.errors,!0);return{type:12,animation:jy(this,ky(t.animation),e),timings:n,options:null}},t}(),Qy=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function Ky(t){return!Array.isArray(t)&&"object"==typeof t}function Wy(t){var e;return t?(t=Cy(t)).params&&(t.params=(e=t.params)?Cy(e):null):t={},t}function Zy(t,e,n){return{duration:t,delay:e,easing:n}}function $y(t,e,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var Jy=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,c(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Yy=new RegExp(":enter","g"),Xy=new RegExp(":leave","g");function tm(t,e,n,r,o,i,s,a,u,l){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new em).buildKeyframes(t,e,n,r,o,i,s,a,u,l)}var em=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,s,a,u,l){void 0===l&&(l=[]),u=u||new Jy;var c=new rm(t,e,u,r,o,l,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),jy(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[$y(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?by(n.duration):null,i=null!=n.delay?by(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),jy(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=nm);var s=by(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return jy(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?by(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);i&&a.delayNextStep(i),jy(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return wy(e.params?Ay(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?by(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=nm);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,o){e.currentQueryIndex=o;var a=e.createSubContext(t.options,r);i&&a.delayNextStep(i),r===e.element&&(u=a.currentTimeline),jy(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),s=i*(e.currentQueryTotal-1),a=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;jy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),nm={},rm=function(){function t(t,e,n,r,o,i,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new om(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=by(r.duration)),null!=r.delay&&(o.delay=by(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=Ay(i[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=nm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new im(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(Yy,"."+this._enterClassName)).replace(Xy,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,c(a))}return o||0!=s.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),om=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Hg,e._currentKeyframe[t]=Hg}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=Hg}):Sy(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=Ay(s[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:Hg),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=Sy(i,!0);Object.keys(a).forEach(function(t){var r=a[t];r==Wg?e.add(t):r==Hg&&n.add(t)}),r||(a.offset=s/t.duration),o.push(a)});var i=e.size?Ny(e.values()):[],s=n.size?Ny(n.values()):[];if(r){var a=o[0],u=Cy(a);a.offset=0,u.offset=1,o=[a,u]}return $y(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},t}(),im=function(t){function e(e,n,r,o,i,s,a){void 0===a&&(a=!1);var u=t.call(this,e,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return o(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,u=Sy(t[0],!1);u.offset=0,i.push(u);var l=Sy(t[0],!1);l.offset=sm(a),i.push(l);for(var c=t.length-1,h=1;h<=c;h++){var p=Sy(t[h],!1);p.offset=sm((n+p.offset*r)/s),i.push(p)}r=s,n=0,o="",t=i}return $y(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(om);function sm(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var am=function(){return function(){}}(),um=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.normalizePropertyName=function(t,e){return My(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(lm[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(am),lm=cm("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function cm(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function hm(t,e,n,r,o,i,s,a,u,l,c,h,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:p}}var pm={},fm=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,o){return t.some(function(t){return t(e,n,r,o)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,s,a,u,l,c){var h=[],p=this.ast.options&&this.ast.options.params||pm,f=this.buildStyles(n,a&&a.params||pm,h),d=u&&u.params||pm,g=this.buildStyles(r,d,h),y=new Set,m=new Map,v=new Map,b="void"===r,_={params:i({},p,d)},w=c?[]:tm(t,e,this.ast.animation,o,s,f,g,_,l,h),C=0;if(w.forEach(function(t){C=Math.max(t.duration+t.delay,C)}),h.length)return hm(e,this._triggerName,n,r,b,f,g,[],[],m,v,C,h);w.forEach(function(t){var n=t.element,r=ey(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=ey(v,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&y.add(n)});var S=Ny(y.values());return hm(e,this._triggerName,n,r,b,f,g,w,S,m,v,C)},t}(),dm=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Cy(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=Ay(i,r,e)),n[t]=i})}}),n},t}(),gm=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new dm(t.style,t.options&&t.options.params||{})}),ym(this.states,"true","1"),ym(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new fm(t,e,n.states))}),this.fallbackTransition=new fm(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(o){return o.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function ym(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var mm=new Jy,vm=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=qy(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=Jg(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[t],a=new Map;if(s?(o=tm(this._driver,e,s,"ng-enter","ng-leave",{},{},n,mm,i)).forEach(function(t){var e=ey(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,Hg)})});var u=$g(o.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=ty(e,"","","");return Yg(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),bm=[],_m={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cm="__ng_removed",Sm=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Cy(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Em=new Sm("void"),xm=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Rm(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=ey(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var u=ey(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Rm(t,"ng-trigger"),Rm(t,"ng-trigger-"+e),u[e]=Em),function(){i._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),i._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),s=new Pm(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Rm(t,"ng-trigger"),Rm(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],l=new Sm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[e]=l,u||(u=Em),"void"===l.value||u.value!==l.value){var c=ey(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=i.matchTransition(u.value,l.value,t,l.params),p=!1;if(!h){if(!r)return;h=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:p}),p||(Rm(t,"ng-animate-queued"),s.onStart(function(){Mm(t,"ng-animate-queued")})),s.onDone(function(){var e=o.players.indexOf(s);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(i,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rm(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Mm(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(km(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Cm]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,o){return km(e)?this._fetchNamespace(t).listen(e,n,r,o):function(){}},t.prototype._buildInstruction=function(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return $g(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Cm];if(n&&n.setForRemoval){if(t[Cm]=_m,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(function(t){var e=t.player,i=t.element;if(E.push(e),n.collectedEnterElements.length){var s=i[Cm];if(s&&s.setForMove)return void e.destroy()}var c=!f||!n.driver.containsElement(f,i),p=C.get(i),d=y.get(i),g=n._buildInstruction(t,r,d,p,c);if(g.errors&&g.errors.length)x.push(g);else{if(c)return e.onStart(function(){return Py(i,g.fromStyles)}),e.onDestroy(function(){return Ty(i,g.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return Py(i,g.fromStyles)}),e.onDestroy(function(){return Ty(i,g.toStyles)}),void o.push(e);g.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,g.timelines),a.push({instruction:g,player:e,element:i}),g.queriedElements.forEach(function(t){return ey(u,t,[]).push(e)}),g.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),g.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(x.length){var P=[];x.forEach(function(t){P.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return P.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(P)}var k=new Map,O=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){ey(k,e,[]).push(t),t.destroy()})});var I=v.filter(function(t){return Vm(t,l,h)}),A=new Map;Im(A,this.driver,_,h,Hg).forEach(function(t){Vm(t,l,h)&&I.push(t)});var N=new Map;g.forEach(function(t,e){Im(N,n.driver,new Set(t),l,Wg)}),I.forEach(function(t){var e=A.get(t),n=N.get(t);A.set(t,i({},e,n))});var R=[],M=[],D={};a.forEach(function(t){var e=t.element,i=t.player,a=t.instruction;if(r.has(e)){if(p.has(e))return i.onDestroy(function(){return Ty(e,a.toStyles)}),i.disabled=!0,i.overrideTotalTime(a.totalTime),void o.push(i);var u=D;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var h=O.get(l);if(h){u=h;break}c.push(l)}c.forEach(function(t){return O.set(t,u)})}var f=n._buildAnimation(i.namespaceId,a,k,s,N,A);if(i.setRealPlayer(f),u===D)R.push(i);else{var d=n.playersByElement.get(u);d&&d.length&&(i.parentPlayer=$g(d)),o.push(i)}}else Py(e,a.fromStyles),i.onDestroy(function(){return Ty(e,a.toStyles)}),M.push(i),p.has(e)&&o.push(i)}),M.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=$g(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var V=0;V0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Qg(t.duration,t.delay)},t}(),Pm=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Qg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Yg(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){ey(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function km(t){return t&&1===t.nodeType}function Om(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Im(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(Om(t))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[Cm]=wm,s.push(r))}),t.set(r,i)});var a=0;return n.forEach(function(t){return Om(t,i[a++])}),s}function Am(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var s=e.parentNode;return i=n.has(s)?s:r.has(s)?1:t(s),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var Nm="$$classes";function Rm(t,e){if(t.classList)t.classList.add(e);else{var n=t[Nm];n||(n=t[Nm]={}),n[e]=!0}}function Mm(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Nm];n&&delete n[e]}}function Dm(t,e,n){$g(n).onDone(function(){return t.processLeaveNode(e)})}function Vm(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var jm=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Tm(t,e,n),this._timelineEngine=new vm(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,s=this._triggerCache[i];if(!s){var a=[],u=qy(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new gm(t,e)}(r,u),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=l(ny(n),2);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=l(ny(n),2);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Fm="animation",Lm="animationend",Um=function(){function t(t,e,n,r,o,i,s){var a=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return a._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=Qm(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),qm(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=zm(n=Qm(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),Gm(t,"",n.join(","))))},t}();function Bm(t,e,n){Gm(t,"PlayState",n,Hm(t,e))}function Hm(t,e){var n=Qm(t,"");return n.indexOf(",")>0?zm(n.split(","),e):zm([n],e)}function zm(t,e){for(var n=0;n=0)return n;return-1}function qm(t,e,n){n?t.removeEventListener(Lm,e):t.addEventListener(Lm,e)}function Gm(t,e,n,r){var o=Fm+e;if(null!=r){var i=t.style[o];if(i.length){var s=i.split(",");s[r]=n,n=s.join(",")}}t.style[o]=n}function Qm(t,e){return t.style[Fm+e]}var Km="linear",Wm=function(){function t(t,e,n,r,o,i,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||Km,this.totalTime=r+o,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Um(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:Fy(t.element,r))})}this.currentSnapshot=e},t}(),Zm=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=gy(n),r}return o(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(Qg),$m=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return hy(t)},t.prototype.matchesElement=function(t,e){return py(t,e)},t.prototype.containsElement=function(t,e){return fy(t,e)},t.prototype.query=function(t,e,n){return dy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map(function(t){return gy(t)});var r="@keyframes "+e+" {\n",o="";n.forEach(function(t){o=" ";var e=parseFloat(t.offset);r+=""+o+100*e+"% {\n",o+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=o+"animation-timing-function: "+n+";\n"));default:return void(r+=""+o+e+": "+n+";\n")}}),r+=o+"}\n"}),r+="}\n";var i=document.createElement("style");return i.innerHTML=r,i},t.prototype.animate=function(t,e,n,r,o,i,s){void 0===i&&(i=[]),s&&this._notifyFaultyScrubber();var a=i.filter(function(t){return t instanceof Wm}),u={};Dy(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Vy(t,e,u));if(0==n)return new Zm(t,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var p=new Wm(t,e,c,n,r,o,l);return p.onDestroy(function(){var t;(t=h).parentNode.removeChild(t)}),p},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Jm=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Fy(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Ym=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Xm().toString()),this._cssKeyframesDriver=new $m}return t.prototype.validateStyleProperty=function(t){return hy(t)},t.prototype.matchesElement=function(t,e){return py(t,e)},t.prototype.containsElement=function(t,e){return fy(t,e)},t.prototype.query=function(t,e,n){return dy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,o,i,s){if(void 0===i&&(i=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,o,i);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(a.easing=o);var u={},l=i.filter(function(t){return t instanceof Jm});return Dy(n,r)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})}),e=Vy(t,e=e.map(function(t){return Sy(t,!1)}),u),new Jm(t,e,a)},t}();function Xm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var tv=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:he.None,styles:[],data:{animation:[]}}),r}return o(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?zg(t):t;return rv(this._renderer,null,e,"register",[n]),new ev(e,this._renderer)},e}(Ug),ev=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new nv(this._id,t,e||{},this._renderer)},e}(Bg),nv=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t