window.System&&"function"==typeof System.amdDefine&&(window.define=System.amdDefine),define("aurelia-templating",["exports","aurelia-logging","aurelia-metadata","aurelia-pal","aurelia-loader","aurelia-path","aurelia-dependency-injection","aurelia-binding","aurelia-task-queue"],function(e,t,n,i,r,o,s,a,u){"use strict";function l(e){return"-"+e.toLowerCase()}function c(e){return(e.charAt(0).toLowerCase()+e.slice(1)).replace(Qe,l)}function h(e){return!(e.auInterpolationTarget||/[^\t\n\r ]/.test(e.textContent))}function d(e){var t=function(e){n.metadata.define(n.metadata.resource,new $e,e)};return e?t(e):t}function p(e){throw new Error("BindingLanguage must implement "+e+"().")}function f(e,t,n,i){if(t){var r=e[t];if(r){if(r!==n)throw new Error("Attempted to register "+i+" when one with the same name already exists. Name: "+t+".")}else e[t]=n}}function v(e,t){if(/[A-Z]/.test(e)){var n=c(e);return Ie.getLogger("templating").warn("'"+e+"' is not a valid "+t+" name and has been converted to '"+n+"'. Upper-case letters are not allowed because the DOM is not case-sensitive."),n}return e}function m(e){if(void 0!==e.animatableElement)return e.animatableElement;for(var t=e.firstChild;t&&1!==t.nodeType;)t=t.nextSibling;return t&&1===t.nodeType?e.animatableElement=t.classList.contains("au-animate")?t:null:e.animatableElement=null}function g(e){if(e===i.DOM.Element)return this.element;if(e===bt){if(this.boundViewFactory)return this.boundViewFactory;var t=this.instruction.viewFactory,n=this.partReplacements;return n&&(t=n[t.part]||t),this.boundViewFactory=new bt(this,t,n),this.boundViewFactory}return e===mt?(void 0===this.viewSlot&&(this.viewSlot=new mt(this.element,this.instruction.anchorIsContainer),this.element.isContentProjectionSource=this.instruction.lifting,this.children.push(this.viewSlot)),this.viewSlot):e===Ge?this.elementEvents||(this.elementEvents=new Ge(this.element)):e===We?this.compositionTransaction||(this.compositionTransaction=this.parent.get(e)):e===ft?this.viewResources:e===Je?this.instruction:this.superGet(e)}function y(e,t,n,i,r,o){var s=e.createChild(),a=void 0,u=void 0;for(s.element=t,s.instruction=n,s.children=i,s.viewResources=o,s.partReplacements=r,a=n.providers,u=a.length;u--;)s._resolvers.set(a[u],yt);return s.superGet=s.get,s.get=g,s}function b(e){return this._element.hasAttribute(e)}function w(e){return this._element.getAttribute(e)}function x(e,t){this._element.setAttribute(e,t)}function C(e,t){var n=i.DOM.createComment("anchor");if(t){var r=e.firstChild;r&&"AU-CONTENT"===r.tagName&&(n.contentElement=r),n._element=e,n.hasAttribute=b,n.getAttribute=w,n.setAttribute=x}return i.DOM.replaceNode(n,e),n}function _(e,t,n,r,o,s,a,u,l){var c=n.behaviorInstructions,h=n.expressions,d=void 0,p=void 0,f=void 0,v=void 0,m=void 0;if(n.contentExpression)return o.push(n.contentExpression.createBinding(t.nextSibling)),t.nextSibling.auInterpolationTarget=!0,void t.parentNode.removeChild(t);if(n.shadowSlot){var g=i.DOM.createComment("slot"),b=void 0;return b=n.slotDestination?new ht(g,n.slotName,n.slotDestination,n.slotFallbackFactory):new dt(g,n.slotName,n.slotFallbackFactory),i.DOM.replaceNode(g,t),a[n.slotName]=b,void r.push(b)}if(c.length)for(n.anchorIsContainer||(t=C(t,n.elementInstruction)),e[n.injectorId]=d=y(e[n.parentInjectorId],t,n,s,u,l),p=0,f=c.length;p<f;++p)v=c[p],m=v.type.create(d,v,t,o),r.push(m);for(p=0,f=h.length;p<f;++p)o.push(h[p].createBinding(t))}function k(e,t){var n=e.split(";"),i=void 0,r=void 0,o=void 0,s=void 0,a=void 0;for(t=t||{},r=0;r<n.length;r++)o=n[r],i=o.indexOf(":"),s=o.substring(0,i).trim(),a=o.substring(i+1).trim(),t[s]=a;return t}function O(e){var t="";for(var n in e)t+=n+":"+e[n]+";";return t}function S(e,t,n,i,r,o){var s=n.behaviorInstructions,a=n.expressions,u=n.providers,l=n.values,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0;for(c=u.length;c--;)e._resolvers.set(u[c],yt);for(var v in l)if(f=t.getAttribute(v)){if("class"===v)t.setAttribute("class",f+" "+l[v]);else if("style"===v){var m=k(l[v]);k(f,m),t.setAttribute("style",O(m))}}else t.setAttribute(v,l[v]);if(s.length)for(c=0,h=s.length;c<h;++c)d=s[c],p=d.type.create(e,d,t,r),p.contentView&&o.push(p.contentView),i.push(p);for(c=0,h=a.length;c<h;++c)r.push(a[c].createBinding(t))}function E(){return++xt}function A(){return(++Ct).toString()}function M(e){var t=e.getAttribute("class"),n=A();return e.setAttribute("class",t?t+" au-target":"au-target"),e.setAttribute("au-target-id",n),n}function T(e,t,n,r,o){var s=i.DOM.createElement("au-shadow-slot");i.DOM.replaceNode(s,n);var a=M(s),u=Je.shadowSlot(o);if(u.slotName=n.getAttribute("name")||pt.defaultSlotKey,u.slotDestination=n.getAttribute("slot"),n.innerHTML.trim()){for(var l=i.DOM.createDocumentFragment(),c=void 0;c=n.firstChild;)l.appendChild(c);u.slotFallbackFactory=e.compile(l,t)}return r[a]=u,s}function R(e,t){return t instanceof r.TemplateRegistryEntry?Promise.resolve(t):e.loadTemplate(t)}function V(e,t){var i=e.__observers__;if(void 0===i){var r=Object.getPrototypeOf(e).constructor,o=n.metadata.get(n.metadata.resource,r);o.isInitialized||o.initialize(s.Container.instance||new s.Container,e.constructor),i=o.observerLocator.getOrCreateObserversLookup(e),o._ensurePropertiesDefined(e,i)}return i[t]}function P(){return++Bt}function B(){return!0}function L(){}function j(e,t){return function(i,r,o){var s="string"==typeof r?i.constructor:i,a=n.metadata.getOrCreateOwn(n.metadata.resource,Lt,s);"string"==typeof e&&(e={selector:e,name:r}),o&&(o.writable=!0,o.configurable=!0),e.all=t,a.addChildBinding(new jt(e))}}function N(e){return j(e,!0)}function F(e){return j(e,!1)}function I(e,t,n){var i=e.get(t);i||(i=[],e.set(t,i)),i.push(n)}function D(e,t){for(var n=t.binders,i=n.length,r=new Map,o=0,s=e.length;o<s;++o){for(var a=e[o],u=a.addedNodes,l=a.removedNodes,c=0,h=l.length;c<h;++c){var d=l[c];if(1===d.nodeType)for(var p=0;p<i;++p){var f=n[p];f.onRemove(d)&&I(r,f,a)}}for(var v=0,m=u.length;v<m;++v){var g=u[v];if(1===g.nodeType)for(var y=0;y<i;++y){var b=n[y];b.onAdd(g)&&I(r,b,a)}}}r.forEach(function(e,t){null!==t.changeHandler&&t.viewModel[t.changeHandler](e)})}function q(e,t){return Array.isArray(t)?e.removeMany(t,!0):e.remove(t,!0)}function z(e){return e.skipActivation||"function"!=typeof e.viewModel.activate?Promise.resolve():e.viewModel.activate(e.model)||Promise.resolve()}function H(e){return function(t){"string"==typeof e||Object.getPrototypeOf(e)===Object.prototype?t.$resource=e:n.metadata.define(n.metadata.resource,e,t)}}function U(e){return function(t){if(e instanceof Lt)n.metadata.define(n.metadata.resource,e,t);else{var i=n.metadata.getOrCreateOwn(n.metadata.resource,Lt,t);Object.assign(i,e)}}}function W(e){return function(t){n.metadata.getOrCreateOwn(n.metadata.resource,Lt,t).elementName=v(e,"custom element")}}function Q(e,t,i){return function(r){var o=n.metadata.getOrCreateOwn(n.metadata.resource,Lt,r);o.attributeName=v(e,"custom attribute"),o.attributeDefaultBindingMode=t,o.aliases=i}}function $(e){var t=function(e){n.metadata.getOrCreateOwn(n.metadata.resource,Lt,e).liftsContent=!0};return e?t(e):t}function G(e,t,i){var r=function(t,i,r){var o=i?t.constructor:t,s=n.metadata.getOrCreateOwn(n.metadata.resource,Lt,o),a=void 0;return i&&(e=e||{},e.name=i),a=new Pt(e),a.registerWith(o,s,r)};if(!e)return r;if(t){var o=e;return e=null,r(o,t,i)}return r}function K(e){var t=function(e){n.metadata.getOrCreateOwn(n.metadata.resource,Lt,e).hasDynamicOptions=!0};return e?t(e):t}function X(e){var t="function"!=typeof e&&e?e:zt,i=function(e){var i=n.metadata.getOrCreateOwn(n.metadata.resource,Lt,e);i.targetShadowDOM=!0,i.shadowDOMOptions=t};return"function"==typeof e?i(e):i}function Y(e){return function(t){n.metadata.getOrCreateOwn(n.metadata.resource,Lt,t).processAttributes=function(t,n,i,r,o){try{e(t,n,i,r,o)}catch(e){Ie.getLogger("templating").error(e)}}}}function Z(){return!1}function J(e){return function(t){n.metadata.getOrCreateOwn(n.metadata.resource,Lt,t).processContent=e?function(t,n,i,r){try{return e(t,n,i,r)}catch(e){return Ie.getLogger("templating").error(e),!1}}:Z}}function ee(e){var t=function(e){n.metadata.getOrCreateOwn(n.metadata.resource,Lt,e).containerless=!0};return e?t(e):t}function te(e){return function(t){n.metadata.define(at.viewStrategyMetadataKey,e,t)}}function ne(e){return te(new tt(e))}function ie(e,t,n){return te(new ot(e,t,n))}function re(e,t){var i=void 0,r=void 0;"function"==typeof e?i=e:(r=e,i=void 0);var o=function(e){n.metadata.define(at.viewStrategyMetadataKey,new it(r,t),e)};return i?o(i):o}function oe(e){return function(t){t.$view=e}}function se(e){var t=function(e){n.metadata.define(n.metadata.resource,new qt,e)};return e?t(e):t}function ae(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){n.metadata.define(Tt.viewModelRequireMetadataKey,t,e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingEngine=e.ElementConfigResource=e.CompositionEngine=e.SwapStrategies=e.HtmlBehaviorResource=e.BindableProperty=e.BehaviorPropertyObserver=e.Controller=e.ViewEngine=e.ModuleAnalyzer=e.ResourceDescription=e.ResourceModule=e.ViewCompiler=e.ViewFactory=e.BoundViewFactory=e.ViewSlot=e.View=e.ViewResources=e.ShadowDOM=e.ShadowSlot=e.PassThroughSlot=e.SlotCustomAttribute=e.BindingLanguage=e.ViewLocator=e.StaticViewStrategy=e.InlineViewStrategy=e.TemplateRegistryViewStrategy=e.NoViewStrategy=e.ConventionalViewStrategy=e.RelativeViewStrategy=e.viewStrategy=e.TargetInstruction=e.BehaviorInstruction=e.ViewCompileInstruction=e.ResourceLoadContext=e.ElementEvents=e.ViewEngineHooksResource=e.CompositionTransaction=e.CompositionTransactionOwnershipToken=e.CompositionTransactionNotifier=e.Animator=e.animationEvent=void 0,e._hyphenate=c,e._isAllWhitespace=h,e.viewEngineHooks=d,e.validateBehaviorName=v,e.children=N,e.child=F,e.resource=H,e.behavior=U,e.customElement=W,e.customAttribute=Q,e.templateController=$,e.bindable=G,e.dynamicOptions=K,e.useShadowDOM=X,e.processAttributes=Y,e.processContent=J,e.containerless=ee,e.useViewStrategy=te,e.useView=ne,e.inlineView=ie,e.noView=re,e.view=oe,e.elementConfig=se,e.viewResources=ae;var ue,le,ce,he,de,pe,fe,ve,me,ge,ye,be,we,xe,Ce,_e,ke,Oe,Se,Ee,Ae,Me,Te,Re,Ve,Pe,Be,Le,je,Ne,Fe,Ie=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(t),De=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze=(e.animationEvent={enterBegin:"animation:enter:begin",enterActive:"animation:enter:active",enterDone:"animation:enter:done",enterTimeout:"animation:enter:timeout",leaveBegin:"animation:leave:begin",leaveActive:"animation:leave:active",leaveDone:"animation:leave:done",leaveTimeout:"animation:leave:timeout",staggerNext:"animation:stagger:next",removeClassBegin:"animation:remove-class:begin",removeClassActive:"animation:remove-class:active",removeClassDone:"animation:remove-class:done",removeClassTimeout:"animation:remove-class:timeout",addClassBegin:"animation:add-class:begin",addClassActive:"animation:add-class:active",addClassDone:"animation:add-class:done",addClassTimeout:"animation:add-class:timeout",animateBegin:"animation:animate:begin",animateActive:"animation:animate:active",animateDone:"animation:animate:done",animateTimeout:"animation:animate:timeout",sequenceBegin:"animation:sequence:begin",sequenceDone:"animation:sequence:done"},e.Animator=function(){function e(){}return e.prototype.enter=function(e){return Promise.resolve(!1)},e.prototype.leave=function(e){return Promise.resolve(!1)},e.prototype.removeClass=function(e,t){return e.classList.remove(t),Promise.resolve(!1)},e.prototype.addClass=function(e,t){return e.classList.add(t),Promise.resolve(!1)},e.prototype.animate=function(e,t){return Promise.resolve(!1)},e.prototype.runSequence=function(e){},e.prototype.registerEffect=function(e,t){},e.prototype.unregisterEffect=function(e){},e}()),He=e.CompositionTransactionNotifier=function(){function e(e){this.owner=e,this.owner._compositionCount++}return e.prototype.done=function(){this.owner._compositionCount--,this.owner._tryCompleteTransaction()},e}(),Ue=e.CompositionTransactionOwnershipToken=function(){function e(e){this.owner=e,this.owner._ownershipToken=this,this.thenable=this._createThenable()}return e.prototype.waitForCompositionComplete=function(){return this.owner._tryCompleteTransaction(),this.thenable},e.prototype.resolve=function(){this._resolveCallback()},e.prototype._createThenable=function(){var e=this;return new Promise(function(t,n){e._resolveCallback=t})},e}(),We=e.CompositionTransaction=function(){function e(){this._ownershipToken=null,this._compositionCount=0}return e.prototype.tryCapture=function(){return null===this._ownershipToken?new Ue(this):null},e.prototype.enlist=function(){return new He(this)},e.prototype._tryCompleteTransaction=function(){if(this._compositionCount<=0&&(this._compositionCount=0,null!==this._ownershipToken)){var e=this._ownershipToken;this._ownershipToken=null,e.resolve()}},e}(),Qe=/([A-Z])/g,$e=e.ViewEngineHooksResource=function(){function e(){}return e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerViewEngineHooks(this.instance)},e.prototype.load=function(e,t){},e.convention=function(t){if(t.endsWith("ViewEngineHooks"))return new e},e}(),Ge=e.ElementEvents=function(){function e(e){this.element=e,this.subscriptions={}}return e.prototype._enqueueHandler=function(e){this.subscriptions[e.eventName]=this.subscriptions[e.eventName]||[],this.subscriptions[e.eventName].push(e)},e.prototype._dequeueHandler=function(e){var t=void 0,n=this.subscriptions[e.eventName];return n&&(t=n.indexOf(e))>-1&&n.splice(t,1),e},e.prototype.publish=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=i.DOM.createCustomEvent(e,{cancelable:r,bubbles:n,detail:t});this.element.dispatchEvent(o)},e.prototype.subscribe=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("function"==typeof t){return new Ke(this,e,t,n,!1)}},e.prototype.subscribeOnce=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("function"==typeof t){return new Ke(this,e,t,n,!0)}},e.prototype.dispose=function(e){if(e&&"string"==typeof e){var t=this.subscriptions[e];if(t)for(;t.length;){var n=t.pop();n&&n.dispose()}}else this.disposeAll()},e.prototype.disposeAll=function(){for(var e in this.subscriptions)this.dispose(e)},e}(),Ke=function(){function e(e,t,n,i,r){this.owner=e,this.eventName=t,this.handler=n,this.capture="boolean"==typeof i?i:i.capture,this.bubbles=!this.capture,this.captureOrOptions=i,this.once=r,e.element.addEventListener(t,this,i),e._enqueueHandler(this)}return e.prototype.handleEvent=function(e){(0,this.handler)(e),this.once&&this.dispose()},e.prototype.dispose=function(){this.owner.element.removeEventListener(this.eventName,this,this.captureOrOptions),this.owner._dequeueHandler(this),this.owner=this.handler=null},e}(),Xe=e.ResourceLoadContext=function(){function e(){this.dependencies={}}return e.prototype.addDependency=function(e){this.dependencies[e]=!0},e.prototype.hasDependency=function(e){return e in this.dependencies},e}(),Ye=e.ViewCompileInstruction=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.targetShadowDOM=e,this.compileSurrogate=t,this.associatedModuleId=null};Ye.normal=new Ye;var Ze=e.BehaviorInstruction=function(){function e(){this.initiatedByBehavior=!1,this.enhance=!1,this.partReplacements=null,this.viewFactory=null,this.originalAttrName=null,this.skipContentProcessing=!1,this.contentFactory=null,this.viewModel=null,this.anchorIsContainer=!1,this.host=null,this.attributes=null,this.type=null,this.attrName=null,this.inheritBindingContext=!1}return e.enhance=function(){var t=new e;return t.enhance=!0,t},e.unitTest=function(t,n){var i=new e;return i.type=t,i.attributes=n||{},i},e.element=function(t,n){var i=new e;return i.type=n,i.attributes={},i.anchorIsContainer=!(t.hasAttribute("containerless")||n.containerless),i.initiatedByBehavior=!0,i},e.attribute=function(t,n){var i=new e;return i.attrName=t,i.type=n||null,i.attributes={},i},e.dynamic=function(t,n,i){var r=new e;return r.host=t,r.viewModel=n,r.viewFactory=i,r.inheritBindingContext=!0,r},e}();Ze.normal=new Ze;var Je=e.TargetInstruction=(le=ue=function(){function e(){this.injectorId=null,this.parentInjectorId=null,this.shadowSlot=!1,this.slotName=null,this.slotFallbackFactory=null,this.contentExpression=null,this.expressions=null,this.behaviorInstructions=null,this.providers=null,this.viewFactory=null,this.anchorIsContainer=!1,this.elementInstruction=null,this.lifting=!1,this.values=null}return e.shadowSlot=function(t){var n=new e;return n.parentInjectorId=t,n.shadowSlot=!0,n},e.contentExpression=function(t){var n=new e;return n.contentExpression=t,n},e.lifting=function(t,n){var i=new e;return i.parentInjectorId=t,i.expressions=e.noExpressions,i.behaviorInstructions=[n],i.viewFactory=n.viewFactory,i.providers=[n.type.target],i.lifting=!0,i},e.normal=function(t,n,i,r,o,s){var a=new e;return a.injectorId=t,a.parentInjectorId=n,a.providers=i,a.behaviorInstructions=r,a.expressions=o,a.anchorIsContainer=!s||s.anchorIsContainer,a.elementInstruction=s,a},e.surrogate=function(t,n,i,r){var o=new e;return o.expressions=i,o.behaviorInstructions=n,o.providers=t,o.values=r,o},e}(),ue.noExpressions=Object.freeze([]),le),et=e.viewStrategy=n.protocol.create("aurelia:view-strategy",{validate:function(e){return"function"==typeof e.loadViewFactory||"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise<ViewFactory>"},compose:function(e){"function"!=typeof e.makeRelativeTo&&(e.makeRelativeTo=i.PLATFORM.noop)}}),tt=e.RelativeViewStrategy=(ce=et())(he=function(){function e(e){this.path=e,this.absolutePath=null}return e.prototype.loadViewFactory=function(e,t,n,i){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=(0,o.relativeToFile)(this.path,this.moduleId)),t.associatedModuleId=this.moduleId,e.loadViewFactory(this.absolutePath||this.path,t,n,i)},e.prototype.makeRelativeTo=function(e){null===this.absolutePath&&(this.absolutePath=(0,o.relativeToFile)(this.path,e))},e}())||he,nt=e.ConventionalViewStrategy=(de=et())(pe=function(){function e(e,t){this.moduleId=t.moduleId,this.viewUrl=e.convertOriginToViewUrl(t)}return e.prototype.loadViewFactory=function(e,t,n,i){return t.associatedModuleId=this.moduleId,e.loadViewFactory(this.viewUrl,t,n,i)},e}())||pe,it=e.NoViewStrategy=(fe=et())(ve=function(){function e(e,t){this.dependencies=e||null,this.dependencyBaseUrl=t||""}return e.prototype.loadViewFactory=function(e,t,n,i){var o=this.entry,s=this.dependencies;if(o&&o.factoryIsReady)return Promise.resolve(null);if(this.entry=o=new r.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),o.dependencies=[],o.templateIsLoaded=!0,null!==s)for(var a=0,u=s.length;a<u;++a){var l=s[a];"string"==typeof l||"function"==typeof l?o.addDependency(l):o.addDependency(l.from,l.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(o,t,n,i)},e}())||ve,rt=e.TemplateRegistryViewStrategy=(me=et())(ge=function(){function e(e,t){this.moduleId=e,this.entry=t}return e.prototype.loadViewFactory=function(e,t,n,i){var r=this.entry;return r.factoryIsReady?Promise.resolve(r.factory):(t.associatedModuleId=this.moduleId,e.loadViewFactory(r,t,n,i))},e}())||ge,ot=e.InlineViewStrategy=(ye=et())(be=function(){function e(e,t,n){this.markup=e,this.dependencies=t||null,this.dependencyBaseUrl=n||""}return e.prototype.loadViewFactory=function(e,t,n,o){var s=this.entry,a=this.dependencies;if(s&&s.factoryIsReady)return Promise.resolve(s.factory);if(this.entry=s=new r.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),s.template=i.DOM.createTemplateFromMarkup(this.markup),null!==a)for(var u=0,l=a.length;u<l;++u){var c=a[u];"string"==typeof c||"function"==typeof c?s.addDependency(c):s.addDependency(c.from,c.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(s,t,n,o)},e}())||be,st=e.StaticViewStrategy=(we=et())(xe=function(){function e(e){("string"==typeof e||e instanceof i.DOM.Element&&"TEMPLATE"===e.tagName)&&(e={template:e}),this.template=e.template,this.dependencies=e.dependencies||[],this.factoryIsReady=!1,this.onReady=null,this.moduleId="undefined"}return e.prototype.loadViewFactory=function(e,t,n,i){var r=this;if(this.factoryIsReady)return Promise.resolve(this.factory);var o=this.dependencies;return o="function"==typeof o?o():o,o=o||[],o=Array.isArray(o)?o:[o],Promise.all(o).then(function(n){var o=e.container,s=e.appResources,a=e.viewCompiler,u=new ft(s),l=void 0,c=[];i&&u.autoRegister(o,i);for(var h=n,d=Array.isArray(h),p=0,h=d?h:h[Symbol.iterator]();;){var f;if(d){if(p>=h.length)break;f=h[p++]}else{if(p=h.next(),p.done)break;f=p.value}var v=f;if("function"==typeof v)l=u.autoRegister(o,v);else{if(!v||"object"!==(void 0===v?"undefined":qe(v)))throw new Error('dependency neither function nor object. Received: "'+(void 0===v?"undefined":qe(v))+'"');for(var m in v){var g=v[m];"function"==typeof g&&(l=u.autoRegister(o,g))}}null!==l.elementName&&c.push(l)}return Promise.all(c.map(function(e){return e.load(o,e.target)})).then(function(){var e=null!==r.template?a.compile(r.template,u,t):null;return r.factoryIsReady=!0,r.factory=e,e})})},e}())||xe,at=e.ViewLocator=(_e=Ce=function(){function e(){}return e.prototype.getViewStrategy=function(t){if(!t)return null;if("object"===(void 0===t?"undefined":qe(t))&&"getViewStrategy"in t){var i=n.Origin.get(t.constructor);return t=t.getViewStrategy(),"string"==typeof t&&(t=new tt(t)),et.assert(t),i.moduleId&&t.makeRelativeTo(i.moduleId),t}if("string"==typeof t&&(t=new tt(t)),et.validate(t))return t;if("function"!=typeof t&&(t=t.constructor),"$view"in t){var r=t.$view,o=void 0;return r="function"==typeof r?r.call(t):r,o=null===r?new it:r instanceof st?r:new st(r),n.metadata.define(e.viewStrategyMetadataKey,o,t),o}var s=n.Origin.get(t),a=n.metadata.get(e.viewStrategyMetadataKey,t);if(a)s.moduleId&&(a.moduleId=s.moduleId);else{if(!s.moduleId)throw new Error("Cannot determine default view strategy for object.",t);a=this.createFallbackViewStrategy(s)}return a},e.prototype.createFallbackViewStrategy=function(e){return new nt(this,e)},e.prototype.convertOriginToViewUrl=function(e){var t=e.moduleId;return(t.endsWith(".js")||t.endsWith(".ts")?t.substring(0,t.length-3):t)+".html"},e}(),Ce.viewStrategyMetadataKey="aurelia:view-strategy",_e),ut=e.BindingLanguage=function(){function e(){}return e.prototype.inspectAttribute=function(e,t,n,i){p("inspectAttribute")},e.prototype.createAttributeInstruction=function(e,t,n,i){p("createAttributeInstruction")},e.prototype.inspectTextContent=function(e,t){p("inspectTextContent")},e}(),lt=Object.freeze([]),ct=e.SlotCustomAttribute=function(){function e(e){this.element=e,this.element.auSlotAttribute=this}return e.inject=function(){return[i.DOM.Element]},e.prototype.valueChanged=function(e,t){},e}(),ht=e.PassThroughSlot=function(){function e(e,t,n,i){this.anchor=e,this.anchor.viewSlot=this,this.name=t,this.destinationName=n,this.fallbackFactory=i,this.destinationSlot=null,this.projections=0,this.contentView=null,new ct(this.anchor).value=this.destinationName}return e.prototype.renderFallbackContent=function(e,t,n,i){if(null===this.contentView){this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext);var r=Object.create(null);r[this.destinationSlot.name]=this.destinationSlot,pt.distributeView(this.contentView,r,n,i,this.destinationSlot.name)}},e.prototype.passThroughTo=function(e){this.destinationSlot=e},e.prototype.addNode=function(t,n,i,r){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),n.viewSlot instanceof e)return void n.viewSlot.passThroughTo(this);this.projections++,this.destinationSlot.addNode(t,n,i,r)},e.prototype.removeView=function(e,t){this.projections--,this.destinationSlot.removeView(e,t),this.needsFallbackRendering&&this.renderFallbackContent(null,lt,t)},e.prototype.removeAll=function(e){this.projections=0,this.destinationSlot.removeAll(e),this.needsFallbackRendering&&this.renderFallbackContent(null,lt,e)},e.prototype.projectFrom=function(e,t){this.destinationSlot.projectFrom(e,t)},e.prototype.created=function(e){this.ownerView=e},e.prototype.bind=function(e){this.contentView&&this.contentView.bind(e.bindingContext,e.overrideContext)},e.prototype.attached=function(){this.contentView&&this.contentView.attached()},e.prototype.detached=function(){this.contentView&&this.contentView.detached()},e.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},De(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),dt=e.ShadowSlot=function(){function e(e,t,n){this.anchor=e,this.anchor.isContentProjectionSource=!0,this.anchor.viewSlot=this,this.name=t,this.fallbackFactory=n,this.contentView=null,this.projections=0,this.children=[],this.projectFromAnchors=null,this.destinationSlots=null}return e.prototype.addNode=function(e,t,n,i,r){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),t.viewSlot instanceof ht)return void t.viewSlot.passThroughTo(this);if(null!==this.destinationSlots)pt.distributeNodes(e,[t],this.destinationSlots,this,i);else{t.auOwnerView=e,t.auProjectionSource=n,t.auAssignedSlot=this;var o=this._findAnchor(e,t,n,i);o.parentNode.insertBefore(t,o),this.children.push(t),this.projections++}},e.prototype.removeView=function(e,t){if(null!==this.destinationSlots)pt.undistributeView(e,this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)pt.undistributeView(e,this.contentView.slots,t);else{var n=this.children.find(function(e){return e.auSlotProjectFrom===t});if(n){for(var i=n.auProjectionChildren,r=0,o=i.length;r<o;++r){var s=i[r];s.auOwnerView===e&&(i.splice(r,1),e.fragment.appendChild(s),r--,o--,this.projections--)}this.needsFallbackRendering&&this.renderFallbackContent(e,lt,t)}}},e.prototype.removeAll=function(e){if(null!==this.destinationSlots)pt.undistributeAll(this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)pt.undistributeAll(this.contentView.slots,e);else{var t=this.children.find(function(t){return t.auSlotProjectFrom===e});if(t){for(var n=t.auProjectionChildren,i=0,r=n.length;i<r;++i){var o=n[i];o.auOwnerView.fragment.appendChild(o),this.projections--}t.auProjectionChildren=[],this.needsFallbackRendering&&this.renderFallbackContent(null,lt,e)}}},e.prototype._findAnchor=function(e,t,n,i){if(n){var r=this.children.find(function(e){return e.auSlotProjectFrom===n});if(r){if(void 0!==i)for(var o=r.auProjectionChildren,s=-1,a=void 0,u=0,l=o.length;u<l;++u){var c=o[u];if(c.auOwnerView!==a&&(s++,a=c.auOwnerView,s>=i&&a!==e))return o.splice(u,0,t),c}return r.auProjectionChildren.push(t),r}}return this.anchor},e.prototype.projectTo=function(e){this.destinationSlots=e},e.prototype.projectFrom=function(e,t){var n=i.DOM.createComment("anchor"),r=this.anchor.parentNode;n.auSlotProjectFrom=t,n.auOwnerView=e,n.auProjectionChildren=[],r.insertBefore(n,this.anchor),this.children.push(n),null===this.projectFromAnchors&&(this.projectFromAnchors=[]),this.projectFromAnchors.push(n)},e.prototype.renderFallbackContent=function(e,t,n,i){if(null===this.contentView&&(this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext),this.contentView.insertNodesBefore(this.anchor)),this.contentView.hasSlots){var r=this.contentView.slots,o=this.projectFromAnchors;if(null!==o)for(var s in r)for(var a=r[s],u=0,l=o.length;u<l;++u){var c=o[u];a.projectFrom(c.auOwnerView,c.auSlotProjectFrom)}this.fallbackSlots=r,pt.distributeNodes(e,t,r,n,i)}},e.prototype.created=function(e){this.ownerView=e},e.prototype.bind=function(e){this.contentView&&this.contentView.bind(e.bindingContext,e.overrideContext)},e.prototype.attached=function(){this.contentView&&this.contentView.attached()},e.prototype.detached=function(){this.contentView&&this.contentView.detached()},e.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},De(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),pt=e.ShadowDOM=(Oe=ke=function(){function e(){}return e.getSlotName=function(t){return void 0===t.auSlotAttribute?e.defaultSlotKey:t.auSlotAttribute.value},e.distributeView=function(t,n,i,r,o){var s=void 0;if(null===t)s=lt;else{var a=t.fragment.childNodes,u=a.length;s=new Array(u);for(var l=0;l<u;++l)s[l]=a[l]}e.distributeNodes(t,s,n,i,r,o)},e.undistributeView=function(e,t,n){for(var i in t)t[i].removeView(e,n)},e.undistributeAll=function(e,t){for(var n in e)e[n].removeAll(t)},e.distributeNodes=function(t,n,i,r,o,s){for(var a=0,u=n.length;a<u;++a){var l=n[a],c=l.nodeType;if(l.isContentProjectionSource){l.viewSlot.projectTo(i);for(var d in i)i[d].projectFrom(t,l.viewSlot);n.splice(a,1),u--,a--}else if(1===c||3===c||l.viewSlot instanceof ht)if(3===c&&h(l))n.splice(a,1),u--,a--;else{var p=i[s||e.getSlotName(l)];p&&(p.addNode(t,l,r,o),n.splice(a,1),u--,a--)}else n.splice(a,1),u--,a--}for(var f in i){var v=i[f];v.needsFallbackRendering&&v.renderFallbackContent(t,n,r,o)}},e}(),ke.defaultSlotKey="__au-default-slot-key__",Oe),ft=e.ViewResources=function(){function e(e,t){this.bindingLanguage=null,this.parent=e||null,this.hasParent=null!==this.parent,this.viewUrl=t||"",this.lookupFunctions={valueConverters:this.getValueConverter.bind(this),bindingBehaviors:this.getBindingBehavior.bind(this)},this.attributes=Object.create(null),this.elements=Object.create(null),this.valueConverters=Object.create(null),this.bindingBehaviors=Object.create(null),this.attributeMap=Object.create(null),this.values=Object.create(null),this.beforeCompile=this.afterCompile=this.beforeCreate=this.afterCreate=this.beforeBind=this.beforeUnbind=!1}return e.convention=function(e,t){var n=void 0;if(t&&"__au_resource__"in t)return t;if("$resource"in e){var i=e.$resource;if("string"==typeof i)n=t||new Lt,n.__au_resource__=!0,n.elementName||(n.elementName=v(i,"custom element"));else{"function"==typeof i&&(i=i.call(e)),"string"==typeof i&&(i={name:i}),i=Object.assign({},i);var r=i.type||"element",o=i.name;switch(r){case"element":case"attribute":n=t||new Lt,n.__au_resource__=!0,"element"===r?n.elementName||(n.elementName=o?v(o,"custom element"):c(e.name)):n.attributeName||(n.attributeName=o?v(o,"custom attribute"):c(e.name)),"templateController"in i&&(i.liftsContent=i.templateController,delete i.templateController),"defaultBindingMode"in i&&void 0!==n.attributeDefaultBindingMode&&(i.attributeDefaultBindingMode=i.defaultBindingMode,delete i.defaultBindingMode),delete i.name,Object.assign(n,i);break;case"valueConverter":n=new a.ValueConverterResource((0,a.camelCase)(o||e.name));break;case"bindingBehavior":n=new a.BindingBehaviorResource((0,a.camelCase)(o||e.name));break;case"viewEngineHooks":n=new $e}}if(n instanceof Lt){var s="string"==typeof i?void 0:i.bindables,u=n.properties;if(Array.isArray(s))for(var l=0,h=s.length;h>l;++l){var d=s[l]
;if(!d||"string"!=typeof d&&!d.name)throw new Error('Invalid bindable property at "'+l+'" for class "'+e.name+'". Expected either a string or an object with "name" property.');for(var p=new Pt(d),f=!1,m=0,g=u.length;g>m;++m)if(u[m].name===p.name){f=!0;break}f||p.registerWith(e,n)}}}return n},e.prototype._tryAddHook=function(e,t){if("function"==typeof e[t]){for(var n=e[t].bind(e),i=1,r=void 0;void 0!==this[r=t+i.toString()];)i++;this[t]=!0,this[r]=n}},e.prototype._invokeHook=function(e,t,n,i,r){if(this.hasParent&&this.parent._invokeHook(e,t,n,i,r),this[e]){this[e+"1"](t,n,i,r);var o=e+"2";if(this[o]&&(this[o](t,n,i,r),o=e+"3",this[o])){this[o](t,n,i,r);for(var s=4;void 0!==this[o=e+s.toString()];)this[o](t,n,i,r),s++}}},e.prototype.registerViewEngineHooks=function(e){this._tryAddHook(e,"beforeCompile"),this._tryAddHook(e,"afterCompile"),this._tryAddHook(e,"beforeCreate"),this._tryAddHook(e,"afterCreate"),this._tryAddHook(e,"beforeBind"),this._tryAddHook(e,"beforeUnbind")},e.prototype.getBindingLanguage=function(e){return this.bindingLanguage||(this.bindingLanguage=e)},e.prototype.patchInParent=function(e){var t=this.parent;this.parent=e||null,this.hasParent=null!==this.parent,null===e.parent&&(e.parent=t,e.hasParent=null!==t)},e.prototype.relativeToView=function(e){return(0,o.relativeToFile)(e,this.viewUrl)},e.prototype.registerElement=function(e,t){f(this.elements,e,t,"an Element")},e.prototype.getElement=function(e){return this.elements[e]||(this.hasParent?this.parent.getElement(e):null)},e.prototype.mapAttribute=function(e){return this.attributeMap[e]||(this.hasParent?this.parent.mapAttribute(e):null)},e.prototype.registerAttribute=function(e,t,n){this.attributeMap[e]=n,f(this.attributes,e,t,"an Attribute")},e.prototype.getAttribute=function(e){return this.attributes[e]||(this.hasParent?this.parent.getAttribute(e):null)},e.prototype.registerValueConverter=function(e,t){f(this.valueConverters,e,t,"a ValueConverter")},e.prototype.getValueConverter=function(e){return this.valueConverters[e]||(this.hasParent?this.parent.getValueConverter(e):null)},e.prototype.registerBindingBehavior=function(e,t){f(this.bindingBehaviors,e,t,"a BindingBehavior")},e.prototype.getBindingBehavior=function(e){return this.bindingBehaviors[e]||(this.hasParent?this.parent.getBindingBehavior(e):null)},e.prototype.registerValue=function(e,t){f(this.values,e,t,"a value")},e.prototype.getValue=function(e){return this.values[e]||(this.hasParent?this.parent.getValue(e):null)},e.prototype.autoRegister=function(t,i){var r=n.metadata.getOwn(n.metadata.resource,i);return r?r instanceof Lt&&(e.convention(i,r),null===r.attributeName&&null===r.elementName&&Lt.convention(i.name,r),null===r.attributeName&&null===r.elementName&&(r.elementName=c(i.name))):(r=e.convention(i)||Lt.convention(i.name)||a.ValueConverterResource.convention(i.name)||a.BindingBehaviorResource.convention(i.name)||$e.convention(i.name),r||(r=new Lt,r.elementName=c(i.name)),n.metadata.define(n.metadata.resource,r,i)),r.initialize(t,i),r.register(this),r},e}(),vt=e.View=function(){function e(e,t,n,i,r,o,s){this.container=e,this.viewFactory=t,this.resources=t.resources,this.fragment=n,this.firstChild=n.firstChild,this.lastChild=n.lastChild,this.controllers=i,this.bindings=r,this.children=o,this.slots=s,this.hasSlots=!1,this.fromCache=!1,this.isBound=!1,this.isAttached=!1,this.bindingContext=null,this.overrideContext=null,this.controller=null,this.viewModelScope=null,this.animatableElement=void 0,this._isUserControlled=!1,this.contentView=null;for(var a in s){this.hasSlots=!0;break}}return e.prototype.returnToCache=function(){this.viewFactory.returnViewToCache(this)},e.prototype.created=function(){var e=void 0,t=void 0,n=this.controllers;for(e=0,t=n.length;e<t;++e)n[e].created(this)},e.prototype.bind=function(e,t,n){var i=void 0,r=void 0,o=void 0,s=void 0,u=void 0;if(!n||!this._isUserControlled){if(this.isBound){if(this.bindingContext===e)return;this.unbind()}for(this.isBound=!0,this.bindingContext=e,this.overrideContext=t||(0,a.createOverrideContext)(e),this.resources._invokeHook("beforeBind",this),r=this.bindings,s=0,u=r.length;s<u;++s)r[s].bind(this);for(null!==this.viewModelScope&&(e.bind(this.viewModelScope.bindingContext,this.viewModelScope.overrideContext),this.viewModelScope=null),i=this.controllers,s=0,u=i.length;s<u;++s)i[s].bind(this);for(o=this.children,s=0,u=o.length;s<u;++s)o[s].bind(e,t,!0);this.hasSlots&&pt.distributeView(this.contentView,this.slots)}},e.prototype.addBinding=function(e){this.bindings.push(e),this.isBound&&e.bind(this)},e.prototype.unbind=function(){var e=void 0,t=void 0,n=void 0,i=void 0,r=void 0;if(this.isBound){for(this.isBound=!1,this.resources._invokeHook("beforeUnbind",this),null!==this.controller&&this.controller.unbind(),t=this.bindings,i=0,r=t.length;i<r;++i)t[i].unbind();for(e=this.controllers,i=0,r=e.length;i<r;++i)e[i].unbind();for(n=this.children,i=0,r=n.length;i<r;++i)n[i].unbind();this.bindingContext=null,this.overrideContext=null}},e.prototype.insertNodesBefore=function(e){e.parentNode.insertBefore(this.fragment,e)},e.prototype.appendNodesTo=function(e){e.appendChild(this.fragment)},e.prototype.removeNodes=function(){for(var e=this.fragment,t=this.firstChild,n=this.lastChild,i=void 0;t&&(i=t.nextSibling,e.appendChild(t),t!==n);)t=i},e.prototype.attached=function(){var e=void 0,t=void 0,n=void 0,i=void 0;if(!this.isAttached){for(this.isAttached=!0,null!==this.controller&&this.controller.attached(),e=this.controllers,n=0,i=e.length;n<i;++n)e[n].attached();for(t=this.children,n=0,i=t.length;n<i;++n)t[n].attached()}},e.prototype.detached=function(){var e=void 0,t=void 0,n=void 0,i=void 0;if(this.isAttached){for(this.isAttached=!1,null!==this.controller&&this.controller.detached(),e=this.controllers,n=0,i=e.length;n<i;++n)e[n].detached();for(t=this.children,n=0,i=t.length;n<i;++n)t[n].detached()}},e}(),mt=e.ViewSlot=function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ze.instance;this.anchor=e,this.anchorIsContainer=t,this.bindingContext=null,this.overrideContext=null,this.animator=n,this.children=[],this.isBound=!1,this.isAttached=!1,this.contentSelectors=null,e.viewSlot=this,e.isContentProjectionSource=!1}return e.prototype.animateView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enter",n=m(e);if(null!==n)switch(t){case"enter":return this.animator.enter(n);case"leave":return this.animator.leave(n);default:throw new Error("Invalid animation direction: "+t)}},e.prototype.transformChildNodesIntoView=function(){var e=this.anchor;this.children.push({fragment:e,firstChild:e.firstChild,lastChild:e.lastChild,returnToCache:function(){},removeNodes:function(){for(var t=void 0;t=e.lastChild;)e.removeChild(t)},created:function(){},bind:function(){},unbind:function(){},attached:function(){},detached:function(){}})},e.prototype.bind=function(e,t){var n=void 0,i=void 0,r=void 0;if(this.isBound){if(this.bindingContext===e)return;this.unbind()}for(this.isBound=!0,this.bindingContext=e=e||this.bindingContext,this.overrideContext=t=t||this.overrideContext,r=this.children,n=0,i=r.length;n<i;++n)r[n].bind(e,t,!0)},e.prototype.unbind=function(){if(this.isBound){var e=void 0,t=void 0,n=this.children;for(this.isBound=!1,this.bindingContext=null,this.overrideContext=null,e=0,t=n.length;e<t;++e)n[e].unbind()}},e.prototype.add=function(e){if(this.anchorIsContainer?e.appendNodesTo(this.anchor):e.insertNodesBefore(this.anchor),this.children.push(e),this.isAttached)return e.attached(),this.animateView(e,"enter")},e.prototype.insert=function(e,t){var n=this.children,i=n.length;return 0===e&&0===i||e>=i?this.add(t):(t.insertNodesBefore(n[e].firstChild),n.splice(e,0,t),this.isAttached?(t.attached(),this.animateView(t,"enter")):void 0)},e.prototype.move=function(e,t){if(e!==t){var n=this.children,i=n[e];i.removeNodes(),i.insertNodesBefore(n[t].firstChild),n.splice(e,1),n.splice(t,0,i)}},e.prototype.remove=function(e,t,n){return this.removeAt(this.children.indexOf(e),t,n)},e.prototype.removeMany=function(e,t,n){var i=this,r=this.children,o=e.length,s=void 0,a=[];e.forEach(function(e){if(n)return void e.removeNodes();var t=i.animateView(e,"leave");t?a.push(t.then(function(){return e.removeNodes()})):e.removeNodes()});var u=function(){if(i.isAttached)for(s=0;s<o;++s)e[s].detached();if(t)for(s=0;s<o;++s)e[s].returnToCache();for(s=0;s<o;++s){var n=r.indexOf(e[s]);n>=0&&r.splice(n,1)}};return a.length>0?Promise.all(a).then(function(){return u()}):u()},e.prototype.removeAt=function(e,t,n){var i=this,r=this.children[e],o=function(){return e=i.children.indexOf(r),r.removeNodes(),i.children.splice(e,1),i.isAttached&&r.detached(),t&&r.returnToCache(),r};if(!n){var s=this.animateView(r,"leave");if(s)return s.then(function(){return o()})}return o()},e.prototype.removeAll=function(e,t){var n=this,i=this.children,r=i.length,o=void 0,s=[];i.forEach(function(e){if(t)return void e.removeNodes();var i=n.animateView(e,"leave");i?s.push(i.then(function(){return e.removeNodes()})):e.removeNodes()});var a=function(){if(n.isAttached)for(o=0;o<r;++o)i[o].detached();if(e)for(o=0;o<r;++o){var t=i[o];t&&t.returnToCache()}n.children=[]};return s.length>0?Promise.all(s).then(function(){return a()}):a()},e.prototype.attached=function(){var e=void 0,t=void 0,n=void 0,i=void 0;if(!this.isAttached)for(this.isAttached=!0,n=this.children,e=0,t=n.length;e<t;++e)i=n[e],i.attached(),this.animateView(i,"enter")},e.prototype.detached=function(){var e=void 0,t=void 0,n=void 0;if(this.isAttached)for(this.isAttached=!1,n=this.children,e=0,t=n.length;e<t;++e)n[e].detached()},e.prototype.projectTo=function(e){var t=this;this.projectToSlots=e,this.add=this._projectionAdd,this.insert=this._projectionInsert,this.move=this._projectionMove,this.remove=this._projectionRemove,this.removeAt=this._projectionRemoveAt,this.removeMany=this._projectionRemoveMany,this.removeAll=this._projectionRemoveAll,this.children.forEach(function(n){return pt.distributeView(n,e,t)})},e.prototype._projectionAdd=function(e){pt.distributeView(e,this.projectToSlots,this),this.children.push(e),this.isAttached&&e.attached()},e.prototype._projectionInsert=function(e,t){0===e&&!this.children.length||e>=this.children.length?this.add(t):(pt.distributeView(t,this.projectToSlots,this,e),this.children.splice(e,0,t),this.isAttached&&t.attached())},e.prototype._projectionMove=function(e,t){if(e!==t){var n=this.children,i=n[e];pt.undistributeView(i,this.projectToSlots,this),pt.distributeView(i,this.projectToSlots,this,t),n.splice(e,1),n.splice(t,0,i)}},e.prototype._projectionRemove=function(e,t){pt.undistributeView(e,this.projectToSlots,this),this.children.splice(this.children.indexOf(e),1),this.isAttached&&e.detached(),t&&e.returnToCache()},e.prototype._projectionRemoveAt=function(e,t){var n=this.children[e];pt.undistributeView(n,this.projectToSlots,this),this.children.splice(e,1),this.isAttached&&n.detached(),t&&n.returnToCache()},e.prototype._projectionRemoveMany=function(e,t){var n=this;e.forEach(function(e){return n.remove(e,t)})},e.prototype._projectionRemoveAll=function(e){pt.undistributeAll(this.projectToSlots,this);for(var t=this.children,n=t.length,i=0;i<n;++i)e?t[i].returnToCache():this.isAttached&&t[i].detached();this.children=[]},e}(),gt=(0,s.resolver)(Se=function(){function e(){}return e.prototype.get=function(e,t){var n=t.__providerId__;return n in e?e[n]:e[n]=e.invoke(t)},e}())||Se,yt=new gt,bt=e.BoundViewFactory=function(){function e(e,t,n){this.parentContainer=e,this.viewFactory=t,this.factoryCreateInstruction={partReplacements:n}}return e.prototype.create=function(){var e=this.viewFactory.create(this.parentContainer.createChild(),this.factoryCreateInstruction);return e._isUserControlled=!0,e},e.prototype.setCacheSize=function(e,t){this.viewFactory.setCacheSize(e,t)},e.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},e.prototype.returnViewToCache=function(e){this.viewFactory.returnViewToCache(e)},De(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),wt=e.ViewFactory=function(){function e(e,t,n){this.isCaching=!1,this.template=e,this.instructions=t,this.resources=n,this.cacheSize=-1,this.cache=null}return e.prototype.setCacheSize=function(e,t){e&&("*"===e?e=Number.MAX_VALUE:"string"==typeof e&&(e=parseInt(e,10))),-1!==this.cacheSize&&t||(this.cacheSize=e),this.cacheSize>0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},e.prototype.getCachedView=function(){return null!==this.cache?this.cache.pop()||null:null},e.prototype.returnViewToCache=function(e){e.isAttached&&e.detached(),e.isBound&&e.unbind(),null!==this.cache&&this.cache.length<this.cacheSize&&(e.fromCache=!0,this.cache.push(e))},e.prototype.create=function(e,t,n){t=t||Ze.normal;var i=this.getCachedView();if(null!==i)return i;var r=t.enhance?this.template:this.template.cloneNode(!0),o=r.querySelectorAll(".au-target"),s=this.instructions,a=this.resources,u=[],l=[],c=[],h=Object.create(null),d={root:e},p=t.partReplacements,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0;for(this.resources._invokeHook("beforeCreate",this,e,r,t),n&&null!==this.surrogateInstruction&&S(e,n,this.surrogateInstruction,u,l,c),t.enhance&&r.hasAttribute("au-target-id")&&(g=r,y=s[g.getAttribute("au-target-id")],_(d,g,y,u,l,c,h,p,a)),f=0,v=o.length;f<v;++f)g=o[f],y=s[g.getAttribute("au-target-id")],_(d,g,y,u,l,c,h,p,a);return m=new vt(e,this,r,u,l,c,h),t.initiatedByBehavior||m.created(),this.resources._invokeHook("afterCreate",m),m},e}(),xt=0,Ct=0,_t=e.ViewCompiler=(Ee=(0,s.inject)(ut,ft))(Ae=function(){function e(e,t){this.bindingLanguage=e,this.resources=t}return e.prototype.compile=function(e,t,n){t=t||this.resources,n=n||Ye.normal,e="string"==typeof e?i.DOM.createTemplateFromMarkup(e):e;var r=void 0,o=void 0,s=void 0;e.content?(o=e.getAttribute("part"),s=e.getAttribute("view-cache"),r=i.DOM.adoptNode(e.content)):r=e,n.targetShadowDOM=n.targetShadowDOM&&i.FEATURE.shadowDOM,t._invokeHook("beforeCompile",r,t,n);var a={};this._compileNode(r,t,a,e,"root",!n.targetShadowDOM);var u=r.firstChild;if(u&&1===u.nodeType){var l=u.getAttribute("au-target-id");if(l){var c=a[l];(c.shadowSlot||c.lifting||c.elementInstruction&&!c.elementInstruction.anchorIsContainer)&&r.insertBefore(i.DOM.createComment("view"),u)}}var h=new wt(r,a,t);return h.surrogateInstruction=n.compileSurrogate?this._compileSurrogate(e,t):null,h.part=o,s&&h.setCacheSize(s),t._invokeHook("afterCompile",h),h},e.prototype._compileNode=function(e,t,n,r,o,s){switch(e.nodeType){case 1:return this._compileElement(e,t,n,r,o,s);case 3:var a=t.getBindingLanguage(this.bindingLanguage).inspectTextContent(t,e.wholeText);if(a){var u=i.DOM.createElement("au-marker"),l=M(u);for((e.parentNode||r).insertBefore(u,e),e.textContent=" ",n[l]=Je.contentExpression(a);e.nextSibling&&3===e.nextSibling.nodeType;)(e.parentNode||r).removeChild(e.nextSibling)}else for(;e.nextSibling&&3===e.nextSibling.nodeType;)e=e.nextSibling;return e.nextSibling;case 11:for(var c=e.firstChild;c;)c=this._compileNode(c,t,n,e,o,s)}return e.nextSibling},e.prototype._compileSurrogate=function(e,t){var n=e.tagName.toLowerCase(),i=e.attributes,r=t.getBindingLanguage(this.bindingLanguage),o=void 0,s=void 0,a=void 0,u=void 0,l=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,v=[],m=void 0,g=[],y={},b=!1,w=[];for(u=0,l=i.length;u<l;++u){if(c=i[u],h=c.name,d=c.value,p=r.inspectAttribute(t,n,h,d),(f=t.getAttribute(p.attrName))&&(o=t.mapAttribute(p.attrName))&&(s=f.attributes[o])&&(p.defaultBindingMode=s.defaultBindingMode,p.command||p.expression||(p.command=s.hasOptions?"options":null),p.command&&"options"!==p.command&&f.primaryProperty)){var x=f.primaryProperty;h=p.attrName=x.attribute,p.defaultBindingMode=x.defaultBindingMode}if(a=r.createAttributeInstruction(t,e,p,void 0,f))if(a.alteredAttr&&(f=t.getAttribute(a.attrName)),a.discrete)v.push(a);else if(f){if(a.type=f,this._configureProperties(a,t),f.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");g.push(a)}else v.push(a.attributes[a.attrName]);else if(f){if(a=Ze.attribute(h,f),a.attributes[t.mapAttribute(h)]=d,f.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");g.push(a)}else"id"!==h&&"part"!==h&&"replace-part"!==h&&(b=!0,y[h]=d)}if(v.length||g.length||b){for(u=0,l=g.length;u<l;++u)a=g[u],a.type.compile(this,t,e,a),w.push(a.type.target);for(u=0,l=v.length;u<l;++u)m=v[u],void 0!==m.attrToRemove&&e.removeAttribute(m.attrToRemove);return Je.surrogate(w,g,v,y)}return null},e.prototype._compileElement=function(e,t,n,i,r,o){var s=e.tagName.toLowerCase(),a=e.attributes,u=[],l=void 0,c=[],h=[],d=t.getBindingLanguage(this.bindingLanguage),p=void 0,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0,w=void 0,x=void 0,C=void 0,_=void 0,k=void 0,O=void 0,S=void 0,A=void 0,R=void 0,V=void 0;if("slot"===s)return o&&(e=T(this,t,e,n,r)),e.nextSibling;if("template"===s){if(!("content"in e))throw new Error("You cannot place a template element within "+e.namespaceURI+" namespace");f=this.compile(e,t),f.part=e.getAttribute("part")}else(v=t.getElement(e.getAttribute("as-element")||s))&&(m=Ze.element(e,v),v.processAttributes(this,t,e,a,m),c.push(m));for(y=0,b=a.length;y<b;++y){if(w=a[y],_=x=w.name,C=w.value,O=d.inspectAttribute(t,s,x,C),o&&"slot"===O.attrName&&(O.attrName=x="au-slot"),v=t.getAttribute(O.attrName),g=null,v){if((A=t.mapAttribute(O.attrName))&&(S=v.attributes[A])&&(O.defaultBindingMode=S.defaultBindingMode,O.command||O.expression||(O.command=S.hasOptions?"options":null),O.command&&"options"!==O.command&&v.primaryProperty)){var P=v.primaryProperty;x=O.attrName=P.attribute,O.defaultBindingMode=P.defaultBindingMode}}else m&&(g=m.type.attributes[O.attrName])&&(O.defaultBindingMode=g.defaultBindingMode);if(k=g?d.createAttributeInstruction(t,e,O,m):d.createAttributeInstruction(t,e,O,void 0,v))if(k.alteredAttr&&(v=t.getAttribute(k.attrName)),k.discrete)u.push(k);else if(v){if(k.type=v,this._configureProperties(k,t),v.liftsContent){k.originalAttrName=_,p=k;break}c.push(k)}else g?m.attributes[O.attrName].targetProperty=g.name:u.push(k.attributes[k.attrName]);else if(v){if(k=Ze.attribute(x,v),k.attributes[t.mapAttribute(x)]=C,v.liftsContent){k.originalAttrName=_,p=k;break}c.push(k)}else g&&(m.attributes[x]=C)}if(p)p.viewFactory=f,e=p.type.compile(this,t,e,p,i),R=M(e),n[R]=Je.lifting(r,p);else{var B=!1;if(u.length||c.length){for(V=!!c.length&&E(),y=0,b=c.length;y<b;++y)k=c[y],k.type.compile(this,t,e,k,i),h.push(k.type.target),B=B||k.skipContentProcessing;for(y=0,b=u.length;y<b;++y)l=u[y],void 0!==l.attrToRemove&&e.removeAttribute(l.attrToRemove);R=M(e),n[R]=Je.normal(V,r,h,c,u,m)}if(B)return e.nextSibling;for(var L=e.firstChild;L;)L=this._compileNode(L,t,n,e,V||r,o)}return e.nextSibling},e.prototype._configureProperties=function(e,t){var n=e.type,i=e.attrName,r=e.attributes,o=void 0,s=void 0,a=void 0,u=t.mapAttribute(i);u&&i in r&&u!==i&&(r[u]=r[i],delete r[i]);for(s in r)null!==(a=r[s])&&"object"===(void 0===a?"undefined":qe(a))&&(o=n.attributes[s],a.targetProperty=void 0!==o?o.name:s)},e}())||Ae,kt=e.ResourceModule=function(){function e(e){this.id=e,this.moduleInstance=null,this.mainResource=null,this.resources=null,this.viewStrategy=null,this.isInitialized=!1,this.onLoaded=null,this.loadContext=null}return e.prototype.initialize=function(e){var t=this.mainResource,n=this.resources,i=this.viewStrategy;if(!this.isInitialized){this.isInitialized=!0,void 0!==t&&(t.metadata.viewStrategy=i,t.initialize(e));for(var r=0,o=n.length;r<o;++r)t=n[r],t.metadata.viewStrategy=i,t.initialize(e)}},e.prototype.register=function(e,t){var n=this.mainResource,i=this.resources;void 0!==n&&(n.register(e,t),t=null);for(var r=0,o=i.length;r<o;++r)i[r].register(e,t),t=null},e.prototype.load=function(e,t){if(null!==this.onLoaded)return this.loadContext===t?Promise.resolve():this.onLoaded;var n=this.mainResource,i=this.resources,r=void 0;if(void 0!==n){r=new Array(i.length+1),r[0]=n.load(e,t);for(var o=0,s=i.length;o<s;++o)r[o+1]=i[o].load(e,t)}else{r=new Array(i.length);for(var a=0,u=i.length;a<u;++a)r[a]=i[a].load(e,t)}return this.loadContext=t,this.onLoaded=Promise.all(r),this.onLoaded},e}(),Ot=e.ResourceDescription=function(){function e(e,t,i){i||(i=n.metadata.get(n.metadata.resource,t))||(i=new Lt,i.elementName=c(e),n.metadata.define(n.metadata.resource,i,t)),i instanceof Lt?void 0===i.elementName?i.elementName=c(e):void 0===i.attributeName?i.attributeName=c(e):null===i.attributeName&&null===i.elementName&&Lt.convention(e,i):i.name||(i.name=c(e)),this.metadata=i,this.value=t}return e.prototype.initialize=function(e){this.metadata.initialize(e,this.value)},e.prototype.register=function(e,t){this.metadata.register(e,t)},e.prototype.load=function(e,t){return this.metadata.load(e,this.value,t)},e}(),St=e.ModuleAnalyzer=function(){function e(){this.cache=Object.create(null)}return e.prototype.getAnalysis=function(e){return this.cache[e]},e.prototype.analyze=function(e,t,i){var o=void 0,s=void 0,u=void 0,l=void 0,h=void 0,d=void 0,p=[],f=void 0,v=void 0,m=void 0;if(m=this.cache[e])return m;m=new kt(e),this.cache[e]=m,"function"==typeof t&&(t={default:t}),i&&(o=new Ot(i,t[i]));for(h in t)d=t[h],h!==i&&"function"==typeof d&&(l=n.metadata.get(n.metadata.resource,d),l?(l instanceof Lt&&(ft.convention(d,l),null===l.attributeName&&null===l.elementName&&Lt.convention(h,l),null===l.attributeName&&null===l.elementName&&(l.elementName=c(h))),!o&&l instanceof Lt&&null!==l.elementName?o=new Ot(h,d,l):p.push(new Ot(h,d,l))):et.decorates(d)?v=d:d instanceof r.TemplateRegistryEntry?v=new rt(e,d):(f=ft.convention(d))?(null===f.elementName||o?p.push(new Ot(h,d,f)):o=new Ot(h,d,f),n.metadata.define(n.metadata.resource,f,d)):(f=Lt.convention(h))?(null===f.elementName||o?p.push(new Ot(h,d,f)):o=new Ot(h,d,f),n.metadata.define(n.metadata.resource,f,d)):(f=a.ValueConverterResource.convention(h)||a.BindingBehaviorResource.convention(h)||$e.convention(h))?(p.push(new Ot(h,d,f)),n.metadata.define(n.metadata.resource,f,d)):s||(s=d,u=h));return!o&&s&&(o=new Ot(u,s)),m.moduleInstance=t,m.mainResource=o,m.resources=p,m.viewStrategy=v,m},e}(),Et=Ie.getLogger("templating"),At=function(){function e(e){var t=this;e.then(function(e){return t.viewFactory=e})}return e.prototype.create=function(e,t,n,i){return this.viewFactory.create(e,t,n,i)},e.prototype.setCacheSize=function(e,t){this.viewFactory.setCacheSize(e,t)},e.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},e.prototype.returnViewToCache=function(e){this.viewFactory.returnViewToCache(e)},De(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),Mt=null,Tt=e.ViewEngine=(Me=(0,s.inject)(r.Loader,s.Container,_t,St,ft))((Ve=Re=function(){function e(e,t,i,r,o){this.loader=e,this.container=t,this.viewCompiler=i,this.moduleAnalyzer=r,this.appResources=o,this._pluginMap={},null===Mt&&(Mt=new Lt,Mt.attributeName="au-slot",n.metadata.define(n.metadata.resource,Mt,ct)),Mt.initialize(t,ct),Mt.register(o)}return e.prototype.addResourcePlugin=function(e,t){var n=e.replace(".","")+"-resource-plugin";this._pluginMap[e]=n,this.loader.addPlugin(n,t)},e.prototype.loadViewFactory=function(e,t,n,i){var r=this;return n=n||new Xe,R(this.loader,e).then(function(e){var o=e.address;return e.onReady?n.hasDependency(o)?null===e.template?e.onReady:Promise.resolve(new At(e.onReady)):(n.addDependency(o),e.onReady):(n.addDependency(o),e.onReady=r.loadTemplateResources(e,t,n,i).then(function(n){if(e.resources=n,null===e.template)return e.factory=null;var i=r.viewCompiler.compile(e.template,n,t);return e.factory=i}),e.onReady)})},e.prototype.loadTemplateResources=function(t,i,r,s){var a=new ft(this.appResources,t.address),u=t.dependencies,l=void 0,c=void 0;if(i=i||Ye.normal,0===u.length&&!i.associatedModuleId)return Promise.resolve(a);if(l=u.map(function(e){return e.src}),c=u.map(function(e){return e.name}),Et.debug("importing resources for "+t.address,l),s){var h=n.metadata.get(e.viewModelRequireMetadataKey,s);if(h){for(var d=l.length,p=0,f=h.length;p<f;++p){var v=h[p],m="function"==typeof v?n.Origin.get(v).moduleId:(0,o.relativeToFile)(v.src||v,t.address);-1===l.indexOf(m)&&(l.push(m),c.push(v.as))}Et.debug("importing ViewModel resources for "+i.associatedModuleId,l.slice(d))}}return this.importViewResources(l,c,a,i,r)},e.prototype.importViewModelResource=function(e,t){var i=this;return this.loader.loadModule(e).then(function(r){var o=n.Origin.get(r).moduleId,s=i.moduleAnalyzer.analyze(o,r,t);if(!s.mainResource)throw new Error('No view model found in module "'+e+'".');return s.initialize(i.container),s.mainResource})},e.prototype.importViewResources=function(e,t,i,r,o){var s=this;return o=o||new Xe,r=r||Ye.normal,e=e.map(function(e){return s._applyLoaderPlugin(e)}),this.loader.loadAllModules(e).then(function(e){var a=void 0,u=void 0,l=void 0,c=void 0,h=void 0,d=void 0,p=s.container,f=s.moduleAnalyzer,v=new Array(e.length);for(a=0,u=e.length;a<u;++a)h=e[a],c=n.Origin.get(h).moduleId,l=f.analyze(c,h),l.initialize(p),l.register(i,t[a]),v[a]=l;for(r.associatedModuleId&&(d=f.getAnalysis(r.associatedModuleId))&&d.register(i),a=0,u=v.length;a<u;++a)v[a]=v[a].load(p,o);return Promise.all(v).then(function(){return i})})},e.prototype._applyLoaderPlugin=function(e){var t=e.lastIndexOf(".");if(-1!==t){var n=e.substring(t),i=this._pluginMap[n];return void 0===i?e:this.loader.applyPluginToUrl(e,i)}return e},e}(),Re.viewModelRequireMetadataKey="aurelia:view-model-require",Te=Ve))||Te,Rt=e.Controller=function(){function e(e,t,n,i){this.behavior=e,this.instruction=t,this.viewModel=n,this.isAttached=!1,this.view=null,this.isBound=!1,this.scope=null,this.container=i,this.elementEvents=i.elementEvents||null;var r=e.observerLocator.getOrCreateObserversLookup(n),o=e.handlesBind,s=t.attributes,a=this.boundProperties=[],u=e.properties,l=void 0,c=void 0;for(e._ensurePropertiesDefined(n,r),l=0,c=u.length;l<c;++l)u[l]._initialize(n,r,s,o,a)}return e.prototype.created=function(e){this.behavior.handlesCreated&&this.viewModel.created(e,this.view)},e.prototype.automate=function(e,t){this.view.bindingContext=this.viewModel,this.view.overrideContext=e||(0,a.createOverrideContext)(this.viewModel),this.view._isUserControlled=!0,this.behavior.handlesCreated&&this.viewModel.created(t||null,this.view),this.bind(this.view)},e.prototype.bind=function(e){var t=this.behavior.handlesBind,n=this.boundProperties,i=void 0,r=void 0,o=void 0,s=void 0,u=void 0;if(this.isBound){if(this.scope===e)return;this.unbind()}for(this.isBound=!0,this.scope=e,i=0,r=n.length;i<r;++i)o=n[i],s=o.observer,u=s.selfSubscriber,s.publishing=!1,t&&(s.selfSubscriber=null),o.binding.bind(e),s.call(),s.publishing=!0,s.selfSubscriber=u;var l=void 0;null!==this.view?(t&&(this.view.viewModelScope=e),this.viewModel===e.overrideContext.bindingContext?l=e.overrideContext:this.instruction.inheritBindingContext?l=(0,a.createOverrideContext)(this.viewModel,e.overrideContext):(l=(0,a.createOverrideContext)(this.viewModel),l.__parentOverrideContext=e.overrideContext),this.view.bind(this.viewModel,l)):t&&(l=e.overrideContext,void 0!==e.overrideContext.__parentOverrideContext&&this.viewModel.viewFactory&&this.viewModel.viewFactory.factoryCreateInstruction.partReplacements&&(l=Object.assign({},e.overrideContext),l.parentOverrideContext=e.overrideContext.__parentOverrideContext),this.viewModel.bind(e.bindingContext,l))},e.prototype.unbind=function(){if(this.isBound){var e=this.boundProperties,t=void 0,n=void 0;for(this.isBound=!1,this.scope=null,null!==this.view&&this.view.unbind(),this.behavior.handlesUnbind&&this.viewModel.unbind(),null!==this.elementEvents&&this.elementEvents.disposeAll(),t=0,n=e.length;t<n;++t)e[t].binding.unbind()}},e.prototype.attached=function(){this.isAttached||(this.isAttached=!0,this.behavior.handlesAttached&&this.viewModel.attached(),null!==this.view&&this.view.attached())},e.prototype.detached=function(){this.isAttached&&(this.isAttached=!1,null!==this.view&&this.view.detached(),this.behavior.handlesDetached&&this.viewModel.detached())},e}(),Vt=e.BehaviorPropertyObserver=(Pe=(0,a.subscriberCollection)())(Be=function(){function e(e,t,n,i,r){this.taskQueue=e,this.obj=t,this.propertyName=n,this.notqueued=!0,this.publishing=!1,this.selfSubscriber=i,this.currentValue=this.oldValue=r}return e.prototype.getValue=function(){return this.currentValue},e.prototype.setValue=function(e){var t=this.currentValue;Object.is(e,t)||(this.oldValue=t,this.currentValue=e,this.publishing&&this.notqueued&&(this.taskQueue.flushing?this.call():(this.notqueued=!1,this.taskQueue.queueMicroTask(this))))},e.prototype.call=function(){var e=this.oldValue,t=this.currentValue;this.notqueued=!0,Object.is(t,e)||(this.selfSubscriber&&this.selfSubscriber(t,e),this.callSubscribers(t,e),this.oldValue=t)},e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e}())||Be,Pt=e.BindableProperty=function(){function e(e){"string"==typeof e?this.name=e:Object.assign(this,e),this.attribute=this.attribute||c(this.name);var t=this.defaultBindingMode;null===t||void 0===t?this.defaultBindingMode=a.bindingMode.oneWay:"string"==typeof t&&(this.defaultBindingMode=a.bindingMode[t]||a.bindingMode.oneWay),this.changeHandler=this.changeHandler||null,this.owner=null,this.descriptor=null}return e.prototype.registerWith=function(e,t,n){if(t.properties.push(this),t.attributes[this.attribute]=this,this.owner=t,n)return this.descriptor=n,this._configureDescriptor(n)},e.prototype._configureDescriptor=function(e){var t=this.name;return e.configurable=!0,e.enumerable=!0,"initializer"in e&&(this.defaultValue=e.initializer,delete e.initializer,delete e.writable),"value"in e&&(this.defaultValue=e.value,delete e.value,delete e.writable),e.get=function(){return V(this,t).getValue()},e.set=function(e){V(this,t).setValue(e)},e.get.getObserver=function(e){return V(e,t)},e},e.prototype.defineOn=function(e,t){var n=this.name,i=void 0;null===this.changeHandler&&(i=n+"Changed")in e.prototype&&(this.changeHandler=i),null===this.descriptor&&Object.defineProperty(e.prototype,n,this._configureDescriptor(t,{}))},e.prototype.createObserver=function(e){var t=null,n=this.defaultValue,i=this.changeHandler,r=this.name,o=void 0;if(!this.hasOptions){if(i in e)t="propertyChanged"in e?function(t,n){e[i](t,n),e.propertyChanged(r,t,n)}:function(t,n){return e[i](t,n)};else if("propertyChanged"in e)t=function(t,n){return e.propertyChanged(r,t,n)};else if(null!==i)throw new Error("Change handler "+i+" was specified but not declared on the class.");return void 0!==n&&(o="function"==typeof n?n.call(e):n),new Vt(this.owner.taskQueue,e,this.name,t,o)}},e.prototype._initialize=function(e,t,n,i,r){var o=void 0,s=void 0,a=void 0,u=this.defaultValue;if(this.isDynamic)for(var l in n)this._createDynamicProperty(e,t,i,l,n[l],r);else this.hasOptions||(s=t[this.name],null!==n&&(o=s.selfSubscriber,a=n[this.attribute],i&&(s.selfSubscriber=null),"string"==typeof a?(e[this.name]=a,s.call()):a?r.push({observer:s,binding:a.createBinding(e)}):void 0!==u&&s.call(),s.selfSubscriber=o),s.publishing=!0)},e.prototype._createDynamicProperty=function(e,t,n,i,r,o){var s=i+"Changed",a=null,u=void 0,l=void 0;s in e?a="propertyChanged"in e?function(t,n){e[s](t,n),e.propertyChanged(i,t,n)}:function(t,n){return e[s](t,n)}:"propertyChanged"in e&&(a=function(t,n){return e.propertyChanged(i,t,n)}),u=t[i]=new Vt(this.owner.taskQueue,e,i,a),Object.defineProperty(e,i,{configurable:!0,enumerable:!0,get:u.getValue.bind(u),set:u.setValue.bind(u)}),n&&(u.selfSubscriber=null),"string"==typeof r?(e[i]=r,u.call()):r&&(l={observer:u,binding:r.createBinding(e)},o.push(l)),u.publishing=!0,u.selfSubscriber=a},e}(),Bt=0,Lt=e.HtmlBehaviorResource=function(){function e(){this.elementName=null,this.attributeName=null,this.attributeDefaultBindingMode=void 0,this.liftsContent=!1,this.targetShadowDOM=!1,this.shadowDOMOptions=null,this.processAttributes=L,
this.processContent=B,this.usesShadowDOM=!1,this.childBindings=null,this.hasDynamicOptions=!1,this.containerless=!1,this.properties=[],this.attributes={},this.isInitialized=!1,this.primaryProperty=null}return e.convention=function(t,n){var i=void 0;return t.endsWith("CustomAttribute")&&(i=n||new e,i.attributeName=c(t.substring(0,t.length-15))),t.endsWith("CustomElement")&&(i=n||new e,i.elementName=c(t.substring(0,t.length-13))),i},e.prototype.addChildBinding=function(e){null===this.childBindings&&(this.childBindings=[]),this.childBindings.push(e)},e.prototype.initialize=function(e,t){var n=t.prototype,r=this.properties,o=this.attributeName,s=this.attributeDefaultBindingMode,l=void 0,c=void 0,h=void 0;if(!this.isInitialized)if(this.isInitialized=!0,t.__providerId__=P(),this.observerLocator=e.get(a.ObserverLocator),this.taskQueue=e.get(u.TaskQueue),this.target=t,this.usesShadowDOM=this.targetShadowDOM&&i.FEATURE.shadowDOM,this.handlesCreated="created"in n,this.handlesBind="bind"in n,this.handlesUnbind="unbind"in n,this.handlesAttached="attached"in n,this.handlesDetached="detached"in n,this.htmlName=this.elementName||this.attributeName,null!==o)if(0===r.length&&new Pt({name:"value",changeHandler:"valueChanged"in n?"valueChanged":null,attribute:o,defaultBindingMode:s}).registerWith(t,this),h=r[0],1===r.length&&"value"===h.name)h.isDynamic=h.hasOptions=this.hasDynamicOptions,h.defineOn(t,this);else{for(l=0,c=r.length;l<c;++l)if(r[l].defineOn(t,this),r[l].primaryProperty){if(this.primaryProperty)throw new Error("Only one bindable property on a custom element can be defined as the default");this.primaryProperty=r[l]}h=new Pt({name:"value",changeHandler:"valueChanged"in n?"valueChanged":null,attribute:o,defaultBindingMode:s}),h.hasOptions=!0,h.registerWith(t,this)}else{for(l=0,c=r.length;l<c;++l)r[l].defineOn(t,this);this._copyInheritedProperties(e,t)}},e.prototype.register=function(e,t){var n=this;null!==this.attributeName&&(e.registerAttribute(t||this.attributeName,this,this.attributeName),Array.isArray(this.aliases)&&this.aliases.forEach(function(t){e.registerAttribute(t,n,n.attributeName)})),null!==this.elementName&&e.registerElement(t||this.elementName,this)},e.prototype.load=function(e,t,i,r,o){var s=this,a=void 0;return null!==this.elementName?(r=e.get(at).getViewStrategy(r||this.viewStrategy||t),a=new Ye(this.targetShadowDOM,!0),r.moduleId||(r.moduleId=n.Origin.get(t).moduleId),r.loadViewFactory(e.get(Tt),a,i,t).then(function(e){return o&&s.viewFactory||(s.viewFactory=e),e})):Promise.resolve(this)},e.prototype.compile=function(e,t,n,r,o){if(this.liftsContent){if(!r.viewFactory){var s=i.DOM.createElement("template"),a=i.DOM.createDocumentFragment(),u=n.getAttribute("view-cache"),l=n.getAttribute("part");n.removeAttribute(r.originalAttrName),i.DOM.replaceNode(s,n,o),a.appendChild(n),r.viewFactory=e.compile(a,t),l&&(r.viewFactory.part=l,n.removeAttribute("part")),u&&(r.viewFactory.setCacheSize(u),n.removeAttribute("view-cache")),n=s}}else if(null!==this.elementName){var c={};if(this.processContent(e,t,n,r)&&n.hasChildNodes()){for(var d=n.firstChild,p=this.usesShadowDOM?null:i.DOM.createElement("au-content"),f=void 0,v=void 0;d;)f=d.nextSibling,"TEMPLATE"===d.tagName&&(v=d.getAttribute("replace-part"))?(c[v]=e.compile(d,t),i.DOM.removeNode(d,o),r.partReplacements=c):null!==p&&(3===d.nodeType&&h(d)?i.DOM.removeNode(d,o):p.appendChild(d)),d=f;null!==p&&p.hasChildNodes()&&n.appendChild(p),r.skipContentProcessing=!1}else r.skipContentProcessing=!0}else this.processContent(e,t,n,r)||(r.skipContentProcessing=!0);return n},e.prototype.create=function(e,t,n,r){var o=void 0,s=null;t=t||Ze.normal,n=n||null,r=r||null,null!==this.elementName&&n&&(this.usesShadowDOM?(o=n.attachShadow(this.shadowDOMOptions),e.registerInstance(i.DOM.boundary,o)):(o=n,this.targetShadowDOM&&e.registerInstance(i.DOM.boundary,o))),null!==n&&(n.au=s=n.au||{});var a=t.viewModel||e.get(this.target),u=new Rt(this,t,a,e),l=this.childBindings,c=void 0;if(this.liftsContent)s.controller=u;else if(null!==this.elementName){if(c=t.viewFactory||this.viewFactory,e.viewModel=a,c&&(u.view=c.create(e,t,n)),null!==n){if(s.controller=u,u.view){if(!this.usesShadowDOM&&(1===n.childNodes.length||n.contentElement)){var h=n.childNodes[0]||n.contentElement;u.view.contentView={fragment:h},h.parentNode&&i.DOM.removeNode(h)}if(t.anchorIsContainer){if(null!==l)for(var d=0,p=l.length;d<p;++d)u.view.addBinding(l[d].create(n,a,u));u.view.appendNodesTo(o)}else u.view.insertNodesBefore(o)}else if(null!==l)for(var f=0,v=l.length;f<v;++f)r.push(l[f].create(n,a,u))}else if(u.view){if(u.view.controller=u,null!==l)for(var m=0,g=l.length;m<g;++m)u.view.addBinding(l[m].create(t.host,a,u))}else if(null!==l)for(var y=0,b=l.length;y<b;++y)r.push(l[y].create(t.host,a,u))}else if(null!==l)for(var w=0,x=l.length;w<x;++w)r.push(l[w].create(n,a,u));return null!==s&&(s[this.htmlName]=u),t.initiatedByBehavior&&c&&u.view.created(),u},e.prototype._ensurePropertiesDefined=function(e,t){var n=void 0,i=void 0,r=void 0,o=void 0;if(!("__propertiesDefined__"in t))for(t.__propertiesDefined__=!0,n=this.properties,i=0,r=n.length;i<r;++i)void 0!==(o=n[i].createObserver(e))&&(t[o.propertyName]=o)},e.prototype._copyInheritedProperties=function(e,t){for(var i=this,r=void 0,o=t;;){var s=Object.getPrototypeOf(t.prototype);if(!(t=s&&s.constructor))return;if(r=n.metadata.getOwn(n.metadata.resource,t))break}r.initialize(e,t);for(var a=0,u=r.properties.length;a<u;++a){(function(e,t){var n=r.properties[e];if(i.properties.some(function(e){return e.name===n.name}))return"continue";new Pt(n).registerWith(o,i)})(a)}},e}(),jt=function(){function e(e){this.name=e.name,this.changeHandler=e.changeHandler||this.name+"Changed",this.selector=e.selector,this.all=e.all}return e.prototype.create=function(e,t,n){return new Ft(this.selector,e,this.name,t,n,this.changeHandler,this.all)},e}(),Nt=[],Ft=function(){function e(e,t,n,i,r,o,s){this.selector=e,this.viewHost=t,this.property=n,this.viewModel=i,this.controller=r,this.changeHandler=o in i?o:null,this.usesShadowDOM=r.behavior.usesShadowDOM,this.all=s,!this.usesShadowDOM&&r.view&&r.view.contentView?this.contentView=r.view.contentView:this.contentView=null}return e.prototype.matches=function(e){if(e.matches(this.selector)){if(null===this.contentView)return!0;var t=this.contentView,n=e.auAssignedSlot;if(n&&n.projectFromAnchors){for(var i=n.projectFromAnchors,r=0,o=i.length;r<o;++r)if(i[r].auOwnerView===t)return!0;return!1}return e.auOwnerView===t}return!1},e.prototype.bind=function(e){var t=this.viewHost,n=this.viewModel,r=t.__childObserver__;if(!r){r=t.__childObserver__=i.DOM.createMutationObserver(D);var o={childList:!0,subtree:!this.usesShadowDOM};r.observe(t,o),r.binders=[]}if(r.binders.push(this),this.usesShadowDOM){var s=t.firstElementChild;if(this.all){var a=n[this.property];for(a?a.splice(0):a=n[this.property]=[];s;)this.matches(s)&&a.push(s.au&&s.au.controller?s.au.controller.viewModel:s),s=s.nextElementSibling;null!==this.changeHandler&&this.viewModel[this.changeHandler](Nt)}else for(;s;){if(this.matches(s)){var u=s.au&&s.au.controller?s.au.controller.viewModel:s;this.viewModel[this.property]=u,null!==this.changeHandler&&this.viewModel[this.changeHandler](u);break}s=s.nextElementSibling}}},e.prototype.onRemove=function(e){if(this.matches(e)){var t=e.au&&e.au.controller?e.au.controller.viewModel:e;if(this.all){var n=this.viewModel[this.property]||(this.viewModel[this.property]=[]),i=n.indexOf(t);return-1!==i&&n.splice(i,1),!0}return!1}return!1},e.prototype.onAdd=function(e){if(this.matches(e)){var t=e.au&&e.au.controller?e.au.controller.viewModel:e;if(this.all){var n=this.viewModel[this.property]||(this.viewModel[this.property]=[]);if("*"===this.selector)return n.push(t),!0;for(var i=0,r=e.previousElementSibling;r;)this.matches(r)&&i++,r=r.previousElementSibling;return n.splice(i,0,t),!0}this.viewModel[this.property]=t,null!==this.changeHandler&&this.viewModel[this.changeHandler](t)}return!1},e.prototype.unbind=function(){this.viewHost.__childObserver__&&(this.viewHost.__childObserver__.disconnect(),this.viewHost.__childObserver__=null,this.viewModel[this.property]=null)},e}(),It=e.SwapStrategies={before:function(e,t,n){return void 0===t?n():n().then(function(){return q(e,t)})},with:function(e,t,n){return void 0===t?n():Promise.all([q(e,t),n()])},after:function(e,t,n){return Promise.resolve(e.removeAll(!0)).then(n)}},Dt=e.CompositionEngine=(Le=(0,s.inject)(Tt,at))(je=function(){function e(e,t){this.viewEngine=e,this.viewLocator=t}return e.prototype._swap=function(e,t){var n=It[e.swapOrder]||It.after,i=e.viewSlot.children.slice();return n(e.viewSlot,i,function(){return Promise.resolve(e.viewSlot.add(t)).then(function(){e.currentController&&e.currentController.unbind()})}).then(function(){e.compositionTransactionNotifier&&e.compositionTransactionNotifier.done()})},e.prototype._createControllerAndSwap=function(e){var t=this;return this.createController(e).then(function(n){return e.compositionTransactionOwnershipToken?e.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function(){return n.automate(e.overrideContext,e.owningView),t._swap(e,n.view)}).then(function(){return n}):(n.automate(e.overrideContext,e.owningView),t._swap(e,n.view).then(function(){return n}))})},e.prototype.createController=function(e){var t=this,n=void 0,i=void 0,r=void 0,o=void 0;return this.ensureViewModel(e).then(z).then(function(){n=e.childContainer,i=e.viewModel,r=e.viewModelResource,o=r.metadata;var s=t.viewLocator.getViewStrategy(e.view||i);return e.viewResources&&s.makeRelativeTo(e.viewResources.viewUrl),o.load(n,r.value,null,s,!0)}).then(function(t){return o.create(n,Ze.dynamic(e.host,i,t))})},e.prototype.ensureViewModel=function(e){var t=e.childContainer=e.childContainer||e.container.createChild();if("string"==typeof e.viewModel)return e.viewModel=e.viewResources?e.viewResources.relativeToView(e.viewModel):e.viewModel,this.viewEngine.importViewModelResource(e.viewModel).then(function(n){return t.autoRegister(n.value),e.host&&t.registerInstance(i.DOM.Element,e.host),e.viewModel=t.viewModel=t.get(n.value),e.viewModelResource=n,e});var r=e.viewModel.constructor,o="function"==typeof e.viewModel;o&&(r=e.viewModel,t.autoRegister(r));var s=n.metadata.getOrCreateOwn(n.metadata.resource,Lt,r);return s.elementName=s.elementName||"dynamic-element",s.initialize(o?t:e.container||t,r),e.viewModelResource={metadata:s,value:r},e.host&&t.registerInstance(i.DOM.Element,e.host),t.viewModel=e.viewModel=o?t.get(r):e.viewModel,Promise.resolve(e)},e.prototype.compose=function(e){var t=this;e.childContainer=e.childContainer||e.container.createChild(),e.view=this.viewLocator.getViewStrategy(e.view);var n=e.childContainer.get(We),i=n.tryCapture();return i?e.compositionTransactionOwnershipToken=i:e.compositionTransactionNotifier=n.enlist(),e.viewModel?this._createControllerAndSwap(e):e.view?(e.viewResources&&e.view.makeRelativeTo(e.viewResources.viewUrl),e.view.loadViewFactory(this.viewEngine,new Ye).then(function(n){var i=n.create(e.childContainer);return i.bind(e.bindingContext,e.overrideContext),e.compositionTransactionOwnershipToken?e.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function(){return t._swap(e,i)}).then(function(){return i}):t._swap(e,i).then(function(){return i})})):e.viewSlot?(e.viewSlot.removeAll(),e.compositionTransactionNotifier&&e.compositionTransactionNotifier.done(),Promise.resolve(null)):Promise.resolve(null)},e}())||je,qt=e.ElementConfigResource=function(){function e(){}return e.prototype.initialize=function(e,t){},e.prototype.register=function(e,t){},e.prototype.load=function(e,t){var n=new t;e.get(a.EventManager).registerElementConfig(n)},e}(),zt={mode:"open"};e.TemplatingEngine=(Ne=(0,s.inject)(s.Container,St,_t,Dt))(Fe=function(){function e(e,t,n,i){this._container=e,this._moduleAnalyzer=t,this._viewCompiler=n,this._compositionEngine=i,e.registerInstance(ze,ze.instance=new ze)}return e.prototype.configureAnimator=function(e){this._container.unregister(ze),this._container.registerInstance(ze,ze.instance=e)},e.prototype.compose=function(e){return this._compositionEngine.compose(e)},e.prototype.enhance=function(e){e instanceof i.DOM.Element&&(e={element:e});var t={},n=e.resources||this._container.get(ft);this._viewCompiler._compileNode(e.element,n,t,e.element.parentNode,"root",!0);var r=new wt(e.element,t,n),o=e.container||this._container.createChild(),s=r.create(o,Ze.enhance());return s.bind(e.bindingContext||{},e.overrideContext),s.firstChild=s.lastChild=s.fragment,s.fragment=i.DOM.createDocumentFragment(),s.attached(),s},e}())||Fe}),define("aurelia-templating-resources/with",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-binding"],function(e,t,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.With=void 0;var r,o,s;e.With=(r=(0,n.customAttribute)("with"),o=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),r(s=(0,n.templateController)(s=o(s=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.parentOverrideContext=null,this.view=null}return e.prototype.bind=function(e,t){this.parentOverrideContext=t,this.valueChanged(this.value)},e.prototype.valueChanged=function(e){var t=(0,i.createOverrideContext)(e,this.parentOverrideContext);this.view?this.view.bind(e,t):(this.view=this.viewFactory.create(),this.view.bind(e,t),this.viewSlot.add(this.view))},e.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},e}())||s)||s)||s)}),define("aurelia-templating-resources/update-trigger-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpdateTriggerBindingBehavior=void 0;var n,i,r="The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.";e.UpdateTriggerBindingBehavior=(n=(0,t.bindingBehavior)("updateTrigger"))(i=function(){function e(){}return e.prototype.bind=function(e,n){for(var i=arguments.length,o=Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];if(0===o.length)throw new Error("The updateTrigger binding behavior requires at least one event name argument: eg <input value.bind=\"firstName & updateTrigger:'blur'\">");if(e.mode!==t.bindingMode.twoWay&&e.mode!==t.bindingMode.fromView)throw new Error(r);var a=e.observerLocator.getObserver(e.target,e.targetProperty);if(!a.handler)throw new Error(r);e.targetObserver=a,a.originalHandler=e.targetObserver.handler;var u=new t.EventSubscriber(o);a.handler=u},e.prototype.unbind=function(e,t){e.targetObserver.handler.dispose(),e.targetObserver.handler=e.targetObserver.originalHandler,e.targetObserver.originalHandler=null},e}())||i}),define("aurelia-templating-resources/throttle-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.throttleState,i=+new Date-n.last;if(i>=n.delay)return clearTimeout(n.timeoutId),n.timeoutId=null,n.last=+new Date,void this.throttledMethod(e);n.newValue=e,null===n.timeoutId&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.last=+new Date,t.throttledMethod(n.newValue)},n.delay-i))}Object.defineProperty(e,"__esModule",{value:!0}),e.ThrottleBindingBehavior=void 0;var i,r;e.ThrottleBindingBehavior=(i=(0,t.bindingBehavior)("throttle"))(r=function(){function e(){}return e.prototype.bind=function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o="updateTarget";e.callSource?o="callSource":e.updateSource&&e.mode===t.bindingMode.twoWay&&(o="updateSource"),e.throttledMethod=e[o],e.throttledMethod.originalName=o,e[o]=n,e.throttleState={delay:r,last:0,timeoutId:null}},e.prototype.unbind=function(e,t){e[e.throttledMethod.originalName]=e.throttledMethod,e.throttledMethod=null,clearTimeout(e.throttleState.timeoutId),e.throttleState=null},e}())||r}),define("aurelia-templating-resources/signal-binding-behavior",["exports","aurelia-binding","./binding-signaler"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignalBindingBehavior=void 0;var i,r;e.SignalBindingBehavior=(i=(0,t.bindingBehavior)("signal"))(r=function(){function e(e){this.signals=e.signals}return e.inject=function(){return[n.BindingSignaler]},e.prototype.bind=function(e,t){if(!e.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled.  Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var n=arguments[2];(this.signals[n]||(this.signals[n]=[])).push(e),e.signalName=n}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var i=Array.prototype.slice.call(arguments,2),r=i.length;r--;){var o=i[r];(this.signals[o]||(this.signals[o]=[])).push(e)}e.signalName=i}},e.prototype.unbind=function(e,t){var n=e.signalName;if(e.signalName=null,Array.isArray(n))for(var i=n,r=i.length;r--;){var o=i[r],s=this.signals[o];s.splice(s.indexOf(e),1)}else{var a=this.signals[n];a.splice(a.indexOf(e),1)}},e}())||r}),define("aurelia-templating-resources/show",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-pal","./aurelia-hide-style"],function(e,t,n,i,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Show=void 0;var o,s;e.Show=(o=(0,n.customAttribute)("show"))(s=function(){function e(e,t,n){this.element=e,this.animator=t,this.domBoundary=n}return e.inject=function(){return[i.DOM.Element,n.Animator,t.Optional.of(i.DOM.boundary,!0)]},e.prototype.created=function(){(0,r.injectAureliaHideStyleAtBoundary)(this.domBoundary)},e.prototype.valueChanged=function(e){e?this.animator.removeClass(this.element,r.aureliaHideClassName):this.animator.addClass(this.element,r.aureliaHideClassName)},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||s}),define("aurelia-templating-resources/set-repeat-strategy",["exports","./repeat-utilities"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetRepeatStrategy=void 0;e.SetRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getSetObserver(t)},e.prototype.instanceChanged=function(e,t){var n=this,i=e.removeAllViews(!0,!e.viewsRequireLifecycle);if(i instanceof Promise)return void i.then(function(){return n._standardProcessItems(e,t)});this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,n){var i=0,r=void 0;n.forEach(function(o){r=(0,t.createFullOverrideContext)(e,o,i,n.size),e.addView(r.bindingContext,r),++i})},e.prototype.instanceMutated=function(e,n,i){var r=void 0,o=void 0,s=void 0,a=void 0,u=void 0,l=void 0,c=[],h=void 0;for(o=0,s=i.length;o<s;++o)switch(l=i[o],r=l.value,l.type){case"add":var d=Math.max(n.size-1,0);a=(0,t.createFullOverrideContext)(e,r,d,n.size),e.insertView(d,a.bindingContext,a);break;case"delete":u=this._getViewIndexByValue(e,r),h=e.removeView(u,!0,!e.viewsRequireLifecycle),h instanceof Promise&&c.push(h);break;case"clear":e.removeAllViews(!0,!e.viewsRequireLifecycle);break;default:continue}c.length>0?Promise.all(c).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByValue=function(e,t){var n=void 0,i=void 0,r=void 0;for(n=0,i=e.viewCount();n<i;++n)if(r=e.view(n),r.bindingContext[e.local]===t)return n},e}()}),define("aurelia-templating-resources/self-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function i(e){var t=n(e);this.target===t&&this.selfEventCallSource(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.SelfBindingBehavior=void 0;var r,o;e.SelfBindingBehavior=(r=(0,t.bindingBehavior)("self"))(o=function(){function e(){}return e.prototype.bind=function(e,t){if(!e.callSource||!e.targetEvent)throw new Error("Self binding behavior only supports event.");e.selfEventCallSource=e.callSource,e.callSource=i},e.prototype.unbind=function(e,t){e.callSource=e.selfEventCallSource,e.selfEventCallSource=null},e}())||o}),define("aurelia-templating-resources/sanitize-html",["exports","aurelia-binding","aurelia-dependency-injection","./html-sanitizer"],function(e,t,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SanitizeHTMLValueConverter=void 0;var r,o,s;e.SanitizeHTMLValueConverter=(r=(0,t.valueConverter)("sanitizeHTML"),o=(0,n.inject)(i.HTMLSanitizer),r(s=o(s=function(){function e(e){this.sanitizer=e}return e.prototype.toView=function(e){return null===e||void 0===e?null:this.sanitizer.sanitize(e)},e}())||s)||s)}),define("aurelia-templating-resources/replaceable",["exports","aurelia-dependency-injection","aurelia-templating"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Replaceable=void 0;var i,r,o;e.Replaceable=(i=(0,n.customAttribute)("replaceable"),r=(0,t.inject)(n.BoundViewFactory,n.ViewSlot),i(o=(0,n.templateController)(o=r(o=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null}return e.prototype.bind=function(e,t){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(e,t)},e.prototype.unbind=function(){this.view.unbind()},e}())||o)||o)||o)}),define("aurelia-templating-resources/repeat",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","./repeat-strategy-locator","./repeat-utilities","./analyze-view-factory","./abstract-repeater"],function(e,t,n,i,r,o,s,a){"use strict";function u(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.Repeat=void 0;var d,p,f,v,m,g,y,b;e.Repeat=(d=(0,i.customAttribute)("repeat"),p=(0,t.inject)(i.BoundViewFactory,i.TargetInstruction,i.ViewSlot,i.ViewResources,n.ObserverLocator,r.RepeatStrategyLocator),d(f=(0,i.templateController)(f=p((v=function(e){function t(t,n,i,r,a,c){var h=l(this,e.call(this,{local:"item",viewsRequireLifecycle:(0,s.viewsRequireLifecycle)(t)}));return u(h,"items",m,h),u(h,"local",g,h),u(h,"key",y,h),u(h,"value",b,h),h.viewFactory=t,h.instruction=n,h.viewSlot=i,h.lookupFunctions=r.lookupFunctions,h.observerLocator=a,h.key="key",h.value="value",h.strategyLocator=c,h.ignoreMutation=!1,h.sourceExpression=(0,o.getItemsSourceExpression)(h.instruction,"repeat.for"),h.isOneTime=(0,o.isOneTime)(h.sourceExpression),h.viewsRequireLifecycle=(0,s.viewsRequireLifecycle)(t),h}return c(t,e),t.prototype.call=function(e,t){this[e](this.items,t)},t.prototype.bind=function(e,t){this.scope={bindingContext:e,overrideContext:t},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},t.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0,!0),this._unsubscribeCollection()},t.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},t.prototype.itemsChanged=function(){var e=this;if(this._unsubscribeCollection(),this.scope){var t=this.items;if(this.strategy=this.strategyLocator.getStrategy(t),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.ignoreMutation=!0,this.strategy.instanceChanged(this,t),this.observerLocator.taskQueue.queueMicroTask(function(){e.ignoreMutation=!1})}},t.prototype._getInnerCollection=function(){var e=(0,o.unwrapExpression)(this.sourceExpression);return e?e.evaluate(this.scope,null):null},t.prototype.handleCollectionMutated=function(e,t){this.collectionObserver&&(this.ignoreMutation||this.strategy.instanceMutated(this,e,t))},t.prototype.handleInnerCollectionMutated=function(e,t){var n=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var i=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return n.ignoreMutation=!1}),i===this.items?this.itemsChanged():this.items=i}},t.prototype._observeInnerCollection=function(){var e=this._getInnerCollection(),t=this.strategyLocator.getStrategy(e);return!!t&&(this.collectionObserver=t.getCollectionObserver(this.observerLocator,e),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},t.prototype._observeCollection=function(){var e=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,e),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},t.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var e=this.viewFactory.viewFactory.instructions,t=Object.keys(e),n=0;n<t.length;n++){var i=e[t[n]].expressions;if(i)for(;n<i.length;n++)if("matcher"===i[0].targetProperty){var r=i[0];return i.splice(0,1),r}}},t.prototype.viewCount=function(){return this.viewSlot.children.length},t.prototype.views=function(){return this.viewSlot.children},t.prototype.view=function(e){return this.viewSlot.children[e]},t.prototype.matcher=function(){return this.matcherBinding?this.matcherBinding.sourceExpression.evaluate(this.scope,this.matcherBinding.lookupFunctions):null},t.prototype.addView=function(e,t){var n=this.viewFactory.create();n.bind(e,t),this.viewSlot.add(n)},t.prototype.insertView=function(e,t,n){var i=this.viewFactory.create();i.bind(t,n),this.viewSlot.insert(e,i)},t.prototype.moveView=function(e,t){this.viewSlot.move(e,t)},t.prototype.removeAllViews=function(e,t){return this.viewSlot.removeAll(e,t)},t.prototype.removeViews=function(e,t,n){return this.viewSlot.removeMany(e,t,n)},t.prototype.removeView=function(e,t,n){return this.viewSlot.removeAt(e,t,n)},t.prototype.updateBindings=function(e){for(var t=e.bindings.length;t--;)(0,o.updateOneTimeBinding)(e.bindings[t]);for(t=e.controllers.length;t--;)for(var n=e.controllers[t].boundProperties.length;n--;){var i=e.controllers[t].boundProperties[n].binding;(0,o.updateOneTimeBinding)(i)}},t}(a.AbstractRepeater),m=h(v.prototype,"items",[i.bindable],{enumerable:!0,initializer:null}),g=h(v.prototype,"local",[i.bindable],{enumerable:!0,initializer:null}),y=h(v.prototype,"key",[i.bindable],{enumerable:!0,initializer:null}),b=h(v.prototype,"value",[i.bindable],{enumerable:!0,initializer:null}),f=v))||f)||f)||f)}),define("aurelia-templating-resources/repeat-utilities",["exports","aurelia-binding"],function(e,t){"use strict";function n(e,t){var n=e.length;for(t>0&&(t-=1);t<n;++t)r(e[t].overrideContext,t,n)}function i(e,n,i,o,s){var a={},u=(0,t.createOverrideContext)(a,e.scope.overrideContext);return void 0!==s?(a[e.key]=s,a[e.value]=n):a[e.local]=n,r(u,i,o),u}function r(e,t,n){var i=0===t,r=t===n-1,o=t%2==0;e.$index=t,e.$first=i,e.$last=r,e.$middle=!(i||r),e.$odd=!o,e.$even=o}function o(e,t){return e.behaviorInstructions.filter(function(e){return e.originalAttrName===t})[0].attributes.items.sourceExpression}function s(e){for(var n=!1;e instanceof t.BindingBehavior;)e=e.expression;for(;e instanceof t.ValueConverter;)e=e.expression,n=!0;return n?e:null}function a(e){for(;e instanceof t.BindingBehavior;){if("oneTime"===e.name)return!0;e=e.expression}return!1}function u(e){e.call&&e.mode===c?e.call(t.sourceContext):e.updateOneTimeBindings&&e.updateOneTimeBindings()}function l(e,t,n,i){if(!n)return e.indexOf(t);for(var r=e.length,o=i||0;o<r;o++)if(n(e[o],t))return o;return-1}Object.defineProperty(e,"__esModule",{value:!0}),e.updateOverrideContexts=n,e.createFullOverrideContext=i,e.updateOverrideContext=r,e.getItemsSourceExpression=o,e.unwrapExpression=s,e.isOneTime=a,e.updateOneTimeBinding=u,e.indexOf=l;var c=t.bindingMode.oneTime}),define("aurelia-templating-resources/repeat-strategy-locator",["exports","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy"],function(e,t,n,i,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepeatStrategyLocator=void 0;e.RepeatStrategyLocator=function(){function e(){this.matchers=[],this.strategies=[],this.addStrategy(function(e){return null===e||void 0===e},new t.NullRepeatStrategy),this.addStrategy(function(e){return e instanceof Array},new n.ArrayRepeatStrategy),this.addStrategy(function(e){return e instanceof Map},new i.MapRepeatStrategy),this.addStrategy(function(e){return e instanceof Set},new r.SetRepeatStrategy),this.addStrategy(function(e){return"number"==typeof e},new o.NumberRepeatStrategy)}return e.prototype.addStrategy=function(e,t){this.matchers.push(e),this.strategies.push(t)},e.prototype.getStrategy=function(e){for(var t=this.matchers,n=0,i=t.length;n<i;++n)if(t[n](e))return this.strategies[n];return null},e}()}),define("aurelia-templating-resources/number-repeat-strategy",["exports","./repeat-utilities"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberRepeatStrategy=void 0;e.NumberRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(){return null},e.prototype.instanceChanged=function(e,t){var n=this,i=e.removeAllViews(!0,!e.viewsRequireLifecycle);if(i instanceof Promise)return void i.then(function(){return n._standardProcessItems(e,t)});this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,n){var i=e.viewCount(),r=void 0,o=void 0,s=void 0,a=void 0;if(n=Math.floor(n),(a=i-n)>0)for(a>i&&(a=i),r=0,o=a;r<o;++r)e.removeView(i-(r+1),!0,!e.viewsRequireLifecycle);else{for(r=i,o=n;r<o;++r)s=(0,t.createFullOverrideContext)(e,r,r,o),e.addView(s.bindingContext,s);(0,t.updateOverrideContexts)(e.views(),0)}},e}()}),define("aurelia-templating-resources/null-repeat-strategy",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.NullRepeatStrategy=function(){function e(){}return e.prototype.instanceChanged=function(e,t){e.removeAllViews(!0)},e.prototype.getCollectionObserver=function(e,t){},e}()}),define("aurelia-templating-resources/map-repeat-strategy",["exports","./repeat-utilities"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MapRepeatStrategy=void 0;e.MapRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getMapObserver(t)},e.prototype.instanceChanged=function(e,t){var n=this,i=e.removeAllViews(!0,!e.viewsRequireLifecycle);if(i instanceof Promise)return void i.then(function(){return n._standardProcessItems(e,t)});this._standardProcessItems(e,t)},e.prototype._standardProcessItems=function(e,n){var i=0,r=void 0;n.forEach(function(o,s){r=(0,t.createFullOverrideContext)(e,o,i,n.size,s),e.addView(r.bindingContext,r),++i})},e.prototype.instanceMutated=function(e,n,i){var r=void 0,o=void 0,s=void 0,a=void 0,u=void 0,l=void 0,c=void 0,h=[],d=void 0;for(o=0,s=i.length;o<s;++o)switch(c=i[o],r=c.key,c.type){case"update":u=this._getViewIndexByKey(e,r),
d=e.removeView(u,!0,!e.viewsRequireLifecycle),d instanceof Promise&&h.push(d),a=(0,t.createFullOverrideContext)(e,n.get(r),u,n.size,r),e.insertView(u,a.bindingContext,a);break;case"add":l=e.viewCount()<=n.size-1?e.viewCount():n.size-1,a=(0,t.createFullOverrideContext)(e,n.get(r),l,n.size,r),e.insertView(n.size-1,a.bindingContext,a);break;case"delete":if(void 0===c.oldValue)return;u=this._getViewIndexByKey(e,r),d=e.removeView(u,!0,!e.viewsRequireLifecycle),d instanceof Promise&&h.push(d);break;case"clear":e.removeAllViews(!0,!e.viewsRequireLifecycle);break;default:continue}h.length>0?Promise.all(h).then(function(){(0,t.updateOverrideContexts)(e.views(),0)}):(0,t.updateOverrideContexts)(e.views(),0)},e.prototype._getViewIndexByKey=function(e,t){var n=void 0,i=void 0,r=void 0;for(n=0,i=e.viewCount();n<i;++n)if(r=e.view(n),r.bindingContext[e.key]===t)return n},e}()}),define("aurelia-templating-resources/if",["exports","aurelia-templating","aurelia-dependency-injection","./if-core"],function(e,t,n,i){"use strict";function r(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.If=void 0;var u,l,c,h,d,p,f;e.If=(u=(0,t.customAttribute)("if"),l=(0,n.inject)(t.BoundViewFactory,t.ViewSlot),c=(0,t.bindable)({primaryProperty:!0}),u(h=(0,t.templateController)(h=l((d=function(e){function t(){for(var t,n,i,s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];return t=n=o(this,e.call.apply(e,[this].concat(a))),r(n,"condition",p,n),r(n,"swapOrder",f,n),i=t,o(n,i)}return s(t,e),t.prototype.bind=function(t,n){e.prototype.bind.call(this,t,n),this.condition?this._show():this._hide()},t.prototype.conditionChanged=function(e){this._update(e)},t.prototype._update=function(e){var t=this;if(!this.animating){var n=void 0;n=this.elseVm?e?this._swap(this.elseVm,this):this._swap(this,this.elseVm):e?this._show():this._hide(),n&&(this.animating=!0,n.then(function(){t.animating=!1,t.condition!==t.showing&&t._update(t.condition)}))}},t.prototype._swap=function(e,t){switch(this.swapOrder){case"before":return Promise.resolve(t._show()).then(function(){return e._hide()});case"with":return Promise.all([e._hide(),t._show()]);default:var n=e._hide();return n?n.then(function(){return t._show()}):t._show()}},t}(i.IfCore),p=a(d.prototype,"condition",[c],{enumerable:!0,initializer:null}),f=a(d.prototype,"swapOrder",[t.bindable],{enumerable:!0,initializer:null}),h=d))||h)||h)||h)}),define("aurelia-templating-resources/if-core",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.IfCore=function(){function e(e,t){this.viewFactory=e,this.viewSlot=t,this.view=null,this.bindingContext=null,this.overrideContext=null,this.showing=!1}return e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t},e.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing?(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)):this.view.returnToCache(),this.view=null))},e.prototype._show=function(){return this.showing?void(this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext)):(null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),this.showing=!0,this.viewSlot.add(this.view))},e.prototype._hide=function(){var e=this;if(this.showing){this.showing=!1;var t=this.viewSlot.remove(this.view);if(t instanceof Promise)return t.then(function(){return e.view.unbind()});this.view.unbind()}},e}()}),define("aurelia-templating-resources/html-sanitizer",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;e.HTMLSanitizer=function(){function e(){}return e.prototype.sanitize=function(e){return e.replace(t,"")},e}()}),define("aurelia-templating-resources/html-resource-plugin",["exports","aurelia-templating","./dynamic-element"],function(e,t,n){"use strict";function i(e){return/([^\/^\?]+)\.html/i.exec(e)[1].toLowerCase()}function r(e){var r=e.container.get(t.ViewEngine),o=e.aurelia.loader;r.addResourcePlugin(".html",{fetch:function(e){return o.loadTemplate(e).then(function(t){var r,o=t.template.getAttribute("bindable"),s=i(e);return o?(o=o.split(",").map(function(e){return e.trim()}),t.template.removeAttribute("bindable")):o=[],r={},r[s]=(0,n._createDynamicElement)(s,e,o),r})}})}Object.defineProperty(e,"__esModule",{value:!0}),e.getElementName=i,e.configure=r}),define("aurelia-templating-resources/hide",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-pal","./aurelia-hide-style"],function(e,t,n,i,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hide=void 0;var o,s;e.Hide=(o=(0,n.customAttribute)("hide"))(s=function(){function e(e,t,n){this.element=e,this.animator=t,this.domBoundary=n}return e.inject=function(){return[i.DOM.Element,n.Animator,t.Optional.of(i.DOM.boundary,!0)]},e.prototype.created=function(){(0,r.injectAureliaHideStyleAtBoundary)(this.domBoundary)},e.prototype.valueChanged=function(e){e?this.animator.addClass(this.element,r.aureliaHideClassName):this.animator.removeClass(this.element,r.aureliaHideClassName)},e.prototype.bind=function(e){this.valueChanged(this.value)},e}())||s}),define("aurelia-templating-resources/focus",["exports","aurelia-templating","aurelia-binding","aurelia-task-queue","aurelia-pal"],function(e,t,n,i,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;var o,s;e.Focus=(o=(0,t.customAttribute)("focus",n.bindingMode.twoWay))(s=function(){function e(e,t){this.element=e,this.taskQueue=t,this.isAttached=!1,this.needsApply=!1}return e.inject=function(){return[r.DOM.Element,i.TaskQueue]},e.prototype.valueChanged=function(e){this.isAttached?this._apply():this.needsApply=!0},e.prototype._apply=function(){var e=this;this.value?this.taskQueue.queueMicroTask(function(){e.value&&e.element.focus()}):this.element.blur()},e.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this),this.element.addEventListener("blur",this)},e.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this),this.element.removeEventListener("blur",this)},e.prototype.handleEvent=function(e){"focus"===e.type?this.value=!0:r.DOM.activeElement!==this.element&&(this.value=!1)},e}())||s}),define("aurelia-templating-resources/else",["exports","aurelia-templating","aurelia-dependency-injection","./if-core"],function(e,t,n,i){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0}),e.Else=void 0;var s,a,u;e.Else=(s=(0,t.customAttribute)("else"),a=(0,n.inject)(t.BoundViewFactory,t.ViewSlot),s(u=(0,t.templateController)(u=a(u=function(e){function t(t,n){var i=r(this,e.call(this,t,n));return i._registerInIf(),i}return o(t,e),t.prototype.bind=function(t,n){e.prototype.bind.call(this,t,n),this.ifVm.condition?this._hide():this._show()},t.prototype._registerInIf=function(){for(var e=this.viewSlot.anchor.previousSibling;e&&!e.au;)e=e.previousSibling;if(!e||!e.au.if)throw new Error("Can't find matching If for Else custom attribute.");this.ifVm=e.au.if.viewModel,this.ifVm.elseVm=this},t}(i.IfCore))||u)||u)||u)}),define("aurelia-templating-resources/dynamic-element",["exports","aurelia-templating"],function(e,t){"use strict";function n(e,n,i){for(var r,o,s,a=(r=(0,t.customElement)(e),o=(0,t.useView)(n),r(s=o(s=function(){function e(){}return e.prototype.bind=function(e){this.$parent=e},e}())||s)||s),u=0,l=i.length;u<l;++u)(0,t.bindable)(i[u])(a);return a}Object.defineProperty(e,"__esModule",{value:!0}),e._createDynamicElement=n}),define("aurelia-templating-resources/debounce-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";function n(e){var t=this,n=this.debounceState;clearTimeout(n.timeoutId),n.timeoutId=setTimeout(function(){return t.debouncedMethod(e)},n.delay)}function i(e,t,n){var i=this,r=this.debounceState;if(clearTimeout(r.timeoutId),e!==r.callContextToDebounce)return r.oldValue=s,void this.debouncedMethod(e,t,n);r.oldValue===s&&(r.oldValue=n),r.timeoutId=setTimeout(function(){var n=r.oldValue;r.oldValue=s,i.debouncedMethod(e,t,n)},r.delay)}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceBindingBehavior=void 0;var r,o,s={};e.DebounceBindingBehavior=(r=(0,t.bindingBehavior)("debounce"))(o=function(){function e(){}return e.prototype.bind=function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,a=void 0!==e.callSource,u=a?"callSource":"call",l=a?n:i,c=e.mode,h=c===t.bindingMode.twoWay||c===t.bindingMode.fromView?t.targetContext:t.sourceContext;e.debouncedMethod=e[u],e.debouncedMethod.originalName=u,e[u]=l,e.debounceState={callContextToDebounce:h,delay:o,timeoutId:0,oldValue:s}},e.prototype.unbind=function(e,t){e[e.debouncedMethod.originalName]=e.debouncedMethod,e.debouncedMethod=null,clearTimeout(e.debounceState.timeoutId),e.debounceState=null},e}())||o}),define("aurelia-templating-resources/css-resource",["exports","aurelia-templating","aurelia-loader","aurelia-dependency-injection","aurelia-path","aurelia-pal"],function(e,t,n,i,r,o){"use strict";function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){if("string"!=typeof t)throw new Error("Failed loading required CSS file: "+e);return t.replace(c,function(t,n){var i=n.charAt(0);return"'"!==i&&'"'!==i||(n=n.substr(1,n.length-2)),"url('"+(0,r.relativeToFile)(n,e)+"')"})}function l(e){var n;return(0,t.resource)(new h(e))(n=function(e){function t(){return s(this,e.apply(this,arguments))}return a(t,e),t}(d))||n}Object.defineProperty(e,"__esModule",{value:!0}),e._createCSSResource=l;var c=/url\((?!['"]data)([^)]+)\)/gi,h=function(){function e(e){this.address=e,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return e.prototype.initialize=function(e,t){this._scoped=new t(this)},e.prototype.register=function(e,t){"scoped"===t?e.registerViewEngineHooks(this._scoped):this._global=!0},e.prototype.load=function(e){var t=this;return e.get(n.Loader).loadText(this.address).catch(function(e){return null}).then(function(e){e=u(t.address,e),t._scoped.css=e,t._global&&(t._alreadyGloballyInjected=!0,o.DOM.injectStyles(e))})},e}(),d=function(){function e(e){this.owner=e,this.css=null}return e.prototype.beforeCompile=function(e,t,n){if(n.targetShadowDOM)o.DOM.injectStyles(this.css,e,!0);else if(o.FEATURE.scopedCSS){var i=o.DOM.injectStyles(this.css,e,!0);i.setAttribute("scoped","scoped")}else this._global&&!this.owner._alreadyGloballyInjected&&(o.DOM.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},e}()}),define("aurelia-templating-resources/compose",["exports","aurelia-dependency-injection","aurelia-task-queue","aurelia-templating","aurelia-pal"],function(e,t,n,i,r){"use strict";function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function s(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e){for(var t in e)return!1;return!0}function u(e,t){if(e&&"function"==typeof e.activate)return Promise.resolve(e.activate(t))}function l(e,t){return Object.assign(t,{bindingContext:e.bindingContext,overrideContext:e.overrideContext,owningView:e.owningView,container:e.container,viewSlot:e.viewSlot,viewResources:e.viewResources,currentController:e.currentController,host:e.element,swapOrder:e.swapOrder})}function c(e){var t=e.changes;if(e.changes=Object.create(null),"view"in t||"viewModel"in t||!("model"in t)){var n={view:e.view,viewModel:e.currentViewModel||e.viewModel,model:e.model};n=Object.assign(n,t),n=l(e,n),e.pendingTask=e.compositionEngine.compose(n).then(function(t){e.currentController=t,e.currentViewModel=t?t.viewModel:null})}else if(e.pendingTask=u(e.currentViewModel,t.model),!e.pendingTask)return;e.pendingTask=e.pendingTask.then(function(){h(e)},function(t){throw h(e),t})}function h(e){e.pendingTask=null,a(e.changes)||c(e)}function d(e){e.pendingTask||e.updateRequested||(e.updateRequested=!0,e.taskQueue.queueMicroTask(function(){e.updateRequested=!1,c(e)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.Compose=void 0;var p,f,v,m,g,y,b;e.Compose=(p=(0,i.customElement)("compose"))(f=(0,i.noView)((v=function(){function e(e,t,n,i,r,s){o(this,"model",m,this),o(this,"view",g,this),o(this,"viewModel",y,this),o(this,"swapOrder",b,this),this.element=e,this.container=t,this.compositionEngine=n,this.viewSlot=i,this.viewResources=r,this.taskQueue=s,this.currentController=null,this.currentViewModel=null,this.changes=Object.create(null)}return e.inject=function(){return[r.DOM.Element,t.Container,i.CompositionEngine,i.ViewSlot,i.ViewResources,n.TaskQueue]},e.prototype.created=function(e){this.owningView=e},e.prototype.bind=function(e,t){this.bindingContext=e,this.overrideContext=t,this.changes.view=this.view,this.changes.viewModel=this.viewModel,this.changes.model=this.model,this.pendingTask||c(this)},e.prototype.unbind=function(){this.changes=Object.create(null),this.bindingContext=null,this.overrideContext=null;this.viewSlot.removeAll(!0,!0)},e.prototype.modelChanged=function(e,t){this.changes.model=e,d(this)},e.prototype.viewChanged=function(e,t){this.changes.view=e,d(this)},e.prototype.viewModelChanged=function(e,t){this.changes.viewModel=e,d(this)},e}(),m=s(v.prototype,"model",[i.bindable],{enumerable:!0,initializer:null}),g=s(v.prototype,"view",[i.bindable],{enumerable:!0,initializer:null}),y=s(v.prototype,"viewModel",[i.bindable],{enumerable:!0,initializer:null}),b=s(v.prototype,"swapOrder",[i.bindable],{enumerable:!0,initializer:null}),f=v))||f)||f}),define("aurelia-templating-resources/binding-signaler",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingSignaler=void 0;e.BindingSignaler=function(){function e(){this.signals={}}return e.prototype.signal=function(e){var n=this.signals[e];if(n)for(var i=n.length;i--;)n[i].call(t.sourceContext)},e}()}),define("aurelia-templating-resources/binding-mode-behaviors",["exports","aurelia-binding","aurelia-metadata"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TwoWayBindingBehavior=e.FromViewBindingBehavior=e.ToViewBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=void 0;var i,r,o,s,a,u,l,c,h,d,p,f,v,m,g,y={bind:function(e,t,n){e.originalMode=e.mode,e.mode=this.mode},unbind:function(e,t){e.mode=e.originalMode,e.originalMode=null}};e.OneTimeBindingBehavior=(i=(0,n.mixin)(y),r=(0,t.bindingBehavior)("oneTime"),i(o=r(o=function(){this.mode=t.bindingMode.oneTime})||o)||o),e.OneWayBindingBehavior=(s=(0,n.mixin)(y),a=(0,t.bindingBehavior)("oneWay"),s(u=a(u=function(){this.mode=t.bindingMode.toView})||u)||u),e.ToViewBindingBehavior=(l=(0,n.mixin)(y),c=(0,t.bindingBehavior)("toView"),l(h=c(h=function(){this.mode=t.bindingMode.toView})||h)||h),e.FromViewBindingBehavior=(d=(0,n.mixin)(y),p=(0,t.bindingBehavior)("fromView"),d(f=p(f=function(){this.mode=t.bindingMode.fromView})||f)||f),e.TwoWayBindingBehavior=(v=(0,n.mixin)(y),m=(0,t.bindingBehavior)("twoWay"),v(g=m(g=function(){this.mode=t.bindingMode.twoWay})||g)||g)}),define("aurelia-templating-resources/aurelia-templating-resources",["exports","./compose","./if","./else","./with","./repeat","./show","./hide","./sanitize-html","./replaceable","./focus","aurelia-templating","./css-resource","./html-sanitizer","./attr-binding-behavior","./binding-mode-behaviors","./throttle-binding-behavior","./debounce-binding-behavior","./self-binding-behavior","./signal-binding-behavior","./binding-signaler","./update-trigger-binding-behavior","./abstract-repeater","./repeat-strategy-locator","./html-resource-plugin","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy","./repeat-utilities","./analyze-view-factory","./aurelia-hide-style"],function(e,t,n,i,r,o,s,a,u,l,c,h,d,p,f,v,m,g,y,b,w,x,C,_,k,O,S,E,A,M,T,R,V){"use strict";function P(e){(0,V.injectAureliaHideStyleAtHead)(),e.globalResources(t.Compose,n.If,i.Else,r.With,o.Repeat,s.Show,a.Hide,l.Replaceable,c.Focus,u.SanitizeHTMLValueConverter,v.OneTimeBindingBehavior,v.OneWayBindingBehavior,v.ToViewBindingBehavior,v.FromViewBindingBehavior,v.TwoWayBindingBehavior,m.ThrottleBindingBehavior,g.DebounceBindingBehavior,y.SelfBindingBehavior,b.SignalBindingBehavior,x.UpdateTriggerBindingBehavior,f.AttrBindingBehavior),(0,k.configure)(e);var p=e.container.get(h.ViewEngine),w={fetch:function(e){var t;return t={},t[e]=(0,d._createCSSResource)(e),t}};[".css",".less",".sass",".scss",".styl"].forEach(function(e){return p.addResourcePlugin(e,w)})}Object.defineProperty(e,"__esModule",{value:!0}),e.viewsRequireLifecycle=e.unwrapExpression=e.updateOneTimeBinding=e.isOneTime=e.getItemsSourceExpression=e.updateOverrideContext=e.createFullOverrideContext=e.NumberRepeatStrategy=e.SetRepeatStrategy=e.MapRepeatStrategy=e.ArrayRepeatStrategy=e.NullRepeatStrategy=e.RepeatStrategyLocator=e.AbstractRepeater=e.UpdateTriggerBindingBehavior=e.BindingSignaler=e.SignalBindingBehavior=e.SelfBindingBehavior=e.DebounceBindingBehavior=e.ThrottleBindingBehavior=e.TwoWayBindingBehavior=e.FromViewBindingBehavior=e.ToViewBindingBehavior=e.OneWayBindingBehavior=e.OneTimeBindingBehavior=e.AttrBindingBehavior=e.configure=e.Focus=e.Replaceable=e.SanitizeHTMLValueConverter=e.HTMLSanitizer=e.Hide=e.Show=e.Repeat=e.With=e.Else=e.If=e.Compose=void 0,e.Compose=t.Compose,e.If=n.If,e.Else=i.Else,e.With=r.With,e.Repeat=o.Repeat,e.Show=s.Show,e.Hide=a.Hide,e.HTMLSanitizer=p.HTMLSanitizer,e.SanitizeHTMLValueConverter=u.SanitizeHTMLValueConverter,e.Replaceable=l.Replaceable,e.Focus=c.Focus,e.configure=P,e.AttrBindingBehavior=f.AttrBindingBehavior,e.OneTimeBindingBehavior=v.OneTimeBindingBehavior,e.OneWayBindingBehavior=v.OneWayBindingBehavior,e.ToViewBindingBehavior=v.ToViewBindingBehavior,e.FromViewBindingBehavior=v.FromViewBindingBehavior,e.TwoWayBindingBehavior=v.TwoWayBindingBehavior,e.ThrottleBindingBehavior=m.ThrottleBindingBehavior,e.DebounceBindingBehavior=g.DebounceBindingBehavior,e.SelfBindingBehavior=y.SelfBindingBehavior,e.SignalBindingBehavior=b.SignalBindingBehavior,e.BindingSignaler=w.BindingSignaler,e.UpdateTriggerBindingBehavior=x.UpdateTriggerBindingBehavior,e.AbstractRepeater=C.AbstractRepeater,e.RepeatStrategyLocator=_.RepeatStrategyLocator,e.NullRepeatStrategy=O.NullRepeatStrategy,e.ArrayRepeatStrategy=S.ArrayRepeatStrategy,e.MapRepeatStrategy=E.MapRepeatStrategy,e.SetRepeatStrategy=A.SetRepeatStrategy,e.NumberRepeatStrategy=M.NumberRepeatStrategy,e.createFullOverrideContext=T.createFullOverrideContext,e.updateOverrideContext=T.updateOverrideContext,e.getItemsSourceExpression=T.getItemsSourceExpression,e.isOneTime=T.isOneTime,e.updateOneTimeBinding=T.updateOneTimeBinding,e.unwrapExpression=T.unwrapExpression,e.viewsRequireLifecycle=R.viewsRequireLifecycle}),define("aurelia-templating-resources",["aurelia-templating-resources/aurelia-templating-resources"],function(e){return e}),define("aurelia-templating-resources/aurelia-hide-style",["exports","aurelia-pal"],function(e,t){"use strict";function n(){t.DOM.injectStyles(o)}function i(e){t.FEATURE.shadowDOM&&e&&!e.hasAureliaHideStyle&&(e.hasAureliaHideStyle=!0,t.DOM.injectStyles(o,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.aureliaHideClassName=void 0,e.injectAureliaHideStyleAtHead=n,e.injectAureliaHideStyleAtBoundary=i;var r=e.aureliaHideClassName="aurelia-hide",o="."+r+" { display:none !important; }"}),define("aurelia-templating-resources/attr-binding-behavior",["exports","aurelia-binding"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AttrBindingBehavior=void 0;var n,i;e.AttrBindingBehavior=(n=(0,t.bindingBehavior)("attr"))(i=function(){function e(){}return e.prototype.bind=function(e,n){e.targetObserver=new t.DataAttributeObserver(e.target,e.targetProperty)},e.prototype.unbind=function(e,t){},e}())||i}),define("aurelia-templating-resources/array-repeat-strategy",["exports","./repeat-utilities","aurelia-binding"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayRepeatStrategy=void 0;e.ArrayRepeatStrategy=function(){function e(){}return e.prototype.getCollectionObserver=function(e,t){return e.getArrayObserver(t)},e.prototype.instanceChanged=function(e,n){var i=this,r=n.length;if(!n||0===r)return void e.removeAllViews(!0,!e.viewsRequireLifecycle);var o=e.views(),s=o.length;if(0===s)return void this._standardProcessInstanceChanged(e,n);if(e.viewsRequireLifecycle){for(var a=o.slice(0),u=e.local,l=e.matcher(),c=[],h=[],d=0;d<s;d++){var p=a[d],f=p.bindingContext[u];-1===(0,t.indexOf)(n,f,l)?h.push(p):c.push(f)}var v=void 0,m=void 0;c.length>0?(m=e.removeViews(h,!0,!e.viewsRequireLifecycle),v=function(){for(var s=0;s<r;s++){var a=n[s],u=(0,t.indexOf)(c,a,l,s),h=void 0;if(-1===u){var d=(0,t.createFullOverrideContext)(e,n[s],s,r);e.insertView(s,d.bindingContext,d),c.splice(s,0,void 0)}else u===s?(h=o[u],c[u]=void 0):(h=o[u],e.moveView(u,s),c.splice(u,1),c.splice(s,0,void 0));h&&(0,t.updateOverrideContext)(h.overrideContext,s,r)}i._inPlaceProcessItems(e,n)}):(m=e.removeAllViews(!0,!e.viewsRequireLifecycle),v=function(){return i._standardProcessInstanceChanged(e,n)}),m instanceof Promise?m.then(v):v()}else this._inPlaceProcessItems(e,n)},e.prototype._standardProcessInstanceChanged=function(e,n){for(var i=0,r=n.length;i<r;i++){var o=(0,t.createFullOverrideContext)(e,n[i],i,r);e.addView(o.bindingContext,o)}},e.prototype._inPlaceProcessItems=function(e,n){for(var i=n.length,r=e.viewCount();r>i;)r--,e.removeView(r,!0,!e.viewsRequireLifecycle);for(var o=e.local,s=0;s<r;s++){var a=e.view(s),u=s===i-1,l=0!==s&&!u;a.bindingContext[o]===n[s]&&a.overrideContext.$middle===l&&a.overrideContext.$last===u||(a.bindingContext[o]=n[s],a.overrideContext.$middle=l,a.overrideContext.$last=u,e.updateBindings(a))}for(var c=r;c<i;c++){var h=(0,t.createFullOverrideContext)(e,n[c],c,i);e.addView(h.bindingContext,h)}},e.prototype.instanceMutated=function(e,t,i){var r=this;if(e.__queuedSplices){for(var o=0,s=i.length;o<s;++o){var a=i[o],u=a.index,l=a.removed,c=a.addedCount;(0,n.mergeSplice)(e.__queuedSplices,u,l,c)}return void(e.__array=t.slice(0))}var h=this._runSplices(e,t.slice(0),i);if(h instanceof Promise){var d=e.__queuedSplices=[],p=function t(){if(!d.length)return e.__queuedSplices=void 0,void(e.__array=void 0);var n=r._runSplices(e,e.__array,d)||Promise.resolve();d=e.__queuedSplices=[],n.then(t)};h.then(p)}},e.prototype._runSplices=function(e,n,i){for(var r=this,o=0,s=[],a=0,u=i.length;a<u;++a){for(var l=i[a],c=l.removed,h=0,d=c.length;h<d;++h){var p=e.removeView(l.index+o+s.length,!0);p instanceof Promise&&s.push(p)}o-=l.addedCount}if(s.length>0)return Promise.all(s).then(function(){var o=r._handleAddedSplices(e,n,i);(0,t.updateOverrideContexts)(e.views(),o)});var f=this._handleAddedSplices(e,n,i);(0,t.updateOverrideContexts)(e.views(),f)},e.prototype._handleAddedSplices=function(e,n,i){for(var r=void 0,o=void 0,s=n.length,a=0,u=i.length;a<u;++a){var l=i[a],c=r=l.index,h=l.index+l.addedCount;for((void 0===o||null===o||o>l.index)&&(o=r);c<h;++c){var d=(0,t.createFullOverrideContext)(e,n[c],c,s);e.insertView(c,d.bindingContext,d)}}return o},e}()}),define("aurelia-templating-resources/analyze-view-factory",["exports"],function(e){"use strict";function t(e){var t=e.type,n=null!==t.elementName?t.elementName:t.attributeName;return-1===r.indexOf(n)&&(t.handlesAttached||t.handlesBind||t.handlesCreated||t.handlesDetached||t.handlesUnbind)||t.viewFactory&&i(t.viewFactory)||e.viewFactory&&i(e.viewFactory)}function n(e){var n=e.behaviorInstructions;if(n)for(var r=n.length;r--;)if(t(n[r]))return!0;return e.viewFactory&&i(e.viewFactory)}function i(e){if("_viewsRequireLifecycle"in e)return e._viewsRequireLifecycle;if(e._viewsRequireLifecycle=!1,e.viewFactory)return e._viewsRequireLifecycle=i(e.viewFactory),e._viewsRequireLifecycle;if(e.template.querySelector(".au-animate"))return e._viewsRequireLifecycle=!0,!0;for(var t in e.instructions)if(n(e.instructions[t]))return e._viewsRequireLifecycle=!0,!0;return e._viewsRequireLifecycle=!1,!1}Object.defineProperty(e,"__esModule",{value:!0}),e.viewsRequireLifecycle=i;var r=e.lifecycleOptionalBehaviors=["focus","if","else","repeat","show","hide","with"]}),define("aurelia-templating-resources/abstract-repeater",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AbstractRepeater=function(){function e(e){Object.assign(this,{local:"items",viewsRequireLifecycle:!0},e)}return e.prototype.viewCount=function(){throw new Error("subclass must implement `viewCount`")},e.prototype.views=function(){throw new Error("subclass must implement `views`")},e.prototype.view=function(e){throw new Error("subclass must implement `view`")},e.prototype.matcher=function(){throw new Error("subclass must implement `matcher`")},e.prototype.addView=function(e,t){throw new Error("subclass must implement `addView`")},e.prototype.insertView=function(e,t,n){throw new Error("subclass must implement `insertView`")},e.prototype.moveView=function(e,t){throw new Error("subclass must implement `moveView`")},e.prototype.removeAllViews=function(e,t){throw new Error("subclass must implement `removeAllViews`")},e.prototype.removeViews=function(e,t,n){throw new Error("subclass must implement `removeView`")},e.prototype.removeView=function(e,t,n){throw new Error("subclass must implement `removeView`")},e.prototype.updateBindings=function(e){throw new Error("subclass must implement `updateBindings`")},e}()}),define("aurelia-templating-binding",["exports","aurelia-logging","aurelia-binding","aurelia-templating"],function(e,t,n,i){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if("style"===t)m.getLogger("templating-binding").info('Internet Explorer does not support interpolation in "style" attributes.  Use the style attribute\'s alias, "css" instead.');else if(e.parentElement&&"TEXTAREA"===e.parentElement.nodeName&&"textContent"===t)throw new Error('Interpolation binding cannot be used in the content of a textarea element.  Use <textarea value.bind="expression"></textarea> instead.')}function a(e){e.container.registerSingleton(i.BindingLanguage,_),e.container.registerAlias(i.BindingLanguage,_)}Object.defineProperty(e,"__esModule",{value:!0}),e.TemplatingBindingLanguage=e.SyntaxInterpreter=e.ChildInterpolationBinding=e.InterpolationBinding=e.InterpolationBindingExpression=e.AttributeMap=void 0,e.configure=a;var u,l,c,h,d,p,f,v,m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(t),g=e.AttributeMap=(l=u=function(){function e(e){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=e,this.registerUniversal("accesskey","accessKey"),this.registerUniversal("contenteditable","contentEditable"),this.registerUniversal("tabindex","tabIndex"),this.registerUniversal("textcontent","textContent"),this.registerUniversal("innerhtml","innerHTML"),this.registerUniversal("scrolltop","scrollTop"),this.registerUniversal("scrollleft","scrollLeft"),this.registerUniversal("readonly","readOnly"),this.register("label","for","htmlFor"),this.register("img","usemap","useMap"),this.register("input","maxlength","maxLength"),this.register("input","minlength","minLength"),this.register("input","formaction","formAction"),this.register("input","formenctype","formEncType"),this.register("input","formmethod","formMethod"),this.register("input","formnovalidate","formNoValidate"),this.register("input","formtarget","formTarget"),this.register("textarea","maxlength","maxLength"),this.register("td","rowspan","rowSpan"),this.register("td","colspan","colSpan"),this.register("th","rowspan","rowSpan"),this.register("th","colspan","colSpan")}return e.prototype.register=function(e,t,n){e=e.toLowerCase(),t=t.toLowerCase(),(this.elements[e]=this.elements[e]||Object.create(null))[t]=n},e.prototype.registerUniversal=function(e,t){e=e.toLowerCase(),this.allElements[e]=t},e.prototype.map=function(e,t){if(this.svg.isStandardSvgAttribute(e,t))return t;e=e.toLowerCase(),t=t.toLowerCase();var i=this.elements[e];return void 0!==i&&t in i?i[t]:t in this.allElements?this.allElements[t]:/(?:^data-)|(?:^aria-)|:/.test(t)?t:(0,n.camelCase)(t)},e}(),u.inject=[n.SVGAnalyzer],l),y=e.InterpolationBindingExpression=function(){function e(e,t,n,i,r,o){this.observerLocator=e,this.targetProperty=t,this.parts=n,this.mode=i,this.lookupFunctions=r,this.attribute=this.attrToRemove=o,this.discrete=!1}return e.prototype.createBinding=function(e){return 3===this.parts.length?new w(e,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new b(this.observerLocator,this.parts,e,this.targetProperty,this.mode,this.lookupFunctions)},e}(),b=e.InterpolationBinding=function(){function e(e,t,n,i,r,o){s(n,i),this.observerLocator=e,this.parts=t,this.target=n,this.targetProperty=i,this.targetAccessor=e.getAccessor(n,i),this.mode=r,this.lookupFunctions=o}return e.prototype.interpolate=function(){if(this.isBound){
for(var e="",t=this.parts,n=0,i=t.length;n<i;n++)e+=n%2==0?t[n]:this["childBinding"+n].value;this.targetAccessor.setValue(e,this.target,this.targetProperty)}},e.prototype.updateOneTimeBindings=function(){for(var e=1,t=this.parts.length;e<t;e+=2){var i=this["childBinding"+e];i.mode===n.bindingMode.oneTime&&i.call()}},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.source=e;for(var t=this.parts,n=1,i=t.length;n<i;n+=2){var r=new w(this,this.observerLocator,t[n],this.mode,this.lookupFunctions);r.bind(e),this["childBinding"+n]=r}this.isBound=!0,this.interpolate()},e.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;for(var e=this.parts,t=1,n=e.length;t<n;t+=2){this["childBinding"+t].unbind()}}},e}(),w=e.ChildInterpolationBinding=(c=(0,n.connectable)())(h=function(){function e(e,t,n,i,r,o,a,u){e instanceof b?this.parent=e:(s(e,o),this.target=e,this.targetProperty=o,this.targetAccessor=t.getAccessor(e,o)),this.observerLocator=t,this.sourceExpression=n,this.mode=i,this.lookupFunctions=r,this.left=a,this.right=u}return e.prototype.updateTarget=function(e){(e=null===e||void 0===e?"":e.toString())!==this.value&&(this.value=e,this.parent?this.parent.interpolate():this.targetAccessor.setValue(this.left+e+this.right,this.target,this.targetProperty))},e.prototype.call=function(){this.isBound&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode!==n.bindingMode.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue),this.unobserve(!1)))},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e;var t=this.sourceExpression;t.bind&&t.bind(this,e,this.lookupFunctions),this.rawValue=t.evaluate(e,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode===n.bindingMode.oneWay&&(0,n.enqueueBindingConnect)(this)},e.prototype.unbind=function(){if(this.isBound){this.isBound=!1;var e=this.sourceExpression;e.unbind&&e.unbind(this,this.source),this.source=null,this.value=null,this.rawValue=null,this.unobserve(!0)}},e.prototype.connect=function(e){this.isBound&&(e&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue)),this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue))},e}())||h,x=e.SyntaxInterpreter=(p=d=function(){function e(e,t,n,i){this.parser=e,this.observerLocator=t,this.eventManager=n,this.attributeMap=i}return e.prototype.interpret=function(e,t,n,i,r){return n.command in this?this[n.command](e,t,n,i,r):this.handleUnknownCommand(e,t,n,i,r)},e.prototype.handleUnknownCommand=function(e,t,n,i,r){return m.getLogger("templating-binding").warn("Unknown binding command.",n),i},e.prototype.determineDefaultBindingMode=function(e,t,i){var r=e.tagName.toLowerCase();return"input"===r&&("value"===t||"files"===t)&&"checkbox"!==e.type&&"radio"!==e.type||"input"===r&&"checked"===t&&("checkbox"===e.type||"radio"===e.type)||("textarea"===r||"select"===r)&&"value"===t||("textcontent"===t||"innerhtml"===t)&&"true"===e.contentEditable||"scrolltop"===t||"scrollleft"===t?n.bindingMode.twoWay:i&&t in i.attributes&&i.attributes[t]&&i.attributes[t].defaultBindingMode>=n.bindingMode.oneTime?i.attributes[t].defaultBindingMode:n.bindingMode.oneWay},e.prototype.bind=function(e,t,r,o,s){var a=o||i.BehaviorInstruction.attribute(r.attrName);return a.attributes[r.attrName]=new n.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),void 0===r.defaultBindingMode||null===r.defaultBindingMode?this.determineDefaultBindingMode(t,r.attrName,s):r.defaultBindingMode,e.lookupFunctions),a},e.prototype.trigger=function(e,t,i){return new n.ListenerExpression(this.eventManager,i.attrName,this.parser.parse(i.attrValue),n.delegationStrategy.none,!0,e.lookupFunctions)},e.prototype.capture=function(e,t,i){return new n.ListenerExpression(this.eventManager,i.attrName,this.parser.parse(i.attrValue),n.delegationStrategy.capturing,!0,e.lookupFunctions)},e.prototype.delegate=function(e,t,i){return new n.ListenerExpression(this.eventManager,i.attrName,this.parser.parse(i.attrValue),n.delegationStrategy.bubbling,!0,e.lookupFunctions)},e.prototype.call=function(e,t,r,o){var s=o||i.BehaviorInstruction.attribute(r.attrName);return s.attributes[r.attrName]=new n.CallExpression(this.observerLocator,r.attrName,this.parser.parse(r.attrValue),e.lookupFunctions),s},e.prototype.options=function(e,t,n,r,o){var s=r||i.BehaviorInstruction.attribute(n.attrName),a=n.attrValue,u=this.language,l=null,c="",h=void 0,d=void 0,p=void 0,f=!1,v=!1,m=!1;for(d=0,p=a.length;d<p;++d){if(";"!==(h=a[d])||f)if(":"===h&&null===l)m=!0,l=c.trim(),c="";else{if("\\"===h){c+=h,v=!0;continue}c+=h,null!==l&&!1===v&&"'"===h&&(f=!f)}else m||(l=this._getPrimaryPropertyName(e,o)),n=u.inspectAttribute(e,"?",l,c.trim()),u.createAttributeInstruction(e,t,n,s,o),s.attributes[n.attrName]||(s.attributes[n.attrName]=n.attrValue),c="",l=null;v=!1}return m||(l=this._getPrimaryPropertyName(e,o)),null!==l&&(n=u.inspectAttribute(e,"?",l,c.trim()),u.createAttributeInstruction(e,t,n,s,o),s.attributes[n.attrName]||(s.attributes[n.attrName]=n.attrValue)),s},e.prototype._getPrimaryPropertyName=function(e,t){var n=e.getAttribute(t.attributeName);return n&&n.primaryProperty?n.primaryProperty.attribute:null},e.prototype.for=function(e,t,r,o){var s=void 0,a=void 0,u=void 0,l=void 0,c=void 0;if(l=r.attrValue,c=l.match(/^ *[[].+[\]]/),s=c?l.split("of "):l.split(" of "),2!==s.length)throw new Error('Incorrect syntax for "for". The form is: "$local of $items" or "[$key, $value] of $items".');return u=o||i.BehaviorInstruction.attribute(r.attrName),c?(a=s[0].replace(/[[\]]/g,"").replace(/,/g," ").replace(/\s+/g," ").trim().split(" "),u.attributes.key=a[0],u.attributes.value=a[1]):u.attributes.local=s[0],u.attributes.items=new n.BindingExpression(this.observerLocator,"items",this.parser.parse(s[1]),n.bindingMode.oneWay,e.lookupFunctions),u},e.prototype["two-way"]=function(e,t,r,o){var s=o||i.BehaviorInstruction.attribute(r.attrName);return s.attributes[r.attrName]=new n.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),n.bindingMode.twoWay,e.lookupFunctions),s},e.prototype["to-view"]=function(e,t,r,o){var s=o||i.BehaviorInstruction.attribute(r.attrName);return s.attributes[r.attrName]=new n.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),n.bindingMode.toView,e.lookupFunctions),s},e.prototype["from-view"]=function(e,t,r,o){var s=o||i.BehaviorInstruction.attribute(r.attrName);return s.attributes[r.attrName]=new n.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),n.bindingMode.fromView,e.lookupFunctions),s},e.prototype["one-time"]=function(e,t,r,o){var s=o||i.BehaviorInstruction.attribute(r.attrName);return s.attributes[r.attrName]=new n.BindingExpression(this.observerLocator,this.attributeMap.map(t.tagName,r.attrName),this.parser.parse(r.attrValue),n.bindingMode.oneTime,e.lookupFunctions),s},e}(),d.inject=[n.Parser,n.ObserverLocator,n.EventManager,g],p);x.prototype["one-way"]=x.prototype["to-view"];var C={},_=e.TemplatingBindingLanguage=(v=f=function(e){function t(t,n,i,o){var s=r(this,e.call(this));return s.parser=t,s.observerLocator=n,s.syntaxInterpreter=i,s.emptyStringExpression=s.parser.parse("''"),i.language=s,s.attributeMap=o,s}return o(t,e),t.prototype.inspectAttribute=function(e,t,i,r){var o=i.split(".");if(C.defaultBindingMode=null,2===o.length)C.attrName=o[0].trim(),C.attrValue=r,C.command=o[1].trim(),"ref"===C.command?(C.expression=new n.NameExpression(this.parser.parse(r),C.attrName,e.lookupFunctions),C.command=null,C.attrName="ref"):C.expression=null;else if("ref"===i)C.attrName=i,C.attrValue=r,C.command=null,C.expression=new n.NameExpression(this.parser.parse(r),"element",e.lookupFunctions);else{C.attrName=i,C.attrValue=r,C.command=null;var s=this.parseInterpolation(e,r);C.expression=null===s?null:new y(this.observerLocator,this.attributeMap.map(t,i),s,n.bindingMode.oneWay,e.lookupFunctions,i)}return C},t.prototype.createAttributeInstruction=function(e,t,n,r,o){var s=void 0;if(n.expression){if("ref"===n.attrName)return n.expression;s=r||i.BehaviorInstruction.attribute(n.attrName),s.attributes[n.attrName]=n.expression}else n.command&&(s=this.syntaxInterpreter.interpret(e,t,n,r,o));return s},t.prototype.inspectTextContent=function(e,t){var i=this.parseInterpolation(e,t);return null===i?null:new y(this.observerLocator,"textContent",i,n.bindingMode.oneWay,e.lookupFunctions,"textContent")},t.prototype.parseInterpolation=function(e,t){for(var n=t.indexOf("${",0),i=t.length,r=void 0,o=0,s=0,a=null,u=void 0,l=void 0,c=0;n>=0&&n<i-2;){s=1,u=n,n+=2;do{r=t[n],n++,"'"!==r&&'"'!==r?"\\"!==r?null===a&&("{"===r?s++:"}"===r&&s--):n++:null===a?a=r:a===r&&(a=null)}while(s>0&&n<i);if(0!==s)break;l=l||[],"\\"===t[u-1]&&"\\"!==t[u-2]?(l[c]=t.substring(o,u-1)+t.substring(u,n),c++,l[c]=this.emptyStringExpression,c++):(l[c]=t.substring(o,u),c++,l[c]=this.parser.parse(t.substring(u+2,n-1)),c++),o=n,n=t.indexOf("${",n)}return 0===c?null:(l[c]=t.substr(o),l)},t}(i.BindingLanguage),f.inject=[n.Parser,n.ObserverLocator,x,g],v)}),define("aurelia-task-queue",["exports","aurelia-pal"],function(e,t){"use strict";function n(e){var n=t.DOM.createMutationObserver(e),i="a",r=t.DOM.createTextNode("a"),o=Object.create(null);return o.a="b",o.b="a",n.observe(r,{characterData:!0}),function(){r.data=i=o[i]}}function i(e){return function(){function t(){clearTimeout(n),clearInterval(i),e()}var n=setTimeout(t,0),i=setInterval(t,50)}}function r(e,t,n){n&&t.stack&&"object"===(void 0===e?"undefined":u(e))&&null!==e&&(e.stack=a(e.stack)+t.stack),"onError"in t?t.onError(e):setTimeout(function(){throw e},0)}function o(){var e=new Error;if(e.stack)return e.stack;try{throw e}catch(e){return e.stack}}function s(e){return e.replace(/^[\s\S]*?\bqueue(Micro)?Task\b[^\n]*\n/,"")}function a(e){var t=e.lastIndexOf("flushMicroTaskQueue");return t<0&&(t=e.lastIndexOf("flushTaskQueue"))<0?e:(t=e.lastIndexOf("\n",t),t<0?e:e.substr(0,t))}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskQueue=void 0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.TaskQueue=function(){function e(){var e=this;this.flushing=!1,this.longStacks=!1,this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],t.FEATURE.mutationObserver?this.requestFlushMicroTaskQueue=n(function(){return e.flushMicroTaskQueue()}):this.requestFlushMicroTaskQueue=i(function(){return e.flushMicroTaskQueue()}),this.requestFlushTaskQueue=i(function(){return e.flushTaskQueue()})}return e.prototype._flushQueue=function(e,t){var n=0,i=void 0;try{for(this.flushing=!0;n<e.length;)if(i=e[n],this.longStacks&&(this.stack="string"==typeof i.stack?i.stack:void 0),i.call(),++n>t){for(var o=0,s=e.length-n;o<s;o++)e[o]=e[o+n];e.length-=n,n=0}}catch(e){r(e,i,this.longStacks)}finally{this.flushing=!1}},e.prototype.queueMicroTask=function(e){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.longStacks&&(e.stack=this.prepareQueueStack("\nEnqueued in MicroTaskQueue by:\n")),this.microTaskQueue.push(e)},e.prototype.queueTask=function(e){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.longStacks&&(e.stack=this.prepareQueueStack("\nEnqueued in TaskQueue by:\n")),this.taskQueue.push(e)},e.prototype.flushTaskQueue=function(){var e=this.taskQueue;this.taskQueue=[],this._flushQueue(e,Number.MAX_VALUE)},e.prototype.flushMicroTaskQueue=function(){var e=this.microTaskQueue;this._flushQueue(e,this.microTaskQueueCapacity),e.length=0},e.prototype.prepareQueueStack=function(e){var t=e+s(o());return"string"==typeof this.stack&&(t=a(t)+this.stack),t},e}()}),define("aurelia-polyfills",["aurelia-pal"],function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};"undefined"==typeof FEATURE_NO_ES2015&&(function(n,i){if(!(i in n)){var r,o=e.PLATFORM.global,s=0,a=""+Math.random(),u="__symbol:",l=u.length,c="__symbol@@"+a,h="defineProperty",d="defineProperties",p="getOwnPropertyNames",f="getOwnPropertyDescriptor",v="propertyIsEnumerable",m=n[p],g=n[f],y=n.create,b=n.keys,w=n[h],x=n[d],C=g(n,p),_=n.prototype,k=_.hasOwnProperty,O=_[v],S=_.toString,E=(Array.prototype.indexOf,function(e,t,n){k.call(e,c)||w(e,c,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[c]["@@"+t]=n}),A=function(e,n){var i=y(e);return null!==n&&"object"===(void 0===n?"undefined":t(n))&&m(n).forEach(function(e){P.call(n,e)&&I(i,e,n[e])}),i},M=function(e){var t=y(e);return t.enumerable=!1,t},T=function(){},R=function(e){return e!=c&&!k.call(j,e)},V=function(e){return e!=c&&k.call(j,e)},P=function(e){var t=""+e;return V(t)?k.call(this,t)&&this[c]&&this[c]["@@"+t]:O.call(this,e)},B=function(e){return w(_,e,{enumerable:!1,configurable:!0,get:T,set:function(t){r(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),E(this,e,!0)}}),j[e]=w(n(e),"constructor",N)},L=function(e){if(this&&this!==o)throw new TypeError("Symbol is not a constructor");return B(u.concat(e||"",a,++s))},j=y(null),N={value:L},F=function(e){return j[e]},I=function(e,t,n){var i=""+t;return V(i)?(r(e,i,n.enumerable?M(n):n),E(e,i,!!n.enumerable)):w(e,t,n),e},D=function(e){return e="[object String]"===S.call(e)?e.split(""):n(e),m(e).filter(V).map(F)};C.value=I,w(n,h,C),C.value=D,w(n,i,C);var q="object"===("undefined"==typeof window?"undefined":t(window))?n.getOwnPropertyNames(window):[],z=n.getOwnPropertyNames;C.value=function(e){if("[object Window]"===S.call(e))try{return z(e)}catch(e){return[].concat([],q)}return m(e).filter(R)},w(n,p,C),C.value=function(e,t){var n=D(t);return n.length?b(t).concat(n).forEach(function(n){P.call(t,n)&&I(e,n,t[n])}):x(e,t),e},w(n,d,C),C.value=P,w(_,v,C),C.value=L,w(o,"Symbol",C),C.value=function(e){var t=u.concat(u,e,a);return t in _?j[t]:B(t)},w(L,"for",C),C.value=function(e){return k.call(j,e)?e.slice(2*l,-a.length):void 0},w(L,"keyFor",C),C.value=function(e,t){var n=g(e,t);return n&&V(t)&&(n.enumerable=P.call(e,t)),n},w(n,f,C),C.value=function(e,t){return 1===arguments.length?y(e):A(e,t)},w(n,"create",C),C.value=function(){var e=S.call(this);return"[object String]"===e&&V(this)?"[object Symbol]":e},w(_,"toString",C);try{r=y(w({},u,{get:function(){return w(this,u,{value:!1})[u]}}))[u]||w}catch(e){r=function(e,t,n){var i=g(_,t);delete _[t],w(e,t,n),w(_,t,i)}}}}(Object,"getOwnPropertySymbols"),function(e,t){var n,i=e.defineProperty,r=e.prototype,o=r.toString;["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive","toStringTag"].forEach(function(t){if(!(t in Symbol))switch(i(Symbol,t,{value:Symbol(t)}),t){case"toStringTag":n=e.getOwnPropertyDescriptor(r,"toString"),n.value=function(){var e=o.call(this),t=void 0===this||null===this?void 0:this[Symbol.toStringTag];return void 0===t?e:"[object "+t+"]"},i(r,"toString",n)}})}(Object,Symbol),function(e,t,n){function i(){return this}t[e]||(t[e]=function(){var t=0,n=this,r={next:function(){var e=n.length<=t;return e?{done:e}:{done:e,value:n[t++]}}};return r[e]=i,r}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,r=0,o=n.length,s={next:function(){var e=o<=r,i=e?"":t(n.codePointAt(r));return r+=i.length,e?{done:e}:{done:e,value:i}}};return s[e]=i,s})}(Symbol.iterator,Array.prototype,String.prototype)),"undefined"==typeof FEATURE_NO_ES2015&&(Number.isNaN=Number.isNaN||function(e){return e!==e},Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)}),String.prototype.endsWith&&!function(){try{return!"ab".endsWith("a",1)}catch(e){return!0}}()||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),String.prototype.startsWith&&!function(){try{return!"ab".startsWith("b",1)}catch(e){return!0}}()||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),"undefined"==typeof FEATURE_NO_ES2015&&(Array.from||(Array.from=function(){var e=function(e){return isNaN(e=+e)?0:(e>0?Math.floor:Math.ceil)(e)},t=function(t){return t>0?Math.min(e(t),9007199254740991):0},n=function(e,t,n,i){try{return t(n,i)}catch(t){throw"function"==typeof e.return&&e.return(),t}};return function(e){var i,r,o,s,a=Object(e),u="function"==typeof this?this:Array,l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,d=0,p=a[Symbol.iterator];if(h&&(c=c.bind(l>2?arguments[2]:void 0)),void 0==p||Array.isArray(e))for(i=t(a.length),r=new u(i);i>d;d++)r[d]=h?c(a[d],d):a[d];else for(s=p.call(a),r=new u;!(o=s.next()).done;d++)r[d]=h?n(s,c,o.value,d):o.value;return r.length=d,r}}()),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,enumerable:!1,value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(t=n[o],e.call(r,t,o,n))return t}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{configurable:!0,writable:!0,enumerable:!1,value:function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(t=n[o],e.call(r,t,o,n))return o;return-1}})),"undefined"!=typeof FEATURE_NO_ES2016||Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{configurable:!0,writable:!0,enumerable:!1,value:function(e){var t=Object(this),n=parseInt(t.length)||0;if(0===n)return!1;var i,r=parseInt(arguments[1])||0;r>=0?i=r:(i=n+r)<0&&(i=0);for(var o;i<n;){if(o=t[i],e===o||e!==e&&o!==o)return!0;i++}return!1}}),"undefined"==typeof FEATURE_NO_ES2015&&(!function(){var e=!1;try{var t=Object.keys("a");e=1!==t.length||"0"!==t[0]}catch(t){e=!0}e&&(Object.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=n.length;return function(r){if(void 0===r||null===r)throw TypeError("Cannot convert undefined or null to object");r=Object(r);var o,s,a=[];for(o in r)e.call(r,o)&&a.push(o);if(t)for(s=0;s<i;s++)e.call(r,n[s])&&a.push(n[s]);return a}}())}(),function(e){"assign"in e||e.defineProperty(e,"assign",{configurable:!0,writable:!0,value:function(){var t=e.getOwnPropertySymbols,n=e.propertyIsEnumerable,i=t?function(e){return t(e).filter(n,e)}:function(){return Array.prototype};return function(n){function r(e){n[e]=a[e]}!t||n instanceof e||console.warn("problematic Symbols",n);for(var o=1,s=arguments.length;o<s;++o){var a=arguments[o];null!==a&&void 0!==a&&e.keys(a).concat(i(a)).forEach(r)}return n}}()})}(Object),Object.is||(Object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t})),"undefined"==typeof FEATURE_NO_ES2015&&function(e){function t(e,t){function i(e){if(!this||this.constructor!==i)return new i(e);this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,e&&n.call(this,e)}return t||b(e,"size",{get:m}),e.constructor=i,i.prototype=e,i}function n(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}function i(e){return this.has(e)&&(this._keys.splice(y,1),this._values.splice(y,1),this._itp.forEach(function(e){y<e[0]&&e[0]--})),-1<y}function r(e){return this.has(e)?this._values[y]:void 0}function o(e,t){if(this.objectOnly&&t!==Object(t))throw new TypeError("Invalid value used as weak collection key");if(t!=t||0===t)for(y=e.length;y--&&!w(e[y],t););else y=e.indexOf(t);return-1<y}function s(e){return o.call(this,this._values,e)}function a(e){return o.call(this,this._keys,e)}function u(e,t){return this.has(e)?this._values[y]=t:this._values[this._keys.push(e)-1]=t,this}function l(e){return this.has(e)||this._values.push(e),this}function c(){(this._keys||0).length=this._values.length=0}function h(){return v(this._itp,this._keys)}function d(){return v(this._itp,this._values)}function p(){return v(this._itp,this._keys,this._values)}function f(){return v(this._itp,this._values,this._values)}function v(e,t,n){var i,r=[0],o=!1;return e.push(r),i={},i[Symbol.iterator]=function(){return this},i.next=function(){var i,s=r[0];return!o&&s<t.length?(i=n?[t[s],n[s]]:t[s],r[0]++):(o=!0,e.splice(e.indexOf(r),1)),{done:o,value:i}},i}function m(){return this._values.length}function g(e,t){for(var n=this.entries();;){var i=n.next();if(i.done)break;e.call(t,i.value[1],i.value[0],this)}}var y,b=Object.defineProperty,w=function(e,t){return e===t||e!==e&&t!==t};if("undefined"==typeof WeakMap&&(e.WeakMap=t({delete:i,clear:c,get:r,has:a,set:u},!0)),"undefined"==typeof Map||"function"!=typeof(new Map).values||!(new Map).values().next){var x;e.Map=t((x={delete:i,has:a,get:r,set:u,keys:h,values:d,entries:p,forEach:g,clear:c},x[Symbol.iterator]=p,x))}if("undefined"==typeof Set||"function"!=typeof(new Set).values||!(new Set).values().next){var C;e.Set=t((C={has:s,add:l,delete:i,clear:c,keys:d,values:d,entries:f,forEach:g},C[Symbol.iterator]=d,C))}"undefined"==typeof WeakSet&&(e.WeakSet=t({delete:i,add:l,clear:c,has:s},!0))}(e.PLATFORM.global),"undefined"==typeof FEATURE_NO_ES2015&&function(){var n=Function.prototype.bind;void 0===e.PLATFORM.global.Reflect&&(e.PLATFORM.global.Reflect={}),"function"!=typeof Reflect.defineProperty&&(Reflect.defineProperty=function(e,n,i){if("object"===(void 0===e?"undefined":t(e))?null===e:"function"!=typeof e)throw new TypeError("Reflect.defineProperty called on non-object");try{return Object.defineProperty(e,n,i),!0}catch(e){return!1}}),"function"!=typeof Reflect.construct&&(Reflect.construct=function(e,t){if(t)switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(n.apply(e,i))}),"function"!=typeof Reflect.ownKeys&&(Reflect.ownKeys=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))})}(),"undefined"==typeof FEATURE_NO_ESNEXT&&function(){var e=Object.freeze({});"function"!=typeof Reflect.getOwnMetadata&&(Reflect.getOwnMetadata=function(t,n,i){if(n.hasOwnProperty("__metadata__"))return(n.__metadata__[i]||e)[t]}),"function"!=typeof Reflect.defineMetadata&&(Reflect.defineMetadata=function(e,t,n,i){var r=n.hasOwnProperty("__metadata__")?n.__metadata__:n.__metadata__={};(r[i]||(r[i]={}))[e]=t}),"function"!=typeof Reflect.metadata&&(Reflect.metadata=function(e,t){return function(n,i){Reflect.defineMetadata(e,t,n,i)}})}()}),define("aurelia-path",["exports"],function(e){"use strict";function t(e){for(var t=0;t<e.length;++t){var n=e[t];if("."===n)e.splice(t,1),t-=1;else if(".."===n){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;t>0&&(e.splice(t-1,2),t-=2)}}}function n(e,n){var i=n&&n.split("/"),r=e.trim().split("/");if("."===r[0].charAt(0)&&i){var o=i.slice(0,i.length-1);r.unshift.apply(r,o)}return t(r),r.join("/")}function i(e,t){if(!e)return t;if(!t)return e;var n=e.match(/^([^\/]*?:)\//),i=n&&n.length>0?n[1]:"";e=e.substr(i.length);var r=void 0;r=0===e.indexOf("///")&&"file:"===i?"///":0===e.indexOf("//")?"//":0===e.indexOf("/")?"/":"";for(var o="/"===t.slice(-1)?"/":"",s=e.split("/"),a=t.split("/"),u=[],l=0,c=s.length;l<c;++l)if(".."===s[l])u.pop();else{if("."===s[l]||""===s[l])continue;u.push(s[l])}for(var h=0,d=a.length;h<d;++h)if(".."===a[h])u.pop();else{if("."===a[h]||""===a[h])continue;u.push(a[h])}return i+r+u.join("/")+o}function r(e,t,n){var i=[];if(null===t||void 0===t)return i;if(Array.isArray(t))for(var o=0,s=t.length;o<s;o++)if(n)i.push(h(e)+"="+c(t[o]));else{var a=e+"["+("object"===l(t[o])&&null!==t[o]?o:"")+"]";i=i.concat(r(a,t[o]))}else if("object"!==(void 0===t?"undefined":l(t))||n)i.push(h(e)+"="+c(t));else for(var u in t)i=i.concat(r(e+"["+u+"]",t[u]));return i}function o(e,t){for(var n=[],i=Object.keys(e||{}).sort(),o=0,s=i.length;o<s;o++){var a=i[o];n=n.concat(r(a,e[a],t))}return 0===n.length?"":n.join("&")}function s(e,t){return Array.isArray(e)?(e.push(t),e):void 0!==e?[e,t]:t}function a(e,t,n){for(var i=e,r=t.length-1,o=0;o<=r;o++){var s=""===t[o]?i.length:t[o];if(o<r){var a=i[s]&&"object"!==l(i[s])?[i[s]]:i[s];i=i[s]=a||(isNaN(t[o+1])?{}:[])}else i=i[s]=n}}function u(e){var t={};if(!e||"string"!=typeof e)return t;var n=e;"?"===n.charAt(0)&&(n=n.substr(1));for(var i=n.replace(/\+/g," ").split("&"),r=0;r<i.length;r++){var o=i[r].split("="),u=decodeURIComponent(o[0]);if(u){var l=u.split("]["),c=l.length-1;if(/\[/.test(l[0])&&/\]$/.test(l[c])?(l[c]=l[c].replace(/\]$/,""),l=l.shift().split("[").concat(l),c=l.length-1):c=0,o.length>=2){var h=o[1]?decodeURIComponent(o[1]):"";c?a(t,l,h):t[u]=s(t[u],h)}else t[u]=!0}}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.relativeToFile=n,e.join=i,e.buildQueryString=o,e.parseQueryString=u;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},c=encodeURIComponent,h=function(e){return c(e).replace("%24","$")}}),define("aurelia-pal",["exports"],function(e){"use strict";function t(e,t,n){if(t){if(t.innerError&&n)return t;var i="\n------------------------------------------------\n";e+=i+"Inner Error:\n","string"==typeof t?e+="Message: "+t:(t.message?e+="Message: "+t.message:e+="Unknown Inner Error Type. Displaying Inner Error as JSON:\n "+JSON.stringify(t,null,"  "),t.stack&&(e+="\nInner Error Stack:\n"+t.stack,e+="\nEnd Inner Error Stack")),e+=i}var r=new Error(e);return t&&(r.innerError=t),r}function n(t){a||(e.isInitialized=a=!0,"function"!=typeof Object.getPropertyDescriptor&&(Object.getPropertyDescriptor=function(e,t){for(var n=Object.getOwnPropertyDescriptor(e,t),i=Object.getPrototypeOf(e);void 0===n&&null!==i;)n=Object.getOwnPropertyDescriptor(i,t),i=Object.getPrototypeOf(i);return n}),t(o,r,s))}function i(){e.isInitialized=a=!1}Object.defineProperty(e,"__esModule",{value:!0}),e.AggregateError=t,e.initializePAL=n,e.reset=i;var r=e.FEATURE={},o=e.PLATFORM={noop:function(){},eachModule:function(){},moduleName:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return e})};o.global=function(){return"undefined"!=typeof self?self:"undefined"!=typeof global?global:new Function("return this")()}();var s=e.DOM={},a=e.isInitialized=!1}),define("aurelia-pal-browser",["exports","aurelia-pal"],function(e,t){"use strict";function n(){t.isInitialized||(0,t.initializePAL)(function(e,t,n){Object.assign(e,r),Object.assign(t,k),Object.assign(n,T),Object.defineProperty(n,"title",{get:function(){return document.title},set:function(e){document.title=e}}),Object.defineProperty(n,"activeElement",{get:function(){return document.activeElement}}),Object.defineProperty(e,"XMLHttpRequest",{get:function(){return e.global.XMLHttpRequest}})})}Object.defineProperty(e,"__esModule",{value:!0}),e._DOM=e._FEATURE=e._PLATFORM=void 0,e.initialize=n;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=e._PLATFORM={location:window.location,history:window.history,addEventListener:function(e,t,n){this.global.addEventListener(e,t,n)},removeEventListener:function(e,t,n){this.global.removeEventListener(e,t,n)},performance:window.performance,requestAnimationFrame:function(e){return this.global.requestAnimationFrame(e)}};if("undefined"==typeof FEATURE_NO_IE){void 0===function(){}.name&&Object.defineProperty(Function.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}})}if("undefined"==typeof FEATURE_NO_IE)if("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))){var o=document.createElement("_");if(o.classList.add("c1","c2"),!o.classList.contains("c2")){var s=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){for(var n=0,i=arguments.length;n<i;++n)e=arguments[n],t.call(this,e)}};s("add"),s("remove")}if(o.classList.toggle("c3",!1),o.classList.contains("c3")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:a.call(this,e)}}o=null}else{var u=String.prototype.trim,l=Array.prototype.indexOf,c=[],h=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},d=function(e,t){if(""===t)throw new h("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new h("INVALID_CHARACTER_ERR","String contains an invalid character");return l.call(e,t)},p=function(e){for(var t=u.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):c,i=0,r=n.length;i<r;++i)this.push(n[i]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},f=p.prototype=[];h.prototype=Error.prototype,f.item=function(e){return this[e]||null},f.contains=function(e){return e+="",-1!==d(this,e)},f.add=function(){var e=arguments,t=0,n=e.length,i=void 0,r=!1;do{i=e[t]+"",-1===d(this,i)&&(this.push(i),r=!0)}while(++t<n);r&&this._updateClassName()},f.remove=function(){var e=arguments,t=0,n=e.length,i=void 0,r=!1,o=void 0;do{for(i=e[t]+"",o=d(this,i);-1!==o;)this.splice(o,1),r=!0,o=d(this,i)}while(++t<n);r&&this._updateClassName()},f.toggle=function(e,t){e+="";var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!n},f.toString=function(){return this.join(" ")},Object.defineProperty(Element.prototype,"classList",{get:function(){return new p(this)},enumerable:!0,configurable:!0})}if("undefined"==typeof FEATURE_NO_IE){var v=function(e,t){for(var n=0,i=y.length,r=[];n<i;n++)y[n][e]==t&&r.push(y[n]);return r},m=function(e,t){for(var n,i=y.length;i--;)n=y[i],n.entryType!=e||void 0!==t&&n.name!=t||y.splice(i,1)};if("performance"in window==!1&&(window.performance={}),"now"in window.performance==!1){var g=Date.now();performance.timing&&performance.timing.navigationStart&&(g=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-g}}var y=(Date.now?Date.now():new Date,[]),b={};window.performance.mark||(window.performance.mark=window.performance.webkitMark||function(e){var t={name:e,entryType:"mark",startTime:window.performance.now(),duration:0};y.push(t),b[e]=t}),window.performance.measure||(window.performance.measure=window.performance.webkitMeasure||function(e,t,n){t=b[t].startTime,n=b[n].startTime,y.push({name:e,entryType:"measure",startTime:t,duration:n-t})}),window.performance.getEntriesByType||(window.performance.getEntriesByType=window.performance.webkitGetEntriesByType||function(e){return v("entryType",e)}),window.performance.getEntriesByName||(window.performance.getEntriesByName=window.performance.webkitGetEntriesByName||function(e){return v("name",e)}),window.performance.clearMarks||(window.performance.clearMarks=window.performance.webkitClearMarks||function(e){m("mark",e)}),
window.performance.clearMeasures||(window.performance.clearMeasures=window.performance.webkitClearMeasures||function(e){m("measure",e)}),r.performance=window.performance}if("undefined"==typeof FEATURE_NO_IE){var w=window.console=window.console||{},x=function(){};w.memory||(w.memory={}),"assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",").forEach(function(e){w[e]||(w[e]=x)}),"object"===i(w.log)&&"log,info,warn,error,assert,dir,clear,profile,profileEnd".split(",").forEach(function(e){console[e]=this.bind(console[e],console)},Function.prototype.call)}if("undefined"==typeof FEATURE_NO_IE&&(!window.CustomEvent||"function"!=typeof window.CustomEvent)){var C=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};C.prototype=window.Event.prototype,window.CustomEvent=C}if(Element&&!Element.prototype.matches){var _=Element.prototype;_.matches=_.matchesSelector||_.mozMatchesSelector||_.msMatchesSelector||_.oMatchesSelector||_.webkitMatchesSelector}var k=e._FEATURE={shadowDOM:!!HTMLElement.prototype.attachShadow,scopedCSS:"scoped"in document.createElement("style"),htmlTemplateElement:function(){var e=document.createElement("div");return e.innerHTML="<template></template>","content"in e.children[0]}(),mutationObserver:!(!window.MutationObserver&&!window.WebKitMutationObserver),ensureHTMLTemplateElement:function(e){return e}};if("undefined"==typeof FEATURE_NO_IE){var O=function(e){return"template"===e.tagName&&"http://www.w3.org/2000/svg"===e.namespaceURI},S=function(e){var t=e.ownerDocument.createElement("template"),n=e.attributes,i=n.length,r=void 0;for(e.parentNode.insertBefore(t,e);i-- >0;)r=n[i],t.setAttribute(r.name,r.value),e.removeAttribute(r.name);return e.parentNode.removeChild(e),E(t)},E=function(e){for(var t=e.content=document.createDocumentFragment(),n=void 0;n=e.firstChild;)t.appendChild(n);return e},A=function(e){for(var t=E(e).content,n=t.querySelectorAll("template"),i=0,r=n.length;i<r;++i){var o=n[i];O(o)?S(o):E(o)}return e};k.htmlTemplateElement||(k.ensureHTMLTemplateElement=A)}var M=window.ShadowDOMPolyfill||null,T=e._DOM={Element:Element,NodeList:NodeList,SVGElement:SVGElement,boundary:"aurelia-dom-boundary",addEventListener:function(e,t,n){document.addEventListener(e,t,n)},removeEventListener:function(e,t,n){document.removeEventListener(e,t,n)},adoptNode:function(e){return document.adoptNode(e)},createAttribute:function(e){return document.createAttribute(e)},createElement:function(e){return document.createElement(e)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},createDocumentFragment:function(){return document.createDocumentFragment()},createTemplateElement:function(){var e=document.createElement("template");return k.ensureHTMLTemplateElement(e)},createMutationObserver:function(e){return new(window.MutationObserver||window.WebKitMutationObserver)(e)},createCustomEvent:function(e,t){return new window.CustomEvent(e,t)},dispatchEvent:function(e){document.dispatchEvent(e)},getComputedStyle:function(e){return window.getComputedStyle(e)},getElementById:function(e){return document.getElementById(e)},querySelector:function(e){return document.querySelector(e)},querySelectorAll:function(e){return document.querySelectorAll(e)},nextElementSibling:function(e){if(e.nextElementSibling)return e.nextElementSibling;do{e=e.nextSibling}while(e&&1!==e.nodeType);return e},createTemplateFromMarkup:function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.firstElementChild;if(!n||"TEMPLATE"!==n.nodeName)throw new Error("Template markup must be wrapped in a <template> element e.g. <template> \x3c!-- markup here --\x3e </template>");return k.ensureHTMLTemplateElement(n)},appendNode:function(e,t){(t||document.body).appendChild(e)},replaceNode:function(e,t,n){t.parentNode?t.parentNode.replaceChild(e,t):null!==M?M.unwrap(n).replaceChild(M.unwrap(e),M.unwrap(t)):n.replaceChild(e,t)},removeNode:function(e,t){e.parentNode?e.parentNode.removeChild(e):t&&(null!==M?M.unwrap(t).removeChild(M.unwrap(e)):t.removeChild(e))},injectStyles:function(e,t,n,i){if(i){var r=document.getElementById(i);if(r){if("style"===r.tagName.toLowerCase())return void(r.innerHTML=e);throw new Error("The provided id does not indicate a style tag.")}}var o=document.createElement("style");return o.innerHTML=e,o.type="text/css",i&&(o.id=i),t=t||document.head,n&&t.childNodes.length>0?t.insertBefore(o,t.childNodes[0]):t.appendChild(o),o}}}),define("aurelia-metadata",["exports","aurelia-pal"],function(e,t){"use strict";function n(e){return e&&("function"==typeof e||"object"===(void 0===e?"undefined":p(e)))}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,n,i){var r=t.length;if(n){for(i=i||{value:e[n],writable:!0,configurable:!0,enumerable:!0};r--;)i=t[r](e,n,i)||i;Object.defineProperty(e,n,i)}else for(;r--;)e=t[r](e)||e;return e};return i.on=i,i}function r(e,t,n){function i(n,i,r){var o=n.constructor.name+"#"+i,s=t?{}:e||{},a="DEPRECATION - "+o;if("function"!=typeof r.value)throw new SyntaxError("Only methods can be marked as deprecated.");return s.message&&(a+=" - "+s.message),d({},r,{value:function(){if(s.error)throw new Error(a);return console.warn(a),r.value.apply(this,arguments)}})}return t?i(e,t,n):i}function o(e){function t(t){var i=function(t){for(var i="function"==typeof t?t.prototype:t,r=n.length;r--;){var o=n[r];Object.defineProperty(i,o,{value:e[o],writable:!0})}};return t?i(t):i}var n=Object.keys(e);return t}function s(){return!0}function a(){}function u(e){return void 0===e?e={}:"function"==typeof e&&(e={validate:e}),e.validate||(e.validate=s),e.compose||(e.compose=a),e}function l(e){return function(t){return!0===e(t)}}function c(e,t){return function(n){var i=t(n);if(!0!==i)throw new Error(i||e+" was not correctly implemented.")}}function h(e,t){t=u(t);var n=function n(i){var r="function"==typeof i?i.prototype:i;t.compose(r),n.assert(r),Object.defineProperty(r,"protocol:"+e,{enumerable:!1,configurable:!1,writable:!1,value:!0})};return n.validate=l(t.validate),n.assert=c(e,t.validate),n}Object.defineProperty(e,"__esModule",{value:!0}),e.Origin=e.metadata=void 0,e.decorators=i,e.deprecated=r,e.mixin=o,e.protocol=h;var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=e.metadata={resource:"aurelia:resource",paramTypes:"design:paramtypes",propertyType:"design:type",properties:"design:properties",get:function(e,t,i){if(n(t)){var r=f.getOwn(e,t,i);return void 0===r?f.get(e,Object.getPrototypeOf(t),i):r}},getOwn:function(e,t,i){if(n(t))return Reflect.getOwnMetadata(e,t,i)},define:function(e,t,n,i){Reflect.defineMetadata(e,t,n,i)},getOrCreateOwn:function(e,t,n,i){var r=f.getOwn(e,n,i);return void 0===r&&(r=new t,Reflect.defineMetadata(e,r,n,i)),r}},v=new Map,m=Object.freeze({moduleId:void 0,moduleMember:void 0});e.Origin=function(){function e(e,t){this.moduleId=e,this.moduleMember=t}return e.get=function(n){var i=v.get(n);return void 0===i&&t.PLATFORM.eachModule(function(t,r){if("object"===(void 0===r?"undefined":p(r)))for(var o in r)try{var s=r[o];if(s===n)return v.set(n,i=new e(t,o)),!0}catch(e){}return r===n&&(v.set(n,i=new e(t,"default")),!0)}),i||m},e.set=function(e,t){v.set(e,t)},e}();h.create=function(e,t){t=u(t);var n="protocol:"+e,i=function(n){var i=h(e,t);return n?i(n):i};return i.decorates=function(e){return!0===e[n]},i.validate=l(t.validate),i.assert=c(e,t.validate),i}}),define("aurelia-logging",["exports"],function(e){"use strict";function t(e){return w.filter(function(t){return t===e}).length>0}function n(){return[this].concat(Array.prototype.slice.call(arguments))}function i(e){var t=m[e];return function(){if(!(this.level<t))for(var i=n.apply(this,arguments),r=y.length;r--;){var o;(o=y[r])[e].apply(o,i)}}}function r(e){var t=m[e];return function(){if(!(this.level<t))for(var i=n.apply(this,arguments),r=y.length;r--;){var o=y[r];void 0!==o[e]&&o[e].apply(o,i)}}}function o(){var e=x.prototype;for(var n in m)t(n)?"none"!==n&&(e[n]=i(n)):e[n]=r(n)}function s(){var e=x.prototype;for(var t in m)"none"!==t&&(e[t]=function(){})}function a(e){return g[e]||new x(e)}function u(e){1===y.push(e)&&o()}function l(e){y=y.filter(function(t){return t!==e})}function c(){return[].concat(y)}function h(){y=[],s()}function d(e,t){if(void 0!==m[e])throw Error('Log level "'+e+'" already exists.');if(isNaN(t))throw Error("Value must be a number.");m[e]=t,y.length>0?o():x.prototype[e]=function(){}}function p(e){if(void 0!==m[e]){if(t(e))throw Error('Built-in log level "'+e+'" cannot be removed.');delete m[e],delete x.prototype[e]}}function f(e){b=e;for(var t in g)g[t].setLevel(e)}function v(){return b}Object.defineProperty(e,"__esModule",{value:!0}),e.getLogger=a,e.addAppender=u,e.removeAppender=l,e.getAppenders=c,e.clearAppenders=h,e.addCustomLevel=d,e.removeCustomLevel=p,e.setLevel=f,e.getLevel=v;var m=e.logLevel={none:0,error:10,warn:20,info:30,debug:40},g={},y=[],b=m.none,w=["none","error","warn","info","debug"],x=e.Logger=function(){function e(e){var t=g[e];if(t)return t;g[e]=this,this.id=e,this.level=b}return e.prototype.debug=function(e){},e.prototype.info=function(e){},e.prototype.warn=function(e){},e.prototype.error=function(e){},e.prototype.setLevel=function(e){this.level=e},e.prototype.isDebugEnabled=function(){return this.level===m.debug},e}()}),define("aurelia-logging-console",["exports","aurelia-logging"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleAppender=void 0;e.ConsoleAppender=function(){function e(){}return e.prototype.debug=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=console).debug.apply(t,["DEBUG ["+e.id+"]"].concat(i))},e.prototype.info=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=console).info.apply(t,["INFO ["+e.id+"]"].concat(i))},e.prototype.warn=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=console).warn.apply(t,["WARN ["+e.id+"]"].concat(i))},e.prototype.error=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];(t=console).error.apply(t,["ERROR ["+e.id+"]"].concat(i))},e}()}),define("aurelia-loader",["exports","aurelia-path","aurelia-metadata"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=e.TemplateRegistryEntry=e.TemplateDependency=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=e.TemplateDependency=function(e,t){this.src=e,this.name=t},o=e.TemplateRegistryEntry=function(){function e(e){this.templateIsLoaded=!1,this.factoryIsReady=!1,this.resources=null,this.dependencies=null,this.address=e,this.onReady=null,this._template=null,this._factory=null}return e.prototype.addDependency=function(e,i){var o="string"==typeof e?(0,t.relativeToFile)(e,this.address):n.Origin.get(e).moduleId;this.dependencies.push(new r(o,i))},i(e,[{key:"template",get:function(){return this._template},set:function(e){var n=this.address,i=void 0,o=void 0,s=void 0,a=void 0;this._template=e,this.templateIsLoaded=!0,i=e.content.querySelectorAll("require"),a=this.dependencies=new Array(i.length);for(var u=0,l=i.length;u<l;++u){if(o=i[u],!(s=o.getAttribute("from")))throw new Error("<require> element in "+n+' has no "from" attribute.');a[u]=new r((0,t.relativeToFile)(s,n),o.getAttribute("as")),o.parentNode&&o.parentNode.removeChild(o)}}},{key:"factory",get:function(){return this._factory},set:function(e){this._factory=e,this.factoryIsReady=!0}}]),e}();e.Loader=function(){function e(){this.templateRegistry={}}return e.prototype.map=function(e,t){throw new Error("Loaders must implement map(id, source).")},e.prototype.normalizeSync=function(e,t){throw new Error("Loaders must implement normalizeSync(moduleId, relativeTo).")},e.prototype.normalize=function(e,t){throw new Error("Loaders must implement normalize(moduleId: string, relativeTo: string): Promise<string>.")},e.prototype.loadModule=function(e){throw new Error("Loaders must implement loadModule(id).")},e.prototype.loadAllModules=function(e){throw new Error("Loader must implement loadAllModules(ids).")},e.prototype.loadTemplate=function(e){throw new Error("Loader must implement loadTemplate(url).")},e.prototype.loadText=function(e){throw new Error("Loader must implement loadText(url).")},e.prototype.applyPluginToUrl=function(e,t){throw new Error("Loader must implement applyPluginToUrl(url, pluginName).")},e.prototype.addPlugin=function(e,t){throw new Error("Loader must implement addPlugin(pluginName, implementation).")},e.prototype.getOrCreateTemplateRegistryEntry=function(e){return this.templateRegistry[e]||(this.templateRegistry[e]=new o(e))},e}()}),define("aurelia-loader-default",["exports","aurelia-loader","aurelia-pal","aurelia-metadata"],function(e,t,n,i){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=e,r=void 0,o=void 0;n.__useDefault&&(n=n.default),i.Origin.set(n,new i.Origin(t,"default"));for(r in n)"function"==typeof(o=n[r])&&i.Origin.set(o,new i.Origin(t,r));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultLoader=e.TextTemplateLoader=void 0;var a=e.TextTemplateLoader=function(){function e(){}return e.prototype.loadTemplate=function(e,t){return e.loadText(t.address).then(function(e){t.template=n.DOM.createTemplateFromMarkup(e)})},e}(),u=e.DefaultLoader=function(e){function t(){var t=r(this,e.call(this));t.textPluginName="text",t.moduleRegistry=Object.create(null),t.useTemplateLoader(new a);var n=t;return t.addPlugin("template-registry-entry",{fetch:function(e){var t=n.getOrCreateTemplateRegistryEntry(e);return t.templateIsLoaded?t:n.templateLoader.loadTemplate(n,t).then(function(e){return t})}}),t}return o(t,e),t.prototype.useTemplateLoader=function(e){this.templateLoader=e},t.prototype.loadAllModules=function(e){for(var t=[],n=0,i=e.length;n<i;++n)t.push(this.loadModule(e[n]));return Promise.all(t)},t.prototype.loadTemplate=function(e){return this._import(this.applyPluginToUrl(e,"template-registry-entry"))},t.prototype.loadText=function(e){return this._import(this.applyPluginToUrl(e,this.textPluginName)).then(function(e){return"string"==typeof e?e:e.default})},t}(t.Loader);n.PLATFORM.Loader=u,n.PLATFORM.global.System&&n.PLATFORM.global.System.import?(n.PLATFORM.eachModule=function(e){if(System.registry)for(var t=Array.from(System.registry.keys()),n=0;n<t.length;n++)try{var i=t[n];if(e(i,System.registry.get(i)))return}catch(e){}else{var r=System._loader.modules;for(var o in r)try{if(e(o,r[o].module))return}catch(e){}}},System.set("text",System.newModule({translate:function(e){return'module.exports = "'+e.source.replace(/(["\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")+'";'}})),u.prototype._import=function(e){return System.import(e)},u.prototype.loadModule=function(e){var t=this;return System.normalize(e).then(function(e){var n=t.moduleRegistry[e];return void 0!==n?Promise.resolve(n):System.import(e).then(function(n){return t.moduleRegistry[e]=n,s(n,e)})})},u.prototype.map=function(e,t){var n;System.config({map:(n={},n[e]=t,n)})},u.prototype.normalizeSync=function(e,t){return System.normalizeSync(e,t)},u.prototype.normalize=function(e,t){return System.normalize(e,t)},u.prototype.applyPluginToUrl=function(e,t){return e+"!"+t},u.prototype.addPlugin=function(e,t){System.set(e,System.newModule({fetch:function(e,n){var i=t.fetch(e.address);return Promise.resolve(i).then(function(t){return e.metadata.result=t,""})},instantiate:function(e){return e.metadata.result}}))}):(n.PLATFORM.global.requirejs&&requirejs.s&&requirejs.s.contexts&&requirejs.s.contexts._&&requirejs.s.contexts._.defined?n.PLATFORM.eachModule=function(e){var t=requirejs.s.contexts._.defined;for(var n in t)try{if(e(n,t[n]))return}catch(e){}}:n.PLATFORM.eachModule=function(e){},u.prototype._import=function(e){return new Promise(function(t,i){n.PLATFORM.global.require([e],t,i)})},u.prototype.loadModule=function(e){var t=this,i=this.moduleRegistry[e];return void 0!==i?Promise.resolve(i):new Promise(function(i,r){n.PLATFORM.global.require([e],function(n){t.moduleRegistry[e]=n,i(s(n,e))},r)})},u.prototype.map=function(e,t){},u.prototype.normalize=function(e,t){return Promise.resolve(e)},u.prototype.normalizeSync=function(e,t){return e},u.prototype.applyPluginToUrl=function(e,t){return t+"!"+e},u.prototype.addPlugin=function(e,t){define(e,[],{load:function(e,n,i){var r=t.fetch(e);Promise.resolve(r).then(i)}})})}),define("aurelia-framework",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-metadata","aurelia-templating","aurelia-loader","aurelia-task-queue","aurelia-path","aurelia-pal","aurelia-logging"],function(e,t,n,i,r,o,s,a,u,l){"use strict";function c(){u.DOM.addEventListener("submit",function(e){var t=e.target,n=t.action;"form"!==t.tagName.toLowerCase()||n||e.preventDefault()})}function h(e,t){var n=void 0;return function i(){return n=t.shift(),n?Promise.resolve(n(e)).then(i):Promise.resolve()}()}function d(e,t,n){function i(i){return t.loadModule(i).then(function(t){if("configure"in t)return-1!==e.configuredPlugins.indexOf(t.configure)?Promise.resolve():Promise.resolve(t.configure(e,n.config||{})).then(function(){e.configuredPlugins.push(t.configure),e.resourcesRelativeTo=null,w.debug("Configured plugin "+n.moduleId+".")});e.resourcesRelativeTo=null,w.debug("Loaded plugin "+n.moduleId+".")})}if(w.debug("Loading plugin "+n.moduleId+"."),"string"==typeof n.moduleId){e.resourcesRelativeTo=n.resourcesRelativeTo;var r=n.moduleId;return n.resourcesRelativeTo.length>1?t.normalize(n.moduleId,n.resourcesRelativeTo[1]).then(function(e){return i(e)}):i(r)}if("function"==typeof n.configure)return-1!==e.configuredPlugins.indexOf(n.configure)?Promise.resolve():(e.configuredPlugins.push(n.configure),Promise.resolve(n.configure.call(null,e,n.config||{})));throw new Error(g(n.moduleId||n.configure,"plugin"))}function p(e,t,n){function i(t){var n=t.moduleId,i=f(n);return o(n)&&(n=s(n)),e.loader.normalize(n,t.relativeTo).then(function(e){return{name:t.moduleId,importId:o(t.moduleId)?a(e,i):e}})}function o(e){var t=f(e);return!!t&&(""!==t&&(".js"!==t&&".ts"!==t))}function s(e){return e.replace(x,"")}function a(e,t){return s(e)+"."+t}if(0===Object.keys(t).length)return Promise.resolve();var u=e.container.get(r.ViewEngine);return Promise.all(Object.keys(t).map(function(e){return i(t[e])})).then(function(e){var t=[],i=[];return e.forEach(function(e){t.push(void 0),i.push(e.importId)}),u.importViewResources(i,t,n)})}function f(e){var t=e.match(x);if(t&&t.length>0)return t[0].split(".")[1]}function v(e){return Promise.all(e.behaviorsToLoad.map(function(t){return t.load(e.container,t.target)})).then(function(){e.behaviorsToLoad=null})}function m(e){if(e.processed)throw new Error("This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.")}function g(e,t){return"Invalid "+t+" ["+e+"], "+t+" must be specified as functions or relative module IDs."}Object.defineProperty(e,"__esModule",{value:!0}),e.LogManager=e.FrameworkConfiguration=e.Aurelia=void 0,Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}),Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}),Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}),Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w=(e.Aurelia=function(){function e(n,i,s){this.loader=n||new u.PLATFORM.Loader,this.container=i||(new t.Container).makeGlobal(),this.resources=s||new r.ViewResources,this.use=new C(this),this.logger=y.getLogger("aurelia"),this.hostConfigured=!1,this.host=null,this.use.instance(e,this),this.use.instance(o.Loader,this.loader),this.use.instance(r.ViewResources,this.resources)}return e.prototype.start=function(){var e=this;return this._started?this._started:(this.logger.info("Aurelia Starting"),this._started=this.use.apply().then(function(){if(c(),!e.container.hasResolver(r.BindingLanguage)){var t="You must configure Aurelia with a BindingLanguage implementation.";throw e.logger.error(t),new Error(t)}e.logger.info("Aurelia Started");var n=u.DOM.createCustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return u.DOM.dispatchEvent(n),e}))},e.prototype.enhance=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._configureHost(n||u.DOM.querySelectorAll("body")[0]),new Promise(function(n){var i=e.container.get(r.TemplatingEngine);e.root=i.enhance({container:e.container,element:e.host,resources:e.resources,bindingContext:t}),e.root.attached(),e._onAureliaComposed(),n(e)})},e.prototype.setRoot=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i={};this.root&&this.root.viewModel&&this.root.viewModel.router&&(this.root.viewModel.router.deactivate(),this.root.viewModel.router.reset()),this._configureHost(n);var o=this.container.get(r.TemplatingEngine);return delete this.container.get(r.CompositionTransaction).initialComposition,t||(t=this.configModuleId?(0,a.relativeToFile)("./app",this.configModuleId):"app"),i.viewModel=t,i.container=i.childContainer=this.container,i.viewSlot=this.hostSlot,i.host=this.host,o.compose(i).then(function(t){return e.root=t,i.viewSlot.attached(),e._onAureliaComposed(),e})},e.prototype._configureHost=function(e){if(!this.hostConfigured){if(e=e||this.host,this.host=e&&"string"!=typeof e?e:u.DOM.getElementById(e||"applicationHost"),!this.host)throw new Error("No applicationHost was specified.");this.hostConfigured=!0,this.host.aurelia=this,this.hostSlot=new r.ViewSlot(this.host,!0),this.hostSlot.transformChildNodesIntoView(),this.container.registerInstance(u.DOM.boundary,this.host)}},e.prototype._onAureliaComposed=function(){var e=u.DOM.createCustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});setTimeout(function(){return u.DOM.dispatchEvent(e)},1)},e}(),y.getLogger("aurelia")),x=/\.[^\/.]+$/,C=function(){function e(e){var t=this;this.aurelia=e,this.container=e.container,this.info=[],this.processed=!1,this.preTasks=[],this.postTasks=[],this.behaviorsToLoad=[],this.configuredPlugins=[],this.resourcesToLoad={},this.preTask(function(){return e.loader.normalize("aurelia-bootstrapper").then(function(e){return t.bootstrapperName=e})}),this.postTask(function(){return p(e,t.resourcesToLoad,e.resources)})}return e.prototype.instance=function(e,t){return this.container.registerInstance(e,t),this},e.prototype.singleton=function(e,t){return this.container.registerSingleton(e,t),this},e.prototype.transient=function(e,t){return this.container.registerTransient(e,t),this},e.prototype.preTask=function(e){return m(this),this.preTasks.push(e),this},e.prototype.postTask=function(e){return m(this),this.postTasks.push(e),this},e.prototype.feature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(void 0===e?"undefined":b(e)){case"string":var n=/\/index$/i.test(e),i=n||f(e)?e:e+"/index",r=n?e.substr(0,e.length-6):e;this.info.push({moduleId:i,resourcesRelativeTo:[r,""],config:t});break;case"function":this.info.push({configure:e,config:t||{}});break;default:throw new Error(g(e,"feature"))}return this},e.prototype.globalResources=function(e){var t=this;m(this);for(var n=Array.isArray(e)?e:arguments,i=void 0,o=this.resourcesRelativeTo||["",""],s=0,u=n.length;s<u;++s)switch(i=n[s],void 0===i?"undefined":b(i)){case"string":var l=o[0],c=o[1],h=i;(i.startsWith("./")||i.startsWith("../"))&&""!==l&&(h=(0,a.join)(l,i)),this.resourcesToLoad[h]={moduleId:h,relativeTo:c};break;case"function":var d=this.aurelia.resources.autoRegister(this.container,i);d instanceof r.HtmlBehaviorResource&&null!==d.elementName&&1===this.behaviorsToLoad.push(d)&&this.postTask(function(){return v(t)});break;default:throw new Error(g(i,"resource"))}return this},e.prototype.globalName=function(e,t){return m(this),this.resourcesToLoad[e]={moduleId:t,relativeTo:""},this},e.prototype.plugin=function(e,t){m(this);var n=void 0;switch(void 0===e?"undefined":b(e)){case"string":n={moduleId:e,resourcesRelativeTo:[e,""],config:t||{}};break;case"function":n={configure:e,config:t||{}};break;default:throw new Error(g(e,"plugin"))}return this.info.push(n),this},e.prototype._addNormalizedPlugin=function(e,t){var n=this,i={moduleId:e,resourcesRelativeTo:[e,""],config:t||{}};return this.info.push(i),this.preTask(function(){var t=[e,n.bootstrapperName];return i.moduleId=e,i.resourcesRelativeTo=t,Promise.resolve()}),this},e.prototype.defaultBindingLanguage=function(){return this._addNormalizedPlugin("aurelia-templating-binding")},e.prototype.router=function(){return this._addNormalizedPlugin("aurelia-templating-router")},e.prototype.history=function(){return this._addNormalizedPlugin("aurelia-history-browser")},e.prototype.defaultResources=function(){return this._addNormalizedPlugin("aurelia-templating-resources")},e.prototype.eventAggregator=function(){return this._addNormalizedPlugin("aurelia-event-aggregator")},e.prototype.basicConfiguration=function(){return this.defaultBindingLanguage().defaultResources().eventAggregator()},e.prototype.standardConfiguration=function(){return this.basicConfiguration().history().router()},e.prototype.developmentLogging=function(e){var t=this,n=e?y.logLevel[e]:void 0;return void 0===n&&(n=y.logLevel.debug),this.preTask(function(){return t.aurelia.loader.normalize("aurelia-logging-console",t.bootstrapperName).then(function(e){return t.aurelia.loader.loadModule(e).then(function(e){y.addAppender(new e.ConsoleAppender),y.setLevel(n)})})}),this},e.prototype.apply=function(){var e=this;return this.processed?Promise.resolve():h(this,this.preTasks).then(function(){var t=e.aurelia.loader,n=e.info,i=void 0;return function r(){return(i=n.shift())?d(e,t,i).then(r):(e.processed=!0,e.configuredPlugins=null,Promise.resolve())}().then(function(){return h(e,e.postTasks)})})},e}();e.FrameworkConfiguration=C;e.LogManager=y}),define("aurelia-event-aggregator",["exports","aurelia-logging"],function(e,t){"use strict";function n(e,t,n){try{e(t,n)}catch(e){a.error(e)}}function i(e,t){try{e.handle(t)}catch(e){a.error(e)}}function r(e){var t=new l;return e.subscribeOnce=function(e,n){return t.subscribeOnce(e,n)},e.subscribe=function(e,n){return t.subscribe(e,n)},e.publish=function(e,n){t.publish(e,n)},t}function o(e){e.instance(l,r(e.aurelia))}Object.defineProperty(e,"__esModule",{value:!0}),e.EventAggregator=void 0,e.includeEventsIn=r,e.configure=o;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(t),a=s.getLogger("event-aggregator"),u=function(){function e(e,t){this.messageType=e,this.callback=t}return e.prototype.handle=function(e){e instanceof this.messageType&&this.callback.call(null,e)},e}(),l=e.EventAggregator=function(){function e(){this.eventLookup={},this.messageHandlers=[]}return e.prototype.publish=function(e,t){var r=void 0,o=void 0;if(!e)throw new Error("Event was invalid.");if("string"==typeof e){if(r=this.eventLookup[e])for(r=r.slice(),o=r.length;o--;)n(r[o],t,e)}else for(r=this.messageHandlers.slice(),o=r.length;o--;)i(r[o],e)},e.prototype.subscribe=function(e,t){var n=void 0,i=void 0;if(!e)throw new Error("Event channel/type was invalid.");return"string"==typeof e?(n=t,i=this.eventLookup[e]||(this.eventLookup[e]=[])):(n=new u(e,t),i=this.messageHandlers),i.push(n),{dispose:function(){var e=i.indexOf(n);-1!==e&&i.splice(e,1)}}},e.prototype.subscribeOnce=function(e,t){var n=this.subscribe(e,function(e,i){return n.dispose(),t(e,i)});return n},e}()}),define("aurelia-dependency-injection",["exports","aurelia-metadata","aurelia-pal"],function(e,t,n){"use strict";function i(e){return y(e),e.inject}function r(e){return function(t,n,r){i(t)[r]=N.of(e)}}function o(e){return function(t,n,r){i(t)[r]=F.of(e)}}function s(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=function(e){return function(t,n,r){var o=i(t);o[r]=I.of(o[r],e)}};return t("boolean"==typeof e?e:!0)}function a(e,t,n){var r=i(e);r[n]=D.of(r[n])}function u(e){return function(t,n,r){i(t)[r]=q.of(e)}}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(e){return function(t,r,o){var s=i(t);s[o]=z.of.apply(z,[s[o]].concat(n)),e&&s[o].as(e)}};return arguments.length>=1?o(e):o()}function c(e){return function(n){t.metadata.define(t.metadata.invoker,e,n)}}function h(e){var n=function(e){t.metadata.define(t.metadata.invoker,H.instance,e)};return e?n(e):n}function d(e){return function(n){t.metadata.define(t.metadata.registration,e,n)}}function p(e){return d(new U(e))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return d(new W(e,t))}function v(e){if(null===e||void 0===e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function m(e,t,n,i){for(var r=n.length,o=new Array(r),s=void 0;r--;){if(null===(s=n[r])||void 0===s)throw new Error("Constructor Parameter with index "+r+" cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?");o[r]=e.get(s)}return void 0!==i&&(o=o.concat(i)),Reflect.construct(t,o)}function g(e){
return e.hasOwnProperty("inject")?"function"==typeof e.inject?e.inject():e.inject:[]}function y(e){var n=function(e){e.hasOwnProperty("inject")||(e.inject=(t.metadata.getOwn(t.metadata.paramTypes,e)||Q).slice())};return e?n(e):n}function b(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,i){if("number"==typeof i)return y(e),void(1===t.length&&(e.inject[i]=t[0]));if(i){i.value.inject=t}else e.inject=t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Container=e.InvocationHandler=e._emptyParameters=e.SingletonRegistration=e.TransientRegistration=e.FactoryInvoker=e.NewInstance=e.Factory=e.Parent=e.Optional=e.All=e.Lazy=e.StrategyResolver=e.resolver=void 0,e.getDecoratorDependencies=i,e.lazy=r,e.all=o,e.optional=s,e.parent=a,e.factory=u,e.newInstance=l,e.invoker=c,e.invokeAsFactory=h,e.registration=d,e.transient=p,e.singleton=f,e.autoinject=y,e.inject=b;var w,x,C,_,k,O,S,E,A,M,T,R,V,P,B,L=e.resolver=t.protocol.create("aurelia:resolver",function(e){return"function"==typeof e.get||"Resolvers must implement: get(container: Container, key: any): any"}),j=e.StrategyResolver=(w=L())(x=function(){function e(e,t){this.strategy=e,this.state=t}return e.prototype.get=function(e,t){switch(this.strategy){case 0:return this.state;case 1:var n=e.invoke(this.state);return this.state=n,this.strategy=0,n;case 2:return e.invoke(this.state);case 3:return this.state(e,t,this);case 4:return this.state[0].get(e,t);case 5:return e.get(this.state);default:throw new Error("Invalid strategy: "+this.strategy)}},e}())||x,N=e.Lazy=(C=L())(_=function(){function e(e){this._key=e}return e.prototype.get=function(e){var t=this;return function(){return e.get(t._key)}},e.of=function(t){return new e(t)},e}())||_,F=e.All=(k=L())(O=function(){function e(e){this._key=e}return e.prototype.get=function(e){return e.getAll(this._key)},e.of=function(t){return new e(t)},e}())||O,I=e.Optional=(S=L())(E=function(){function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._key=e,this._checkParent=t}return e.prototype.get=function(e){return e.hasResolver(this._key,this._checkParent)?e.get(this._key):null},e.of=function(t){return new e(t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])},e}())||E,D=e.Parent=(A=L())(M=function(){function e(e){this._key=e}return e.prototype.get=function(e){return e.parent?e.parent.get(this._key):null},e.of=function(t){return new e(t)},e}())||M,q=e.Factory=(T=L())(R=function(){function e(e){this._key=e}return e.prototype.get=function(e){var t=this._key,n=e.getResolver(t);return n&&3===n.strategy&&(t=n.state),function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.invoke(t,i)}},e.of=function(t){return new e(t)},e}())||R,z=e.NewInstance=(V=L())(P=function(){function e(e){this.key=e,this.asKey=e;for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.dynamicDependencies=n}return e.prototype.get=function(e){var t=this.dynamicDependencies.length>0?this.dynamicDependencies.map(function(t){return t["protocol:aurelia:resolver"]?t.get(e):e.get(t)}):void 0,n=this.key,i=e.getResolver(n);i&&3===i.strategy&&(n=i.state);var r=e.invoke(n,t);return e.registerInstance(this.asKey,r),r},e.prototype.as=function(e){return this.asKey=e,this},e.of=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return new(Function.prototype.bind.apply(e,[null].concat([t],i)))},e}())||P,H=e.FactoryInvoker=function(){function e(){}return e.prototype.invoke=function(e,t,n){for(var i=n.length,r=new Array(i);i--;)r[i]=e.get(n[i]);return t.apply(void 0,r)},e.prototype.invokeWithDynamicDependencies=function(e,t,n,i){for(var r=n.length,o=new Array(r);r--;)o[r]=e.get(n[r]);return void 0!==i&&(o=o.concat(i)),t.apply(void 0,o)},e}();H.instance=new H;var U=e.TransientRegistration=function(){function e(e){this._key=e}return e.prototype.registerResolver=function(e,t,n){var i=e.getResolver(this._key||t);return void 0===i?e.registerTransient(this._key||t,n):i},e}(),W=e.SingletonRegistration=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"boolean"==typeof e?this._registerInChild=e:(this._key=e,this._registerInChild=t)}return e.prototype.registerResolver=function(e,t,n){var i=this._registerInChild?e:e.root,r=i.getResolver(this._key||t);return void 0===r?i.registerSingleton(this._key||t,n):r},e}(),Q=e._emptyParameters=Object.freeze([]);t.metadata.registration="aurelia:registration",t.metadata.invoker="aurelia:invoker";var $=L.decorates,G=e.InvocationHandler=function(){function e(e,t,n){this.fn=e,this.invoker=t,this.dependencies=n}return e.prototype.invoke=function(e,t){return void 0!==t?this.invoker.invokeWithDynamicDependencies(e,this.fn,this.dependencies,t):this.invoker.invoke(e,this.fn,this.dependencies)},e}(),K=(B={},B[0]={invoke:function(e,t){return new t},invokeWithDynamicDependencies:m},B[1]={invoke:function(e,t,n){return new t(e.get(n[0]))},invokeWithDynamicDependencies:m},B[2]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]))},invokeWithDynamicDependencies:m},B[3]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]),e.get(n[2]))},invokeWithDynamicDependencies:m},B[4]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]),e.get(n[2]),e.get(n[3]))},invokeWithDynamicDependencies:m},B[5]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]),e.get(n[2]),e.get(n[3]),e.get(n[4]))},invokeWithDynamicDependencies:m},B.fallback={invoke:m,invokeWithDynamicDependencies:m},B);e.Container=function(){function e(e){void 0===e&&(e={}),this._configuration=e,this._onHandlerCreated=e.onHandlerCreated,this._handlers=e.handlers||(e.handlers=new Map),this._resolvers=new Map,this.root=this,this.parent=null}return e.prototype.makeGlobal=function(){return e.instance=this,this},e.prototype.setHandlerCreatedCallback=function(e){this._onHandlerCreated=e,this._configuration.onHandlerCreated=e},e.prototype.registerInstance=function(e,t){return this.registerResolver(e,new j(0,void 0===t?e:t))},e.prototype.registerSingleton=function(e,t){return this.registerResolver(e,new j(1,void 0===t?e:t))},e.prototype.registerTransient=function(e,t){return this.registerResolver(e,new j(2,void 0===t?e:t))},e.prototype.registerHandler=function(e,t){return this.registerResolver(e,new j(3,t))},e.prototype.registerAlias=function(e,t){return this.registerResolver(t,new j(5,e))},e.prototype.registerResolver=function(e,t){v(e);var n=this._resolvers,i=n.get(e);return void 0===i?n.set(e,t):4===i.strategy?i.state.push(t):n.set(e,new j(4,[i,t])),t},e.prototype.autoRegister=function(e,n){if("function"==typeof(n=void 0===n?e:n)){var i=t.metadata.get(t.metadata.registration,n);return void 0===i?this.registerResolver(e,new j(1,n)):i.registerResolver(this,e,n)}return this.registerResolver(e,new j(0,n))},e.prototype.autoRegisterAll=function(e){for(var t=e.length;t--;)this.autoRegister(e[t])},e.prototype.unregister=function(e){this._resolvers.delete(e)},e.prototype.hasResolver=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v(e),this._resolvers.has(e)||t&&null!==this.parent&&this.parent.hasResolver(e,t)},e.prototype.getResolver=function(e){return this._resolvers.get(e)},e.prototype.get=function(n){if(v(n),n===e)return this;if($(n))return n.get(this,n);var i=this._resolvers.get(n);if(void 0===i){if(null===this.parent)return this.autoRegister(n).get(this,n);var r=t.metadata.get(t.metadata.registration,n);return void 0===r?this.parent._get(n):r.registerResolver(this,n,n).get(this,n)}return i.get(this,n)},e.prototype._get=function(e){var t=this._resolvers.get(e);return void 0===t?null===this.parent?this.autoRegister(e).get(this,e):this.parent._get(e):t.get(this,e)},e.prototype.getAll=function(e){v(e);var t=this._resolvers.get(e);if(void 0===t)return null===this.parent?Q:this.parent.getAll(e);if(4===t.strategy){for(var n=t.state,i=n.length,r=new Array(i);i--;)r[i]=n[i].get(this,e);return r}return[t.get(this,e)]},e.prototype.createChild=function(){var t=new e(this._configuration);return t.root=this.root,t.parent=this,t},e.prototype.invoke=function(e,t){try{var i=this._handlers.get(e);return void 0===i&&(i=this._createInvocationHandler(e),this._handlers.set(e,i)),i.invoke(this,t)}catch(t){throw new n.AggregateError("Error invoking "+e.name+". Check the inner error for details.",t,!0)}},e.prototype._createInvocationHandler=function(e){var n=void 0;if(void 0===e.inject)n=t.metadata.getOwn(t.metadata.paramTypes,e)||Q;else{n=[];for(var i=e;"function"==typeof i;){var r;(r=n).push.apply(r,g(i)),i=Object.getPrototypeOf(i)}}var o=t.metadata.getOwn(t.metadata.invoker,e)||K[n.length]||K.fallback,s=new G(e,o,n);return void 0!==this._onHandlerCreated?this._onHandlerCreated(s):s},e}()}),define("aurelia-bootstrapper",["module","exports","aurelia-pal","aurelia-polyfills"],function(e,t,n){"use strict";function i(){return d.document&&"complete"!==d.document.readyState?new Promise(function(e){function t(){d.document.removeEventListener("DOMContentLoaded",t),d.removeEventListener("load",t),e()}d.document.addEventListener("DOMContentLoaded",t),d.addEventListener("load",t)}):Promise.resolve()}function r(){if(n.PLATFORM.Loader)return Promise.resolve(new n.PLATFORM.Loader);if("undefined"==typeof AURELIA_WEBPACK_2_0){if("undefined"!=typeof __webpack_require__){var t=__webpack_require__(require.resolve("aurelia-loader-webpack"));return Promise.resolve(new t.WebpackLoader)}if(d.System&&"function"==typeof d.System.config)return d.System.normalize("aurelia-bootstrapper").then(function(e){return d.System.normalize("aurelia-loader-default",e)}).then(function(e){return d.System.import(e).then(function(e){return new e.DefaultLoader})});if("function"==typeof d.require&&"string"==typeof d.require.version)return new Promise(function(e,t){return d.require(["aurelia-loader-default"],function(t){return e(new t.DefaultLoader)},t)});if(p&&void 0!==e&&void 0!==e.require){var i=e.require("aurelia-loader-nodejs");return Promise.resolve(new i.NodeJsLoader)}}return Promise.reject("No PLATFORM.Loader is defined and there is neither a System API (ES6) or a Require API (AMD) globally available to load your app.")}function o(e){var t=void 0,i=p&&("renderer"===process.type||process.versions["node-webkit"]);if(p&&!i)t="nodejs";else if("undefined"!=typeof window)t="browser";else{if("undefined"==typeof self)throw new Error("Could not determine platform implementation to load.");t="worker"}return e.loadModule("aurelia-pal-"+t).then(function(e){return"nodejs"===t&&!n.isInitialized&&e.globalize()||e.initialize()})}function s(e){var t=function(t,n){return e.normalize(t,n).then(function(n){return e.map(t,n),n})};return o(e).then(function(){return e.normalize("aurelia-bootstrapper")}).then(function(e){var i=t(n.PLATFORM.moduleName("aurelia-framework",{exports:["Aurelia"]}),e);return Promise.all([i,i.then(function(e){return t("aurelia-dependency-injection",e)}),t("aurelia-router",e),t("aurelia-logging-console",e)])}).then(function(t){var n=t[0];return e.loadModule(n)}).then(function(t){return c(function(){return new t.Aurelia(e)})})}function a(e,t,n){return n.host=e,n.configModuleId=t||null,t?n.loader.loadModule(t).then(function(e){if(!e.configure)throw new Error("Cannot initialize module '"+t+"' without a configure function.");return e.configure(n)}):(n.use.standardConfiguration().developmentLogging(),n.start().then(function(){return n.setRoot()}))}function u(e){var t=h.then(function(t){return e(t())});return l&&l.push(t),t}Object.defineProperty(t,"__esModule",{value:!0}),t.starting=void 0,t.bootstrap=u;var l=[],c=void 0,h=new Promise(function(e){return c=e}),d=n.PLATFORM.global,p="undefined"!=typeof process&&!process.browser;t.starting=function(){return i().then(r).then(s).then(function(){for(var e=d.document.querySelectorAll("[aurelia-app],[data-aurelia-app]"),t=0,n=e.length;t<n;++t){var i=e[t],r=i.getAttribute("aurelia-app")||i.getAttribute("data-aurelia-app");u(a.bind(null,i,r))}var o=console.error.bind(console),s=l.map(function(e){return e.catch(o)});return l=null,Promise.all(s)})}()}),define("aurelia-binding",["exports","aurelia-logging","aurelia-pal","aurelia-task-queue","aurelia-metadata"],function(e,t,n,i,r){"use strict";function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){if(e in je)return je[e];var t=e.charAt(0).toLowerCase()+e.slice(1).replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()});return je[e]=t,t}function u(e,t){return{bindingContext:e,parentOverrideContext:t||null}}function l(e,t,n){var i=t.overrideContext;if(n){for(;n&&i;)n--,i=i.parentOverrideContext;if(n||!i)return;return e in i?i:i.bindingContext}for(;i&&!(e in i)&&!(i.bindingContext&&e in i.bindingContext);)i=i.parentOverrideContext;return i?e in i?i:i.bindingContext:t.bindingContext||t.overrideContext}function c(e,t){return t?{bindingContext:e,overrideContext:u(e,u(t))}:{bindingContext:e,overrideContext:u(e)}}function h(e){for(var t=void 0===this._observerSlots?0:this._observerSlots,n=t;n--&&this[Ne[n]]!==e;);if(-1===n){for(n=0;this[Ne[n]];)n++;this[Ne[n]]=e,e.subscribe(Le,this),n===t&&(this._observerSlots=n+1)}void 0===this._version&&(this._version=0),this[Fe[n]]=this._version}function d(e,t){var n=this.observerLocator.getObserver(e,t);h.call(this,n)}function p(e){var t=this.observerLocator.getArrayObserver(e);h.call(this,t)}function f(e){for(var t=this._observerSlots;t--;)if(e||this[Fe[t]]!==this._version){var n=this[Ne[t]];this[Ne[t]]=null,n&&n.unsubscribe(Le,this)}}function v(){return function(e){e.prototype.observeProperty=d,e.prototype.observeArray=p,e.prototype.unobserve=f,e.prototype.addObserver=h}}function m(e){for(var t=De.length,i=0;i<t;){var r=De[i];if(qe[r.__connectQueueId]=!1,r.connect(!0),++i%100==0&&n.PLATFORM.performance.now()-e>Ue)break}De.splice(0,i),De.length?n.PLATFORM.requestAnimationFrame(m):(We=!1,Qe=0)}function g(e){if(Qe<He)Qe++,e.connect(!1);else{var t=e.__connectQueueId;void 0===t&&(t=ze,ze++,e.__connectQueueId=t),qe[t]||(De.push(e),qe[t]=!0)}We||(We=!0,n.PLATFORM.requestAnimationFrame(m))}function y(e,t){return!this.hasSubscriber(e,t)&&(this._context0?this._context1?this._context2?this._contextsRest?(this._contextsRest.push(e),this._callablesRest.push(t),!0):(this._contextsRest=[e],this._callablesRest=[t],!0):(this._context2=e,this._callable2=t,!0):(this._context1=e,this._callable1=t,!0):(this._context0=e,this._callable0=t,!0))}function b(e,t){if(this._context0===e&&this._callable0===t)return this._context0=null,this._callable0=null,!0;if(this._context1===e&&this._callable1===t)return this._context1=null,this._callable1=null,!0;if(this._context2===e&&this._callable2===t)return this._context2=null,this._callable2=null,!0;var n=this._callablesRest;if(void 0===n||0===n.length)return!1;for(var i=this._contextsRest,r=0;(n[r]!==t||i[r]!==e)&&n.length>r;)r++;return!(r>=n.length)&&(i.splice(r,1),n.splice(r,1),!0)}function w(e,t){var n=this._context0,i=this._callable0,r=this._context1,o=this._callable1,s=this._context2,a=this._callable2,u=this._contextsRest?this._contextsRest.length:0,l=void 0,c=void 0,h=void 0,d=void 0;if(u){for(h=Ke.length;h--&&Ke[h];);for(h<0?(h=Ke.length,l=[],c=[],Ke.push(!0),$e.push(l),Ge.push(c)):(Ke[h]=!0,l=$e[h],c=Ge[h]),d=u;d--;)l[d]=this._contextsRest[d],c[d]=this._callablesRest[d]}if(n&&(i?i.call(n,e,t):n(e,t)),r&&(o?o.call(r,e,t):r(e,t)),s&&(a?a.call(s,e,t):s(e,t)),u){for(d=0;d<u;d++){var p=c[d],f=l[d];p?p.call(f,e,t):f(e,t),l[d]=null,c[d]=null}Ke[h]=!1}}function x(){return!!(this._context0||this._context1||this._context2||this._contextsRest&&this._contextsRest.length)}function C(e,t){if(this._context0===e&&this._callable0===t||this._context1===e&&this._callable1===t||this._context2===e&&this._callable2===t)return!0;var n=void 0,i=this._contextsRest;if(!i||0===(n=i.length))return!1;for(var r=this._callablesRest;n--;)if(i[n]===e&&r[n]===t)return!0;return!1}function _(){return function(e){e.prototype.addSubscriber=y,e.prototype.removeSubscriber=b,e.prototype.callSubscribers=w,e.prototype.hasSubscribers=x,e.prototype.hasSubscriber=C}}function k(e){return+e==e>>>0}function O(e){return+e}function S(e,t,n){return{index:e,removed:t,addedCount:n}}function E(){}function A(e,t,n,i,r,o){return Ye.calcSplices(e,t,n,i,r,o)}function M(e,t,n,i){return t<n||i<e?-1:t===n||i===e?0:e<n?t<i?t-n:i-n:i<t?i-e:t-e}function T(e,t,n,i){for(var r=S(t,n,i),o=!1,s=0,a=0;a<e.length;a++){var u=e[a];if(u.index+=s,!o){var l=M(r.index,r.index+r.removed.length,u.index,u.index+u.addedCount);if(l>=0){e.splice(a,1),a--,s-=u.addedCount-u.removed.length,r.addedCount+=u.addedCount-l;var c=r.removed.length+u.removed.length-l;if(r.addedCount||c){var h=u.removed;if(r.index<u.index){var d=r.removed.slice(0,u.index-r.index);Array.prototype.push.apply(d,h),h=d}if(r.index+r.removed.length>u.index+u.addedCount){var p=r.removed.slice(u.index+u.addedCount-r.index);Array.prototype.push.apply(h,p)}r.removed=h,u.index<r.index&&(r.index=u.index)}else o=!0}else if(r.index<u.index){o=!0,e.splice(a,0,r),a++;var f=r.addedCount-r.removed.length;u.index+=f,s+=f}}}o||e.push(r)}function R(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i];switch(r.type){case"splice":T(n,r.index,r.removed.slice(),r.addedCount);break;case"add":case"update":case"delete":if(!k(r.name))continue;var o=O(r.name);if(o<0)continue;T(n,o,[r.oldValue],"delete"===r.type?0:1);break;default:console.error("Unexpected record type: "+JSON.stringify(r))}}return n}function V(e,t){var n=[];return R(e,t).forEach(function(t){if(1===t.addedCount&&1===t.removed.length)return void(t.removed[0]!==e[t.index]&&n.push(t));n=n.concat(A(e,t.index,t.index+t.addedCount,t.removed,0,t.removed.length))}),n}function P(e,t,n,i){return{type:e,object:t,key:n,oldValue:i}}function B(e){for(var t=new Array(e.size),n=e.keys(),i=0,r=void 0;(r=n.next())&&!r.done;)t[i]=P("added",e,r.value),i++;return t}function L(e,t){return ut.for(e,t)}function j(e,t,n){for(var i=t.length,r=[],o=0;o<i;o++)r[o]=t[o].evaluate(e,n);return r}function N(e,t){return null!==e&&null!==t?"string"==typeof e&&"string"!=typeof t?e+t.toString():"string"!=typeof e&&"string"==typeof t?e.toString()+t:e+t:null!==e?e:null!==t?t:0}function F(e,t,n){var i=null===e||void 0===e?null:e[t];if("function"==typeof i)return i;if(!n&&(null===i||void 0===i))return null;throw new Error(t+" is not a function")}function I(e,t){if(Array.isArray(e))return e[parseInt(t,10)];if(e)return e[t];if(null!==e&&void 0!==e)return e[t]}function D(e,t,n){if(Array.isArray(e)){var i=parseInt(t,10);e.length<=i&&(e.length=i+1),e[i]=n}else e[t]=n;return n}function q(e){var t=new Mt;return e.accept(t)}function z(e){switch(e){case 102:return 12;case 110:return 10;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}function H(e,t,n,i){for(var r=n.length,o=0;o<r;o+=2){var s=n[o],a=n[o+1];if(a=a>0?a:s+1,e)for(var u=s;u<a;)e[u]=i,u++;if(t)for(var l=s;l<a;l++)t.add(l)}}function U(e){return function(t){return t.next(),e}}function W(e){return e.err("Unexpected character ["+Vt(e.ch)+"]"),null}function Q(e,t){return Zn.for(e,t)}function $(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function G(){this.standardStopPropagation(),this.propagationStopped=!0}function K(e){e.propagationStopped=!1;for(var t=$(e),n=[];t;){if(t.capturedCallbacks){var i=t.capturedCallbacks[e.type];i&&(e.stopPropagation!==G&&(e.standardStopPropagation=e.stopPropagation,e.stopPropagation=G),n.push(i))}t=t.parentNode}for(var r=n.length-1;r>=0&&!e.propagationStopped;r--){var o=n[r];"handleEvent"in o?o.handleEvent(e):o(e)}}function X(e){e.propagationStopped=!1;for(var t=$(e);t&&!e.propagationStopped;){if(t.delegatedCallbacks){var n=t.delegatedCallbacks[e.type];n&&(e.stopPropagation!==G&&(e.standardStopPropagation=e.stopPropagation,e.stopPropagation=G),"handleEvent"in n?n.handleEvent(e):n(e))}t=t.parentNode}}function Y(e){return!!(e&&e.get&&e.get.dependencies)}function Z(e,t,n){Object.getOwnPropertyDescriptor(e.prototype,t).get.dependencies=n}function J(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,i){return i.get.dependencies=t,i}}function ee(e,t,n,i){var r=n.get.dependencies;if(!(r instanceof xi)){for(var o=r.length;o--;)r[o]=i.parser.parse(r[o]);r=n.get.dependencies=new xi(t,r)}var s={bindingContext:e,overrideContext:u(e)};return new Xe(s,r,i)}function te(e){if(void 0===e||"string"==typeof e)return function(t){r.metadata.define(r.metadata.resource,new Li(e),t)};r.metadata.define(r.metadata.resource,new Li,e)}function ne(e){if(void 0===e||"string"==typeof e)return function(t){r.metadata.define(r.metadata.resource,new ji(e),t)};r.metadata.define(r.metadata.resource,new ji,e)}function ie(e){var t=e.au;if(void 0===t)throw new Error('No Aurelia APIs are defined for the element: "'+e.tagName+'".');return t}function re(e,t){return qi.for(e,t)}function oe(e,t,n){function i(e,t,n,i){var r=void 0===t;r&&(e=e.prototype,t="string"==typeof i?i:i.name);var o="_"+t,s={configurable:!0,enumerable:!1,writable:!0},a=i&&i.changeHandler||t+"Changed";if(n?"function"==typeof n.initializer&&(s.value=n.initializer()):n={},"enumerable"in n||(n.enumerable=!0),delete n.value,delete n.writable,delete n.initializer,Reflect.defineProperty(e,o,s),n.get=function(){return this[o]},n.set=function(e){var n=this[o];e!==n&&(this[o]=e,Reflect.defineProperty(this,o,{enumerable:!1}),this[a]&&this[a](e,n,t))},n.get.dependencies=[o],!r)return n;Reflect.defineProperty(e,t,n)}return void 0===t?function(t,n,r){return i(t,n,r,e)}:i(e,t,n)}function se(e,t){zi.hasOwnProperty(t)||(zi[t]=0),e.observeProperty(zi,t)}function ae(e){zi.hasOwnProperty(e)&&zi[e]++}Object.defineProperty(e,"__esModule",{value:!0}),e.getSetObserver=e.BindingEngine=e.NameExpression=e.Listener=e.ListenerExpression=e.BindingBehaviorResource=e.ValueConverterResource=e.Call=e.CallExpression=e.Binding=e.BindingExpression=e.ObjectObservationAdapter=e.ObserverLocator=e.SVGAnalyzer=e.presentationAttributes=e.presentationElements=e.elements=e.ComputedExpression=e.ClassObserver=e.SelectValueObserver=e.CheckedObserver=e.ValueAttributeObserver=e.StyleObserver=e.DataAttributeObserver=e.dataAttributeAccessor=e.XLinkAttributeObserver=e.SetterObserver=e.PrimitiveObserver=e.propertyAccessor=e.DirtyCheckProperty=e.DirtyChecker=e.EventSubscriber=e.EventManager=e.delegationStrategy=e.getMapObserver=e.ParserImplementation=e.Parser=e.bindingMode=e.ExpressionCloner=e.Unparser=e.LiteralObject=e.LiteralArray=e.LiteralTemplate=e.LiteralString=e.LiteralPrimitive=e.Unary=e.Binary=e.CallFunction=e.CallMember=e.CallScope=e.AccessKeyed=e.AccessMember=e.AccessScope=e.AccessThis=e.Conditional=e.Assign=e.ValueConverter=e.BindingBehavior=e.Expression=e.getArrayObserver=e.CollectionLengthObserver=e.ModifyCollectionObserver=e.ExpressionObserver=e.sourceContext=e.targetContext=void 0,e.camelCase=a,e.createOverrideContext=u,e.getContextFor=l,e.createScopeForTest=c,e.connectable=v,e.enqueueBindingConnect=g,e.subscriberCollection=_,e.calcSplices=A,e.mergeSplice=T,e.projectArraySplices=V,e.getChangeRecords=B,e.cloneExpression=q,e.hasDeclaredDependencies=Y,e.declarePropertyDependencies=Z,e.computedFrom=J,e.createComputedObserver=ee,e.valueConverter=te,e.bindingBehavior=ne,e.observable=oe,e.connectBindingToSignal=se,e.signalBindings=ae;for(var ue,le,ce,he,de,pe,fe,ve,me,ge,ye,be,we,xe,Ce,_e,ke,Oe,Se,Ee,Ae,Me,Te,Re=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(t),Ve=(function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}()),Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be=e.targetContext="Binding:target",Le=e.sourceContext="Binding:source",je=Object.create(null),Ne=[],Fe=[],Ie=0;Ie<100;Ie++)Ne.push("_observer"+Ie),Fe.push("_observerVersion"+Ie);var De=[],qe={},ze=0,He=100,Ue=15,We=!1,Qe=0,$e=[],Ge=[],Ke=[],Xe=e.ExpressionObserver=(ue=v(),le=_(),ue(ce=le(ce=function(){function e(e,t,n,i){this.scope=e,this.expression=t,this.observerLocator=n,this.lookupFunctions=i}return e.prototype.getValue=function(){return this.expression.evaluate(this.scope,this.lookupFunctions)},e.prototype.setValue=function(e){this.expression.assign(this.scope,e)},e.prototype.subscribe=function(e,t){var n=this;if(this.hasSubscribers()||(this.oldValue=this.expression.evaluate(this.scope,this.lookupFunctions),this.expression.connect(this,this.scope)),this.addSubscriber(e,t),1===arguments.length&&e instanceof Function)return{dispose:function(){n.unsubscribe(e,t)}}},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&(this.unobserve(!0),this.oldValue=void 0)},e.prototype.call=function(){var e=this.expression.evaluate(this.scope,this.lookupFunctions),t=this.oldValue;e!==t&&(this.oldValue=e,this.callSubscribers(e,t)),this._version++,this.expression.connect(this,this.scope),this.unobserve(!1)},e}())||ce)||ce);E.prototype={calcEditDistances:function(e,t,n,i,r,o){for(var s=o-r+1,a=n-t+1,u=new Array(s),l=void 0,c=void 0,h=0;h<s;++h)u[h]=new Array(a),u[h][0]=h;for(var d=0;d<a;++d)u[0][d]=d;for(var p=1;p<s;++p)for(var f=1;f<a;++f)this.equals(e[t+f-1],i[r+p-1])?u[p][f]=u[p-1][f-1]:(l=u[p-1][f]+1,c=u[p][f-1]+1,u[p][f]=l<c?l:c);return u},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,n=e[0].length-1,i=e[t][n],r=[];t>0||n>0;)if(0!==t)if(0!==n){var o=e[t-1][n-1],s=e[t-1][n],a=e[t][n-1],u=void 0;u=s<a?s<o?s:o:a<o?a:o,u===o?(o===i?r.push(0):(r.push(1),i=o),t--,n--):u===s?(r.push(3),t--,i=s):(r.push(2),n--,i=a)}else r.push(3),t--;else r.push(2),n--;return r.reverse(),r},calcSplices:function(e,t,n,i,r,o){var s=0,a=0,u=Math.min(n-t,o-r);if(0===t&&0===r&&(s=this.sharedPrefix(e,i,u)),n===e.length&&o===i.length&&(a=this.sharedSuffix(e,i,u-s)),t+=s,r+=s,n-=a,o-=a,n-t==0&&o-r==0)return[];if(t===n){for(var l=S(t,[],0);r<o;)l.removed.push(i[r++]);return[l]}if(r===o)return[S(t,[],n-t)];for(var c=this.spliceOperationsFromEditDistances(this.calcEditDistances(e,t,n,i,r,o)),h=void 0,d=[],p=t,f=r,v=0;v<c.length;++v)switch(c[v]){case 0:h&&(d.push(h),h=void 0),p++,f++;break;case 1:h||(h=S(p,[],0)),h.addedCount++,p++,h.removed.push(i[f]),f++;break;case 2:h||(h=S(p,[],0)),h.addedCount++,p++;break;case 3:h||(h=S(p,[],0)),h.removed.push(i[f]),f++}return h&&d.push(h),d},sharedPrefix:function(e,t,n){for(var i=0;i<n;++i)if(!this.equals(e[i],t[i]))return i;return n},sharedSuffix:function(e,t,n){for(var i=e.length,r=t.length,o=0;o<n&&this.equals(e[--i],t[--r]);)o++;return o},calculateSplices:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}};var Ye=new E,Ze=e.ModifyCollectionObserver=(he=_())(de=function(){function e(e,t){this.taskQueue=e,this.queued=!1,this.changeRecords=null,this.oldCollection=null,this.collection=t,this.lengthPropertyName=t instanceof Map||t instanceof Set?"size":"length"}return e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.addChangeRecord=function(e){if(this.hasSubscribers()||this.lengthObserver){if("splice"===e.type){var t=e.index,n=e.object.length;t>n?t=n-e.addedCount:t<0&&(t=n+e.removed.length+t-e.addedCount),t<0&&(t=0),e.index=t}null===this.changeRecords?this.changeRecords=[e]:this.changeRecords.push(e),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},e.prototype.flushChangeRecords=function(){(this.changeRecords&&this.changeRecords.length||this.oldCollection)&&this.call()},e.prototype.reset=function(e){this.oldCollection=e,this.hasSubscribers()&&!this.queued&&(this.queued=!0,this.taskQueue.queueMicroTask(this))},e.prototype.getLengthObserver=function(){return this.lengthObserver||(this.lengthObserver=new Je(this.collection))},e.prototype.call=function(){var e=this.changeRecords,t=this.oldCollection,n=void 0;this.queued=!1,this.changeRecords=[],this.oldCollection=null,this.hasSubscribers()&&(n=t?this.collection instanceof Map||this.collection instanceof Set?B(t):A(this.collection,0,this.collection.length,t,0,t.length):this.collection instanceof Map||this.collection instanceof Set?e:V(this.collection,e),this.callSubscribers(n)),this.lengthObserver&&this.lengthObserver.call(this.collection[this.lengthPropertyName])},e}())||de,Je=e.CollectionLengthObserver=(pe=_())(fe=function(){function e(e){this.collection=e,this.lengthPropertyName=e instanceof Map||e instanceof Set?"size":"length",this.currentValue=e[this.lengthPropertyName]}return e.prototype.getValue=function(){return this.collection[this.lengthPropertyName]},e.prototype.setValue=function(e){this.collection[this.lengthPropertyName]=e},e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.call=function(e){var t=this.currentValue;this.callSubscribers(e,t),this.currentValue=e},e}())||fe,et=Array.prototype,tt=et.pop,nt=et.push,it=et.reverse,rt=et.shift,ot=et.sort,st=et.splice,at=et.unshift;et.__au_patched__?Re.getLogger("array-observation").warn("Detected 2nd attempt of patching array from Aurelia binding. This is probably caused by dependency mismatch between core modules and a 3rd party plugin. Please see https://github.com/aurelia/cli/pull/906 if you are using webpack."):(Reflect.defineProperty(et,"__au_patched__",{value:1}),et.pop=function(){var e=this.length>0,t=tt.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:this.length,oldValue:t}),t},et.push=function(){var e=nt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:this.length-arguments.length,removed:[],addedCount:arguments.length}),e},et.reverse=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=it.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},et.shift=function(){var e=this.length>0,t=rt.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:0,oldValue:t}),t},et.sort=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=ot.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},et.splice=function(){var e=st.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:+arguments[0],removed:e,addedCount:arguments.length>2?arguments.length-2:0}),e},et.unshift=function(){var e=at.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:0,removed:[],addedCount:arguments.length}),e}),e.getArrayObserver=L;var ut=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__array_observer__"in n||Reflect.defineProperty(n,"__array_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__array_observer__},t.create=function(e,n){return new t(e,n)},t}(Ze),lt=e.Expression=function(){function e(){this.isAssignable=!1}
return e.prototype.evaluate=function(e,t,n){throw new Error('Binding expression "'+this+'" cannot be evaluated.')},e.prototype.assign=function(e,t,n){throw new Error('Binding expression "'+this+'" cannot be assigned to.')},e.prototype.toString=function(){return"undefined"==typeof FEATURE_NO_UNPARSER?At.unparse(this):Function.prototype.toString.call(this)},e}(),ct=e.BindingBehavior=function(e){function t(t,n,i){var r=o(this,e.call(this));return r.expression=t,r.name=n,r.args=i,r}return s(t,e),t.prototype.evaluate=function(e,t){return this.expression.evaluate(e,t)},t.prototype.assign=function(e,t,n){return this.expression.assign(e,t,n)},t.prototype.accept=function(e){return e.visitBindingBehavior(this)},t.prototype.connect=function(e,t){this.expression.connect(e,t)},t.prototype.bind=function(e,t,n){this.expression.expression&&this.expression.bind&&this.expression.bind(e,t,n);var i=n.bindingBehaviors(this.name);if(!i)throw new Error('No BindingBehavior named "'+this.name+'" was found!');var r="behavior-"+this.name;if(e[r])throw new Error('A binding behavior named "'+this.name+'" has already been applied to "'+this.expression+'"');e[r]=i,i.bind.apply(i,[e,t].concat(j(t,this.args,e.lookupFunctions)))},t.prototype.unbind=function(e,t){var n="behavior-"+this.name;e[n].unbind(e,t),e[n]=null,this.expression.expression&&this.expression.unbind&&this.expression.unbind(e,t)},t}(lt),ht=e.ValueConverter=function(e){function t(t,n,i){var r=o(this,e.call(this));return r.expression=t,r.name=n,r.args=i,r.allArgs=[t].concat(i),r}return s(t,e),t.prototype.evaluate=function(e,t){var n=t.valueConverters(this.name);if(!n)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"toView"in n?n.toView.apply(n,j(e,this.allArgs,t)):this.allArgs[0].evaluate(e,t)},t.prototype.assign=function(e,t,n){var i=n.valueConverters(this.name);if(!i)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"fromView"in i&&(t=i.fromView.apply(i,[t].concat(j(e,this.args,n)))),this.allArgs[0].assign(e,t,n)},t.prototype.accept=function(e){return e.visitValueConverter(this)},t.prototype.connect=function(e,t){for(var n=this.allArgs,i=n.length;i--;)n[i].connect(e,t);var r=e.lookupFunctions.valueConverters(this.name);if(!r)throw new Error('No ValueConverter named "'+this.name+'" was found!');var o=r.signals;if(void 0!==o)for(i=o.length;i--;)se(e,o[i])},t}(lt),dt=e.Assign=function(e){function t(t,n){var i=o(this,e.call(this));return i.target=t,i.value=n,i.isAssignable=!0,i}return s(t,e),t.prototype.evaluate=function(e,t){return this.target.assign(e,this.value.evaluate(e,t))},t.prototype.accept=function(e){e.visitAssign(this)},t.prototype.connect=function(e,t){},t.prototype.assign=function(e,t){this.value.assign(e,t),this.target.assign(e,t)},t}(lt),pt=e.Conditional=function(e){function t(t,n,i){var r=o(this,e.call(this));return r.condition=t,r.yes=n,r.no=i,r}return s(t,e),t.prototype.evaluate=function(e,t){return this.condition.evaluate(e,t)?this.yes.evaluate(e,t):this.no.evaluate(e,t)},t.prototype.accept=function(e){return e.visitConditional(this)},t.prototype.connect=function(e,t){this.condition.connect(e,t),this.condition.evaluate(t)?this.yes.connect(e,t):this.no.connect(e,t)},t}(lt),ft=e.AccessThis=function(e){function t(t){var n=o(this,e.call(this));return n.ancestor=t,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=e.overrideContext,i=this.ancestor;i--&&n;)n=n.parentOverrideContext;return i<1&&n?n.bindingContext:void 0},t.prototype.accept=function(e){return e.visitAccessThis(this)},t.prototype.connect=function(e,t){},t}(lt),vt=e.AccessScope=function(e){function t(t,n){var i=o(this,e.call(this));return i.name=t,i.ancestor=n,i.isAssignable=!0,i}return s(t,e),t.prototype.evaluate=function(e,t){return l(this.name,e,this.ancestor)[this.name]},t.prototype.assign=function(e,t){var n=l(this.name,e,this.ancestor);return n?n[this.name]=t:void 0},t.prototype.accept=function(e){return e.visitAccessScope(this)},t.prototype.connect=function(e,t){var n=l(this.name,t,this.ancestor);e.observeProperty(n,this.name)},t}(lt),mt=e.AccessMember=function(e){function t(t,n){var i=o(this,e.call(this));return i.object=t,i.name=n,i.isAssignable=!0,i}return s(t,e),t.prototype.evaluate=function(e,t){var n=this.object.evaluate(e,t);return null===n||void 0===n?n:n[this.name]},t.prototype.assign=function(e,t){var n=this.object.evaluate(e);return null!==n&&void 0!==n||(n={},this.object.assign(e,n)),n[this.name]=t,t},t.prototype.accept=function(e){return e.visitAccessMember(this)},t.prototype.connect=function(e,t){this.object.connect(e,t);var n=this.object.evaluate(t);n&&e.observeProperty(n,this.name)},t}(lt),gt=e.AccessKeyed=function(e){function t(t,n){var i=o(this,e.call(this));return i.object=t,i.key=n,i.isAssignable=!0,i}return s(t,e),t.prototype.evaluate=function(e,t){return I(this.object.evaluate(e,t),this.key.evaluate(e,t))},t.prototype.assign=function(e,t){return D(this.object.evaluate(e),this.key.evaluate(e),t)},t.prototype.accept=function(e){return e.visitAccessKeyed(this)},t.prototype.connect=function(e,t){this.object.connect(e,t);var n=this.object.evaluate(t);if(n instanceof Object){this.key.connect(e,t);var i=this.key.evaluate(t);null===i||void 0===i||Array.isArray(n)&&"number"==typeof i||e.observeProperty(n,i)}},t}(lt),yt=e.CallScope=function(e){function t(t,n,i){var r=o(this,e.call(this));return r.name=t,r.args=n,r.ancestor=i,r}return s(t,e),t.prototype.evaluate=function(e,t,n){var i=j(e,this.args,t),r=l(this.name,e,this.ancestor),o=F(r,this.name,n);if(o)return o.apply(r,i)},t.prototype.accept=function(e){return e.visitCallScope(this)},t.prototype.connect=function(e,t){for(var n=this.args,i=n.length;i--;)n[i].connect(e,t)},t}(lt),bt=e.CallMember=function(e){function t(t,n,i){var r=o(this,e.call(this));return r.object=t,r.name=n,r.args=i,r}return s(t,e),t.prototype.evaluate=function(e,t,n){var i=this.object.evaluate(e,t),r=j(e,this.args,t),o=F(i,this.name,n);if(o)return o.apply(i,r)},t.prototype.accept=function(e){return e.visitCallMember(this)},t.prototype.connect=function(e,t){if(this.object.connect(e,t),F(this.object.evaluate(t),this.name,!1))for(var n=this.args,i=n.length;i--;)n[i].connect(e,t)},t}(lt),wt=e.CallFunction=function(e){function t(t,n){var i=o(this,e.call(this));return i.func=t,i.args=n,i}return s(t,e),t.prototype.evaluate=function(e,t,n){var i=this.func.evaluate(e,t);if("function"==typeof i)return i.apply(null,j(e,this.args,t));if(n||null!==i&&void 0!==i)throw new Error(this.func+" is not a function")},t.prototype.accept=function(e){return e.visitCallFunction(this)},t.prototype.connect=function(e,t){if(this.func.connect(e,t),"function"==typeof this.func.evaluate(t))for(var n=this.args,i=n.length;i--;)n[i].connect(e,t)},t}(lt),xt=e.Binary=function(e){function t(t,n,i){var r=o(this,e.call(this));return r.operation=t,r.left=n,r.right=i,r}return s(t,e),t.prototype.evaluate=function(e,t){var n=this.left.evaluate(e,t);switch(this.operation){case"&&":return n&&this.right.evaluate(e,t);case"||":return n||this.right.evaluate(e,t)}var i=this.right.evaluate(e,t);switch(this.operation){case"==":return n==i;case"===":return n===i;case"!=":return n!=i;case"!==":return n!==i;case"instanceof":return"function"==typeof i&&n instanceof i;case"in":return"object"===(void 0===i?"undefined":Pe(i))&&null!==i&&n in i}if(null===n||null===i||void 0===n||void 0===i){switch(this.operation){case"+":return null!==n&&void 0!==n?n:null!==i&&void 0!==i?i:0;case"-":return null!==n&&void 0!==n?n:null!==i&&void 0!==i?0-i:0}return null}switch(this.operation){case"+":return N(n,i);case"-":return n-i;case"*":return n*i;case"/":return n/i;case"%":return n%i;case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"^":return n^i}throw new Error("Internal error ["+this.operation+"] not handled")},t.prototype.accept=function(e){return e.visitBinary(this)},t.prototype.connect=function(e,t){this.left.connect(e,t);var n=this.left.evaluate(t);"&&"===this.operation&&!n||"||"===this.operation&&n||this.right.connect(e,t)},t}(lt),Ct=e.Unary=function(e){function t(t,n){var i=o(this,e.call(this));return i.operation=t,i.expression=n,i}return s(t,e),t.prototype.evaluate=function(e,t){switch(this.operation){case"!":return!this.expression.evaluate(e,t);case"typeof":return Pe(this.expression.evaluate(e,t));case"void":return void this.expression.evaluate(e,t)}throw new Error("Internal error ["+this.operation+"] not handled")},t.prototype.accept=function(e){return e.visitPrefix(this)},t.prototype.connect=function(e,t){this.expression.connect(e,t)},t}(lt),_t=e.LiteralPrimitive=function(e){function t(t){var n=o(this,e.call(this));return n.value=t,n}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralPrimitive(this)},t.prototype.connect=function(e,t){},t}(lt),kt=e.LiteralString=function(e){function t(t){var n=o(this,e.call(this));return n.value=t,n}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralString(this)},t.prototype.connect=function(e,t){},t}(lt),Ot=e.LiteralTemplate=function(e){function t(t,n,i,r){var s=o(this,e.call(this));if(s.cooked=t,s.expressions=n||[],s.length=s.expressions.length,s.tagged=void 0!==r,s.tagged)if(s.cooked.raw=i,s.tag=r,r instanceof vt)s.contextType="Scope";else{if(!(r instanceof mt||r instanceof gt))throw new Error(s.tag+" is not a valid template tag");s.contextType="Object"}return s}return s(t,e),t.prototype.getScopeContext=function(e,t){return l(this.tag.name,e,this.tag.ancestor)},t.prototype.getObjectContext=function(e,t){return this.tag.object.evaluate(e,t)},t.prototype.evaluate=function(e,t,n){for(var i=new Array(this.length),r=0;r<this.length;r++)i[r]=this.expressions[r].evaluate(e,t);if(this.tagged){var o=this.tag.evaluate(e,t);if("function"==typeof o){var s=this["get"+this.contextType+"Context"](e,t);return o.call.apply(o,[s,this.cooked].concat(i))}if(!n)return null;throw new Error(this.tag+" is not a function")}for(var a=this.cooked[0],u=0;u<this.length;u++)a=String.prototype.concat(a,i[u],this.cooked[u+1]);return a},t.prototype.accept=function(e){return e.visitLiteralTemplate(this)},t.prototype.connect=function(e,t){for(var n=0;n<this.length;n++)this.expressions[n].connect(e,t);this.tagged&&this.tag.connect(e,t)},t}(lt),St=e.LiteralArray=function(e){function t(t){var n=o(this,e.call(this));return n.elements=t,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=this.elements,i=[],r=0,o=n.length;r<o;++r)i[r]=n[r].evaluate(e,t);return i},t.prototype.accept=function(e){return e.visitLiteralArray(this)},t.prototype.connect=function(e,t){for(var n=this.elements.length,i=0;i<n;i++)this.elements[i].connect(e,t)},t}(lt),Et=e.LiteralObject=function(e){function t(t,n){var i=o(this,e.call(this));return i.keys=t,i.values=n,i}return s(t,e),t.prototype.evaluate=function(e,t){for(var n={},i=this.keys,r=this.values,o=0,s=i.length;o<s;++o)n[i[o]]=r[o].evaluate(e,t);return n},t.prototype.accept=function(e){return e.visitLiteralObject(this)},t.prototype.connect=function(e,t){for(var n=this.keys.length,i=0;i<n;i++)this.values[i].connect(e,t)},t}(lt),At=null;e.Unparser=At,"undefined"==typeof FEATURE_NO_UNPARSER&&(e.Unparser=At=function(){function e(e){this.buffer=e}return e.unparse=function(e){var t=[],n=new At(t);return e.accept(n),t.join("")},e.prototype.write=function(e){this.buffer.push(e)},e.prototype.writeArgs=function(e){this.write("(");for(var t=0,n=e.length;t<n;++t)0!==t&&this.write(","),e[t].accept(this);this.write(")")},e.prototype.visitBindingBehavior=function(e){var t=e.args;e.expression.accept(this),this.write("&"+e.name);for(var n=0,i=t.length;n<i;++n)this.write(":"),t[n].accept(this)},e.prototype.visitValueConverter=function(e){var t=e.args;e.expression.accept(this),this.write("|"+e.name);for(var n=0,i=t.length;n<i;++n)this.write(":"),t[n].accept(this)},e.prototype.visitAssign=function(e){e.target.accept(this),this.write("="),e.value.accept(this)},e.prototype.visitConditional=function(e){e.condition.accept(this),this.write("?"),e.yes.accept(this),this.write(":"),e.no.accept(this)},e.prototype.visitAccessThis=function(e){if(0===e.ancestor)return void this.write("$this");this.write("$parent");for(var t=e.ancestor-1;t--;)this.write(".$parent")},e.prototype.visitAccessScope=function(e){for(var t=e.ancestor;t--;)this.write("$parent.");this.write(e.name)},e.prototype.visitAccessMember=function(e){e.object.accept(this),this.write("."+e.name)},e.prototype.visitAccessKeyed=function(e){e.object.accept(this),this.write("["),e.key.accept(this),this.write("]")},e.prototype.visitCallScope=function(e){for(var t=e.ancestor;t--;)this.write("$parent.");this.write(e.name),this.writeArgs(e.args)},e.prototype.visitCallFunction=function(e){e.func.accept(this),this.writeArgs(e.args)},e.prototype.visitCallMember=function(e){e.object.accept(this),this.write("."+e.name),this.writeArgs(e.args)},e.prototype.visitPrefix=function(e){this.write("("+e.operation),e.operation.charCodeAt(0)>=97&&this.write(" "),e.expression.accept(this),this.write(")")},e.prototype.visitBinary=function(e){e.left.accept(this),105===e.operation.charCodeAt(0)?this.write(" "+e.operation+" "):this.write(e.operation),e.right.accept(this)},e.prototype.visitLiteralPrimitive=function(e){this.write(""+e.value)},e.prototype.visitLiteralArray=function(e){var t=e.elements;this.write("[");for(var n=0,i=t.length;n<i;++n)0!==n&&this.write(","),t[n].accept(this);this.write("]")},e.prototype.visitLiteralObject=function(e){var t=e.keys,n=e.values;this.write("{");for(var i=0,r=t.length;i<r;++i)0!==i&&this.write(","),this.write("'"+t[i]+"':"),n[i].accept(this);this.write("}")},e.prototype.visitLiteralString=function(e){var t=e.value.replace(/'/g,"'");this.write("'"+t+"'")},e.prototype.visitLiteralTemplate=function(e){var t=e.cooked,n=e.expressions,i=n.length;this.write("`"),this.write(t[0]);for(var r=0;r<i;r++)n[r].accept(this),this.write(t[r+1]);this.write("`")},e}());var Mt=e.ExpressionCloner=function(){function e(){}return e.prototype.cloneExpressionArray=function(e){for(var t=[],n=e.length;n--;)t[n]=e[n].accept(this);return t},e.prototype.visitBindingBehavior=function(e){return new ct(e.expression.accept(this),e.name,this.cloneExpressionArray(e.args))},e.prototype.visitValueConverter=function(e){return new ht(e.expression.accept(this),e.name,this.cloneExpressionArray(e.args))},e.prototype.visitAssign=function(e){return new dt(e.target.accept(this),e.value.accept(this))},e.prototype.visitConditional=function(e){return new pt(e.condition.accept(this),e.yes.accept(this),e.no.accept(this))},e.prototype.visitAccessThis=function(e){return new ft(e.ancestor)},e.prototype.visitAccessScope=function(e){return new vt(e.name,e.ancestor)},e.prototype.visitAccessMember=function(e){return new mt(e.object.accept(this),e.name)},e.prototype.visitAccessKeyed=function(e){return new gt(e.object.accept(this),e.key.accept(this))},e.prototype.visitCallScope=function(e){return new yt(e.name,this.cloneExpressionArray(e.args),e.ancestor)},e.prototype.visitCallFunction=function(e){return new wt(e.func.accept(this),this.cloneExpressionArray(e.args))},e.prototype.visitCallMember=function(e){return new bt(e.object.accept(this),e.name,this.cloneExpressionArray(e.args))},e.prototype.visitUnary=function(e){return new Ct(prefix.operation,prefix.expression.accept(this))},e.prototype.visitBinary=function(e){return new xt(e.operation,e.left.accept(this),e.right.accept(this))},e.prototype.visitLiteralPrimitive=function(e){return new _t(e)},e.prototype.visitLiteralArray=function(e){return new St(this.cloneExpressionArray(e.elements))},e.prototype.visitLiteralObject=function(e){return new Et(e.keys,this.cloneExpressionArray(e.values))},e.prototype.visitLiteralString=function(e){return new kt(e.value)},e.prototype.visitLiteralTemplate=function(e){return new Ot(e.cooked,this.cloneExpressionArray(e.expressions),e.raw,e.tag&&e.tag.accept(this))},e}(),Tt=e.bindingMode={oneTime:0,toView:1,oneWay:1,twoWay:2,fromView:3},Rt=e.Parser=function(){function e(){this.cache=Object.create(null)}return e.prototype.parse=function(e){return e=e||"",this.cache[e]||(this.cache[e]=new Pt(e).parseBindingBehavior())},e}(),Vt=String.fromCharCode,Pt=e.ParserImplementation=function(){function e(e){this.idx=0,this.start=0,this.src=e,this.len=e.length,this.tkn=$t,this.val=void 0,this.ch=e.charCodeAt(0)}return Ve(e,[{key:"raw",get:function(){return this.src.slice(this.start,this.idx)}}]),e.prototype.parseBindingBehavior=function(){this.nextToken(),this.tkn&Wt&&this.err("Invalid start of expression");for(var e=this.parseValueConverter();this.opt(wn);)e=new ct(e,this.val,this.parseVariadicArgs());return this.tkn!==$t&&this.err("Unconsumed token "+this.raw),e},e.prototype.parseValueConverter=function(){for(var e=this.parseExpression();this.opt(xn);)e=new ht(e,this.val,this.parseVariadicArgs());return e},e.prototype.parseVariadicArgs=function(){this.nextToken();for(var e=[];this.opt(yn);)e.push(this.parseExpression());return e},e.prototype.parseExpression=function(){for(var e=this.idx,t=this.parseConditional();this.tkn===zn;)t.isAssignable||this.err("Expression "+this.src.slice(e,this.start)+" is not assignable"),this.nextToken(),e=this.idx,t=new dt(t,this.parseConditional());return t},e.prototype.parseConditional=function(){var e=this.parseBinary(0);if(this.opt(bn)){var t=this.parseExpression();this.expect(yn),e=new pt(e,t,this.parseExpression())}return e},e.prototype.parseBinary=function(e){for(var t=this.parseLeftHandSide(0);this.tkn&Jt;){var n=this.tkn;if((n&Ut)<=e)break;this.nextToken(),t=new xt(Wn[n&Ht],t,this.parseBinary(n&Ut))}return t},e.prototype.parseLeftHandSide=function(e){var t=void 0;e:switch(this.tkn){case Ln:return this.nextToken(),this.parseLeftHandSide(0);case jn:return this.nextToken(),new xt("-",new _t(0),this.parseLeftHandSide(0));case Hn:case Nn:case Fn:var n=Wn[this.tkn&Ht];return this.nextToken(),new Ct(n,this.parseLeftHandSide(0));case ln:do{if(this.nextToken(),e++,this.opt(dn))this.tkn===dn&&this.err();else{if(this.tkn&Qt){t=new ft(e&zt),e=e&Dt|Bt;break e}this.err()}}while(this.tkn===ln);case Gt:t=new vt(this.val,e&zt),this.nextToken(),e=e&Dt|Lt;break;case un:this.nextToken(),t=new ft(0),e=e&Dt|Bt;break;case cn:this.nextToken(),t=this.parseExpression(),this.expect(fn),e=It;break;case mn:this.nextToken();var i=[];if(this.tkn!==gn)do{i.push(this.parseExpression())}while(this.opt(vn));this.expect(gn),t=new St(i),e=It;break;case hn:var r=[],o=[];for(this.nextToken();this.tkn!==pn;){if(this.tkn&Kt){var s=this.ch,a=this.tkn,u=this.idx;r.push(this.val),this.nextToken(),this.opt(yn)?o.push(this.parseExpression()):(this.ch=s,this.tkn=a,this.idx=u,o.push(this.parseLeftHandSide(Dt)))}else this.tkn&Xt?(r.push(this.val),this.nextToken(),this.expect(yn),o.push(this.parseExpression())):this.err();this.tkn!==pn&&this.expect(vn)}this.expect(pn),t=new Et(r,o),e=It;break;case Zt:t=new kt(this.val),this.nextToken(),e=It;break;case tn:t=new Ot([this.val]),this.nextToken(),e=It;break;case nn:t=this.parseTemplate(0),e=It;break;case Yt:t=new _t(this.val),this.nextToken();break;case sn:case an:case on:case rn:t=new _t(Wn[this.tkn&Ht]),this.nextToken(),e=It;break;default:this.idx>=this.len?this.err("Unexpected end of expression"):this.err()}if(e&Dt)return t;for(var l=this.val;this.tkn&en;)switch(this.tkn){case dn:if(this.nextToken(),this.tkn&Kt||this.err(),l=this.val,this.nextToken(),e=e&It|(e&(Bt|Lt))<<1|e&jt|(e&Nt)>>1|(e&Ft)>>2,this.tkn===cn)continue;t=e&Lt?new vt(l,t.ancestor):new mt(t,l);continue;case mn:this.nextToken(),e=Nt,t=new gt(t,this.parseExpression()),this.expect(gn);break;case cn:this.nextToken();for(var c=[];this.tkn!==fn&&(c.push(this.parseExpression()),this.opt(vn)););this.expect(fn),t=e&Lt?new yt(l,c,t.ancestor):e&(jt|It)?new bt(t,l,c):new wt(t,c),e=Ft;break;case tn:t=new Ot([this.val],[],[this.raw],t),this.nextToken();break;case nn:t=this.parseTemplate(e|qt,t)}return t},e.prototype.parseTemplate=function(e,t){var n=[this.val],i=e&qt?[this.raw]:void 0;this.expect(nn);for(var r=[this.parseExpression()];(this.tkn=this.scanTemplateTail())!==tn;)n.push(this.val),e&qt&&i.push(this.raw),this.expect(nn),r.push(this.parseExpression());return n.push(this.val),e&qt&&i.push(this.raw),this.nextToken(),new Ot(n,r,i,t)},e.prototype.nextToken=function(){for(;this.idx<this.len;)if(this.ch<=32)this.next();else{if(this.start=this.idx,36===this.ch||this.ch>=97&&this.ch<=122)return void(this.tkn=this.scanIdentifier());if(null!==(this.tkn=Kn[this.ch](this)))return}this.tkn=$t},e.prototype.next=function(){return this.ch=this.src.charCodeAt(++this.idx)},e.prototype.scanIdentifier=function(){for(;$n.has(this.next())||this.ch>127&&Gn[this.ch];);return Un[this.val=this.raw]||Gt},e.prototype.scanNumber=function(e){if(e)this.val=0;else for(this.val=this.ch-48;this.next()<=57&&this.ch>=48;)this.val=10*this.val+this.ch-48;if(e||46===this.ch){e||this.next();for(var t=this.idx,n=this.ch-48;this.next()<=57&&this.ch>=48;)n=10*n+this.ch-48;this.val=this.val+n/Math.pow(10,this.idx-t)}if(101===this.ch||69===this.ch){var i=this.idx;for(this.next(),45!==this.ch&&43!==this.ch||this.next(),this.ch>=48&&this.ch<=57||(this.idx=i,this.err("Invalid exponent"));this.next()<=57&&this.ch>=48;);this.val=parseFloat(this.src.slice(this.start,this.idx))}return Yt},e.prototype.scanString=function(){var e=this.ch;this.next();for(var t=void 0,n=this.idx;this.ch!==e;)if(92===this.ch){t||(t=[]),t.push(this.src.slice(n,this.idx)),this.next();var i=void 0;if(117===this.ch)if(this.next(),this.idx+4<this.len){var r=this.src.slice(this.idx,this.idx+4);/[A-Z0-9]{4}/i.test(r)||this.err("Invalid unicode escape [\\u"+r+"]"),i=parseInt(r,16),this.idx+=4,this.ch=this.src.charCodeAt(this.idx)}else this.err();else i=z(this.ch),this.next();t.push(Vt(i)),n=this.idx}else 0===this.ch?this.err("Unterminated quote"):this.next();var o=this.src.slice(n,this.idx);this.next();var s=o;return null!==t&&void 0!==t&&(t.push(o),s=t.join("")),this.val=s,Zt},e.prototype.scanTemplate=function(){for(var e=!0,t="";96!==this.next();)if(36===this.ch){if(this.idx+1<this.len&&123===this.src.charCodeAt(this.idx+1)){this.idx++,e=!1;break}t+="$"}else 92===this.ch?t+=Vt(z(this.next())):t+=Vt(this.ch);return this.next(),this.val=t,e?tn:nn},e.prototype.scanTemplateTail=function(){return this.idx>=this.len&&this.err("Unterminated template"),this.idx--,this.scanTemplate()},e.prototype.err=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected token "+this.raw,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.start;throw new Error("Parser Error: "+e+" at column "+t+" in expression ["+this.src+"]")},e.prototype.opt=function(e){return this.tkn===e&&(this.nextToken(),!0)},e.prototype.expect=function(e){this.tkn===e?this.nextToken():this.err("Missing expected token "+Wn[e&Ht],this.idx)},e}(),Bt=1024,Lt=2048,jt=4096,Nt=8192,Ft=16384,It=32768,Dt=65536,qt=1<<17,zt=511,Ht=63,Ut=448,Wt=2048,Qt=16384,$t=65536|Qt|Wt,Gt=1<<17,Kt=32768|Gt,Xt=1<<18,Yt=1<<19|Xt,Zt=1<<20|Xt,Jt=1<<21,en=1<<24,tn=1<<25|en,nn=1<<26|en,rn=32768|Xt,on=32769|Xt,sn=32770|Xt,an=32771|Xt,un=4|Kt,ln=5|Kt,cn=8198|Qt|en,hn=8199,dn=8388616|en,pn=4105|Qt|Wt,fn=4106|Qt|Wt,vn=11|Qt,mn=8204|Qt|1<<23|en,gn=4109|Wt,yn=14|Qt,bn=15,wn=18|Qt,xn=19|Qt,Cn=84|Jt,_n=149|Jt,kn=214|Jt,On=279|Jt,Sn=280|Jt,En=281|Jt,An=282|Jt,Mn=347|Jt,Tn=348|Jt,Rn=349|Jt,Vn=350|Jt,Pn=33119|Jt,Bn=33120|Jt,Ln=417|Jt|1<<22,jn=418|Jt|1<<22,Nn=4227107,Fn=4227108,In=485|Jt,Dn=486|Jt,qn=487|Jt,zn=40,Hn=4194345,Un=Object.create(null);Un.true=on,Un.null=sn,Un.false=rn,Un.undefined=an,Un.$this=un,Un.$parent=ln,Un.in=Pn,Un.instanceof=Bn,Un.typeof=Nn,Un.void=Fn;var Wn=[!1,!0,null,void 0,"$this","$parent","(","{",".","}",")",",","[","]",":","?","'",'"',"&","|","||","&&","^","==","!=","===","!==","<",">","<=",">=","in","instanceof","+","-","typeof","void","*","%","/","=","!"],Qn={AsciiIdPart:[36,0,48,58,65,91,95,0,97,123],IdStart:[36,0,65,91,95,0,97,123,170,0,186,0,192,215,216,247,248,697,736,741,7424,7462,7468,7517,7522,7526,7531,7544,7545,7615,7680,7936,8305,0,8319,0,8336,8349,8490,8492,8498,0,8526,0,8544,8585,11360,11392,42786,42888,42891,42927,42928,42936,42999,43008,43824,43867,43868,43877,64256,64263,65313,65339,65345,65371],Digit:[48,58],Skip:[0,33,127,161]},$n=new Set;H(null,$n,Qn.AsciiIdPart,!0);var Gn=new Uint8Array(65535);H(Gn,null,Qn.IdStart,1),H(Gn,null,Qn.Digit,1);for(var Kn=new Array(65535),Xn=0;Xn<65535;)Kn[Xn]=W,Xn++;H(Kn,null,Qn.Skip,function(e){return e.next(),null}),H(Kn,null,Qn.IdStart,function(e){return e.scanIdentifier()}),H(Kn,null,Qn.Digit,function(e){return e.scanNumber(!1)}),Kn[34]=Kn[39]=function(e){return e.scanString()},Kn[96]=function(e){return e.scanTemplate()},Kn[33]=function(e){return 61!==e.next()?Hn:61!==e.next()?Sn:(e.next(),An)},Kn[61]=function(e){return 61!==e.next()?zn:61!==e.next()?On:(e.next(),En)},Kn[38]=function(e){return 38!==e.next()?wn:(e.next(),_n)},Kn[124]=function(e){return 124!==e.next()?xn:(e.next(),Cn)},Kn[46]=function(e){return e.next()<=57&&e.ch>=48?e.scanNumber(!0):dn},Kn[60]=function(e){return 61!==e.next()?Mn:(e.next(),Rn)},Kn[62]=function(e){return 61!==e.next()?Tn:(e.next(),Vn)},Kn[37]=U(Dn),Kn[40]=U(cn),Kn[41]=U(fn),Kn[42]=U(In),Kn[43]=U(Ln),Kn[44]=U(vn),Kn[45]=U(jn),Kn[47]=U(qn),Kn[58]=U(yn),Kn[63]=U(bn),Kn[91]=U(mn),Kn[93]=U(gn),Kn[94]=U(kn),Kn[123]=U(hn),Kn[125]=U(pn);var Yn=Map.prototype;e.getMapObserver=Q;var Zn=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__map_observer__"in n||Reflect.defineProperty(n,"__map_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__map_observer__},t.create=function(e,n){var i=new t(e,n),r=Yn;return r.set===n.set&&r.delete===n.delete&&r.clear===n.clear||(r={set:n.set,delete:n.delete,clear:n.clear}),n.set=function(){var e=n.has(arguments[0]),t=e?"update":"add",o=n.get(arguments[0]),s=r.set.apply(n,arguments);return e&&o===n.get(arguments[0])||i.addChangeRecord({type:t,object:n,key:arguments[0],oldValue:o}),s},n.delete=function(){var e=n.has(arguments[0]),t=n.get(arguments[0]),o=r.delete.apply(n,arguments);return e&&i.addChangeRecord({type:"delete",object:n,key:arguments[0],oldValue:t}),o},n.clear=function(){var e=r.clear.apply(n,arguments);return i.addChangeRecord({type:"clear",object:n}),e},i},t}(Ze),Jn=function(){function e(e){this.eventName=e,this.count=0}return e.prototype.increment=function(){1===++this.count&&n.DOM.addEventListener(this.eventName,K,!0)},e.prototype.decrement=function(){0===--this.count&&n.DOM.removeEventListener(this.eventName,K,!0)},e}(),ei=function(){function e(e){this.eventName=e,this.count=0}return e.prototype.increment=function(){1===++this.count&&n.DOM.addEventListener(this.eventName,X,!1)},e.prototype.decrement=function(){0===--this.count&&n.DOM.removeEventListener(this.eventName,X,!1)},e}(),ti=function(){function e(e,t,n){this.entry=e,this.lookup=t,this.targetEvent=n}return e.prototype.dispose=function(){this.entry.decrement(),this.lookup[this.targetEvent]=null},e}(),ni=function(){function e(e,t,n){this.target=e,this.targetEvent=t,this.callback=n}return e.prototype.dispose=function(){this.target.removeEventListener(this.targetEvent,this.callback)},e}(),ii=function(){function e(){this.delegatedHandlers={},this.capturedHandlers={}}return e.prototype.subscribe=function(e,t,n,i,r){var o=void 0,s=void 0,a=void 0;if(i===ri.bubbling){o=this.delegatedHandlers,a=o[t]||(o[t]=new ei(t));var u=e.delegatedCallbacks||(e.delegatedCallbacks={});return a.increment(),u[t]=n,!0===r?new ti(a,u,t):function(){a.decrement(),u[t]=null}}if(i===ri.capturing){s=this.capturedHandlers,a=s[t]||(s[t]=new Jn(t));var l=e.capturedCallbacks||(e.capturedCallbacks={});return a.increment(),l[t]=n,!0===r?new ti(a,l,t):function(){a.decrement(),l[t]=null}}return e.addEventListener(t,n),!0===r?new ni(e,t,n):function(){e.removeEventListener(t,n)}},e}(),ri=e.delegationStrategy={none:0,capturing:1,bubbling:2},oi=e.EventManager=function(){function e(){this.elementHandlerLookup={},this.eventStrategyLookup={},this.registerElementConfig({tagName:"input",properties:{value:["change","input"],checked:["change","input"],files:["change","input"]}}),this.registerElementConfig({tagName:"textarea",properties:{value:["change","input"]}}),this.registerElementConfig({tagName:"select",properties:{value:["change"]}}),this.registerElementConfig({tagName:"content editable",properties:{value:["change","input","blur","keyup","paste"]}}),this.registerElementConfig({tagName:"scrollable element",properties:{scrollTop:["scroll"],scrollLeft:["scroll"]}}),this.defaultEventStrategy=new ii}return e.prototype.registerElementConfig=function(e){var t=e.tagName.toLowerCase(),n=e.properties,i=void 0,r=this.elementHandlerLookup[t]={};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},e.prototype.registerEventStrategy=function(e,t){this.eventStrategyLookup[e]=t},e.prototype.getElementHandler=function(e,t){var n=void 0,i=this.elementHandlerLookup;if(e.tagName){if(n=e.tagName.toLowerCase(),i[n]&&i[n][t])return new si(i[n][t]);if("textContent"===t||"innerHTML"===t)return new si(i["content editable"].value);if("scrollTop"===t||"scrollLeft"===t)return new si(i["scrollable element"][t])}return null},e.prototype.addEventListener=function(e,t,n,i,r){return(this.eventStrategyLookup[t]||this.defaultEventStrategy).subscribe(e,t,n,i,r)},e}(),si=e.EventSubscriber=function(){function e(e){this.events=e,this.element=null,this.handler=null}return e.prototype.subscribe=function(e,t){this.element=e,this.handler=t;for(var n=this.events,i=0,r=n.length;r>i;++i)e.addEventListener(n[i],t)},e.prototype.dispose=function(){if(null!==this.element){for(var e=this.element,t=this.handler,n=this.events,i=0,r=n.length;r>i;++i)e.removeEventListener(n[i],t);this.element=this.handler=null}},e}(),ai=e.DirtyChecker=function(){function e(){this.tracked=[],this.checkDelay=120}return e.prototype.addProperty=function(e){var t=this.tracked;t.push(e),1===t.length&&this.scheduleDirtyCheck()},e.prototype.removeProperty=function(e){var t=this.tracked;t.splice(t.indexOf(e),1)},e.prototype.scheduleDirtyCheck=function(){var e=this;setTimeout(function(){return e.check()},this.checkDelay)},e.prototype.check=function(){for(var e=this.tracked,t=e.length;t--;){var n=e[t];n.isDirty()&&n.call()}e.length&&this.scheduleDirtyCheck()},e}(),ui=e.DirtyCheckProperty=(ve=_())(me=function(){function e(e,t,n){this.dirtyChecker=e,this.obj=t,this.propertyName=n}return e.prototype.getValue=function(){return this.obj[this.propertyName]},e.prototype.setValue=function(e){this.obj[this.propertyName]=e},e.prototype.call=function(){var e=this.oldValue,t=this.getValue();this.callSubscribers(t,e),this.oldValue=t},e.prototype.isDirty=function(){return this.oldValue!==this.obj[this.propertyName]},e.prototype.subscribe=function(e,t){this.hasSubscribers()||(this.oldValue=this.getValue(),this.dirtyChecker.addProperty(this)),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&this.dirtyChecker.removeProperty(this)},e}())||me,li=Re.getLogger("property-observation"),ci=e.propertyAccessor={getValue:function(e,t){return e[t]},setValue:function(e,t,n){t[n]=e}},hi=e.PrimitiveObserver=function(){function e(e,t){this.doNotCache=!0,this.primitive=e,this.propertyName=t}return e.prototype.getValue=function(){return this.primitive[this.propertyName]},e.prototype.setValue=function(){var e=Pe(this.primitive);throw new Error("The "+this.propertyName+" property of a "+e+" ("+this.primitive+") cannot be assigned.")},e.prototype.subscribe=function(){},e.prototype.unsubscribe=function(){},e}(),di=e.SetterObserver=(ge=_())(ye=function(){function e(e,t,n){this.taskQueue=e,this.obj=t,this.propertyName=n,this.queued=!1,this.observing=!1}return e.prototype.getValue=function(){return this.obj[this.propertyName]},e.prototype.setValue=function(e){this.obj[this.propertyName]=e},e.prototype.getterValue=function(){return this.currentValue},
e.prototype.setterValue=function(e){var t=this.currentValue;t!==e&&(this.queued||(this.oldValue=t,this.queued=!0,this.taskQueue.queueMicroTask(this)),this.currentValue=e)},e.prototype.call=function(){var e=this.oldValue,t=this.currentValue;this.queued=!1,this.callSubscribers(t,e)},e.prototype.subscribe=function(e,t){this.observing||this.convertProperty(),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.convertProperty=function(){this.observing=!0,this.currentValue=this.obj[this.propertyName],this.setValue=this.setterValue,this.getValue=this.getterValue,Reflect.defineProperty(this.obj,this.propertyName,{configurable:!0,enumerable:!(this.propertyName in this.obj)||this.obj.propertyIsEnumerable(this.propertyName),get:this.getValue.bind(this),set:this.setValue.bind(this)})||li.warn("Cannot observe property '"+this.propertyName+"' of object",this.obj)},e}())||ye,pi=e.XLinkAttributeObserver=function(){function e(e,t,n){this.element=e,this.propertyName=t,this.attributeName=n}return e.prototype.getValue=function(){return this.element.getAttributeNS("http://www.w3.org/1999/xlink",this.attributeName)},e.prototype.setValue=function(e){return this.element.setAttributeNS("http://www.w3.org/1999/xlink",this.attributeName,e)},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},e}(),fi=e.dataAttributeAccessor={getValue:function(e,t){return e.getAttribute(t)},setValue:function(e,t,n){null===e||void 0===e?t.removeAttribute(n):t.setAttribute(n,e)}},vi=e.DataAttributeObserver=function(){function e(e,t){this.element=e,this.propertyName=t}return e.prototype.getValue=function(){return this.element.getAttribute(this.propertyName)},e.prototype.setValue=function(e){return null===e||void 0===e?this.element.removeAttribute(this.propertyName):this.element.setAttribute(this.propertyName,e)},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},e}(),mi=e.StyleObserver=function(){function e(e,t){this.element=e,this.propertyName=t,this.styles=null,this.version=0}return e.prototype.getValue=function(){return this.element.style.cssText},e.prototype._setProperty=function(e,t){var n="";null!==t&&void 0!==t&&"function"==typeof t.indexOf&&-1!==t.indexOf("!important")&&(n="important",t=t.replace("!important","")),this.element.style.setProperty(e,t,n)},e.prototype.setValue=function(e){var t=this.styles||{},n=void 0,i=this.version;if(null!==e&&void 0!==e)if(e instanceof Object){var r=void 0;for(n in e)e.hasOwnProperty(n)&&(r=e[n],n=n.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}),t[n]=i,this._setProperty(n,r))}else if(e.length)for(var o=/\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g,s=void 0;null!==(s=o.exec(e));)(n=s[1])&&(t[n]=i,this._setProperty(n,s[2]));if(this.styles=t,this.version+=1,0!==i){i-=1;for(n in t)t.hasOwnProperty(n)&&t[n]===i&&this.element.style.removeProperty(n)}},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},e}(),gi=e.ValueAttributeObserver=(be=_())(we=function(){function e(e,t,n){this.element=e,this.propertyName=t,this.handler=n,"files"===t&&(this.setValue=function(){})}return e.prototype.getValue=function(){return this.element[this.propertyName]},e.prototype.setValue=function(e){e=void 0===e||null===e?"":e,this.element[this.propertyName]!==e&&(this.element[this.propertyName]=e,this.notify())},e.prototype.notify=function(){var e=this.oldValue,t=this.getValue();this.callSubscribers(t,e),this.oldValue=t},e.prototype.handleEvent=function(){this.notify()},e.prototype.subscribe=function(e,t){this.hasSubscribers()||(this.oldValue=this.getValue(),this.handler.subscribe(this.element,this)),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&this.handler.dispose()},e}())||we,yi=e.CheckedObserver=(xe=_())(Ce=function(){function e(e,t,n){this.element=e,this.handler=t,this.observerLocator=n}return e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(e){this.initialSync&&this.value===e||(this.arrayObserver&&(this.arrayObserver.unsubscribe("CheckedObserver:array",this),this.arrayObserver=null),"checkbox"===this.element.type&&Array.isArray(e)&&(this.arrayObserver=this.observerLocator.getArrayObserver(e),this.arrayObserver.subscribe("CheckedObserver:array",this)),this.oldValue=this.value,this.value=e,this.synchronizeElement(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},e.prototype.call=function(e,t){this.synchronizeElement(),this.valueObserver||(this.valueObserver=this.element.__observers__.model||this.element.__observers__.value,this.valueObserver&&this.valueObserver.subscribe("CheckedObserver:value",this))},e.prototype.synchronizeElement=function(){var e=this.value,t=this.element,n=t.hasOwnProperty("model")?t.model:t.value,i="radio"===t.type,r=t.matcher||function(e,t){return e===t};t.checked=i&&!!r(e,n)||!i&&!0===e||!i&&Array.isArray(e)&&-1!==e.findIndex(function(e){return!!r(e,n)})},e.prototype.synchronizeValue=function(){var e=this.value,t=this.element,n=t.hasOwnProperty("model")?t.model:t.value,i=void 0,r=t.matcher||function(e,t){return e===t};if("checkbox"===t.type){if(Array.isArray(e))return i=e.findIndex(function(e){return!!r(e,n)}),void(t.checked&&-1===i?e.push(n):t.checked||-1===i||e.splice(i,1));e=t.checked}else{if(!t.checked)return;e=n}this.oldValue=this.value,this.value=e,this.notify()},e.prototype.notify=function(){var e=this.oldValue,t=this.value;t!==e&&this.callSubscribers(t,e)},e.prototype.handleEvent=function(){this.synchronizeValue()},e.prototype.subscribe=function(e,t){this.hasSubscribers()||this.handler.subscribe(this.element,this),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&this.handler.dispose()},e.prototype.unbind=function(){this.arrayObserver&&(this.arrayObserver.unsubscribe("CheckedObserver:array",this),this.arrayObserver=null),this.valueObserver&&this.valueObserver.unsubscribe("CheckedObserver:value",this)},e}())||Ce,bi=e.SelectValueObserver=(_e=_())(ke=function(){function e(e,t,n){this.element=e,this.handler=t,this.observerLocator=n}return e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(e){if(null!==e&&void 0!==e&&this.element.multiple&&!Array.isArray(e))throw new Error("Only null or Array instances can be bound to a multi-select.");this.value!==e&&(this.arrayObserver&&(this.arrayObserver.unsubscribe("SelectValueObserver:array",this),this.arrayObserver=null),Array.isArray(e)&&(this.arrayObserver=this.observerLocator.getArrayObserver(e),this.arrayObserver.subscribe("SelectValueObserver:array",this)),this.oldValue=this.value,this.value=e,this.synchronizeOptions(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},e.prototype.call=function(e,t){this.synchronizeOptions()},e.prototype.synchronizeOptions=function(){var e=this.value,t=void 0;Array.isArray(e)&&(t=!0);for(var n=this.element.options,i=n.length,r=this.element.matcher||function(e,t){return e===t};i--;){(function(){var o=n.item(i),s=o.hasOwnProperty("model")?o.model:o.value;if(t)return o.selected=-1!==e.findIndex(function(e){return!!r(s,e)}),"continue";o.selected=!!r(s,e)})()}},e.prototype.synchronizeValue=function(){for(var e=this,t=this.element.options,n=0,i=[],r=0,o=t.length;r<o;r++){var s=t.item(r);s.selected&&(i.push(s.hasOwnProperty("model")?s.model:s.value),n++)}if(this.element.multiple){if(Array.isArray(this.value)){var a=function(){for(var t=e.element.matcher||function(e,t){return e===t},n=0;n<e.value.length;)!function(){var r=e.value[n];-1===i.findIndex(function(e){return t(r,e)})?e.value.splice(n,1):n++}();n=0;for(;n<i.length;)!function(){var r=i[n];-1===e.value.findIndex(function(e){return t(r,e)})&&e.value.push(r),n++}();return{v:void 0}}();if("object"===(void 0===a?"undefined":Pe(a)))return a.v}}else i=0===n?null:i[0];i!==this.value&&(this.oldValue=this.value,this.value=i,this.notify())},e.prototype.notify=function(){var e=this.oldValue,t=this.value;this.callSubscribers(t,e)},e.prototype.handleEvent=function(){this.synchronizeValue()},e.prototype.subscribe=function(e,t){this.hasSubscribers()||this.handler.subscribe(this.element,this),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&this.handler.dispose()},e.prototype.bind=function(){var e=this;this.domObserver=n.DOM.createMutationObserver(function(){e.synchronizeOptions(),e.synchronizeValue()}),this.domObserver.observe(this.element,{childList:!0,subtree:!0,characterData:!0})},e.prototype.unbind=function(){this.domObserver.disconnect(),this.domObserver=null,this.arrayObserver&&(this.arrayObserver.unsubscribe("SelectValueObserver:array",this),this.arrayObserver=null)},e}())||ke,wi=e.ClassObserver=function(){function e(e){this.element=e,this.doNotCache=!0,this.value="",this.version=0}return e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(e){var t=this.nameIndex||{},n=this.version,i=void 0,r=void 0;if(null!==e&&void 0!==e&&e.length){i=e.split(/\s+/);for(var o=0,s=i.length;o<s;o++)""!==(r=i[o])&&(t[r]=n,this.element.classList.add(r))}if(this.value=e,this.nameIndex=t,this.version+=1,0!==n){n-=1;for(r in t)t.hasOwnProperty(r)&&t[r]===n&&this.element.classList.remove(r)}},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "class" property is not supported.')},e}(),xi=e.ComputedExpression=function(e){function t(t,n){var i=o(this,e.call(this));return i.name=t,i.dependencies=n,i.isAssignable=!0,i}return s(t,e),t.prototype.evaluate=function(e,t){return e.bindingContext[this.name]},t.prototype.assign=function(e,t){e.bindingContext[this.name]=t},t.prototype.accept=function(e){throw new Error("not implemented")},t.prototype.connect=function(e,t){for(var n=this.dependencies,i=n.length;i--;)n[i].connect(e,t)},t}(lt),Ci=void 0,_i=void 0,ki=void 0,Oi=void 0;if("undefined"==typeof FEATURE_NO_SVG){Ci={a:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","target","transform","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],altGlyph:["class","dx","dy","externalResourcesRequired","format","glyphRef","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],altGlyphDef:["id","xml:base","xml:lang","xml:space"],altGlyphItem:["id","xml:base","xml:lang","xml:space"],animate:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateColor:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateMotion:["accumulate","additive","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keyPoints","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","origin","path","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","rotate","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateTransform:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","type","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],circle:["class","cx","cy","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","r","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],clipPath:["class","clipPathUnits","externalResourcesRequired","id","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],"color-profile":["id","local","name","rendering-intent","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],cursor:["externalResourcesRequired","id","requiredExtensions","requiredFeatures","systemLanguage","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],defs:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],desc:["class","id","style","xml:base","xml:lang","xml:space"],ellipse:["class","cx","cy","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rx","ry","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],feBlend:["class","height","id","in","in2","mode","result","style","width","x","xml:base","xml:lang","xml:space","y"],feColorMatrix:["class","height","id","in","result","style","type","values","width","x","xml:base","xml:lang","xml:space","y"],feComponentTransfer:["class","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],feComposite:["class","height","id","in","in2","k1","k2","k3","k4","operator","result","style","width","x","xml:base","xml:lang","xml:space","y"],feConvolveMatrix:["bias","class","divisor","edgeMode","height","id","in","kernelMatrix","kernelUnitLength","order","preserveAlpha","result","style","targetX","targetY","width","x","xml:base","xml:lang","xml:space","y"],feDiffuseLighting:["class","diffuseConstant","height","id","in","kernelUnitLength","result","style","surfaceScale","width","x","xml:base","xml:lang","xml:space","y"],feDisplacementMap:["class","height","id","in","in2","result","scale","style","width","x","xChannelSelector","xml:base","xml:lang","xml:space","y","yChannelSelector"],feDistantLight:["azimuth","elevation","id","xml:base","xml:lang","xml:space"],feFlood:["class","height","id","result","style","width","x","xml:base","xml:lang","xml:space","y"],feFuncA:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncB:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncG:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncR:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feGaussianBlur:["class","height","id","in","result","stdDeviation","style","width","x","xml:base","xml:lang","xml:space","y"],feImage:["class","externalResourcesRequired","height","id","preserveAspectRatio","result","style","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],feMerge:["class","height","id","result","style","width","x","xml:base","xml:lang","xml:space","y"],feMergeNode:["id","xml:base","xml:lang","xml:space"],feMorphology:["class","height","id","in","operator","radius","result","style","width","x","xml:base","xml:lang","xml:space","y"],feOffset:["class","dx","dy","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],fePointLight:["id","x","xml:base","xml:lang","xml:space","y","z"],feSpecularLighting:["class","height","id","in","kernelUnitLength","result","specularConstant","specularExponent","style","surfaceScale","width","x","xml:base","xml:lang","xml:space","y"],feSpotLight:["id","limitingConeAngle","pointsAtX","pointsAtY","pointsAtZ","specularExponent","x","xml:base","xml:lang","xml:space","y","z"],feTile:["class","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],feTurbulence:["baseFrequency","class","height","id","numOctaves","result","seed","stitchTiles","style","type","width","x","xml:base","xml:lang","xml:space","y"],filter:["class","externalResourcesRequired","filterRes","filterUnits","height","id","primitiveUnits","style","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],font:["class","externalResourcesRequired","horiz-adv-x","horiz-origin-x","horiz-origin-y","id","style","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],"font-face":["accent-height","alphabetic","ascent","bbox","cap-height","descent","font-family","font-size","font-stretch","font-style","font-variant","font-weight","hanging","id","ideographic","mathematical","overline-position","overline-thickness","panose-1","slope","stemh","stemv","strikethrough-position","strikethrough-thickness","underline-position","underline-thickness","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","widths","x-height","xml:base","xml:lang","xml:space"],"font-face-format":["id","string","xml:base","xml:lang","xml:space"],"font-face-name":["id","name","xml:base","xml:lang","xml:space"],"font-face-src":["id","xml:base","xml:lang","xml:space"],"font-face-uri":["id","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],foreignObject:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xml:base","xml:lang","xml:space","y"],g:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],glyph:["arabic-form","class","d","glyph-name","horiz-adv-x","id","lang","orientation","style","unicode","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],glyphRef:["class","dx","dy","format","glyphRef","id","style","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],hkern:["g1","g2","id","k","u1","u2","xml:base","xml:lang","xml:space"],image:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],line:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","x1","x2","xml:base","xml:lang","xml:space","y1","y2"],linearGradient:["class","externalResourcesRequired","gradientTransform","gradientUnits","id","spreadMethod","style","x1","x2","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y1","y2"],marker:["class","externalResourcesRequired","id","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","style","viewBox","xml:base","xml:lang","xml:space"],mask:["class","externalResourcesRequired","height","id","maskContentUnits","maskUnits","requiredExtensions","requiredFeatures","style","systemLanguage","width","x","xml:base","xml:lang","xml:space","y"],metadata:["id","xml:base","xml:lang","xml:space"],"missing-glyph":["class","d","horiz-adv-x","id","style","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],mpath:["externalResourcesRequired","id","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],path:["class","d","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","pathLength","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],pattern:["class","externalResourcesRequired","height","id","patternContentUnits","patternTransform","patternUnits","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","viewBox","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],polygon:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","points","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],polyline:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","points","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],radialGradient:["class","cx","cy","externalResourcesRequired","fx","fy","gradientTransform","gradientUnits","id","r","spreadMethod","style","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],rect:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rx","ry","style","systemLanguage","transform","width","x","xml:base","xml:lang","xml:space","y"],script:["externalResourcesRequired","id","type","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],set:["attributeName","attributeType","begin","dur","end","externalResourcesRequired","fill","id","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],stop:["class","id","offset","style","xml:base","xml:lang","xml:space"],style:["id","media","title","type","xml:base","xml:lang","xml:space"],svg:["baseProfile","class","contentScriptType","contentStyleType","externalResourcesRequired","height","id","onabort","onactivate","onclick","onerror","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onresize","onscroll","onunload","onzoom","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","version","viewBox","width","x","xml:base","xml:lang","xml:space","y","zoomAndPan"],switch:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],symbol:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","preserveAspectRatio","style","viewBox","xml:base","xml:lang","xml:space"],text:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","transform","x","xml:base","xml:lang","xml:space","y"],textPath:["class","externalResourcesRequired","id","lengthAdjust","method","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","spacing","startOffset","style","systemLanguage","textLength","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],title:["class","id","style","xml:base","xml:lang","xml:space"],tref:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","x","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],tspan:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","x","xml:base","xml:lang","xml:space","y"],use:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],view:["externalResourcesRequired","id","preserveAspectRatio","viewBox","viewTarget","xml:base","xml:lang","xml:space","zoomAndPan"],vkern:["g1","g2","id","k","u1","u2","xml:base","xml:lang","xml:space"]},_i={a:!0,altGlyph:!0,animate:!0,animateColor:!0,circle:!0,clipPath:!0,defs:!0,ellipse:!0,feBlend:!0,feColorMatrix:!0,feComponentTransfer:!0,feComposite:!0,feConvolveMatrix:!0,feDiffuseLighting:!0,feDisplacementMap:!0,feFlood:!0,feGaussianBlur:!0,feImage:!0,feMerge:!0,feMorphology:!0,feOffset:!0,feSpecularLighting:!0,feTile:!0,feTurbulence:!0,filter:!0,font:!0,foreignObject:!0,g:!0,glyph:!0,glyphRef:!0,image:!0,line:!0,linearGradient:!0,marker:!0,mask:!0,"missing-glyph":!0,path:!0,pattern:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,svg:!0,switch:!0,symbol:!0,text:!0,textPath:!0,tref:!0,tspan:!0,use:!0},ki={"alignment-baseline":!0,"baseline-shift":!0,"clip-path":!0,"clip-rule":!0,clip:!0,"color-interpolation-filters":!0,"color-interpolation":!0,"color-profile":!0,"color-rendering":!0,color:!0,cursor:!0,direction:!0,display:!0,"dominant-baseline":!0,"enable-background":!0,"fill-opacity":!0,"fill-rule":!0,fill:!0,filter:!0,"flood-color":!0,"flood-opacity":!0,"font-family":!0,"font-size-adjust":!0,"font-size":!0,"font-stretch":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"glyph-orientation-horizontal":!0,"glyph-orientation-vertical":!0,"image-rendering":!0,kerning:!0,"letter-spacing":!0,"lighting-color":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,mask:!0,opacity:!0,overflow:!0,"pointer-events":!0,"shape-rendering":!0,"stop-color":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0,stroke:!0,"text-anchor":!0,"text-decoration":!0,"text-rendering":!0,"unicode-bidi":!0,visibility:!0,"word-spacing":!0,"writing-mode":!0};var Si=function(e){var t=n.DOM.createElement("div");return t.innerHTML=e,t.firstChild};Oi=function(){function e(){"altglyph"===Si("<svg><altGlyph /></svg>").firstElementChild.nodeName&&Ei.altGlyph&&(Ei.altglyph=Ei.altGlyph,delete Ei.altGlyph,Ei.altglyphdef=Ei.altGlyphDef,delete Ei.altGlyphDef,Ei.altglyphitem=Ei.altGlyphItem,delete Ei.altGlyphItem,Ei.glyphref=Ei.glyphRef,delete Ei.glyphRef)}return e.prototype.isStandardSvgAttribute=function(e,t){return Ai[e]&&Mi[t]||Ei[e]&&-1!==Ei[e].indexOf(t)},e}()}var Ei=e.elements=Ci,Ai=e.presentationElements=_i,Mi=e.presentationAttributes=ki,Ti=e.SVGAnalyzer=Oi||function(){function e(){}return e.prototype.isStandardSvgAttribute=function(){return!1},e}(),Ri=e.ObserverLocator=(Se=Oe=function(){function e(e,t,n,i,r){this.taskQueue=e,this.eventManager=t,this.dirtyChecker=n,this.svgAnalyzer=i,this.parser=r,this.adapters=[],this.logger=Re.getLogger("observer-locator")}return e.prototype.getObserver=function(e,t){var n=e.__observers__,i=void 0;return n&&t in n?n[t]:(i=this.createPropertyObserver(e,t),i.doNotCache||(void 0===n&&(n=this.getOrCreateObserversLookup(e)),n[t]=i),i)},e.prototype.getOrCreateObserversLookup=function(e){return e.__observers__||this.createObserversLookup(e)},e.prototype.createObserversLookup=function(e){var t={};return Reflect.defineProperty(e,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:t})||this.logger.warn("Cannot add observers to object",e),t},e.prototype.addAdapter=function(e){this.adapters.push(e)},e.prototype.getAdapterObserver=function(e,t,n){for(var i=0,r=this.adapters.length;i<r;i++){var o=this.adapters[i],s=o.getObserver(e,t,n);if(s)return s}return null},e.prototype.createPropertyObserver=function(e,t){var i=void 0,r=void 0,o=void 0;if(!(e instanceof Object))return new hi(e,t);if(e instanceof n.DOM.Element){if("class"===t)return new wi(e);if("style"===t||"css"===t)return new mi(e,t);if(r=this.eventManager.getElementHandler(e,t),"value"===t&&"select"===e.tagName.toLowerCase())return new bi(e,r,this);if("checked"===t&&"input"===e.tagName.toLowerCase())return new yi(e,r,this);if(r)return new gi(e,t,r);if(o=/^xlink:(.+)$/.exec(t))return new pi(e,t,o[1]);if("role"===t&&(e instanceof n.DOM.Element||e instanceof n.DOM.SVGElement)||/^\w+:|^data-|^aria-/.test(t)||e instanceof n.DOM.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(e.nodeName,t))return new vi(e,t)}if(i=Object.getPropertyDescriptor(e,t),Y(i))return ee(e,t,i,this);if(i){var s=i.get||i.set;if(s){if(s.getObserver)return s.getObserver(e);var a=this.getAdapterObserver(e,t,i);return a||new ui(this.dirtyChecker,e,t)
}}return e instanceof Array?"length"===t?this.getArrayObserver(e).getLengthObserver():new ui(this.dirtyChecker,e,t):e instanceof Map?"size"===t?this.getMapObserver(e).getLengthObserver():new ui(this.dirtyChecker,e,t):e instanceof Set?"size"===t?this.getSetObserver(e).getLengthObserver():new ui(this.dirtyChecker,e,t):new di(this.taskQueue,e,t)},e.prototype.getAccessor=function(e,t){if(e instanceof n.DOM.Element){if("class"===t||"style"===t||"css"===t||"value"===t&&("input"===e.tagName.toLowerCase()||"select"===e.tagName.toLowerCase())||"checked"===t&&"input"===e.tagName.toLowerCase()||"model"===t&&"input"===e.tagName.toLowerCase()||/^xlink:.+$/.exec(t))return this.getObserver(e,t);if(/^\w+:|^data-|^aria-/.test(t)||e instanceof n.DOM.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(e.nodeName,t)||"img"===e.tagName.toLowerCase()&&"src"===t||"a"===e.tagName.toLowerCase()&&"href"===t)return fi}return ci},e.prototype.getArrayObserver=function(e){return L(this.taskQueue,e)},e.prototype.getMapObserver=function(e){return Q(this.taskQueue,e)},e.prototype.getSetObserver=function(e){return re(this.taskQueue,e)},e}(),Oe.inject=[i.TaskQueue,oi,ai,Ti,Rt],Se),Vi=(e.ObjectObservationAdapter=function(){function e(){}return e.prototype.getObserver=function(e,t,n){throw new Error("BindingAdapters must implement getObserver(object, propertyName).")},e}(),e.BindingExpression=function(){function e(e,t,n,i,r,o){this.observerLocator=e,this.targetProperty=t,this.sourceExpression=n,this.mode=i,this.lookupFunctions=r,this.attribute=o,this.discrete=!1}return e.prototype.createBinding=function(e){return new Pi(this.observerLocator,this.sourceExpression,e,this.targetProperty,this.mode,this.lookupFunctions)},e}()),Pi=e.Binding=(Ee=v())(Ae=function(){function e(e,t,n,i,r,o){this.observerLocator=e,this.sourceExpression=t,this.target=n,this.targetProperty=i,this.mode=r,this.lookupFunctions=o}return e.prototype.updateTarget=function(e){this.targetObserver.setValue(e,this.target,this.targetProperty)},e.prototype.updateSource=function(e){this.sourceExpression.assign(this.source,e,this.lookupFunctions)},e.prototype.call=function(e,t,n){if(this.isBound){if(e===Le)return n=this.targetObserver.getValue(this.target,this.targetProperty),t=this.sourceExpression.evaluate(this.source,this.lookupFunctions),t!==n&&this.updateTarget(t),void(this.mode!==Tt.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.unobserve(!1)));if(e===Be)return void(t!==this.sourceExpression.evaluate(this.source,this.lookupFunctions)&&this.updateSource(t));throw new Error("Unexpected call context "+e)}},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions);var t=this.mode;if(!this.targetObserver){var n=t===Tt.twoWay||t===Tt.fromView?"getObserver":"getAccessor";this.targetObserver=this.observerLocator[n](this.target,this.targetProperty)}if("bind"in this.targetObserver&&this.targetObserver.bind(),this.mode!==Tt.fromView){var i=this.sourceExpression.evaluate(e,this.lookupFunctions);this.updateTarget(i)}t!==Tt.oneTime&&(t===Tt.toView?g(this):t===Tt.twoWay?(this.sourceExpression.connect(this,e),this.targetObserver.subscribe(Be,this)):t===Tt.fromView&&this.targetObserver.subscribe(Be,this))},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,"unbind"in this.targetObserver&&this.targetObserver.unbind(),this.targetObserver.unsubscribe&&this.targetObserver.unsubscribe(Be,this),this.unobserve(!0))},e.prototype.connect=function(e){if(this.isBound){if(e){var t=this.sourceExpression.evaluate(this.source,this.lookupFunctions);this.updateTarget(t)}this.sourceExpression.connect(this,this.source)}},e}())||Ae,Bi=(e.CallExpression=function(){function e(e,t,n,i){this.observerLocator=e,this.targetProperty=t,this.sourceExpression=n,this.lookupFunctions=i}return e.prototype.createBinding=function(e){return new Bi(this.observerLocator,this.sourceExpression,e,this.targetProperty,this.lookupFunctions)},e}(),e.Call=function(){function e(e,t,n,i,r){this.sourceExpression=t,this.target=n,this.targetProperty=e.getObserver(n,i),this.lookupFunctions=r}return e.prototype.callSource=function(e){var t=this.source.overrideContext;Object.assign(t,e),t.$event=e;var n=this.sourceExpression.evaluate(this.source,this.lookupFunctions,!0);delete t.$event;for(var i in e)delete t[i];return n},e.prototype.bind=function(e){var t=this;if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions),this.targetProperty.setValue(function(e){return t.callSource(e)})},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this.targetProperty.setValue(null))},e}()),Li=e.ValueConverterResource=function(){function e(e){this.name=e}return e.convention=function(t){if(t.endsWith("ValueConverter"))return new e(a(t.substring(0,t.length-14)))},e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerValueConverter(t||this.name,this.instance)},e.prototype.load=function(e,t){},e}(),ji=e.BindingBehaviorResource=function(){function e(e){this.name=e}return e.convention=function(t){if(t.endsWith("BindingBehavior"))return new e(a(t.substring(0,t.length-15)))},e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerBindingBehavior(t||this.name,this.instance)},e.prototype.load=function(e,t){},e}(),Ni=(e.ListenerExpression=function(){function e(e,t,n,i,r,o){this.eventManager=e,this.targetEvent=t,this.sourceExpression=n,this.delegationStrategy=i,this.discrete=!0,this.preventDefault=r,this.lookupFunctions=o}return e.prototype.createBinding=function(e){return new Ni(this.eventManager,this.targetEvent,this.delegationStrategy,this.sourceExpression,e,this.preventDefault,this.lookupFunctions)},e}(),e.Listener=function(){function e(e,t,n,i,r,o,s){this.eventManager=e,this.targetEvent=t,this.delegationStrategy=n,this.sourceExpression=i,this.target=r,this.preventDefault=o,this.lookupFunctions=s}return e.prototype.callSource=function(e){var t=this.source.overrideContext;t.$event=e;var n=this.sourceExpression.evaluate(this.source,this.lookupFunctions,!0);return delete t.$event,!0!==n&&this.preventDefault&&e.preventDefault(),n},e.prototype.handleEvent=function(e){this.callSource(e)},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions),this._handler=this.eventManager.addEventListener(this.target,this.targetEvent,this,this.delegationStrategy,!0)},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this._handler.dispose(),this._handler=null)},e}()),Fi=(e.NameExpression=function(){function e(e,t,n){this.sourceExpression=e,this.apiName=t,this.lookupFunctions=n,this.discrete=!0}return e.prototype.createBinding=function(t){return new Fi(this.sourceExpression,e.locateAPI(t,this.apiName),this.lookupFunctions)},e.locateAPI=function(e,t){switch(t){case"element":return e;case"controller":return ie(e).controller;case"view-model":return ie(e).controller.viewModel;case"view":return ie(e).controller.view;default:var n=ie(e)[t];if(void 0===n)throw new Error('Attempted to reference "'+t+"\", but it was not found amongst the target's API.");return n.viewModel}},e}(),function(){function e(e,t,n){this.sourceExpression=e,this.target=t,this.lookupFunctions=n}return e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions),this.sourceExpression.assign(this.source,this.target,this.lookupFunctions)},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.evaluate(this.source,this.lookupFunctions)===this.target&&this.sourceExpression.assign(this.source,null,this.lookupFunctions),this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null)},e}()),Ii={bindingBehaviors:function(e){return null},valueConverters:function(e){return null}},Di=(e.BindingEngine=(Te=Me=function(){function e(e,t){this.observerLocator=e,this.parser=t}return e.prototype.createBindingExpression=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tt.toView,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ii;return new Vi(this.observerLocator,e,this.parser.parse(t),n,i)},e.prototype.propertyObserver=function(e,t){var n=this;return{subscribe:function(i){var r=n.observerLocator.getObserver(e,t);return r.subscribe(i),{dispose:function(){return r.unsubscribe(i)}}}}},e.prototype.collectionObserver=function(e){var t=this;return{subscribe:function(n){var i=void 0;if(e instanceof Array)i=t.observerLocator.getArrayObserver(e);else if(e instanceof Map)i=t.observerLocator.getMapObserver(e);else{if(!(e instanceof Set))throw new Error("collection must be an instance of Array, Map or Set.");i=t.observerLocator.getSetObserver(e)}return i.subscribe(n),{dispose:function(){return i.unsubscribe(n)}}}}},e.prototype.expressionObserver=function(e,t){var n={bindingContext:e,overrideContext:u(e)};return new Xe(n,this.parser.parse(t),this.observerLocator,Ii)},e.prototype.parseExpression=function(e){return this.parser.parse(e)},e.prototype.registerAdapter=function(e){this.observerLocator.addAdapter(e)},e}(),Me.inject=[Ri,Rt],Te),Set.prototype);e.getSetObserver=re;var qi=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__set_observer__"in n||Reflect.defineProperty(n,"__set_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__set_observer__},t.create=function(e,n){var i=new t(e,n),r=Di;return r.add===n.add&&r.delete===n.delete&&r.clear===n.clear||(r={add:n.add,delete:n.delete,clear:n.clear}),n.add=function(){var e=n.size,t=r.add.apply(n,arguments);return n.size===e||i.addChangeRecord({type:"add",object:n,value:Array.from(n).pop()}),t},n.delete=function(){var e=n.has(arguments[0]),t=r.delete.apply(n,arguments);return e&&i.addChangeRecord({type:"delete",object:n,value:arguments[0]}),t},n.clear=function(){var e=r.clear.apply(n,arguments);return i.addChangeRecord({type:"clear",object:n}),e},i},t}(Ze),zi={}});