-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvendors~2a42e354.2fbb6fa086bd570eb0d5.chunk.js
More file actions
2 lines (2 loc) · 77.4 KB
/
vendors~2a42e354.2fbb6fa086bd570eb0d5.chunk.js
File metadata and controls
2 lines (2 loc) · 77.4 KB
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{GAND:function(e,t,n){},GmYv:function(e,t,n){"use strict";n.r(t);var i,o=n("70NS");Object.defineProperty(o.d,"Loader",{get:function(){return i||(i=n("5jyU").WebpackLoader)},set:function(e){i=e}})},HeW1:function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},JPst:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(u," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var s,a,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);i&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},"aurelia-testing":function(e,t,n){"use strict";n.r(t),n.d(t,"CompileSpy",(function(){return i.CompileSpy})),n.d(t,"ViewSpy",(function(){return o.ViewSpy})),n.d(t,"StageComponent",(function(){return c})),n.d(t,"ComponentTester",(function(){return h})),n.d(t,"waitFor",(function(){return a})),n.d(t,"waitForDocumentElement",(function(){return u})),n.d(t,"waitForDocumentElements",(function(){return l})),n.d(t,"configure",(function(){return d}));var i=n("aurelia-testing/compile-spy"),o=n("aurelia-testing/view-spy"),r=n("hij8"),s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function a(e,t){void 0===t&&(t={present:!0,interval:50,timeout:5e3});var n=!1;return t=s({present:!0,interval:50,timeout:5e3},t),Promise.race([new Promise((function(e,i){return setTimeout((function(){n=!0,i(new Error(t.present?"Element not found":"Element not removed"))}),t.timeout)})),function i(){var o=e(),r=null!==o&&(!(o instanceof NodeList)&&!o.jquery||o.length>0);return!t.present==!r||n?Promise.resolve(o):new Promise((function(e){return setTimeout(e,t.interval)})).then(i)}()])}function u(e,t){return a((function(){return document.querySelector(e)}),t)}function l(e,t){return a((function(){return document.querySelectorAll(e)}),t)}var c=function(){function e(){}return e.withResources=function(e){return void 0===e&&(e=[]),(new h).withResources(e)},e}(),h=function(){function e(){this.resources=[]}return e.prototype.configure=function(e){return e.use.standardConfiguration()},e.prototype.bootstrap=function(e){this.configure=e},e.prototype.withResources=function(e){return this.resources=e,this},e.prototype.inView=function(e){return this.html=e,this},e.prototype.boundTo=function(e){return this.bindingContext=e,this},e.prototype.manuallyHandleLifecycle=function(){return this._prepareLifecycle(),this},e.prototype.create=function(e){var t=this;return e((function(e){return Promise.resolve(t.configure(e)).then((function(){return t.resources&&e.use.globalResources(t.resources),e.start().then((function(){return t.host=document.createElement("div"),t.host.innerHTML=t.html,document.body.appendChild(t.host),e.enhance(t.bindingContext,t.host).then((function(){return t.rootView=e.root,t.element=t.host.firstElementChild,e.root.controllers.length&&(t.viewModel=e.root.controllers[0].viewModel),new Promise((function(e){return setTimeout((function(){return e()}),0)}))}))}))}))}))},e.prototype.dispose=function(){if(void 0===this.host||void 0===this.rootView)throw new Error("Cannot call ComponentTester.dispose() before ComponentTester.create()");return this.rootView.detached(),this.rootView.unbind(),this.host.parentNode.removeChild(this.host)},e.prototype._prepareLifecycle=function(){var e=this,t=r.l.prototype.bind;r.l.prototype.bind=function(){},this.bind=function(n){return new Promise((function(i){r.l.prototype.bind=t,void 0!==n&&(e.bindingContext=n),e.rootView.bind(e.bindingContext),setTimeout((function(){return i()}),0)}))};var n=r.l.prototype.attached;r.l.prototype.attached=function(){},this.attached=function(){return new Promise((function(t){r.l.prototype.attached=n,e.rootView.attached(),setTimeout((function(){return t()}),0)}))},this.detached=function(){return new Promise((function(t){e.rootView.detached(),setTimeout((function(){return t()}),0)}))},this.unbind=function(){return new Promise((function(t){e.rootView.unbind(),setTimeout((function(){return t()}),0)}))}},e.prototype.waitForElement=function(e,t){var n=this;return a((function(){return n.element.querySelector(e)}),t)},e.prototype.waitForElements=function(e,t){var n=this;return a((function(){return n.element.querySelectorAll(e)}),t)},e}();function d(e){e.globalResources(["./compile-spy","./view-spy"])}},"aurelia-testing/compile-spy":function(e,t,n){"use strict";n.r(t),n.d(t,"CompileSpy",(function(){return u}));var i=n("hij8"),o=n("3U8n"),r=n("MP1E"),s=n("70NS"),a=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},u=function(){function e(e,t){Object(r.getLogger)("compile-spy").info(e.toString(),t)}return e=a([Object(i.s)("compile-spy"),Object(o.d)(s.b.Element,i.j)],e)}()},"aurelia-testing/view-spy":function(e,t,n){"use strict";n.r(t),n.d(t,"ViewSpy",(function(){return s}));var i=n("hij8"),o=n("MP1E"),r=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=function(){function e(){this.logger=Object(o.getLogger)("view-spy")}return e.prototype._log=function(e,t){this.value||"created"!==e?this.value&&-1!==this.value.indexOf(e)&&this.logger.info(e,this.view,t):this.logger.info(e,this.view)},e.prototype.created=function(e){this.view=e,this._log("created")},e.prototype.bind=function(e){this._log("bind",e)},e.prototype.attached=function(){this._log("attached")},e.prototype.detached=function(){this._log("detached")},e.prototype.unbind=function(){this._log("unbind")},e=r([Object(i.s)("view-spy")],e)}()},hij8:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"f",(function(){return E})),n.d(t,"b",(function(){return K})),n.d(t,"j",(function(){return $})),n.d(t,"o",(function(){return ie})),n.d(t,"c",(function(){return re})),n.d(t,"h",(function(){return ce})),n.d(t,"p",(function(){return pe})),n.d(t,"l",(function(){return fe})),n.d(t,"q",(function(){return me})),n.d(t,"d",(function(){return Ae})),n.d(t,"m",(function(){return Pe})),n.d(t,"n",(function(){return Re})),n.d(t,"g",(function(){return Ke})),n.d(t,"i",(function(){return Xe})),n.d(t,"e",(function(){return et})),n.d(t,"w",(function(){return tt})),n.d(t,"t",(function(){return nt})),n.d(t,"s",(function(){return it})),n.d(t,"x",(function(){return ot})),n.d(t,"r",(function(){return rt})),n.d(t,"y",(function(){return at})),n.d(t,"z",(function(){return lt})),n.d(t,"u",(function(){return ct})),n.d(t,"v",(function(){return ht})),n.d(t,"k",(function(){return dt}));var i,o,r,s,a,u,l,c,h,d,p,f,v,m,g,b,w,y,C,S,V=n("MP1E"),_=n("qrcG"),A=n("70NS"),N=n("ZdUM"),M=n("iD3O"),O=n("X5gX"),j=n("3U8n"),x=n("K/SW"),P=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}}(),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},T=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}(),k=function(){function e(e){this.owner=e,this.owner._compositionCount++}return e.prototype.done=function(){this.owner._compositionCount--,this.owner._tryCompleteTransaction()},e}(),B=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}(),E=function(){function e(){this._ownershipToken=null,this._compositionCount=0}return e.prototype.tryCapture=function(){return null===this._ownershipToken?new B(this):null},e.prototype.enlist=function(){return new k(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}(),F=/([A-Z])/g;function R(e){return"-"+e.toLowerCase()}function D(e){return(e.charAt(0).toLowerCase()+e.slice(1)).replace(F,R)}function L(e){return!(e.auInterpolationTarget||/[^\t\n\r ]/.test(e.textContent))}var H=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}();var z=(o=i=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],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=A.b.createCustomEvent(e,{cancelable:i,bubbles:n,detail:t});this.element.dispatchEvent(o)},e.prototype.subscribe=function(t,n,i){if("function"==typeof n)return void 0===i&&(i=e.defaultListenerOptions),new U(this,t,n,i,!1)},e.prototype.subscribeOnce=function(t,n,i){if("function"==typeof n)return void 0===i&&(i=e.defaultListenerOptions),new U(this,t,n,i,!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}(),i.defaultListenerOptions=!0,o),U=function(){function e(e,t,n,i,o){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=o,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}(),q=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}(),W=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};W.normal=new W;var K=function(){function e(){}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 o=new e;return o.host=t,o.viewModel=n,o.viewFactory=i,o.inheritBindingContext=!0,o},e}(),Q=K.prototype;Q.initiatedByBehavior=!1,Q.enhance=!1,Q.partReplacements=null,Q.viewFactory=null,Q.originalAttrName=null,Q.skipContentProcessing=!1,Q.contentFactory=null,Q.viewModel=null,Q.anchorIsContainer=!1,Q.host=null,Q.attributes=null,Q.type=null,Q.attrName=null,Q.inheritBindingContext=!1,K.normal=new K;var $=(s=r=function(){function e(){}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.letElement=function(t){var n=new e;return n.expressions=t,n.letElement=!0,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,o,r,s){var a=new e;return a.injectorId=t,a.parentInjectorId=n,a.providers=i,a.behaviorInstructions=o,a.expressions=r,a.anchorIsContainer=!s||s.anchorIsContainer,a.elementInstruction=s,a},e.surrogate=function(t,n,i,o){var r=new e;return r.expressions=i,r.behaviorInstructions=n,r.providers=t,r.values=o,r},e}(),r.noExpressions=Object.freeze([]),s),G=$.prototype;G.injectorId=null,G.parentInjectorId=null,G.shadowSlot=!1,G.slotName=null,G.slotFallbackFactory=null,G.contentExpression=null,G.letElement=!1,G.expressions=null,G.expressions=null,G.providers=null,G.viewFactory=null,G.anchorIsContainer=!1,G.elementInstruction=null,G.lifting=!1,G.values=null;var J=_.d.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=A.d.noop)}}),Y=J()(a=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=Object(M.d)(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=Object(M.d)(this.path,e))},e}())||a,X=J()(u=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}())||u,Z=J()(l=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,r=this.dependencies;if(o&&o.factoryIsReady)return Promise.resolve(null);if(this.entry=o=new N.b(this.moduleId||this.dependencyBaseUrl),o.dependencies=[],o.templateIsLoaded=!0,null!==r)for(var s=0,a=r.length;s<a;++s){var u=r[s];"string"==typeof u||"function"==typeof u?o.addDependency(u):o.addDependency(u.from,u.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(o,t,n,i)},e}())||l,ee=J()(c=function(){function e(e,t){this.moduleId=e,this.entry=t}return e.prototype.loadViewFactory=function(e,t,n,i){var o=this.entry;return o.factoryIsReady?Promise.resolve(o.factory):(t.associatedModuleId=this.moduleId,e.loadViewFactory(o,t,n,i))},e}())||c,te=J()(h=function(){function e(e,t,n){this.markup=e,this.dependencies=t||null,this.dependencyBaseUrl=n||""}return e.prototype.loadViewFactory=function(e,t,n,i){var o=this.entry,r=this.dependencies;if(o&&o.factoryIsReady)return Promise.resolve(o.factory);if(this.entry=o=new N.b(this.moduleId||this.dependencyBaseUrl),o.template=A.b.createTemplateFromMarkup(this.markup),null!==r)for(var s=0,a=r.length;s<a;++s){var u=r[s];"string"==typeof u||"function"==typeof u?o.addDependency(u):o.addDependency(u.from,u.as)}return t.associatedModuleId=this.moduleId,e.loadViewFactory(o,t,n,i)},e}())||h,ne=J()(d=function(){function e(e){("string"==typeof e||e instanceof A.b.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 o=this;if(this.factoryIsReady)return Promise.resolve(this.factory);var r=this.dependencies;return r=(r="function"==typeof r?r():r)||[],r=Array.isArray(r)?r:[r],Promise.all(r).then((function(n){var r=e.container,s=e.appResources,a=e.viewCompiler,u=new pe(s),l=void 0,c=[];i&&u.autoRegister(r,i);var h=n,d=Array.isArray(h),p=0;for(h=d?h:h[Symbol.iterator]();;){var f;if(d){if(p>=h.length)break;f=h[p++]}else{if((p=h.next()).done)break;f=p.value}var v=f;if("function"==typeof v)null!==(l=u.autoRegister(r,v)).elementName&&c.push(l);else{if(!v||"object"!==(void 0===v?"undefined":I(v)))throw new Error('dependency neither function nor object. Received: "'+(void 0===v?"undefined":I(v))+'"');for(var m in v){var g=v[m];"function"==typeof g&&null!==(l=u.autoRegister(r,g)).elementName&&c.push(l)}}}return Promise.all(c.map((function(e){return e.load(r,e.target)}))).then((function(){var e=null!==o.template?a.compile(o.template,u,t):null;return o.factoryIsReady=!0,o.factory=e,e}))}))},e}())||d,ie=(f=p=function(){function e(){}return e.prototype.getViewStrategy=function(t){if(!t)return null;if("object"===(void 0===t?"undefined":I(t))&&"getViewStrategy"in t){var n=_.a.get(t.constructor);return"string"==typeof(t=t.getViewStrategy())&&(t=new Y(t)),J.assert(t),n.moduleId&&t.makeRelativeTo(n.moduleId),t}if("string"==typeof t&&(t=new Y(t)),J.validate(t))return t;if("function"!=typeof t&&(t=t.constructor),"$view"in t){var i=t.$view,o=void 0;return o=null===(i="function"==typeof i?i.call(t):i)?new Z:i instanceof ne?i:new ne(i),_.b.define(e.viewStrategyMetadataKey,o,t),o}var r=_.a.get(t),s=_.b.get(e.viewStrategyMetadataKey,t);if(s)r.moduleId&&(s.moduleId=r.moduleId);else{if(!r.moduleId)throw new Error("Cannot determine default view strategy for object.",t);s=this.createFallbackViewStrategy(r)}return s},e.prototype.createFallbackViewStrategy=function(e){return new X(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}(),p.viewStrategyMetadataKey="aurelia:view-strategy",f);function oe(e){throw new Error("BindingLanguage must implement "+e+"().")}var re=function(){function e(){}return e.prototype.inspectAttribute=function(e,t,n,i){oe("inspectAttribute")},e.prototype.createAttributeInstruction=function(e,t,n,i){oe("createAttributeInstruction")},e.prototype.createLetExpressions=function(e,t){oe("createLetExpressions")},e.prototype.inspectTextContent=function(e,t){oe("inspectTextContent")},e}(),se=Object.freeze([]),ae=function(){function e(e){this.element=e,this.element.auSlotAttribute=this}return e.inject=function(){return[A.b.Element]},e.prototype.valueChanged=function(e,t){},e}(),ue=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 ae(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 o=Object.create(null);o[this.destinationSlot.name]=this.destinationSlot,ce.distributeView(this.contentView,o,n,i,this.destinationSlot.name)}},e.prototype.passThroughTo=function(e){this.destinationSlot=e},e.prototype.addNode=function(t,n,i,o){null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),n.viewSlot instanceof e?n.viewSlot.passThroughTo(this):(this.projections++,this.destinationSlot.addNode(t,n,i,o))},e.prototype.removeView=function(e,t){this.projections--,this.destinationSlot.removeView(e,t),this.needsFallbackRendering&&this.renderFallbackContent(null,se,t)},e.prototype.removeAll=function(e){this.projections=0,this.destinationSlot.removeAll(e),this.needsFallbackRendering&&this.renderFallbackContent(null,se,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()},P(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),le=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,o){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),t.viewSlot instanceof ue)t.viewSlot.passThroughTo(this);else if(null!==this.destinationSlots)ce.distributeNodes(e,[t],this.destinationSlots,this,i);else{t.auOwnerView=e,t.auProjectionSource=n,t.auAssignedSlot=this;var r=this._findAnchor(e,t,n,i);r.parentNode.insertBefore(t,r),this.children.push(t),this.projections++}},e.prototype.removeView=function(e,t){if(null!==this.destinationSlots)ce.undistributeView(e,this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ce.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,o=this.children,r=0,s=i.length;r<s;++r){var a=i[r];if(a.auOwnerView===e){i.splice(r,1),e.fragment.appendChild(a),r--,s--,this.projections--;var u=o.indexOf(a);u>-1&&o.splice(u,1)}}this.needsFallbackRendering&&this.renderFallbackContent(e,se,t)}}},e.prototype.removeAll=function(e){if(null!==this.destinationSlots)ce.undistributeAll(this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ce.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=this.children,o=0,r=n.length;o<r;++o){var s=n[o];s.auOwnerView.fragment.appendChild(s),this.projections--;var a=i.indexOf(s);a>-1&&i.splice(a,1)}t.auProjectionChildren=[],this.needsFallbackRendering&&this.renderFallbackContent(null,se,e)}}},e.prototype._findAnchor=function(e,t,n,i){if(n){var o=this.children.find((function(e){return e.auSlotProjectFrom===n}));if(o){if(void 0!==i)for(var r=o.auProjectionChildren,s=-1,a=void 0,u=0,l=r.length;u<l;++u){var c=r[u];if(c.auOwnerView!==a&&(s++,a=c.auOwnerView,s>=i&&a!==e))return r.splice(u,0,t),c}return o.auProjectionChildren.push(t),o}}return this.anchor},e.prototype.projectTo=function(e){this.destinationSlots=e},e.prototype.projectFrom=function(e,t){var n=A.b.createComment("anchor"),i=this.anchor.parentNode;n.auSlotProjectFrom=t,n.auOwnerView=e,n.auProjectionChildren=[],i.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 o=this.contentView.slots,r=this.projectFromAnchors;if(null!==r)for(var s in o)for(var a=o[s],u=0,l=r.length;u<l;++u){var c=r[u];a.projectFrom(c.auOwnerView,c.auSlotProjectFrom)}this.fallbackSlots=o,ce.distributeNodes(e,t,o,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()},P(e,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),e}(),ce=(m=v=function(){function e(){}return e.getSlotName=function(t){return void 0===t.auSlotAttribute?e.defaultSlotKey:t.auSlotAttribute.value},e.distributeView=function(t,n,i,o,r){var s=void 0;if(null===t)s=se;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,o,r)},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,o,r,s){for(var a=0,u=n.length;a<u;++a){var l=n[a],c=l.nodeType;if(l.isContentProjectionSource){for(var h in l.viewSlot.projectTo(i),i)i[h].projectFrom(t,l.viewSlot);n.splice(a,1),u--,a--}else if(1===c||3===c||l.viewSlot instanceof ue)if(3===c&&L(l))n.splice(a,1),u--,a--;else{var d=i[s||e.getSlotName(l)];d&&(d.addNode(t,l,o,r),n.splice(a,1),u--,a--)}else n.splice(a,1),u--,a--}for(var p in i){var f=i[p];f.needsFallbackRendering&&f.renderFallbackContent(t,n,o,r)}},e}(),v.defaultSlotKey="__au-default-slot-key__",m);function he(e,t,n,i){if(t){var o=e[t];if(o){if(o!==n)throw new Error("Attempted to register "+i+" when one with the same name already exists. Name: "+t+".")}else e[t]=n}}function de(e,t){if(/[A-Z]/.test(e)){var n=D(e);return V.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}var pe=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 Ke).__au_resource__=!0,n.elementName||(n.elementName=de(i,"custom element"));else{"function"==typeof i&&(i=i.call(e)),"string"==typeof i&&(i={name:i});var o=(i=Object.assign({},i)).type||"element",r=i.name;switch(o){case"element":case"attribute":(n=t||new Ke).__au_resource__=!0,"element"===o?n.elementName||(n.elementName=r?de(r,"custom element"):D(e.name)):n.attributeName||(n.attributeName=r?de(r,"custom attribute"):D(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 O.o(Object(O.r)(r||e.name));break;case"bindingBehavior":n=new O.b(Object(O.r)(r||e.name));break;case"viewEngineHooks":n=new H}}if(n instanceof Ke){var s="string"==typeof i?void 0:i.bindables,a=n.properties;if(Array.isArray(s))for(var u=0,l=s.length;l>u;++u){var c=s[u];if(!c||"string"!=typeof c&&!c.name)throw new Error('Invalid bindable property at "'+u+'" for class "'+e.name+'". Expected either a string or an object with "name" property.');for(var h=new ze(c),d=!1,p=0,f=a.length;f>p;++p)if(a[p].name===h.name){d=!0;break}d||h.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,o=void 0;void 0!==this[o=t+i.toString()];)i++;this[t]=!0,this[o]=n}},e.prototype._invokeHook=function(e,t,n,i,o){if(this.hasParent&&this.parent._invokeHook(e,t,n,i,o),this[e]){this[e+"1"](t,n,i,o);var r=e+"2";if(this[r]&&(this[r](t,n,i,o),this[r=e+"3"])){this[r](t,n,i,o);for(var s=4;void 0!==this[r=e+s.toString()];)this[r](t,n,i,o),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 Object(M.d)(e,this.viewUrl)},e.prototype.registerElement=function(e,t){he(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,he(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){he(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){he(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){he(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,n){var i=_.b.getOwn(_.b.resource,n);return i?i instanceof Ke&&(e.convention(n,i),null===i.attributeName&&null===i.elementName&&Ke.convention(n.name,i),null===i.attributeName&&null===i.elementName&&(i.elementName=D(n.name))):((i=e.convention(n)||Ke.convention(n.name)||O.o.convention(n.name)||O.b.convention(n.name)||H.convention(n.name))||((i=new Ke).elementName=D(n.name)),_.b.define(_.b.resource,i,n)),i.initialize(t,n),i.register(this),i},e}(),fe=function(){function e(e,t,n,i,o,r,s){for(var a in 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=o,this.children=r,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,s){this.hasSlots=!0;break}}return e.prototype.returnToCache=function(){this.viewFactory.returnViewToCache(this)},e.prototype.created=function(){var e,t=void 0,n=this.controllers;for(t=0,e=n.length;t<e;++t)n[t].created(this)},e.prototype.bind=function(e,t,n){var i=void 0,o=void 0,r=void 0,s=void 0,a=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||Object(O.t)(e),this.resources._invokeHook("beforeBind",this),s=0,a=(o=this.bindings).length;s<a;++s)o[s].bind(this);for(null!==this.viewModelScope&&(e.bind(this.viewModelScope.bindingContext,this.viewModelScope.overrideContext),this.viewModelScope=null),s=0,a=(i=this.controllers).length;s<a;++s)i[s].bind(this);for(s=0,a=(r=this.children).length;s<a;++s)r[s].bind(e,t,!0);this.hasSlots&&ce.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,o=void 0;if(this.isBound){for(this.isBound=!1,this.resources._invokeHook("beforeUnbind",this),null!==this.controller&&this.controller.unbind(),i=0,o=(t=this.bindings).length;i<o;++i)t[i].unbind();for(i=0,o=(e=this.controllers).length;i<o;++i)e[i].unbind();for(i=0,o=(n=this.children).length;i<o;++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(),n=0,i=(e=this.controllers).length;n<i;++n)e[n].attached();for(n=0,i=(t=this.children).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(),n=0,i=(e=this.controllers).length;n<i;++n)e[n].detached();for(n=0,i=(t=this.children).length;n<i;++n)t[n].detached()}},e}();function ve(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}var me=function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.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=ve(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,i=void 0,o=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,i=0,n=(o=this.children).length;i<n;++i)o[i].bind(e,t,!0)},e.prototype.unbind=function(){if(this.isBound){var e,t=void 0,n=this.children;for(this.isBound=!1,this.bindingContext=null,this.overrideContext=null,t=0,e=n.length;t<e;++t)n[t].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,o=this.children,r=e.length,s=void 0,a=[];e.forEach((function(e){if(n)e.removeNodes();else{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<r;++s)e[s].detached();if(t)for(s=0;s<r;++s)e[s].returnToCache();for(s=0;s<r;++s){var n=o.indexOf(e[s]);n>=0&&o.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,o=this.children[e],r=function(){return e=i.children.indexOf(o),o.removeNodes(),i.children.splice(e,1),i.isAttached&&o.detached(),t&&o.returnToCache(),o};if(!n){var s=this.animateView(o,"leave");if(s)return s.then((function(){return r()}))}return r()},e.prototype.removeAll=function(e,t){var n=this,i=this.children,o=i.length,r=void 0,s=[];i.forEach((function(e){if(t)e.removeNodes();else{var i=n.animateView(e,"leave");i?s.push(i.then((function(){return e.removeNodes()}))):e.removeNodes()}}));var a=function(){if(n.isAttached)for(r=0;r<o;++r)i[r].detached();if(e)for(r=0;r<o;++r){var t=i[r];t&&t.returnToCache()}n.children=[]};return s.length>0?Promise.all(s).then((function(){return a()})):a()},e.prototype.attached=function(){var e,t,n=void 0,i=void 0;if(!this.isAttached)for(this.isAttached=!0,n=0,e=(t=this.children).length;n<e;++n)(i=t[n]).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,e=0,t=(n=this.children).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 ce.distributeView(n,e,t)}))},e.prototype._projectionAdd=function(e){ce.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):(ce.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];ce.undistributeView(i,this.projectToSlots,this),ce.distributeView(i,this.projectToSlots,this,t),n.splice(e,1),n.splice(t,0,i)}},e.prototype._projectionRemove=function(e,t){ce.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];ce.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){ce.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}(),ge=new(Object(j.e)(g=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}())||g);function be(e){if(e===A.b.Element)return this.element;if(e===Ae){if(this.boundViewFactory)return this.boundViewFactory;var t=this.instruction.viewFactory,n=this.partReplacements;return n&&(t=n[t.part]||t),this.boundViewFactory=new Ae(this,t,n),this.boundViewFactory}return e===me?(void 0===this.viewSlot&&(this.viewSlot=new me(this.element,this.instruction.anchorIsContainer),this.element.isContentProjectionSource=this.instruction.lifting,this.children.push(this.viewSlot)),this.viewSlot):e===z?this.elementEvents||(this.elementEvents=new z(this.element)):e===E?this.compositionTransaction||(this.compositionTransaction=this.parent.get(e)):e===pe?this.viewResources:e===$?this.instruction:this.superGet(e)}function we(e){return this._element.hasAttribute(e)}function ye(e){return this._element.getAttribute(e)}function Ce(e,t){this._element.setAttribute(e,t)}function Se(e,t,n,i,o,r,s,a,u){var l=n.behaviorInstructions,c=n.expressions,h=void 0,d=void 0,p=void 0,f=void 0,v=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 m=A.b.createComment("slot"),g=void 0;return g=n.slotDestination?new ue(m,n.slotName,n.slotDestination,n.slotFallbackFactory):new le(m,n.slotName,n.slotFallbackFactory),A.b.replaceNode(m,t),s[n.slotName]=g,void i.push(g)}if(n.letElement){for(d=0,p=c.length;d<p;++d)o.push(c[d].createBinding());t.parentNode.removeChild(t)}else{if(l.length)for(n.anchorIsContainer||(t=function(e,t){var n=A.b.createComment("anchor");if(t){var i=e.firstChild;i&&"AU-CONTENT"===i.tagName&&(n.contentElement=i),n._element=e,n.hasAttribute=we,n.getAttribute=ye,n.setAttribute=Ce}return A.b.replaceNode(n,e),n}(t,n.elementInstruction)),e[n.injectorId]=h=function(e,t,n,i,o,r){var s,a=e.createChild(),u=void 0;for(a.element=t,a.instruction=n,a.children=i,a.viewResources=r,a.partReplacements=o,u=(s=n.providers).length;u--;)a._resolvers.set(s[u],ge);return a.superGet=a.get,a.get=be,a}(e[n.parentInjectorId],t,n,r,a,u),d=0,p=l.length;d<p;++d)v=(f=l[d]).type.create(h,f,t,o),i.push(v);for(d=0,p=c.length;d<p;++d)o.push(c[d].createBinding(t))}}function Ve(e,t){var n=e.split(";"),i=void 0,o=void 0,r=void 0,s=void 0,a=void 0;for(t=t||{},o=0;o<n.length;o++)i=(r=n[o]).indexOf(":"),s=r.substring(0,i).trim(),a=r.substring(i+1).trim(),t[s]=a;return t}function _e(e){var t="";for(var n in e)t+=n+":"+e[n]+";";return t}var Ae=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)},P(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),Ne=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},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||K.normal;var i=this.getCachedView();if(null!==i)return i;var o,r=t.enhance?this.template:this.template.cloneNode(!0),s=r.querySelectorAll(".au-target"),a=this.instructions,u=this.resources,l=[],c=[],h=[],d=Object.create(null),p={root:e},f=t.partReplacements,v=void 0,m=void 0,g=void 0,b=void 0;for(this.resources._invokeHook("beforeCreate",this,e,r,t),n&&null!==this.surrogateInstruction&&function(e,t,n,i,o,r){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],ge);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=Ve(l[v]);Ve(f,m),t.setAttribute("style",_e(m))}}else t.setAttribute(v,l[v]);if(s.length)for(c=0,h=s.length;c<h;++c)(p=(d=s[c]).type.create(e,d,t,o)).contentView&&r.push(p.contentView),i.push(p);for(c=0,h=a.length;c<h;++c)o.push(a[c].createBinding(t))}(e,n,this.surrogateInstruction,l,c,h),t.enhance&&r.hasAttribute("au-target-id")&&(b=a[(g=r).getAttribute("au-target-id")],Se(p,g,b,l,c,h,d,f,u)),v=0,o=s.length;v<o;++v)b=a[(g=s[v]).getAttribute("au-target-id")],Se(p,g,b,l,c,h,d,f,u);return m=new fe(e,this,r,l,c,h,d),t.initiatedByBehavior||m.created(),this.resources._invokeHook("afterCreate",m),m},e}(),Me=0;var Oe=0;function je(e){var t=e.getAttribute("class"),n=(++Oe).toString();return e.setAttribute("class",t?t+" au-target":"au-target"),e.setAttribute("au-target-id",n),n}var xe=re.prototype.createLetExpressions,Pe=function(){function e(e,t){this.bindingLanguage=e,this.resources=t}return e.inject=function(){return[re,pe]},e.prototype.compile=function(e,t,n){t=t||this.resources,n=n||W.normal;var i=void 0,o=void 0,r=void 0;(e="string"==typeof e?A.b.createTemplateFromMarkup(e):e).content?(o=e.getAttribute("part"),r=e.getAttribute("view-cache"),i=A.b.adoptNode(e.content)):i=e,n.targetShadowDOM=n.targetShadowDOM&&A.c.shadowDOM,t._invokeHook("beforeCompile",i,t,n);var s={};this._compileNode(i,t,s,e,"root",!n.targetShadowDOM);var a=i.firstChild;if(a&&1===a.nodeType){var u=a.getAttribute("au-target-id");if(u){var l=s[u];(l.shadowSlot||l.lifting||l.elementInstruction&&!l.elementInstruction.anchorIsContainer)&&i.insertBefore(A.b.createComment("view"),a)}}var c=new Ne(i,s,t);return c.surrogateInstruction=n.compileSurrogate?this._compileSurrogate(e,t):null,c.part=o,r&&c.setCacheSize(r),t._invokeHook("afterCompile",c),c},e.prototype._compileNode=function(e,t,n,i,o,r){switch(e.nodeType){case 1:return this._compileElement(e,t,n,i,o,r);case 3:var s=t.getBindingLanguage(this.bindingLanguage).inspectTextContent(t,e.wholeText);if(s){var a=A.b.createElement("au-marker"),u=je(a);for((e.parentNode||i).insertBefore(a,e),e.textContent=" ",n[u]=$.contentExpression(s);e.nextSibling&&3===e.nextSibling.nodeType;)(e.parentNode||i).removeChild(e.nextSibling)}else for(;e.nextSibling&&3===e.nextSibling.nodeType;)e=e.nextSibling;return e.nextSibling;case 11:for(var l=e.firstChild;l;)l=this._compileNode(l,t,n,e,o,r)}return e.nextSibling},e.prototype._compileSurrogate=function(e,t){var n=e.tagName.toLowerCase(),i=e.attributes,o=t.getBindingLanguage(this.bindingLanguage),r=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=[],b={},w=!1,y=[];for(u=0,l=i.length;u<l;++u){if(h=(c=i[u]).name,d=c.value,p=o.inspectAttribute(t,n,h,d),(f=t.getAttribute(p.attrName))&&(r=t.mapAttribute(p.attrName))&&(s=f.attributes[r])&&(p.defaultBindingMode=s.defaultBindingMode,p.command||p.expression||(p.command=s.hasOptions?"options":null),p.command&&"options"!==p.command&&f.primaryProperty)){var C=f.primaryProperty;h=p.attrName=C.attribute,p.defaultBindingMode=C.defaultBindingMode}if(a=o.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=K.attribute(h,f)).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&&(w=!0,b[h]=d)}if(v.length||g.length||w){for(u=0,l=g.length;u<l;++u)(a=g[u]).type.compile(this,t,e,a),y.push(a.type.target);for(u=0,l=v.length;u<l;++u)void 0!==(m=v[u]).attrToRemove&&e.removeAttribute(m.attrToRemove);return $.surrogate(y,g,v,b)}return null},e.prototype._compileElement=function(e,t,n,i,o,r){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,b=void 0,w=void 0,y=void 0,C=void 0,S=void 0,V=void 0,_=void 0,N=void 0,M=void 0,O=void 0,j=void 0;if("slot"===s)return r&&(e=function(e,t,n,i,o){var r=A.b.createElement("au-shadow-slot");A.b.replaceNode(r,n);var s=je(r),a=$.shadowSlot(o);if(a.slotName=n.getAttribute("name")||ce.defaultSlotKey,a.slotDestination=n.getAttribute("slot"),n.innerHTML.trim()){for(var u=A.b.createDocumentFragment(),l=void 0;l=n.firstChild;)u.appendChild(l);a.slotFallbackFactory=e.compile(u,t)}return i[s]=a,r}(this,t,e,n,o)),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)).part=e.getAttribute("part")}else{if(v=t.getElement(e.getAttribute("as-element")||s),"let"===s&&!v&&d.createLetExpressions!==xe)return u=d.createLetExpressions(t,e),n[je(e)]=$.letElement(u),e.nextSibling;v&&(m=K.element(e,v),v.processAttributes(this,t,e,a,m),c.push(m))}for(b=0,w=a.length;b<w;++b){if(V=C=(y=a[b]).name,S=y.value,N=d.inspectAttribute(t,s,C,S),r&&"slot"===N.attrName&&(N.attrName=C="au-slot"),g=null,v=t.getAttribute(N.attrName)){if((O=t.mapAttribute(N.attrName))&&(M=v.attributes[O])&&(N.defaultBindingMode=M.defaultBindingMode,N.command||N.expression||(N.command=M.hasOptions?"options":null),N.command&&"options"!==N.command&&v.primaryProperty)){var x=v.primaryProperty;C=N.attrName=x.attribute,N.defaultBindingMode=x.defaultBindingMode}}else m&&(g=m.type.attributes[N.attrName])&&(N.defaultBindingMode=g.defaultBindingMode);if(_=g?d.createAttributeInstruction(t,e,N,m):d.createAttributeInstruction(t,e,N,void 0,v))if(_.alteredAttr&&(v=t.getAttribute(_.attrName)),_.discrete)u.push(_);else if(v){if(_.type=v,this._configureProperties(_,t),v.liftsContent){_.originalAttrName=V,p=_;break}c.push(_)}else g?m.attributes[N.attrName].targetProperty=g.name:u.push(_.attributes[_.attrName]);else if(v){if((_=K.attribute(C,v)).attributes[t.mapAttribute(C)]=S,v.liftsContent){_.originalAttrName=V,p=_;break}c.push(_)}else g&&(m.attributes[C]=S)}if(p)p.viewFactory=f,n[je(e=p.type.compile(this,t,e,p,i))]=$.lifting(o,p);else{var P=!1;if(u.length||c.length){for(j=!!c.length&&++Me,b=0,w=c.length;b<w;++b)(_=c[b]).type.compile(this,t,e,_,i),h.push(_.type.target),P=P||_.skipContentProcessing;for(b=0,w=u.length;b<w;++b)void 0!==(l=u[b]).attrToRemove&&e.removeAttribute(l.attrToRemove);n[je(e)]=$.normal(j,o,h,c,u,m)}if(P)return e.nextSibling;for(var I=e.firstChild;I;)I=this._compileNode(I,t,n,e,j||o,r)}return e.nextSibling},e.prototype._configureProperties=function(e,t){var n=e.type,i=e.attrName,o=e.attributes,r=void 0,s=void 0,a=void 0,u=t.mapAttribute(i);for(s in u&&i in o&&u!==i&&(o[u]=o[i],delete o[i]),o)null!==(a=o[s])&&"object"===(void 0===a?"undefined":I(a))&&(r=n.attributes[s],a.targetProperty=void 0!==r?r.name:s)},e}(),Ie=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 o=0,r=n.length;o<r;++o)(t=n[o]).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 o=0,r=i.length;o<r;++o)i[o].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,o=void 0;if(void 0!==n){(o=new Array(i.length+1))[0]=n.load(e,t);for(var r=0,s=i.length;r<s;++r)o[r+1]=i[r].load(e,t)}else{o=new Array(i.length);for(var a=0,u=i.length;a<u;++a)o[a]=i[a].load(e,t)}return this.loadContext=t,this.onLoaded=Promise.all(o),this.onLoaded},e}(),Te=function(){function e(e,t,n){n||(n=_.b.get(_.b.resource,t))||((n=new Ke).elementName=D(e),_.b.define(_.b.resource,n,t)),n instanceof Ke?void 0===n.elementName?n.elementName=D(e):void 0===n.attributeName?n.attributeName=D(e):null===n.attributeName&&null===n.elementName&&Ke.convention(e,n):n.name||(n.name=D(e)),this.metadata=n,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}(),ke=function(){function e(){this.cache=Object.create(null)}return e.prototype.getAnalysis=function(e){return this.cache[e]},e.prototype.analyze=function(e,t,n){var i=void 0,o=void 0,r=void 0,s=void 0,a=void 0,u=void 0,l=[],c=void 0,h=void 0,d=void 0;if(d=this.cache[e])return d;for(a in d=new Ie(e),this.cache[e]=d,"function"==typeof t&&(t={default:t}),n&&(i=new Te(n,t[n])),t)u=t[a],a!==n&&"function"==typeof u&&((s=_.b.get(_.b.resource,u))?(s instanceof Ke&&(pe.convention(u,s),null===s.attributeName&&null===s.elementName&&Ke.convention(a,s),null===s.attributeName&&null===s.elementName&&(s.elementName=D(a))),!i&&s instanceof Ke&&null!==s.elementName?i=new Te(a,u,s):l.push(new Te(a,u,s))):J.decorates(u)?h=u:u instanceof N.b?h=new ee(e,u):(c=pe.convention(u))||(c=Ke.convention(a))?(null===c.elementName||i?l.push(new Te(a,u,c)):i=new Te(a,u,c),_.b.define(_.b.resource,c,u)):(c=O.o.convention(a)||O.b.convention(a)||H.convention(a))?(l.push(new Te(a,u,c)),_.b.define(_.b.resource,c,u)):o||(o=u,r=a));return!i&&o&&(i=new Te(r,o)),d.moduleInstance=t,d.mainResource=i,d.resources=l,d.viewStrategy=h,d},e}(),Be=V.getLogger("templating");var Ee=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)},P(e,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),e}(),Fe=null,Re=(w=b=function(){function e(e,t,n,i,o){this.loader=e,this.container=t,this.viewCompiler=n,this.moduleAnalyzer=i,this.appResources=o,this._pluginMap={},null===Fe&&((Fe=new Ke).attributeName="au-slot",_.b.define(_.b.resource,Fe,ae)),Fe.initialize(t,ae),Fe.register(o)}return e.inject=function(){return[N.a,j.b,Pe,ke,pe]},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 o=this;return n=n||new q,function(e,t){return t instanceof N.b?Promise.resolve(t):e.loadTemplate(t)}(this.loader,e).then((function(e){var r=e.address;return e.onReady?n.hasDependency(r)?null===e.template?e.onReady:Promise.resolve(new Ee(e.onReady)):(n.addDependency(r),e.onReady):(n.addDependency(r),e.onReady=o.loadTemplateResources(e,t,n,i).then((function(n){if(e.resources=n,null===e.template)return e.factory=null;var i=o.viewCompiler.compile(e.template,n,t);return e.factory=i})),e.onReady)}))},e.prototype.loadTemplateResources=function(t,n,i,o){var r=new pe(this.appResources,t.address),s=t.dependencies,a=void 0,u=void 0;if(n=n||W.normal,0===s.length&&!n.associatedModuleId)return Promise.resolve(r);if(a=s.map((function(e){return e.src})),u=s.map((function(e){return e.name})),Be.debug("importing resources for "+t.address,a),o){var l=_.b.get(e.viewModelRequireMetadataKey,o);if(l){for(var c=a.length,h=0,d=l.length;h<d;++h){var p=l[h],f="function"==typeof p?_.a.get(p).moduleId:Object(M.d)(p.src||p,t.address);-1===a.indexOf(f)&&(a.push(f),u.push(p.as))}Be.debug("importing ViewModel resources for "+n.associatedModuleId,a.slice(c))}}return this.importViewResources(a,u,r,n,i)},e.prototype.importViewModelResource=function(e,t){var n=this;return this.loader.loadModule(e).then((function(i){var o=_.a.get(i).moduleId,r=n.moduleAnalyzer.analyze(o,i,t);if(!r.mainResource)throw new Error('No view model found in module "'+e+'".');return r.initialize(n.container),r.mainResource}))},e.prototype.importViewResources=function(e,t,n,i,o){var r=this;return o=o||new q,i=i||W.normal,e=e.map((function(e){return r._applyLoaderPlugin(e)})),this.loader.loadAllModules(e).then((function(e){var s=void 0,a=void 0,u=void 0,l=void 0,c=void 0,h=void 0,d=r.container,p=r.moduleAnalyzer,f=new Array(e.length);for(s=0,a=e.length;s<a;++s)c=e[s],l=_.a.get(c).moduleId,(u=p.analyze(l,c)).initialize(d),u.register(n,t[s]),f[s]=u;for(i.associatedModuleId&&(h=p.getAnalysis(i.associatedModuleId))&&h.register(n),s=0,a=f.length;s<a;++s)f[s]=f[s].load(d,o);return Promise.all(f).then((function(){return n}))}))},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}(),b.viewModelRequireMetadataKey="aurelia:view-model-require",w),De=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 o,r=e.observerLocator.getOrCreateObserversLookup(n),s=e.handlesBind,a=t.attributes,u=this.boundProperties=[],l=e.properties,c=void 0;for(e._ensurePropertiesDefined(n,r),c=0,o=l.length;c<o;++c)l[c]._initialize(n,r,a,s,u)}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||Object(O.t)(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,n=this.behavior.handlesBind,i=this.boundProperties,o=void 0,r=void 0,s=void 0,a=void 0;if(this.isBound){if(this.scope===e)return;this.unbind()}for(this.isBound=!0,this.scope=e,o=0,t=i.length;o<t;++o)a=(s=(r=i[o]).observer).selfSubscriber,s.publishing=!1,n&&(s.selfSubscriber=null),r.binding.bind(e),s.call(),s.publishing=!0,s.selfSubscriber=a;var u=void 0;null!==this.view?(n&&(this.view.viewModelScope=e),this.viewModel===e.overrideContext.bindingContext?u=e.overrideContext:this.instruction.inheritBindingContext?u=Object(O.t)(this.viewModel,e.overrideContext):(u=Object(O.t)(this.viewModel)).__parentOverrideContext=e.overrideContext,this.view.bind(this.viewModel,u)):n&&(u=e.overrideContext,void 0!==e.overrideContext.__parentOverrideContext&&this.viewModel.viewFactory&&this.viewModel.viewFactory.factoryCreateInstruction.partReplacements&&((u=Object.assign({},e.overrideContext)).parentOverrideContext=e.overrideContext.__parentOverrideContext),this.viewModel.bind(e.bindingContext,u))},e.prototype.unbind=function(){if(this.isBound){var e,t=this.boundProperties,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(),n=0,e=t.length;n<e;++n)t[n].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}(),Le=Object(O.y)()(y=function(){function e(e,t,n,i,o){this.taskQueue=e,this.obj=t,this.propertyName=n,this.notqueued=!0,this.publishing=!1,this.selfSubscriber=i,this.currentValue=this.oldValue=o}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}())||y;function He(e,t){var n=e.__observers__;if(void 0===n){var i=Object.getPrototypeOf(e).constructor,o=_.b.get(_.b.resource,i);o.isInitialized||o.initialize(j.b.instance||new j.b,e.constructor),n=o.observerLocator.getOrCreateObserversLookup(e),o._ensurePropertiesDefined(e,n)}return n[t]}var ze=function(){function e(e){"string"==typeof e?this.name=e:Object.assign(this,e),this.attribute=this.attribute||D(this.name);var t=this.defaultBindingMode;null==t?this.defaultBindingMode=O.q.oneWay:"string"==typeof t&&(this.defaultBindingMode=O.q[t]||O.q.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 He(this,t).getValue()},e.set=function(e){He(this,t).setValue(e)},e.get.getObserver=function(e){return He(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,o=this.name,r=void 0;if(!this.hasOptions){if(i in e)t="propertyChanged"in e?function(t,n){e[i](t,n),e.propertyChanged(o,t,n)}:function(t,n){return e[i](t,n)};else if("propertyChanged"in e)t=function(t,n){return e.propertyChanged(o,t,n)};else if(null!==i)throw new Error("Change handler "+i+" was specified but not declared on the class.");return void 0!==n&&(r="function"==typeof n?n.call(e):n),new Le(this.owner.taskQueue,e,this.name,t,r)}},e.prototype._initialize=function(e,t,n,i,o){var r=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],o);else this.hasOptions||(s=t[this.name],null!==n&&(r=s.selfSubscriber,a=n[this.attribute],i&&(s.selfSubscriber=null),"string"==typeof a?(e[this.name]=a,s.call()):a?o.push({observer:s,binding:a.createBinding(e)}):void 0!==u&&s.call(),s.selfSubscriber=r),s.publishing=!0)},e.prototype._createDynamicProperty=function(e,t,n,i,o,r){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 Le(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 o?(e[i]=o,u.call()):o&&(l={observer:u,binding:o.createBinding(e)},r.push(l)),u.publishing=!0,u.selfSubscriber=a},e}(),Ue=0;function qe(){return!0}function We(){}var Ke=function(){function e(){this.elementName=null,this.attributeName=null,this.attributeDefaultBindingMode=void 0,this.liftsContent=!1,this.targetShadowDOM=!1,this.shadowDOMOptions=null,this.processAttributes=We,this.processContent=qe,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).attributeName=D(t.substring(0,t.length-15))),t.endsWith("CustomElement")&&((i=n||new e).elementName=D(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,i=this.properties,o=this.attributeName,r=this.attributeDefaultBindingMode,s=void 0,a=void 0,u=void 0;if(!this.isInitialized)if(this.isInitialized=!0,t.__providerId__=++Ue,this.observerLocator=e.get(O.k),this.taskQueue=e.get(x.a),this.target=t,this.usesShadowDOM=this.targetShadowDOM&&A.c.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===i.length&&new ze({name:"value",changeHandler:"valueChanged"in n?"valueChanged":null,attribute:o,defaultBindingMode:r}).registerWith(t,this),u=i[0],1===i.length&&"value"===u.name)u.isDynamic=u.hasOptions=this.hasDynamicOptions,u.defineOn(t,this);else{for(s=0,a=i.length;s<a;++s)if(i[s].defineOn(t,this),i[s].primaryProperty){if(this.primaryProperty)throw new Error("Only one bindable property on a custom element can be defined as the default");this.primaryProperty=i[s]}(u=new ze({name:"value",changeHandler:"valueChanged"in n?"valueChanged":null,attribute:o,defaultBindingMode:r})).hasOptions=!0,u.registerWith(t,this)}else{for(s=0,a=i.length;s<a;++s)i[s].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,n,i,o){var r=this,s=void 0;return null!==this.elementName?(i=e.get(ie).getViewStrategy(i||this.viewStrategy||t),s=new W(this.targetShadowDOM,!0),i.moduleId||(i.moduleId=_.a.get(t).moduleId),i.loadViewFactory(e.get(Re),s,n,t).then((function(e){return o&&r.viewFactory||(r.viewFactory=e),e}))):Promise.resolve(this)},e.prototype.compile=function(e,t,n,i,o){if(this.liftsContent){if(!i.viewFactory){var r=A.b.createElement("template"),s=A.b.createDocumentFragment(),a=n.getAttribute("view-cache"),u=n.getAttribute("part");n.removeAttribute(i.originalAttrName),A.b.replaceNode(r,n,o),s.appendChild(n),i.viewFactory=e.compile(s,t),u&&(i.viewFactory.part=u,n.removeAttribute("part")),a&&(i.viewFactory.setCacheSize(a),n.removeAttribute("view-cache")),n=r}}else if(null!==this.elementName){var l={};if(this.processContent(e,t,n,i)&&n.hasChildNodes()){for(var c=n.firstChild,h=this.usesShadowDOM?null:A.b.createElement("au-content"),d=void 0,p=void 0;c;)d=c.nextSibling,"TEMPLATE"===c.tagName&&(p=c.getAttribute("replace-part"))?(l[p]=e.compile(c,t),A.b.removeNode(c,o),i.partReplacements=l):null!==h&&(3===c.nodeType&&L(c)?A.b.removeNode(c,o):h.appendChild(c)),c=d;null!==h&&h.hasChildNodes()&&n.appendChild(h),i.skipContentProcessing=!1}else i.skipContentProcessing=!0}else this.processContent(e,t,n,i)||(i.skipContentProcessing=!0);return n},e.prototype.create=function(e,t,n,i){var o=void 0,r=null;t=t||K.normal,n=n||null,i=i||null,null!==this.elementName&&n&&(this.usesShadowDOM?(o=n.attachShadow(this.shadowDOMOptions),e.registerInstance(A.b.boundary,o)):(o=n,this.targetShadowDOM&&e.registerInstance(A.b.boundary,o))),null!==n&&(n.au=r=n.au||{});var s=t.viewModel||e.get(this.target),a=new De(this,t,s,e),u=this.childBindings,l=void 0;if(this.liftsContent)r.controller=a;else if(null!==this.elementName){if(l=t.viewFactory||this.viewFactory,e.viewModel=s,l&&(a.view=l.create(e,t,n)),null!==n){if(r.controller=a,a.view){if(!this.usesShadowDOM&&(1===n.childNodes.length||n.contentElement)){var c=n.childNodes[0]||n.contentElement;a.view.contentView={fragment:c},c.parentNode&&A.b.removeNode(c)}if(t.anchorIsContainer){if(null!==u)for(var h=0,d=u.length;h<d;++h)a.view.addBinding(u[h].create(n,s,a));a.view.appendNodesTo(o)}else a.view.insertNodesBefore(o)}else if(null!==u)for(var p=0,f=u.length;p<f;++p)i.push(u[p].create(n,s,a))}else if(a.view){if(a.view.controller=a,null!==u)for(var v=0,m=u.length;v<m;++v)a.view.addBinding(u[v].create(t.host,s,a))}else if(null!==u)for(var g=0,b=u.length;g<b;++g)i.push(u[g].create(t.host,s,a))}else if(null!==u)for(var w=0,y=u.length;w<y;++w)i.push(u[w].create(n,s,a));return null!==r&&(r[this.htmlName]=a),t.initiatedByBehavior&&l&&a.view.created(),a},e.prototype._ensurePropertiesDefined=function(e,t){var n,i=void 0,o=void 0,r=void 0;if(!("__propertiesDefined__"in t))for(t.__propertiesDefined__=!0,o=0,n=(i=this.properties).length;o<n;++o)void 0!==(r=i[o].createObserver(e))&&(t[r.propertyName]=r)},e.prototype._copyInheritedProperties=function(e,t){for(var n=this,i=void 0,o=t;;){var r=Object.getPrototypeOf(t.prototype);if(!(t=r&&r.constructor))return;if(i=_.b.getOwn(_.b.resource,t))break}i.initialize(e,t);for(var s=function(e,t){var r=i.properties[e];if(n.properties.some((function(e){return e.name===r.name})))return"continue";new ze(r).registerWith(o,n)},a=0,u=i.properties.length;a<u;++a)s(a)},e}();!function(){function e(e){this.name=e.name,this.changeHandler=e.changeHandler||this.name+"Changed",this.selector=e.selector,this.all=e.all}e.prototype.create=function(e,t,n){return new Je(this.selector,e,this.name,t,n,this.changeHandler,this.all)}}();var Qe=[];function $e(e,t,n){var i=e.get(t);i||(i=[],e.set(t,i)),i.push(n)}function Ge(e,t){for(var n=t.binders,i=n.length,o=new Map,r=0,s=e.length;r<s;++r){for(var a=e[r],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)&&$e(o,f,a)}}for(var v=0,m=u.length;v<m;++v){var g=u[v];if(1===g.nodeType)for(var b=0;b<i;++b){var w=n[b];w.onAdd(g)&&$e(o,w,a)}}}o.forEach((function(e,t){t.isBound&&null!==t.changeHandler&&t.viewModel[t.changeHandler](e)}))}var Je=function(){function e(e,t,n,i,o,r,s){this.selector=e,this.viewHost=t,this.property=n,this.viewModel=i,this.controller=o,this.changeHandler=r in i?r:null,this.usesShadowDOM=o.behavior.usesShadowDOM,this.all=s,!this.usesShadowDOM&&o.view&&o.view.contentView?this.contentView=o.view.contentView:this.contentView=null,this.source=null,this.isBound=!1}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,o=0,r=i.length;o<r;++o)if(i[o].auOwnerView===t)return!0;return!1}return e.auOwnerView===t}return!1},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.source=e}this.isBound=!0;var t=this.viewHost,n=this.viewModel,i=t.__childObserver__;if(!i){i=t.__childObserver__=A.b.createMutationObserver(Ge);var o={childList:!0,subtree:!this.usesShadowDOM};i.observe(t,o),i.binders=[]}if(i.binders.push(this),this.usesShadowDOM){var r=t.firstElementChild;if(this.all){var s=n[this.property];for(s?s.splice(0):s=n[this.property]=[];r;)this.matches(r)&&s.push(r.au&&r.au.controller?r.au.controller.viewModel:r),r=r.nextElementSibling;null!==this.changeHandler&&this.viewModel[this.changeHandler](Qe)}else for(;r;){if(this.matches(r)){var a=r.au&&r.au.controller?r.au.controller.viewModel:r;this.viewModel[this.property]=a,null!==this.changeHandler&&this.viewModel[this.changeHandler](a);break}r=r.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}this.viewModel[this.property]===t&&(this.viewModel[this.property]=null,this.isBound&&null!==this.changeHandler&&this.viewModel[this.changeHandler](t))}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,o=e.previousElementSibling;o;)this.matches(o)&&i++,o=o.previousElementSibling;return n.splice(i,0,t),!0}this.viewModel[this.property]=t,this.isBound&&null!==this.changeHandler&&this.viewModel[this.changeHandler](t)}return!1},e.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;var e=this.viewHost.__childObserver__;if(e){var t=e.binders;if(t&&t.length){var n=t.indexOf(this);-1!==n&&t.splice(n,1),0===t.length&&(e.disconnect(),this.viewHost.__childObserver__=null)}this.usesShadowDOM&&(this.viewModel[this.property]=null)}}},e}();function Ye(e,t){return Array.isArray(t)?e.removeMany(t,!0):e.remove(t,!0)}var Xe={before:function(e,t,n){return void 0===t?n():n().then((function(){return Ye(e,t)}))},with:function(e,t,n){return void 0===t?n():Promise.all([Ye(e,t),n()])},after:function(e,t,n){return Promise.resolve(e.removeAll(!0)).then(n)}};function Ze(e){return e.skipActivation||"function"!=typeof e.viewModel.activate?Promise.resolve():e.viewModel.activate(e.model)||Promise.resolve()}var et=Object(j.d)(Re,ie)(C=function(){function e(e,t){this.viewEngine=e,this.viewLocator=t}return e.prototype._swap=function(e,t){var n=Xe[e.swapOrder]||Xe.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,o=void 0,r=void 0;return this.ensureViewModel(e).then(Ze).then((function(){n=e.childContainer,i=e.viewModel,o=e.viewModelResource,r=o.metadata;var s=t.viewLocator.getViewStrategy(e.view||i);return e.viewResources&&s.makeRelativeTo(e.viewResources.viewUrl),r.load(n,o.value,null,s,!0)})).then((function(t){return r.create(n,K.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(A.b.Element,e.host),e.viewModel=t.viewModel=t.get(n.value),e.viewModelResource=n,e}));var n=e.viewModel.constructor,i="function"==typeof e.viewModel;i&&(n=e.viewModel,t.autoRegister(n));var o=_.b.getOrCreateOwn(_.b.resource,Ke,n);return o.elementName=o.elementName||"dynamic-element",o.initialize(i?t:e.container||t,n),e.viewModelResource={metadata:o,value:n},e.host&&t.registerInstance(A.b.Element,e.host),t.viewModel=e.viewModel=i?t.get(n):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(E),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 W).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}())||C;!function(){function e(){}e.prototype.initialize=function(e,t){},e.prototype.register=function(e,t){},e.prototype.load=function(e,t){var n=new t;e.get(O.f).registerElementConfig(n)}}();function tt(e){return function(t){"string"==typeof e||Object.getPrototypeOf(e)===Object.prototype?t.$resource=e:_.b.define(_.b.resource,e,t)}}function nt(e){return function(t){_.b.getOrCreateOwn(_.b.resource,Ke,t).elementName=de(e,"custom element")}}function it(e,t,n){return function(i){var o=_.b.getOrCreateOwn(_.b.resource,Ke,i);o.attributeName=de(e,"custom attribute"),o.attributeDefaultBindingMode=t,o.aliases=n}}function ot(e){var t=function(e){_.b.getOrCreateOwn(_.b.resource,Ke,e).liftsContent=!0};return e?t(e):t}function rt(e,t,n){var i=function(t,n,i){var o=n?t.constructor:t,r=_.b.getOrCreateOwn(_.b.resource,Ke,o);return n&&((e=e||{}).name=n),new ze(e).registerWith(o,r,i)};if(!e)return i;if(t){var o=e;return e=null,i(o,t,n)}return i}var st={mode:"open"};function at(e){var t="function"!=typeof e&&e?e:st,n=function(e){var n=_.b.getOrCreateOwn(_.b.resource,Ke,e);n.targetShadowDOM=!0,n.shadowDOMOptions=t};return"function"==typeof e?n(e):n}function ut(e){return function(t){_.b.define(ie.viewStrategyMetadataKey,e,t)}}function lt(e){return ut(new Y(e))}function ct(e,t,n){return ut(new te(e,t,n))}function ht(e,t){var n=void 0,i=void 0;"function"==typeof e?n=e:(i=e,n=void 0);var o=function(e){_.b.define(ie.viewStrategyMetadataKey,new Z(i,t),e)};return n?o(n):o}var dt=Object(j.d)(j.b,ke,Pe,et)(S=function(){function e(e,t,n,i){this._container=e,this._moduleAnalyzer=t,this._viewCompiler=n,this._compositionEngine=i,e.registerInstance(T,T.instance=new T)}return e.prototype.configureAnimator=function(e){this._container.unregister(T),this._container.registerInstance(T,T.instance=e)},e.prototype.compose=function(e){return this._compositionEngine.compose(e)},e.prototype.enhance=function(e){e instanceof A.b.Element&&(e={element:e});var t={letExpressions:[]},n=e.resources||this._container.get(pe);this._viewCompiler._compileNode(e.element,n,t,e.element.parentNode,"root",!0);var i=new Ne(e.element,t,n),o=e.container||this._container.createChild(),r=i.create(o,K.enhance());return r.bind(e.bindingContext||{},e.overrideContext),r.firstChild=r.lastChild=r.fragment,r.fragment=A.b.createDocumentFragment(),r.attached(),r},e}())||S}}]);
//# sourceMappingURL=vendors~2a42e354.2fbb6fa086bd570eb0d5.bundle.map