-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvendors~ecff2e3d.061e7405a40082295f82.chunk.js
2 lines (2 loc) · 54.1 KB
/
vendors~ecff2e3d.061e7405a40082295f82.chunk.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{"K/SW":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("70NS"),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(t){return function(){var e=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(e),clearInterval(i),t()}}}var s=function(){function t(){var t,e,i,r,s,a=this;this.flushing=!1,this.longStacks=!1,this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],n.c.mutationObserver?this.requestFlushMicroTaskQueue=(t=function(){return a.flushMicroTaskQueue()},e=n.b.createMutationObserver(t),i="a",r=n.b.createTextNode("a"),(s=Object.create(null)).a="b",s.b="a",e.observe(r,{characterData:!0}),function(){r.data=i=s[i]}):this.requestFlushMicroTaskQueue=o((function(){return a.flushMicroTaskQueue()})),this.requestFlushTaskQueue=o((function(){return a.flushTaskQueue()}))}return t.prototype._flushQueue=function(t,e){var i=0,n=void 0;try{for(this.flushing=!0;i<t.length;)if(n=t[i],this.longStacks&&(this.stack="string"==typeof n.stack?n.stack:void 0),n.call(),++i>e){for(var o=0,s=t.length-i;o<s;o++)t[o]=t[o+i];t.length-=i,i=0}}catch(t){!function(t,e,i){i&&e.stack&&"object"===(void 0===t?"undefined":r(t))&&null!==t&&(t.stack=a(t.stack)+e.stack),"onError"in e?e.onError(t):setTimeout((function(){throw t}),0)}(t,n,this.longStacks)}finally{this.flushing=!1}},t.prototype.queueMicroTask=function(t){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.longStacks&&(t.stack=this.prepareQueueStack("\nEnqueued in MicroTaskQueue by:\n")),this.microTaskQueue.push(t)},t.prototype.queueTask=function(t){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.longStacks&&(t.stack=this.prepareQueueStack("\nEnqueued in TaskQueue by:\n")),this.taskQueue.push(t)},t.prototype.flushTaskQueue=function(){var t=this.taskQueue;this.taskQueue=[],this._flushQueue(t,Number.MAX_VALUE)},t.prototype.flushMicroTaskQueue=function(){var t=this.microTaskQueue;this._flushQueue(t,this.microTaskQueueCapacity),t.length=0},t.prototype.prepareQueueStack=function(t){var e=t+function(t){return t.replace(/^[\s\S]*?\bqueue(Micro)?Task\b[^\n]*\n/,"")}(function(){var t=new Error;if(t.stack)return t.stack;try{throw t}catch(t){return t.stack}}());return"string"==typeof this.stack&&(e=a(e)+this.stack),e},t}();function a(t){var e=t.lastIndexOf("flushMicroTaskQueue");return e<0&&(e=t.lastIndexOf("flushTaskQueue"))<0||(e=t.lastIndexOf("\n",e))<0?t:t.substr(0,e)}},"aurelia-templating-binding":function(t,e,i){"use strict";i.d(e,"configure",(function(){return V}));var n,r,o,s,a,u,c,l,h=i("MP1E"),p=i("X5gX"),d=i("hij8");var f=(r=n=function(){function t(t){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=t,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 t.prototype.register=function(t,e,i){t=t.toLowerCase(),e=e.toLowerCase(),(this.elements[t]=this.elements[t]||Object.create(null))[e]=i},t.prototype.registerUniversal=function(t,e){t=t.toLowerCase(),this.allElements[t]=e},t.prototype.map=function(t,e){if(this.svg.isStandardSvgAttribute(t,e))return e;t=t.toLowerCase(),e=e.toLowerCase();var i=this.elements[t];return void 0!==i&&e in i?i[e]:e in this.allElements?this.allElements[e]:/(?:^data-)|(?:^aria-)|:/.test(e)?e:Object(p.r)(e)},t}(),n.inject=[p.m],r),v=function(){function t(t,e,i,n,r,o){this.observerLocator=t,this.targetProperty=e,this.parts=i,this.mode=n,this.lookupFunctions=r,this.attribute=this.attrToRemove=o,this.discrete=!1}return t.prototype.createBinding=function(t){return 3===this.parts.length?new b(t,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new m(this.observerLocator,this.parts,t,this.targetProperty,this.mode,this.lookupFunctions)},t}();function g(t,e){if("style"===e)h.getLogger("templating-binding").info('Internet Explorer does not support interpolation in "style" attributes. Use the style attribute\'s alias, "css" instead.');else if(t.parentElement&&"TEXTAREA"===t.parentElement.nodeName&&"textContent"===e)throw new Error('Interpolation binding cannot be used in the content of a textarea element. Use <textarea value.bind="expression"></textarea> instead.')}var m=function(){function t(t,e,i,n,r,o){g(i,n),this.observerLocator=t,this.parts=e,this.target=i,this.targetProperty=n,this.targetAccessor=t.getAccessor(i,n),this.mode=r,this.lookupFunctions=o}return t.prototype.interpolate=function(){if(this.isBound){for(var t="",e=this.parts,i=0,n=e.length;i<n;i++)t+=i%2==0?e[i]:this["childBinding"+i].value;this.targetAccessor.setValue(t,this.target,this.targetProperty)}},t.prototype.updateOneTimeBindings=function(){for(var t=1,e=this.parts.length;t<e;t+=2){var i=this["childBinding"+t];i.mode===p.q.oneTime&&i.call()}},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.source=t;for(var e=this.parts,i=1,n=e.length;i<n;i+=2){var r=new b(this,this.observerLocator,e[i],this.mode,this.lookupFunctions);r.bind(t),this["childBinding"+i]=r}this.isBound=!0,this.interpolate()},t.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;for(var t=1,e=this.parts.length;t<e;t+=2){this["childBinding"+t].unbind()}}},t}(),b=Object(p.s)()(o=function(){function t(t,e,i,n,r,o,s,a){t instanceof m?this.parent=t:(g(t,o),this.target=t,this.targetProperty=o,this.targetAccessor=e.getAccessor(t,o)),this.observerLocator=e,this.sourceExpression=i,this.mode=n,this.lookupFunctions=r,this.left=s,this.right=a}return t.prototype.updateTarget=function(t){(t=null==t?"":t.toString())!==this.value&&(this.value=t,this.parent?this.parent.interpolate():this.targetAccessor.setValue(this.left+t+this.right,this.target,this.targetProperty))},t.prototype.call=function(){this.isBound&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode!==p.q.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue),this.unobserve(!1)))},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t;var e=this.sourceExpression;e.bind&&e.bind(this,t,this.lookupFunctions),this.rawValue=e.evaluate(t,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode===p.q.oneWay&&Object(p.v)(this)},t.prototype.unbind=function(){if(this.isBound){this.isBound=!1;var t=this.sourceExpression;t.unbind&&t.unbind(this,this.source),this.source=null,this.value=null,this.rawValue=null,this.unobserve(!0)}},t.prototype.connect=function(t){this.isBound&&(t&&(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))},t}())||o,y=function(){function t(t,e,i,n,r){this.observerLocator=t,this.sourceExpression=i,this.targetProperty=e,this.lookupFunctions=n,this.toBindingContext=r}return t.prototype.createBinding=function(){return new w(this.observerLocator,this.sourceExpression,this.targetProperty,this.lookupFunctions,this.toBindingContext)},t}(),w=Object(p.s)()(s=function(){function t(t,e,i,n,r){this.observerLocator=t,this.sourceExpression=e,this.targetProperty=i,this.lookupFunctions=n,this.source=null,this.target=null,this.toBindingContext=r}return t.prototype.updateTarget=function(){var t=this.sourceExpression.evaluate(this.source,this.lookupFunctions);this.target[this.targetProperty]=t},t.prototype.call=function(t){if(this.isBound){if(t!==p.x)throw new Error("Unexpected call context "+t);this.updateTarget()}},t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.target=this.toBindingContext?t.bindingContext:t.overrideContext,this.sourceExpression.bind&&this.sourceExpression.bind(this,t,this.lookupFunctions),Object(p.v)(this)},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this.target=null,this.unobserve(!0))},t.prototype.connect=function(){this.isBound&&(this.updateTarget(),this.sourceExpression.connect(this,this.source))},t}())||s,C=function(){function t(t,e,i,n,r){this.observerLocator=t,this.targetProperty=e,this.parts=i,this.lookupFunctions=n,this.toBindingContext=r}return t.prototype.createBinding=function(){return new x(this.observerLocator,this.targetProperty,this.parts,this.lookupFunctions,this.toBindingContext)},t}(),x=function(){function t(t,e,i,n,r){this.observerLocator=t,this.parts=i,this.targetProperty=e,this.lookupFunctions=n,this.toBindingContext=r,this.target=null}return t.prototype.bind=function(t){if(this.isBound){if(this.source===t)return;this.unbind()}this.isBound=!0,this.source=t,this.target=this.toBindingContext?t.bindingContext:t.overrideContext,this.interpolationBinding=this.createInterpolationBinding(),this.interpolationBinding.bind(t)},t.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.source=null,this.target=null,this.interpolationBinding.unbind(),this.interpolationBinding=null)},t.prototype.createInterpolationBinding=function(){return 3===this.parts.length?new b(this.target,this.observerLocator,this.parts[1],p.q.oneWay,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new m(this.observerLocator,this.parts,this.target,this.targetProperty,p.q.oneWay,this.lookupFunctions)},t}(),k=(u=a=function(){function t(t,e,i,n){this.parser=t,this.observerLocator=e,this.eventManager=i,this.attributeMap=n}return t.prototype.interpret=function(t,e,i,n,r){return i.command in this?this[i.command](t,e,i,n,r):this.handleUnknownCommand(t,e,i,n,r)},t.prototype.handleUnknownCommand=function(t,e,i,n,r){return h.getLogger("templating-binding").warn("Unknown binding command.",i),n},t.prototype.determineDefaultBindingMode=function(t,e,i){var n=t.tagName.toLowerCase();return"input"===n&&("value"===e||"files"===e)&&"checkbox"!==t.type&&"radio"!==t.type||"input"===n&&"checked"===e&&("checkbox"===t.type||"radio"===t.type)||("textarea"===n||"select"===n)&&"value"===e||("textcontent"===e||"innerhtml"===e)&&"true"===t.contentEditable||"scrolltop"===e||"scrollleft"===e?p.q.twoWay:i&&e in i.attributes&&i.attributes[e]&&i.attributes[e].defaultBindingMode>=p.q.oneTime?i.attributes[e].defaultBindingMode:p.q.oneWay},t.prototype.bind=function(t,e,i,n,r){var o=n||d.b.attribute(i.attrName);return o.attributes[i.attrName]=new p.c(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),void 0===i.defaultBindingMode||null===i.defaultBindingMode?this.determineDefaultBindingMode(e,i.attrName,r):i.defaultBindingMode,t.lookupFunctions),o},t.prototype.trigger=function(t,e,i){return new p.h(this.eventManager,i.attrName,this.parser.parse(i.attrValue),p.u.none,!0,t.lookupFunctions)},t.prototype.capture=function(t,e,i){return new p.h(this.eventManager,i.attrName,this.parser.parse(i.attrValue),p.u.capturing,!0,t.lookupFunctions)},t.prototype.delegate=function(t,e,i){return new p.h(this.eventManager,i.attrName,this.parser.parse(i.attrValue),p.u.bubbling,!0,t.lookupFunctions)},t.prototype.call=function(t,e,i,n){var r=n||d.b.attribute(i.attrName);return r.attributes[i.attrName]=new p.d(this.observerLocator,i.attrName,this.parser.parse(i.attrValue),t.lookupFunctions),r},t.prototype.options=function(t,e,i,n,r){var o,s=n||d.b.attribute(i.attrName),a=i.attrValue,u=this.language,c=null,l="",h=void 0,p=void 0,f=!1,v=!1,g=!1;for(p=0,o=a.length;p<o;++p){if(";"!==(h=a[p])||f)if(":"===h&&null===c)g=!0,c=l.trim(),l="";else{if("\\"===h){l+=h,v=!0;continue}l+=h,null!==c&&!1===v&&"'"===h&&(f=!f)}else g||(c=this._getPrimaryPropertyName(t,r)),i=u.inspectAttribute(t,"?",c,l.trim()),u.createAttributeInstruction(t,e,i,s,r),s.attributes[i.attrName]||(s.attributes[i.attrName]=i.attrValue),l="",c=null;v=!1}return g||(c=this._getPrimaryPropertyName(t,r)),null!==c&&(i=u.inspectAttribute(t,"?",c,l.trim()),u.createAttributeInstruction(t,e,i,s,r),s.attributes[i.attrName]||(s.attributes[i.attrName]=i.attrValue)),s},t.prototype._getPrimaryPropertyName=function(t,e){var i=t.getAttribute(e.attributeName);return i&&i.primaryProperty?i.primaryProperty.attribute:null},t.prototype.for=function(t,e,i,n){var r,o=void 0,s=void 0,a=void 0,u=void 0;if(2!==(o=(r=(u=i.attrValue).match(/^ *[[].+[\]]/))?u.split("of "):u.split(" of ")).length)throw new Error('Incorrect syntax for "for". The form is: "$local of $items" or "[$key, $value] of $items".');return a=n||d.b.attribute(i.attrName),r?(s=o[0].replace(/[[\]]/g,"").replace(/,/g," ").replace(/\s+/g," ").trim().split(" "),a.attributes.key=s[0],a.attributes.value=s[1]):a.attributes.local=o[0],a.attributes.items=new p.c(this.observerLocator,"items",this.parser.parse(o[1]),p.q.oneWay,t.lookupFunctions),a},t.prototype["two-way"]=function(t,e,i,n){var r=n||d.b.attribute(i.attrName);return r.attributes[i.attrName]=new p.c(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),p.q.twoWay,t.lookupFunctions),r},t.prototype["to-view"]=function(t,e,i,n){var r=n||d.b.attribute(i.attrName);return r.attributes[i.attrName]=new p.c(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),p.q.toView,t.lookupFunctions),r},t.prototype["from-view"]=function(t,e,i,n){var r=n||d.b.attribute(i.attrName);return r.attributes[i.attrName]=new p.c(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),p.q.fromView,t.lookupFunctions),r},t.prototype["one-time"]=function(t,e,i,n){var r=n||d.b.attribute(i.attrName);return r.attributes[i.attrName]=new p.c(this.observerLocator,this.attributeMap.map(e.tagName,i.attrName),this.parser.parse(i.attrValue),p.q.oneTime,t.lookupFunctions),r},t}(),a.inject=[p.l,p.k,p.f,f],u);k.prototype["one-way"]=k.prototype["to-view"];var O={},_=(l=c=function(t){function e(e,i,n,r){var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o.parser=e,o.observerLocator=i,o.syntaxInterpreter=n,o.emptyStringExpression=o.parser.parse("''"),n.language=o,o.attributeMap=r,o.toBindingContextAttr="to-binding-context",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.inspectAttribute=function(t,e,i,n){var r=i.split(".");if(O.defaultBindingMode=null,2===r.length)O.attrName=r[0].trim(),O.attrValue=n,O.command=r[1].trim(),"ref"===O.command?(O.expression=new p.j(this.parser.parse(n),O.attrName,t.lookupFunctions),O.command=null,O.attrName="ref"):O.expression=null;else if("ref"===i)O.attrName=i,O.attrValue=n,O.command=null,O.expression=new p.j(this.parser.parse(n),"element",t.lookupFunctions);else{O.attrName=i,O.attrValue=n,O.command=null;var o=this.parseInterpolation(t,n);O.expression=null===o?null:new v(this.observerLocator,this.attributeMap.map(e,i),o,p.q.oneWay,t.lookupFunctions,i)}return O},e.prototype.createAttributeInstruction=function(t,e,i,n,r){var o=void 0;if(i.expression){if("ref"===i.attrName)return i.expression;(o=n||d.b.attribute(i.attrName)).attributes[i.attrName]=i.expression}else i.command&&(o=this.syntaxInterpreter.interpret(t,e,i,n,r));return o},e.prototype.createLetExpressions=function(t,e){for(var i=[],n=e.attributes,r=void 0,o=void 0,s=void 0,a=void 0,u=this.toBindingContextAttr,c=e.hasAttribute(u),l=0,d=n.length;d>l;++l)if(s=(r=n[l]).name,a=r.nodeValue,o=s.split("."),s!==u)if(2===o.length){if("bind"!==o[1]){h.getLogger("templating-binding-language").warn('Detected invalid let command. Expected "'+o[0]+'.bind", given "'+s+'"');continue}i.push(new y(this.observerLocator,Object(p.r)(o[0]),this.parser.parse(a),t.lookupFunctions,c))}else s=Object(p.r)(s),null===(o=this.parseInterpolation(t,a))&&h.getLogger("templating-binding-language").warn('Detected string literal in let bindings. Did you mean "'+s+".bind="+a+'" or "'+s+"=${"+a+'}" ?'),o?i.push(new C(this.observerLocator,s,o,t.lookupFunctions,c)):i.push(new y(this.observerLocator,s,new p.i(a),t.lookupFunctions,c));return i},e.prototype.inspectTextContent=function(t,e){var i=this.parseInterpolation(t,e);return null===i?null:new v(this.observerLocator,"textContent",i,p.q.oneWay,t.lookupFunctions,"textContent")},e.prototype.parseInterpolation=function(t,e){for(var i=e.indexOf("${",0),n=e.length,r=void 0,o=0,s=0,a=null,u=void 0,c=void 0,l=0;i>=0&&i<n-2;){s=1,u=i,i+=2;do{r=e[i],i++,"'"!==r&&'"'!==r?"\\"!==r?null===a&&("{"===r?s++:"}"===r&&s--):i++:null===a?a=r:a===r&&(a=null)}while(s>0&&i<n);if(0!==s)break;c=c||[],"\\"===e[u-1]&&"\\"!==e[u-2]?(c[l]=e.substring(o,u-1)+e.substring(u,i),c[++l]=this.emptyStringExpression,l++):(c[l]=e.substring(o,u),c[++l]=this.parser.parse(e.substring(u+2,i-1)),l++),o=i,i=e.indexOf("${",i)}return 0===l?null:(c[l]=e.substr(o),c)},e}(d.c),c.inject=[p.l,p.k,k,f],l);function V(t){t.container.registerSingleton(d.c,_),t.container.registerAlias(d.c,_)}},"aurelia-templating-resources":function(t,e,i){"use strict";i.d(e,"configure",(function(){return Ot}));var n,r=i("3U8n"),o=i("70NS"),s=i("K/SW"),a=i("hij8"),u=i("X5gX"),c=i("MP1E"),l=i("ZdUM"),h=i("iD3O"),p=i("qrcG"),d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function f(t,e){function i(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function v(t,e,i,n){var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s}!function(t){t.InvokeLifecycle="invoke-lifecycle",t.Replace="replace"}(n||(n={}));var g=function(){function t(t,e,i,r,o,s){this.activationStrategy=n.InvokeLifecycle,this.element=t,this.container=e,this.compositionEngine=i,this.viewSlot=r,this.viewResources=o,this.taskQueue=s,this.currentController=null,this.currentViewModel=null,this.changes=Object.create(null)}return t.inject=function(){return[o.b.Element,r.b,a.e,a.q,a.p,s.a]},t.prototype.created=function(t){this.owningView=t},t.prototype.bind=function(t,e){this.bindingContext=t,this.overrideContext=e;var i=this.changes;i.view=this.view,i.viewModel=this.viewModel,i.model=this.model,this.pendingTask||m(this)},t.prototype.unbind=function(){this.changes=Object.create(null),this.bindingContext=null,this.overrideContext=null;this.viewSlot.removeAll(!0,!0)},t.prototype.modelChanged=function(t,e){this.changes.model=t,y(this)},t.prototype.viewChanged=function(t,e){this.changes.view=t,y(this)},t.prototype.viewModelChanged=function(t,e){this.changes.viewModel=t,y(this)},v([a.r],t.prototype,"model",void 0),v([a.r],t.prototype,"view",void 0),v([a.r],t.prototype,"viewModel",void 0),v([a.r],t.prototype,"activationStrategy",void 0),v([a.r],t.prototype,"swapOrder",void 0),t=v([a.v,Object(a.t)("compose")],t)}();function m(t){var e=t.changes;if(t.changes=Object.create(null),function(t,e){var i=t.activationStrategy,r=t.currentViewModel;r&&"function"==typeof r.determineActivationStrategy&&(i=r.determineActivationStrategy());return"view"in e||"viewModel"in e||i===n.Replace}(t,e)){var i={view:t.view,viewModel:t.currentViewModel||t.viewModel,model:t.model};i=Object.assign(i,e),i=function(t,e){return Object.assign(e,{bindingContext:t.bindingContext,overrideContext:t.overrideContext,owningView:t.owningView,container:t.container,viewSlot:t.viewSlot,viewResources:t.viewResources,currentController:t.currentController,host:t.element,swapOrder:t.swapOrder})}(t,i),t.pendingTask=t.compositionEngine.compose(i).then((function(e){t.currentController=e,t.currentViewModel=e?e.viewModel:null}))}else if(t.pendingTask=function(t,e){if(t&&"function"==typeof t.activate)return Promise.resolve(t.activate(e))}(t.currentViewModel,e.model),!t.pendingTask)return;t.pendingTask=t.pendingTask.then((function(){b(t)}),(function(e){throw b(t),e}))}function b(t){t.pendingTask=null,function(t){for(var e in t)return!1;return!0}(t.changes)||m(t)}function y(t){t.pendingTask||t.updateRequested||(t.updateRequested=!0,t.taskQueue.queueMicroTask((function(){t.updateRequested=!1,m(t)})))}var w=function(){function t(t,e){this.viewFactory=t,this.viewSlot=e,this.view=null,this.bindingContext=null,this.overrideContext=null,this.showing=!1,this.cache=!0}return t.prototype.bind=function(t,e){this.bindingContext=t,this.overrideContext=e},t.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))},t.prototype._show=function(){if(!this.showing)return 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);this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext)},t.prototype._hide=function(){var t=this;if(this.showing){this.showing=!1;var e=this.viewSlot.remove(this.view);if(e instanceof Promise)return e.then((function(){t._unbindView()}));this._unbindView()}},t.prototype._unbindView=function(){var t="false"!==this.cache&&!!this.cache;this.view.unbind(),t||(this.view=null)},t}(),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=!0,e}return f(e,t),e.prototype.bind=function(e,i){t.prototype.bind.call(this,e,i),this.condition?this._show():this._hide()},e.prototype.conditionChanged=function(t){this._update(t)},e.prototype._update=function(t){var e,i=this;this.animating||(e=this.elseVm?t?this._swap(this.elseVm,this):this._swap(this,this.elseVm):t?this._show():this._hide())&&(this.animating=!0,e.then((function(){i.animating=!1,i.condition!==i.showing&&i._update(i.condition)})))},e.prototype._swap=function(t,e){switch(this.swapOrder){case"before":return Promise.resolve(e._show()).then((function(){return t._hide()}));case"with":return Promise.all([t._hide(),e._show()]);default:var i=t._hide();return i?i.then((function(){return e._show()})):e._show()}},v([Object(a.r)({primaryProperty:!0})],e.prototype,"condition",void 0),v([a.r],e.prototype,"swapOrder",void 0),v([a.r],e.prototype,"cache",void 0),e=v([Object(a.s)("if"),a.x,Object(r.d)(a.d,a.q)],e)}(w),x=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._registerInIf(),n}return f(e,t),e.prototype.bind=function(e,i){t.prototype.bind.call(this,e,i),this.ifVm.condition?this._hide():this._show()},e.prototype._registerInIf=function(){for(var t=this.viewSlot.anchor.previousSibling;t&&!t.au;)t=t.previousSibling;if(!t||!t.au.if)throw new Error("Can't find matching If for Else custom attribute.");this.ifVm=t.au.if.viewModel,this.ifVm.elseVm=this},e=v([Object(a.s)("else"),a.x,Object(r.d)(a.d,a.q)],e)}(w),k=function(){function t(t,e){this.viewFactory=t,this.viewSlot=e,this.parentOverrideContext=null,this.view=null}return t.prototype.bind=function(t,e){this.parentOverrideContext=e,this.valueChanged(this.value)},t.prototype.valueChanged=function(t){var e=Object(u.t)(t,this.parentOverrideContext),i=this.view;i?i.bind(t,e):((i=this.view=this.viewFactory.create()).bind(t,e),this.viewSlot.add(i))},t.prototype.unbind=function(){var t=this.view;this.parentOverrideContext=null,t&&t.unbind()},t=v([Object(a.s)("with"),a.x,Object(r.d)(a.d,a.q)],t)}(),O=u.q.oneTime;function _(t,e){var i=t.length;for(e>0&&(e-=1);e<i;++e)S(t[e].overrideContext,e,i)}function V(t,e,i,n,r){var o={},s=Object(u.t)(o,t.scope.overrideContext);return void 0!==r?(o[t.key]=r,o[t.value]=e):o[t.local]=e,S(s,i,n),s}function S(t,e,i){var n=0===e,r=e===i-1,o=e%2==0;t.$index=e,t.$first=n,t.$last=r,t.$middle=!(n||r),t.$odd=!o,t.$even=o}function M(t){t.call&&t.mode===O?t.call(u.x):t.updateOneTimeBindings&&t.updateOneTimeBindings()}function T(t,e,i,n){if(!i)return t.indexOf(e);for(var r=t.length,o=n||0;o<r;o++)if(i(t[o],e))return o;return-1}var j=function(){function t(){}return t.prototype.getCollectionObserver=function(t,e){return t.getArrayObserver(e)},t.prototype.instanceChanged=function(t,e){var i=this,n=t,r=e.length;if(e&&0!==r){var o=n.views(),s=o.length;if(0!==s)if(n.viewsRequireLifecycle){for(var a=o.slice(0),u=n.local,c=n.matcher(),l=[],h=[],p=0;p<s;p++){var d=a[p],f=d.bindingContext[u];-1===T(e,f,c)?h.push(d):l.push(f)}var v=void 0,g=void 0;l.length>0?(g=n.removeViews(h,!0,!n.viewsRequireLifecycle),v=function(){for(var t=0;t<r;t++){var s=e[t],a=T(l,s,c,t),u=void 0;if(-1===a){var h=V(n,e[t],t,r);n.insertView(t,h.bindingContext,h),l.splice(t,0,void 0)}else a===t?(u=o[a],l[a]=void 0):(u=o[a],n.moveView(a,t),l.splice(a,1),l.splice(t,0,void 0));u&&S(u.overrideContext,t,r)}i._inPlaceProcessItems(n,e)}):(g=n.removeAllViews(!0,!n.viewsRequireLifecycle),v=function(){return i._standardProcessInstanceChanged(n,e)}),g instanceof Promise?g.then(v):v()}else this._inPlaceProcessItems(n,e);else this._standardProcessInstanceChanged(n,e)}else n.removeAllViews(!0,!n.viewsRequireLifecycle)},t.prototype._standardProcessInstanceChanged=function(t,e){for(var i=0,n=e.length;i<n;i++){var r=V(t,e[i],i,n);t.addView(r.bindingContext,r)}},t.prototype._inPlaceProcessItems=function(t,e){for(var i=e.length,n=t.viewCount();n>i;)n--,t.removeView(n,!0,!t.viewsRequireLifecycle);for(var r=t.local,o=0;o<n;o++){var s=t.view(o),a=o===i-1,u=0!==o&&!a,c=s.bindingContext,l=s.overrideContext;c[r]===e[o]&&l.$middle===u&&l.$last===a||(c[r]=e[o],l.$middle=u,l.$last=a,t.updateBindings(s))}for(o=n;o<i;o++){l=V(t,e[o],o,i);t.addView(l.bindingContext,l)}},t.prototype.instanceMutated=function(t,e,i){var n=this;if(t.__queuedSplices){for(var r=0,o=i.length;r<o;++r){var s=i[r],a=s.index,c=s.removed,l=s.addedCount;Object(u.w)(t.__queuedSplices,a,c,l)}t.__array=e.slice(0)}else{var h=this._runSplices(t,e.slice(0),i);if(h instanceof Promise){var p=t.__queuedSplices=[],d=function(){if(!p.length)return t.__queuedSplices=void 0,void(t.__array=void 0);var e=n._runSplices(t,t.__array,p)||Promise.resolve();p=t.__queuedSplices=[],e.then(d)};h.then(d)}}},t.prototype._runSplices=function(t,e,i){for(var n=this,r=0,o=[],s=0,a=i.length;s<a;++s){for(var u=i[s],c=0,l=u.removed.length;c<l;++c){var h=t.removeView(u.index+r+o.length,!0);h instanceof Promise&&o.push(h)}r-=u.addedCount}if(o.length>0)return Promise.all(o).then((function(){var r=n._handleAddedSplices(t,e,i);_(t.views(),r)}));var p=this._handleAddedSplices(t,e,i);_(t.views(),p)},t.prototype._handleAddedSplices=function(t,e,i){for(var n,r,o=e.length,s=0,a=i.length;s<a;++s){var u=i[s],c=n=u.index,l=u.index+u.addedCount;for((null==r||r>u.index)&&(r=n);c<l;++c){var h=V(t,e[c],c,o);t.insertView(c,h.bindingContext,h)}}return r},t}(),E=function(){function t(){}return t.prototype.getCollectionObserver=function(t,e){return t.getMapObserver(e)},t.prototype.instanceChanged=function(t,e){var i=this,n=t.removeAllViews(!0,!t.viewsRequireLifecycle);n instanceof Promise?n.then((function(){return i._standardProcessItems(t,e)})):this._standardProcessItems(t,e)},t.prototype._standardProcessItems=function(t,e){var i,n=0;e.forEach((function(r,o){i=V(t,r,n,e.size,o),t.addView(i.bindingContext,i),++n}))},t.prototype.instanceMutated=function(t,e,i){var n,r,o,s,a,u,c,l,h=[];for(r=0,o=i.length;r<o;++r)switch(n=(c=i[r]).key,c.type){case"update":a=this._getViewIndexByKey(t,n),(l=t.removeView(a,!0,!t.viewsRequireLifecycle))instanceof Promise&&h.push(l),s=V(t,e.get(n),a,e.size,n),t.insertView(a,s.bindingContext,s);break;case"add":u=t.viewCount()<=e.size-1?t.viewCount():e.size-1,s=V(t,e.get(n),u,e.size,n),t.insertView(e.size-1,s.bindingContext,s);break;case"delete":if(void 0===c.oldValue)return;a=this._getViewIndexByKey(t,n),(l=t.removeView(a,!0,!t.viewsRequireLifecycle))instanceof Promise&&h.push(l);break;case"clear":t.removeAllViews(!0,!t.viewsRequireLifecycle);break;default:continue}h.length>0?Promise.all(h).then((function(){_(t.views(),0)})):_(t.views(),0)},t.prototype._getViewIndexByKey=function(t,e){var i,n;for(i=0,n=t.viewCount();i<n;++i)if(t.view(i).bindingContext[t.key]===e)return i},t}(),L=function(){function t(){}return t.prototype.instanceChanged=function(t,e){t.removeAllViews(!0)},t.prototype.getCollectionObserver=function(t,e){},t}(),P=function(){function t(){}return t.prototype.getCollectionObserver=function(){return null},t.prototype.instanceChanged=function(t,e){var i=this,n=t.removeAllViews(!0,!t.viewsRequireLifecycle);n instanceof Promise?n.then((function(){return i._standardProcessItems(t,e)})):this._standardProcessItems(t,e)},t.prototype._standardProcessItems=function(t,e){var i,n,r,o,s=t.viewCount();if((o=s-(e=Math.floor(e)))>0)for(o>s&&(o=s),i=0,n=o;i<n;++i)t.removeView(s-(i+1),!0,!t.viewsRequireLifecycle);else{for(i=s,n=e;i<n;++i)r=V(t,i,i,n),t.addView(r.bindingContext,r);_(t.views(),0)}},t}(),q=function(){function t(){}return t.prototype.getCollectionObserver=function(t,e){return t.getSetObserver(e)},t.prototype.instanceChanged=function(t,e){var i=this,n=t.removeAllViews(!0,!t.viewsRequireLifecycle);n instanceof Promise?n.then((function(){return i._standardProcessItems(t,e)})):this._standardProcessItems(t,e)},t.prototype._standardProcessItems=function(t,e){var i,n=0;e.forEach((function(r){i=V(t,r,n,e.size),t.addView(i.bindingContext,i),++n}))},t.prototype.instanceMutated=function(t,e,i){var n,r,o,s,a,u,c,l=[];for(r=0,o=i.length;r<o;++r)switch(n=(u=i[r]).value,u.type){case"add":var h=Math.max(e.size-1,0);s=V(t,n,h,e.size),t.insertView(h,s.bindingContext,s);break;case"delete":a=this._getViewIndexByValue(t,n),(c=t.removeView(a,!0,!t.viewsRequireLifecycle))instanceof Promise&&l.push(c);break;case"clear":t.removeAllViews(!0,!t.viewsRequireLifecycle);break;default:continue}l.length>0?Promise.all(l).then((function(){_(t.views(),0)})):_(t.views(),0)},t.prototype._getViewIndexByValue=function(t,e){var i,n;for(i=0,n=t.viewCount();i<n;++i)if(t.view(i).bindingContext[t.local]===e)return i},t}(),I=function(){function t(){this.matchers=[],this.strategies=[],this.addStrategy((function(t){return null==t}),new L),this.addStrategy((function(t){return t instanceof Array}),new j),this.addStrategy((function(t){return t instanceof Map}),new E),this.addStrategy((function(t){return t instanceof Set}),new q),this.addStrategy((function(t){return"number"==typeof t}),new P)}return t.prototype.addStrategy=function(t,e){this.matchers.push(t),this.strategies.push(e)},t.prototype.getStrategy=function(t){for(var e=this.matchers,i=0,n=e.length;i<n;++i)if(e[i](t))return this.strategies[i];return null},t}(),A=["focus","if","else","repeat","show","hide","with"];function N(t){var e=t.type,i=null!==e.elementName?e.elementName:e.attributeName;return-1===A.indexOf(i)&&(e.handlesAttached||e.handlesBind||e.handlesCreated||e.handlesDetached||e.handlesUnbind)||e.viewFactory&&F(e.viewFactory)||t.viewFactory&&F(t.viewFactory)}function B(t){var e=t.behaviorInstructions;if(e)for(var i=e.length;i--;)if(N(e[i]))return!0;return t.viewFactory&&F(t.viewFactory)}function F(t){if("_viewsRequireLifecycle"in t)return t._viewsRequireLifecycle;if(t._viewsRequireLifecycle=!1,t.viewFactory)return t._viewsRequireLifecycle=F(t.viewFactory),t._viewsRequireLifecycle;if(t.template.querySelector(".au-animate"))return t._viewsRequireLifecycle=!0,!0;for(var e in t.instructions)if(B(t.instructions[e]))return t._viewsRequireLifecycle=!0,!0;return t._viewsRequireLifecycle=!1,!1}var R=function(){function t(t){Object.assign(this,{local:"items",viewsRequireLifecycle:!0},t)}return t.prototype.viewCount=function(){throw new Error("subclass must implement `viewCount`")},t.prototype.views=function(){throw new Error("subclass must implement `views`")},t.prototype.view=function(t){throw new Error("subclass must implement `view`")},t.prototype.matcher=function(){throw new Error("subclass must implement `matcher`")},t.prototype.addView=function(t,e){throw new Error("subclass must implement `addView`")},t.prototype.insertView=function(t,e,i){throw new Error("subclass must implement `insertView`")},t.prototype.moveView=function(t,e){throw new Error("subclass must implement `moveView`")},t.prototype.removeAllViews=function(t,e){throw new Error("subclass must implement `removeAllViews`")},t.prototype.removeViews=function(t,e,i){throw new Error("subclass must implement `removeView`")},t.prototype.removeView=function(t,e,i){throw new Error("subclass must implement `removeView`")},t.prototype.updateBindings=function(t){throw new Error("subclass must implement `updateBindings`")},t}(),Q=function(t){function e(e,i,n,r,o,s){var a=t.call(this,{local:"item",viewsRequireLifecycle:F(e)})||this;return a.viewFactory=e,a.instruction=i,a.viewSlot=n,a.lookupFunctions=r.lookupFunctions,a.observerLocator=o,a.key="key",a.value="value",a.strategyLocator=s,a.ignoreMutation=!1,a.sourceExpression=function(t,e){return t.behaviorInstructions.filter((function(t){return t.originalAttrName===e}))[0].attributes.items.sourceExpression}(a.instruction,"repeat.for"),a.isOneTime=function(t){for(;t instanceof u.a;){if("oneTime"===t.name)return!0;t=t.expression}return!1}(a.sourceExpression),a.viewsRequireLifecycle=F(e),a}var i;return f(e,t),i=e,e.prototype.call=function(t,e){this[t](this.items,e)},e.prototype.bind=function(t,e){this.scope={bindingContext:t,overrideContext:e};var i=this.instruction;"__marker_extracted__"in i||(i.__marker_extracted__=this._captureAndRemoveMatcherBinding()),this.matcherBinding=i.__marker_extracted__,this.itemsChanged()},e.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0,!0),this._unsubscribeCollection()},e.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},e.prototype.itemsChanged=function(){var t=this;if(this._unsubscribeCollection(),this.scope){var e=this.items;if(this.strategy=this.strategyLocator.getStrategy(e),!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,e),this.observerLocator.taskQueue.queueMicroTask((function(){t.ignoreMutation=!1}))}},e.prototype._getInnerCollection=function(){var t=function(t){for(var e=!1;t instanceof u.a;)t=t.expression;for(;t instanceof u.n;)t=t.expression,e=!0;return e?t:null}(this.sourceExpression);return t?t.evaluate(this.scope,null):null},e.prototype.handleCollectionMutated=function(t,e){this.collectionObserver&&(this.ignoreMutation||this.strategy.instanceMutated(this,t,e))},e.prototype.handleInnerCollectionMutated=function(t,e){var i=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var n=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask((function(){return i.ignoreMutation=!1})),n===this.items?this.itemsChanged():this.items=n}},e.prototype._observeInnerCollection=function(){var t=this._getInnerCollection(),e=this.strategyLocator.getStrategy(t);return!!e&&(this.collectionObserver=e.getCollectionObserver(this.observerLocator,t),!!this.collectionObserver&&(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0))},e.prototype._observeCollection=function(){var t=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,t),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},e.prototype._captureAndRemoveMatcherBinding=function(){var t=this.viewFactory.viewFactory;if(t){var e=t.template,n=t.instructions;if(i.useInnerMatcher)return U(n);if($(e)>1)return;var r=z(e);if(!r.hasAttribute("au-target-id"))return;var o=r.getAttribute("au-target-id");return U(n,o)}},e.prototype.viewCount=function(){return this.viewSlot.children.length},e.prototype.views=function(){return this.viewSlot.children},e.prototype.view=function(t){return this.viewSlot.children[t]},e.prototype.matcher=function(){var t=this.matcherBinding;return t?t.sourceExpression.evaluate(this.scope,t.lookupFunctions):null},e.prototype.addView=function(t,e){var i=this.viewFactory.create();i.bind(t,e),this.viewSlot.add(i)},e.prototype.insertView=function(t,e,i){var n=this.viewFactory.create();n.bind(e,i),this.viewSlot.insert(t,n)},e.prototype.moveView=function(t,e){this.viewSlot.move(t,e)},e.prototype.removeAllViews=function(t,e){return this.viewSlot.removeAll(t,e)},e.prototype.removeViews=function(t,e,i){return this.viewSlot.removeMany(t,e,i)},e.prototype.removeView=function(t,e,i){return this.viewSlot.removeAt(t,e,i)},e.prototype.updateBindings=function(t){for(var e=t,i=e.bindings.length;i--;)M(e.bindings[i]);for(i=e.controllers.length;i--;)for(var n=e.controllers[i].boundProperties.length;n--;){M(e.controllers[i].boundProperties[n].binding)}},e.useInnerMatcher=!0,v([a.r],e.prototype,"items",void 0),v([a.r],e.prototype,"local",void 0),v([a.r],e.prototype,"key",void 0),v([a.r],e.prototype,"value",void 0),e=i=v([Object(a.s)("repeat"),a.x,Object(r.d)(a.d,a.j,a.q,a.p,u.k,I)],e)}(R),U=function(t,e){for(var i=Object.keys(t),n=0;n<i.length;n++){var r=i[n];if(void 0===e||r===e){var o=t[r].expressions;if(o)for(var s=0;s<o.length;s++)if("matcher"===o[s].targetProperty){var a=o[s];return o.splice(s,1),a}}}},$=function(t){for(var e=t.childNodes,i=0,n=0,r=e.length;r>n;++n)1===e[n].nodeType&&++i;return i},z=function(t){for(var e=t.firstChild;null!==e;){if(1===e.nodeType)return e;e=e.nextSibling}return null};function D(t){o.c.shadowDOM&&t&&!t.hasAureliaHideStyle&&(t.hasAureliaHideStyle=!0,o.b.injectStyles(".aurelia-hide { display:none !important; }",t))}var W=function(){function t(t,e,i){this.element=t,this.animator=e,this.domBoundary=i}return t.inject=function(){return[o.b.Element,a.a,r.c.of(o.b.boundary,!0)]},t.prototype.created=function(){D(this.domBoundary)},t.prototype.valueChanged=function(t){var e=this.element,i=this.animator;t?i.removeClass(e,"aurelia-hide"):i.addClass(e,"aurelia-hide")},t.prototype.bind=function(t){this.valueChanged(this.value)},t=v([Object(a.s)("show")],t)}(),H=function(){function t(t,e,i){this.element=t,this.animator=e,this.domBoundary=i}return t.inject=function(){return[o.b.Element,a.a,r.c.of(o.b.boundary,!0)]},t.prototype.created=function(){D(this.domBoundary)},t.prototype.valueChanged=function(t){t?this.animator.addClass(this.element,"aurelia-hide"):this.animator.removeClass(this.element,"aurelia-hide")},t.prototype.bind=function(t){this.valueChanged(this.value)},t.prototype.value=function(t){throw new Error("Method not implemented.")},t=v([Object(a.s)("hide")],t)}(),X=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,G=!0,K=function(){function t(){}return t.prototype.sanitize=function(t){return G&&(G=!1,Object(c.getLogger)("html-sanitizer").warn("CAUTION: The default HTMLSanitizer does NOT provide security against a wide variety of sophisticated XSS attacks,\nand should not be relied on for sanitizing input from unknown sources.\nPlease see https://aurelia.io/docs/binding/basics#element-content for instructions on how to use a secure solution like DOMPurify or sanitize-html.")),t.replace(X,"")},t}(),J=function(){function t(t){this.sanitizer=t}return t.prototype.toView=function(t){return null==t?null:this.sanitizer.sanitize(t)},t=v([Object(u.A)("sanitizeHTML"),Object(r.d)(K)],t)}(),Z=function(){function t(t,e){this.viewFactory=t,this.viewSlot=e,this.view=null}return t.prototype.bind=function(t,e){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(t,e)},t.prototype.unbind=function(){this.view.unbind()},t=v([Object(a.s)("replaceable"),a.x,Object(r.d)(a.d,a.q)],t)}(),Y=function(){function t(t,e){this.element=t,this.taskQueue=e,this.isAttached=!1,this.needsApply=!1}return t.inject=function(){return[o.b.Element,s.a]},t.prototype.valueChanged=function(t){this.isAttached?this._apply():this.needsApply=!0},t.prototype._apply=function(){var t=this;this.value?this.taskQueue.queueMicroTask((function(){t.value&&t.element.focus()})):this.element.blur()},t.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this),this.element.addEventListener("blur",this)},t.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this),this.element.removeEventListener("blur",this)},t.prototype.handleEvent=function(t){"focus"===t.type?this.value=!0:o.b.activeElement!==this.element&&(this.value=!1)},t=v([Object(a.s)("focus",u.q.twoWay)],t)}(),tt=/url\((?!['"]data)([^)]+)\)/gi;var et=function(){function t(t){this.address=t,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return t.prototype.initialize=function(t,e){this._scoped=new e(this)},t.prototype.register=function(t,e){"scoped"===e?t.registerViewEngineHooks(this._scoped):this._global=!0},t.prototype.load=function(t){var e=this;return t.get(l.a).loadText(this.address).catch((function(t){return null})).then((function(t){t=function(t,e){if("string"!=typeof e)throw new Error("Failed loading required CSS file: "+t);return e.replace(tt,(function(e,i){var n=i.charAt(0);return"'"!==n&&'"'!==n||(i=i.substr(1,i.length-2)),"url('"+Object(h.d)(i,t)+"')"}))}(e.address,t),e._scoped.css=t,e._global&&(e._alreadyGloballyInjected=!0,o.b.injectStyles(t))}))},t}(),it=function(){function t(t){this.owner=t,this.css=null}return t.prototype.beforeCompile=function(t,e,i){if(i.targetShadowDOM)o.b.injectStyles(this.css,t,!0);else if(o.c.scopedCSS){o.b.injectStyles(this.css,t,!0).setAttribute("scoped","scoped")}else this._global&&!this.owner._alreadyGloballyInjected&&(o.b.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},t}();var nt=function(){function t(){}return t.prototype.bind=function(t,e){t.targetObserver=new u.e(t.target,t.targetProperty)},t.prototype.unbind=function(t,e){},t=v([Object(u.p)("attr")],t)}(),rt={bind:function(t,e,i){t.originalMode=t.mode,t.mode=this.mode},unbind:function(t,e){t.mode=t.originalMode,t.originalMode=null}},ot=function(){function t(){this.mode=u.q.oneTime}return t=v([Object(p.c)(rt),Object(u.p)("oneTime")],t)}(),st=function(){function t(){this.mode=u.q.toView}return t=v([Object(p.c)(rt),Object(u.p)("oneWay")],t)}(),at=function(){function t(){this.mode=u.q.toView}return t=v([Object(p.c)(rt),Object(u.p)("toView")],t)}(),ut=function(){function t(){this.mode=u.q.fromView}return t=v([Object(p.c)(rt),Object(u.p)("fromView")],t)}(),ct=function(){function t(){this.mode=u.q.twoWay}return t=v([Object(p.c)(rt),Object(u.p)("twoWay")],t)}();function lt(t){var e=this,i=this.throttleState,n=+new Date-i.last;if(n>=i.delay)return clearTimeout(i.timeoutId),i.timeoutId=null,i.last=+new Date,void this.throttledMethod(t);i.newValue=t,null===i.timeoutId&&(i.timeoutId=setTimeout((function(){i.timeoutId=null,i.last=+new Date,e.throttledMethod(i.newValue)}),i.delay-n))}var ht=function(){function t(){}return t.prototype.bind=function(t,e,i){void 0===i&&(i=200);var n="updateTarget";t.callSource?n="callSource":t.updateSource&&t.mode===u.q.twoWay&&(n="updateSource"),t.throttledMethod=t[n],t.throttledMethod.originalName=n,t[n]=lt,t.throttleState={delay:i,last:0,timeoutId:null}},t.prototype.unbind=function(t,e){t[t.throttledMethod.originalName]=t.throttledMethod,t.throttledMethod=null,clearTimeout(t.throttleState.timeoutId),t.throttleState=null},t=v([Object(u.p)("throttle")],t)}(),pt={};function dt(t){var e=this,i=this.debounceState;clearTimeout(i.timeoutId),i.timeoutId=setTimeout((function(){return e.debouncedMethod(t)}),i.delay)}function ft(t,e,i){var n=this,r=this.debounceState;if(clearTimeout(r.timeoutId),t!==r.callContextToDebounce)return r.oldValue=pt,void this.debouncedMethod(t,e,i);r.oldValue===pt&&(r.oldValue=i),r.timeoutId=setTimeout((function(){var i=r.oldValue;r.oldValue=pt,n.debouncedMethod(t,e,i)}),r.delay)}var vt=function(){function t(){}return t.prototype.bind=function(t,e,i){void 0===i&&(i=200);var n=void 0!==t.callSource,r=n?"callSource":"call",o=n?dt:ft,s=t.mode,a=s===u.q.twoWay||s===u.q.fromView?u.z:u.x;t.debouncedMethod=t[r],t.debouncedMethod.originalName=r,t[r]=o,t.debounceState={callContextToDebounce:a,delay:i,timeoutId:0,oldValue:pt}},t.prototype.unbind=function(t,e){t[t.debouncedMethod.originalName]=t.debouncedMethod,t.debouncedMethod=null,clearTimeout(t.debounceState.timeoutId),t.debounceState=null},t=v([Object(u.p)("debounce")],t)}();function gt(t){var e=function(t){return t.path&&t.path[0]||t.deepPath&&t.deepPath[0]||t.target}(t);this.target===e&&this.selfEventCallSource(t)}var mt=function(){function t(){}return t.prototype.bind=function(t,e){if(!t.callSource||!t.targetEvent)throw new Error("Self binding behavior only supports event.");t.selfEventCallSource=t.callSource,t.callSource=gt},t.prototype.unbind=function(t,e){t.callSource=t.selfEventCallSource,t.selfEventCallSource=null},t=v([Object(u.p)("self")],t)}(),bt=function(){function t(){this.signals={}}return t.prototype.signal=function(t){var e=this.signals[t];if(e)for(var i=e.length;i--;)e[i].call(u.x)},t}(),yt=function(){function t(t){this.signals=t.signals}return t.inject=function(){return[bt]},t.prototype.bind=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];if(!t.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled. Trigger, delegate and call bindings cannot be signaled.");var r=this.signals;if(1===i.length){var o=i[0];(r[o]||(r[o]=[])).push(t),t.signalName=o}else{if(!(i.length>1))throw new Error("Signal name is required.");for(var s=i.length;s--;){var a=i[s];(r[a]||(r[a]=[])).push(t)}t.signalName=i}},t.prototype.unbind=function(t,e){var i=this.signals,n=t.signalName;if(t.signalName=null,Array.isArray(n))for(var r=n,o=r.length;o--;){var s;(s=i[r[o]]).splice(s.indexOf(t),1)}else(s=i[n]).splice(s.indexOf(t),1)},t=v([Object(u.p)("signal")],t)}(),wt="The updateTrigger binding behavior requires at least one event name argument: eg <input value.bind=\"firstName & updateTrigger:'blur'\">",Ct="The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.",xt=function(){function t(){}return t.prototype.bind=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];if(0===i.length)throw new Error(wt);if(t.mode!==u.q.twoWay&&t.mode!==u.q.fromView)throw new Error(Ct);var r=t.observerLocator.getObserver(t.target,t.targetProperty);if(!r.handler)throw new Error(Ct);t.targetObserver=r,r.originalHandler=t.targetObserver.handler;var o=new u.g(i);r.handler=o},t.prototype.unbind=function(t,e){var i=t.targetObserver;i.handler.dispose(),i.handler=i.originalHandler,i.originalHandler=null},t=v([Object(u.p)("updateTrigger")],t)}();function kt(t){var e=t.container.get(a.n),i=t.aurelia.loader;e.addResourcePlugin(".html",{fetch:function(t){return i.loadTemplate(t).then((function(e){var i,n=e.template.getAttribute("bindable"),r=e.template.getAttribute("use-shadow-dom"),o=/([^\/^\?]+)\.html/i.exec(t)[1].toLowerCase();return n?(n=n.split(",").map((function(t){return t.trim()})),e.template.removeAttribute("bindable")):n=[],(i={})[o]=function(t){for(var e=t.name,i=t.viewUrl,n=t.bindableNames,r=t.useShadowDOMmode,o=function(){function t(){}return t.prototype.bind=function(t){this.$parent=t},t=v([Object(a.t)(e),Object(a.z)(i)],t)}(),s=0,u=n.length;s<u;++s)Object(a.r)(n[s])(o);switch(r){case"open":Object(a.y)({mode:"open"})(o);break;case"closed":Object(a.y)({mode:"closed"})(o);break;case"":Object(a.y)(o);break;case null:break;default:Object(c.getLogger)("aurelia-html-only-element").warn('Expected \'use-shadow-dom\' value to be "close", "open" or "", received '+r)}return o}({name:o,viewUrl:t,bindableNames:n,useShadowDOMmode:r}),i}))}})}function Ot(t){o.b.injectStyles(".aurelia-hide { display:none !important; }"),t.globalResources(g,C,x,k,Q,W,H,Z,Y,J,ot,st,at,ut,ct,ht,vt,mt,yt,xt,nt),kt(t);var e=t.container.get(a.n),i={fetch:function(t){var e;return(e={})[t]=function(t){return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return f(i,e),i=v([Object(a.w)(new et(t))],i)}(it)}(t),e}};[".css",".less",".sass",".scss",".styl"].forEach((function(t){return e.addResourcePlugin(t,i)}))}},"aurelia-templating-router":function(t,e,i){"use strict";i.d(e,"configure",(function(){return y}));var n=i("4ysu"),r=i("qrcG"),o=i("iD3O"),s=i("hij8"),a=i("3U8n"),u=i("X5gX"),c=i("70NS"),l=i("MP1E"),h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var p=function(){},d=function(){function t(t,e,i,n,r,o,s){this.element=t,this.container=e,this.viewSlot=i,this.router=n,this.viewLocator=r,this.compositionTransaction=o,this.compositionEngine=s,this.router.registerViewPort(this,this.element.getAttribute("name")),"initialComposition"in o||(o.initialComposition=!0,this.compositionTransactionNotifier=o.enlist())}return t.inject=function(){return[c.b.Element,a.b,s.q,n.c,s.o,s.f,s.e]},t.prototype.created=function(t){this.owningView=t},t.prototype.bind=function(t,e){this.container.viewModel=t,this.overrideContext=e},t.prototype.process=function(t,e){var i=this,n=t,o=n.component,a=o.childContainer,u=o.viewModel,c=o.viewModelResource,l=c.metadata,h=o.router.currentInstruction.config,p=h.viewPorts&&h.viewPorts[n.name]||{};a.get(f)._notify(this);var d={viewModel:p.layoutViewModel||h.layoutViewModel||this.layoutViewModel,view:p.layoutView||h.layoutView||this.layoutView,model:p.layoutModel||h.layoutModel||this.layoutModel,router:n.component.router,childContainer:a,viewSlot:this.viewSlot},v=this.viewLocator.getViewStrategy(o.view||u);return v&&o.view&&v.makeRelativeTo(r.a.get(o.router.container.viewModel.constructor).moduleId),l.load(a,c.value,null,v,!0).then((function(t){i.compositionTransactionNotifier||(i.compositionTransactionOwnershipToken=i.compositionTransaction.tryCapture()),(d.viewModel||d.view)&&(n.layoutInstruction=d);var r=s.b.dynamic(i.element,u,t);if(n.controller=l.create(a,r),e)return null;i.swap(n)}))},t.prototype.swap=function(t){var e=this,i=t,n=i.controller,r=i.layoutInstruction,o=this.view,a=function(){var t=s.i[e.swapOrder]||s.i.after,i=e.viewSlot;t(i,o,(function(){return Promise.resolve(i.add(e.view))})).then((function(){e._notify()}))},c=function(t){n.automate(e.overrideContext,t);var i=e.compositionTransactionOwnershipToken;return i?i.waitForCompositionComplete().then((function(){return e.compositionTransactionOwnershipToken=null,a()})):a()};return r?(r.viewModel||(r.viewModel=new p),this.compositionEngine.createController(r).then((function(t){var i=t.view;return s.h.distributeView(n.view,t.slots||i.slots),t.automate(Object(u.t)(r.viewModel),e.owningView),i.children.push(n.view),i||t})).then((function(t){return e.view=t,c(t)}))):(this.view=n.view,c(this.owningView))},t.prototype._notify=function(){var t=this.compositionTransactionNotifier;t&&(t.done(),this.compositionTransactionNotifier=null)},t.$view=null,t.$resource={name:"router-view",bindables:["swapOrder","layoutView","layoutViewModel","layoutModel","inherit-binding-context"]},t}(),f=function(){function t(){var t=this;this.promise=new Promise((function(e){return t.resolve=e}))}return t.prototype.findNearest=function(){return this.promise},t.prototype._notify=function(t){this.resolve(t)},t}(),v=function(){};s.u("<template></template>")(v);var g=function(t){function e(e){var i=t.call(this)||this;return i.compositionEngine=e,i}return function(t,e){function i(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.prototype.resolveViewModel=function(t,e){return new Promise((function(i,n){var a;if("moduleId"in e){var u=e.moduleId;return null===u?a=v:(u=Object(o.d)(u,r.a.get(t.container.viewModel.constructor).moduleId),a=/\.html/i.test(u)?function(t){var e=/([^\/^\?]+)\.html/i.exec(t)[1],i=function(){function t(){}return t.prototype.bind=function(t){this.$parent=t},t}();return Object(s.t)(e)(i),Object(s.z)(t)(i),i}(u):u),i(a)}n(new Error('Invalid route config. No "moduleId" found.'))}))},e.prototype.createChildContainer=function(t){var e=t.container.createChild();return e.registerSingleton(f),e.getChildRouter=function(){var i;return e.registerHandler(n.c,(function(){return i||(i=t.createChild(e))})),e.get(n.c)},e},e.prototype.loadRoute=function(t,e,i){var n=this;return this.resolveViewModel(t,e).then((function(i){return n.compositionEngine.ensureViewModel({viewModel:i,childContainer:n.createChildContainer(t),view:e.view||e.viewStrategy,router:t})}))},e.inject=[s.e],e}(n.b);var m=Object(l.getLogger)("route-href"),b=function(){function t(t,e){this.router=t,this.element=e,this.attribute="href"}return t.inject=function(){return[n.c,c.b.Element]},t.prototype.bind=function(){this.isActive=!0,this.processChange()},t.prototype.unbind=function(){this.isActive=!1},t.prototype.attributeChanged=function(t,e){return e&&this.element.removeAttribute(e),this.processChange()},t.prototype.processChange=function(){var t=this;return this.router.ensureConfigured().then((function(){if(!t.isActive)return null;var e=t.element,i=t.router.generate(t.route,t.params);return e.au.controller?e.au.controller.viewModel[t.attribute]=i:e.setAttribute(t.attribute,i),null})).catch((function(t){m.error(t)}))},t.$resource={type:"attribute",name:"route-href",bindables:[{name:"route",changeHandler:"processChange",primaryProperty:!0},{name:"params",changeHandler:"processChange"},"attribute"]},t}();function y(t){t.singleton(n.b,g).singleton(n.c,n.a).globalResources(d,b),t.container.registerAlias(n.c,n.a)}}}]);
//# sourceMappingURL=vendors~ecff2e3d.061e7405a40082295f82.bundle.map