diff --git a/examples/ember/app/components/render-elements.hbs b/examples/ember/app/components/render-elements.hbs index 89584f74..5b9dd8a4 100644 --- a/examples/ember/app/components/render-elements.hbs +++ b/examples/ember/app/components/render-elements.hbs @@ -1,7 +1,7 @@

Ember Example

-
+

{{this.message}}

diff --git a/examples/react/package-lock.json b/examples/react/package-lock.json index ef39b883..f7190328 100644 --- a/examples/react/package-lock.json +++ b/examples/react/package-lock.json @@ -16442,16 +16442,17 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "license": "Apache-2.0", "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=14.17" + "node": ">=4.2.0" } }, "node_modules/unbox-primitive": { diff --git a/examples/react/src/App.js b/examples/react/src/App.js index 53135add..a6c90dd0 100644 --- a/examples/react/src/App.js +++ b/examples/react/src/App.js @@ -62,7 +62,7 @@ export default function MyComponent() {

React Example

-
+
{message}
diff --git a/examples_build/ember/assets/chunk.143.29274073097fba1d3348.js b/examples_build/ember/assets/chunk.143.29274073097fba1d3348.js deleted file mode 100644 index add41c71..00000000 --- a/examples_build/ember/assets/chunk.143.29274073097fba1d3348.js +++ /dev/null @@ -1,72 +0,0 @@ -/*! For license information please see chunk.143.29274073097fba1d3348.js.LICENSE.txt */ -var __ember_auto_import__;(()=>{var t={332:(t,e,n)=>{"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(674) -var r,o=(r=n(323))&&r.__esModule?r:{default:r} -var i=new(function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),t.instance?t.instance:(t.instance=this,this._name="Krypton Glue",this.configuration={},this.domain=null,this.formToken=null,this.publicKey=null,this.loaded=!1,this.loading=!1,this)}var e,n -return e=t,n=[{key:"loadLibrary",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null -return this.loaded?this.getKrypton(e):t?e?/^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=.]+$/g.test(t)?/^\d{2,8}:(|test)publickey_.+$/g.test(e)?(this.domain=t,this.publicKey=e,this.formToken=n,this.domain&&this.publicKey?this.loadKryptonClient():Promise.reject("The library cannot be loaded")):(console.error("Public key format should be shopId:[test]publickey_*"),Promise.reject("[".concat(e,"] is not a valid public key"))):(console.error("Domain format should be https://domain.name"),Promise.reject("[".concat(t,"] is not a valid endpoint domain"))):Promise.reject("Public key not defined"):Promise.reject("Domain not defined")}},{key:"loadKryptonClient",value:function(){var t=this -if(!this.loading){var e=this.publicKey,n=this.domain -this.loading=!0 -var r=document.createElement("script") -r.type="text/javascript",/^.+\/$/.test(n)||(n+="/"),r.src="".concat(n,"static/js/krypton-client/V4.0/stable/kr-payment-form.min.js"),r.setAttribute("kr-public-key",e),r.setAttribute("kr-spa-mode","true"),this.formToken&&r.setAttribute("kr-form-token",this.formToken),!document.querySelector('script[src="'.concat(r.src,'"]'))&&document.body?document.body.appendChild(r):document.body||console.warn("document.body is undefined")}return new Promise((function(e){(0,o.default)(window,"KR",(function(){(0,o.default)(window.KR,"ready",(function(){t.loaded=!0,t.loading=!1,e({KR:window.KR})}))}))}))}},{key:"getKrypton",value:function(t){var e=this -return new Promise((function(n,r){t&&t!==e.publicKey?window.KR.setFormConfig({publicKey:t}).then(n).catch(r):n({KR:window.KR})}))}}],n&&function(t,e){for(var n=0;n{"use strict" -var r -Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var o=((r=n(332))&&r.__esModule?r:{default:r}).default -e.default=o},323:(t,e)=>{"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:150 -setTimeout((function o(){t[e]?n():setTimeout(o,r)}),0)}},674:(t,e,n)=>{"use strict" -t.exports=n(412).polyfill()},412:function(t){var e -e=function(){"use strict" -function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,o=void 0,i=function(t,e){d[n]=t,d[n+1]=e,2===(n+=2)&&(o?o(h):m())},s="undefined"!=typeof window?window:void 0,u=s||{},a=u.MutationObserver||u.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel -function f(){var t=setTimeout -return function(){return t(h,1)}}var d=new Array(1e3) -function h(){for(var t=0;t{var r,o -t.exports=(r=_eai_d,o=_eai_r,window.emberAutoImportDynamic=function(t){return 1===arguments.length?o("_eai_dyn_"+t):o("_eai_dynt_"+t)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(t){return o("_eai_sync_"+t)(Array.prototype.slice.call(arguments,1))},r("__v1-addons__early-boot-set__",[],(function(){})),void r("@lyracom/embedded-form-glue",["__v1-addons__early-boot-set__"],(function(){return n(44)})))},248:function(t,e){window._eai_r=require,window._eai_d=define}},e={} -function n(r){var o=e[r] -if(void 0!==o)return o.exports -var i=e[r]={exports:{}} -return t[r].call(i.exports,i,i.exports,n),i.exports}n(248) -var r=n(258) -__ember_auto_import__=r})() diff --git a/examples_build/ember/assets/chunk.143.29274073097fba1d3348.js.LICENSE.txt b/examples_build/ember/assets/chunk.143.29274073097fba1d3348.js.LICENSE.txt deleted file mode 100644 index ddaf1f7e..00000000 --- a/examples_build/ember/assets/chunk.143.29274073097fba1d3348.js.LICENSE.txt +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE - * @version v4.2.8+1e68dce6 - */ diff --git a/examples_build/ember/assets/chunk.143.e19d6cd9ac95e6b52f06.js b/examples_build/ember/assets/chunk.143.e19d6cd9ac95e6b52f06.js new file mode 100644 index 00000000..0bb275fe --- /dev/null +++ b/examples_build/ember/assets/chunk.143.e19d6cd9ac95e6b52f06.js @@ -0,0 +1,33 @@ +var __ember_auto_import__;(()=>{var e={332:(e,t,o)=>{"use strict" +Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0 +var r,n=(r=o(323))&&r.__esModule?r:{default:r} +var i=new(function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.instance?e.instance:(e.instance=this,this._name="Krypton Glue",this.configuration={},this.domain=null,this.formToken=null,this.publicKey=null,this.loaded=!1,this.loading=!1,this)}var t,o +return t=e,o=[{key:"loadLibrary",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null +if(this.loaded)return this.getKrypton(t) +if(!e)return Promise.reject("Domain not defined") +if(!t)return Promise.reject("Public key not defined") +try{var r=new URL(e) +if(!["http:","https:"].includes(r.protocol))throw new Error("Invalid protocol") +if(r.port)throw new Error("No port allowed") +if(""!==r.search)throw new Error("No query params allowed") +if("/"!==r.pathname)throw new Error("Invalid path")}catch(t){return console.error("Domain format should be https://domain.name"),Promise.reject("[".concat(e,"] is not a valid endpoint domain"))}return/^\d{2,8}:(|test)publickey_.+$/g.test(t)?(this.domain=e,this.publicKey=t,this.formToken=o,this.domain&&this.publicKey?this.loadKryptonClient():Promise.reject("The library cannot be loaded")):(console.error("Public key format should be shopId:[test]publickey_*"),Promise.reject("[".concat(t,"] is not a valid public key")))}},{key:"loadKryptonClient",value:function(){var e=this +if(!this.loading){var t=this.publicKey,o=this.domain +this.loading=!0 +var r=document.createElement("script") +r.type="text/javascript",/^.+\/$/.test(o)||(o+="/"),r.src="".concat(o,"static/js/krypton-client/V4.0/stable/kr-payment-form.min.js"),r.setAttribute("kr-public-key",t),r.setAttribute("kr-spa-mode","true"),this.formToken&&r.setAttribute("kr-form-token",this.formToken),!document.querySelector('script[src="'.concat(r.src,'"]'))&&document.body?document.body.appendChild(r):document.body||console.warn("document.body is undefined")}return new Promise((function(t){(0,n.default)(window,"KR",(function(){(0,n.default)(window.KR,"ready",(function(){e.loaded=!0,e.loading=!1,t({KR:window.KR})}))}))}))}},{key:"getKrypton",value:function(e){var t=this +return new Promise((function(o,r){e&&e!==t.publicKey?window.KR.setFormConfig({publicKey:e}).then(o).catch(r):o({KR:window.KR})}))}}],o&&function(e,t){for(var o=0;o{"use strict" +var r +Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0 +var n=((r=o(332))&&r.__esModule?r:{default:r}).default +t.default=n},323:(e,t)=>{"use strict" +Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:150 +setTimeout((function n(){e[t]?o():setTimeout(n,r)}),0)}},507:(e,t,o)=>{var r,n +e.exports=(r=_eai_d,n=_eai_r,window.emberAutoImportDynamic=function(e){return 1===arguments.length?n("_eai_dyn_"+e):n("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return n("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},r("__v1-addons__early-boot-set__",[],(function(){})),void r("@lyracom/embedded-form-glue",["__v1-addons__early-boot-set__"],(function(){return o(44)})))},609:function(e,t){window._eai_r=require,window._eai_d=define}},t={} +function o(r){var n=t[r] +if(void 0!==n)return n.exports +var i=t[r]={exports:{}} +return e[r].call(i.exports,i,i.exports,o),i.exports}o(609) +var r=o(507) +__ember_auto_import__=r})() diff --git a/examples_build/ember/assets/chunk.178.b6d1aec7d5a9e4c0277c.js b/examples_build/ember/assets/chunk.178.7f5d8708570fe0793934.js similarity index 88% rename from examples_build/ember/assets/chunk.178.b6d1aec7d5a9e4c0277c.js rename to examples_build/ember/assets/chunk.178.7f5d8708570fe0793934.js index af36658f..a08ab08e 100644 --- a/examples_build/ember/assets/chunk.178.b6d1aec7d5a9e4c0277c.js +++ b/examples_build/ember/assets/chunk.178.7f5d8708570fe0793934.js @@ -1,4 +1,4 @@ -var __ember_auto_import__;(()=>{var r,e={248:function(r,e){window._eai_r=require,window._eai_d=define},430:(r,e,o)=>{var t,n +var __ember_auto_import__;(()=>{var r,e={609:function(r,e){window._eai_r=require,window._eai_d=define},582:(r,e,o)=>{var t,n r.exports=(t=_eai_d,n=_eai_r,window.emberAutoImportDynamic=function(r){return 1===arguments.length?n("_eai_dyn_"+r):n("_eai_dynt_"+r)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(r){return n("_eai_sync_"+r)(Array.prototype.slice.call(arguments,1))},t("__v1-addons__early-boot-set__",[],(function(){})),void t("qunit",["__v1-addons__early-boot-set__"],(function(){return o(916)})))}},o={} function t(r){var n=o[r] if(void 0!==n)return n.exports @@ -15,6 +15,6 @@ var e=(e,o)=>{var n,_,[i,a,l]=o,d=0 if(i.some((e=>0!==r[e]))){for(n in a)t.o(a,n)&&(t.m[n]=a[n]) if(l)var u=l(t)}for(e&&e(o);dt(248))) -var n=t.O(void 0,[916],(()=>t(430))) +o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})(),t.O(void 0,[916],(()=>t(609))) +var n=t.O(void 0,[916],(()=>t(582))) n=t.O(n),__ember_auto_import__=n})() diff --git a/examples_build/ember/assets/chunk.916.0d20aeb262446f677b4c.js b/examples_build/ember/assets/chunk.916.5fc7b2d4118dc2015aa2.js similarity index 99% rename from examples_build/ember/assets/chunk.916.0d20aeb262446f677b4c.js rename to examples_build/ember/assets/chunk.916.5fc7b2d4118dc2015aa2.js index 662510bb..715950cd 100644 --- a/examples_build/ember/assets/chunk.916.0d20aeb262446f677b4c.js +++ b/examples_build/ember/assets/chunk.916.5fc7b2d4118dc2015aa2.js @@ -1,4 +1,4 @@ -/*! For license information please see chunk.916.0d20aeb262446f677b4c.js.LICENSE.txt */ +/*! For license information please see chunk.916.5fc7b2d4118dc2015aa2.js.LICENSE.txt */ (globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[916],{916:(e,t,n)=>{var r e=n.nmd(e),function(){"use strict" function i(e){return 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},i(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.text())).then((e=>(a=e,n.default.loadLibrary("~~CHANGE_ME_ENDPOINT~~","~~CHANGE_ME_PUBLIC_KEY~~")))).then((e=>{let{KR:t}=e -return t.setFormConfig({formToken:a,"kr-language":"en-US"})})).then((e=>{let{KR:t}=e -return t.onSubmit((e=>(fetch("http://localhost:3000/validatePayment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>{200===e.status&&(this.message="Payment successful!")})),!1)))})).then((e=>{let{KR:t}=e -return t.attachForm("#myPaymentForm")})).then((e=>{let{KR:t,result:r}=e -t.showForm(r.formId)})).catch((e=>{this.message=e+" (see console for more details)"}))}},s=o.prototype,f="message",c=[a.tracked],m={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=c.slice().reverse().reduce((function(e,t){return t(s,f,e)||e}),b),p&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(p):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(s,f,b),b=null),l=b,o) -var s,f,c,m,p,b -e.default=d,(0,t.setComponentTemplate)(u,d)})),define("emberjs/data-adapter",["exports","@ember-data/debug"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/helpers/app-version",["exports","@ember/component/helper","emberjs/config/environment","ember-cli-app-version/utils/regexp"],(function(e,t,r,n){function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -const i=r.default.APP.version -let a=t.versionOnly||t.hideSha,o=t.shaOnly||t.hideVersion,l=null -return a&&(t.showExtended&&(l=i.match(n.versionExtendedRegExp)),l||(l=i.match(n.versionRegExp))),o&&(l=i.match(n.shaRegExp)),l?l[0]:i}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=i,e.default=void 0 -var a=(0,t.helper)(i) -e.default=a})),define("emberjs/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})})),define("emberjs/helpers/page-title",["exports","ember-page-title/helpers/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=t.default -e.default=r})),define("emberjs/helpers/pluralize",["exports","ember-inflector/lib/helpers/pluralize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=t.default -e.default=r})),define("emberjs/helpers/singularize",["exports","ember-inflector/lib/helpers/singularize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=t.default -e.default=r})),define("emberjs/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","emberjs/config/environment"],(function(e,t,r){let n,i -Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.default.APP&&(n=r.default.APP.name,i=r.default.APP.version) -var a={name:"App Version",initialize:(0,t.default)(n,i)} -e.default=a})),define("emberjs/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r={name:"container-debug-adapter",initialize(){(arguments[1]||arguments[0]).register("container-debug-adapter:main",t.default)}} -e.default=r})),define("emberjs/initializers/ember-data-data-adapter",["exports","@ember-data/debug/setup"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/initializers/ember-data",["exports","ember-data","ember-data/setup-container"],(function(e,t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var n={name:"ember-data",initialize:r.default} -e.default=n})),define("emberjs/initializers/export-application-global",["exports","ember","emberjs/config/environment"],(function(e,t,r){function n(){var e=arguments[1]||arguments[0] -if(!1!==r.default.exportApplicationGlobal){var n -if("undefined"!=typeof window)n=window -else if("undefined"!=typeof global)n=global -else{if("undefined"==typeof self)return -n=self}var i,a=r.default.exportApplicationGlobal -i="string"==typeof a?a:t.default.String.classify(r.default.modulePrefix),n[i]||(n[i]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete n[i]}}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=n -var i={name:"export-application-global",initialize:n} -e.default=i})),define("emberjs/instance-initializers/ember-data",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var t={name:"ember-data",initialize(){}} -e.default=t})),define("emberjs/serializers/-default",["exports","@ember-data/serializer/json"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/serializers/-json-api",["exports","@ember-data/serializer/json-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/serializers/-rest",["exports","@ember-data/serializer/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/-ensure-registered",["exports","@embroider/util/services/ensure-registered"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/page-title-list",["exports","ember-page-title/services/page-title-list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/page-title",["exports","ember-page-title/services/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/store",["exports","ember-data/store"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/templates/application",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=(0,t.createTemplateFactory)({id:"0m1gxKi4",block:'[[[1,[28,[35,0],["Emberjs"],null]],[1,"\\n\\n"],[8,[39,1],null,null,null],[1,"\\n"],[1,"\\n"],[46,[28,[37,3],null,null],null,null,null]],[],false,["page-title","attach-form","component","-outlet"]]',moduleName:"emberjs/templates/application.hbs",isStrictMode:!1}) -e.default=r})),define("emberjs/transforms/boolean",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.BooleanTransform}})})),define("emberjs/transforms/date",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.DateTransform}})})),define("emberjs/transforms/number",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.NumberTransform}})})),define("emberjs/transforms/string",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.StringTransform}})})),define("emberjs/config/environment",[],(function(){try{var e="emberjs/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),r={default:JSON.parse(decodeURIComponent(t))} -return Object.defineProperty(r,"__esModule",{value:!0}),r}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("emberjs/app").default.create({name:"emberjs",version:"0.0.0+5ba6b63c"}) diff --git a/examples_build/ember/assets/emberjs-586b3f289d9ee2b6e238a6400abf6fb8.js b/examples_build/ember/assets/emberjs-586b3f289d9ee2b6e238a6400abf6fb8.js new file mode 100644 index 00000000..b2de8f0a --- /dev/null +++ b/examples_build/ember/assets/emberjs-586b3f289d9ee2b6e238a6400abf6fb8.js @@ -0,0 +1,35 @@ +"use strict" +define("emberjs/adapters/-json-api",["exports","@ember-data/adapter/json-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/app",["exports","@ember/application","ember-resolver","ember-load-initializers","emberjs/config/environment"],(function(e,t,r,n,i){function a(e,t,r){var n +return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e +var r=e[Symbol.toPrimitive] +if(void 0!==r){var n=r.call(e,t||"default") +if("object"!=typeof n)return n +throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +class o extends t.default{constructor(...e){super(...e),a(this,"modulePrefix",i.default.modulePrefix),a(this,"podModulePrefix",i.default.podModulePrefix),a(this,"Resolver",r.default)}}e.default=o,(0,n.default)(o,i.default.modulePrefix)})),define("emberjs/component-managers/glimmer",["exports","@glimmer/component/-private/ember-component-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/components/render-elements",["exports","@ember/component","@lyracom/embedded-form-glue","@glimmer/component","@glimmer/tracking","@ember/template-factory"],(function(e,t,r,n,i,a){var o,l +Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +const u=(0,a.createTemplateFactory)({id:"nMEWQSvO",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[10,"h1"],[12],[1,"Ember Example"],[13],[1,"\\n "],[10,0],[14,1,"myPaymentForm"],[12],[1,"\\n "],[10,0],[14,0,"kr-smart-form"],[14,"kr-card-form-expanded",""],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,"data-test","payment-message"],[12],[1,[30,0,["message"]]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"style"],[12],[1,"\\n .container{ display: flex; flex-direction: column; justify-content: center;\\n align-items: center; }\\n"],[13]],[],false,[]]',moduleName:"emberjs/components/render-elements.hbs",isStrictMode:!1}) +let d=e.default=(o=class extends n.default{constructor(...e){var t,n,i,a +super(...e),t=this,n="message",a=this,(i=l)&&Object.defineProperty(t,n,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(a):void 0}) +let o="DEMO-TOKEN-TO-BE-REPLACED" +fetch("http://localhost:3000/createPayment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentConf:{amount:1e4,currency:"USD"}})}).then((e=>e.text())).then((e=>(o=e,r.default.loadLibrary("~~CHANGE_ME_ENDPOINT~~","~~CHANGE_ME_PUBLIC_KEY~~")))).then((({KR:e})=>e.setFormConfig({formToken:o,"kr-language":"en-US"}))).then((({KR:e})=>e.onSubmit((e=>(fetch("http://localhost:3000/validatePayment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>{200===e.status&&(this.message="Payment successful!")})),!1))))).then((({KR:e})=>e.renderElements("#myPaymentForm"))).catch((e=>{this.message=e+" (see console for more details)"}))}},s=o.prototype,f="message",c=[i.tracked],m={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=c.slice().reverse().reduce((function(e,t){return t(s,f,e)||e}),b),p&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(p):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(s,f,b),b=null),l=b,o) +var s,f,c,m,p,b;(0,t.setComponentTemplate)(u,d)})),define("emberjs/data-adapter",["exports","@ember-data/debug"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/helpers/app-version",["exports","@ember/component/helper","emberjs/config/environment","ember-cli-app-version/utils/regexp"],(function(e,t,r,n){function i(e,t={}){const i=r.default.APP.version +let a=t.versionOnly||t.hideSha,o=t.shaOnly||t.hideVersion,l=null +return a&&(t.showExtended&&(l=i.match(n.versionExtendedRegExp)),l||(l=i.match(n.versionRegExp))),o&&(l=i.match(n.shaRegExp)),l?l[0]:i}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=i,e.default=void 0 +e.default=(0,t.helper)(i)})),define("emberjs/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})})),define("emberjs/helpers/page-title",["exports","ember-page-title/helpers/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=t.default})),define("emberjs/helpers/pluralize",["exports","ember-inflector/lib/helpers/pluralize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=t.default})),define("emberjs/helpers/singularize",["exports","ember-inflector/lib/helpers/singularize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=t.default})),define("emberjs/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","emberjs/config/environment"],(function(e,t,r){let n,i +Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.default.APP&&(n=r.default.APP.name,i=r.default.APP.version) +e.default={name:"App Version",initialize:(0,t.default)(n,i)}})),define("emberjs/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default={name:"container-debug-adapter",initialize(){(arguments[1]||arguments[0]).register("container-debug-adapter:main",t.default)}}})),define("emberjs/initializers/ember-data-data-adapter",["exports","@ember-data/debug/setup"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/initializers/ember-data",["exports","ember-data","ember-data/setup-container"],(function(e,t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default={name:"ember-data",initialize:r.default}})),define("emberjs/initializers/export-application-global",["exports","ember","emberjs/config/environment"],(function(e,t,r){function n(){var e=arguments[1]||arguments[0] +if(!1!==r.default.exportApplicationGlobal){var n +if("undefined"!=typeof window)n=window +else if("undefined"!=typeof global)n=global +else{if("undefined"==typeof self)return +n=self}var i,a=r.default.exportApplicationGlobal +i="string"==typeof a?a:t.default.String.classify(r.default.modulePrefix),n[i]||(n[i]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete n[i]}}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=n +e.default={name:"export-application-global",initialize:n}})),define("emberjs/instance-initializers/ember-data",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default={name:"ember-data",initialize(){}}})),define("emberjs/serializers/-default",["exports","@ember-data/serializer/json"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/serializers/-json-api",["exports","@ember-data/serializer/json-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/serializers/-rest",["exports","@ember-data/serializer/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/-ensure-registered",["exports","@embroider/util/services/ensure-registered"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/page-title-list",["exports","ember-page-title/services/page-title-list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/page-title",["exports","ember-page-title/services/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/services/store",["exports","ember-data/store"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("emberjs/templates/application",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=(0,t.createTemplateFactory)({id:"QZwJJdcZ",block:'[[[1,[28,[35,0],["Emberjs"],null]],[1,"\\n\\n"],[8,[39,1],null,null,null],[1,"\\n"],[1,"\\n"],[46,[28,[37,3],null,null],null,null,null]],[],false,["page-title","render-elements","component","-outlet"]]',moduleName:"emberjs/templates/application.hbs",isStrictMode:!1})})),define("emberjs/transforms/boolean",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.BooleanTransform}})})),define("emberjs/transforms/date",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.DateTransform}})})),define("emberjs/transforms/number",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.NumberTransform}})})),define("emberjs/transforms/string",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.StringTransform}})})),define("emberjs/config/environment",[],(function(){try{var e="emberjs/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),r={default:JSON.parse(decodeURIComponent(t))} +return Object.defineProperty(r,"__esModule",{value:!0}),r}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("emberjs/app").default.create({name:"emberjs",version:"0.0.0+fccf647f"}) diff --git a/examples_build/ember/assets/vendor-ce1310c7a9d67bc7aed90b0822bcefb5.js b/examples_build/ember/assets/vendor-b617d8919758434c36f73c183876fadf.js similarity index 74% rename from examples_build/ember/assets/vendor-ce1310c7a9d67bc7aed90b0822bcefb5.js rename to examples_build/ember/assets/vendor-b617d8919758434c36f73c183876fadf.js index e307c85c..8bc72150 100644 --- a/examples_build/ember/assets/vendor-ce1310c7a9d67bc7aed90b0822bcefb5.js +++ b/examples_build/ember/assets/vendor-b617d8919758434c36f73c183876fadf.js @@ -48,38 +48,20 @@ for(var l=a.deps,u=a.callback,c=new Array(l.length),d=0;d{if("object"==typeof e&&null!==e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"EXTEND_PROTOTYPES"!==t&&"EMBER_LOAD_HOOKS"!==t){var r=s[t] +var r,i=e.global=t((r="object"==typeof global&&global)&&void 0===r.nodeType?r:void 0)||t("object"==typeof self&&self)||t("object"==typeof window&&window)||"undefined"!=typeof mainContext&&mainContext||new Function("return this")(),n=e.context=function(e,t){return void 0===t?{imports:e,exports:e,lookup:e}:{imports:t.imports||e,exports:t.exports||e,lookup:t.lookup||e}}(i,i.Ember) +var s=e.ENV={ENABLE_OPTIONAL_FEATURES:!1,EXTEND_PROTOTYPES:{Array:!0},LOG_STACKTRACE_ON_DEPRECATION:!0,LOG_VERSION:!0,RAISE_ON_DEPRECATION:!1,STRUCTURED_PROFILE:!1,_APPLICATION_TEMPLATE_WRAPPER:!0,_TEMPLATE_ONLY_GLIMMER_COMPONENTS:!1,_DEBUG_RENDER_TREE:!1,_DEFAULT_ASYNC_OBSERVERS:!1,_RERENDER_LOOP_LIMIT:1e3,EMBER_LOAD_HOOKS:{},FEATURES:{}};(e=>{if("object"==typeof e&&null!==e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"EXTEND_PROTOTYPES"!==t&&"EMBER_LOAD_HOOKS"!==t){var r=s[t] !0===r?s[t]=!1!==e[t]:!1===r&&(s[t]=!0===e[t])}var{EXTEND_PROTOTYPES:i}=e void 0!==i&&(s.EXTEND_PROTOTYPES.Array="object"==typeof i&&null!==i?!1!==i.Array:!1!==i) var{EMBER_LOAD_HOOKS:n}=e @@ -133,10 +109,9 @@ Array.isArray(o)&&(s.EMBER_LOAD_HOOKS[a]=o.filter((e=>"function"==typeof e)))}va if("object"==typeof l&&null!==l)for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s.FEATURES[u]=!0===l[u]) 0}})(i.EmberENV)})),e("@ember/-internals/error-handling/index",["exports"],(function(e){"use strict" var t -Object.defineProperty(e,"__esModule",{value:!0}),e.getDispatchOverride=function(){return i},e.getOnerror=function(){return t},e.onErrorTarget=void 0,e.setDispatchOverride=function(e){i=e},e.setOnerror=function(e){t=e} -var r={get onerror(){return t}} -e.onErrorTarget=r -var i=null})),e("@ember/-internals/glimmer/index",["exports","@glimmer/opcode-compiler","@ember/-internals/owner","@ember/-internals/utils","@ember/debug","@glimmer/manager","@glimmer/reference","@glimmer/validator","@ember/-internals/metal","@ember/object","@ember/-internals/browser-environment","@ember/-internals/views","@ember/engine","@ember/engine/instance","@ember/instrumentation","@ember/service","@ember/-internals/string","@glimmer/destroyable","@ember/runloop","@glimmer/util","@glimmer/runtime","@ember/-internals/runtime","@ember/object/-internals","@ember/-internals/environment","@ember/-internals/container","@glimmer/node","@ember/array/-internals","@ember/-internals/glimmer","@ember/array","@glimmer/global-context","@ember/routing/-internals","@glimmer/program","rsvp"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_,w,R,O,E,A,T,C,S,k,P,j,M){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.getDispatchOverride=function(){return r},e.getOnerror=function(){return t},e.onErrorTarget=void 0,e.setDispatchOverride=function(e){r=e},e.setOnerror=function(e){t=e} +e.onErrorTarget={get onerror(){return t}} +var r=null})),e("@ember/-internals/glimmer/index",["exports","@glimmer/opcode-compiler","@ember/-internals/owner","@ember/-internals/utils","@ember/debug","@glimmer/manager","@glimmer/reference","@glimmer/validator","@ember/-internals/metal","@ember/object","@ember/-internals/browser-environment","@ember/-internals/views","@ember/engine","@ember/engine/instance","@ember/instrumentation","@ember/service","@ember/-internals/string","@glimmer/destroyable","@ember/runloop","@glimmer/util","@glimmer/runtime","@ember/-internals/runtime","@ember/object/-internals","@ember/-internals/environment","@ember/-internals/container","@glimmer/node","@ember/array/-internals","@ember/-internals/glimmer","@ember/array","@glimmer/global-context","@ember/routing/-internals","@glimmer/program","rsvp"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_,w,R,O,E,A,C,T,k,P,S,j,M){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0,Object.defineProperty(e,"DOMChanges",{enumerable:!0,get:function(){return _.DOMChanges}}),Object.defineProperty(e,"DOMTreeConstruction",{enumerable:!0,get:function(){return _.DOMTreeConstruction}}),e.LinkTo=e.Input=e.Helper=void 0,Object.defineProperty(e,"NodeDOMTreeConstruction",{enumerable:!0,get:function(){return A.NodeDOMTreeConstruction}}),e.Textarea=e.SafeString=e.RootTemplate=e.Renderer=e.OutletView=void 0,e._resetRenderers=function(){pr.length=0},e.componentCapabilities=void 0,e.escapeExpression=function(e){var t if("string"!=typeof e){if(ft(e))return e.toHTML() if(null==e)return"" @@ -149,9 +124,7 @@ return mr.promise},e.setComponentManager=function(e,t){return(0,s.setComponentMa switch(t.lookup("-environment:main")._renderMode){case"serialize":return A.serializeBuilder.bind(null) case"rehydrate":return _.rehydrationBuilder.bind(null) default:return _.clientBuilder.bind(null)}}}),e.register(E.privatize`template:-root`,x),e.register("renderer:-dom",vr)},e.setupEngineRegistry=function(e){e.optionsForType("template",{instantiate:!1}),e.register("view:-outlet",ur),e.register("template:-outlet",yr),e.optionsForType("helper",{instantiate:!1}),e.register("component:input",ee),e.register("component:link-to",ve),e.register("component:textarea",we),O.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS||e.register(E.privatize`component:-default`,et)},Object.defineProperty(e,"template",{enumerable:!0,get:function(){return t.templateFactory}}),Object.defineProperty(e,"templateCacheCounters",{enumerable:!0,get:function(){return t.templateCacheCounters}}) -var x=(0,t.templateFactory)({id:"9BtKrod8",block:'[[[46,[30,0],null,null,null]],[],false,["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/root.hbs",isStrictMode:!1}) -e.RootTemplate=x -var D=(0,t.templateFactory)({id:"OGSIkgXP",block:'[[[11,"input"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,4,[30,0,["type"]]],[16,"checked",[30,0,["checked"]]],[16,2,[30,0,["value"]]],[4,[38,0],["change",[30,0,["change"]]],null],[4,[38,0],["input",[30,0,["input"]]],null],[4,[38,0],["keyup",[30,0,["keyUp"]]],null],[4,[38,0],["paste",[30,0,["valueDidChange"]]],null],[4,[38,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],false,["on"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/input.hbs",isStrictMode:!1}) +var x=e.RootTemplate=(0,t.templateFactory)({id:"9BtKrod8",block:'[[[46,[30,0],null,null,null]],[],false,["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/root.hbs",isStrictMode:!1}),D=(0,t.templateFactory)({id:"OGSIkgXP",block:'[[[11,"input"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,4,[30,0,["type"]]],[16,"checked",[30,0,["checked"]]],[16,2,[30,0,["value"]]],[4,[38,0],["change",[30,0,["change"]]],null],[4,[38,0],["input",[30,0,["input"]]],null],[4,[38,0],["keyup",[30,0,["keyUp"]]],null],[4,[38,0],["paste",[30,0,["valueDidChange"]]],null],[4,[38,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],false,["on"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/input.hbs",isStrictMode:!1}) function N(){}class F{static toString(){return"internal component"}constructor(e,t,i){this.owner=e,this.args=t,this.caller=i,(0,r.setOwner)(this,e)}get id(){return(0,i.guidFor)(this)}get class(){return"ember-view"}validateArguments(){for(var e of Object.keys(this.args.named))this.isSupportedArgument(e)||this.onUnsupportedArgument(e)}named(e){var t=this.args.named[e] return t?(0,a.valueForRef)(t):void 0}positional(e){var t=this.args.positional[e] return t?(0,a.valueForRef)(t):void 0}listenerFor(e){var t=this.named(e) @@ -179,9 +152,7 @@ if(void 0===t){try{X.type=e,t=X.type===e}catch(r){t=!1}finally{X.type="text"}J[e class Z extends Y{constructor(){super(...arguments),this._checked=q(this.args.named.checked)}static toString(){return"Input"}get class(){return this.isCheckbox?"ember-checkbox ember-view":"ember-text-field ember-view"}get type(){var e=this.named("type") return null==e?"text":K(e)?e:"text"}get isCheckbox(){return"checkbox"===this.named("type")}get checked(){return this.isCheckbox?this._checked.get():void 0}set checked(e){this._checked.set(e)}change(e){this.isCheckbox?this.checkedDidChange(e):super.change(e)}input(e){this.isCheckbox||super.input(e)}checkedDidChange(e){var t=e.target this.checked=t.checked}isSupportedArgument(e){return-1!==["type","value","checked","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}Q([u.action],Z.prototype,"change",null),Q([u.action],Z.prototype,"input",null),Q([u.action],Z.prototype,"checkedDidChange",null) -var ee=z(Z,D) -e.Input=ee -var te=(0,t.templateFactory)({id:"CVwkBtGh",block:'[[[11,3],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[16,"role",[30,0,["role"]]],[16,"title",[30,0,["title"]]],[16,"rel",[30,0,["rel"]]],[16,"tabindex",[30,0,["tabindex"]]],[16,"target",[30,0,["target"]]],[17,1],[16,6,[30,0,["href"]]],[4,[38,0],["click",[30,0,["click"]]],null],[12],[18,2,null],[13]],["&attrs","&default"],false,["on","yield"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs",isStrictMode:!1}),re=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i +var ee=e.Input=z(Z,D),te=(0,t.templateFactory)({id:"CVwkBtGh",block:'[[[11,3],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[16,"role",[30,0,["role"]]],[16,"title",[30,0,["title"]]],[16,"rel",[30,0,["rel"]]],[16,"tabindex",[30,0,["tabindex"]]],[16,"target",[30,0,["target"]]],[17,1],[16,6,[30,0,["href"]]],[4,[38,0],["click",[30,0,["click"]]],null],[12],[18,2,null],[13]],["&attrs","&default"],false,["on","yield"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs",isStrictMode:!1}),re=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i) else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a) return s>3&&a&&Object.defineProperty(t,r,a),a},ie=[],ne={} @@ -218,14 +189,12 @@ if(r.length>0){var i=r[r.length-1] if(oe(i)&&null!==i.values)return i.values}return ne}}) var ge=ue.onUnsupportedArgument Object.defineProperty(ue,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(e){"params"!==e&&ge.call(this,e)}}) -var ve=z(le,te) -e.LinkTo=ve -var be=(0,t.templateFactory)({id:"OpzctQXz",block:'[[[11,"textarea"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,2,[30,0,["value"]]],[4,[38,0],["change",[30,0,["change"]]],null],[4,[38,0],["input",[30,0,["input"]]],null],[4,[38,0],["keyup",[30,0,["keyUp"]]],null],[4,[38,0],["paste",[30,0,["valueDidChange"]]],null],[4,[38,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],false,["on"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs",isStrictMode:!1}),ye=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i +var ve=e.LinkTo=z(le,te),be=(0,t.templateFactory)({id:"OpzctQXz",block:'[[[11,"textarea"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,2,[30,0,["value"]]],[4,[38,0],["change",[30,0,["change"]]],null],[4,[38,0],["input",[30,0,["input"]]],null],[4,[38,0],["keyup",[30,0,["keyUp"]]],null],[4,[38,0],["paste",[30,0,["valueDidChange"]]],null],[4,[38,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],false,["on"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs",isStrictMode:!1}),ye=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i) else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a) return s>3&&a&&Object.defineProperty(t,r,a),a} class _e extends Y{static toString(){return"Textarea"}get class(){return"ember-text-area ember-view"}change(e){super.change(e)}input(e){super.input(e)}isSupportedArgument(e){return-1!==["type","value","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}ye([u.action],_e.prototype,"change",null),ye([u.action],_e.prototype,"input",null) -var we=z(_e,be) +var we=e.Textarea=z(_e,be) function Re(e){return"function"==typeof e}function Oe(e,t){return"attrs"===t[0]&&(t.shift(),1===t.length)?(0,a.childRefFor)(e,t[0]):(0,a.childRefFromParts)(e,t)}function Ee(e){var t=e.indexOf(":") if(-1===t)return[e,e,!0] var r=e.substring(0,t),i=e.substring(t+1) @@ -234,27 +203,25 @@ if("id"!==s){var u=n.indexOf(".")>-1,c=u?Oe(t,n.split(".")):(0,a.childRefFor)(t, i.setAttribute(s,c,!1,null)}else{var d=(0,l.get)(e,n) null==d&&(d=e.elementId) var h=(0,a.createPrimitiveRef)(d) -i.setAttribute("id",h,!0,null)}}function Te(e,t,r){var i=t.split(":"),[n,s,o]=i +i.setAttribute("id",h,!0,null)}}function Ce(e,t,r){var i=t.split(":"),[n,s,o]=i if(""===n)r.setAttribute("class",(0,a.createPrimitiveRef)(s),!0,null) else{var l,u=n.indexOf(".")>-1,c=u?n.split("."):[],d=u?Oe(e,c):(0,a.childRefFor)(e,n) -l=void 0===s?Ce(d,u?c[c.length-1]:n):function(e,t,r){return(0,a.createComputeRef)((()=>(0,a.valueForRef)(e)?t:r))}(d,s,o),r.setAttribute("class",l,!1,null)}}function Ce(e,t){var r +l=void 0===s?Te(d,u?c[c.length-1]:n):function(e,t,r){return(0,a.createComputeRef)((()=>(0,a.valueForRef)(e)?t:r))}(d,s,o),r.setAttribute("class",l,!1,null)}}function Te(e,t){var r return(0,a.createComputeRef)((()=>{var i=(0,a.valueForRef)(e) -return!0===i?r||(r=(0,g.dasherize)(t)):i||0===i?String(i):null}))}function Se(){}e.Textarea=we -class ke{constructor(e,t,r,i,n,s){this.component=e,this.args=t,this.argsTag=r,this.finalizer=i,this.hasWrappedElement=n,this.isInteractive=s,this.classRef=null,this.classRef=null,this.argsRevision=null===t?0:(0,o.valueForTag)(r),this.rootRef=(0,a.createConstRef)(e,"this"),(0,v.registerDestructor)(this,(()=>this.willDestroy()),!0),(0,v.registerDestructor)(this,(()=>this.component.destroy()))}willDestroy(){var{component:e,isInteractive:t}=this +return!0===i?r||(r=(0,g.dasherize)(t)):i||0===i?String(i):null}))}function ke(){}class Pe{constructor(e,t,r,i,n,s){this.component=e,this.args=t,this.argsTag=r,this.finalizer=i,this.hasWrappedElement=n,this.isInteractive=s,this.classRef=null,this.classRef=null,this.argsRevision=null===t?0:(0,o.valueForTag)(r),this.rootRef=(0,a.createConstRef)(e,"this"),(0,v.registerDestructor)(this,(()=>this.willDestroy()),!0),(0,v.registerDestructor)(this,(()=>this.component.destroy()))}willDestroy(){var{component:e,isInteractive:t}=this if(t){(0,o.beginUntrackFrame)(),e.trigger("willDestroyElement"),e.trigger("willClearRender"),(0,o.endUntrackFrame)() var r=(0,d.getViewElement)(e) r&&((0,d.clearElementView)(r),(0,d.clearViewElement)(e))}e.renderer.unregister(e)}finalize(){var{finalizer:e}=this -e(),this.finalizer=Se}}function Pe(e){return(0,s.setInternalHelperManager)(e,{})}var je=new y._WeakSet,Me=Pe((e=>{var t,{named:r,positional:i}=e,[n,s,...o]=i,u=s.debugLabel,c="target"in r?r.target:n,d=function(e,t){var r,i +e(),this.finalizer=ke}}function Se(e){return(0,s.setInternalHelperManager)(e,{})}var je=new y._WeakSet,Me=Se((e=>{var t,{named:r,positional:i}=e,[n,s,...o]=i,u=s.debugLabel,c="target"in r?r.target:n,d=function(e,t){var r,i t.length>0&&(r=e=>t.map(a.valueForRef).concat(e)) e&&(i=t=>{var r=(0,a.valueForRef)(e) return r&&t.length>0&&(t[0]=(0,l.get)(t[0],r)),t}) return r&&i?e=>i(r(e)):r||i||xe}("value"in r&&r.value||!1,o) return t=(0,a.isInvokableRef)(s)?De(s,s,Ne,d,u):function(e,t,r,i,n){0 -return function(){return De(e,(0,a.valueForRef)(t),(0,a.valueForRef)(r),i,n)(...arguments)}}((0,a.valueForRef)(n),c,s,d,u),je.add(t),(0,a.createUnboundRef)(t,"(result of an `action` helper)")})) +return(...s)=>De(e,(0,a.valueForRef)(t),(0,a.valueForRef)(r),i,n)(...s)}((0,a.valueForRef)(n),c,s,d,u),je.add(t),(0,a.createUnboundRef)(t,"(result of an `action` helper)")})) function xe(e){return e}function De(e,t,r,i,n){var s,a -return"string"==typeof r?(s=t,a=t.actions&&t.actions[r]):"function"==typeof r&&(s=e,a=r),function(){for(var e=arguments.length,t=new Array(e),r=0;r(0,b.join)(s,a,...i(t))))}}function Ne(e){(0,a.updateRef)(this,e)}function Fe(e){var t=Object.create(null),r=Object.create(null) +return"string"==typeof r?(s=t,a=t.actions&&t.actions[r]):"function"==typeof r&&(s=e,a=r),(...e)=>{var t={target:s,args:e,label:"@glimmer/closure-action"} +return(0,f.flaggedInstrument)("interaction.ember-action",t,(()=>(0,b.join)(s,a,...i(e))))}}function Ne(e){(0,a.updateRef)(this,e)}function Fe(e){var t=Object.create(null),r=Object.create(null) for(var i in r[Ue]=e,e){var n=e[i],s=(0,a.valueForRef)(n),o="function"==typeof s&&je.has(s);(0,a.isUpdatableRef)(n)&&!o?t[i]=new ze(n,s):t[i]=s,r[i]=s}return r.attrs=t,r}var Ie=Symbol("REF") class ze{constructor(e,t){this[d.MUTABLE_CELL]=!0,this[Ie]=e,this.value=t}update(e){(0,a.updateRef)(this[Ie],e)}}var Le=function(e,t){var r={} for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]) @@ -274,27 +241,24 @@ l={[u]:(0,a.createComputeRef)((()=>(0,_.reifyPositional)(c)))},Object.assign(l,t var d=Math.min(u.length,t.positional.length) l={},Object.assign(l,t.named.capture()) for(var h=0;h{r.setAttribute("class",(0,a.createPrimitiveRef)(e),!1,null)})),p&&p.length&&p.forEach((e=>{Te(u,e,r)})),r.setAttribute("class",Ve,!1,null),"ariaRole"in n&&r.setAttribute("role",(0,a.childRefFor)(u,"ariaRole"),!1,null),n._transitionTo("hasElement"),l&&((0,o.beginUntrackFrame)(),n.trigger("willInsertElement"),(0,o.endUntrackFrame)())}didRenderLayout(e,t){e.component[qe]=t,e.finalize()}didCreate(e){var{component:t,isInteractive:r}=e -r&&(t._transitionTo("inDOM"),t.trigger("didInsertElement"),t.trigger("didRender"))}update(e){var{component:t,args:r,argsTag:i,argsRevision:n,isInteractive:s}=e +l[p]=t.positional.at(h)}}return{positional:y.EMPTY_ARRAY,named:l}}create(e,t,i,{isInteractive:n},s,l,u){var c=s.view,h=i.named.capture();(0,o.beginTrackFrame)() +var p=Fe(h),m=(0,o.endTrackFrame)();(function(e,t){e.named.has("id")&&(t.elementId=t.id)})(i,p),p.parentView=c,p[Be]=u,p._target=(0,a.valueForRef)(l),(0,r.setOwner)(p,e),(0,o.beginUntrackFrame)() +var g=t.create(p),v=(0,f._instrumentStart)("render.component",Ge,g) +s.view=g,null!=c&&(0,d.addChildView)(c,g),g.trigger("didReceiveAttrs") +var b=""!==g.tagName +b||(n&&g.trigger("willRender"),g._transitionTo("hasElement"),n&&g.trigger("willInsertElement")) +var y=new Pe(g,h,m,v,b,n) +return i.named.has("class")&&(y.classRef=i.named.get("class")),n&&b&&g.trigger("willRender"),(0,o.endUntrackFrame)(),(0,o.consumeTag)(y.argsTag),(0,o.consumeTag)(g[$e]),y}getDebugName(e){var t +return e.fullName||e.normalizedName||(null===(t=e.class)||void 0===t?void 0:t.name)||e.name}getSelf({rootRef:e}){return e}didCreateElement({component:e,classRef:t,isInteractive:r,rootRef:n},s,l){(0,d.setViewElement)(e,s),(0,d.setElementView)(s,e) +var{attributeBindings:u,classNames:c,classNameBindings:h}=e +if(u&&u.length)(function(e,t,r,n){for(var s=[],o=e.length-1;-1!==o;){var l=Ee(e[o]),u=l[1];-1===s.indexOf(u)&&(s.push(u),Ae(t,r,l,n)),o--}if(-1===s.indexOf("id")){var c=t.elementId?t.elementId:(0,i.guidFor)(t) +n.setAttribute("id",(0,a.createPrimitiveRef)(c),!1,null)}})(u,e,n,l) +else{var p=e.elementId?e.elementId:(0,i.guidFor)(e) +l.setAttribute("id",(0,a.createPrimitiveRef)(p),!1,null)}if(t){var f=Te(t) +l.setAttribute("class",f,!1,null)}c&&c.length&&c.forEach((e=>{l.setAttribute("class",(0,a.createPrimitiveRef)(e),!1,null)})),h&&h.length&&h.forEach((e=>{Ce(n,e,l)})),l.setAttribute("class",Ve,!1,null),"ariaRole"in e&&l.setAttribute("role",(0,a.childRefFor)(n,"ariaRole"),!1,null),e._transitionTo("hasElement"),r&&((0,o.beginUntrackFrame)(),e.trigger("willInsertElement"),(0,o.endUntrackFrame)())}didRenderLayout(e,t){e.component[qe]=t,e.finalize()}didCreate({component:e,isInteractive:t}){t&&(e._transitionTo("inDOM"),e.trigger("didInsertElement"),e.trigger("didRender"))}update(e){var{component:t,args:r,argsTag:i,argsRevision:n,isInteractive:s}=e if(e.finalizer=(0,f._instrumentStart)("render.component",Ye,t),(0,o.beginUntrackFrame)(),null!==r&&!(0,o.validateTag)(i,n)){(0,o.beginTrackFrame)() var a=Fe(r) -i=e.argsTag=(0,o.endTrackFrame)(),e.argsRevision=(0,o.valueForTag)(i),t[He]=!0,t.setProperties(a),t[He]=!1,t.trigger("didUpdateAttrs"),t.trigger("didReceiveAttrs")}s&&(t.trigger("willUpdate"),t.trigger("willRender")),(0,o.endUntrackFrame)(),(0,o.consumeTag)(i),(0,o.consumeTag)(t[$e])}didUpdateLayout(e){e.finalize()}didUpdate(e){var{component:t,isInteractive:r}=e -r&&(t.trigger("didUpdate"),t.trigger("didRender"))}getDestroyable(e){return e}}function Ge(e){return e.instrumentDetails({initialRender:!0})}function Ye(e){return e.instrumentDetails({initialRender:!1})}var Ke={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!0,hasSubOwner:!1},Qe=new We +i=e.argsTag=(0,o.endTrackFrame)(),e.argsRevision=(0,o.valueForTag)(i),t[He]=!0,t.setProperties(a),t[He]=!1,t.trigger("didUpdateAttrs"),t.trigger("didReceiveAttrs")}s&&(t.trigger("willUpdate"),t.trigger("willRender")),(0,o.endUntrackFrame)(),(0,o.consumeTag)(i),(0,o.consumeTag)(t[$e])}didUpdateLayout(e){e.finalize()}didUpdate({component:e,isInteractive:t}){t&&(e.trigger("didUpdate"),e.trigger("didRender"))}getDestroyable(e){return e}}function Ge(e){return e.instrumentDetails({initialRender:!0})}function Ye(e){return e.instrumentDetails({initialRender:!1})}var Ke={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!0,hasSubOwner:!1},Qe=new We function Je(e){return e===Qe}var Xe,Ze=new WeakMap class et extends(d.CoreView.extend(d.ChildViewsSupport,d.ViewStateSupport,d.ClassNamesSupport,w.TargetActionSupport,d.ActionSupport,d.ViewMixin,{didReceiveAttrs(){},didRender(){},didUpdate(){},didUpdateAttrs(){},willRender(){},willUpdate(){}})){constructor(){super(...arguments),this.isComponent=!0}init(e){super.init(e),this._superRerender=this.rerender,this.rerender=this._rerender,this[He]=!1,this[$e]=(0,o.createTag)(),this[qe]=null var t=this._dispatcher @@ -311,9 +275,8 @@ var tt=Symbol("RECOMPUTE_TAG"),rt=Symbol("IS_CLASSIC_HELPER") function it(e){return new ot(e)}class nt extends R.FrameworkObject{init(e){super.init(e),this[tt]=(0,o.createTag)()}recompute(){(0,b.join)((()=>(0,o.dirtyTag)(this[tt])))}}e.Helper=nt,Xe=rt,nt.isHelperFactory=!0,nt[Xe]=!0,nt.helper=it class st{constructor(e){this.capabilities=(0,s.helperCapabilities)("3.23",{hasValue:!0,hasDestroyable:!0}) var t={};(0,r.setOwner)(t,e),this.ownerInjection=t}createHelper(e,t){var r,i=null!=(r=e)&&"class"in r?e.create():e.create(this.ownerInjection) -return{instance:i,args:t}}getDestroyable(e){var{instance:t}=e -return t}getValue(e){var{instance:t,args:r}=e,{positional:i,named:n}=r,s=t.compute(i,n) -return(0,o.consumeTag)(t[tt]),s}getDebugName(e){return(0,i.getDebugName)((e.class||e).prototype)}}(0,s.setHelperManager)((e=>new st(e)),nt) +return{instance:i,args:t}}getDestroyable({instance:e}){return e}getValue({instance:e,args:t}){var{positional:r,named:i}=t,n=e.compute(r,i) +return(0,o.consumeTag)(e[tt]),n}getDebugName(e){return(0,i.getDebugName)((e.class||e).prototype)}}(0,s.setHelperManager)((e=>new st(e)),nt) var at=(0,s.getInternalHelperManager)(nt) class ot{constructor(e){this.compute=e,this.isHelperFactory=!0}create(){return{compute:this.compute}}}var lt=new class{constructor(){this.capabilities=(0,s.helperCapabilities)("3.23",{hasValue:!0})}createHelper(e,t){var{compute:r}=e return()=>r.call(null,t.positional,t.named)}getValue(e){return e()}getDebugName(e){return(0,i.getDebugName)(e.compute)}};(0,s.setHelperManager)((()=>lt),ot.prototype) @@ -326,52 +289,48 @@ var l={self:(0,a.createConstRef)(t.controller,"this"),finalize:(0,f._instrumentS if(void 0!==i.debugRenderTree){l.outlet={name:t.outlet} var u=(0,a.valueForRef)(s),c=u&&u.render&&u.render.owner,d=(0,a.valueForRef)(o).render.owner if(c&&c!==d){var h=d.mountPoint -l.engine=d,h&&(l.engineBucket={mountPoint:h})}}return l}getDebugName(e){var{name:t}=e -return t}getDebugCustomRenderTree(e,t,r){var i=[] -return t.outlet&&i.push({bucket:t.outlet,type:"outlet",name:t.outlet.name,args:_.EMPTY_ARGS,instance:void 0,template:void 0}),t.engineBucket&&i.push({bucket:t.engineBucket,type:"engine",name:t.engineBucket.mountPoint,args:_.EMPTY_ARGS,instance:t.engine,template:void 0}),i.push({bucket:t,type:"route-template",name:e.name,args:r,instance:e.controller,template:(0,y.unwrapTemplate)(e.template).moduleName}),i}getCapabilities(){return gt}getSelf(e){var{self:t}=e -return t}didCreate(){}didUpdate(){}didRenderLayout(e){e.finalize()}didUpdateLayout(){}getDestroyable(){return null}}var bt=new vt -class yt{constructor(e,t){void 0===t&&(t=bt),this.state=e,this.manager=t,this.handle=-1 +l.engine=d,h&&(l.engineBucket={mountPoint:h})}}return l}getDebugName({name:e}){return e}getDebugCustomRenderTree(e,t,r){var i=[] +return t.outlet&&i.push({bucket:t.outlet,type:"outlet",name:t.outlet.name,args:_.EMPTY_ARGS,instance:void 0,template:void 0}),t.engineBucket&&i.push({bucket:t.engineBucket,type:"engine",name:t.engineBucket.mountPoint,args:_.EMPTY_ARGS,instance:t.engine,template:void 0}),i.push({bucket:t,type:"route-template",name:e.name,args:r,instance:e.controller,template:(0,y.unwrapTemplate)(e.template).moduleName}),i}getCapabilities(){return gt}getSelf({self:e}){return e}didCreate(){}didUpdate(){}didRenderLayout(e){e.finalize()}didUpdateLayout(){}getDestroyable(){return null}}var bt=new vt +class yt{constructor(e,t=bt){this.state=e,this.manager=t,this.handle=-1 var r=t.getCapabilities() -this.capabilities=(0,s.capabilityFlagsFrom)(r),this.compilable=r.wrapped?(0,y.unwrapTemplate)(e.template).asWrappedLayout():(0,y.unwrapTemplate)(e.template).asLayout(),this.resolvedName=e.name}}class _t extends We{constructor(e){super(),this.component=e}create(e,t,r,i,n){var{isInteractive:s}=i,a=this.component,l=(0,f._instrumentStart)("render.component",Ge,a) -n.view=a -var u=""!==a.tagName -u||(s&&a.trigger("willRender"),a._transitionTo("hasElement"),s&&a.trigger("willInsertElement")) -var c=new ke(a,null,o.CONSTANT_TAG,l,u,s) -return(0,o.consumeTag)(a[$e]),c}}var wt={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!1,createArgs:!1,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!1,hasSubOwner:!1} +this.capabilities=(0,s.capabilityFlagsFrom)(r),this.compilable=r.wrapped?(0,y.unwrapTemplate)(e.template).asWrappedLayout():(0,y.unwrapTemplate)(e.template).asLayout(),this.resolvedName=e.name}}class _t extends We{constructor(e){super(),this.component=e}create(e,t,r,{isInteractive:i},n){var s=this.component,a=(0,f._instrumentStart)("render.component",Ge,s) +n.view=s +var l=""!==s.tagName +l||(i&&s.trigger("willRender"),s._transitionTo("hasElement"),i&&s.trigger("willInsertElement")) +var u=new Pe(s,null,o.CONSTANT_TAG,a,l,i) +return(0,o.consumeTag)(s[$e]),u}}var wt={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!1,createArgs:!1,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!1,hasSubOwner:!1} class Rt{constructor(e){this.handle=-1,this.resolvedName="-top-level",this.capabilities=(0,s.capabilityFlagsFrom)(wt),this.compilable=null,this.manager=new _t(e) var t=(0,E.getFactoryFor)(e) -this.state=t}}class Ot{constructor(e){this.inner=e}}var Et=Pe((e=>{var{positional:t}=e,r=t[0] -return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(r) +this.state=t}}class Ot{constructor(e){this.inner=e}}var Et=Se((({positional:e})=>{var t=e[0] +return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(t) return(0,o.consumeTag)((0,l.tagForObject)(e)),(0,i.isProxy)(e)&&(e=(0,w._contentFor)(e)),new Ot(e)}))})) class At{constructor(e){this.length=e,this.position=0}isEmpty(){return!1}memoFor(e){return e}next(){var{length:e,position:t}=this if(t>=e)return null var r=this.valueFor(t),i=this.memoFor(t) -return this.position++,{value:r,memo:i}}}class Tt extends At{static from(e){return e.length>0?new this(e):null}static fromForEachable(e){var t=[] -return e.forEach((e=>t.push(e))),this.from(t)}constructor(e){super(e.length),this.array=e}valueFor(e){return this.array[e]}}class Ct extends At{static from(e){return e.length>0?new this(e):null}constructor(e){super(e.length),this.array=e}valueFor(e){return(0,l.objectAt)(this.array,e)}}class St extends At{static fromIndexable(e){var t=Object.keys(e) +return this.position++,{value:r,memo:i}}}class Ct extends At{static from(e){return e.length>0?new this(e):null}static fromForEachable(e){var t=[] +return e.forEach((e=>t.push(e))),this.from(t)}constructor(e){super(e.length),this.array=e}valueFor(e){return this.array[e]}}class Tt extends At{static from(e){return e.length>0?new this(e):null}constructor(e){super(e.length),this.array=e}valueFor(e){return(0,l.objectAt)(this.array,e)}}class kt extends At{static fromIndexable(e){var t=Object.keys(e) if(0===t.length)return null var r=[] for(var i of t){var n n=e[i],(0,o.isTracking)()&&((0,o.consumeTag)((0,o.tagFor)(e,i)),Array.isArray(n)&&(0,o.consumeTag)((0,o.tagFor)(n,"[]"))),r.push(n)}return new this(t,r)}static fromForEachable(e){var t=[],r=[],i=0,n=!1 -return e.forEach((function(e,s){(n=n||arguments.length>=2)&&t.push(s),r.push(e),i++})),0===i?null:n?new this(t,r):new Tt(r)}constructor(e,t){super(t.length),this.keys=e,this.values=t}valueFor(e){return this.values[e]}memoFor(e){return this.keys[e]}}class kt{static from(e){var t=e[Symbol.iterator](),r=t.next(),{done:i}=r +return e.forEach((function(e,s){(n=n||arguments.length>=2)&&t.push(s),r.push(e),i++})),0===i?null:n?new this(t,r):new Ct(r)}constructor(e,t){super(t.length),this.keys=e,this.values=t}valueFor(e){return this.values[e]}memoFor(e){return this.keys[e]}}class Pt{static from(e){var t=e[Symbol.iterator](),r=t.next(),{done:i}=r return i?null:new this(t,r)}constructor(e,t){this.iterable=e,this.result=t,this.position=0}isEmpty(){return!1}next(){var{iterable:e,result:t,position:r}=this if(t.done)return null var i=this.valueFor(t,r),n=this.memoFor(t,r) -return this.position++,this.result=e.next(),{value:i,memo:n}}}class Pt extends kt{valueFor(e){return e.value}memoFor(e,t){return t}}class jt extends kt{valueFor(e){return e.value[1]}memoFor(e){return e.value[0]}}function Mt(e){return null!=e&&"function"==typeof e.forEach}function xt(e){return null!=e&&"function"==typeof e[Symbol.iterator]}(0,k.default)({FEATURES:{DEFAULT_HELPER_MANAGER:!0},scheduleRevalidate(){b._backburner.ensureInstance()},toBool:function(e){return(0,i.isProxy)(e)?((0,o.consumeTag)((0,l.tagForProperty)(e,"content")),Boolean((0,l.get)(e,"isTruthy"))):(0,S.isArray)(e)?((0,o.consumeTag)((0,l.tagForProperty)(e,"[]")),0!==e.length):(0,C.isHTMLSafe)(e)?Boolean(e.toString()):Boolean(e)},toIterator:function(e){return e instanceof Ot?function(e){if(t=e,null===t||"object"!=typeof t&&"function"!=typeof t)return null +return this.position++,this.result=e.next(),{value:i,memo:n}}}class St extends Pt{valueFor(e){return e.value}memoFor(e,t){return t}}class jt extends Pt{valueFor(e){return e.value[1]}memoFor(e){return e.value[0]}}function Mt(e){return null!=e&&"function"==typeof e.forEach}function xt(e){return null!=e&&"function"==typeof e[Symbol.iterator]}(0,P.default)({FEATURES:{DEFAULT_HELPER_MANAGER:!0},scheduleRevalidate(){b._backburner.ensureInstance()},toBool:function(e){return(0,i.isProxy)(e)?((0,o.consumeTag)((0,l.tagForProperty)(e,"content")),Boolean((0,l.get)(e,"isTruthy"))):(0,k.isArray)(e)?((0,o.consumeTag)((0,l.tagForProperty)(e,"[]")),0!==e.length):(0,T.isHTMLSafe)(e)?Boolean(e.toString()):Boolean(e)},toIterator:function(e){return e instanceof Ot?function(e){if(t=e,null===t||"object"!=typeof t&&"function"!=typeof t)return null var t -return Array.isArray(e)||(0,T.isEmberArray)(e)?St.fromIndexable(e):xt(e)?jt.from(e):Mt(e)?St.fromForEachable(e):St.fromIndexable(e)}(e.inner):function(e){if(!(0,i.isObject)(e))return null -return Array.isArray(e)?Tt.from(e):(0,T.isEmberArray)(e)?Ct.from(e):xt(e)?Pt.from(e):Mt(e)?Tt.fromForEachable(e):null}(e)},getProp:l._getProp,setProp:l._setProp,getPath:l.get,setPath:l.set,scheduleDestroy(e,t){(0,b.schedule)("actions",null,t,e)},scheduleDestroyed(e){(0,b.schedule)("destroy",null,e)},warnIfStyleNotTrusted(e){},assert(e,t,r){},deprecate(e,t,r){}}) -class Dt{constructor(e,t){this.owner=e,this.isInteractive=t,this.enableDebugTooling=O.ENV._DEBUG_RENDER_TREE}onTransactionCommit(){}}var Nt=Pe((e=>{var{positional:t,named:r}=e,i=t[0],n=r.type,s=r.loc,o=r.original;(0,a.valueForRef)(n),(0,a.valueForRef)(s),(0,a.valueForRef)(o) -return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(i) -return e}))})),Ft=Pe((e=>{var t=e.positional[0] -return t})),It=Pe((e=>{var{positional:t}=e -return(0,a.createComputeRef)((()=>{var e=t[0],r=t[1],i=(0,a.valueForRef)(e).split("."),n=i[i.length-1],s=(0,a.valueForRef)(r) -return!0===s?(0,g.dasherize)(n):s||0===s?String(s):""}))})),zt=Pe(((e,t)=>{var r,{positional:i}=e,n=i[0],s=(0,a.valueForRef)(n) -return(0,a.createConstRef)(null===(r=t.factoryFor(s))||void 0===r?void 0:r.class,`(-resolve "${s}")`)})),Lt=Pe((e=>{var{positional:t}=e,r=t[0] +return Array.isArray(e)||(0,C.isEmberArray)(e)?kt.fromIndexable(e):xt(e)?jt.from(e):Mt(e)?kt.fromForEachable(e):kt.fromIndexable(e)}(e.inner):function(e){if(!(0,i.isObject)(e))return null +return Array.isArray(e)?Ct.from(e):(0,C.isEmberArray)(e)?Tt.from(e):xt(e)?St.from(e):Mt(e)?Ct.fromForEachable(e):null}(e)},getProp:l._getProp,setProp:l._setProp,getPath:l.get,setPath:l.set,scheduleDestroy(e,t){(0,b.schedule)("actions",null,t,e)},scheduleDestroyed(e){(0,b.schedule)("destroy",null,e)},warnIfStyleNotTrusted(e){},assert(e,t,r){},deprecate(e,t,r){}}) +class Dt{constructor(e,t){this.owner=e,this.isInteractive=t,this.enableDebugTooling=O.ENV._DEBUG_RENDER_TREE}onTransactionCommit(){}}var Nt=Se((({positional:e,named:t})=>{var r=e[0],i=t.type,n=t.loc,s=t.original;(0,a.valueForRef)(i),(0,a.valueForRef)(n),(0,a.valueForRef)(s) return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(r) -return(0,i.isObject)(e)&&(0,o.consumeTag)((0,l.tagForProperty)(e,"[]")),e}))})),Ut=Pe((e=>{var{positional:t}=e,r=t[0] -return(0,a.createInvokableRef)(r)})),Bt=Pe((e=>{var{positional:t}=e,r=t[0] -return(0,a.createReadOnlyRef)(r)})),$t=Pe((e=>{var{positional:t,named:r}=e -return(0,a.createUnboundRef)((0,a.valueForRef)(t[0]),"(result of an `unbound` helper)")})),Ht=Pe((()=>(0,a.createConstRef)(([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,(e=>(4*e^16*Math.random()>>(2&e)).toString(16))),"unique-id"))) +return e}))})),Ft=Se((e=>{var t=e.positional[0] +return t})),It=Se((({positional:e})=>(0,a.createComputeRef)((()=>{var t=e[0],r=e[1],i=(0,a.valueForRef)(t).split("."),n=i[i.length-1],s=(0,a.valueForRef)(r) +return!0===s?(0,g.dasherize)(n):s||0===s?String(s):""})))),zt=Se((({positional:e},t)=>{var r,i=e[0],n=(0,a.valueForRef)(i) +return(0,a.createConstRef)(null===(r=t.factoryFor(n))||void 0===r?void 0:r.class,`(-resolve "${n}")`)})),Lt=Se((({positional:e})=>{var t=e[0] +return(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(t) +return(0,i.isObject)(e)&&(0,o.consumeTag)((0,l.tagForProperty)(e,"[]")),e}))})),Ut=Se((({positional:e})=>{var t=e[0] +return(0,a.createInvokableRef)(t)})),Bt=Se((({positional:e})=>{var t=e[0] +return(0,a.createReadOnlyRef)(t)})),$t=Se((({positional:e,named:t})=>(0,a.createUnboundRef)((0,a.valueForRef)(e[0]),"(result of an `unbound` helper)"))),Ht=Se((()=>(0,a.createConstRef)(([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,(e=>(4*e^16*Math.random()>>(2&e)).toString(16))),"unique-id"))) var qt=["alt","shift","meta","ctrl"],Vt=/^click|mouse|touch/ var Wt={registeredActions:d.ActionManager.registeredActions,registerAction(e){var{actionId:t}=e return d.ActionManager.registeredActions[t]=e,t},unregisterAction(e){var{actionId:t}=e @@ -383,25 +342,23 @@ return void 0!==r?(0,a.valueForRef)(r):(0,a.valueForRef)(e)}handler(e){var{actio return!function(e,t){if(null==t){if(Vt.test(e.type))return(0,d.isSimpleClick)(e) t=""}if(t.indexOf("any")>=0)return!0 for(var r=0;r{var e=this.getActionArgs(),r={args:e,target:c,name:null};(0,a.isInvokableRef)(t)?(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{(0,a.updateRef)(t,e[0])})):"function"!=typeof t?(r.name=t,c.send?(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{c.send.apply(c,[t,...e])})):(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{c[t].apply(c,e)}))):(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{t.apply(c,e)}))})),h)}}var Yt=new class{create(e,t,r,n){for(var{named:s,positional:a}=n,o=[],l=2;l{var e=this.getActionArgs(),r={args:e,target:c,name:null};(0,a.isInvokableRef)(t)?(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{(0,a.updateRef)(t,e[0])})):"function"!=typeof t?(r.name=t,c.send?(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{c.send.apply(c,[t,...e])})):(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{c[t].apply(c,e)}))):(0,f.flaggedInstrument)("interaction.ember-action",r,(()=>{t.apply(c,e)}))})),h)}}var Yt=new class{create(e,t,r,{named:n,positional:s}){for(var a=[],o=2;o1&&(i=o[0],r=o[1],t=(0,a.isInvokableRef)(r)?r:(0,a.valueForRef)(r)) e.actionName=t,e.implicitTarget=i,this.ensureEventSetup(e),Wt.registerAction(e),n.setAttribute("data-ember-action",""),n.setAttribute(`data-ember-action-${s}`,String(s))}update(e){var{positional:t}=e,r=t[1];(0,a.isInvokableRef)(r)||(e.actionName=(0,a.valueForRef)(r)),e.getEventName()!==e.eventName&&(this.ensureEventSetup(e),e.eventName=e.getEventName())}ensureEventSetup(e){var t=e.owner.lookup("event_dispatcher:main") null==t||t.setupHandlerForEmberEvent(e.eventName)}getTag(e){return e.tag}getDestroyable(e){return e}},Kt=(0,s.setInternalModifierManager)(Yt,{}),Qt={dynamicLayout:!0,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!0} var Jt=new class{getDynamicLayout(e){var t=e.engine.lookup("template:application") -return(0,y.unwrapTemplate)(t(e.engine)).asLayout()}getCapabilities(){return Qt}getOwner(e){return e.engine}create(e,t,r,i){var{name:n}=t,s=e.buildChildEngineInstance(n) -s.boot() -var o,l,u,c=s.factoryFor("controller:application")||(0,P.generateControllerFactory)(s,"application") -if(r.named.has("model")&&(u=r.named.get("model")),void 0===u)l={engine:s,controller:o=c.create(),self:(0,a.createConstRef)(o,"this"),modelRef:u} -else{var d=(0,a.valueForRef)(u) -l={engine:s,controller:o=c.create({model:d}),self:(0,a.createConstRef)(o,"this"),modelRef:u}}return i.debugRenderTree&&(0,v.associateDestroyableChild)(s,o),l}getDebugName(e){var{name:t}=e -return t}getDebugCustomRenderTree(e,t,r,i){return[{bucket:t.engine,instance:t.engine,type:"engine",name:e.name,args:r},{bucket:t.controller,instance:t.controller,type:"route-template",name:"application",args:r,template:i}]}getSelf(e){var{self:t}=e -return t}getDestroyable(e){return e.engine}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}update(e){var{controller:t,modelRef:r}=e +return(0,y.unwrapTemplate)(t(e.engine)).asLayout()}getCapabilities(){return Qt}getOwner(e){return e.engine}create(e,{name:t},r,i){var n=e.buildChildEngineInstance(t) +n.boot() +var s,o,l,u=n.factoryFor("controller:application")||(0,S.generateControllerFactory)(n,"application") +if(r.named.has("model")&&(l=r.named.get("model")),void 0===l)o={engine:n,controller:s=u.create(),self:(0,a.createConstRef)(s,"this"),modelRef:l} +else{var c=(0,a.valueForRef)(l) +o={engine:n,controller:s=u.create({model:c}),self:(0,a.createConstRef)(s,"this"),modelRef:l}}return i.debugRenderTree&&(0,v.associateDestroyableChild)(n,s),o}getDebugName({name:e}){return e}getDebugCustomRenderTree(e,t,r,i){return[{bucket:t.engine,instance:t.engine,type:"engine",name:e.name,args:r},{bucket:t.controller,instance:t.controller,type:"route-template",name:"application",args:r,template:i}]}getSelf({self:e}){return e}getDestroyable(e){return e.engine}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}update(e){var{controller:t,modelRef:r}=e void 0!==r&&t.set("model",(0,a.valueForRef)(r))}} -class Xt{constructor(e){this.resolvedName=e,this.handle=-1,this.manager=Jt,this.compilable=null,this.capabilities=(0,s.capabilityFlagsFrom)(Qt),this.state={name:e}}}var Zt=Pe(((e,t)=>{var r,i,n,s=e.positional[0] +class Xt{constructor(e){this.resolvedName=e,this.handle=-1,this.manager=Jt,this.compilable=null,this.capabilities=(0,s.capabilityFlagsFrom)(Qt),this.state={name:e}}}var Zt=Se(((e,t)=>{var r,i,n,s=e.positional[0] return r=(0,_.createCapturedArgs)(e.named,_.EMPTY_POSITIONAL),(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(s) -return"string"==typeof e?i===e?n:(i=e,n=(0,_.curry)(0,new Xt(e),t,r,!0)):(n=null,i=null,null)}))})),er=Pe(((e,t,r)=>{var i=(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(r.get("outletState")),t=void 0!==e?e.outlets:void 0 +return"string"==typeof e?i===e?n:(i=e,n=(0,_.curry)(0,new Xt(e),t,r,!0)):(n=null,i=null,null)}))})),er=Se(((e,t,r)=>{var i=(0,a.createComputeRef)((()=>{var e=(0,a.valueForRef)(r.get("outletState")),t=void 0!==e?e.outlets:void 0 return void 0!==t?t.main:void 0})),n=null,s=null return(0,a.createComputeRef)((()=>{var e,r,o=(0,a.valueForRef)(i),l=function(e,t){if(void 0===t)return null var r=t.render @@ -465,7 +422,7 @@ b._backburner.on("begin",(function(){for(var e of pr)e._scheduleRevalidate()})), return gr++,b._backburner.join(null,dr)}gr=0,function(){if(null!==mr){var e=mr.resolve mr=null,b._backburner.join(null,e)}}()})) class vr{static create(e){var{_viewRegistry:t}=e,i=(0,r.getOwner)(e),n=i.lookup("service:-document"),s=i.lookup("-environment:main"),a=i.lookup(E.privatize`template:-root`),o=i.lookup("service:-dom-builder") -return new this(i,n,s,a,t,o)}constructor(e,r,i,n,s,a){void 0===a&&(a=_.clientBuilder),this._inRenderTransaction=!1,this._lastRevision=-1,this._destroyed=!1,this._owner=e,this._rootTemplate=n(e),this._viewRegistry=s||e.lookup("-view-registry:main"),this._roots=[],this._removedRoots=[],this._builder=a,this._isInteractive=i.isInteractive +return new this(i,n,s,a,t,o)}constructor(e,r,i,n,s,a=_.clientBuilder){this._inRenderTransaction=!1,this._lastRevision=-1,this._destroyed=!1,this._owner=e,this._rootTemplate=n(e),this._viewRegistry=s||e.lookup("-view-registry:main"),this._roots=[],this._removedRoots=[],this._builder=a,this._isInteractive=i.isInteractive var o=this._runtimeResolver=new ar,l=(0,j.artifacts)() this._context=(0,t.programCompilationContext)(l,o) var u=new Dt(e,i.isInteractive) @@ -490,20 +447,14 @@ for(var t of e)t.destroy() this._removedRoots.length=0,this._roots=[],e.length&&fr(this)}_scheduleRevalidate(){b._backburner.scheduleOnce("render",this,this._revalidate)}_isValid(){return this._destroyed||0===this._roots.length||(0,o.validateTag)(o.CURRENT_TAG,this._lastRevision)}_revalidate(){this._isValid()||this._renderRootsTransaction()}}e.Renderer=vr var br={} var yr=(0,t.templateFactory)({id:"3jT+eJpe",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs",isStrictMode:!1}) -var _r=s.componentCapabilities -e.componentCapabilities=_r -var wr=s.modifierCapabilities -e.modifierCapabilities=wr})),e("@ember/-internals/meta/index",["exports","@ember/-internals/meta/lib/meta"],(function(e,t){"use strict" +e.componentCapabilities=s.componentCapabilities,e.modifierCapabilities=s.modifierCapabilities})),e("@ember/-internals/meta/index",["exports","@ember/-internals/meta/lib/meta"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Meta",{enumerable:!0,get:function(){return t.Meta}}),Object.defineProperty(e,"UNDEFINED",{enumerable:!0,get:function(){return t.UNDEFINED}}),Object.defineProperty(e,"counters",{enumerable:!0,get:function(){return t.counters}}),Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return t.meta}}),Object.defineProperty(e,"peekMeta",{enumerable:!0,get:function(){return t.peekMeta}}),Object.defineProperty(e,"setMeta",{enumerable:!0,get:function(){return t.setMeta}})})),e("@ember/-internals/meta/lib/meta",["exports","@ember/-internals/utils","@ember/debug","@glimmer/destroyable"],(function(e,t,r,i){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.meta=e.counters=e.UNDEFINED=e.Meta=void 0,e.peekMeta=h,e.setMeta=d -var n,s=Object.prototype -e.counters=n -var a=(0,t.symbol)("undefined") -e.UNDEFINED=a -var o=1 -class l{constructor(e){this._listenersVersion=1,this._inheritedEnd=-1,this._flattenedVersion=0,this._parent=void 0,this._descriptors=void 0,this._mixins=void 0,this._lazyChains=void 0,this._values=void 0,this._revisions=void 0,this._isInit=!1,this.source=e,this.proto=void 0===e.constructor?void 0:e.constructor.prototype,this._listeners=void 0}get parent(){var e=this._parent -if(void 0===e){var t=u(this.source) -this._parent=e=null===t||t===s?null:p(t)}return e}setInitializing(){this._isInit=!0}unsetInitializing(){this._isInit=!1}isInitializing(){return this._isInit}isPrototypeMeta(e){return this.proto===this.source&&this.source===e}_getOrCreateOwnMap(e){return this[e]||(this[e]=Object.create(null))}_getOrCreateOwnSet(e){return this[e]||(this[e]=new Set)}_findInheritedMap(e,t){for(var r=this;null!==r;){var i=r[e] +Object.defineProperty(e,"__esModule",{value:!0}),e.meta=e.counters=e.UNDEFINED=e.Meta=void 0,e.peekMeta=d,e.setMeta=c +var n=Object.prototype +var s=e.UNDEFINED=(0,t.symbol)("undefined"),a=1 +class o{constructor(e){this._listenersVersion=1,this._inheritedEnd=-1,this._flattenedVersion=0,this._parent=void 0,this._descriptors=void 0,this._mixins=void 0,this._lazyChains=void 0,this._values=void 0,this._revisions=void 0,this._isInit=!1,this.source=e,this.proto=void 0===e.constructor?void 0:e.constructor.prototype,this._listeners=void 0}get parent(){var e=this._parent +if(void 0===e){var t=l(this.source) +this._parent=e=null===t||t===n?null:h(t)}return e}setInitializing(){this._isInit=!0}unsetInitializing(){this._isInit=!1}isInitializing(){return this._isInit}isPrototypeMeta(e){return this.proto===this.source&&this.source===e}_getOrCreateOwnMap(e){return this[e]||(this[e]=Object.create(null))}_getOrCreateOwnSet(e){return this[e]||(this[e]=new Set)}_findInheritedMap(e,t){for(var r=this;null!==r;){var i=r[e] if(void 0!==i){var n=i.get(t) if(void 0!==n)return n}r=r.parent}}_hasInInheritedSet(e,t){for(var r=this;null!==r;){var i=r[e] if(void 0!==i&&i.has(t))return!0 @@ -513,109 +464,95 @@ return void 0!==t?t[e]:void 0}setRevisionFor(e,t){this._getOrCreateOwnMap("_revi return void 0===r&&(r=t[e]=[]),r}readableLazyChainsFor(e){var t=this._lazyChains if(void 0!==t)return t[e]}addMixin(e){this._getOrCreateOwnSet("_mixins").add(e)}hasMixin(e){return this._hasInInheritedSet("_mixins",e)}forEachMixins(e){for(var t,r=this;null!==r;){var i=r._mixins void 0!==i&&(t=void 0===t?new Set:t,i.forEach((r=>{t.has(r)||(t.add(r),e(r))}))),r=r.parent}}writeDescriptors(e,t){(this._descriptors||(this._descriptors=new Map)).set(e,t)}peekDescriptors(e){var t=this._findInheritedMap("_descriptors",e) -return t===a?void 0:t}removeDescriptors(e){this.writeDescriptors(e,a)}forEachDescriptors(e){for(var t,r=this;null!==r;){var i=r._descriptors -void 0!==i&&(t=void 0===t?new Set:t,i.forEach(((r,i)=>{t.has(i)||(t.add(i),r!==a&&e(i,r))}))),r=r.parent}}addToListeners(e,t,r,i,n){this.pushListener(e,t,r,i?1:0,n)}removeFromListeners(e,t,r){this.pushListener(e,t,r,2)}pushListener(e,t,r,i,n){void 0===n&&(n=!1) -var s=this.writableListeners(),a=f(s,e,t,r) +return t===s?void 0:t}removeDescriptors(e){this.writeDescriptors(e,s)}forEachDescriptors(e){for(var t,r=this;null!==r;){var i=r._descriptors +void 0!==i&&(t=void 0===t?new Set:t,i.forEach(((r,i)=>{t.has(i)||(t.add(i),r!==s&&e(i,r))}))),r=r.parent}}addToListeners(e,t,r,i,n){this.pushListener(e,t,r,i?1:0,n)}removeFromListeners(e,t,r){this.pushListener(e,t,r,2)}pushListener(e,t,r,i,n=!1){var s=this.writableListeners(),a=p(s,e,t,r) if(-1!==a&&a0&&(r.splice(0,this._inheritedEnd),this._inheritedEnd=0),t)){-1===f(r,i.event,i.target,i.method)&&(r.unshift(i),this._inheritedEnd++)}}}this._flattenedVersion=o}return this._listeners}matchingListeners(e){var t,r=this.flattenedListeners() +for(var i of(this._inheritedEnd>0&&(r.splice(0,this._inheritedEnd),this._inheritedEnd=0),t)){-1===p(r,i.event,i.target,i.method)&&(r.unshift(i),this._inheritedEnd++)}}}this._flattenedVersion=a}return this._listeners}matchingListeners(e){var t,r=this.flattenedListeners() if(void 0!==r)for(var i of r)i.event!==e||0!==i.kind&&1!==i.kind||(void 0===t&&(t=[]),t.push(i.target,i.method,1===i.kind)) return t}observerEvents(){var e,t=this.flattenedListeners() if(void 0!==t)for(var r of t)0!==r.kind&&1!==r.kind||-1===r.event.indexOf(":change")||(void 0===e&&(e=[]),e.push(r)) -return e}}e.Meta=l -var u=Object.getPrototypeOf,c=new WeakMap -function d(e,t){c.set(e,t)}function h(e){var t=c.get(e) +return e}}e.Meta=o +var l=Object.getPrototypeOf,u=new WeakMap +function c(e,t){u.set(e,t)}function d(e){var t=u.get(e) if(void 0!==t)return t -for(var r=u(e);null!==r;){if(void 0!==(t=c.get(r)))return t.proto!==r&&(t.proto=r),t -r=u(r)}return null}var p=function(e){var t=h(e) +for(var r=l(e);null!==r;){if(void 0!==(t=u.get(r)))return t.proto!==r&&(t.proto=r),t +r=l(r)}return null}var h=e.meta=function(e){var t=d(e) if(null!==t&&t.source===e)return t -var r=new l(e) -return d(e,r),r} -function f(e,t,r,i){for(var n=e.length-1;n>=0;n--){var s=e[n] -if(s.event===t&&s.target===r&&s.method===i)return n}return-1}e.meta=p})),e("@ember/-internals/metal/index",["exports","@ember/-internals/meta","@ember/-internals/utils","@ember/debug","@ember/-internals/environment","@ember/runloop","@glimmer/destroyable","@glimmer/validator","@glimmer/manager","@glimmer/util","@ember/array/-internals","ember/version","@ember/-internals/owner"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.TrackedDescriptor=e.SYNC_OBSERVERS=e.PROXY_CONTENT=e.PROPERTY_DID_CHANGE=e.NAMESPACES_BY_ID=e.NAMESPACES=e.Libraries=e.DEBUG_INJECTION_FUNCTIONS=e.ComputedProperty=e.ComputedDescriptor=e.ASYNC_OBSERVERS=void 0,e._getPath=Te,e._getProp=Ae,e._setProp=ke,e.activateObserver=O,e.addArrayObserver=function(e,t,r){return W(e,t,r,p)},e.addListener=p,e.addNamespace=function(e){He.unprocessedNamespaces=!0,Ve.push(e)},e.addObserver=w,e.alias=function(e){return ie(new je(e),Pe)},e.arrayContentDidChange=B,e.arrayContentWillChange=U,e.autoComputed=function(){for(var e=arguments.length,t=new Array(e),r=0;r=0;n--){var s=e[n] +if(s.event===t&&s.target===r&&s.method===i)return n}return-1}})),e("@ember/-internals/metal/index",["exports","@ember/-internals/meta","@ember/-internals/utils","@ember/debug","@ember/-internals/environment","@ember/runloop","@glimmer/destroyable","@glimmer/validator","@glimmer/manager","@glimmer/util","@ember/array/-internals","ember/version","@ember/-internals/owner"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h){"use strict" +function p(e,r,i,n,s,a=!0){n||"function"!=typeof i||(n=i,i=null),(0,t.meta)(e).addToListeners(r,i,n,!0===s,a)}function f(e,r,i,n){var s,a "object"==typeof i?(s=i,a=n):(s=null,a=i),(0,t.meta)(e).removeFromListeners(r,s,a)}function m(e,r,i,n,s){if(void 0===n){var a=void 0===s?(0,t.peekMeta)(e):s n=null!==a?a.matchingListeners(r):void 0}if(void 0===n||0===n.length)return!1 for(var o=n.length-3;o>=0;o-=3){var l=n[o],u=n[o+1],c=n[o+2] if(u){c&&f(e,r,l,u),l||(l=e) var d=typeof u -"string"!==d&&"symbol"!==d||(u=l[u]),u.apply(l,i)}}return!0}e.findNamespaces=Ge,e.flushAsyncObservers=function(e){void 0===e&&(e=!0) -var r=(0,o.valueForTag)(o.CURRENT_TAG) -if(S===r)return -S=r,_.forEach(((r,i)=>{var n=(0,t.peekMeta)(i) +"string"!==d&&"symbol"!==d||(u=l[u]),u.apply(l,i)}}return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.TrackedDescriptor=e.SYNC_OBSERVERS=e.PROXY_CONTENT=e.PROPERTY_DID_CHANGE=e.NAMESPACES_BY_ID=e.NAMESPACES=e.Libraries=e.DEBUG_INJECTION_FUNCTIONS=e.ComputedProperty=e.ComputedDescriptor=e.ASYNC_OBSERVERS=void 0,e._getPath=Ae,e._getProp=Ee,e._setProp=ke,e.activateObserver=O,e.addArrayObserver=function(e,t,r){return W(e,t,r,p)},e.addListener=p,e.addNamespace=function(e){Ue.unprocessedNamespaces=!0,$e.push(e)},e.addObserver=w,e.alias=function(e){return ie(new Se(e),Pe)},e.arrayContentDidChange=B,e.arrayContentWillChange=U,e.autoComputed=function(...e){return ie(new fe(e),me)},e.beginPropertyChanges=I,e.cached=void 0,e.changeProperties=L,e.computed=ge,Object.defineProperty(e,"createCache",{enumerable:!0,get:function(){return o.createCache}}),e.defineDecorator=be,e.defineProperty=ve,e.defineValue=ye,e.deprecateProperty=function(e,t,r,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set(e){Te(this,r,e)},get(){return Oe(this,r)}})},e.descriptorForDecorator=ae,e.descriptorForProperty=se,e.eachProxyArrayDidChange=function(e,t,r,i){var n=xe.get(e) +void 0!==n&&n.arrayDidChange(e,t,r,i)},e.eachProxyArrayWillChange=function(e,t,r,i){var n=xe.get(e) +void 0!==n&&n.arrayWillChange(e,t,r,i)},e.endPropertyChanges=z,e.expandProperties=ce,e.findNamespace=function(e){Le||We() +return He[e]} +e.findNamespaces=qe,e.flushAsyncObservers=function(e=!0){var r=(0,o.valueForTag)(o.CURRENT_TAG) +if(k===r)return +k=r,_.forEach(((r,i)=>{var n=(0,t.peekMeta)(i) r.forEach(((r,a)=>{if(!(0,o.validateTag)(r.tag,r.lastRevision)){var l=()=>{try{m(i,a,[i,r.path],void 0,n)}finally{r.tag=Q(i,r.path,(0,o.tagMetaFor)(i),(0,t.peekMeta)(i)),r.lastRevision=(0,o.valueForTag)(r.tag)}} -e?(0,s.schedule)("actions",l):l()}}))}))},e.get=Ee,e.getCachedValueFor=function(e,r){var i=(0,t.peekMeta)(e) +e?(0,s.schedule)("actions",l):l()}}))}))},e.get=Oe,e.getCachedValueFor=function(e,r){var i=(0,t.peekMeta)(e) return i?i.valueFor(r):void 0},e.getProperties=function(e,t){var r,i={},n=1 2===arguments.length&&Array.isArray(t)?(n=0,r=arguments[1]):r=Array.from(arguments) -for(;n0},e.hasUnknownProperty=Oe,e.inject=function(e){var t,r -for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s0},e.hasUnknownProperty=Re,e.inject=function(e,...t){var r,i +X(t)?r=t:"string"==typeof t[0]&&(i=t[0]) +var n=function(t){var r=(0,h.getOwner)(this)||this.container +return r.lookup(`${e}:${i||t}`)} 0 -var o=ge({get:a,set(e,t){ve(this,e,null,t)}}) -return t?o(t[0],t[1],t[2]):o},e.isClassicDecorator=oe,e.isComputed=function(e,t){return Boolean(se(e,t))},Object.defineProperty(e,"isConst",{enumerable:!0,get:function(){return o.isConst}}),e.isElementDescriptor=X,e.isNamespaceSearchDisabled=function(){return $e},e.libraries=void 0,e.makeComputedDecorator=ie,e.markObjectAsDirty=x,e.nativeDescDecorator=function(e){var t=function(){return e} -return le(t),t},e.notifyPropertyChange=F,e.objectAt=H,e.on=function(){for(var e=arguments.length,t=new Array(e),i=0;i{var r=Object.keys(t) -for(var i of r)Se(e,i,t[i])})),t},e.setUnprocessedMixins=function(){qe=!0},e.tagForObject=function(e){if((0,r.isObject)(e))return(0,o.tagFor)(e,j) -return o.CONSTANT_TAG},e.tagForProperty=M,e.tracked=ze,e.trySet=function(e,t,r){return Se(e,t,r,!0)} +for(var i of r)Te(e,i,t[i])})),t},e.setUnprocessedMixins=function(){Be=!0},e.tagForObject=function(e){if((0,r.isObject)(e))return(0,o.tagFor)(e,j) +return o.CONSTANT_TAG},e.tagForProperty=M,e.tracked=Ne,e.trySet=function(e,t,r){return Te(e,t,r,!0)} var g=":change" -function v(e){return e+g}var b=!n.ENV._DEFAULT_ASYNC_OBSERVERS,y=new Map -e.SYNC_OBSERVERS=y -var _=new Map -function w(e,r,i,n,s){void 0===s&&(s=b) -var a=v(r) +function v(e){return e+g}var b=!n.ENV._DEFAULT_ASYNC_OBSERVERS,y=e.SYNC_OBSERVERS=new Map,_=e.ASYNC_OBSERVERS=new Map +function w(e,r,i,n,s=b){var a=v(r) p(e,a,i,n,!1,s) var o=(0,t.peekMeta)(e) null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||O(e,a,s)}function R(e,t){var r=!0===t?y:_ return r.has(e)||(r.set(e,new Map),(0,a.registerDestructor)(e,(()=>function(e){y.size>0&&y.delete(e) -_.size>0&&_.delete(e)}(e)),!0)),r.get(e)}function O(e,r,i){void 0===i&&(i=!1) -var n=R(e,i) +_.size>0&&_.delete(e)}(e)),!0)),r.get(e)}function O(e,r,i=!1){var n=R(e,i) if(n.has(r))n.get(r).count++ else{var s=r.substring(0,r.lastIndexOf(":")),a=Q(e,s,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)) -n.set(r,{count:1,path:s,tag:a,lastRevision:(0,o.valueForTag)(a),suspended:!1})}}e.ASYNC_OBSERVERS=_ -var E=!1,A=[] -function T(e,t,r){if(void 0===r&&(r=!1),!0!==E){var i=!0===r?y:_,n=i.get(e) +n.set(r,{count:1,path:s,tag:a,lastRevision:(0,o.valueForTag)(a),suspended:!1})}}var E=!1,A=[] +function C(e,t,r=!1){if(!0!==E){var i=!0===r?y:_,n=i.get(e) if(void 0!==n){var s=n.get(t) -s.count--,0===s.count&&(n.delete(t),0===n.size&&i.delete(e))}}else A.push([e,t,r])}function C(e){_.has(e)&&_.get(e).forEach((r=>{r.tag=Q(e,r.path,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)),r.lastRevision=(0,o.valueForTag)(r.tag)})),y.has(e)&&y.get(e).forEach((r=>{r.tag=Q(e,r.path,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)),r.lastRevision=(0,o.valueForTag)(r.tag)}))}var S=0 -function k(){y.forEach(((e,r)=>{var i=(0,t.peekMeta)(r) -e.forEach(((e,n)=>{if(!e.suspended&&!(0,o.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,m(r,n,[r,e.path],void 0,i)}finally{e.tag=Q(r,e.path,(0,o.tagMetaFor)(r),(0,t.peekMeta)(r)),e.lastRevision=(0,o.valueForTag)(e.tag),e.suspended=!1}}))}))}function P(e,t,r){var i=y.get(e) +s.count--,0===s.count&&(n.delete(t),0===n.size&&i.delete(e))}}else A.push([e,t,r])}function T(e){_.has(e)&&_.get(e).forEach((r=>{r.tag=Q(e,r.path,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)),r.lastRevision=(0,o.valueForTag)(r.tag)})),y.has(e)&&y.get(e).forEach((r=>{r.tag=Q(e,r.path,(0,o.tagMetaFor)(e),(0,t.peekMeta)(e)),r.lastRevision=(0,o.valueForTag)(r.tag)}))}var k=0 +function P(){y.forEach(((e,r)=>{var i=(0,t.peekMeta)(r) +e.forEach(((e,n)=>{if(!e.suspended&&!(0,o.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,m(r,n,[r,e.path],void 0,i)}finally{e.tag=Q(r,e.path,(0,o.tagMetaFor)(r),(0,t.peekMeta)(r)),e.lastRevision=(0,o.valueForTag)(e.tag),e.suspended=!1}}))}))}function S(e,t,r){var i=y.get(e) if(i){var n=i.get(v(t)) n&&(n.suspended=r)}}var j=(0,r.symbol)("SELF_TAG") -function M(e,t,r,i){void 0===r&&(r=!1) -var n=(0,l.getCustomTagFor)(e) +function M(e,t,r=!1,i){var n=(0,l.getCustomTagFor)(e) if(void 0!==n)return n(e,t,r) var s=(0,o.tagFor)(e,t,i) -return s}function x(e,t){(0,o.dirtyTagFor)(e,t),(0,o.dirtyTagFor)(e,j)}var D=Symbol("PROPERTY_DID_CHANGE") -e.PROPERTY_DID_CHANGE=D +return s}function x(e,t){(0,o.dirtyTagFor)(e,t),(0,o.dirtyTagFor)(e,j)}var D=e.PROPERTY_DID_CHANGE=Symbol("PROPERTY_DID_CHANGE") var N=0 function F(e,r,i,n){var s=void 0===i?(0,t.peekMeta)(e):i -null!==s&&(s.isInitializing()||s.isPrototypeMeta(e))||(x(e,r),N<=0&&k(),D in e&&(4===arguments.length?e[D](r,n):e[D](r)))}function I(){N++,E=!0}function z(){--N<=0&&(k(),function(){for(var[e,t,r]of(E=!1,A))T(e,t,r) +null!==s&&(s.isInitializing()||s.isPrototypeMeta(e))||(x(e,r),N<=0&&P(),D in e&&(4===arguments.length?e[D](r,n):e[D](r)))}function I(){N++,E=!0}function z(){--N<=0&&(P(),function(){for(var[e,t,r]of(E=!1,A))C(e,t,r) A=[]}())}function L(e){I() -try{e()}finally{z()}}function U(e,t,r,i){return void 0===t?(t=0,r=i=-1):(void 0===r&&(r=-1),void 0===i&&(i=-1)),m(e,"@array:before",[e,t,r,i]),e}function B(e,r,i,n,s){void 0===s&&(s=!0),void 0===r?(r=0,i=n=-1):(void 0===i&&(i=-1),void 0===n&&(n=-1)) +try{e()}finally{z()}}function U(e,t,r,i){return void 0===t?(t=0,r=i=-1):(void 0===r&&(r=-1),void 0===i&&(i=-1)),m(e,"@array:before",[e,t,r,i]),e}function B(e,r,i,n,s=!0){void 0===r?(r=0,i=n=-1):(void 0===i&&(i=-1),void 0===n&&(n=-1)) var a=(0,t.peekMeta)(e) if(s&&((n<0||i<0||n-i!=0)&&F(e,"length",a),F(e,"[]",a)),m(e,"@array:change",[e,r,i,n]),null!==a){var o=-1===i?0:i,l=e.length-((-1===n?0:n)-o),u=r<0?l+r:r if(void 0!==a.revisionFor("firstObject")&&0===u&&F(e,"firstObject",a),void 0!==a.revisionFor("lastObject"))l-10&&this._property(...e)}setup(e,t,r,i){if(super.setup(e,t,r,i),!1===this._hasConfig){var{get:n,set:s}=r void 0!==n&&(this._getter=n),void 0!==s&&(this._setter=function(e,t){var r=s.call(this,t) -return void 0!==n&&void 0===r?n.call(this):r})}}_property(){var e=[] -function t(t){e.push(t)}for(var r=arguments.length,i=new Array(r),n=0;n{i=u.call(e,r)})),void 0!==c&&(0,o.updateTag)(a,K(e,c,s,n)),n.setValueFor(r,i),n.setRevisionFor(r,(0,o.valueForTag)(a)),Y(n,r,i)}return(0,o.consumeTag)(a),Array.isArray(i)&&(0,o.consumeTag)((0,o.tagFor)(i,"[]")),i}set(e,r,i){this._readOnly&&this._throwReadOnlyError(e,r) var n,s=(0,t.meta)(e) @@ -675,64 +611,57 @@ s.isInitializing()&&void 0!==this._dependentKeys&&this._dependentKeys.length>0&& try{I(),n=this._set(e,r,i,s),Y(s,r,n) var a=(0,o.tagMetaFor)(e),l=(0,o.tagFor)(e,r,a),{_dependentKeys:u}=this void 0!==u&&(0,o.updateTag)(l,K(e,u,a,s)),s.setRevisionFor(r,(0,o.valueForTag)(l))}finally{z()}return n}_throwReadOnlyError(e,t){throw new Error(`Cannot set read-only property "${t}" on object: ${(0,i.inspect)(e)}`)}_set(e,t,r,i){var n,s=void 0!==i.revisionFor(t),a=i.valueFor(t),{_setter:o}=this -P(e,t,!0) -try{n=o.call(e,t,r,a)}finally{P(e,t,!1)}return s&&a===n||(i.setValueFor(t,n),F(e,t,i,r)),n}teardown(e,t,r){void 0!==r.revisionFor(t)&&(r.setRevisionFor(t,void 0),r.setValueFor(t,void 0)),super.teardown(e,t,r)}}e.ComputedProperty=pe +S(e,t,!0) +try{n=o.call(e,t,r,a)}finally{S(e,t,!1)}return s&&a===n||(i.setValueFor(t,n),F(e,t,i,r)),n}teardown(e,t,r){void 0!==r.revisionFor(t)&&(r.setRevisionFor(t,void 0),r.setValueFor(t,void 0)),super.teardown(e,t,r)}}e.ComputedProperty=pe class fe extends pe{get(e,r){var i,n=(0,t.meta)(e),s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,r,s),l=n.revisionFor(r) if(void 0!==l&&(0,o.validateTag)(a,l))i=n.valueFor(r) else{var{_getter:u}=this,c=(0,o.track)((()=>{i=u.call(e,r)}));(0,o.updateTag)(a,c),n.setValueFor(r,i),n.setRevisionFor(r,(0,o.valueForTag)(a)),Y(n,r,i)}return(0,o.consumeTag)(a),Array.isArray(i)&&(0,o.consumeTag)((0,o.tagFor)(i,"[]",s)),i}}class me extends Function{readOnly(){var e=ae(this) return e._readOnly=!0,this}meta(e){var t=ae(this) -return 0===arguments.length?t._meta||{}:(t._meta=e,this)}get _getter(){return ae(this)._getter}set enumerable(e){ae(this).enumerable=e}}function ge(){for(var e=arguments.length,t=new Array(e),r=0;re.indexOf("."))) -function we(e){return"string"==typeof e&&-1!==_e.get(e)}var Re=(0,r.symbol)("PROXY_CONTENT") -function Oe(e){return"object"==typeof e&&null!==e&&"function"==typeof e.unknownProperty}function Ee(e,t){return we(t)?Te(e,t):Ae(e,t)}function Ae(e,t){var r -if(null!=e)return"object"==typeof e||"function"==typeof e?(void 0===(r=e[t])&&"object"==typeof e&&!(t in e)&&Oe(e)&&(r=e.unknownProperty(t)),(0,o.isTracking)()&&((0,o.consumeTag)((0,o.tagFor)(e,t)),(Array.isArray(r)||(0,c.isEmberArray)(r))&&(0,o.consumeTag)((0,o.tagFor)(r,"[]")))):r=e[t],r}function Te(e,t,r){var i="string"==typeof t?t.split("."):t +return 0===arguments.length?t._meta||{}:(t._meta=e,this)}get _getter(){return ae(this)._getter}set enumerable(e){ae(this).enumerable=e}}function ge(...e){return X(e)?ie(new pe([]),me)(e[0],e[1],e[2]):ie(new pe(e),me)}function ve(e,r,i,n,s){var a=void 0===s?(0,t.meta)(e):s,o=se(e,r,a),l=void 0!==o +l&&o.teardown(e,r,a),oe(i)?be(e,r,i,a):null==i?ye(e,r,n,l,!0):Object.defineProperty(e,r,i),a.isPrototypeMeta(e)||T(e)}function be(e,t,r,i){var n +return n=r(e,t,void 0,i),Object.defineProperty(e,t,n),r}function ye(e,t,r,i,n=!0){return!0===i||!1===n?Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r}):e[t]=r,r}var _e=new r.Cache(1e3,(e=>e.indexOf("."))) +function we(e){return"string"==typeof e&&-1!==_e.get(e)}e.PROXY_CONTENT=(0,r.symbol)("PROXY_CONTENT") +function Re(e){return"object"==typeof e&&null!==e&&"function"==typeof e.unknownProperty}function Oe(e,t){return we(t)?Ae(e,t):Ee(e,t)}function Ee(e,t){var r +if(null!=e)return"object"==typeof e||"function"==typeof e?(void 0===(r=e[t])&&"object"==typeof e&&!(t in e)&&Re(e)&&(r=e.unknownProperty(t)),(0,o.isTracking)()&&((0,o.consumeTag)((0,o.tagFor)(e,t)),(Array.isArray(r)||(0,c.isEmberArray)(r))&&(0,o.consumeTag)((0,o.tagFor)(r,"[]")))):r=e[t],r}function Ae(e,t,r){var i="string"==typeof t?t.split("."):t for(var n of i){if(null==e||e.isDestroyed)return if(r&&("__proto__"===n||"constructor"===n))return -e=Ae(e,n)}return e}e.PROXY_CONTENT=Re,Ae("foo","a"),Ae("foo",1),Ae({},"a"),Ae({},1),Ae({unknownProperty(){}},"a"),Ae({unknownProperty(){}},1),Ee({},"foo"),Ee({},"foo.bar") +e=Ee(e,n)}return e}Ee("foo","a"),Ee("foo",1),Ee({},"a"),Ee({},1),Ee({unknownProperty(){}},"a"),Ee({unknownProperty(){}},1),Oe({},"foo"),Oe({},"foo.bar") var Ce={} -function Se(e,t,r,i){return e.isDestroyed?r:we(t)?function(e,t,r,i){var n=t.split("."),s=n.pop() -var a=Te(e,n,!0) -if(null!=a)return Se(a,s,r) +function Te(e,t,r,i){return e.isDestroyed?r:we(t)?function(e,t,r,i){var n=t.split("."),s=n.pop() +var a=Ae(e,n,!0) +if(null!=a)return Te(a,s,r) if(!i)throw new Error(`Property set failed: object in path "${n.join(".")}" could not be found.`)}(e,t,r,i):ke(e,t,r)}function ke(e,t,i){var n,s=(0,r.lookupDescriptor)(e,t) -return null!==s&&re.has(s.set)?(e[t]=i,i):(void 0!==(n=e[t])||"object"!=typeof e||t in e||"function"!=typeof e.setUnknownProperty?(e[t]=i,n!==i&&F(e,t)):e.setUnknownProperty(t,i),i)}(0,r.setProxy)(Ce),(0,o.track)((()=>Ae({},"a"))),(0,o.track)((()=>Ae({},1))),(0,o.track)((()=>Ae({a:[]},"a"))),(0,o.track)((()=>Ae({a:Ce},"a"))) +return null!==s&&re.has(s.set)?(e[t]=i,i):(void 0!==(n=e[t])||"object"!=typeof e||t in e||"function"!=typeof e.setUnknownProperty?(e[t]=i,n!==i&&F(e,t)):e.setUnknownProperty(t,i),i)}(0,r.setProxy)(Ce),(0,o.track)((()=>Ee({},"a"))),(0,o.track)((()=>Ee({},1))),(0,o.track)((()=>Ee({a:[]},"a"))),(0,o.track)((()=>Ee({a:Ce},"a"))) class Pe extends Function{readOnly(){return ae(this).readOnly(),this}oneWay(){return ae(this).oneWay(),this}meta(e){var t=ae(this) if(0===arguments.length)return t._meta||{} -t._meta=e}}class je extends Z{constructor(e){super(),this.altKey=e}setup(e,t,r,i){super.setup(e,t,r,i),G.add(this)}get(e,r){var i,n=(0,t.meta)(e),s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,r,s);(0,o.untrack)((()=>{i=Ee(e,this.altKey)})) +t._meta=e}}class Se extends Z{constructor(e){super(),this.altKey=e}setup(e,t,r,i){super.setup(e,t,r,i),G.add(this)}get(e,r){var i,n=(0,t.meta)(e),s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,r,s);(0,o.untrack)((()=>{i=Oe(e,this.altKey)})) var l=n.revisionFor(r) -return void 0!==l&&(0,o.validateTag)(a,l)||((0,o.updateTag)(a,Q(e,this.altKey,s,n)),n.setRevisionFor(r,(0,o.valueForTag)(a)),Y(n,r,i)),(0,o.consumeTag)(a),i}set(e,t,r){return Se(e,this.altKey,r)}readOnly(){this.set=Me}oneWay(){this.set=xe}}function Me(e,t){throw new Error(`Cannot set read-only property '${t}' on object: ${(0,i.inspect)(e)}`)}function xe(e,t,r){return ve(e,t,null),Se(e,t,r)}var De=new WeakMap -class Ne{constructor(){this._registry=[],this._coreLibIndex=0}_getLibraryByName(e){var t=this._registry +return void 0!==l&&(0,o.validateTag)(a,l)||((0,o.updateTag)(a,Q(e,this.altKey,s,n)),n.setRevisionFor(r,(0,o.valueForTag)(a)),Y(n,r,i)),(0,o.consumeTag)(a),i}set(e,t,r){return Te(e,this.altKey,r)}readOnly(){this.set=je}oneWay(){this.set=Me}}function je(e,t){throw new Error(`Cannot set read-only property '${t}' on object: ${(0,i.inspect)(e)}`)}function Me(e,t,r){return ve(e,t,null),Te(e,t,r)}var xe=new WeakMap +class De{constructor(){this._registry=[],this._coreLibIndex=0}_getLibraryByName(e){var t=this._registry for(var r of t)if(r.name===e)return r}register(e,t,r){var i=this._registry.length this._getLibraryByName(e)||(r&&(i=this._coreLibIndex++),this._registry.splice(i,0,{name:e,version:t}))}registerCoreLibrary(e,t){this.register(e,t,!0)}deRegister(e){var t,r=this._getLibraryByName(e) -r&&(t=this._registry.indexOf(r),this._registry.splice(t,1))}}e.Libraries=Ne -var Fe,Ie=new Ne -function ze(){for(var e=arguments.length,t=new Array(e),r=0;rs)}])} -return le(a),a}return Le(t)}function Le(e){var[r,i,n]=e,{getter:s,setter:a}=(0,o.trackedData)(i,n?n.initializer:void 0) -function l(){var e=s(this) -return(Array.isArray(e)||(0,c.isEmberArray)(e))&&(0,o.consumeTag)((0,o.tagFor)(e,"[]")),e}function u(e){a(this,e),(0,o.dirtyTagFor)(this,j)}var d={enumerable:!0,configurable:!0,isTracked:!0,get:l,set:u} -return re.add(u),(0,t.meta)(r).writeDescriptors(i,new Ue(l,u)),d}e.libraries=Ie,Ie.registerCoreLibrary("Ember",d.default),e.DEBUG_INJECTION_FUNCTIONS=Fe -class Ue{constructor(e,t){this._get=e,this._set=t,G.add(this)}get(e){return this._get.call(e)}set(e,t,r){this._set.call(e,r)}}e.TrackedDescriptor=Ue -e.cached=function(){for(var e=arguments.length,t=new Array(e),r=0;r=65&&e<=90){var a=Xe(t,s) -a&&(0,r.setName)(a,s)}}}function Ye(e){Qe([e.toString()],e,new Set)}function Ke(){var e=He.unprocessedNamespaces -if(e&&(Ge(),He.unprocessedNamespaces=!1),e||qe){var t=Ve -for(var r of t)Ye(r) -qe=!1}}function Qe(e,t,i){var n=e.length,s=e.join(".") -for(var a in We[s]=t,(0,r.setName)(t,s),t)if(Be.call(t,a)){var o=t[a] +r&&(t=this._registry.indexOf(r),this._registry.splice(t,1))}}function Ne(...e){if(!X(e)){var t=e[0],r=t?t.initializer:void 0,i=t?t.value:void 0,n=function(e,t,n,s,a){return Fe([e,t,{initializer:r||(()=>i)}])} +return le(n),n}return Fe(e)}function Fe([e,r,i]){var{getter:n,setter:s}=(0,o.trackedData)(r,i?i.initializer:void 0) +function a(){var e=n(this) +return(Array.isArray(e)||(0,c.isEmberArray)(e))&&(0,o.consumeTag)((0,o.tagFor)(e,"[]")),e}function l(e){s(this,e),(0,o.dirtyTagFor)(this,j)}var u={enumerable:!0,configurable:!0,isTracked:!0,get:a,set:l} +return re.add(l),(0,t.meta)(e).writeDescriptors(r,new Ie(a,l)),u}e.Libraries=De,(e.libraries=new De).registerCoreLibrary("Ember",d.default) +class Ie{constructor(e,t){this._get=e,this._set=t,G.add(this)}get(e){return this._get.call(e)}set(e,t,r){this._set.call(e,r)}}e.TrackedDescriptor=Ie +e.cached=(...e)=>{var[t,r,i]=e +var n=new WeakMap,s=i.get +i.get=function(){return n.has(this)||n.set(this,(0,o.createCache)(s.bind(this))),(0,o.getValue)(n.get(this))}} +var ze=Object.prototype.hasOwnProperty,Le=!1,Ue={_set:0,_unprocessedNamespaces:!1,get unprocessedNamespaces(){return this._unprocessedNamespaces},set unprocessedNamespaces(e){this._set++,this._unprocessedNamespaces=e}},Be=!1,$e=e.NAMESPACES=[],He=e.NAMESPACES_BY_ID=Object.create(null) +function qe(){if(Ue.unprocessedNamespaces){var e,t=n.context.lookup,i=Object.keys(t) +for(var s of i)if((e=s.charCodeAt(0))>=65&&e<=90){var a=Ke(t,s) +a&&(0,r.setName)(a,s)}}}function Ve(e){Ge([e.toString()],e,new Set)}function We(){var e=Ue.unprocessedNamespaces +if(e&&(qe(),Ue.unprocessedNamespaces=!1),e||Be){var t=$e +for(var r of t)Ve(r) +Be=!1}}function Ge(e,t,i){var n=e.length,s=e.join(".") +for(var a in He[s]=t,(0,r.setName)(t,s),t)if(ze.call(t,a)){var o=t[a] if(e[n]=a,o&&void 0===(0,r.getName)(o))(0,r.setName)(o,e.join(".")) -else if(o&&Je(o)){if(i.has(o))continue -i.add(o),Qe(e,o,i)}}e.length=n}function Je(e){return null!=e&&"object"==typeof e&&e.isNamespace}function Xe(e,t){try{var r=e[t] -return(null!==r&&"object"==typeof r||"function"==typeof r)&&r.isNamespace&&r}catch(i){}}e.NAMESPACES_BY_ID=We})),e("@ember/-internals/overrides/index",["exports"],(function(e){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.onEmberGlobalAccess=void 0,e.onEmberGlobalAccess=undefined})),e("@ember/-internals/owner/index",["exports","@glimmer/owner"],(function(e,t){"use strict" +else if(o&&Ye(o)){if(i.has(o))continue +i.add(o),Ge(e,o,i)}}e.length=n}function Ye(e){return null!=e&&"object"==typeof e&&e.isNamespace}function Ke(e,t){try{var r=e[t] +return(null!==r&&"object"==typeof r||"function"==typeof r)&&r.isNamespace&&r}catch(i){}}})),e("@ember/-internals/overrides/index",["exports"],(function(e){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.onEmberGlobalAccess=void 0})),e("@ember/-internals/owner/index",["exports","@glimmer/owner"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.getOwner=function(e){return(0,t.getOwner)(e)},e.isFactory=function(e){return null!=e&&"function"==typeof e.create},e.setOwner=function(e,r){(0,t.setOwner)(e,r)}})),e("@ember/-internals/routing/index",["exports","@ember/routing/-internals"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterDSL",{enumerable:!0,get:function(){return t.DSL}}),Object.defineProperty(e,"controllerFor",{enumerable:!0,get:function(){return t.controllerFor}}),Object.defineProperty(e,"generateController",{enumerable:!0,get:function(){return t.generateController}}),Object.defineProperty(e,"generateControllerFactory",{enumerable:!0,get:function(){return t.generateControllerFactory}})})),e("@ember/-internals/runtime/index",["exports","@ember/-internals/runtime/lib/mixins/registry_proxy","@ember/-internals/runtime/lib/mixins/container_proxy","@ember/-internals/runtime/lib/mixins/comparable","@ember/array","@ember/-internals/runtime/lib/mixins/action_handler","@ember/-internals/runtime/lib/mixins/-proxy","@ember/enumerable/mutable","@ember/-internals/runtime/lib/mixins/target_action_support","@ember/-internals/runtime/lib/ext/rsvp"],(function(e,t,r,i,n,s,a,o,l,u){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ActionHandler",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Comparable",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"ContainerProxyMixin",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"MutableEnumerable",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NativeArray",{enumerable:!0,get:function(){return n.NativeArray}}),Object.defineProperty(e,"RSVP",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"RegistryProxyMixin",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"TargetActionSupport",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"_ProxyMixin",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"_contentFor",{enumerable:!0,get:function(){return a.contentFor}}),Object.defineProperty(e,"onerrorDefault",{enumerable:!0,get:function(){return u.onerrorDefault}})})),e("@ember/-internals/runtime/lib/ext/rsvp",["exports","rsvp","@ember/runloop","@ember/-internals/error-handling","@ember/debug"],(function(e,t,r,i,n){"use strict" @@ -748,8 +677,7 @@ return e}(e) if(t){var r=(0,i.getDispatchOverride)() if(!r)throw t r(t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.onerrorDefault=s,t.configure("async",((e,t)=>{r._backburner.schedule("actions",null,e,t)})),t.configure("after",(e=>{r._backburner.schedule(r._rsvpErrorQueue,null,e)})),t.on("error",s) -var a=t -e.default=a})),e("@ember/-internals/runtime/lib/mixins/-proxy",["exports","@ember/-internals/meta","@ember/object/mixin","@ember/-internals/metal","@ember/-internals/utils","@ember/debug","@glimmer/manager","@glimmer/validator"],(function(e,t,r,i,n,s,a,o){"use strict" +e.default=t})),e("@ember/-internals/runtime/lib/mixins/-proxy",["exports","@ember/-internals/meta","@ember/object/mixin","@ember/-internals/metal","@ember/-internals/utils","@ember/debug","@glimmer/manager","@glimmer/validator"],(function(e,t,r,i,n,s,a,o){"use strict" function l(e){var t=(0,i.get)(e,"content") return(0,o.updateTag)((0,i.tagForObject)(e),(0,i.tagForObject)(t)),t}function u(e,t,r){var s=(0,o.tagMetaFor)(e),a=(0,o.tagFor)(e,t,s) if(t in e)return a @@ -759,14 +687,13 @@ var c=r.default.create({content:null,init(){this._super(...arguments),(0,n.setPr if(t)return(0,i.get)(t,e)},setUnknownProperty(e,r){var n=(0,t.meta)(this) if(n.isInitializing()||n.isPrototypeMeta(this))return(0,i.defineProperty)(this,e,null,r),r var s=l(this) -return(0,i.set)(s,e,r)}}),d=c -e.default=d})),e("@ember/-internals/runtime/lib/mixins/action_handler",["exports","@ember/object/mixin","@ember/-internals/metal","@ember/debug"],(function(e,t,r,i){"use strict" +return(0,i.set)(s,e,r)}}) +e.default=c})),e("@ember/-internals/runtime/lib/mixins/action_handler",["exports","@ember/object/mixin","@ember/-internals/metal","@ember/debug"],(function(e,t,r,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var n=t.default.create({mergedProperties:["actions"],send(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n{e.destroy(),(0,t.schedule)("destroy",e,"finalizeDestroy")})),this._super()},factoryFor(e){return this.__container__.factoryFor(e)}}) e.default=i})),e("@ember/-internals/runtime/lib/mixins/registry_proxy",["exports","@ember/debug","@ember/object/mixin"],(function(e,t,r){"use strict" -function i(e){return function(){return this.__registry__[e](...arguments)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var n=r.default.create({__registry__:null,resolveRegistration(e){return this.__registry__.resolve(e)},register:i("register"),unregister:i("unregister"),hasRegistration:i("has"),registeredOption:i("getOption"),registerOptions:i("options"),registeredOptions:i("getOptions"),registerOptionsForType:i("optionsForType"),registeredOptionsForType:i("getOptionsForType"),inject:i("injection")}) -e.default=n})),e("@ember/-internals/runtime/lib/mixins/target_action_support",["exports","@ember/-internals/environment","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i,n){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var i=r.default.create({__registry__:null,resolveRegistration(e){return this.__registry__.resolve(e)},register:n("register"),unregister:n("unregister"),hasRegistration:n("has"),registeredOption:n("getOption"),registerOptions:n("options"),registeredOptions:n("getOptions"),registerOptionsForType:n("optionsForType"),registeredOptionsForType:n("getOptionsForType"),inject:n("injection")}) +function n(e){return function(...t){return this.__registry__[e](...t)}}e.default=i})),e("@ember/-internals/runtime/lib/mixins/target_action_support",["exports","@ember/-internals/environment","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i,n){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var s=i.default.create({target:null,action:null,actionContext:null,actionContextObject:(0,r.computed)("actionContext",(function(){var e=(0,r.get)(this,"actionContext") if("string"==typeof e){var i=(0,r.get)(this,e) -return void 0===i&&(i=(0,r.get)(t.context.lookup,e)),i}return e})),triggerAction(e){void 0===e&&(e={}) -var{action:i,target:n,actionContext:s}=e +return void 0===i&&(i=(0,r.get)(t.context.lookup,e)),i}return e})),triggerAction(e={}){var{action:i,target:n,actionContext:s}=e i=i||(0,r.get)(this,"action"),n=n||function(e){var i=(0,r.get)(e,"target") if(i){if("string"==typeof i){var n=(0,r.get)(e,i) return void 0===n&&(n=(0,r.get)(t.context.lookup,i)),n}return i}if(e._target)return e._target @@ -789,8 +715,7 @@ return null}(this),void 0===s&&(s=(0,r.get)(this,"actionContextObject")||this) var a,o=Array.isArray(s)?s:[s] if(n&&i&&!1!==(null!=(a=n)&&"object"==typeof a&&"function"==typeof a.send?n.send(i,...o):n[i](...o)))return!0 return!1}}) -var a=s -e.default=a})),e("@ember/-internals/string/index",["exports","@ember/-internals/utils"],(function(e,t){"use strict" +e.default=s})),e("@ember/-internals/string/index",["exports","@ember/-internals/utils"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.classify=function(e){return o.get(e)},e.dasherize=function(e){return i.get(e)} var r=/[ _]/g,i=new t.Cache(1e3,(e=>{return(t=e,u.get(t)).replace(r,"-") var t})),n=/^(-|_)+(.)?/,s=/(.)(-|_|\.|\s)+(.)?/g,a=/(^|\/|\.)([a-z])/g,o=new t.Cache(1e3,(e=>{for(var t=(e,t,r)=>r?`_${r.toUpperCase()}`:"",r=(e,t,r,i)=>t+(i?i.toUpperCase():""),i=e.split("/"),o=0;o0&&(r+=","),k(t[i])||(r+=e(t[i])) +if(Array.isArray(t)){for(var r="",i=0;i0&&(r+=","),T(t[i])||(r+=e(t[i])) return r}if("function"==typeof t.toString)return t.toString() -return S.call(t)},e.uuid=a,e.wrap=function(e,t){if(!_(e))return e -if(!E.has(t)&&_(t))return A(e,A(t,y)) -return A(e,t)} +return C.call(t)},e.uuid=a,e.wrap=function(e,t){if(!b(e))return e +if(!R.has(t)&&b(t))return O(e,O(t,v)) +return O(e,t)} var s=0 -function a(){return++s}var o="ember",l=new WeakMap,u=new Map,c=i(`__ember${Date.now()}`) -e.GUID_KEY=c +function a(){return++s}var o="ember",l=new WeakMap,u=new Map,c=e.GUID_KEY=i(`__ember${Date.now()}`) var d=[] -var h,p=Symbol -e.symbol=p -var f=h -e.getDebugName=f -var m=/\.(_super|call\(this|apply\(this)/,g=Function.prototype.toString,v=g.call((function(){return this})).indexOf("return this")>-1?function(e){return m.test(g.call(e))}:function(){return!0} -e.checkHasSuper=v -var b=new WeakMap,y=Object.freeze((function(){})) -function _(e){var t=b.get(e) -return void 0===t&&(t=v(e),b.set(e,t)),t}e.ROOT=y,b.set(y,!1) -class w{constructor(){this.listeners=void 0,this.observers=void 0}}var R=new WeakMap -function O(e){var t=R.get(e) -return void 0===t&&(t=new w,R.set(e,t)),t}var E=new t._WeakSet -function A(e,t){function r(){var r=this._super +var h +e.symbol=Symbol +e.getDebugName=h +var p=/\.(_super|call\(this|apply\(this)/,f=Function.prototype.toString,m=e.checkHasSuper=f.call((function(){return this})).indexOf("return this")>-1?function(e){return p.test(f.call(e))}:function(){return!0},g=new WeakMap,v=e.ROOT=Object.freeze((function(){})) +function b(e){var t=g.get(e) +return void 0===t&&(t=m(e),g.set(e,t)),t}g.set(v,!1) +class y{constructor(){this.listeners=void 0,this.observers=void 0}}var _=new WeakMap +function w(e){var t=_.get(e) +return void 0===t&&(t=new y,_.set(e,t)),t}var R=new t._WeakSet +function O(e,t){function r(){var r=this._super this._super=t var i=e.apply(this,arguments) -return this._super=r,i}E.add(r) -var i=R.get(e) -return void 0!==i&&R.set(r,i),r}function T(e,t){var r=e +return this._super=r,i}R.add(r) +var i=_.get(e) +return void 0!==i&&_.set(r,i),r}function E(e,t){var r=e do{var i=Object.getOwnPropertyDescriptor(r,t) if(void 0!==i)return i r=Object.getPrototypeOf(r)}while(null!==r) -return null}var C=new WeakMap -var S=Object.prototype.toString -function k(e){return null==e}var P,j,M,x=new t._WeakSet -e.Cache=class{constructor(e,t,r){void 0===r&&(r=new Map),this.limit=e,this.func=t,this.store=r,this.size=0,this.misses=0,this.hits=0}get(e){return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,this.set(e,this.func(e)))}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}},e.setupMandatorySetter=P,e.teardownMandatorySetter=j,e.setWithMandatorySetter=M})),e("@ember/-internals/views/index",["exports","@ember/-internals/views/lib/system/utils","@ember/-internals/views/lib/system/event_dispatcher","@ember/-internals/views/lib/component_lookup","@ember/-internals/views/lib/views/core_view","@ember/-internals/views/lib/mixins/class_names_support","@ember/-internals/views/lib/mixins/child_views_support","@ember/-internals/views/lib/mixins/view_state_support","@ember/-internals/views/lib/mixins/view_support","@ember/-internals/views/lib/mixins/action_support","@ember/-internals/views/lib/compat/attrs","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,i,n,s,a,o,l,u,c,d){"use strict" +return null}var A=new WeakMap +var C=Object.prototype.toString +function T(e){return null==e}var k=new t._WeakSet +e.Cache=class{constructor(e,t,r=new Map){this.limit=e,this.func=t,this.store=r,this.size=0,this.misses=0,this.hits=0}get(e){return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,this.set(e,this.func(e)))}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}})),e("@ember/-internals/views/index",["exports","@ember/-internals/views/lib/system/utils","@ember/-internals/views/lib/system/event_dispatcher","@ember/-internals/views/lib/component_lookup","@ember/-internals/views/lib/views/core_view","@ember/-internals/views/lib/mixins/class_names_support","@ember/-internals/views/lib/mixins/child_views_support","@ember/-internals/views/lib/mixins/view_state_support","@ember/-internals/views/lib/mixins/view_support","@ember/-internals/views/lib/mixins/action_support","@ember/-internals/views/lib/compat/attrs","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,i,n,s,a,o,l,u,c,d){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ActionManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"ActionSupport",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ChildViewsSupport",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ClassNamesSupport",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ComponentLookup",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"CoreView",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"EventDispatcher",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"MUTABLE_CELL",{enumerable:!0,get:function(){return c.MUTABLE_CELL}}),Object.defineProperty(e,"ViewMixin",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ViewStateSupport",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"addChildView",{enumerable:!0,get:function(){return t.addChildView}}),Object.defineProperty(e,"clearElementView",{enumerable:!0,get:function(){return t.clearElementView}}),Object.defineProperty(e,"clearViewElement",{enumerable:!0,get:function(){return t.clearViewElement}}),Object.defineProperty(e,"constructStyleDeprecationMessage",{enumerable:!0,get:function(){return t.constructStyleDeprecationMessage}}),Object.defineProperty(e,"getChildViews",{enumerable:!0,get:function(){return t.getChildViews}}),Object.defineProperty(e,"getElementView",{enumerable:!0,get:function(){return t.getElementView}}),Object.defineProperty(e,"getRootViews",{enumerable:!0,get:function(){return t.getRootViews}}),Object.defineProperty(e,"getViewBoundingClientRect",{enumerable:!0,get:function(){return t.getViewBoundingClientRect}}),Object.defineProperty(e,"getViewBounds",{enumerable:!0,get:function(){return t.getViewBounds}}),Object.defineProperty(e,"getViewClientRects",{enumerable:!0,get:function(){return t.getViewClientRects}}),Object.defineProperty(e,"getViewElement",{enumerable:!0,get:function(){return t.getViewElement}}),Object.defineProperty(e,"getViewId",{enumerable:!0,get:function(){return t.getViewId}}),Object.defineProperty(e,"isSimpleClick",{enumerable:!0,get:function(){return t.isSimpleClick}}),Object.defineProperty(e,"setElementView",{enumerable:!0,get:function(){return t.setElementView}}),Object.defineProperty(e,"setViewElement",{enumerable:!0,get:function(){return t.setViewElement}})})),e("@ember/-internals/views/lib/compat/attrs",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.MUTABLE_CELL=void 0 -var t=Symbol("MUTABLE_CELL") -e.MUTABLE_CELL=t})),e("@ember/-internals/views/lib/compat/fallback-view-registry",["exports","@ember/-internals/utils"],(function(e,t){"use strict" +e.MUTABLE_CELL=Symbol("MUTABLE_CELL")})),e("@ember/-internals/views/lib/compat/fallback-view-registry",["exports","@ember/-internals/utils"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=(0,t.dictionary)(null) -e.default=r})),e("@ember/-internals/views/lib/component_lookup",["exports","@ember/object"],(function(e,t){"use strict" +e.default=(0,t.dictionary)(null)})),e("@ember/-internals/views/lib/component_lookup",["exports","@ember/object"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=t.default.extend({componentFor(e,t){var r=`component:${e}` +e.default=t.default.extend({componentFor(e,t){var r=`component:${e}` return t.factoryFor(r)},layoutFor(e,t,r){var i=`template:components/${e}` -return t.lookup(i,r)}}) -e.default=r})),e("@ember/-internals/views/lib/mixins/action_support",["exports","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i){"use strict" +return t.lookup(i,r)}})})),e("@ember/-internals/views/lib/mixins/action_support",["exports","@ember/-internals/metal","@ember/object/mixin","@ember/debug"],(function(e,t,r,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var n=r.default.create({send(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;ne.detect(t):t=>e.detect(t.constructor);t;){if(r(t))return t t=t.parentView}},nearestWithProperty(e){for(var t=this.parentView;t;){if(e in t)return t t=t.parentView}},rerender(){return this._currentState.rerender(this)},element:(0,r.nativeDescDecorator)({configurable:!1,enumerable:!1,get(){return this.renderer.getElement(this)}}),appendTo(e){var t -return t=s.hasDOM&&"string"==typeof e?document.querySelector(e):e,this.renderer.appendTo(this,t),this},append(){return this.appendTo(document.body)},elementId:null,willInsertElement:o,didInsertElement:o,willClearRender:o,destroy(){this._super(...arguments),this._currentState.destroy(this)},willDestroyElement:o,didDestroyElement:o,parentViewDidChange:o,tagName:null,init(){this._super(...arguments),this.elementId||""===this.tagName||(this.elementId=(0,t.guidFor)(this))},handleEvent(e,t){return this._currentState.handleEvent(this,e,t)}}),u=l -e.default=u})),e("@ember/-internals/views/lib/system/action_manager",["exports"],(function(e){"use strict" +return t=s.hasDOM&&"string"==typeof e?document.querySelector(e):e,this.renderer.appendTo(this,t),this},append(){return this.appendTo(document.body)},elementId:null,willInsertElement:o,didInsertElement:o,willClearRender:o,destroy(){this._super(...arguments),this._currentState.destroy(this)},willDestroyElement:o,didDestroyElement:o,parentViewDidChange:o,tagName:null,init(){this._super(...arguments),this.elementId||""===this.tagName||(this.elementId=(0,t.guidFor)(this))},handleEvent(e,t){return this._currentState.handleEvent(this,e,t)}}) +e.default=l})),e("@ember/-internals/views/lib/system/action_manager",["exports"],(function(e){"use strict" function t(){}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.registeredActions={}})),e("@ember/-internals/views/lib/system/event_dispatcher",["exports","@ember/-internals/owner","@ember/debug","@ember/-internals/metal","@ember/object","@ember/-internals/views","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,i,n,s,a){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var o="ember-application" @@ -923,31 +839,25 @@ function l(e){var t=new Set return o.set(e,t),t}function u(e,t){var r=[],i=o.get(e) return void 0!==i&&i.forEach((e=>{var i=t[e] !i||i.isDestroying||i.isDestroyed||r.push(i)})),r}function c(e){return e.renderer.getBounds(e)}function d(e){var t=c(e),r=document.createRange() -return r.setStartBefore(t.firstNode),r.setEndAfter(t.lastNode),r}var h="undefined"!=typeof Element?Element.prototype.matches:void 0 -e.elMatches=h})),e("@ember/-internals/views/lib/views/core_view",["exports","@ember/-internals/metal","@ember/-internals/runtime","@ember/object/evented","@ember/object/-internals","@ember/-internals/views/lib/views/states"],(function(e,t,r,i,n,s){"use strict" +return r.setStartBefore(t.firstNode),r.setEndAfter(t.lastNode),r}var h=e.elMatches="undefined"!=typeof Element?Element.prototype.matches:void 0})),e("@ember/-internals/views/lib/views/core_view",["exports","@ember/-internals/metal","@ember/-internals/runtime","@ember/object/evented","@ember/object/-internals","@ember/-internals/views/lib/views/states"],(function(e,t,r,i,n,s){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i) else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a) return s>3&&a&&Object.defineProperty(t,r,a),a} class o extends(n.FrameworkObject.extend(i.default,r.ActionHandler)){constructor(){super(...arguments),this.isView=!0}init(e){var t -super.init(e),this._superTrigger=this.trigger,this.trigger=this._trigger,this._superHas=this.has,this.has=this._has,null!==(t=this.parentView)&&void 0!==t||(this.parentView=null),this._state="preRender",this._currentState=this._states.preRender}instrumentDetails(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e}_trigger(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i!0,rerender(){},destroy(){}}),a=Object.freeze(Object.assign({},s)),o=Object.freeze(Object.assign(Object.assign({},s),{rerender(e){e.renderer.rerender()},destroy(e){e.renderer.remove(e)},handleEvent:(e,t,r)=>!e.has(t)||(0,i.flaggedInstrument)(`interaction.${t}`,{event:r,view:e},(()=>(0,n.join)(e,e.trigger,t,r)))})),l=Object.freeze(Object.assign(Object.assign({},o),{enter(e){e.renderer.register(e)}})),u=Object.freeze(Object.assign(Object.assign({},s),{appendChild(){throw new Error("You can't call appendChild on a view being destroyed")},rerender(){throw new Error("You can't call rerender on a view being destroyed")}})),c=Object.freeze({preRender:a,inDOM:l,hasElement:o,destroying:u}) e.default=c})),e("@ember/application/index",["exports","@ember/owner","@ember/-internals/utils","@ember/-internals/environment","@ember/-internals/browser-environment","@ember/debug","@ember/runloop","@ember/-internals/metal","@ember/application/lib/lazy_load","@ember/-internals/runtime","@ember/-internals/views","@ember/routing/route","@ember/routing/router","@ember/routing/auto-location","@ember/routing/hash-location","@ember/routing/history-location","@ember/routing/none-location","@ember/routing/-internals","@ember/application/instance","@ember/engine","@ember/-internals/container","@ember/-internals/glimmer","@ember/routing/router-service"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_,w,R){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"_loaded",{enumerable:!0,get:function(){return l._loaded}}),e.getOwner=e.default=void 0,Object.defineProperty(e,"onLoad",{enumerable:!0,get:function(){return l.onLoad}}),Object.defineProperty(e,"runLoadHooks",{enumerable:!0,get:function(){return l.runLoadHooks}}),e.setOwner=void 0 -var O=t.getOwner -e.getOwner=O -var E=t.setOwner -e.setOwner=E -class A extends y.default{constructor(){super(...arguments),this._bootPromise=null,this._bootResolver=null}static buildRegistry(e){var t=super.buildRegistry(e) +e.getOwner=t.getOwner,e.setOwner=t.setOwner +class O extends y.default{constructor(){super(...arguments),this._bootPromise=null,this._bootResolver=null}static buildRegistry(e){var t=super.buildRegistry(e) return function(e){e.register("router:main",h.default),e.register("-view-registry:main",{create:()=>(0,r.dictionary)(null)}),e.register("route:basic",d.default),e.register("event_dispatcher:main",c.EventDispatcher),e.register("location:auto",p.default),e.register("location:hash",f.default),e.register("location:history",m.default),e.register("location:none",g.default),e.register(_.privatize`-bucket-cache:main`,{create:()=>new v.BucketCache}),e.register("service:router",R.default)}(t),(0,w.setupApplicationRegistry)(t),t}init(e){var t,r,i,s,a,o,l -super.init(e),null!==(t=this.rootElement)&&void 0!==t||(this.rootElement="body"),null!==(r=this._document)&&void 0!==r||(this._document=null),null!==(i=this.eventDispatcher)&&void 0!==i||(this.eventDispatcher=null),null!==(s=this.customEvents)&&void 0!==s||(this.customEvents=null),null!==(a=this.autoboot)&&void 0!==a||(this.autoboot=!0),null!==(o=this._document)&&void 0!==o||(this._document=n.hasDOM?window.document:null),null!==(l=this._globalsMode)&&void 0!==l||(this._globalsMode=!0),this._readinessDeferrals=1,this._booted=!1,this._applicationInstances=new Set,this.autoboot=this._globalsMode=Boolean(this.autoboot),this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()}buildInstance(e){return void 0===e&&(e={}),b.default.create(Object.assign(Object.assign({},e),{base:this,application:this}))}_watchInstance(e){this._applicationInstances.add(e)}_unwatchInstance(e){return this._applicationInstances.delete(e)}_prepareForGlobalsMode(){this.Router=(this.Router||h.default).extend(),this._buildDeprecatedInstance()}_buildDeprecatedInstance(){var e=this.buildInstance() +super.init(e),null!==(t=this.rootElement)&&void 0!==t||(this.rootElement="body"),null!==(r=this._document)&&void 0!==r||(this._document=null),null!==(i=this.eventDispatcher)&&void 0!==i||(this.eventDispatcher=null),null!==(s=this.customEvents)&&void 0!==s||(this.customEvents=null),null!==(a=this.autoboot)&&void 0!==a||(this.autoboot=!0),null!==(o=this._document)&&void 0!==o||(this._document=n.hasDOM?window.document:null),null!==(l=this._globalsMode)&&void 0!==l||(this._globalsMode=!0),this._readinessDeferrals=1,this._booted=!1,this._applicationInstances=new Set,this.autoboot=this._globalsMode=Boolean(this.autoboot),this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()}buildInstance(e={}){return b.default.create(Object.assign(Object.assign({},e),{base:this,application:this}))}_watchInstance(e){this._applicationInstances.add(e)}_unwatchInstance(e){return this._applicationInstances.delete(e)}_prepareForGlobalsMode(){this.Router=(this.Router||h.default).extend(),this._buildDeprecatedInstance()}_buildDeprecatedInstance(){var e=this.buildInstance() this.__deprecatedInstance__=e,this.__container__=e.__container__}waitForDOMReady(){var e=this._document if(null===e||"loading"!==e.readyState)(0,a.schedule)("actions",this,this.domReady) else{var t=()=>{e.removeEventListener("DOMContentLoaded",t),(0,a.run)(this,this.domReady)} @@ -958,7 +868,7 @@ try{this.runInitializers(),(0,l.runLoadHooks)("application",this),this.advanceRe this._readinessDeferrals=1,this._bootPromise=null,this._bootResolver=null,this._booted=!1,(0,a.join)(this,(function(){(0,a.run)(e,"destroy"),this._buildDeprecatedInstance(),(0,a.schedule)("actions",this,"_bootSync")}))}didBecomeReady(){if(!this.isDestroying&&!this.isDestroyed)try{var e if(this.autoboot)(e=this._globalsMode?this.__deprecatedInstance__:this.buildInstance())._bootSync(),this.ready(),e.startRouting() this._bootResolver.resolve(this),this._booted=!0}catch(t){throw this._bootResolver.reject(t),t}}ready(){return this}willDestroy(){super.willDestroy(),l._loaded.application===this&&(l._loaded.application=void 0),this._applicationInstances.size&&(this._applicationInstances.forEach((e=>e.destroy())),this._applicationInstances.clear())}visit(e,t){return this.boot().then((()=>{var r=this.buildInstance() -return r.boot(t).then((()=>r.visit(e))).catch((e=>{throw(0,a.run)(r,"destroy"),e}))}))}}e.default=A,A.initializer=(0,y.buildInitializerMethod)("initializers","initializer"),A.instanceInitializer=(0,y.buildInitializerMethod)("instanceInitializers","instance initializer")})),e("@ember/application/instance",["exports","@ember/object","@ember/-internals/browser-environment","@ember/engine/instance","@ember/-internals/glimmer","@ember/debug","@ember/routing/router","@ember/-internals/views"],(function(e,t,r,i,n,s,a,o){"use strict" +return r.boot(t).then((()=>r.visit(e))).catch((e=>{throw(0,a.run)(r,"destroy"),e}))}))}}e.default=O,O.initializer=(0,y.buildInitializerMethod)("initializers","initializer"),O.instanceInitializer=(0,y.buildInitializerMethod)("instanceInitializers","instance initializer")})),e("@ember/application/instance",["exports","@ember/object","@ember/-internals/browser-environment","@ember/engine/instance","@ember/-internals/glimmer","@ember/debug","@ember/routing/router","@ember/-internals/views"],(function(e,t,r,i,n,s,a,o){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 class l extends i.default{constructor(){super(...arguments),this.rootElement=null}init(e){super.init(e),this.application._watchInstance(this),this.register("-application-instance:main",this,{instantiate:!1})}_bootSync(e){return this._booted||(e=new u(e),this.setupRegistry(e),e.rootElement?this.rootElement=e.rootElement:this.rootElement=this.application.rootElement,e.location&&(0,t.set)(this.router,"location",e.location),this.application.runInstanceInitializers(this),e.isInteractive&&this.setupEventDispatcher(),this._booted=!0),this}setupRegistry(e){this.constructor.setupRegistry(this.__registry__,e)}get router(){if(!this._router){var e=this.lookup("router:main") this._router=e}return this._router}didCreateRootView(e){e.appendTo(this.rootElement)}startRouting(){this.router.startRouting()}setupRouter(){this.router.setupRouter()}handleURL(e){return this.setupRouter(),this.router.handleURL(e)}setupEventDispatcher(){var e=this.lookup("event_dispatcher:main"),r=(0,t.get)(this.application,"customEvents"),i=(0,t.get)(this,"customEvents"),n=Object.assign({},r,i) @@ -966,63 +876,50 @@ return e.setup(n,this.rootElement),e}getURL(){return this.router.url}visit(e){th var r=this.__container__.lookup("-environment:main"),i=this.router,s=()=>r.options.shouldRender?(0,n.renderSettled)().then((()=>this)):this,a=e=>{if(e.error)throw e.error if("TransitionAborted"===e.name&&i._routerMicrolib.activeTransition)return i._routerMicrolib.activeTransition.then(s,a) throw"TransitionAborted"===e.name?new Error(e.message):e},o=(0,t.get)(i,"location") -return o.setURL(e),i.handleURL(o.getURL()).then(s,a)}willDestroy(){super.willDestroy(),this.application._unwatchInstance(this)}static setupRegistry(e,t){void 0===t&&(t={}) -var r=t instanceof u?t:new u(t) -e.register("-environment:main",r.toEnvironment(),{instantiate:!1}),e.register("service:-document",r.document,{instantiate:!1}),super.setupRegistry(e,r)}}class u{constructor(e){void 0===e&&(e={}),this.location=null,this.isInteractive=Boolean(r.hasDOM),this._renderMode=e._renderMode,void 0!==e.isBrowser?this.isBrowser=Boolean(e.isBrowser):this.isBrowser=Boolean(r.hasDOM),this.isBrowser||(this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=Boolean(e.shouldRender):this.shouldRender=!0,this.shouldRender||(this.isInteractive=!1),e.document?this.document=e.document:this.document="undefined"!=typeof document?document:null,e.rootElement&&(this.rootElement=e.rootElement),void 0!==e.location&&(this.location=e.location),void 0!==e.isInteractive&&(this.isInteractive=Boolean(e.isInteractive))}toEnvironment(){return Object.assign(Object.assign({},r),{hasDOM:this.isBrowser,isInteractive:this.isInteractive,_renderMode:this._renderMode,options:this})}}var c=l -e.default=c})),e("@ember/application/lib/lazy_load",["exports","@ember/-internals/environment","@ember/-internals/browser-environment"],(function(e,t,r){"use strict" +return o.setURL(e),i.handleURL(o.getURL()).then(s,a)}willDestroy(){super.willDestroy(),this.application._unwatchInstance(this)}static setupRegistry(e,t={}){var r=t instanceof u?t:new u(t) +e.register("-environment:main",r.toEnvironment(),{instantiate:!1}),e.register("service:-document",r.document,{instantiate:!1}),super.setupRegistry(e,r)}}class u{constructor(e={}){this.location=null,this.isInteractive=Boolean(r.hasDOM),this._renderMode=e._renderMode,void 0!==e.isBrowser?this.isBrowser=Boolean(e.isBrowser):this.isBrowser=Boolean(r.hasDOM),this.isBrowser||(this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=Boolean(e.shouldRender):this.shouldRender=!0,this.shouldRender||(this.isInteractive=!1),e.document?this.document=e.document:this.document="undefined"!=typeof document?document:null,e.rootElement&&(this.rootElement=e.rootElement),void 0!==e.location&&(this.location=e.location),void 0!==e.isInteractive&&(this.isInteractive=Boolean(e.isInteractive))}toEnvironment(){return Object.assign(Object.assign({},r),{hasDOM:this.isBrowser,isInteractive:this.isInteractive,_renderMode:this._renderMode,options:this})}}e.default=l})),e("@ember/application/lib/lazy_load",["exports","@ember/-internals/environment","@ember/-internals/browser-environment"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e._loaded=void 0,e.onLoad=function(e,t){var r,s=n[e];((r=i[e])!==null&&r!==void 0?r:i[e]=[]).push(t),s&&t(s)},e.runLoadHooks=function(e,t){var s if(n[e]=t,r.window&&"function"==typeof CustomEvent){var a=new CustomEvent(e,{detail:t}) r.window.dispatchEvent(a)}null===(s=i[e])||void 0===s||s.forEach((e=>e(t)))} -var i=t.ENV.EMBER_LOAD_HOOKS||{},n={},s=n -e._loaded=s})),e("@ember/application/namespace",["exports","@ember/-internals/metal","@ember/object","@ember/-internals/utils","@ember/debug"],(function(e,t,r,i,n){"use strict" +var i=t.ENV.EMBER_LOAD_HOOKS||{},n={} +e._loaded=n})),e("@ember/application/namespace",["exports","@ember/-internals/metal","@ember/object","@ember/-internals/utils","@ember/debug"],(function(e,t,r,i,n){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 class s extends r.default{init(e){super.init(e),(0,t.addNamespace)(this)}toString(){var e=(0,r.get)(this,"name")||(0,r.get)(this,"modulePrefix") if(e)return e;(0,t.findNamespaces)() var n=(0,i.getName)(this) return void 0===n&&(n=(0,i.guidFor)(this),(0,i.setName)(this,n)),n}nameClasses(){(0,t.processNamespace)(this)}destroy(){return(0,t.removeNamespace)(this),super.destroy()}}s.NAMESPACES=t.NAMESPACES,s.NAMESPACES_BY_ID=t.NAMESPACES_BY_ID,s.processAll=t.processAllNamespaces,s.byName=t.findNamespace,s.prototype.isNamespace=!0 -var a=s -e.default=a})),e("@ember/array/-internals",["exports","@glimmer/util"],(function(e,t){"use strict" +e.default=s})),e("@ember/array/-internals",["exports","@glimmer/util"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.isEmberArray=function(e){return r.has(e)},e.setEmberArray=function(e){r.add(e)} var r=new t._WeakSet})),e("@ember/array/index",["exports","@ember/-internals/metal","@ember/object","@ember/object/mixin","@ember/debug","@ember/enumerable","@ember/enumerable/mutable","@ember/utils","@ember/-internals/environment","@ember/object/observable","@ember/array/-internals","@ember/array/lib/make-array"],(function(e,t,r,i,n,s,a,o,l,u,c,d){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.NativeArray=e.MutableArray=e.A=void 0,e.isArray=O,Object.defineProperty(e,"makeArray",{enumerable:!0,get:function(){return d.default}}),e.removeAt=w,e.uniqBy=f var h=Object.freeze([]),p=e=>e -function f(e,t){void 0===t&&(t=p) -var i=k(),n=new Set,s="function"==typeof t?t:e=>(0,r.get)(e,t) +function f(e,t=p){var i=C(),n=new Set,s="function"==typeof t?t:e=>(0,r.get)(e,t) return e.forEach((e=>{var t=s(e) -n.has(t)||(n.add(t),i.push(e))})),i}function m(){for(var e=arguments.length,t=new Array(e),i=0;ia===(0,r.get)(e,s):e=>Boolean((0,r.get)(e,s))}function g(e,r,i){for(var n=e.length,s=i;s!i(e,t,r)),0)}function _(e,t,r,i){void 0===r&&(r=0) -var n=e.length +n.has(t)||(n.add(t),i.push(e))})),i}function m(...e){var t=2===e.length,[i,n]=e +return t?e=>n===(0,r.get)(e,i):e=>Boolean((0,r.get)(e,i))}function g(e,r,i){for(var n=e.length,s=i;s!i(e,t,r)),0)}function _(e,t,r=0,i){var n=e.length return r<0&&(r+=n),g(e,i&&t!=t?e=>e!=e:e=>e===t,r)}function w(e,r,i){return(0,t.replace)(e,r,null!=i?i:1,h),e}function R(e,r,i){return(0,t.replace)(e,r,0,[i]),i}function O(e){if(!e||e.setInterval)return!1 if(Array.isArray(e)||T.detect(e))return!0 var t=(0,o.typeOf)(e) if("array"===t)return!0 var r=e.length return"number"==typeof r&&r==r&&"object"===t}function E(e){var r=(0,t.computed)(e) -return r.enumerable=!1,r}function A(e){return this.map((t=>(0,r.get)(t,e)))}var T=i.default.create(s.default,{init(){this._super(...arguments),(0,c.setEmberArray)(this)},objectsAt(e){return e.map((e=>(0,t.objectAt)(this,e)))},"[]":E({get(){return this},set(e,t){return this.replace(0,this.length,t),this}}),firstObject:E((function(){return(0,t.objectAt)(this,0)})).readOnly(),lastObject:E((function(){return(0,t.objectAt)(this,this.length-1)})).readOnly(),slice(e,r){void 0===e&&(e=0) -var i,n=k(),s=this.length +return r.enumerable=!1,r}function A(e){return this.map((t=>(0,r.get)(t,e)))}var C,T=i.default.create(s.default,{init(){this._super(...arguments),(0,c.setEmberArray)(this)},objectsAt(e){return e.map((e=>(0,t.objectAt)(this,e)))},"[]":E({get(){return this},set(e,t){return this.replace(0,this.length,t),this}}),firstObject:E((function(){return(0,t.objectAt)(this,0)})).readOnly(),lastObject:E((function(){return(0,t.objectAt)(this,this.length-1)})).readOnly(),slice(e=0,r){var i,n=C(),s=this.length for(e<0&&(e=s+e),i=void 0===r||r>s?s:r<0?s+r:r;e=i)&&(r=i-1),r<0&&(r+=i) for(var n=r;n>=0;n--)if((0,t.objectAt)(this,n)===e)return n -return-1},forEach(e,t){void 0===t&&(t=null) -for(var r=this.length,i=0;i(0,r.set)(i,e,t)))},map(e,t){void 0===t&&(t=null) -var r=k() -return this.forEach(((i,n,s)=>r[n]=e.call(t,i,n,s))),r},mapBy:A,filter(e,t){void 0===t&&(t=null) -var r=k() -return this.forEach(((i,n,s)=>{e.call(t,i,n,s)&&r.push(i)})),r},reject(e,t){return void 0===t&&(t=null),this.filter((function(){return!e.apply(t,arguments)}))},filterBy(){return this.filter(m(...arguments))},rejectBy(){return this.reject(m(...arguments))},find(e,t){return void 0===t&&(t=null),v(this,e,t)},findBy(){return v(this,m(...arguments))},every(e,t){return void 0===t&&(t=null),y(this,e,t)},isEvery(){return y(this,m(...arguments))},any(e,t){return void 0===t&&(t=null),b(this,e,t)},isAny(){return b(this,m(...arguments))},reduce(e,t){var r=t -return this.forEach((function(t,i){r=e(r,t,i,this)}),this),r},invoke(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{var i,s -return n.push(null===(s=(i=t)[e])||void 0===s?void 0:s.call(i,...r))})),n},toArray(){return this.map((e=>e))},compact(){return this.filter((e=>null!=e))},includes(e,t){return-1!==_(this,e,t,!0)},sortBy(){var e=arguments +return-1},forEach(e,t=null){for(var r=this.length,i=0;i(0,r.set)(i,e,t)))},map(e,t=null){var r=C() +return this.forEach(((i,n,s)=>r[n]=e.call(t,i,n,s))),r},mapBy:A,filter(e,t=null){var r=C() +return this.forEach(((i,n,s)=>{e.call(t,i,n,s)&&r.push(i)})),r},reject(e,t=null){return this.filter((function(){return!e.apply(t,arguments)}))},filterBy(){return this.filter(m(...arguments))},rejectBy(){return this.reject(m(...arguments))},find(e,t=null){return v(this,e,t)},findBy(){return v(this,m(...arguments))},every(e,t=null){return y(this,e,t)},isEvery(){return y(this,m(...arguments))},any(e,t=null){return b(this,e,t)},isAny(){return b(this,m(...arguments))},reduce(e,t){var r=t +return this.forEach((function(t,i){r=e(r,t,i,this)}),this),r},invoke(e,...t){var r=C() +return this.forEach((i=>{var n,s +return r.push(null===(s=(n=i)[e])||void 0===s?void 0:s.call(n,...t))})),r},toArray(){return this.map((e=>e))},compact(){return this.filter((e=>null!=e))},includes(e,t){return-1!==_(this,e,t,!0)},sortBy(){var e=arguments return this.toArray().sort(((t,i)=>{for(var n=0;nt!==e:e=>e==e -return this.filter(t)}}),C=i.default.create(T,a.default,{clear(){var e=this.length +return this.filter(t)}}),k=e.MutableArray=i.default.create(T,a.default,{clear(){var e=this.length return 0===e||this.replace(0,e,h),this},insertAt(e,t){return R(this,e,t),this},removeAt(e,t){return w(this,e,t)},pushObject(e){return R(this,this.length,e)},pushObjects(e){return this.replace(this.length,0,e),this},popObject(){var e=this.length if(0===e)return null var r=(0,t.objectAt)(this,e-1) @@ -1035,18 +932,12 @@ return this.replace(0,e,t),this},setObjects(e){if(0===e.length)return this.clear var t=this.length return this.replace(0,t,e),this},removeObject(e){for(var r=this.length||0;--r>=0;){(0,t.objectAt)(this,r)===e&&this.removeAt(r)}return this},removeObjects(e){(0,t.beginPropertyChanges)() for(var r=e.length-1;r>=0;r--)this.removeObject(e[r]) -return(0,t.endPropertyChanges)(),this},addObject(e){return this.includes(e)||this.pushObject(e),this},addObjects(e){return(0,t.beginPropertyChanges)(),e.forEach((e=>this.addObject(e))),(0,t.endPropertyChanges)(),this}}) -e.MutableArray=C -var S=i.default.create(C,u.default,{objectAt(e){return this[e]},replace(e,r,i){return void 0===i&&(i=h),(0,t.replaceInNativeArray)(this,e,r,i),this}}) -e.NativeArray=S -var k,P=["length"] -S.keys().forEach((e=>{Array.prototype[e]&&P.push(e)})),e.NativeArray=S=S.without(...P),e.A=k,l.ENV.EXTEND_PROTOTYPES.Array?(S.apply(Array.prototype,!0),e.A=k=function(e){return e||[]}):e.A=k=function(e){return(0,c.isEmberArray)(e)?e:S.apply(null!=e?e:[])} -var j=T -e.default=j})),e("@ember/array/lib/make-array",["exports"],(function(e){"use strict" +return(0,t.endPropertyChanges)(),this},addObject(e){return this.includes(e)||this.pushObject(e),this},addObjects(e){return(0,t.beginPropertyChanges)(),e.forEach((e=>this.addObject(e))),(0,t.endPropertyChanges)(),this}}),P=e.NativeArray=i.default.create(k,u.default,{objectAt(e){return this[e]},replace(e,r,i=h){return(0,t.replaceInNativeArray)(this,e,r,i),this}}),S=["length"] +P.keys().forEach((e=>{Array.prototype[e]&&S.push(e)})),e.NativeArray=P=P.without(...S),l.ENV.EXTEND_PROTOTYPES.Array?(P.apply(Array.prototype,!0),e.A=C=function(e){return e||[]}):e.A=C=function(e){return(0,c.isEmberArray)(e)?e:P.apply(null!=e?e:[])} +e.default=T})),e("@ember/array/lib/make-array",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var{isArray:t}=Array -var r=function(e){return null==e?[]:t(e)?e:[e]} -e.default=r})),e("@ember/array/mutable",["exports","@ember/array"],(function(e,t){"use strict" +e.default=function(e){return null==e?[]:t(e)?e:[e]}})),e("@ember/array/mutable",["exports","@ember/array"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.MutableArray}})})),e("@ember/array/proxy",["exports","@ember/-internals/metal","@ember/object","@ember/-internals/utils","@ember/array","@ember/array/mutable","@ember/debug","@glimmer/manager","@glimmer/validator"],(function(e,t,r,i,n,s,a,o,l){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var u={willChange:"_arrangedContentArrayWillChange",didChange:"_arrangedContentArrayDidChange"} @@ -1065,27 +956,21 @@ a<0&&(a+=(0,r.get)(this._arrangedContent,"length")+n-s);(-1===this._objectsDirty null===this._arrangedContentTag?this._addArrangedContentArrayObserver(e):(this._arrangedContentIsUpdating=!0,this._updateArrangedContentArray(e),this._arrangedContentIsUpdating=!1) var r=this._arrangedContentTag=(0,l.tagFor)(this,"arrangedContent") this._arrangedContentRevision=(0,l.valueForTag)(this._arrangedContentTag),(0,i.isObject)(e)?(this._lengthTag=(0,l.combine)([r,(0,t.tagForProperty)(e,"length")]),this._arrTag=(0,l.combine)([r,(0,t.tagForProperty)(e,"[]")])):this._lengthTag=this._arrTag=r}}}d.reopen(s.default,{arrangedContent:(0,t.alias)("content")}) -var h=d -e.default=h})),e("@ember/canary-features/index",["exports","@ember/-internals/environment"],(function(e,t){"use strict" +e.default=d})),e("@ember/canary-features/index",["exports","@ember/-internals/environment"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.DEFAULT_FEATURES=void 0,e.isEnabled=function(e){var r=i[e] return!0===r||!1===r?r:!!t.ENV.ENABLE_OPTIONAL_FEATURES} -var r={} -e.DEFAULT_FEATURES=r -var i=Object.assign(r,t.ENV.FEATURES) -e.FEATURES=i})),e("@ember/component/helper",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict" +var r=e.DEFAULT_FEATURES={},i=e.FEATURES=Object.assign(r,t.ENV.FEATURES)})),e("@ember/component/helper",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.Helper}}),Object.defineProperty(e,"helper",{enumerable:!0,get:function(){return t.helper}})})),e("@ember/component/index",["exports","@glimmer/manager","@ember/-internals/glimmer"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return r.Input}}),Object.defineProperty(e,"Textarea",{enumerable:!0,get:function(){return r.Textarea}}),Object.defineProperty(e,"capabilities",{enumerable:!0,get:function(){return r.componentCapabilities}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.Component}}),Object.defineProperty(e,"getComponentTemplate",{enumerable:!0,get:function(){return t.getComponentTemplate}}),Object.defineProperty(e,"setComponentManager",{enumerable:!0,get:function(){return r.setComponentManager}}),Object.defineProperty(e,"setComponentTemplate",{enumerable:!0,get:function(){return t.setComponentTemplate}})})),e("@ember/component/template-only",["exports","@glimmer/runtime"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.templateOnlyComponent}})})),e("@ember/controller/index",["exports","@ember/-internals/owner","@ember/object","@ember/object/-internals","@ember/-internals/metal","@ember/object/mixin","@ember/routing/-internals","@ember/-internals/runtime","@ember/-internals/utils"],(function(e,t,r,i,n,s,a,o,l){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ControllerMixin=void 0,e.inject=function(){for(var e=arguments.length,t=new Array(e),r=0;r{for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&this.detect(e[r])){var i=(0,n.dasherize)(r) t.push(i)}})),t}getRecords(e,t){return(0,a.A)()}wrapRecord(e){return{object:e,columnValues:this.getRecordColumnValues(e),searchKeywords:this.getRecordKeywords(e),filterValues:this.getRecordFilterValues(e),color:this.getRecordColor(e)}}getRecordColumnValues(e){return{}}getRecordKeywords(e){return(0,a.A)()}getRecordFilterValues(e){return{}}getRecordColor(e){return null}}e.default=h})),e("@ember/debug/index",["exports","@ember/-internals/browser-environment","@ember/debug/lib/deprecate","@ember/debug/lib/testing","@ember/debug/lib/warn","@ember/debug/lib/inspect","@ember/debug/lib/capture-render-tree"],(function(e,t,r,i,n,s,a){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.assert=e._warnIfUsingStrippedFeatureFlags=void 0,Object.defineProperty(e,"captureRenderTree",{enumerable:!0,get:function(){return a.default}}),e.info=e.getDebugFunction=e.deprecateFunc=e.deprecate=e.debugSeal=e.debugFreeze=e.debug=void 0,Object.defineProperty(e,"inspect",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"isTesting",{enumerable:!0,get:function(){return i.isTesting}}),Object.defineProperty(e,"registerDeprecationHandler",{enumerable:!0,get:function(){return r.registerHandler}}),Object.defineProperty(e,"registerWarnHandler",{enumerable:!0,get:function(){return n.registerHandler}}),e.setDebugFunction=e.runInDebug=void 0,Object.defineProperty(e,"setTesting",{enumerable:!0,get:function(){return i.setTesting}}),e.warn=void 0 -var o=()=>{},l=o -e.assert=l -var u=o -e.info=u -var c=o -e.warn=c -var d=o -e.debug=d -var h=o -e.deprecate=h -var p=o -e.debugSeal=p -var f=o -e.debugFreeze=f -var m=o -e.runInDebug=m -var g=o -e.setDebugFunction=g -var v=o -e.getDebugFunction=v -var b=function(){return arguments[arguments.length-1]} -e.deprecateFunc=b,e._warnIfUsingStrippedFeatureFlags=undefined})),e("@ember/debug/lib/capture-render-tree",["exports","@glimmer/util"],(function(e,t){"use strict" +var o=()=>{},l=(e.assert=o,e.info=o,e.warn=o,e.debug=o,e.deprecate=o,e.debugSeal=o,e.debugFreeze=o,e.runInDebug=o,e.setDebugFunction=o,e.getDebugFunction=o,function(){return arguments[arguments.length-1]}) +e.deprecateFunc=l})),e("@ember/debug/lib/capture-render-tree",["exports","@glimmer/util"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.expect)(e.lookup("renderer:-dom"),"BUG: owner is missing renderer").debugRenderTree.capture()}})),e("@ember/debug/lib/deprecate",["exports","@ember/-internals/environment","@ember/debug/index","@ember/debug/lib/handlers"],(function(e,t,r,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.registerHandler=e.missingOptionsIdDeprecation=e.missingOptionsDeprecation=e.missingOptionDeprecation=e.default=void 0 -var n,s,a=()=>{} -e.registerHandler=a,e.missingOptionsDeprecation=n,e.missingOptionsIdDeprecation=s -var o=()=>"" -e.missingOptionDeprecation=o -var l=()=>{},u=l -e.default=u})),e("@ember/debug/lib/handlers",["exports"],(function(e){"use strict" +var n=()=>{} +e.registerHandler=n +var s=()=>"" +e.missingOptionDeprecation=s +var a=()=>{} +e.default=a})),e("@ember/debug/lib/handlers",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.registerHandler=e.invoke=e.HANDLERS=void 0 -var t={} -e.HANDLERS=t -var r=function(e,t){} -e.registerHandler=r -var i=()=>{} -e.invoke=i})),e("@ember/debug/lib/inspect",["exports","@glimmer/util","@ember/debug"],(function(e,t,r){"use strict" +e.HANDLERS={},e.registerHandler=function(e,t){} +var t=()=>{} +e.invoke=t})),e("@ember/debug/lib/inspect",["exports","@glimmer/util","@ember/debug"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if("number"==typeof e&&2===arguments.length)return this return d(e,0)} var{toString:i}=Object.prototype,{toString:n}=Function.prototype,{isArray:s}=Array,{keys:a}=Object,{stringify:o}=JSON,l=100,u=4,c=/^[\w$]+$/ @@ -1172,16 +1034,14 @@ e("@ember/debug/lib/warn",["exports","@ember/debug/index","@ember/debug/lib/hand Object.defineProperty(e,"__esModule",{value:!0}),e.registerHandler=e.missingOptionsIdDeprecation=e.missingOptionsDeprecation=e.default=void 0 var i=()=>{} e.registerHandler=i -var n,s,a=()=>{} -e.missingOptionsDeprecation=n,e.missingOptionsIdDeprecation=s -var o=a -e.default=o})),e("@ember/deprecated-features/index",["exports"],(function(e){"use strict" +var n=()=>{} +e.default=n})),e("@ember/deprecated-features/index",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.ASSIGN=void 0 e.ASSIGN=!0})),e("@ember/destroyable/index",["exports","@glimmer/destroyable"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertDestroyablesDestroyed",{enumerable:!0,get:function(){return t.assertDestroyablesDestroyed}}),Object.defineProperty(e,"associateDestroyableChild",{enumerable:!0,get:function(){return t.associateDestroyableChild}}),Object.defineProperty(e,"destroy",{enumerable:!0,get:function(){return t.destroy}}),Object.defineProperty(e,"enableDestroyableTracking",{enumerable:!0,get:function(){return t.enableDestroyableTracking}}),Object.defineProperty(e,"isDestroyed",{enumerable:!0,get:function(){return t.isDestroyed}}),Object.defineProperty(e,"isDestroying",{enumerable:!0,get:function(){return t.isDestroying}}),e.registerDestructor=function(e,r){return(0,t.registerDestructor)(e,r)},e.unregisterDestructor=function(e,r){return(0,t.unregisterDestructor)(e,r)}})),e("@ember/engine/index",["exports","@ember/engine/lib/engine-parent","@ember/-internals/utils","@ember/controller","@ember/application/namespace","@ember/-internals/container","dag-map","@ember/debug","@ember/debug/container-debug-adapter","@ember/object","@ember/engine/instance","@ember/routing/-internals","@ember/-internals/views","@ember/-internals/glimmer","@ember/-internals/runtime"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.buildInitializerMethod=v,e.default=void 0,Object.defineProperty(e,"getEngineParent",{enumerable:!0,get:function(){return t.getEngineParent}}),Object.defineProperty(e,"setEngineParent",{enumerable:!0,get:function(){return t.setEngineParent}}) class m extends(n.default.extend(f.RegistryProxyMixin)){constructor(){super(...arguments),this._initializersRan=!1}static buildRegistry(e){var t=new s.Registry({resolver:g(e)}) -return t.set=u.set,t.register("application:main",e,{instantiate:!1}),function(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",i.default,{instantiate:!1}),e.register("service:-routing",d.RoutingService),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.register("container-debug-adapter:main",l.default),e.register("component-lookup:main",h.ComponentLookup)}(t),(0,p.setupEngineRegistry)(t),t}init(e){super.init(e),this.buildRegistry()}ensureInitializers(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)}buildInstance(e){return void 0===e&&(e={}),this.ensureInitializers(),c.default.create(Object.assign(Object.assign({},e),{base:this}))}buildRegistry(){return this.__registry__=this.constructor.buildRegistry(this)}initializer(e){this.constructor.initializer(e)}instanceInitializer(e){this.constructor.instanceInitializer(e)}runInitializers(){this._runInitializer("initializers",((e,t)=>{t.initialize(this)}))}runInstanceInitializers(e){this._runInitializer("instanceInitializers",((t,r)=>{r.initialize(e)}))}_runInitializer(e,t){var r,i=(0,u.get)(this.constructor,e),n=function(e){var t=[] +return t.set=u.set,t.register("application:main",e,{instantiate:!1}),function(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",i.default,{instantiate:!1}),e.register("service:-routing",d.RoutingService),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.register("container-debug-adapter:main",l.default),e.register("component-lookup:main",h.ComponentLookup)}(t),(0,p.setupEngineRegistry)(t),t}init(e){super.init(e),this.buildRegistry()}ensureInitializers(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)}buildInstance(e={}){return this.ensureInitializers(),c.default.create(Object.assign(Object.assign({},e),{base:this}))}buildRegistry(){return this.__registry__=this.constructor.buildRegistry(this)}initializer(e){this.constructor.initializer(e)}instanceInitializer(e){this.constructor.instanceInitializer(e)}runInitializers(){this._runInitializer("initializers",((e,t)=>{t.initialize(this)}))}runInstanceInitializers(e){this._runInitializer("instanceInitializers",((t,r)=>{r.initialize(e)}))}_runInitializer(e,t){var r,i=(0,u.get)(this.constructor,e),n=function(e){var t=[] for(var r in e)t.push(r) return t}(i),s=new a.default for(var o of n)r=i[o],s.add(r.name,r,r.before,r.after) @@ -1189,15 +1049,13 @@ s.topsort(t)}}function g(e){var t={namespace:e} return e.Resolver.create(t)}function v(e,t){return function(t){var r=this.superclass if(void 0!==r[e]&&r[e]===this[e]){var i={[e]:Object.create(this[e])} this.reopenClass(i)}this[e][t.name]=t}}m.initializers=Object.create(null),m.instanceInitializers=Object.create(null),m.initializer=v("initializers","initializer"),m.instanceInitializer=v("instanceInitializers","instance initializer") -var b=m -e.default=b})),e("@ember/engine/instance",["exports","@ember/object","@ember/-internals/runtime","@ember/debug","@ember/-internals/container","@ember/-internals/utils","@ember/engine/lib/engine-parent","@ember/-internals/owner","@ember/engine"],(function(e,t,r,i,n,s,a,o,l){"use strict" +e.default=m})),e("@ember/engine/instance",["exports","@ember/object","@ember/-internals/runtime","@ember/debug","@ember/-internals/container","@ember/-internals/utils","@ember/engine/lib/engine-parent","@ember/-internals/owner","@ember/engine"],(function(e,t,r,i,n,s,a,o,l){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 l.default class u extends(t.default.extend(r.RegistryProxyMixin,r.ContainerProxyMixin)){constructor(){super(...arguments),this._booted=!1,this._bootPromise=null}static setupRegistry(e,t){}init(e){var t super.init(e),(0,s.guidFor)(this),null!==(t=this.base)&&void 0!==t||(this.base=this.application) var r=this.__registry__=new n.Registry({fallback:this.base.__registry__}) -this.__container__=r.container({owner:this}),this._booted=!1}boot(e){return this._bootPromise||(this._bootPromise=new r.RSVP.Promise((t=>{t(this._bootSync(e))}))),this._bootPromise}_bootSync(e){return this._booted||(this.cloneParentDependencies(),this.setupRegistry(e),this.base.runInstanceInitializers(this),this._booted=!0),this}setupRegistry(e){void 0===e&&(e=this.__container__.lookup("-environment:main")),this.constructor.setupRegistry(this.__registry__,e)}unregister(e){this.__container__.reset(e),this.__registry__.unregister(e)}buildChildEngineInstance(e,t){void 0===t&&(t={}) -var r=this.lookup(`engine:${e}`) +this.__container__=r.container({owner:this}),this._booted=!1}boot(e){return this._bootPromise||(this._bootPromise=new r.RSVP.Promise((t=>{t(this._bootSync(e))}))),this._bootPromise}_bootSync(e){return this._booted||(this.cloneParentDependencies(),this.setupRegistry(e),this.base.runInstanceInitializers(this),this._booted=!0),this}setupRegistry(e=this.__container__.lookup("-environment:main")){this.constructor.setupRegistry(this.__registry__,e)}unregister(e){this.__container__.reset(e),this.__registry__.unregister(e)}buildChildEngineInstance(e,t={}){var r=this.lookup(`engine:${e}`) if(!r)throw new Error(`You attempted to mount the engine '${e}', but it is not registered with its parent.`) var i=r.buildInstance(t) return(0,a.setEngineParent)(i,this),i}cloneParentDependencies(){var e=(0,a.getEngineParent)(this);["route:basic","service:-routing"].forEach((t=>{var r=e.resolveRegistration(t) @@ -1206,19 +1064,17 @@ var t=e.lookup("-environment:main") this.register("-environment:main",t,{instantiate:!1}) var r=["router:main",n.privatize`-bucket-cache:main`,"-view-registry:main","renderer:-dom","service:-document"] t.isInteractive&&r.push("event_dispatcher:main"),r.forEach((t=>{var r=e.lookup(t) -this.register(t,r,{instantiate:!1})}))}}var c=u -e.default=c})),e("@ember/engine/lib/engine-parent",["exports"],(function(e){"use strict" +this.register(t,r,{instantiate:!1})}))}}e.default=u})),e("@ember/engine/lib/engine-parent",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.ENGINE_PARENT=void 0,e.getEngineParent=function(e){return e[t]},e.setEngineParent=function(e,r){e[t]=r} -var t=Symbol("ENGINE_PARENT") -e.ENGINE_PARENT=t})),e("@ember/enumerable/index",["exports","@ember/object/mixin"],(function(e,t){"use strict" +var t=e.ENGINE_PARENT=Symbol("ENGINE_PARENT")})),e("@ember/enumerable/index",["exports","@ember/object/mixin"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var r=t.default.create() e.default=r})),e("@ember/enumerable/mutable",["exports","@ember/enumerable","@ember/object/mixin"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var i=r.default.create(t.default) e.default=i})),e("@ember/error/index",["exports","@ember/debug"],(function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=Error +var r +Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r=Error e.default=r})),e("@ember/helper/index",["exports","@glimmer/manager","@glimmer/runtime"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return r.array}}),Object.defineProperty(e,"capabilities",{enumerable:!0,get:function(){return t.helperCapabilities}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r.concat}}),Object.defineProperty(e,"fn",{enumerable:!0,get:function(){return r.fn}}),Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r.get}}),Object.defineProperty(e,"hash",{enumerable:!0,get:function(){return r.hash}}),Object.defineProperty(e,"invokeHelper",{enumerable:!0,get:function(){return r.invokeHelper}}),Object.defineProperty(e,"setHelperManager",{enumerable:!0,get:function(){return t.setHelperManager}})})),e("@ember/instrumentation/index",["exports","@ember/-internals/environment","@ember/debug"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e._instrumentStart=u,e.flaggedInstrument=function(e,t,r){return r()},e.instrument=function(e,t,r,n){var s,a,o @@ -1233,9 +1089,7 @@ o=`${o}(\\..*)?` var l={pattern:e,regex:new RegExp(`^${o}$`),object:t} return i.push(l),n={},l},e.subscribers=void 0,e.unsubscribe=function(e){for(var t=0,r=0;r{e=n.call(this)})) return(0,i.updateTag)(r,s),(0,i.consumeTag)(s),e}),r} -function s(){for(var e=arguments.length,r=new Array(e),i=0;ir.willDestroy())),(0,n.meta)(t).setInitializing()}reopen(){for(var e=arguments.length,t=new Array(e),r=0;rr.willDestroy())),(0,n.meta)(t).setInitializing()}reopen(...e){return(0,a.applyMixin)(this,e),this}init(e){}get isDestroyed(){return(0,d.isDestroyed)(this)}set isDestroyed(e){}get isDestroying(){return(0,d.isDestroying)(this)}set isDestroying(e){}destroy(){g.add(this) try{(0,d.destroy)(this)}finally{g.delete(this)}return this}willDestroy(){}toString(){var e,r="object"==typeof(e=this)&&null!==e&&"function"==typeof e.toStringExtension?`:${this.toStringExtension()}`:"" -return`<${(0,t.getFactoryFor)(this)||"(unknown)"}:${(0,i.guidFor)(this)}${r}>`}static extend(){for(var e=class extends(this){},t=arguments.length,r=new Array(t),i=0;i`}static extend(...e){var t=class extends(this){} +return p.apply(t.PrototypeMixin,e),t}static create(...e){var i,n=e[0] +if(void 0!==n){i=new this((0,r.getOwner)(n)) +var s=(0,t.getFactoryFor)(n);(0,t.setFactoryFor)(i,s)}else i=new this +return e.length<=1?b(i,n):b(i,_.apply(this,e)),i}static reopen(...e){return this.willReopen(),p.apply(this.PrototypeMixin,e),this}static willReopen(){var e=this.prototype +f.has(e)&&(f.delete(e),m.has(this)&&m.set(this,a.default.create(this.PrototypeMixin)))}static reopenClass(...e){return(0,a.applyMixin)(this,e),this}static detect(e){if("function"!=typeof e)return!1 for(;e;){if(e===this)return!0 e=e.superclass}return!1}static detectInstance(e){return e instanceof this}static metaForProperty(e){var t=this.proto(),r=(0,s.descriptorForProperty)(t,e) -return r._meta||{}}static eachComputedProperty(e,t){void 0===t&&(t=this),this.proto() +return r._meta||{}}static eachComputedProperty(e,t=this){this.proto() var r={};(0,n.meta)(this.prototype).forEachDescriptors(((i,n)=>{if(n.enumerable){var s=n._meta||r e.call(t,i,s)}}))}static get PrototypeMixin(){var e=m.get(this) return void 0===e&&((e=a.default.create()).ownerConstructor=this,m.set(this,e)),e}static get superclass(){var e=Object.getPrototypeOf(this) return e!==Function.prototype?e:void 0}static proto(){var e=this.prototype if(!f.has(e)){f.add(e) var t=this.superclass -t&&t.proto(),m.has(this)&&this.PrototypeMixin.apply(e)}return e}static toString(){return`<${(0,t.getFactoryFor)(this)||"(unknown)"}:constructor>`}}function _(){for(var e={},t=arguments.length,r=new Array(t),i=0;i`}}function _(...e){var t={} +for(var r of e)for(var i=Object.keys(r),n=0,s=i.length;n1?r-1:0),n=1;nc.push(e))) -return(0,s.setObservers)(a,{paths:c,sync:l}),a},Object.defineProperty(e,"set",{enumerable:!0,get:function(){return i.set}}),Object.defineProperty(e,"setProperties",{enumerable:!0,get:function(){return i.setProperties}}),Object.defineProperty(e,"trySet",{enumerable:!0,get:function(){return i.trySet}}) +Object.defineProperty(e,"__esModule",{value:!0}),e.action=d,Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return i.computed}}),e.default=void 0,Object.defineProperty(e,"defineProperty",{enumerable:!0,get:function(){return i.defineProperty}}),Object.defineProperty(e,"get",{enumerable:!0,get:function(){return i.get}}),Object.defineProperty(e,"getProperties",{enumerable:!0,get:function(){return i.getProperties}}),Object.defineProperty(e,"notifyPropertyChange",{enumerable:!0,get:function(){return i.notifyPropertyChange}}),e.observer=function(...e){var t,n,a,o=e.pop() +"function"==typeof o?(t=o,n=e,a=!r.ENV._DEFAULT_ASYNC_OBSERVERS):(t=o.fn,n=o.dependentKeys,a=o.sync) +var l=[] +for(var u of n)(0,i.expandProperties)(u,(e=>l.push(e))) +return(0,s.setObservers)(t,{paths:l,sync:a}),t},Object.defineProperty(e,"set",{enumerable:!0,get:function(){return i.set}}),Object.defineProperty(e,"setProperties",{enumerable:!0,get:function(){return i.setProperties}}),Object.defineProperty(e,"trySet",{enumerable:!0,get:function(){return i.trySet}}) class l extends(a.default.extend(o.default)){get _debugContainerKey(){var e=(0,n.getFactoryFor)(this) -return void 0!==e&&e.fullName}}var u=l -e.default=u -var c=new WeakMap -function d(e,t,r){var i +return void 0!==e&&e.fullName}}e.default=l +var u=new WeakMap +function c(e,t,r){var i if(null!=(i=e)&&void 0!==i.constructor&&"function"==typeof i.constructor.proto&&e.constructor.proto(),!Object.prototype.hasOwnProperty.call(e,"actions")){var n=e.actions -e.actions=n?Object.assign({},n):{}}return e.actions[t]=r,{get(){var e=c.get(this) -void 0===e&&(e=new Map,c.set(this,e)) +e.actions=n?Object.assign({},n):{}}return e.actions[t]=r,{get(){var e=u.get(this) +void 0===e&&(e=new Map,u.set(this,e)) var t=e.get(r) -return void 0===t&&(t=r.bind(this),e.set(r,t)),t}}}function h(){for(var e,t=arguments.length,r=new Array(t),n=0;n1?n-1:0),a=1;a{var s=[e,...n],a=function(e,r){var i=[] function n(e){i.push(e)}for(var s of r)(0,t.expandProperties)(s,n) -return i}(0,o) -return(0,t.computed)(...l,(function(){for(var e=l.length-1,t=0;ti}))},e.gte=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)>=i}))},e.lt=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)i}))},e.gte=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)>=i}))},e.lt=function(e,i){return(0,t.computed)(e,(function(){return(0,r.get)(this,e)e)) -e.and=a -var o=s(0,(e=>!e)) -e.or=o})),e("@ember/object/lib/computed/reduce_computed_macros",["exports","@ember/debug","@ember/-internals/metal","@ember/object","@ember/utils","@ember/array"],(function(e,t,r,i,n,s){"use strict" +e.and=s(0,(e=>e)),e.or=s(0,(e=>!e))})),e("@ember/object/lib/computed/reduce_computed_macros",["exports","@ember/debug","@ember/-internals/metal","@ember/object","@ember/utils","@ember/array"],(function(e,t,r,i,n,s){"use strict" function a(e){return Array.isArray(e)||s.default.detect(e)}function o(e,t,r,n){return(0,i.computed)(`${e}.[]`,(function(){var n=(0,i.get)(this,e) return null===n||"object"!=typeof n?r:n.reduce(t,r,this)})).readOnly()}function l(e,t,r){var n return/@each/.test(e)?n=e.replace(/\.@each.*$/,""):(n=e,e+=".[]"),(0,i.computed)(e,...t,(function(){var e=(0,i.get)(this,n) @@ -1347,17 +1187,14 @@ var n=r return l(e,i,(function(e){return Array.isArray(e),e.map(n,this)}))}function d(e,t,r){var i "function"==typeof t?(r=t,i=[]):i=t var n=r -return l(e,i,(function(e){return Array.isArray(e),e.filter(n,this)}))}function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var n=(0,i.get)(this,e) -a(n)&&n.forEach((e=>{r.has(e)||(r.add(e),t.push(e))}))})),t}))}Object.defineProperty(e,"__esModule",{value:!0}),e.collect=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var t=(0,i.get)(this,e) +a(n)&&n.forEach((e=>{r.has(e)||(r.add(e),t.push(e))}))})),t}))}Object.defineProperty(e,"__esModule",{value:!0}),e.collect=function(e,...t){var r=[e,...t] +return u(r,(function(){var e=r.map((e=>{var t=(0,i.get)(this,e) return void 0===t?null:t})) return(0,s.A)(e)}),"collect")},e.filter=d,e.filterBy=function(e,t,r){var n n=2===arguments.length?e=>(0,i.get)(e,t):e=>(0,i.get)(e,t)===r -return d(`${e}.@each.${t}`,n)},e.intersect=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var t=(0,i.get)(this,e) +return d(`${e}.@each.${t}`,n)},e.intersect=function(e,...t){return u([e,...t],(function(e){var t=e.map((e=>{var t=(0,i.get)(this,e) return Array.isArray(t)?t:[]})),r=t.pop(),n=r.filter((e=>{for(var r of t){var i=!1 for(var n of r)if(n===e){i=!0 break}if(!1===i)return!1}return!0})) @@ -1371,10 +1208,8 @@ return a(c)?0===u.length?(0,s.A)(c.slice()):function(e,t){return(0,s.A)(e.slice( if(0!==o)return"desc"===a?-1*o:o}return 0})))}(c,u):(0,s.A)()})).readOnly() return o}(e,c)},e.sum=function(e){return o(e,((e,t)=>e+t),0,"sum")},e.union=void 0,e.uniq=h,e.uniqBy=function(e,t){return(0,i.computed)(`${e}.[]`,(function(){var r=(0,i.get)(this,e) return a(r)?(0,s.uniqBy)(r,t):(0,s.A)()})).readOnly()} -var p=h -e.union=p})),e("@ember/object/mixin",["exports","@ember/-internals/container","@ember/-internals/meta","@ember/-internals/utils","@ember/debug","@glimmer/util","@ember/-internals/metal","@ember/object/events"],(function(e,t,r,i,n,s,a,o){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixin=y,e.default=void 0,e.mixin=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i=0||"concatenatedProperties"===g||"mergedProperties"== if(void 0!==s){var{observers:l,listeners:u}=s if(void 0!==l){var c=n?a.addObserver:a.removeObserver for(var d of l.paths)c(e,d,null,t,l.sync)}if(void 0!==u){var h=n?o.addListener:o.removeListener -for(var p of u)h(e,p,null,t)}}}function y(e,t,n){void 0===n&&(n=!1) -var s=Object.create(null),o=Object.create(null),l=(0,r.meta)(e),u=[],c=[] +for(var p of u)h(e,p,null,t)}}}function y(e,t,n=!1){var s=Object.create(null),o=Object.create(null),l=(0,r.meta)(e),u=[],c=[] for(var d of(e._super=i.ROOT,g(t,l,s,o,e,u,c),u)){var h=o[d],p=s[d] void 0!==h?("function"==typeof h&&b(e,d,h,!0),(0,a.defineValue)(e,d,h,-1!==c.indexOf(d),!n)):void 0!==p&&(0,a.defineDecorator)(e,d,p,l)}return l.isPrototypeMeta(e)||(0,a.revalidateObservers)(e),e}var _=new s._WeakSet class w{constructor(e,t){_.add(this),this.properties=function(e){if(void 0!==e)for(var t of Object.keys(e)){var r=Object.getOwnPropertyDescriptor(e,t) -void 0===r.get&&void 0===r.set||Object.defineProperty(e,t,{value:(0,a.nativeDescDecorator)(r)})}return e}(t),this.mixins=R(e),this.ownerConstructor=void 0,this._without=void 0}static create(){(0,a.setUnprocessedMixins)() -for(var e=arguments.length,t=new Array(e),r=0;r{e.properties||i.push(e)})),i}reopen(){for(var e=arguments.length,t=new Array(e),r=0;r{e.properties||i.push(e)})),i}reopen(...e){if(0!==e.length){if(this.properties){var t=new w(void 0,this.properties) +this.properties=void 0,this.mixins=[t]}else this.mixins||(this.mixins=[]) +return this.mixins=this.mixins.concat(R(e)),this}}apply(e,t=!1){return y(e,[this],t)}applyPartial(e){return y(e,[this])}detect(e){if("object"!=typeof e||null===e)return!1 if(_.has(e))return O(e,this) var t=(0,r.peekMeta)(e) -return null!==t&&t.hasMixin(this)}without(){for(var e=new w([this]),t=arguments.length,r=new Array(t),i=0;i0){r=new Array(t) for(var i=0;iO(e,t,r)))}function E(e,t,r){if(void 0===t&&(t=new Set),void 0===r&&(r=new Set),!r.has(e)){if(r.add(e),e.properties){var i=Object.keys(e.properties) +return!!i&&i.some((e=>O(e,t,r)))}function E(e,t=new Set,r=new Set){if(!r.has(e)){if(r.add(e),e.properties){var i=Object.keys(e.properties) for(var n of i)t.add(n)}else e.mixins&&e.mixins.forEach((e=>E(e,t,r))) return t}}e.default=w})),e("@ember/object/observable",["exports","@ember/-internals/meta","@ember/-internals/metal","@ember/object","@ember/object/mixin","@ember/debug"],(function(e,t,r,i,n,s){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var a=n.default.create({get(e){return(0,i.get)(this,e)},getProperties(){for(var e=arguments.length,t=new Array(e),r=0;r(e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{content:r,isFulfilled:!0}),r)),(r=>{throw e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{reason:r,isRejected:!0}),r}),"Ember: PromiseProxy")}(this,r)}}),then:i("then"),catch:i("catch"),finally:i("finally")}) -e.default=n})),e("@ember/object/proxy",["exports","@ember/object/-internals","@ember/-internals/runtime"],(function(e,t,r){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +var i=r.default.create({reason:null,isPending:(0,t.computed)("isSettled",(function(){return!(0,t.get)(this,"isSettled")})).readOnly(),isSettled:(0,t.computed)("isRejected","isFulfilled",(function(){return(0,t.get)(this,"isRejected")||(0,t.get)(this,"isFulfilled")})).readOnly(),isRejected:!1,isFulfilled:!1,promise:(0,t.computed)({get(){throw new Error("PromiseProxy's promise must be set")},set(e,r){return function(e,r){return(0,t.setProperties)(e,{isFulfilled:!1,isRejected:!1}),r.then((r=>(e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{content:r,isFulfilled:!0}),r)),(r=>{throw e.isDestroyed||e.isDestroying||(0,t.setProperties)(e,{reason:r,isRejected:!0}),r}),"Ember: PromiseProxy")}(this,r)}}),then:n("then"),catch:n("catch"),finally:n("finally")}) +function n(e){return function(...r){return(0,t.get)(this,"promise")[e](...r)}}e.default=i})),e("@ember/object/proxy",["exports","@ember/object/-internals","@ember/-internals/runtime"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 class i extends t.FrameworkObject{}i.PrototypeMixin.reopen(r._ProxyMixin) -var n=i -e.default=n})),e("@ember/owner/index",["exports","@ember/-internals/owner"],(function(e,t){"use strict" +e.default=i})),e("@ember/owner/index",["exports","@ember/-internals/owner"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.getOwner=void 0,Object.defineProperty(e,"setOwner",{enumerable:!0,get:function(){return t.setOwner}}) -var r=t.getOwner -e.getOwner=r})),e("@ember/polyfills/index",["exports","@ember/polyfills/lib/assign"],(function(e,t){"use strict" +e.getOwner=t.getOwner})),e("@ember/polyfills/index",["exports","@ember/polyfills/lib/assign"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return t.assign}}),e.hasPropertyAccessors=void 0 e.hasPropertyAccessors=!0})),e("@ember/polyfills/lib/assign",["exports","@ember/debug"],(function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{for(var r=0;r{for(var r=0;r7))},e.supportsHistory=function(e,t){if((-1!==e.indexOf("Android 2.")||-1!==e.indexOf("Android 4.0"))&&-1!==e.indexOf("Mobile Safari")&&-1===e.indexOf("Chrome")&&-1===e.indexOf("Windows Phone"))return!1 return Boolean(t&&"pushState"in t)}})),e("@ember/routing/lib/query_params",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -e.default=class{constructor(e){void 0===e&&(e=null),this.isQueryParams=!0,this.values=e}}})),e("@ember/routing/lib/route-info",["exports"],(function(e){"use strict" +e.default=class{constructor(e=null){this.isQueryParams=!0,this.values=e}}})),e("@ember/routing/lib/route-info",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/routing/lib/router_state",["exports","@ember/routing/lib/utils"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 e.default=class{constructor(e,t,r){this.emberRouter=e,this.router=t,this.routerJsState=r}isActiveIntent(e,r,i){var n=this.routerJsState @@ -1548,8 +1374,7 @@ return i&&n.method("replace"),n}normalizeQueryParams(e,t,r){this.router._prepare return r&&(Object.assign(i,r),this.normalizeQueryParams(e,t,i)),this.router.generate(e,...t,{queryParams:i})}generateURL(e,t,r){if(this.router._initialTransitionStarted)return this._generateURL(e,t,r) try{return this._generateURL(e,t,r)}catch(i){return}}isActiveForRoute(e,t,r,i){var n=this.router._routerMicrolib.recognizer.handlersFor(r),s=n[n.length-1].handler,a=function(e,t){for(var r=0,i=0;ia&&(r=s),i.isActiveIntent(r,e,t)}}e.default=o,o.reopen({targetState:(0,i.readOnly)("router.targetState"),currentState:(0,i.readOnly)("router.currentState"),currentRouteName:(0,i.readOnly)("router.currentRouteName"),currentPath:(0,i.readOnly)("router.currentPath")})})),e("@ember/routing/lib/utils",["exports","@ember/-internals/metal","@ember/-internals/owner","@ember/debug","@ember/engine/instance","router_js"],(function(e,t,r,i,n,s){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.calculateCacheKey=function(e,r,i){void 0===r&&(r=[]) -var n="" +Object.defineProperty(e,"__esModule",{value:!0}),e.calculateCacheKey=function(e,r=[],i){var n="" for(var s of r){var l=o(e,s),u=void 0 if(i)if(l&&l in i){var c=0===s.indexOf(l)?s.substring(l.length+1):s u=(0,t.get)(i[l],c)}else u=(0,t.get)(i,s) @@ -1578,44 +1403,35 @@ for(var i in r){if(!Object.prototype.hasOwnProperty.call(r,i))return var n=r[i],s="string"==typeof n?{as:n}:n,a=t[i]||{as:null,scope:"model"},o=Object.assign(Object.assign({},a),s) t[i]=o}}function u(e){return"string"==typeof e&&(""===e||"/"===e[0])}})),e("@ember/routing/location",["exports","@ember/debug"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r={create(e){var t=null==e?void 0:e.implementation,r=this.implementations[t] -return r.create(...arguments)},implementations:{}} -e.default=r})),e("@ember/routing/none-location",["exports","@ember/object","@ember/debug"],(function(e,t,r){"use strict" +e.default={create(e){var t=null==e?void 0:e.implementation,r=this.implementations[t] +return r.create(...arguments)},implementations:{}}})),e("@ember/routing/none-location",["exports","@ember/object","@ember/debug"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 class i extends t.default{constructor(){super(...arguments),this.implementation="none"}initState(){this._super(...arguments) var{rootURL:e}=this}getURL(){var{path:e,rootURL:t}=this return t=t.replace(/\/$/,""),e.replace(new RegExp(`^${t}(?=/|$)`),"")}setURL(e){(0,t.set)(this,"path",e)}onUpdateURL(e){this.updateCallback=e}handleURL(e){(0,t.set)(this,"path",e),this.updateCallback(e)}formatURL(e){var{rootURL:t}=this return""!==e&&(t=t.replace(/\/$/,"")),t+e}}e.default=i,i.reopen({path:"",rootURL:"/"})})),e("@ember/routing/route-info",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/routing/route",["exports","@ember/-internals/container","@ember/-internals/metal","@ember/-internals/owner","@ember/routing/-internals","@ember/object","@ember/object/evented","@ember/array","@ember/-internals/runtime","@ember/utils","@ember/-internals/utils","@ember/controller","@ember/debug","@ember/engine/instance","@ember/object/compat","@ember/runloop","router_js","@ember/routing/router","@ember/routing/lib/utils"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSerialize=e.default=e.ROUTE_CONNECTIONS=void 0,e.getFullQueryParams=O,e.hasDefaultSerialize=function(e){return e.serialize===C} +Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSerialize=e.default=e.ROUTE_CONNECTIONS=void 0,e.getFullQueryParams=O,e.hasDefaultSerialize=function(e){return e.serialize===T} var y=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i) else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a) -return s>3&&a&&Object.defineProperty(t,r,a),a},_=new WeakMap -e.ROUTE_CONNECTIONS=_ -var w=Symbol("render") +return s>3&&a&&Object.defineProperty(t,r,a),a},_=e.ROUTE_CONNECTIONS=new WeakMap,w=Symbol("render") class R extends(s.default.extend(l.ActionHandler,a.default)){constructor(e){if(super(e),this.context={},e){var r=e.lookup("router:main"),i=e.lookup(t.privatize`-bucket-cache:main`) this._router=r,this._bucketCache=i,this._topLevelViewTemplate=e.lookup("template:-outlet"),this._environment=e.lookup("-environment:main")}}serialize(e,t){if(!(t.length<1)&&e){var r={} if(1===t.length){var[i]=t "object"==typeof e&&i in e?r[i]=(0,s.get)(e,i):/_id$/.test(i)?r[i]=(0,s.get)(e,"id"):(0,c.isProxy)(e)&&(r[i]=(0,s.get)(e,i))}else r=(0,s.getProperties)(e,t) return r}}_setRouteName(e){this.routeName=e var t=(0,i.getOwner)(this) -this.fullRouteName=T(t,e)}_stashNames(e,t){if(!this._names){var r=this._names=e._names +this.fullRouteName=C(t,e)}_stashNames(e,t){if(!this._names){var r=this._names=e._names r.length||(r=(e=t)&&e._names||[]) for(var i=(0,s.get)(this,"_qp").qps,n=new Array(r.length),a=0;a{var[r,i]=t -return e[r]=i,e}),o)}serializeQueryParamKey(e){return e}serializeQueryParam(e,t,r){return this._router._serializeQueryParam(e,r)}deserializeQueryParam(e,t,r){return this._router._deserializeQueryParam(e,r)}_optionsForQueryParam(e){var t=(0,s.get)(this,"queryParams") +return Object.entries(l).reduce(((e,[t,r])=>(e[t]=r,e)),o)}serializeQueryParamKey(e){return e}serializeQueryParam(e,t,r){return this._router._serializeQueryParam(e,r)}deserializeQueryParam(e,t,r){return this._router._deserializeQueryParam(e,r)}_optionsForQueryParam(e){var t=(0,s.get)(this,"queryParams") return(0,s.get)(t,e.urlKey)||(0,s.get)(t,e.prop)||t[e.urlKey]||t[e.prop]||{}}resetController(e,t,r){return this}exit(e){this.deactivate(e),this.trigger("deactivate",e),this.teardownViews()}_internalReset(e,t){var r=this.controller -r._qpDelegate=(0,s.get)(this,"_qp").states.inactive,this.resetController(r,e,t)}enter(e){_.set(this,[]),this.activate(e),this.trigger("activate",e)}deactivate(e){}activate(e){}transitionTo(){(0,b.deprecateTransitionMethods)("route","transitionTo") -for(var e=arguments.length,t=new Array(e),r=0;r{if(void 0===(0,r.descriptorForProperty)(e,t)){var i=(0,c.lookupDescriptor)(e,t) null===i||"function"!=typeof i.get&&"function"!=typeof i.set||(0,r.defineProperty)(e,t,(0,f.dependentKeyCompat)({get:i.get,set:i.set}))}(0,r.addObserver)(e,`${t}.[]`,e,e._qpChanged,!1)}))})(a,l),this.controller=a}var u=o.states if(a._qpDelegate=u.allowOverrides,t){(0,b.stashParamNames)(this._router,t[g.STATE_SYMBOL].routeInfos) @@ -1628,13 +1444,12 @@ i.stash(n,e,t)}}beforeModel(e){}afterModel(e,t){}redirect(e,t){}contextDidChange for(var o in e)if(!("queryParams"===o||a&&o in a)){var l=o.match(/^(.*)_id$/) null!==l&&(r=l[1],n=e[o]),i=!0}if(!r){if(i)return Object.assign({},e) if(t.resolveIndex<1)return -return t[g.STATE_SYMBOL].routeInfos[t.resolveIndex-1].context}return this.findModel(r,n)}deserialize(e,t){return this.model(this._paramsFor(this.routeName,e),t)}findModel(){return(0,s.get)(this,"store").find(...arguments)}setupController(e,t,r){e&&void 0!==t&&(0,s.set)(e,"model",t)}controllerFor(e,t){void 0===t&&(t=!1) -var r=(0,i.getOwner)(this),n=r.lookup(`route:${e}`) +return t[g.STATE_SYMBOL].routeInfos[t.resolveIndex-1].context}return this.findModel(r,n)}deserialize(e,t){return this.model(this._paramsFor(this.routeName,e),t)}findModel(...e){return(0,s.get)(this,"store").find(...e)}setupController(e,t,r){e&&void 0!==t&&(0,s.set)(e,"model",t)}controllerFor(e,t=!1){var r=(0,i.getOwner)(this),n=r.lookup(`route:${e}`) n&&n.controllerName&&(e=n.controllerName) var s=r.lookup(`controller:${e}`) return s}generateController(e){var t=(0,i.getOwner)(this) return(0,n.generateController)(t,e)}modelFor(e){var t,r=(0,i.getOwner)(this),n=this._router&&this._router._routerMicrolib?this._router._routerMicrolib.activeTransition:void 0 -t=r.routable&&void 0!==n?T(r,e):e +t=r.routable&&void 0!==n?C(r,e):e var s=r.lookup(`route:${t}`) if(null!=n){var a=s&&s.routeName||t if(Object.prototype.hasOwnProperty.call(n.resolvedModels,a))return n.resolvedModels[a]}return null==s?void 0:s.currentModel}[w](e,t){var r=function(e,t,r){var n,s=!t&&!r @@ -1646,8 +1461,7 @@ void 0===d&&(d=s?e.controllerName||h.lookup(`controller:${a}`):h.lookup(`control if("string"==typeof d){var p=d d=h.lookup(`controller:${p}`)}void 0===c?c=e.currentModel:d.set("model",c) var f,m=h.lookup(`template:${o}`) -l&&(f=function(e){var t=function(e,t,r){void 0===r&&(r=0) -if(!t)return +l&&(f=function(e){var t=function(e,t,r=0){if(!t)return for(var i=0;i{var t=(0,s.get)(e.route,"_qp") e.route.controller._qpDelegate=(0,s.get)(t,"states.active")})),o._qpUpdates.clear()}}}}) -var S=R -e.default=S})),e("@ember/routing/router-service",["exports","@ember/-internals/owner","@ember/object/evented","@ember/debug","@ember/object/computed","@ember/service","@glimmer/validator","@ember/routing/router","@ember/routing/lib/utils"],(function(e,t,r,i,n,s,a,o,l){"use strict" +e.default=R})),e("@ember/routing/router-service",["exports","@ember/-internals/owner","@ember/object/evented","@ember/debug","@ember/object/computed","@ember/service","@glimmer/validator","@ember/routing/router","@ember/routing/lib/utils"],(function(e,t,r,i,n,s,a,o,l){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ROUTER=void 0 var u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i) else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a) -return s>3&&a&&Object.defineProperty(t,r,a),a},c=Symbol("ROUTER") -function d(e,t){return"/"===t?e:e.substring(t.length)}e.ROUTER=c -class h extends(s.default.extend(r.default)){get _router(){var e=this[c] +return s>3&&a&&Object.defineProperty(t,r,a),a},c=e.ROUTER=Symbol("ROUTER") +function d(e,t){return"/"===t?e:e.substring(t.length)}class h extends(s.default.extend(r.default)){get _router(){var e=this[c] if(void 0!==e)return e var r=(0,t.getOwner)(this),i=r.lookup("router:main") -return this[c]=i}willDestroy(){super.willDestroy(),this[c]=void 0}transitionTo(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i0){var u=i -s=Object.assign({},s),this._router._prepareQueryParams(u,n,s,!0) -var c=Object.assign({},o.state.queryParams) -return this._router._prepareQueryParams(u,n,c,!0),(0,l.shallowEqual)(s,c)}return!0}recognize(e){this._router.setupRouter() +return this[c]=i}willDestroy(){super.willDestroy(),this[c]=void 0}transitionTo(...e){if((0,l.resemblesURL)(e[0]))return this._router._doURLTransition("transitionTo",e[0]) +var{routeName:t,models:r,queryParams:i}=(0,l.extractRouteArgs)(e) +return this._router._doTransition(t,r,i,!0)}replaceWith(...e){return this.transitionTo(...e).method("replace")}urlFor(e,...t){return this._router.setupRouter(),this._router.generate(e,...t)}isActive(...e){var{routeName:t,models:r,queryParams:i}=(0,l.extractRouteArgs)(e),n=this._router._routerMicrolib +if((0,a.consumeTag)((0,a.tagFor)(this._router,"currentURL")),!n.isActiveIntent(t,r))return!1 +if(Object.keys(i).length>0){var s=t +i=Object.assign({},i),this._router._prepareQueryParams(s,r,i,!0) +var o=Object.assign({},n.state.queryParams) +return this._router._prepareQueryParams(s,r,o,!0),(0,l.shallowEqual)(i,o)}return!0}recognize(e){this._router.setupRouter() var t=d(e,this.rootURL) return this._router._routerMicrolib.recognize(t)}recognizeAndLoad(e){this._router.setupRouter() var t=d(e,this.rootURL) return this._router._routerMicrolib.recognizeAndLoad(t)}refresh(e){if(!e)return this._router._routerMicrolib.refresh() var r=(0,t.getOwner)(this),i=r.lookup(`route:${e}`) return this._router._routerMicrolib.refresh(i)}}e.default=h,u([(0,n.readOnly)("_router.currentRouteName")],h.prototype,"currentRouteName",void 0),u([(0,n.readOnly)("_router.currentURL")],h.prototype,"currentURL",void 0),u([(0,n.readOnly)("_router.location")],h.prototype,"location",void 0),u([(0,n.readOnly)("_router.rootURL")],h.prototype,"rootURL",void 0),u([(0,n.readOnly)("_router.currentRoute")],h.prototype,"currentRoute",void 0)})),e("@ember/routing/router",["exports","@ember/-internals/container","@ember/object","@ember/owner","@ember/routing/-internals","@ember/routing/lib/utils","@ember/routing/location","@ember/array","@ember/utils","@ember/object/evented","@ember/debug","@ember/runloop","@ember/routing/route","router_js","@ember/engine/instance"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f){"use strict" -function m(e){C(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState)}function g(e,t){0}function v(){return this}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.triggerEvent=A +function m(e){T(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState)}function g(e,t){0}function v(){return this}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.triggerEvent=A var{slice:b}=Array.prototype class y extends(r.default.extend(u.default)){static map(e){return this.dslCallbacks||(this.dslCallbacks=[],this.reopenClass({dslCallbacks:this.dslCallbacks})),this.dslCallbacks.push(e),this}static _routePath(e){var t,r,i=[] function n(e,t){for(var r=0;r1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i{if(i)delete t[e],t[i.urlKey]=i.route.serializeQueryParam(r,i.urlKey,i.type) +e=(0,r.set)(this,"location",a.default.create(o))}}null!==e&&"object"==typeof e&&(t&&(0,r.set)(e,"rootURL",t),"function"==typeof e.detect&&(this.location,e.detect()),"function"==typeof e.initState&&e.initState())}_serializeQueryParams(e,t){P(this,e,t,((e,r,i)=>{if(i)delete t[e],t[i.urlKey]=i.route.serializeQueryParam(r,i.urlKey,i.type) else{if(void 0===r)return -t[e]=this._serializeQueryParam(r,(0,l.typeOf)(r))}}))}_serializeQueryParam(e,t){return null==e?e:"array"===t?JSON.stringify(e):`${e}`}_deserializeQueryParams(e,t){k(this,e,t,((e,r,i)=>{i&&(delete t[e],t[i.prop]=i.route.deserializeQueryParam(r,i.urlKey,i.type))}))}_deserializeQueryParam(e,t){return null==e?e:"boolean"===t?"true"===e:"number"===t?Number(e).valueOf():"array"===t?(0,o.A)(JSON.parse(e)):e}_pruneDefaultQueryParamValues(e,t){var r=this._queryParamsFor(e) +t[e]=this._serializeQueryParam(r,(0,l.typeOf)(r))}}))}_serializeQueryParam(e,t){return null==e?e:"array"===t?JSON.stringify(e):`${e}`}_deserializeQueryParams(e,t){P(this,e,t,((e,r,i)=>{i&&(delete t[e],t[i.prop]=i.route.deserializeQueryParam(r,i.urlKey,i.type))}))}_deserializeQueryParam(e,t){return null==e?e:"boolean"===t?"true"===e:"number"===t?Number(e).valueOf():"array"===t?(0,o.A)(JSON.parse(e)):e}_pruneDefaultQueryParamValues(e,t){var r=this._queryParamsFor(e) for(var i in t){var n=r.map[i] n&&n.serializedDefaultValue===t[i]&&delete t[i]}}_doTransition(e,t,r,i){var n=e||(0,s.getActiveTargetName)(this._routerMicrolib) this._initialTransitionStarted=!0 var a={} this._processActiveTransitionQueryParams(n,t,a,r),Object.assign(a,r),this._prepareQueryParams(n,t,a,Boolean(i)) var o=this._routerMicrolib.transitionTo(n,...t,{queryParams:a}) -return S(o,this),o}_processActiveTransitionQueryParams(e,t,r,i){if(this._routerMicrolib.activeTransition){var n={},s=this._qpUpdates,a=(0,h.getFullQueryParams)(this,this._routerMicrolib.activeTransition[p.STATE_SYMBOL]) +return k(o,this),o}_processActiveTransitionQueryParams(e,t,r,i){if(this._routerMicrolib.activeTransition){var n={},s=this._qpUpdates,a=(0,h.getFullQueryParams)(this,this._routerMicrolib.activeTransition[p.STATE_SYMBOL]) for(var o in a)s.has(o)||(n[o]=a[o]) -this._fullyScopeQueryParams(e,t,i),this._fullyScopeQueryParams(e,t,n),Object.assign(r,n)}}_prepareQueryParams(e,t,r,i){var n=T(this,e,t) +this._fullyScopeQueryParams(e,t,i),this._fullyScopeQueryParams(e,t,n),Object.assign(r,n)}}_prepareQueryParams(e,t,r,i){var n=C(this,e,t) this._hydrateUnsuppliedQueryParams(n,r,Boolean(i)),this._serializeQueryParams(n.routeInfos,r),i||this._pruneDefaultQueryParamValues(n.routeInfos,r)}_getQPMeta(e){var t=e.route return t&&(0,r.get)(t,"_qp")}_queryParamsFor(e){var t=e[e.length-1].name,r=this._qpCache[t] if(void 0!==r)return r @@ -1798,16 +1601,16 @@ var i,n=!0,s={},a=[] for(var o of e)if(i=this._getQPMeta(o)){for(var l of i.qps)a.push(l) Object.assign(s,i.map)}else n=!1 var u={qps:a,map:s} -return n&&(this._qpCache[t]=u),u}_fullyScopeQueryParams(e,t,r){var i,n=T(this,e,t).routeInfos +return n&&(this._qpCache[t]=u),u}_fullyScopeQueryParams(e,t,r){var i,n=C(this,e,t).routeInfos for(var s of n)if(i=this._getQPMeta(s))for(var a of i.qps){var o=a.prop in r&&a.prop||a.scopedPropertyName in r&&a.scopedPropertyName||a.urlKey in r&&a.urlKey o&&o!==a.scopedPropertyName&&(r[a.scopedPropertyName]=r[o],delete r[o])}}_hydrateUnsuppliedQueryParams(e,t,r){var i,n,a,o=e.routeInfos,l=this._bucketCache for(var u of o)if(i=this._getQPMeta(u))for(var c=0,d=i.qps.length;c=0;--r){var i=e[r],n=i.route +this.set("targetState",r),e.trigger(!0,"loading",e,t)}}_cancelSlowTransitionTimer(){this._slowTransitionTimer&&(0,d.cancel)(this._slowTransitionTimer),this._slowTransitionTimer=null}_markErrorAsHandled(e){this._handledErrors.add(e)}_isErrorHandled(e){return this._handledErrors.has(e)}_clearHandledError(e){this._handledErrors.delete(e)}_getEngineInstance({name:e,instanceId:t,mountPoint:r}){var n=this._engineInstances,s=n[e] +s||(s=Object.create(null),n[e]=s) +var a=s[t] +if(!a){var o=(0,i.getOwner)(this);(a=o.buildChildEngineInstance(e,{routable:!0,mountPoint:r})).boot(),s[t]=a}return a}}function _(e,t){for(var r=e.length-1;r>=0;--r){var i=e[r],n=i.route if(void 0!==n&&!0!==t(n,i))return}}var w={willResolveModel(e,t,r){this._scheduleLoadingEvent(t,r)},error(e,t,r){var i=this,n=e[e.length-1] _(e,((e,r)=>{if(r!==n){var s=O(e,"error") if(s)return i._markErrorAsHandled(t),i.intermediateTransitionTo(s,t),!1}var a=R(e,"error") @@ -1826,58 +1629,43 @@ return n&&s}function A(e,t,r,i){if(!e){if(t)return throw new Error(`Can't trigger action '${r}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks.`)}for(var n,s,a=!1,o=e.length-1;o>=0;o--)if(s=(n=e[o].route)&&n.actions&&n.actions[r]){if(!0!==s.apply(n,i))return void("error"===r&&n._router._markErrorAsHandled(i[0])) a=!0}var l=w[r] if(l)l.call(this,e,...i) -else if(!a&&!t)throw new Error(`Nothing handled the action '${r}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`)}function T(e,t,r){var i=e._routerMicrolib.applyIntent(t,r),{routeInfos:n,params:s}=i +else if(!a&&!t)throw new Error(`Nothing handled the action '${r}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`)}function C(e,t,r){var i=e._routerMicrolib.applyIntent(t,r),{routeInfos:n,params:s}=i for(var a of n)a.isResolved?s[a.name]=a.params:s[a.name]=a.serialize(a.context) -return i}function C(e){var t=e._routerMicrolib.currentRouteInfos -if(0!==t.length){var i=y._routePath(t),n=t[t.length-1],s=n.name,a=e.location,o=a.getURL();(0,r.set)(e,"currentPath",i),(0,r.set)(e,"currentRouteName",s),(0,r.set)(e,"currentURL",o)}}function S(e,t){var r=new n.RouterState(t,t._routerMicrolib,e[p.STATE_SYMBOL]) +return i}function T(e){var t=e._routerMicrolib.currentRouteInfos +if(0!==t.length){var i=y._routePath(t),n=t[t.length-1],s=n.name,a=e.location,o=a.getURL();(0,r.set)(e,"currentPath",i),(0,r.set)(e,"currentRouteName",s),(0,r.set)(e,"currentURL",o)}}function k(e,t){var r=new n.RouterState(t,t._routerMicrolib,e[p.STATE_SYMBOL]) t.currentState||t.set("currentState",r),t.set("targetState",r),e.promise=e.catch((e=>{if(!t._isErrorHandled(e))throw e -t._clearHandledError(e)}),"Transition Error")}function k(e,t,r,i){var n=e._queryParamsFor(t) -for(var s in r){if(Object.prototype.hasOwnProperty.call(r,s))i(s,r[s],n.map[s])}}function P(e,t){if(e)for(var r=[e];r.length>0;){var i=r.shift() +t._clearHandledError(e)}),"Transition Error")}function P(e,t,r,i){var n=e._queryParamsFor(t) +for(var s in r){if(Object.prototype.hasOwnProperty.call(r,s))i(s,r[s],n.map[s])}}function S(e,t){if(e)for(var r=[e];r.length>0;){var i=r.shift() if(i.render.name===t)return i var n=i.outlets for(var s in n)r.push(n[s])}}function j(e,t,i){var n,s={render:i,outlets:Object.create(null),wasUsed:!1} -return(n=i.into?P(e,i.into):t)?(0,r.set)(n.outlets,i.outlet,s):e=s,{liveRoutes:e,ownState:s}}function M(e,t,r){var{routeName:i}=r,n=P(e,i) -return n||(t.outlets.main={render:{name:i,outlet:"main"},outlets:{}},t)}y.reopen({didTransition:m,willTransition:g,rootURL:"/",location:"hash",url:(0,r.computed)((function(){var e=(0,r.get)(this,"location") +return(n=i.into?S(e,i.into):t)?(0,r.set)(n.outlets,i.outlet,s):e=s,{liveRoutes:e,ownState:s}}function M(e,t,{routeName:r}){var i=S(e,r) +return i||(t.outlets.main={render:{name:r,outlet:"main"},outlets:{}},t)}y.reopen({didTransition:m,willTransition:g,rootURL:"/",location:"hash",url:(0,r.computed)((function(){var e=(0,r.get)(this,"location") if("string"!=typeof e)return e.getURL()}))}) -var x=y -e.default=x})),e("@ember/routing/transition",["exports"],(function(e){"use strict" +e.default=y})),e("@ember/routing/transition",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0})})),e("@ember/runloop/index",["exports","@ember/debug","@ember/-internals/error-handling","@ember/-internals/metal","backburner"],(function(e,t,r,i,n){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e._backburner=void 0,e._cancelTimers=function(){l.cancelTimers()},e._getCurrentRunLoop=function(){return s},e._hasScheduledTimers=function(){return l.hasTimers()},e._rsvpErrorQueue=e._queues=void 0,e.begin=function(){l.begin()},e.bind=function(){for(var e=arguments.length,t=new Array(e),r=0;ru(...e.concat(t))},e.cancel=function(e){return l.cancel(e)},e.debounce=function(...e){return l.debounce(...e)},e.end=function(){l.end()},e.join=u,e.later=function(...e){return l.later(...e)},e.next=function(...e){return l.later(...e,1)},e.once=function(...e){return l.scheduleOnce("actions",...e)},e.run=function(...e){return l.run(...e)},e.schedule=function(...e){return l.schedule(...e)},e.scheduleOnce=function(...e){return l.scheduleOnce(...e)},e.throttle=function(...e){return l.throttle(...e)} var s=null -var a=`${Math.random()}${Date.now()}`.replace(".","") -e._rsvpErrorQueue=a -var o=["actions","routerTransitions","render","afterRender","destroy",a] -e._queues=o -var l=new n.default(o,{defaultQueue:"actions",onBegin:function(e){s=e},onEnd:function(e,t){s=t,(0,i.flushAsyncObservers)()},onErrorTarget:r.onErrorTarget,onErrorMethod:"onerror",flush:function(e,t){"render"!==e&&e!==a||(0,i.flushAsyncObservers)(),t()}}) -function u(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;nw(e).replace(s,"-"))),o=/(-|_|\.|\s)+(.)?/g,l=/(^|\/)([A-Z])/g,u=new r.Cache(1e3,(e=>e.replace(o,((e,t,r)=>r?r.toUpperCase():"")).replace(l,(e=>e.toLowerCase())))),c=/^(-|_)+(.)?/,d=/(.)(-|_|\.|\s)+(.)?/g,h=/(^|\/|\.)([a-z])/g,p=new r.Cache(1e3,(e=>{for(var t=(e,t,r)=>r?`_${r.toUpperCase()}`:"",r=(e,t,r,i)=>t+(i?i.toUpperCase():""),i=e.split("/"),n=0;ne.toUpperCase()))})),f=/([a-z\d])([A-Z]+)/g,m=/-|\s+/g,g=new r.Cache(1e3,(e=>e.replace(f,"$1_$2").replace(m,"_").toLowerCase())),v=/(^|\/)([a-z\u00C0-\u024F])/g,b=new r.Cache(1e3,(e=>e.replace(v,(e=>e.toUpperCase())))),y=/([a-z\d])([A-Z])/g,_=new r.Cache(1e3,(e=>e.replace(y,"$1_$2").toLowerCase())) -function w(e){return R(),_.get(e)}function R(){}function O(e,t){void 0===t&&(t=`Importing ${e} from '@ember/string' is deprecated. Please import ${e} from '@ember/template' instead.`)}})),e("@ember/string/lib/string_registry",["exports","@ember/debug"],(function(e,t){"use strict" +function w(e){return R(),_.get(e)}function R(){}function O(e,t=`Importing ${e} from '@ember/string' is deprecated. Please import ${e} from '@ember/template' instead.`){}})),e("@ember/string/lib/string_registry",["exports","@ember/debug"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.getStrings=function(){return i(),r},e.setStrings=function(e){i(),r=e} var r={} function i(){}})),e("@ember/template-compilation/index",["exports","ember-template-compiler"],(function(e,t){"use strict" -var r -Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compileTemplate",{enumerable:!0,get:function(){return t.compile}}),e.precompileTemplate=void 0,e.precompileTemplate=r})),e("@ember/template-factory/index",["exports","@glimmer/opcode-compiler"],(function(e,t){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compileTemplate",{enumerable:!0,get:function(){return t.compile}}),e.precompileTemplate=void 0})),e("@ember/template-factory/index",["exports","@glimmer/opcode-compiler"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createTemplateFactory",{enumerable:!0,get:function(){return t.templateFactory}})})) e("@ember/template/index",["exports","@ember/-internals/glimmer"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"htmlSafe",{enumerable:!0,get:function(){return t.htmlSafe}}),Object.defineProperty(e,"isHTMLSafe",{enumerable:!0,get:function(){return t.isHTMLSafe}})})),e("@ember/test/adapter",["exports","ember-testing"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=t.Adapter -e.default=r})),e("@ember/test/index",["exports","require"],(function(e,t){"use strict" -var r,i,n,s,a -if(Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterWaiter=e.unregisterHelper=e.registerWaiter=e.registerHelper=e.registerAsyncHelper=void 0,e.registerAsyncHelper=r,e.registerHelper=i,e.registerWaiter=n,e.unregisterHelper=s,e.unregisterWaiter=a,(0,t.has)("ember-testing")){var{Test:o}=(0,t.default)("ember-testing") -e.registerAsyncHelper=r=o.registerAsyncHelper,e.registerHelper=i=o.registerHelper,e.registerWaiter=n=o.registerWaiter,e.unregisterHelper=s=o.unregisterHelper,e.unregisterWaiter=a=o.unregisterWaiter}else{var l=()=>{throw new Error("Attempted to use test utilities, but `ember-testing` was not included")} -e.registerAsyncHelper=r=l,e.registerHelper=i=l,e.registerWaiter=n=l,e.unregisterHelper=s=l,e.unregisterWaiter=a=l}})),e("@ember/utils/index",["exports","@ember/utils/lib/is_none","@ember/utils/lib/is_blank","@ember/utils/lib/is_empty","@ember/utils/lib/is_present","@ember/utils/lib/is-equal","@ember/utils/lib/type-of","@ember/utils/lib/compare"],(function(e,t,r,i,n,s,a,o){"use strict" +e.default=t.Adapter})),e("@ember/test/index",["exports","require"],(function(e,t){"use strict" +if(Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterWaiter=e.unregisterHelper=e.registerWaiter=e.registerHelper=e.registerAsyncHelper=void 0,(0,t.has)("ember-testing")){var{Test:r}=(0,t.default)("ember-testing") +e.registerAsyncHelper=r.registerAsyncHelper,e.registerHelper=r.registerHelper,e.registerWaiter=r.registerWaiter,e.unregisterHelper=r.unregisterHelper,e.unregisterWaiter=r.unregisterWaiter}else{var i=()=>{throw new Error("Attempted to use test utilities, but `ember-testing` was not included")} +e.registerAsyncHelper=i,e.registerHelper=i,e.registerWaiter=i,e.unregisterHelper=i,e.unregisterWaiter=i}})),e("@ember/utils/index",["exports","@ember/utils/lib/is_none","@ember/utils/lib/is_blank","@ember/utils/lib/is_empty","@ember/utils/lib/is_present","@ember/utils/lib/is-equal","@ember/utils/lib/type-of","@ember/utils/lib/compare"],(function(e,t,r,i,n,s,a,o){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compare",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"isBlank",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"isNone",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isPresent",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"typeOf",{enumerable:!0,get:function(){return a.default}})})),e("@ember/utils/lib/compare",["exports","@ember/utils/lib/type-of","@ember/-internals/runtime","@ember/debug"],(function(e,t,r,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(r,i){if(r===i)return 0 var o=(0,t.default)(r),l=(0,t.default)(i) @@ -1915,27 +1703,25 @@ var n=r[i.call(e)]||"object" return n} var r={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object AsyncFunction]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:i}=Object.prototype})),e("@ember/version/index",["exports","ember/version"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"VERSION",{enumerable:!0,get:function(){return t.default}})})),e("@glimmer/destroyable",["exports","@glimmer/util","@glimmer/global-context"],(function(e,t,r){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e._hasDestroyableChildren=function(e){var t=s.get(e) +Object.defineProperty(e,"__esModule",{value:!0}),e._hasDestroyableChildren=function(e){var t=i.get(e) return void 0!==t&&null!==t.children},e.assertDestroyablesDestroyed=void 0,e.associateDestroyableChild=function(e,t){0 -var r=u(e),i=u(t) -return r.children=a(r.children,t),i.parents=a(i.parents,e),t},e.destroy=c,e.destroyChildren=function(e){var{children:t}=u(e) -o(t,c)},e.enableDestroyableTracking=void 0,e.isDestroyed=function(e){var t=s.get(e) -return void 0!==t&&t.state>=2},e.isDestroying=d,e.registerDestructor=function(e,t,r){void 0===r&&(r=!1) -0 -var i=u(e),n=!0===r?"eagerDestructors":"destructors" -return i[n]=a(i[n],t),t},e.unregisterDestructor=function(e,t,r){void 0===r&&(r=!1) -0 -var i=u(e),n=!0===r?"eagerDestructors":"destructors" -i[n]=l(i[n],t,!1)} -var i,n,s=new WeakMap -function a(e,t){return null===e?t:Array.isArray(e)?(e.push(t),e):[e,t]}function o(e,t){if(Array.isArray(e))for(var r=0;r1){var i=e.indexOf(t) -return e.splice(i,1),e}return null}function u(e){var t=s.get(e) -return void 0===t&&(t={parents:null,children:null,eagerDestructors:null,destructors:null,state:0},s.set(e,t)),t}function c(e){var t=u(e) -if(!(t.state>=1)){var{parents:i,children:n,eagerDestructors:s,destructors:a}=t -t.state=1,o(n,c),o(s,(t=>t(e))),o(a,(t=>(0,r.scheduleDestroy)(e,t))),(0,r.scheduleDestroyed)((()=>{o(i,(t=>function(e,t){var r=u(t) -0===r.state&&(r.children=l(r.children,e))}(e,t))),t.state=2}))}}function d(e){var t=s.get(e) -return void 0!==t&&t.state>=1}e.enableDestroyableTracking=i,e.assertDestroyablesDestroyed=n})),e("@glimmer/encoder",["exports"],(function(e){"use strict" +var r=o(e),i=o(t) +return r.children=n(r.children,t),i.parents=n(i.parents,e),t},e.destroy=l,e.destroyChildren=function(e){var{children:t}=o(e) +s(t,l)},e.enableDestroyableTracking=void 0,e.isDestroyed=function(e){var t=i.get(e) +return void 0!==t&&t.state>=2},e.isDestroying=u,e.registerDestructor=function(e,t,r=!1){0 +var i=o(e),s=!0===r?"eagerDestructors":"destructors" +return i[s]=n(i[s],t),t},e.unregisterDestructor=function(e,t,r=!1){0 +var i=o(e),n=!0===r?"eagerDestructors":"destructors" +i[n]=a(i[n],t,!1)} +var i=new WeakMap +function n(e,t){return null===e?t:Array.isArray(e)?(e.push(t),e):[e,t]}function s(e,t){if(Array.isArray(e))for(var r=0;r1){var i=e.indexOf(t) +return e.splice(i,1),e}return null}function o(e){var t=i.get(e) +return void 0===t&&(t={parents:null,children:null,eagerDestructors:null,destructors:null,state:0},i.set(e,t)),t}function l(e){var t=o(e) +if(!(t.state>=1)){var{parents:i,children:n,eagerDestructors:u,destructors:c}=t +t.state=1,s(n,l),s(u,(t=>t(e))),s(c,(t=>(0,r.scheduleDestroy)(e,t))),(0,r.scheduleDestroyed)((()=>{s(i,(t=>function(e,t){var r=o(t) +0===r.state&&(r.children=a(r.children,e))}(e,t))),t.state=2}))}}function u(e){var t=i.get(e) +return void 0!==t&&t.state>=1}})),e("@glimmer/encoder",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.InstructionEncoderImpl=void 0 e.InstructionEncoderImpl=class{constructor(e){this.buffer=e,this.size=0}encode(e,t){if(e>255)throw new Error(`Opcode type over 8-bits. Got ${e}.`) var r=e|t|arguments.length-2<<8 @@ -1944,26 +1730,20 @@ for(var i=2;i{} -e.scheduleRevalidate=p,e.scheduleDestroy=r,e.scheduleDestroyed=i,e.toIterator=n,e.toBool=s,e.getProp=a,e.setProp=o,e.getPath=l,e.setPath=u,e.warnIfStyleNotTrusted=c,e.assert=d,e.deprecate=h -var f,m -e.assertGlobalContextWasSet=f,e.testOverrideGlobalContext=m -var g=function(f){var m -e.scheduleRevalidate=p=f.scheduleRevalidate,e.scheduleDestroy=r=f.scheduleDestroy,e.scheduleDestroyed=i=f.scheduleDestroyed,e.toIterator=n=f.toIterator,e.toBool=s=f.toBool,e.getProp=a=f.getProp,e.setProp=o=f.setProp,e.getPath=l=f.getPath,e.setPath=u=f.setPath,e.warnIfStyleNotTrusted=c=f.warnIfStyleNotTrusted,e.assert=d=f.assert,e.deprecate=h=f.deprecate,"boolean"==typeof(null===(m=f.FEATURES)||void 0===m?void 0:m.DEFAULT_HELPER_MANAGER)&&(e.FEATURE_DEFAULT_HELPER_MANAGER=t=f.FEATURES.DEFAULT_HELPER_MANAGER)} -e.default=g})),e("@glimmer/low-level",["exports"],(function(e){"use strict" +e.FEATURE_DEFAULT_HELPER_MANAGER=!0 +var t=()=>{} +e.scheduleRevalidate=t +e.default=function(r){var i +e.scheduleRevalidate=t=r.scheduleRevalidate,e.scheduleDestroy=r.scheduleDestroy,e.scheduleDestroyed=r.scheduleDestroyed,e.toIterator=r.toIterator,e.toBool=r.toBool,e.getProp=r.getProp,e.setProp=r.setProp,e.getPath=r.getPath,e.setPath=r.setPath,e.warnIfStyleNotTrusted=r.warnIfStyleNotTrusted,e.assert=r.assert,e.deprecate=r.deprecate,"boolean"==typeof(null===(i=r.FEATURES)||void 0===i?void 0:i.DEFAULT_HELPER_MANAGER)&&(e.FEATURE_DEFAULT_HELPER_MANAGER=r.FEATURES.DEFAULT_HELPER_MANAGER)}})),e("@glimmer/low-level",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.Storage=e.Stack=void 0 e.Storage=class{constructor(){this.array=[],this.next=0}add(e){var{next:t,array:r}=this if(t===r.length)this.next++ else{var i=r[t] this.next=i}return this.array[t]=e,t}deref(e){return this.array[e]}drop(e){this.array[e]=this.next,this.next=e}} -class t{constructor(e){void 0===e&&(e=[]),this.vec=e}clone(){return new t(this.vec.slice())}sliceFrom(e){return new t(this.vec.slice(e))}slice(e,r){return new t(this.vec.slice(e,r))}copy(e,t){this.vec[t]=this.vec[e]}writeRaw(e,t){this.vec[e]=t}getRaw(e){return this.vec[e]}reset(){this.vec.length=0}len(){return this.vec.length}}e.Stack=t})),e("@glimmer/manager",["exports","@glimmer/util","@glimmer/reference","@glimmer/validator","@glimmer/destroyable","@glimmer/global-context"],(function(e,t,r,i,n,s){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.CustomModifierManager=e.CustomHelperManager=e.CustomComponentManager=void 0,e.capabilityFlagsFrom=function(e){return 0|(e.dynamicLayout?1:0)|(e.dynamicTag?2:0)|(e.prepareArgs?4:0)|(e.createArgs?8:0)|(e.attributeHook?16:0)|(e.elementHook?32:0)|(e.dynamicScope?64:0)|(e.createCaller?128:0)|(e.updateHook?256:0)|(e.createInstance?512:0)|(e.wrapped?1024:0)|(e.willDestroy?2048:0)|(e.hasSubOwner?4096:0)},e.componentCapabilities=function(e,t){void 0===t&&(t={}) -0 +class t{constructor(e=[]){this.vec=e}clone(){return new t(this.vec.slice())}sliceFrom(e){return new t(this.vec.slice(e))}slice(e,r){return new t(this.vec.slice(e,r))}copy(e,t){this.vec[t]=this.vec[e]}writeRaw(e,t){this.vec[e]=t}getRaw(e){return this.vec[e]}reset(){this.vec.length=0}len(){return this.vec.length}}e.Stack=t})),e("@glimmer/manager",["exports","@glimmer/util","@glimmer/reference","@glimmer/validator","@glimmer/destroyable","@glimmer/global-context"],(function(e,t,r,i,n,s){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.CustomModifierManager=e.CustomHelperManager=e.CustomComponentManager=void 0,e.capabilityFlagsFrom=function(e){return(e.dynamicLayout?1:0)|(e.dynamicTag?2:0)|(e.prepareArgs?4:0)|(e.createArgs?8:0)|(e.attributeHook?16:0)|(e.elementHook?32:0)|(e.dynamicScope?64:0)|(e.createCaller?128:0)|(e.updateHook?256:0)|(e.createInstance?512:0)|(e.wrapped?1024:0)|(e.willDestroy?2048:0)|(e.hasSubOwner?4096:0)},e.componentCapabilities=function(e,t={}){0 var r=Boolean(t.updateHook) return a({asyncLifeCycleCallbacks:Boolean(t.asyncLifecycleCallbacks),destructor:Boolean(t.destructor),updateHook:r})},e.getComponentTemplate=function(e){var t=e for(;null!==t;){var r=N.get(t) @@ -1973,22 +1753,20 @@ var r=E(y,e) if(void 0===r&&!0===t)return null return r},e.getInternalHelperManager=function(e,t){0 var r=E(w,e) -s.FEATURE_DEFAULT_HELPER_MANAGER&&void 0===r&&"function"==typeof e&&(r=C) +s.FEATURE_DEFAULT_HELPER_MANAGER&&void 0===r&&"function"==typeof e&&(r=T) if(r)return r if(!0===t)return null return null},e.getInternalModifierManager=function(e,t){0 var r=E(_,e) if(void 0===r&&!0===t)return null return r},e.hasCapability=function(e,t){return!!(e&t)},e.hasDestroyable=g,e.hasInternalComponentManager=function(e){return void 0!==E(y,e)},e.hasInternalHelperManager=function(e){return function(e){if(s.FEATURE_DEFAULT_HELPER_MANAGER)return"function"==typeof e -return!1}(e)||void 0!==E(w,e)},e.hasInternalModifierManager=function(e){return void 0!==E(_,e)},e.hasValue=m,e.helperCapabilities=function(e,t){void 0===t&&(t={}) -0 -0 +return!1}(e)||void 0!==E(w,e)},e.hasInternalModifierManager=function(e){return void 0!==E(_,e)},e.hasValue=m,e.helperCapabilities=function(e,t={}){0 0 -return a({hasValue:Boolean(t.hasValue),hasDestroyable:Boolean(t.hasDestroyable),hasScheduledEffect:Boolean(t.hasScheduledEffect)})},e.managerHasCapability=function(e,t,r){return!!(t&r)},e.modifierCapabilities=function(e,t){void 0===t&&(t={}) 0 -return a({disableAutoTracking:Boolean(t.disableAutoTracking)})},e.setComponentManager=function(e,t){return S(new M(e),t)},e.setComponentTemplate=function(e,t){0 +return a({hasValue:Boolean(t.hasValue),hasDestroyable:Boolean(t.hasDestroyable),hasScheduledEffect:Boolean(t.hasScheduledEffect)})},e.managerHasCapability=function(e,t,r){return!!(t&r)},e.modifierCapabilities=function(e,t={}){0 +return a({disableAutoTracking:Boolean(t.disableAutoTracking)})},e.setComponentManager=function(e,t){return k(new M(e),t)},e.setComponentTemplate=function(e,t){0 0 -return N.set(t,e),t},e.setCustomTagFor=u,e.setHelperManager=function(e,t){return T(new v(e),t)},e.setInternalComponentManager=S,e.setInternalHelperManager=T,e.setInternalModifierManager=A,e.setModifierManager=function(e,t){return A(new D(e),t)} +return N.set(t,e),t},e.setCustomTagFor=u,e.setHelperManager=function(e,t){return C(new v(e),t)},e.setInternalComponentManager=k,e.setInternalHelperManager=C,e.setInternalModifierManager=A,e.setModifierManager=function(e,t){return A(new D(e),t)} function a(e){return e}var o,l=new WeakMap function u(e,t){l.set(e,t)}function c(e){if("symbol"==typeof e)return null var t=Number(e) @@ -2010,30 +1788,25 @@ this.undefinedDelegate=t=r(void 0)}return t}return this.getDelegateForOwner(e)}g if(m(s)){var u=(0,r.createComputeRef)((()=>s.getValue(l)),null,!1) return g(s)&&(0,n.associateDestroyableChild)(u,s.getDestroyable(l)),u}if(g(s)){var c=(0,r.createConstRef)(void 0,!1) return(0,n.associateDestroyableChild)(c,s.getDestroyable(l)),c}return r.UNDEFINED_REFERENCE}}}e.CustomHelperManager=v -class b{constructor(){this.capabilities={hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}}createHelper(e,t){return{fn:e,args:t}}getValue(e){var{fn:t,args:r}=e -return Object.keys(r.named).length>0?t(...[...r.positional,r.named]):t(...r.positional)}getDebugName(e){return e.name?`(helper function ${e.name})`:"(anonymous helper function)"}}var y=new WeakMap,_=new WeakMap,w=new WeakMap,R=Object.getPrototypeOf +class b{constructor(){this.capabilities={hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}}createHelper(e,t){return{fn:e,args:t}}getValue({fn:e,args:t}){return Object.keys(t.named).length>0?e(...[...t.positional,t.named]):e(...t.positional)}getDebugName(e){return e.name?`(helper function ${e.name})`:"(anonymous helper function)"}}var y=new WeakMap,_=new WeakMap,w=new WeakMap,R=Object.getPrototypeOf function O(e,t,r){return e.set(r,t),r}function E(e,t){for(var r=t;null!=r;){var i=e.get(r) if(void 0!==i)return i -r=R(r)}}function A(e,t){return O(_,e,t)}function T(e,t){return O(w,e,t)}var C=new v((()=>new b)) -function S(e,t){return O(y,e,t)}var k={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1} -function P(e){return e.capabilities.asyncLifeCycleCallbacks}function j(e){return e.capabilities.updateHook}class M{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}getDelegateFor(e){var{componentManagerDelegates:t}=this,r=t.get(e) +r=R(r)}}function A(e,t){return O(_,e,t)}function C(e,t){return O(w,e,t)}var T=new v((()=>new b)) +function k(e,t){return O(y,e,t)}var P={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1} +function S(e){return e.capabilities.asyncLifeCycleCallbacks}function j(e){return e.capabilities.updateHook}class M{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}getDelegateFor(e){var{componentManagerDelegates:t}=this,r=t.get(e) if(void 0===r){var{factory:i}=this r=i(e),t.set(e,r)}return r}create(e,t,r){var i=this.getDelegateFor(e),n=o(r.capture(),"component"),s=i.createComponent(t,n) return new x(s,i,n)}getDebugName(e){return"function"==typeof e?e.name:e.toString()}update(e){var{delegate:t}=e if(j(t)){var{component:r,args:i}=e -t.updateComponent(r,i)}}didCreate(e){var{component:t,delegate:r}=e -P(r)&&r.didCreateComponent(t)}didUpdate(e){var{component:t,delegate:r}=e;(function(e){return P(e)&&j(e)})(r)&&r.didUpdateComponent(t)}didRenderLayout(){}didUpdateLayout(){}getSelf(e){var{component:t,delegate:i}=e -return(0,r.createConstRef)(i.getContext(t),"this")}getDestroyable(e){var{delegate:t}=e +t.updateComponent(r,i)}}didCreate({component:e,delegate:t}){S(t)&&t.didCreateComponent(e)}didUpdate({component:e,delegate:t}){(function(e){return S(e)&&j(e)})(t)&&t.didUpdateComponent(e)}didRenderLayout(){}didUpdateLayout(){}getSelf({component:e,delegate:t}){return(0,r.createConstRef)(t.getContext(e),"this")}getDestroyable(e){var{delegate:t}=e if(function(e){return e.capabilities.destructor}(t)){var{component:r}=e -return(0,n.registerDestructor)(e,(()=>t.destroyComponent(r))),e}return null}getCapabilities(){return k}}e.CustomComponentManager=M +return(0,n.registerDestructor)(e,(()=>t.destroyComponent(r))),e}return null}getCapabilities(){return P}}e.CustomComponentManager=M class x{constructor(e,t,r){this.component=e,this.delegate=t,this.args=r}}class D{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}getDelegateFor(e){var{componentManagerDelegates:t}=this,r=t.get(e) if(void 0===r){var{factory:i}=this r=i(e),t.set(e,r)}return r}create(e,t,r,s){var a,l=this.getDelegateFor(e),u=o(s,"modifier"),c=l.createModifier(r,u) -return a={tag:(0,i.createUpdatableTag)(),element:t,delegate:l,args:u,modifier:c},(0,n.registerDestructor)(a,(()=>l.destroyModifier(c,u))),a}getDebugName(e){var{debugName:t}=e -return t}getTag(e){var{tag:t}=e -return t}install(e){var{element:t,args:r,modifier:n,delegate:s}=e,{capabilities:a}=s -!0===a.disableAutoTracking?(0,i.untrack)((()=>s.installModifier(n,t,r))):s.installModifier(n,t,r)}update(e){var{args:t,modifier:r,delegate:n}=e,{capabilities:s}=n -!0===s.disableAutoTracking?(0,i.untrack)((()=>n.updateModifier(r,t))):n.updateModifier(r,t)}getDestroyable(e){return e}}e.CustomModifierManager=D +return a={tag:(0,i.createUpdatableTag)(),element:t,delegate:l,args:u,modifier:c},(0,n.registerDestructor)(a,(()=>l.destroyModifier(c,u))),a}getDebugName({debugName:e}){return e}getTag({tag:e}){return e}install({element:e,args:t,modifier:r,delegate:n}){var{capabilities:s}=n +!0===s.disableAutoTracking?(0,i.untrack)((()=>n.installModifier(r,e,t))):n.installModifier(r,e,t)}update({args:e,modifier:t,delegate:r}){var{capabilities:n}=r +!0===n.disableAutoTracking?(0,i.untrack)((()=>r.updateModifier(t,e))):r.updateModifier(t,e)}getDestroyable(e){return e}}e.CustomModifierManager=D var N=new WeakMap,F=Object.getPrototypeOf})),e("@glimmer/node",["exports","@glimmer/runtime","@simple-dom/document"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.NodeDOMTreeConstruction=void 0,e.serializeBuilder=function(e,t){return s.forInitialRender(e,t)} class i extends t.DOMTreeConstruction{constructor(e){super(e||(0,r.default)())}setupUselessElement(){}insertHTMLBefore(e,r,i){var n=this.document.createRawHTMLSection(i) @@ -2051,198 +1824,153 @@ if(n>-1)"tr"===e.slice(n+1,n+3)&&(e=`${e}`)}""===e?this.__appendC var s=this.__appendComment("%glmr%") return new t.ConcreteBounds(this.element,i,s)}__appendText(e){var{tagName:t}=this.element,r=function(e){var{element:t,nextSibling:r}=e return null===r?t.lastChild:r.previousSibling}(this) -return"TITLE"===t||"SCRIPT"===t||"STYLE"===t?super.__appendText(e):""===e?this.__appendComment("% %"):(r&&3===r.nodeType&&this.__appendComment("%|%"),super.__appendText(e))}closeElement(){return n.has(this.element)&&(n.delete(this.element),super.closeElement()),super.closeElement()}openElement(e){return"tr"===e&&"TBODY"!==this.element.tagName&&"THEAD"!==this.element.tagName&&"TFOOT"!==this.element.tagName&&(this.openElement("tbody"),n.set(this.constructing,!0),this.flushElement(null)),super.openElement(e)}pushRemoteElement(e,t,r){void 0===r&&(r=null) -var{dom:i}=this,n=i.createElement("script") +return"TITLE"===t||"SCRIPT"===t||"STYLE"===t?super.__appendText(e):""===e?this.__appendComment("% %"):(r&&3===r.nodeType&&this.__appendComment("%|%"),super.__appendText(e))}closeElement(){return n.has(this.element)&&(n.delete(this.element),super.closeElement()),super.closeElement()}openElement(e){return"tr"===e&&"TBODY"!==this.element.tagName&&"THEAD"!==this.element.tagName&&"TFOOT"!==this.element.tagName&&(this.openElement("tbody"),n.set(this.constructing,!0),this.flushElement(null)),super.openElement(e)}pushRemoteElement(e,t,r=null){var{dom:i}=this,n=i.createElement("script") return n.setAttribute("glmr",t),i.insertBefore(e,n,r),super.pushRemoteElement(e,t,r)}}})),e("@glimmer/opcode-compiler",["exports","@glimmer/util","@glimmer/vm","@glimmer/global-context","@glimmer/manager","@glimmer/encoder"],(function(e,t,r,i,n,s){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedBuilder=e.StdLib=e.MINIMAL_CAPABILITIES=e.EMPTY_BLOCKS=e.DEFAULT_CAPABILITIES=e.CompileTimeCompilationContextImpl=void 0,e.compilable=te,e.compileStatements=re,e.compileStd=oe,e.debugCompiler=void 0,e.invokeStaticBlock=D,e.invokeStaticBlockWithStack=N,e.meta=T,e.programCompilationContext=function(e,t){return new ce(e,t)},e.templateCacheCounters=void 0,e.templateCompilationContext=W,e.templateFactory=function(e){var t,{id:r,moduleName:i,block:n,scope:s,isStrictMode:a}=e,o=r||"client-"+he++,l=null,u=new WeakMap,c=e=>{if(void 0===t&&(t=JSON.parse(n)),void 0===e)return null===l?(pe.cacheMiss++,l=new fe({id:o,block:t,moduleName:i,owner:null,scope:s,isStrictMode:a})):pe.cacheHit++,l -var r=u.get(e) -return void 0===r?(pe.cacheMiss++,r=new fe({id:o,block:t,moduleName:i,owner:e,scope:s,isStrictMode:a}),u.set(e,r)):pe.cacheHit++,r} -return c.__id=o,c.__meta={moduleName:i},c} +Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedBuilder=e.StdLib=e.MINIMAL_CAPABILITIES=e.EMPTY_BLOCKS=e.DEFAULT_CAPABILITIES=e.CompileTimeCompilationContextImpl=void 0,e.compilable=ee,e.compileStatements=te,e.compileStd=ae,e.debugCompiler=void 0,e.invokeStaticBlock=D,e.invokeStaticBlockWithStack=N,e.meta=C,e.programCompilationContext=function(e,t){return new ue(e,t)},e.templateCacheCounters=void 0,e.templateCompilationContext=W,e.templateFactory=function({id:e,moduleName:t,block:r,scope:i,isStrictMode:n}){var s,a=e||"client-"+de++,o=null,l=new WeakMap,u=e=>{if(void 0===s&&(s=JSON.parse(r)),void 0===e)return null===o?(he.cacheMiss++,o=new pe({id:a,block:s,moduleName:t,owner:null,scope:i,isStrictMode:n})):he.cacheHit++,o +var u=l.get(e) +return void 0===u?(he.cacheMiss++,u=new pe({id:a,block:s,moduleName:t,owner:e,scope:i,isStrictMode:n}),l.set(e,u)):he.cacheHit++,u} +return u.__id=a,u.__meta={moduleName:t},u} class a{constructor(e){this.blocks=e,this.names=e?Object.keys(e):[]}get(e){return this.blocks&&this.blocks[e]||null}has(e){var{blocks:t}=this return null!==t&&e in t}with(e,r){var{blocks:i}=this -return new a(i?(0,t.assign)({},i,{[e]:r}):{[e]:r})}get hasAny(){return null!==this.blocks}}var o=new a(null) +return new a(i?(0,t.assign)({},i,{[e]:r}):{[e]:r})}get hasAny(){return null!==this.blocks}}var o=e.EMPTY_BLOCKS=new a(null) function l(e){if(null===e)return o for(var r=(0,t.dict)(),[i,n]=e,s=0;s{if(!function(e){return Array.isArray(e)&&2===e.length}(t))return!1 var r=t[0] -return 31===r||32===r||r===e}}e.EMPTY_BLOCKS=o -var f=p(39),m=p(38),g=p(37),v=p(35),b=p(34) +return 31===r||32===r||r===e}}var f=p(39),m=p(38),g=p(37),v=p(35),b=p(34) function y(e,t,r,i,n){var{upvars:s}=r,a=s[e[1]],o=t.lookupBuiltInHelper(a) return i.helper(o,a)}class _{constructor(){this.names={},this.funcs=[]}add(e,t){this.names[e]=this.funcs.push(t)-1}compile(e,t){var r=t[0],i=this.names[r];(0,this.funcs[i])(e,t)}}var w=new _ -function R(e,t){if(void 0!==t&&0!==t.length)for(var r=0;r=0;a--){var o=i[a] -e(1e3,o.label),e(34,1),o.callback(),0!==a&&e(4,u("END"))}e(1e3,"END"),e(1002),e(70)}function z(e,t,r){e(1001),e(0),e(6,u("ENDINITIAL")),e(69,t()),r(),e(1e3,"FINALLY"),e(70),e(5),e(1e3,"ENDINITIAL"),e(1),e(1002)}function L(e,t,r,i){return z(e,t,(()=>{e(66,u("ELSE")),r(),e(4,u("FINALLY")),e(1e3,"ELSE"),void 0!==i&&i()}))}w.add(29,((e,t)=>{var[,r]=t -for(var i of r)O(e,i) -e(27,r.length)})),w.add(28,((e,t)=>{var[,r,i,n]=t -g(r)?e(1005,r,(t=>{P(e,t,i,n)})):(O(e,r),j(e,i,n))})),w.add(50,((e,t)=>{var[,i,n,s,a]=t;(function(e,t,i,n,s){e(0),E(e,n,s,!1),e(86),O(e,i),e(77,t,{type:2,value:void 0}),e(1),e(36,r.$v0)})(e,n,i,s,a)})),w.add(30,((e,t)=>{var[,r,i]=t -e(21,r),R(e,i)})),w.add(32,((e,t)=>{var[,r,i]=t -e(1011,r,(t=>{e(29,t),R(e,i)}))})),w.add(31,((e,t)=>{var[,r,i]=t -e(1009,r,(e=>{}))})),w.add(34,(()=>{throw new Error("unimplemented opcode")})),w.add(36,((e,t)=>{e(1010,t[1],(r=>{e(1006,t,{ifHelper:t=>{P(e,t,null,null)}})}))})),w.add(99,((e,t)=>{e(1010,t[1],(r=>{e(1006,t,{ifHelper:(r,i,n)=>{t[2][0] -P(e,r,null,null)}})}))})),w.add(27,(e=>S(e,void 0))),w.add(48,((e,t)=>{var[,r]=t -O(e,r),e(25)})),w.add(49,((e,t)=>{var[,r]=t -O(e,r),e(24),e(61),e(26)})),w.add(52,((e,t)=>{var[,r,i,n]=t -O(e,n),O(e,i),O(e,r),e(109)})),w.add(51,((e,t)=>{var[,r]=t -O(e,r),e(110)})),w.add(53,((e,t)=>{var[,r]=t -O(e,r),e(111)})),w.add(54,((e,t)=>{var[,i]=t -e(0),E(e,i,null,!1),e(112),e(1),e(36,r.$v0)})) +e(1e3,o.label),e(34,1),o.callback(),0!==a&&e(4,u("END"))}e(1e3,"END"),e(1002),e(70)}function z(e,t,r){e(1001),e(0),e(6,u("ENDINITIAL")),e(69,t()),r(),e(1e3,"FINALLY"),e(70),e(5),e(1e3,"ENDINITIAL"),e(1),e(1002)}function L(e,t,r,i){return z(e,t,(()=>{e(66,u("ELSE")),r(),e(4,u("FINALLY")),e(1e3,"ELSE"),void 0!==i&&i()}))}w.add(29,((e,[,t])=>{for(var r of t)O(e,r) +e(27,t.length)})),w.add(28,((e,[,t,r,i])=>{g(t)?e(1005,t,(t=>{S(e,t,r,i)})):(O(e,t),j(e,r,i))})),w.add(50,((e,[,t,i,n,s])=>{(function(e,t,i,n,s){e(0),E(e,n,s,!1),e(86),O(e,i),e(77,t,{type:2,value:void 0}),e(1),e(36,r.$v0)})(e,i,t,n,s)})),w.add(30,((e,[,t,r])=>{e(21,t),R(e,r)})),w.add(32,((e,[,t,r])=>{e(1011,t,(t=>{e(29,t),R(e,r)}))})),w.add(31,((e,[,t,r])=>{e(1009,t,(e=>{}))})),w.add(34,(()=>{throw new Error("unimplemented opcode")})),w.add(36,((e,t)=>{e(1010,t[1],(r=>{e(1006,t,{ifHelper:t=>{S(e,t,null,null)}})}))})),w.add(99,((e,t)=>{e(1010,t[1],(r=>{e(1006,t,{ifHelper:(r,i,n)=>{t[2][0] +S(e,r,null,null)}})}))})),w.add(27,(e=>k(e,void 0))),w.add(48,((e,[,t])=>{O(e,t),e(25)})),w.add(49,((e,[,t])=>{O(e,t),e(24),e(61),e(26)})),w.add(52,((e,[,t,r,i])=>{O(e,i),O(e,r),O(e,t),e(109)})),w.add(51,((e,[,t])=>{O(e,t),e(110)})),w.add(53,((e,[,t])=>{O(e,t),e(111)})),w.add(54,((e,[,t])=>{e(0),E(e,t,null,!1),e(112),e(1),e(36,r.$v0)})) var U="&attrs" function B(e,i,s,a,o,u){var{compilable:c,capabilities:d,handle:p}=i,f=s?[s,[]]:null,m=Array.isArray(u)||null===u?l(u):u -c?(e(78,p),function(e,i){var{capabilities:s,layout:a,elementBlock:o,positional:l,named:u,blocks:c}=i,{symbolTable:d}=a,p=d.hasEval||(0,n.hasCapability)(s,4) -if(p)return void H(e,{capabilities:s,elementBlock:o,positional:l,named:u,atNames:!0,blocks:c,layout:a}) +c?(e(78,p),function(e,{capabilities:i,layout:s,elementBlock:a,positional:o,named:l,blocks:u}){var{symbolTable:c}=s,d=c.hasEval||(0,n.hasCapability)(i,4) +if(d)return void H(e,{capabilities:i,elementBlock:a,positional:o,named:l,atNames:!0,blocks:u,layout:s}) e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0) -var{symbols:f}=d,m=[],g=[],v=[],b=c.names -if(null!==o){var y=f.indexOf(U);-1!==y&&(x(e,o),m.push(y))}for(var _=0;_0?1:0),e(19,0) -for(var F=g.length-1;F>=0;F--){var I=g[F];-1===I?e(34,1):e(19,I+1)}null!==l&&e(34,l.length) -for(var z=m.length-1;z>=0;z--){e(20,m[z]+1)}e(28,h(a)),e(61),e(2),e(100,r.$s0),e(1),e(40),(0,n.hasCapability)(s,64)&&e(60) +var{symbols:p}=c,f=[],m=[],g=[],v=u.names +if(null!==a){var b=p.indexOf(U);-1!==b&&(x(e,a),f.push(b))}for(var y=0;y0?1:0),e(19,0) +for(var N=m.length-1;N>=0;N--){var F=m[N];-1===F?e(34,1):e(19,F+1)}null!==o&&e(34,o.length) +for(var I=f.length-1;I>=0;I--){e(20,f[I]+1)}e(28,h(s)),e(61),e(2),e(100,r.$s0),e(1),e(40),(0,n.hasCapability)(i,64)&&e(60) e(98),e(35,r.$s0)}(e,{capabilities:d,layout:c,elementBlock:f,positional:a,named:o,blocks:m})):(e(78,p),H(e,{capabilities:d,elementBlock:f,positional:a,named:o,atNames:!0,blocks:m}))}function $(e,t,i,n,s,a,o,c){var d=i?[i,[]]:null,h=Array.isArray(a)||null===a?l(a):a -z(e,(()=>(O(e,t),e(33,r.$sp,0),2)),(()=>{e(66,u("ELSE")),c?e(81):e(80,{type:2,value:void 0}),e(79),H(e,{capabilities:!0,elementBlock:d,positional:n,named:s,atNames:o,blocks:h}),e(1e3,"ELSE")}))}function H(e,i){var{capabilities:s,elementBlock:a,positional:o,named:l,atNames:u,blocks:c,layout:p}=i,f=!!c,m=!0===s||(0,n.hasCapability)(s,4)||!(!l||0===l[0].length),g=c.with("attrs",a) +z(e,(()=>(O(e,t),e(33,r.$sp,0),2)),(()=>{e(66,u("ELSE")),c?e(81):e(80,{type:2,value:void 0}),e(79),H(e,{capabilities:!0,elementBlock:d,positional:n,named:s,atNames:o,blocks:h}),e(1e3,"ELSE")}))}function H(e,{capabilities:i,elementBlock:s,positional:a,named:o,atNames:l,blocks:u,layout:c}){var p=!!u,f=!0===i||(0,n.hasCapability)(i,4)||!(!o||0===o[0].length),m=u.with("attrs",s) e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0),function(e,r,i,n,s){for(var a=n.names,o=0;o{p?(e(63,d(p.symbolTable)),e(28,h(p)),e(61)):e(92,r.$s0),e(95,r.$s0)})),e(35,r.$s0)}function q(e,t,i,n,s){void 0===s&&(s=null),e(97,r.$s0),e(59),e(87,0|t,r.$s0),s&&s(),e(88,r.$s0),e(90,r.$s0),e(38,r.$s0),e(19,0),e(94,r.$s0),n&&e(17,r.$s0),i&&e(18,r.$s0),e(34,1),e(96,r.$s0),e(100,r.$s0),e(1),e(40),e(60),e(98)}class V{constructor(e,t,r,i,n){this.main=e,this.trustingGuardedAppend=t,this.cautiousGuardedAppend=r,this.trustingNonDynamicAppend=i,this.cautiousNonDynamicAppend=n}get"trusting-append"(){return this.trustingGuardedAppend}get"cautious-append"(){return this.cautiousGuardedAppend}get"trusting-non-dynamic-append"(){return this.trustingNonDynamicAppend}get"cautious-non-dynamic-append"(){return this.cautiousNonDynamicAppend}getAppend(e){return e?this.trustingGuardedAppend:this.cautiousGuardedAppend}}function W(e,t){return{program:e,encoder:new se(e.heap,t,e.stdlib),meta:t}}e.StdLib=V,e.debugCompiler=undefined +for(var c=i[1],d=0;d{c?(e(63,d(c.symbolTable)),e(28,h(c)),e(61)):e(92,r.$s0),e(95,r.$s0)})),e(35,r.$s0)}function q(e,t,i,n,s=null){e(97,r.$s0),e(59),e(87,0|t,r.$s0),s&&s(),e(88,r.$s0),e(90,r.$s0),e(38,r.$s0),e(19,0),e(94,r.$s0),n&&e(17,r.$s0),i&&e(18,r.$s0),e(34,1),e(96,r.$s0),e(100,r.$s0),e(1),e(40),e(60),e(98)}class V{constructor(e,t,r,i,n){this.main=e,this.trustingGuardedAppend=t,this.cautiousGuardedAppend=r,this.trustingNonDynamicAppend=i,this.cautiousNonDynamicAppend=n}get"trusting-append"(){return this.trustingGuardedAppend}get"cautious-append"(){return this.cautiousGuardedAppend}get"trusting-non-dynamic-append"(){return this.trustingNonDynamicAppend}get"cautious-non-dynamic-append"(){return this.cautiousNonDynamicAppend}getAppend(e){return e?this.trustingGuardedAppend:this.cautiousGuardedAppend}}function W(e,t){return{program:e,encoder:new ne(e.heap,t,e.stdlib),meta:t}}e.StdLib=V var G=new _,Y=["class","id","value","name","type","style","href"],K=["div","span","p","a"] -function Q(e){return"string"==typeof e?e:K[e]}function J(e){return"string"==typeof e?e:Y[e]}function X(e){return null===e?null:[e[0].map((e=>`@${e}`)),e[1]]}G.add(3,((e,t)=>e(42,t[1]))),G.add(13,(e=>e(55))),G.add(12,(e=>e(54))),G.add(4,((e,t)=>{var[,i,n,s]=t -m(i)?e(1003,i,(t=>{e(0),E(e,n,s,!1),e(57,t),e(1)})):(O(e,i),e(0),E(e,n,s,!1),e(33,r.$fp,1),e(108),e(1))})),G.add(14,((e,t)=>{var[,r,i,n]=t -e(51,J(r),i,null!=n?n:null)})),G.add(24,((e,t)=>{var[,r,i,n]=t -e(105,J(r),i,null!=n?n:null)})),G.add(15,((e,t)=>{var[,r,i,n]=t -O(e,i),e(52,J(r),!1,null!=n?n:null)})),G.add(22,((e,t)=>{var[,r,i,n]=t -O(e,i),e(52,J(r),!0,null!=n?n:null)})),G.add(16,((e,t)=>{var[,r,i,n]=t -O(e,i),e(53,J(r),!1,null!=n?n:null)})),G.add(23,((e,t)=>{var[,r,i,n]=t -O(e,i),e(53,J(r),!0,null!=n?n:null)})),G.add(10,((e,t)=>{var[,r]=t -e(48,Q(r))})),G.add(11,((e,t)=>{var[,r]=t -e(89),e(48,Q(r))})),G.add(8,((e,t)=>{var[,r,i,n,s]=t -f(r)?e(1004,r,(t=>{B(e,t,i,null,n,s)})):$(e,r,i,null,n,s,!0,!0)})),G.add(18,((e,t)=>{var[,r,i]=t -return M(e,r,i)})),G.add(17,((e,t)=>{var[,r]=t -return M(e,r,null)})),G.add(26,((e,t)=>{var[,r]=t -return e(103,{type:3,value:void 0},r)})),G.add(1,((e,t)=>{var[,r]=t -if(Array.isArray(r))if(b(r))e(1008,r,{ifComponent(t){B(e,t,null,null,null,null)},ifHelper(t){e(0),P(e,t,null,null),e(3,c("cautious-non-dynamic-append")),e(1)},ifValue(t){e(0),e(29,t),e(3,c("cautious-non-dynamic-append")),e(1)}}) -else if(28===r[0]){var[,i,n,s]=r -v(i)?e(1007,i,{ifComponent(t){B(e,t,null,n,X(s),null)},ifHelper(t){e(0),P(e,t,n,s),e(3,c("cautious-non-dynamic-append")),e(1)}}):I(e,(()=>{O(e,i),e(106)}),(t=>{t(0,(()=>{e(81),e(79),H(e,{capabilities:!0,elementBlock:null,positional:n,named:s,atNames:!1,blocks:l(null)})})),t(1,(()=>{j(e,n,s,(()=>{e(3,c("cautious-non-dynamic-append"))}))}))}))}else e(0),O(e,r),e(3,c("cautious-append")),e(1) -else e(41,null==r?"":String(r))})),G.add(2,((e,t)=>{var[,r]=t -Array.isArray(r)?(e(0),O(e,r),e(3,c("trusting-append")),e(1)):e(41,null==r?"":String(r))})),G.add(6,((e,t)=>{var[,r,i,n,s]=t -f(r)?e(1004,r,(t=>{B(e,t,null,i,X(n),s)})):$(e,r,null,i,n,s,!1,!1)})),G.add(40,((e,t)=>{var[,i,n,s,a]=t -L(e,(()=>(O(e,n),void 0===a?S(e,void 0):O(e,a),O(e,s),e(33,r.$sp,0),4)),(()=>{e(50),D(e,i),e(56)}))})),G.add(41,((e,t)=>{var[,r,i,n]=t -return L(e,(()=>(O(e,r),e(71),1)),(()=>{D(e,i)}),n?()=>{D(e,n)}:void 0)})),G.add(42,((e,t)=>{var[,i,n,s,a]=t -return z(e,(()=>(n?O(e,n):S(e,null),O(e,i),2)),(()=>{e(72,u("BODY"),u("ELSE")),e(0),e(33,r.$fp,1),e(6,u("ITER")),e(1e3,"ITER"),e(74,u("BREAK")),e(1e3,"BODY"),N(e,s,2),e(34,2),e(4,u("FINALLY")),e(1e3,"BREAK"),e(1),e(73),e(4,u("FINALLY")),e(1e3,"ELSE"),a&&D(e,a)}))})),G.add(43,((e,t)=>{var[,i,n,s]=t -L(e,(()=>(O(e,i),e(33,r.$sp,0),e(71),2)),(()=>{N(e,n,1)}),(()=>{s&&D(e,s)}))})),G.add(44,((e,t)=>{var[,r,i]=t -N(e,i,A(e,r))})),G.add(45,((e,t)=>{var[,r,i]=t -if(r){var[n,s]=r -A(e,s),function(e,t,r){e(59),e(58,t),r(),e(60)}(e,n,(()=>{D(e,i)}))}else D(e,i)})),G.add(46,((e,t)=>{var[,r,i,n,s]=t -f(r)?e(1004,r,(t=>{B(e,t,null,i,X(n),s)})):$(e,r,null,i,n,s,!1,!1)})) -var Z=-1 -class ee{constructor(e,t,r,i){void 0===i&&(i="plain block"),this.statements=e,this.meta=t,this.symbolTable=r,this.moduleName=i,this.compiled=null}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled -e.compiled=Z -var{statements:r,meta:i}=e,n=re(r,i,t) -return e.compiled=n,n}(this,e)}}function te(e,t){var[r,i,n]=e.block -return new ee(r,T(e),{symbols:i,hasEval:n},t)}function re(e,t,r){var i=G,n=W(r,t),{encoder:s,program:{constants:a,resolver:o}}=n -function l(){for(var e=arguments.length,r=new Array(e),i=0;i`@${e}`)),e[1]]}G.add(3,((e,t)=>e(42,t[1]))),G.add(13,(e=>e(55))),G.add(12,(e=>e(54))),G.add(4,((e,[,t,i,n])=>{m(t)?e(1003,t,(t=>{e(0),E(e,i,n,!1),e(57,t),e(1)})):(O(e,t),e(0),E(e,i,n,!1),e(33,r.$fp,1),e(108),e(1))})),G.add(14,((e,[,t,r,i])=>{e(51,J(t),r,null!=i?i:null)})),G.add(24,((e,[,t,r,i])=>{e(105,J(t),r,null!=i?i:null)})),G.add(15,((e,[,t,r,i])=>{O(e,r),e(52,J(t),!1,null!=i?i:null)})),G.add(22,((e,[,t,r,i])=>{O(e,r),e(52,J(t),!0,null!=i?i:null)})),G.add(16,((e,[,t,r,i])=>{O(e,r),e(53,J(t),!1,null!=i?i:null)})),G.add(23,((e,[,t,r,i])=>{O(e,r),e(53,J(t),!0,null!=i?i:null)})),G.add(10,((e,[,t])=>{e(48,Q(t))})),G.add(11,((e,[,t])=>{e(89),e(48,Q(t))})),G.add(8,((e,[,t,r,i,n])=>{f(t)?e(1004,t,(t=>{B(e,t,r,null,i,n)})):$(e,t,r,null,i,n,!0,!0)})),G.add(18,((e,[,t,r])=>M(e,t,r))),G.add(17,((e,[,t])=>M(e,t,null))),G.add(26,((e,[,t])=>e(103,{type:3,value:void 0},t))),G.add(1,((e,[,t])=>{if(Array.isArray(t))if(b(t))e(1008,t,{ifComponent(t){B(e,t,null,null,null,null)},ifHelper(t){e(0),S(e,t,null,null),e(3,c("cautious-non-dynamic-append")),e(1)},ifValue(t){e(0),e(29,t),e(3,c("cautious-non-dynamic-append")),e(1)}}) +else if(28===t[0]){var[,r,i,n]=t +v(r)?e(1007,r,{ifComponent(t){B(e,t,null,i,X(n),null)},ifHelper(t){e(0),S(e,t,i,n),e(3,c("cautious-non-dynamic-append")),e(1)}}):I(e,(()=>{O(e,r),e(106)}),(t=>{t(0,(()=>{e(81),e(79),H(e,{capabilities:!0,elementBlock:null,positional:i,named:n,atNames:!1,blocks:l(null)})})),t(1,(()=>{j(e,i,n,(()=>{e(3,c("cautious-non-dynamic-append"))}))}))}))}else e(0),O(e,t),e(3,c("cautious-append")),e(1) +else e(41,null==t?"":String(t))})),G.add(2,((e,[,t])=>{Array.isArray(t)?(e(0),O(e,t),e(3,c("trusting-append")),e(1)):e(41,null==t?"":String(t))})),G.add(6,((e,[,t,r,i,n])=>{f(t)?e(1004,t,(t=>{B(e,t,null,r,X(i),n)})):$(e,t,null,r,i,n,!1,!1)})),G.add(40,((e,[,t,i,n,s])=>{L(e,(()=>(O(e,i),void 0===s?k(e,void 0):O(e,s),O(e,n),e(33,r.$sp,0),4)),(()=>{e(50),D(e,t),e(56)}))})),G.add(41,((e,[,t,r,i])=>L(e,(()=>(O(e,t),e(71),1)),(()=>{D(e,r)}),i?()=>{D(e,i)}:void 0))),G.add(42,((e,[,t,i,n,s])=>z(e,(()=>(i?O(e,i):k(e,null),O(e,t),2)),(()=>{e(72,u("BODY"),u("ELSE")),e(0),e(33,r.$fp,1),e(6,u("ITER")),e(1e3,"ITER"),e(74,u("BREAK")),e(1e3,"BODY"),N(e,n,2),e(34,2),e(4,u("FINALLY")),e(1e3,"BREAK"),e(1),e(73),e(4,u("FINALLY")),e(1e3,"ELSE"),s&&D(e,s)})))),G.add(43,((e,[,t,i,n])=>{L(e,(()=>(O(e,t),e(33,r.$sp,0),e(71),2)),(()=>{N(e,i,1)}),(()=>{n&&D(e,n)}))})),G.add(44,((e,[,t,r])=>{N(e,r,A(e,t))})),G.add(45,((e,[,t,r])=>{if(t){var[i,n]=t +A(e,n),function(e,t,r){e(59),e(58,t),r(),e(60)}(e,i,(()=>{D(e,r)}))}else D(e,r)})),G.add(46,((e,[,t,r,i,n])=>{f(t)?e(1004,t,(t=>{B(e,t,null,r,X(i),n)})):$(e,t,null,r,i,n,!1,!1)})) +class Z{constructor(e,t,r,i="plain block"){this.statements=e,this.meta=t,this.symbolTable=r,this.moduleName=i,this.compiled=null}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled +e.compiled=-1 +var{statements:r,meta:i}=e,n=te(r,i,t) +return e.compiled=n,n}(this,e)}}function ee(e,t){var[r,i,n]=e.block +return new Z(r,C(e),{symbols:i,hasEval:n},t)}function te(e,t,r){var i=G,n=W(r,t),{encoder:s,program:{constants:a,resolver:o}}=n +function l(...e){ie(s,a,o,t,e)}for(var u=0;ue(76)),(n=>{n(2,(()=>{t?(e(68),e(43)):e(47)})),"number"==typeof i?(n(0,(()=>{e(81),e(79),function(e){e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0),e(83),e(85,r.$s0),q(e,!1,!1,!0,(()=>{e(92,r.$s0),e(95,r.$s0)})),e(35,r.$s0)}(e)})),n(1,(()=>{j(e,null,null,(()=>{e(3,i)}))}))):(n(0,(()=>{e(47)})),n(1,(()=>{e(47)}))),n(4,(()=>{e(68),e(44)})),n(5,(()=>{e(68),e(45)})),n(6,(()=>{e(68),e(46)}))}))}function oe(e){var t=ue(e,(e=>function(e){e(75,r.$s0),q(e,!1,!1,!0)}(e))),i=ue(e,(e=>ae(e,!0,null))),n=ue(e,(e=>ae(e,!1,null))),s=ue(e,(e=>ae(e,!0,i))),a=ue(e,(e=>ae(e,!1,n))) -return new V(t,s,a,i,n)}var le={evalSymbols:null,upvars:null,moduleName:"stdlib",scopeValues:null,isStrictMode:!0,owner:null,size:0} -function ue(e,t){var{constants:r,heap:i,resolver:n}=e,s=new se(i,le) -t((function(){for(var e=arguments.length,t=new Array(e),i=0;ie(76)),(n=>{n(2,(()=>{t?(e(68),e(43)):e(47)})),"number"==typeof i?(n(0,(()=>{e(81),e(79),function(e){e(36,r.$s0),e(33,r.$sp,1),e(35,r.$s0),e(0),e(83),e(85,r.$s0),q(e,!1,!1,!0,(()=>{e(92,r.$s0),e(95,r.$s0)})),e(35,r.$s0)}(e)})),n(1,(()=>{j(e,null,null,(()=>{e(3,i)}))}))):(n(0,(()=>{e(47)})),n(1,(()=>{e(47)}))),n(4,(()=>{e(68),e(44)})),n(5,(()=>{e(68),e(45)})),n(6,(()=>{e(68),e(46)}))}))}function ae(e){var t=le(e,(e=>function(e){e(75,r.$s0),q(e,!1,!1,!0)}(e))),i=le(e,(e=>se(e,!0,null))),n=le(e,(e=>se(e,!1,null))),s=le(e,(e=>se(e,!0,i))),a=le(e,(e=>se(e,!1,n))) +return new V(t,s,a,i,n)}var oe={evalSymbols:null,upvars:null,moduleName:"stdlib",scopeValues:null,isStrictMode:!0,owner:null,size:0} +function le(e,t){var{constants:r,heap:i,resolver:n}=e,s=new ne(i,oe) +t((function(...e){ie(s,r,n,oe,e)})) var a=s.commit(0) if("number"!=typeof a)throw new Error("Unexpected errors compiling std") -return a}class ce{constructor(e,t){var{constants:r,heap:i}=e -this.resolver=t,this.constants=r,this.heap=i,this.stdlib=oe(this)}}e.CompileTimeCompilationContextImpl=ce -e.DEFAULT_CAPABILITIES={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!1,elementHook:!1,dynamicScope:!0,createCaller:!1,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1} -e.MINIMAL_CAPABILITIES={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,dynamicScope:!1,createCaller:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1} -class de{constructor(e,t){this.layout=e,this.moduleName=t,this.compiled=null +return a}class ue{constructor({constants:e,heap:t},r){this.resolver=r,this.constants=e,this.heap=t,this.stdlib=ae(this)}}e.CompileTimeCompilationContextImpl=ue +e.DEFAULT_CAPABILITIES={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!1,elementHook:!1,dynamicScope:!0,createCaller:!1,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1},e.MINIMAL_CAPABILITIES={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,dynamicScope:!1,createCaller:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1} +class ce{constructor(e,t){this.layout=e,this.moduleName=t,this.compiled=null var{block:r}=e,[,i,n]=r,s=(i=i.slice()).indexOf(U) this.attrsBlockNumber=-1===s?i.push(U):s+1,this.symbolTable={hasEval:n,symbols:i}}compile(e){if(null!==this.compiled)return this.compiled -var t,i,n,s=T(this.layout),a=W(e,s),{encoder:o,program:{constants:l,resolver:c}}=a -t=function(){for(var e=arguments.length,t=new Array(e),r=0;r{t(91,r.$s0),t(31),t(33,r.$sp,0)})),t(66,u("BODY")),t(36,r.$s1),t(89),t(49),t(99,r.$s0),M(t,n,null),t(54),t(1e3,"BODY"),D(t,[i.block[0],[]]),t(36,r.$s1),t(66,u("END")),t(55),t(1e3,"END"),t(35,r.$s1),t(1002) +var t,i,n,s=C(this.layout),a=W(e,s),{encoder:o,program:{constants:l,resolver:c}}=a +t=function(...e){ie(o,l,c,s,e)},i=this.layout,n=this.attrsBlockNumber,t(1001),function(e,t,r){e(36,t),r(),e(35,t)}(t,r.$s1,(()=>{t(91,r.$s0),t(31),t(33,r.$sp,0)})),t(66,u("BODY")),t(36,r.$s1),t(89),t(49),t(99,r.$s0),M(t,n,null),t(54),t(1e3,"BODY"),D(t,[i.block[0],[]]),t(36,r.$s1),t(66,u("END")),t(55),t(1e3,"END"),t(35,r.$s1),t(1002) var d=a.encoder.commit(s.size) -return"number"!=typeof d||(this.compiled=d),d}}e.WrappedBuilder=de -var he=0,pe={cacheHit:0,cacheMiss:0} -e.templateCacheCounters=pe -class fe{constructor(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.wrappedLayout=null}get moduleName(){return this.parsedLayout.moduleName}get id(){return this.parsedLayout.id}get referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner}}asLayout(){return this.layout?this.layout:this.layout=te((0,t.assign)({},this.parsedLayout),this.moduleName)}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new de((0,t.assign)({},this.parsedLayout),this.moduleName)}}})),e("@glimmer/owner",["exports","@glimmer/util"],(function(e,t){"use strict" +return"number"!=typeof d||(this.compiled=d),d}}e.WrappedBuilder=ce +var de=0,he=e.templateCacheCounters={cacheHit:0,cacheMiss:0} +class pe{constructor(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.wrappedLayout=null}get moduleName(){return this.parsedLayout.moduleName}get id(){return this.parsedLayout.id}get referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner}}asLayout(){return this.layout?this.layout:this.layout=ee((0,t.assign)({},this.parsedLayout),this.moduleName)}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new ce((0,t.assign)({},this.parsedLayout),this.moduleName)}}})),e("@glimmer/owner",["exports","@glimmer/util"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.OWNER=void 0,e.getOwner=function(e){return e[r]},e.setOwner=function(e,t){e[r]=t} -var r=(0,t.symbol)("OWNER") -e.OWNER=r})),e("@glimmer/program",["exports","@glimmer/util","@glimmer/manager","@glimmer/opcode-compiler"],(function(e,t,r,i){"use strict" +var r=e.OWNER=(0,t.symbol)("OWNER")})),e("@glimmer/program",["exports","@glimmer/util","@glimmer/manager","@glimmer/opcode-compiler"],(function(e,t,r,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.RuntimeProgramImpl=e.RuntimeOpImpl=e.RuntimeHeapImpl=e.RuntimeConstantsImpl=e.HeapImpl=e.ConstantsImpl=e.CompileTimeConstantImpl=void 0,e.artifacts=function(){return{constants:new u,heap:new p}},e.hydrateHeap=function(e){return new h(e)} var n={id:"1b32f5c2-7623-43d6-a0ad-9672898920a1",moduleName:"__default__.hbs",block:JSON.stringify([[[18,1,null]],["&default"],!1,[]]),scope:null,isStrictMode:!0},s=Object.freeze([]),a=(0,t.constants)(s),o=a.indexOf(s) class l{constructor(){this.values=a.slice(),this.indexMap=new Map(this.values.map(((e,t)=>[e,t])))}value(e){var t=this.indexMap,r=t.get(e) @@ -2251,13 +1979,11 @@ for(var t=new Array(e.length),r=0;rm(e)),(t=>g(e,t))) +return r},e.createDebugAliasRef=void 0,e.createInvokableRef=function(e){var t=u((()=>d(e)),(t=>h(e,t))) return t.debugLabel=e.debugLabel,t[n]=3,t},e.createIteratorItemRef=function(e){var t=e,r=(0,i.createTag)() -return p((()=>((0,i.consumeTag)(r),t)),(e=>{t!==e&&(t=e,(0,i.dirtyTag)(r))}))},e.createIteratorRef=function(e,i){return p((()=>{var n=m(e),s=function(e){switch(e){case"@key":return E(y) -case"@index":return E(_) -case"@identity":return E(w) +return u((()=>((0,i.consumeTag)(r),t)),(e=>{t!==e&&(t=e,(0,i.dirtyTag)(r))}))},e.createIteratorRef=function(e,i){return u((()=>{var n=d(e),s=function(e){switch(e){case"@key":return _(m) +case"@index":return _(g) +case"@identity":return _(v) default:return function(e){0 -return E((r=>(0,t.getPath)(r,e)))}(e)}}(i) -if(Array.isArray(n))return new T(n,s) +return _((r=>(0,t.getPath)(r,e)))}(e)}}(i) +if(Array.isArray(n))return new R(n,s) var a=(0,t.toIterator)(n) -return null===a?new T(r.EMPTY_ARRAY,(()=>null)):new A(a,s)}))},e.createPrimitiveRef=a,e.createReadOnlyRef=function(e){return f(e)?p((()=>m(e)),null,e.debugLabel):e},e.createUnboundRef=h,e.isConstRef=function(e){return e.tag===i.CONSTANT_TAG},e.isInvokableRef=function(e){return 3===e[n]},e.isUpdatableRef=f,e.updateRef=g,e.valueForRef=m -var n=(0,r.symbol)("REFERENCE") -e.REFERENCE=n +return null===a?new R(r.EMPTY_ARRAY,(()=>null)):new w(a,s)}))},e.createPrimitiveRef=a,e.createReadOnlyRef=function(e){return c(e)?u((()=>d(e)),null,e.debugLabel):e},e.createUnboundRef=l,e.isConstRef=function(e){return e.tag===i.CONSTANT_TAG},e.isInvokableRef=function(e){return 3===e[n]},e.isUpdatableRef=c,e.updateRef=h,e.valueForRef=d +var n=e.REFERENCE=(0,r.symbol)("REFERENCE") class s{constructor(e){this.tag=null,this.lastRevision=i.INITIAL,this.children=null,this.compute=null,this.update=null,this[n]=e}}function a(e){var t=new s(2) -return t.tag=i.CONSTANT_TAG,t.lastValue=e,t}var o=a(void 0) -e.UNDEFINED_REFERENCE=o -var l=a(null) -e.NULL_REFERENCE=l -var u=a(!0) -e.TRUE_REFERENCE=u -var c,d=a(!1) -function h(e,t){var r=new s(2) -return r.lastValue=e,r.tag=i.CONSTANT_TAG,r}function p(e,t,r){void 0===t&&(t=null),void 0===r&&(r="unknown") -var i=new s(1) -return i.compute=e,i.update=t,i}function f(e){return null!==e.update}function m(e){var t=e,{tag:r}=t +return t.tag=i.CONSTANT_TAG,t.lastValue=e,t}var o=e.UNDEFINED_REFERENCE=a(void 0) +e.NULL_REFERENCE=a(null),e.TRUE_REFERENCE=a(!0),e.FALSE_REFERENCE=a(!1) +function l(e,t){var r=new s(2) +return r.lastValue=e,r.tag=i.CONSTANT_TAG,r}function u(e,t=null,r="unknown"){var i=new s(1) +return i.compute=e,i.update=t,i}function c(e){return null!==e.update}function d(e){var t=e,{tag:r}=t if(r===i.CONSTANT_TAG)return t.lastValue var n,{lastRevision:s}=t if(null!==r&&(0,i.validateTag)(r,s))n=t.lastValue else{var{compute:a}=t -r=t.tag=(0,i.track)((()=>{n=t.lastValue=a()}),!1),t.lastRevision=(0,i.valueForTag)(r)}return(0,i.consumeTag)(r),n}function g(e,t){(0,e.update)(t)}function v(e,i){var s,a=e,l=a[n],u=a.children -if(null===u)u=a.children=new Map -else if(void 0!==(s=u.get(i)))return s -if(2===l){var c=m(a) -s=(0,r.isDict)(c)?h(c[i]):o}else s=p((()=>{var e=m(a) -if((0,r.isDict)(e))return(0,t.getProp)(e,i)}),(e=>{var n=m(a) +r=t.tag=(0,i.track)((()=>{n=t.lastValue=a()}),!1),t.lastRevision=(0,i.valueForTag)(r)}return(0,i.consumeTag)(r),n}function h(e,t){(0,e.update)(t)}function p(e,i){var s,a=e,c=a[n],h=a.children +if(null===h)h=a.children=new Map +else if(void 0!==(s=h.get(i)))return s +if(2===c){var p=d(a) +s=(0,r.isDict)(p)?l(p[i]):o}else s=u((()=>{var e=d(a) +if((0,r.isDict)(e))return(0,t.getProp)(e,i)}),(e=>{var n=d(a) if((0,r.isDict)(n))return(0,t.setProp)(n,i,e)})) -return u.set(i,s),s}e.FALSE_REFERENCE=d,e.createDebugAliasRef=c -var b={},y=(e,t)=>t,_=(e,t)=>String(t),w=e=>null===e?b:e -class R{get weakMap(){return void 0===this._weakMap&&(this._weakMap=new WeakMap),this._weakMap}get primitiveMap(){return void 0===this._primitiveMap&&(this._primitiveMap=new Map),this._primitiveMap}set(e,t){(0,r.isObject)(e)?this.weakMap.set(e,t):this.primitiveMap.set(e,t)}get(e){return(0,r.isObject)(e)?this.weakMap.get(e):this.primitiveMap.get(e)}}var O=new R -function E(e){var t=new R +return h.set(i,s),s}var f={},m=(e,t)=>t,g=(e,t)=>String(t),v=e=>null===e?f:e +class b{get weakMap(){return void 0===this._weakMap&&(this._weakMap=new WeakMap),this._weakMap}get primitiveMap(){return void 0===this._primitiveMap&&(this._primitiveMap=new Map),this._primitiveMap}set(e,t){(0,r.isObject)(e)?this.weakMap.set(e,t):this.primitiveMap.set(e,t)}get(e){return(0,r.isObject)(e)?this.weakMap.get(e):this.primitiveMap.get(e)}}var y=new b +function _(e){var t=new b return(r,i)=>{var n=e(r,i),s=t.get(n)||0 -return t.set(n,s+1),0===s?n:function(e,t){var r=O.get(e) -void 0===r&&(r=[],O.set(e,r)) +return t.set(n,s+1),0===s?n:function(e,t){var r=y.get(e) +void 0===r&&(r=[],y.set(e,r)) var i=r[t] -return void 0===i&&(i={value:e,count:t},r[t]=i),i}(n,s)}}class A{constructor(e,t){this.inner=e,this.keyFor=t}isEmpty(){return this.inner.isEmpty()}next(){var e=this.inner.next() -return null!==e&&(e.key=this.keyFor(e.value,e.memo)),e}}class T{constructor(e,t){this.iterator=e,this.keyFor=t,this.pos=0,0===e.length?this.current={kind:"empty"}:this.current={kind:"first",value:e[this.pos]}}isEmpty(){return"empty"===this.current.kind}next(){var e,t=this.current +return void 0===i&&(i={value:e,count:t},r[t]=i),i}(n,s)}}class w{constructor(e,t){this.inner=e,this.keyFor=t}isEmpty(){return this.inner.isEmpty()}next(){var e=this.inner.next() +return null!==e&&(e.key=this.keyFor(e.value,e.memo)),e}}class R{constructor(e,t){this.iterator=e,this.keyFor=t,this.pos=0,0===e.length?this.current={kind:"empty"}:this.current={kind:"first",value:e[this.pos]}}isEmpty(){return"empty"===this.current.kind}next(){var e,t=this.current if("first"===t.kind)this.current={kind:"progress"},e=t.value else{if(this.pos>=this.iterator.length-1)return null e=this.iterator[++this.pos]}var{keyFor:r}=this return{key:r(e,this.pos),value:e,memo:this.pos}}}})),e("@glimmer/runtime",["exports","@glimmer/util","@glimmer/reference","@glimmer/global-context","@glimmer/destroyable","@glimmer/vm","@glimmer/validator","@glimmer/manager","@glimmer/program","@glimmer/owner","@glimmer/runtime"],(function(e,t,r,i,n,s,a,o,l,u,c){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.UpdatingVM=e.UpdatableBlockImpl=e.TemplateOnlyComponentManager=e.TemplateOnlyComponent=e.TEMPLATE_ONLY_COMPONENT_MANAGER=e.SimpleDynamicAttribute=e.SERIALIZATION_FIRST_NODE_STRING=e.RemoteLiveBlock=e.RehydrateBuilder=e.PartialScopeImpl=e.NewElementBuilder=e.LowLevelVM=e.IDOMChanges=e.EnvironmentImpl=e.EMPTY_POSITIONAL=e.EMPTY_NAMED=e.EMPTY_ARGS=e.DynamicScopeImpl=e.DynamicAttribute=e.DOMTreeConstruction=e.DOMChanges=e.CursorImpl=e.CurriedValue=e.ConcreteBounds=void 0,e.clear=E,e.clientBuilder=function(e,t){return se.forInitialRender(e,t)},e.concat=void 0,e.createCapturedArgs=je,e.curry=Re,Object.defineProperty(e,"destroy",{enumerable:!0,get:function(){return n.destroy}}),e.dynamicAttribute=W,e.hash=e.get=e.fn=void 0,e.inTransaction=Nt,e.invokeHelper=function(e,t,r){0 +Object.defineProperty(e,"__esModule",{value:!0}),e.array=e.UpdatingVM=e.UpdatableBlockImpl=e.TemplateOnlyComponentManager=e.TemplateOnlyComponent=e.TEMPLATE_ONLY_COMPONENT_MANAGER=e.SimpleDynamicAttribute=e.SERIALIZATION_FIRST_NODE_STRING=e.RemoteLiveBlock=e.RehydrateBuilder=e.PartialScopeImpl=e.NewElementBuilder=e.LowLevelVM=e.IDOMChanges=e.EnvironmentImpl=e.EMPTY_POSITIONAL=e.EMPTY_NAMED=e.EMPTY_ARGS=e.DynamicScopeImpl=e.DynamicAttribute=e.DOMTreeConstruction=e.DOMChanges=e.CursorImpl=e.CurriedValue=e.ConcreteBounds=void 0,e.clear=E,e.clientBuilder=function(e,t){return se.forInitialRender(e,t)},e.concat=void 0,e.createCapturedArgs=je,e.curry=Re,Object.defineProperty(e,"destroy",{enumerable:!0,get:function(){return n.destroy}}),e.dynamicAttribute=W,e.hash=e.get=e.fn=void 0,e.inTransaction=Dt,e.invokeHelper=function(e,t,r){0 var i=(0,u.getOwner)(e),s=(0,o.getInternalHelperManager)(t) 0 0 -var l,c=s.getDelegateFor(i),d=new ur(e,r),h=c.createHelper(t,d) +var l,c=s.getDelegateFor(i),d=new lr(e,r),h=c.createHelper(t,d) if(!(0,o.hasValue)(c))throw new Error("TODO: unreachable, to be implemented with hasScheduledEffect") l=(0,a.createCache)((()=>c.getValue(h))),(0,n.associateDestroyableChild)(e,l) -if((0,o.hasDestroyable)(c)){var p=c.getDestroyable(h);(0,n.associateDestroyableChild)(l,p)}return l},Object.defineProperty(e,"isDestroyed",{enumerable:!0,get:function(){return n.isDestroyed}}),Object.defineProperty(e,"isDestroying",{enumerable:!0,get:function(){return n.isDestroying}}),e.isSerializationFirstNode=function(e){return e.nodeValue===Jt},e.isWhitespace=function(e){return _t.test(e)},e.normalizeProperty=P,e.on=void 0,Object.defineProperty(e,"registerDestructor",{enumerable:!0,get:function(){return n.registerDestructor}}),e.rehydrationBuilder=function(e,t){return Zt.forInitialRender(e,t)},e.reifyArgs=De,e.reifyNamed=Me,e.reifyPositional=xe,e.renderComponent=function(e,i,n,s,a,o,l){void 0===o&&(o={}) -void 0===l&&(l=new d) -var u=Gt.empty(e,{treeBuilder:i,handle:n.stdlib.main,dynamicScope:l,owner:s},n) -return function(e,r,i,n,s){var a=Object.keys(s).map((e=>[e,s[e]])),o=["main","else","attrs"],l=a.map((e=>{var[t]=e -return`@${t}`})),u=e[b].component(n,i) +if((0,o.hasDestroyable)(c)){var p=c.getDestroyable(h);(0,n.associateDestroyableChild)(l,p)}return l},Object.defineProperty(e,"isDestroyed",{enumerable:!0,get:function(){return n.isDestroyed}}),Object.defineProperty(e,"isDestroying",{enumerable:!0,get:function(){return n.isDestroying}}),e.isSerializationFirstNode=function(e){return e.nodeValue===Qt},e.isWhitespace=function(e){return _t.test(e)},e.normalizeProperty=S,e.on=void 0,Object.defineProperty(e,"registerDestructor",{enumerable:!0,get:function(){return n.registerDestructor}}),e.rehydrationBuilder=function(e,t){return Xt.forInitialRender(e,t)},e.reifyArgs=De,e.reifyNamed=Me,e.reifyPositional=xe,e.renderComponent=function(e,i,n,s,a,o={},l=new d){var u=Wt.empty(e,{treeBuilder:i,handle:n.stdlib.main,dynamicScope:l,owner:s},n) +return function(e,r,i,n,s){var a=Object.keys(s).map((e=>[e,s[e]])),o=["main","else","attrs"],l=a.map((([e])=>`@${e}`)),u=e[b].component(n,i) e.pushFrame() for(var c=0;c<3*o.length;c++)e.stack.push(null) -e.stack.push(null),a.forEach((t=>{var[,r]=t -e.stack.push(r)})),e[y].setup(e.stack,l,o,0,!0) +e.stack.push(null),a.forEach((([,t])=>{e.stack.push(t)})),e[y].setup(e.stack,l,o,0,!0) var d=u.compilable,h=(0,t.unwrapHandle)(d.compile(r)),p={handle:h,symbolTable:d.symbolTable} -return e.stack.push(e[y]),e.stack.push(p),e.stack.push(u),new Qt(e)}(u,n,s,a,(c=o,h=(0,r.createConstRef)(c,"args"),Object.keys(c).reduce(((e,t)=>(e[t]=(0,r.childRefFor)(h,t),e)),{}))) -var c,h},e.renderMain=function(e,r,i,n,s,a,o){void 0===o&&(o=new d) -var l=(0,t.unwrapHandle)(a.compile(r)),u=a.symbolTable.symbols.length,c=Gt.initial(e,r,{self:n,dynamicScope:o,treeBuilder:s,handle:l,numSymbols:u,owner:i}) -return new Qt(c)},e.renderSync=function(e,t){var r -return Nt(e,(()=>r=t.sync())),r},e.resetDebuggerCallback=function(){ot=at},e.runtimeContext=function(e,t,r,i){return{env:new Dt(e,t),program:new l.RuntimeProgramImpl(r.constants,r.heap),resolver:i}},e.setDebuggerCallback=function(e){ot=e},e.templateOnlyComponent=function(e,t){return new ht(e,t)} +return e.stack.push(e[y]),e.stack.push(p),e.stack.push(u),new Kt(e)}(u,n,s,a,(c=o,h=(0,r.createConstRef)(c,"args"),Object.keys(c).reduce(((e,t)=>(e[t]=(0,r.childRefFor)(h,t),e)),{}))) +var c,h},e.renderMain=function(e,r,i,n,s,a,o=new d){var l=(0,t.unwrapHandle)(a.compile(r)),u=a.symbolTable.symbols.length,c=Wt.initial(e,r,{self:n,dynamicScope:o,treeBuilder:s,handle:l,numSymbols:u,owner:i}) +return new Kt(c)},e.renderSync=function(e,t){var r +return Dt(e,(()=>r=t.sync())),r},e.resetDebuggerCallback=function(){ot=at},e.runtimeContext=function(e,t,r,i){return{env:new xt(e,t),program:new l.RuntimeProgramImpl(r.constants,r.heap),resolver:i}},e.setDebuggerCallback=function(e){ot=e},e.templateOnlyComponent=function(e,t){return new ht(e,t)} class d{constructor(e){this.bucket=e?(0,t.assign)({},e):{}}get(e){return this.bucket[e]}set(e,t){return this.bucket[e]=t}child(){return new d(this.bucket)}}e.DynamicScopeImpl=d -class h{constructor(e,t,r,i,n){this.slots=e,this.owner=t,this.callerScope=r,this.evalScope=i,this.partialMap=n}static root(e,t,i){void 0===t&&(t=0) -for(var n=new Array(t+1),s=0;s<=t;s++)n[s]=r.UNDEFINED_REFERENCE -return new h(n,i,null,null,null).init({self:e})}static sized(e,t){void 0===e&&(e=0) -for(var i=new Array(e+1),n=0;n<=e;n++)i[n]=r.UNDEFINED_REFERENCE -return new h(i,t,null,null,null)}init(e){var{self:t}=e -return this.slots[0]=t,this}getSelf(){return this.get(0)}getSymbol(e){return this.get(e)}getBlock(e){var t=this.get(e) +class h{constructor(e,t,r,i,n){this.slots=e,this.owner=t,this.callerScope=r,this.evalScope=i,this.partialMap=n}static root(e,t=0,i){for(var n=new Array(t+1),s=0;s<=t;s++)n[s]=r.UNDEFINED_REFERENCE +return new h(n,i,null,null,null).init({self:e})}static sized(e=0,t){for(var i=new Array(e+1),n=0;n<=e;n++)i[n]=r.UNDEFINED_REFERENCE +return new h(i,t,null,null,null)}init({self:e}){return this.slots[0]=e,this}getSelf(){return this.get(0)}getSymbol(e){return this.get(e)}getBlock(e){var t=this.get(e) return t===r.UNDEFINED_REFERENCE?null:t}getEvalScope(){return this.evalScope}getPartialMap(){return this.partialMap}bind(e,t){this.set(e,t)}bindSelf(e){this.set(0,e)}bindSymbol(e,t){this.set(e,t)}bindBlock(e,t){this.set(e,t)}bindEvalScope(e){this.evalScope=e}bindPartialMap(e){this.partialMap=e}bindCallerScope(e){this.callerScope=e}getCallerScope(){return this.callerScope}child(){return new h(this.slots.slice(),this.owner,this.callerScope,this.evalScope,this.partialMap)}get(e){if(e>=this.slots.length)throw new RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`) return this.slots[e]}set(e,t){if(e>=this.slots.length)throw new RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`) this.slots[e]=t}}e.PartialScopeImpl=h @@ -2377,7 +2086,7 @@ class R{constructor(e,t){this.parentNode=e,this.node=t}parentElement(){return th if(r.insertBefore(s,t),s===n)return a s=a}}function E(e){for(var t=e.parentElement(),r=e.firstNode(),i=e.lastNode(),n=r;;){var s=n.nextSibling if(t.removeChild(n),n===i)return s -n=s}}function A(e){return T(e)?"":String(e)}function T(e){return null==e||"function"!=typeof e.toString}function C(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function S(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function k(e){return"string"==typeof e}function P(e,t){var r,i,n,s,a +n=s}}function A(e){return C(e)?"":String(e)}function C(e){return null==e||"function"!=typeof e.toString}function T(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function k(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function P(e){return"string"==typeof e}function S(e,t){var r,i,n,s,a if(t in e)i=t,r="prop" else{var o=t.toLowerCase() o in e?(r="prop",i=o):(r="attr",i=t)}return"prop"===r&&("style"===i.toLowerCase()||(n=e.tagName,s=i,(a=j[n.toUpperCase()])&&a[s.toLowerCase()]))&&(r="attr"),{normalized:i,type:r}}var j={INPUT:{form:!0,autocorrect:!0,list:!0},SELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0},OUTPUT:{form:!0},BUTTON:{form:!0}} @@ -2388,14 +2097,13 @@ return"string"==typeof e&&(t=H.parse(e).protocol),null===t?":":t}}else if("funct else{var q=document.createElement("a") M=e=>(q.href=e,q.protocol)}function V(e,t,r){var i=null if(null==r)return r -if(C(r))return r.toHTML() +if(T(r))return r.toHTML() i=e?e.tagName.toUpperCase():null var n=A(r) if(U(i,t)){var s=M(n) -if(L(D,s))return`unsafe:${n}`}return B(i,t)?`unsafe:${n}`:n}function W(e,t,r,i){void 0===i&&(i=!1) -var{tagName:n,namespaceURI:s}=e,a={element:e,name:t,namespace:r} +if(L(D,s))return`unsafe:${n}`}return B(i,t)?`unsafe:${n}`:n}function W(e,t,r,i=!1){var{tagName:n,namespaceURI:s}=e,a={element:e,name:t,namespace:r} if("http://www.w3.org/2000/svg"===s)return G(n,t,a) -var{type:o,normalized:l}=P(e,t) +var{type:o,normalized:l}=S(e,t) return"attr"===o?G(n,l,a):function(e,t,r){if($(e,t))return new J(t,r) if(function(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}(e,t))return new Z(t,r) if(function(e,t){return"OPTION"===e&&"selected"===t}(e,t))return new ee(t,r) @@ -2414,13 +2122,12 @@ super.update(n,t)}}class Z extends Q{set(e,t){e.__setProperty("value",A(t))}upda r!==i&&(t.value=i)}}class ee extends Q{set(e,t){null!=t&&!1!==t&&e.__setProperty("selected",!0)}update(e){var t=this.attribute.element t.selected=!!e}}function te(e){return!1===e||null==e||void 0===e.toString?null:!0===e?"":"function"==typeof e?null:String(e)}class re{constructor(e){this.node=e}firstNode(){return this.node}}class ie{constructor(e){this.node=e}lastNode(){return this.node}}var ne=(0,t.symbol)("CURSOR_STACK") class se{constructor(e,r,i){this.constructing=null,this.operations=null,this[x]=new t.Stack,this.modifierStack=new t.Stack,this.blockStack=new t.Stack,this.pushElement(r,i),this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM()}static forInitialRender(e,t){return new this(e,t.element,t.nextSibling).initialize()}static resume(e,t){var r=new this(e,t.parentElement(),t.reset(e)).initialize() -return r.pushLiveBlock(t),r}initialize(){return this.pushSimpleBlock(),this}debugBlocks(){return this.blockStack.toArray()}get element(){return this[ne].current.element}get nextSibling(){return this[ne].current.nextSibling}get hasBlocks(){return this.blockStack.size>0}block(){return this.blockStack.current}popElement(){this[ne].pop(),this[ne].current}pushSimpleBlock(){return this.pushLiveBlock(new ae(this.element))}pushUpdatableBlock(){return this.pushLiveBlock(new le(this.element))}pushBlockList(e){return this.pushLiveBlock(new ue(this.element,e))}pushLiveBlock(e,t){void 0===t&&(t=!1) -var r=this.blockStack.current +return r.pushLiveBlock(t),r}initialize(){return this.pushSimpleBlock(),this}debugBlocks(){return this.blockStack.toArray()}get element(){return this[ne].current.element}get nextSibling(){return this[ne].current.nextSibling}get hasBlocks(){return this.blockStack.size>0}block(){return this.blockStack.current}popElement(){this[ne].pop(),this[ne].current}pushSimpleBlock(){return this.pushLiveBlock(new ae(this.element))}pushUpdatableBlock(){return this.pushLiveBlock(new le(this.element))}pushBlockList(e){return this.pushLiveBlock(new ue(this.element,e))}pushLiveBlock(e,t=!1){var r=this.blockStack.current return null!==r&&(t||r.didAppendBounds(e)),this.__openBlock(),this.blockStack.push(e),e}popBlock(){return this.block().finalize(this),this.__closeBlock(),this.blockStack.pop()}__openBlock(){}__closeBlock(){}openElement(e){var t=this.__openElement(e) return this.constructing=t,t}__openElement(e){return this.dom.createElement(e,this.element)}flushElement(e){var t=this.element,r=this.constructing this.__flushElement(t,r),this.constructing=null,this.operations=null,this.pushModifiers(e),this.pushElement(r,null),this.didOpenElement(r)}__flushElement(e,t){this.dom.insertBefore(e,t,this.nextSibling)}closeElement(){return this.willCloseElement(),this.popElement(),this.popModifiers()}pushRemoteElement(e,t,r){return this.__pushRemoteElement(e,t,r)}__pushRemoteElement(e,t,r){if(this.pushElement(e,r),void 0===r)for(;e.lastChild;)e.removeChild(e.lastChild) var i=new oe(e) -return this.pushLiveBlock(i,!0)}popRemoteElement(){this.popBlock(),this.popElement()}pushElement(e,t){void 0===t&&(t=null),this[ne].push(new _(e,t))}pushModifiers(e){this.modifierStack.push(e)}popModifiers(){return this.modifierStack.pop()}didAppendBounds(e){return this.block().didAppendBounds(e),e}didAppendNode(e){return this.block().didAppendNode(e),e}didOpenElement(e){return this.block().openElement(e),e}willCloseElement(){this.block().closeElement()}appendText(e){return this.didAppendNode(this.__appendText(e))}__appendText(e){var{dom:t,element:r,nextSibling:i}=this,n=t.createTextNode(e) +return this.pushLiveBlock(i,!0)}popRemoteElement(){this.popBlock(),this.popElement()}pushElement(e,t=null){this[ne].push(new _(e,t))}pushModifiers(e){this.modifierStack.push(e)}popModifiers(){return this.modifierStack.pop()}didAppendBounds(e){return this.block().didAppendBounds(e),e}didAppendNode(e){return this.block().didAppendNode(e),e}didOpenElement(e){return this.block().openElement(e),e}willCloseElement(){this.block().closeElement()}appendText(e){return this.didAppendNode(this.__appendText(e))}__appendText(e){var{dom:t,element:r,nextSibling:i}=this,n=t.createTextNode(e) return t.insertBefore(r,n,i),n}__appendNode(e){return this.dom.insertBefore(this.element,e,this.nextSibling),e}__appendFragment(e){var t=e.firstChild if(t){var r=new w(this.element,t,e.lastChild) return this.dom.insertBefore(this.element,e,this.nextSibling),r}return new R(this.element,this.__appendComment(""))}__appendHTML(e){return this.dom.insertHTMLBefore(this.element,this.nextSibling,e)}appendDynamicHTML(e){var t=this.trustedContent(e) @@ -2435,14 +2142,14 @@ class le extends ae{reset(){(0,n.destroy)(this) var e=E(this) return this.first=null,this.last=null,this.nesting=0,e}}e.UpdatableBlockImpl=le class ue{constructor(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}parentElement(){return this.parent}firstNode(){return this.boundList[0].firstNode()}lastNode(){var e=this.boundList -return e[e.length-1].lastNode()}openElement(e){}closeElement(){}didAppendNode(e){}didAppendBounds(e){}finalize(e){}}var ce=new class{constructor(){this.evaluateOpcode=(0,t.fillNulls)(104).slice()}add(e,t,r){void 0===r&&(r="syscall"),this.evaluateOpcode[e]={syscall:"machine"!==r,evaluate:t}}debugBefore(e,t){return{sp:undefined,pc:e.fetchValue(s.$pc),name:undefined,params:undefined,type:t.type,isMachine:t.isMachine,size:t.size,state:void 0}}debugAfter(e,t){}evaluate(e,t,r){var i=this.evaluateOpcode[r] +return e[e.length-1].lastNode()}openElement(e){}closeElement(){}didAppendNode(e){}didAppendBounds(e){}finalize(e){}}var ce=new class{constructor(){this.evaluateOpcode=(0,t.fillNulls)(104).slice()}add(e,t,r="syscall"){this.evaluateOpcode[e]={syscall:"machine"!==r,evaluate:t}}debugBefore(e,t){return{sp:undefined,pc:e.fetchValue(s.$pc),name:undefined,params:undefined,type:t.type,isMachine:t.isMachine,size:t.size,state:void 0}}debugAfter(e,t){}evaluate(e,t,r){var i=this.evaluateOpcode[r] i.syscall?i.evaluate(e,t):i.evaluate(e[p],t)}} function de(e){return"function"!=typeof e.toString?"":String(e)}var he=(0,t.symbol)("TYPE"),pe=(0,t.symbol)("INNER"),fe=(0,t.symbol)("OWNER"),me=(0,t.symbol)("ARGS"),ge=(0,t.symbol)("RESOLVED"),ve=new t._WeakSet -function be(e){return ve.has(e)}function ye(e,t){return be(e)&&e[he]===t}class _e{constructor(e,t,r,i,n){void 0===n&&(n=!1),ve.add(this),this[he]=e,this[pe]=t,this[fe]=r,this[me]=i,this[ge]=n}}function we(e){for(var t,r,i,n,s,a=e;;){var{[me]:o,[pe]:l}=a +function be(e){return ve.has(e)}function ye(e,t){return be(e)&&e[he]===t}class _e{constructor(e,t,r,i,n=!1){ve.add(this),this[he]=e,this[pe]=t,this[fe]=r,this[me]=i,this[ge]=n}}function we(e){for(var t,r,i,n,s,a=e;;){var{[me]:o,[pe]:l}=a if(null!==o){var{named:u,positional:c}=o c.length>0&&(t=void 0===t?c:c.concat(t)),void 0===r&&(r=[]),r.unshift(u)}if(!be(l)){i=l,n=a[fe],s=a[ge] -break}a=l}return{definition:i,owner:n,resolved:s,positional:t,named:r}}function Re(e,t,r,i,n){return void 0===n&&(n=!1),new _e(e,t,r,i,n)}e.CurriedValue=_e -class Oe{constructor(){this.stack=null,this.positional=new Ae,this.named=new Te,this.blocks=new ke}empty(e){var t=e[g][s.$sp]+1 +break}a=l}return{definition:i,owner:n,resolved:s,positional:t,named:r}}function Re(e,t,r,i,n=!1){return new _e(e,t,r,i,n)}e.CurriedValue=_e +class Oe{constructor(){this.stack=null,this.positional=new Ae,this.named=new Ce,this.blocks=new Pe}empty(e){var t=e[g][s.$sp]+1 return this.named.empty(e,t),this.positional.empty(e,t),this.blocks.empty(e,t),this}setup(e,t,r,i,n){this.stack=e var a=this.named,o=t.length,l=e[g][s.$sp]-o+1 a.setup(e,l,o,t,n) @@ -2461,100 +2168,82 @@ this.base=r-=t,this.length=i+t for(var s=0;s0){for(var{names:r,length:i,stack:n}=this,s=r.slice(),a=0;a{var{op1:n,op2:a}=i,o=e.stack,l=o.pop(),u=o.pop(),c=e.getOwner() +return e.getValue(i)}function Le(e){return e===r.UNDEFINED_REFERENCE}function Ue(e){return"getDebugCustomRenderTree"in e}ce.add(77,((e,{op1:i,op2:n})=>{var a=e.stack,o=a.pop(),l=a.pop(),u=e.getOwner() e.runtime.resolver e.loadValue(s.$v0,function(e,i,n,s,a,o){var l,u return(0,r.createComputeRef)((()=>{var a=(0,r.valueForRef)(i) -return a===l||(u=ye(a,e)?s?Re(e,a,n,s):s:0===e&&"string"==typeof a&&a||(0,t.isObject)(a)?Re(e,a,n,s):null,l=a),u}))}(n,l,c,u))})),ce.add(107,(e=>{var i,a=e.stack,o=a.pop(),l=a.pop().capture(),u=e.getOwner(),c=(0,r.createComputeRef)((()=>{void 0!==i&&(0,n.destroy)(i) +return a===l||(u=ye(a,e)?s?Re(e,a,n,s):s:0===e&&"string"==typeof a&&a||(0,t.isObject)(a)?Re(e,a,n,s):null,l=a),u}))}(i,o,u,l))})),ce.add(107,(e=>{var i,a=e.stack,o=a.pop(),l=a.pop().capture(),u=e.getOwner(),c=(0,r.createComputeRef)((()=>{void 0!==i&&(0,n.destroy)(i) var s=(0,r.valueForRef)(o) if(ye(s,1)){var{definition:a,owner:d,positional:h,named:p}=we(s),f=ze(e[b],a,o) void 0!==p&&(l.named=(0,t.assign)({},...p,l.named)),void 0!==h&&(l.positional=h.concat(l.positional)),i=f(l,d),(0,n.associateDestroyableChild)(c,i)}else if((0,t.isObject)(s)){var m=ze(e[b],s,o) i=m(l,u),(0,n._hasDestroyableChildren)(i)&&(0,n.associateDestroyableChild)(c,i)}else i=r.UNDEFINED_REFERENCE})),d=(0,r.createComputeRef)((()=>((0,r.valueForRef)(c),(0,r.valueForRef)(i)))) -e.associateDestroyable(c),e.loadValue(s.$v0,d)})),ce.add(16,((e,t)=>{var{op1:r}=t,i=e.stack,a=e[b].getValue(r)(i.pop().capture(),e.getOwner(),e.dynamicScope());(0,n._hasDestroyableChildren)(a)&&e.associateDestroyable(a),e.loadValue(s.$v0,a)})),ce.add(21,((e,t)=>{var{op1:r}=t,i=e.referenceForSymbol(r) -e.stack.push(i)})),ce.add(19,((e,t)=>{var{op1:r}=t,i=e.stack.pop() -e.scope().bindSymbol(r,i)})),ce.add(20,((e,t)=>{var{op1:r}=t,i=e.stack.pop(),n=e.stack.pop(),s=e.stack.pop() -e.scope().bindBlock(r,[i,n,s])})),ce.add(102,((e,t)=>{var{op1:i}=t,n=e[b].getValue(i),s=e.scope().getPartialMap()[n] -void 0===s&&(s=(0,r.childRefFor)(e.getSelf(),n)),e.stack.push(s)})),ce.add(37,((e,t)=>{var{op1:r}=t -e.pushRootScope(r,e.getOwner())})),ce.add(22,((e,t)=>{var{op1:i}=t,n=e[b].getValue(i),s=e.stack.pop() -e.stack.push((0,r.childRefFor)(s,n))})),ce.add(23,((e,t)=>{var{op1:r}=t,{stack:i}=e,n=e.scope().getBlock(r) -i.push(n)})),ce.add(24,(e=>{var{stack:t}=e,r=t.pop() +e.associateDestroyable(c),e.loadValue(s.$v0,d)})),ce.add(16,((e,{op1:t})=>{var r=e.stack,i=e[b].getValue(t)(r.pop().capture(),e.getOwner(),e.dynamicScope());(0,n._hasDestroyableChildren)(i)&&e.associateDestroyable(i),e.loadValue(s.$v0,i)})),ce.add(21,((e,{op1:t})=>{var r=e.referenceForSymbol(t) +e.stack.push(r)})),ce.add(19,((e,{op1:t})=>{var r=e.stack.pop() +e.scope().bindSymbol(t,r)})),ce.add(20,((e,{op1:t})=>{var r=e.stack.pop(),i=e.stack.pop(),n=e.stack.pop() +e.scope().bindBlock(t,[r,i,n])})),ce.add(102,((e,{op1:t})=>{var i=e[b].getValue(t),n=e.scope().getPartialMap()[i] +void 0===n&&(n=(0,r.childRefFor)(e.getSelf(),i)),e.stack.push(n)})),ce.add(37,((e,{op1:t})=>{e.pushRootScope(t,e.getOwner())})),ce.add(22,((e,{op1:t})=>{var i=e[b].getValue(t),n=e.stack.pop() +e.stack.push((0,r.childRefFor)(n,i))})),ce.add(23,((e,{op1:t})=>{var{stack:r}=e,i=e.scope().getBlock(t) +r.push(i)})),ce.add(24,(e=>{var{stack:t}=e,r=t.pop() if(r&&!Le(r)){var[i,n,s]=r t.push(s),t.push(n),t.push(i)}else t.push(null),t.push(null),t.push(null)})),ce.add(25,(e=>{var{stack:t}=e,i=t.pop() i&&!Le(i)?t.push(r.TRUE_REFERENCE):t.push(r.FALSE_REFERENCE)})),ce.add(26,(e=>{e.stack.pop(),e.stack.pop() var t=e.stack.pop(),i=t&&t.parameters.length -e.stack.push(i?r.TRUE_REFERENCE:r.FALSE_REFERENCE)})),ce.add(27,((e,t)=>{for(var i,{op1:n}=t,s=new Array(n),a=n;a>0;a--){s[a-1]=e.stack.pop()}e.stack.push((i=s,(0,r.createComputeRef)((()=>{for(var e=new Array,t=0;t{for(var i,n=new Array(t),s=t;s>0;s--){n[s-1]=e.stack.pop()}e.stack.push((i=n,(0,r.createComputeRef)((()=>{for(var e=new Array,t=0;t0?e.join(""):null}))))})),ce.add(109,(e=>{var t=e.stack.pop(),n=e.stack.pop(),s=e.stack.pop() e.stack.push((0,r.createComputeRef)((()=>!0===(0,i.toBool)((0,r.valueForRef)(t))?(0,r.valueForRef)(n):(0,r.valueForRef)(s))))})),ce.add(110,(e=>{var t=e.stack.pop() e.stack.push((0,r.createComputeRef)((()=>!(0,i.toBool)((0,r.valueForRef)(t)))))})),ce.add(111,(e=>{var t=e.dynamicScope(),i=e.stack,n=i.pop() i.push((0,r.createComputeRef)((()=>{var e=String((0,r.valueForRef)(n)) return(0,r.valueForRef)(t.get(e))})))})),ce.add(112,(e=>{var{positional:t}=e.stack.pop().capture() -e.loadValue(s.$v0,(0,r.createComputeRef)((()=>{console.log(...xe(t))})))})),ce.add(39,(e=>e.pushChildScope())),ce.add(40,(e=>e.popScope())),ce.add(59,(e=>e.pushDynamicScope())),ce.add(60,(e=>e.popDynamicScope())),ce.add(28,((e,r)=>{var{op1:i}=r -e.stack.push(e[b].getValue((0,t.decodeHandle)(i)))})),ce.add(29,((e,i)=>{var{op1:n}=i -e.stack.push((0,r.createConstRef)(e[b].getValue((0,t.decodeHandle)(n)),!1))})),ce.add(30,((e,r)=>{var{op1:i}=r,n=e.stack -if((0,t.isHandle)(i)){var s=e[b].getValue((0,t.decodeHandle)(i)) -n.push(s)}else n.push((0,t.decodeImmediate)(i))})),ce.add(31,(e=>{var t,i=e.stack,n=i.pop() -t=void 0===n?r.UNDEFINED_REFERENCE:null===n?r.NULL_REFERENCE:!0===n?r.TRUE_REFERENCE:!1===n?r.FALSE_REFERENCE:(0,r.createPrimitiveRef)(n),i.push(t)})),ce.add(33,((e,t)=>{var{op1:r,op2:i}=t,n=e.fetchValue(r)-i -e.stack.dup(n)})),ce.add(34,((e,t)=>{var{op1:r}=t -e.stack.pop(r)})),ce.add(35,((e,t)=>{var{op1:r}=t -e.load(r)})) -ce.add(36,((e,t)=>{var{op1:r}=t -e.fetch(r)})),ce.add(58,((e,t)=>{var{op1:r}=t,i=e[b].getArray(r) -e.bindDynamicScope(i)})),ce.add(69,((e,t)=>{var{op1:r}=t -e.enter(r)})),ce.add(70,(e=>{e.exit()})),ce.add(63,((e,t)=>{var{op1:r}=t -e.stack.push(e[b].getValue(r))})),ce.add(62,(e=>{e.stack.push(e.scope())})),ce.add(61,(e=>{var t=e.stack,r=t.pop() +e.loadValue(s.$v0,(0,r.createComputeRef)((()=>{console.log(...xe(t))})))})),ce.add(39,(e=>e.pushChildScope())),ce.add(40,(e=>e.popScope())),ce.add(59,(e=>e.pushDynamicScope())),ce.add(60,(e=>e.popDynamicScope())),ce.add(28,((e,{op1:r})=>{e.stack.push(e[b].getValue((0,t.decodeHandle)(r)))})),ce.add(29,((e,{op1:i})=>{e.stack.push((0,r.createConstRef)(e[b].getValue((0,t.decodeHandle)(i)),!1))})),ce.add(30,((e,{op1:r})=>{var i=e.stack +if((0,t.isHandle)(r)){var n=e[b].getValue((0,t.decodeHandle)(r)) +i.push(n)}else i.push((0,t.decodeImmediate)(r))})),ce.add(31,(e=>{var t,i=e.stack,n=i.pop() +t=void 0===n?r.UNDEFINED_REFERENCE:null===n?r.NULL_REFERENCE:!0===n?r.TRUE_REFERENCE:!1===n?r.FALSE_REFERENCE:(0,r.createPrimitiveRef)(n),i.push(t)})),ce.add(33,((e,{op1:t,op2:r})=>{var i=e.fetchValue(t)-r +e.stack.dup(i)})),ce.add(34,((e,{op1:t})=>{e.stack.pop(t)})),ce.add(35,((e,{op1:t})=>{e.load(t)})),ce.add(36,((e,{op1:t})=>{e.fetch(t)})) +ce.add(58,((e,{op1:t})=>{var r=e[b].getArray(t) +e.bindDynamicScope(r)})),ce.add(69,((e,{op1:t})=>{e.enter(t)})),ce.add(70,(e=>{e.exit()})),ce.add(63,((e,{op1:t})=>{e.stack.push(e[b].getValue(t))})),ce.add(62,(e=>{e.stack.push(e.scope())})),ce.add(61,(e=>{var t=e.stack,r=t.pop() r?t.push(e.compile(r)):t.push(null)})),ce.add(64,(e=>{var{stack:t}=e,r=t.pop(),i=t.pop(),n=t.pop(),s=t.pop() if(null===n)return e.pushFrame(),void e.pushScope(null!=i?i:e.scope()) var a=i,o=n.parameters,l=o.length if(l>0){a=a.child() -for(var u=0;u{var{op1:i}=t,n=e.stack.pop(),s=Boolean((0,r.valueForRef)(n));(0,r.isConstRef)(n)?!0===s&&e.goto(i):(!0===s&&e.goto(i),e.updateWith(new Be(n)))})),ce.add(66,((e,t)=>{var{op1:i}=t,n=e.stack.pop(),s=Boolean((0,r.valueForRef)(n));(0,r.isConstRef)(n)?!1===s&&e.goto(i):(!1===s&&e.goto(i),e.updateWith(new Be(n)))})),ce.add(67,((e,t)=>{var{op1:r,op2:i}=t -e.stack.peek()===i&&e.goto(r)})),ce.add(68,(e=>{var t=e.stack.peek() +for(var u=0;u{var i=e.stack.pop(),n=Boolean((0,r.valueForRef)(i));(0,r.isConstRef)(i)?!0===n&&e.goto(t):(!0===n&&e.goto(t),e.updateWith(new Be(i)))})),ce.add(66,((e,{op1:t})=>{var i=e.stack.pop(),n=Boolean((0,r.valueForRef)(i));(0,r.isConstRef)(i)?!1===n&&e.goto(t):(!1===n&&e.goto(t),e.updateWith(new Be(i)))})),ce.add(67,((e,{op1:t,op2:r})=>{e.stack.peek()===r&&e.goto(t)})),ce.add(68,(e=>{var t=e.stack.peek() !1===(0,r.isConstRef)(t)&&e.updateWith(new Be(t))})),ce.add(71,(e=>{var{stack:t}=e,n=t.pop() t.push((0,r.createComputeRef)((()=>(0,i.toBool)((0,r.valueForRef)(n)))))})) class Be{constructor(e){this.ref=e,this.last=(0,r.valueForRef)(e)}evaluate(e){var{last:t,ref:i}=this t!==(0,r.valueForRef)(i)&&e.throw()}}class $e{constructor(e,t){this.ref=e,this.filter=t,this.last=t((0,r.valueForRef)(e))}evaluate(e){var{last:t,ref:i,filter:n}=this t!==n((0,r.valueForRef)(i))&&e.throw()}}class He{constructor(){this.tag=a.CONSTANT_TAG,this.lastRevision=a.INITIAL}finalize(e,t){this.target=t,this.didModify(e)}evaluate(e){var{tag:t,target:r,lastRevision:i}=this !e.alwaysRevalidate&&(0,a.validateTag)(t,i)&&((0,a.consumeTag)(t),e.goto(r))}didModify(e){this.tag=e,this.lastRevision=(0,a.valueForTag)(this.tag),(0,a.consumeTag)(e)}}class qe{constructor(e){this.debugLabel=e}evaluate(){(0,a.beginTrackFrame)(this.debugLabel)}}class Ve{constructor(e){this.target=e}evaluate(){var e=(0,a.endTrackFrame)() -this.target.didModify(e)}}ce.add(41,((e,t)=>{var{op1:r}=t -e.elements().appendText(e[b].getValue(r))})),ce.add(42,((e,t)=>{var{op1:r}=t -e.elements().appendComment(e[b].getValue(r))})),ce.add(48,((e,t)=>{var{op1:r}=t -e.elements().openElement(e[b].getValue(r))})),ce.add(49,(e=>{var t=(0,r.valueForRef)(e.stack.pop()) +this.target.didModify(e)}}ce.add(41,((e,{op1:t})=>{e.elements().appendText(e[b].getValue(t))})),ce.add(42,((e,{op1:t})=>{e.elements().appendComment(e[b].getValue(t))})),ce.add(48,((e,{op1:t})=>{e.elements().openElement(e[b].getValue(t))})),ce.add(49,(e=>{var t=(0,r.valueForRef)(e.stack.pop()) e.elements().openElement(t)})),ce.add(50,(e=>{var t=e.stack.pop(),i=e.stack.pop(),n=e.stack.pop(),s=(0,r.valueForRef)(t),a=(0,r.valueForRef)(i),o=(0,r.valueForRef)(n);(0,r.isConstRef)(t)||e.updateWith(new Be(t)),void 0===a||(0,r.isConstRef)(i)||e.updateWith(new Be(i)) var l=e.elements().pushRemoteElement(s,o,a) l&&e.associateDestroyable(l)})),ce.add(56,(e=>{e.elements().popRemoteElement()})),ce.add(54,(e=>{var t=e.fetchValue(s.$t0),r=null t&&(r=t.flush(e),e.loadValue(s.$t0,null)),e.elements().flushElement(r)})),ce.add(55,(e=>{var t=e.elements().closeElement() t&&t.forEach((t=>{e.env.scheduleInstallModifier(t) var{manager:r,state:i}=t,n=r.getDestroyable(i) -n&&e.associateDestroyable(n)}))})),ce.add(57,((e,t)=>{var{op1:r}=t -if(!1!==e.env.isInteractive){var i=e.getOwner(),n=e.stack.pop(),o=e[b].getValue(r),{manager:l}=o,{constructing:u}=e.elements(),c=l.create(i,u,o.state,n.capture()),d={manager:l,state:c,definition:o} -e.fetchValue(s.$t0).addModifier(d) -var h=l.getTag(c) -return null!==h?((0,a.consumeTag)(h),e.updateWith(new We(h,d))):void 0}})),ce.add(108,(e=>{if(!1!==e.env.isInteractive){var{stack:i,[b]:n}=e,o=i.pop(),l=i.pop().capture(),{constructing:u}=e.elements(),c=e.getOwner(),d=(0,r.createComputeRef)((()=>{var e,i=(0,r.valueForRef)(o) +n&&e.associateDestroyable(n)}))})),ce.add(57,((e,{op1:t})=>{if(!1!==e.env.isInteractive){var r=e.getOwner(),i=e.stack.pop(),n=e[b].getValue(t),{manager:o}=n,{constructing:l}=e.elements(),u=o.create(r,l,n.state,i.capture()),c={manager:o,state:u,definition:n} +e.fetchValue(s.$t0).addModifier(c) +var d=o.getTag(u) +return null!==d?((0,a.consumeTag)(d),e.updateWith(new We(d,c))):void 0}})),ce.add(108,(e=>{if(!1!==e.env.isInteractive){var{stack:i,[b]:n}=e,o=i.pop(),l=i.pop().capture(),{constructing:u}=e.elements(),c=e.getOwner(),d=(0,r.createComputeRef)((()=>{var e,i=(0,r.valueForRef)(o) if((0,t.isObject)(i)){var s if(ye(i,2)){var{definition:a,owner:d,positional:h,named:p}=we(i) s=a,e=d,void 0!==h&&(l.positional=h.concat(l.positional)),void 0!==p&&(l.named=(0,t.assign)({},...p,l.named))}else s=i,e=c @@ -2568,45 +2257,45 @@ class We{constructor(e,t){this.tag=e,this.modifier=t,this.lastUpdated=(0,a.value if(l!==s){if(void 0!==s){var u=s.manager.getDestroyable(s.state) null!==u&&(0,n.destroy)(u)}if(void 0!==l){var{manager:c,state:d}=l,h=c.getDestroyable(d) null!==h&&(0,n.associateDestroyableChild)(this,h),null!==(t=c.getTag(d))&&(this.lastUpdated=(0,a.valueForTag)(t)),this.tag=t,e.env.scheduleInstallModifier(l)}this.instance=l}else null===t||(0,a.validateTag)(t,i)||(e.env.scheduleUpdateModifier(s),this.lastUpdated=(0,a.valueForTag)(t)) -null!==t&&(0,a.consumeTag)(t)}}ce.add(51,((e,t)=>{var{op1:r,op2:i,op3:n}=t,s=e[b].getValue(r),a=e[b].getValue(i),o=n?e[b].getValue(n):null -e.elements().setStaticAttribute(s,a,o)})),ce.add(52,((e,t)=>{var{op1:i,op2:n,op3:s}=t,a=e[b].getValue(i),o=e[b].getValue(n),l=e.stack.pop(),u=(0,r.valueForRef)(l),c=s?e[b].getValue(s):null,d=e.elements().setDynamicAttribute(a,u,o,c);(0,r.isConstRef)(l)||e.updateWith(new Ye(l,d,e.env))})) +null!==t&&(0,a.consumeTag)(t)}}ce.add(51,((e,{op1:t,op2:r,op3:i})=>{var n=e[b].getValue(t),s=e[b].getValue(r),a=i?e[b].getValue(i):null +e.elements().setStaticAttribute(n,s,a)})),ce.add(52,((e,{op1:t,op2:i,op3:n})=>{var s=e[b].getValue(t),a=e[b].getValue(i),o=e.stack.pop(),l=(0,r.valueForRef)(o),u=n?e[b].getValue(n):null,c=e.elements().setDynamicAttribute(s,l,a,u);(0,r.isConstRef)(o)||e.updateWith(new Ye(o,c,e.env))})) class Ye{constructor(e,t,i){var n=!1 this.updateRef=(0,r.createComputeRef)((()=>{var s=(0,r.valueForRef)(e) -!0===n?t.update(s,i):n=!0})),(0,r.valueForRef)(this.updateRef)}evaluate(){(0,r.valueForRef)(this.updateRef)}}ce.add(78,((e,t)=>{var{op1:r}=t,i=e[b].getValue(r),{manager:n,capabilities:s}=i,a={definition:i,manager:n,capabilities:s,state:null,handle:null,table:null,lookup:null} -e.stack.push(a)})),ce.add(80,((e,t)=>{var i,{op1:n}=t,a=e.stack,o=(0,r.valueForRef)(a.pop()),l=e[b],u=e.getOwner() -l.getValue(n) -if(e.loadValue(s.$t1,null),"string"==typeof o){0 -var c=function(e,t,r,i){var n=e.lookupComponent(r,i) -return t.resolvedComponent(n,r)}(e.runtime.resolver,l,o,u) -i=c}else i=be(o)?o:l.component(o,u) -a.push(i)})),ce.add(81,(e=>{var t,i=e.stack,n=i.pop(),s=(0,r.valueForRef)(n),a=e[b] +!0===n?t.update(s,i):n=!0})),(0,r.valueForRef)(this.updateRef)}evaluate(){(0,r.valueForRef)(this.updateRef)}}ce.add(78,((e,{op1:t})=>{var r=e[b].getValue(t),{manager:i,capabilities:n}=r,s={definition:r,manager:i,capabilities:n,state:null,handle:null,table:null,lookup:null} +e.stack.push(s)})),ce.add(80,((e,{op1:t})=>{var i,n=e.stack,a=(0,r.valueForRef)(n.pop()),o=e[b],l=e.getOwner() +o.getValue(t) +if(e.loadValue(s.$t1,null),"string"==typeof a){0 +var u=function(e,t,r,i){var n=e.lookupComponent(r,i) +return t.resolvedComponent(n,r)}(e.runtime.resolver,o,a,l) +i=u}else i=be(a)?a:o.component(a,l) +n.push(i)})),ce.add(81,(e=>{var t,i=e.stack,n=i.pop(),s=(0,r.valueForRef)(n),a=e[b] t=be(s)?s:a.component(s,e.getOwner(),!0),i.push(t)})),ce.add(79,(e=>{var t,r,{stack:i}=e,n=i.pop() -be(n)?r=t=null:(r=n.manager,t=n.capabilities),i.push({definition:n,capabilities:t,manager:r,state:null,handle:null,table:null})})),ce.add(82,((e,r)=>{var{op1:i,op2:n,op3:s}=r,a=e.stack,o=e[b].getArray(i),l=s>>4,u=8&s,c=7&s?e[b].getArray(n):t.EMPTY_STRING_ARRAY -e[y].setup(a,o,c,l,!!u),a.push(e[y])})),ce.add(83,(e=>{var{stack:t}=e +be(n)?r=t=null:(r=n.manager,t=n.capabilities),i.push({definition:n,capabilities:t,manager:r,state:null,handle:null,table:null})})),ce.add(82,((e,{op1:r,op2:i,op3:n})=>{var s=e.stack,a=e[b].getArray(r),o=n>>4,l=8&n,u=7&n?e[b].getArray(i):t.EMPTY_STRING_ARRAY +e[y].setup(s,a,u,o,!!l),s.push(e[y])})),ce.add(83,(e=>{var{stack:t}=e t.push(e[y].empty(t))})),ce.add(86,(e=>{var t=e.stack,r=t.pop().capture() -t.push(r)})),ce.add(85,((e,r)=>{var{op1:i}=r,n=e.stack,a=e.fetchValue(i),l=n.pop(),{definition:u}=a -if(ye(u,0)){var c=e[b],{definition:d,owner:h,resolved:p,positional:f,named:m}=we(u) -if(!0===p)u=d -else if("string"==typeof d){var g=e.runtime.resolver.lookupComponent(d,h) -u=c.resolvedComponent(g,d)}else u=c.component(d,h) -void 0!==m&&l.named.merge((0,t.assign)({},...m)),void 0!==f&&(l.realloc(f.length),l.positional.prepend(f)) -var{manager:v}=u -a.definition=u,a.manager=v,a.capabilities=u.capabilities,e.loadValue(s.$t1,h)}var{manager:y,state:_}=u,w=a.capabilities -if((0,o.managerHasCapability)(y,w,4)){var R=l.blocks.values,O=l.blocks.names,E=y.prepareArgs(_,l) -if(E){l.clear() -for(var A=0;A{var{op1:r,op2:i}=t,n=e.fetchValue(i),{definition:s,manager:a,capabilities:l}=n -if((0,o.managerHasCapability)(a,l,512)){var u=null;(0,o.managerHasCapability)(a,l,64)&&(u=e.dynamicScope()) -var c=1&r,d=null;(0,o.managerHasCapability)(a,l,8)&&(d=e.stack.peek()) -var h=null;(0,o.managerHasCapability)(a,l,128)&&(h=e.getSelf()) -var p=a.create(e.getOwner(),s.state,d,e.env,u,h,!!c) -n.state=p,(0,o.managerHasCapability)(a,l,256)&&e.updateWith(new Ze(p,a,u))}})),ce.add(88,((e,t)=>{var{op1:r}=t,{manager:i,state:n,capabilities:s}=e.fetchValue(r),a=i.getDestroyable(n) -a&&e.associateDestroyable(a)})),ce.add(97,((e,t)=>{var r,{op1:i}=t -e.beginCacheGroup(r),e.elements().pushSimpleBlock()})),ce.add(89,(e=>{e.loadValue(s.$t0,new Ke)})),ce.add(53,((e,t)=>{var{op1:r,op2:i,op3:n}=t,a=e[b].getValue(r),o=e[b].getValue(i),l=e.stack.pop(),u=n?e[b].getValue(n):null -e.fetchValue(s.$t0).setAttribute(a,l,o,u)})),ce.add(105,((e,t)=>{var{op1:r,op2:i,op3:n}=t,a=e[b].getValue(r),o=e[b].getValue(i),l=n?e[b].getValue(n):null -e.fetchValue(s.$t0).setStaticAttribute(a,o,l)})) +t.push(r)})),ce.add(85,((e,{op1:r})=>{var i=e.stack,n=e.fetchValue(r),a=i.pop(),{definition:l}=n +if(ye(l,0)){var u=e[b],{definition:c,owner:d,resolved:h,positional:p,named:f}=we(l) +if(!0===h)l=c +else if("string"==typeof c){var m=e.runtime.resolver.lookupComponent(c,d) +l=u.resolvedComponent(m,c)}else l=u.component(c,d) +void 0!==f&&a.named.merge((0,t.assign)({},...f)),void 0!==p&&(a.realloc(p.length),a.positional.prepend(p)) +var{manager:g}=l +n.definition=l,n.manager=g,n.capabilities=l.capabilities,e.loadValue(s.$t1,d)}var{manager:v,state:y}=l,_=n.capabilities +if((0,o.managerHasCapability)(v,_,4)){var w=a.blocks.values,R=a.blocks.names,O=v.prepareArgs(y,a) +if(O){a.clear() +for(var E=0;E{var i=e.fetchValue(r),{definition:n,manager:s,capabilities:a}=i +if((0,o.managerHasCapability)(s,a,512)){var l=null;(0,o.managerHasCapability)(s,a,64)&&(l=e.dynamicScope()) +var u=1&t,c=null;(0,o.managerHasCapability)(s,a,8)&&(c=e.stack.peek()) +var d=null;(0,o.managerHasCapability)(s,a,128)&&(d=e.getSelf()) +var h=s.create(e.getOwner(),n.state,c,e.env,l,d,!!u) +i.state=h,(0,o.managerHasCapability)(s,a,256)&&e.updateWith(new Ze(h,s,l))}})),ce.add(88,((e,{op1:t})=>{var{manager:r,state:i,capabilities:n}=e.fetchValue(t),s=r.getDestroyable(i) +s&&e.associateDestroyable(s)})),ce.add(97,((e,{op1:t})=>{var r +e.beginCacheGroup(r),e.elements().pushSimpleBlock()})),ce.add(89,(e=>{e.loadValue(s.$t0,new Ke)})),ce.add(53,((e,{op1:t,op2:r,op3:i})=>{var n=e[b].getValue(t),a=e[b].getValue(r),o=e.stack.pop(),l=i?e[b].getValue(i):null +e.fetchValue(s.$t0).setAttribute(n,o,a,l)})),ce.add(105,((e,{op1:t,op2:r,op3:i})=>{var n=e[b].getValue(t),a=e[b].getValue(r),o=i?e[b].getValue(i):null +e.fetchValue(s.$t0).setStaticAttribute(n,a,o)})) class Ke{constructor(){this.attributes=(0,t.dict)(),this.classes=[],this.modifiers=[]}setAttribute(e,t,r,i){var n={value:t,namespace:i,trusting:r} "class"===e&&this.classes.push(t),this.attributes[e]=n}setStaticAttribute(e,t,r){var i={value:t,namespace:r} "class"===e&&this.classes.push(t),this.attributes[e]=i}addModifier(e){this.modifiers.push(e)}flush(e){var t,r=this.attributes @@ -2615,55 +2304,53 @@ for(var i in this.attributes)if("type"!==i){var n=this.attributes[i] return void 0!==t&&Je(e,"type",t.value,t.namespace,t.trusting),this.modifiers}}function Qe(e){return 0===e.length?"":1===e.length?e[0]:function(e){for(var t=0;t{for(var e=[],i=0;i{var{op1:r}=t,{definition:i,state:n}=e.fetchValue(r),{manager:a}=i,o=e.fetchValue(s.$t0) -a.didCreateElement(n,e.elements().constructing,o)})),ce.add(90,((e,t)=>{var i,{op1:s,op2:a}=t,o=e.fetchValue(s),{definition:l,state:u}=o,{manager:c}=l,d=c.getSelf(u) -if(void 0!==e.env.debugRenderTree){var h,p,f=e.fetchValue(s),{definition:m,manager:g}=f -if(e.stack.peek()===e[y])h=e[y].capture() -else{var v=e[b].getArray(a) -e[y].setup(e.stack,v,[],0,!0),h=e[y].capture()}var _=m.compilable -if(p=null===_?null!==(_=g.getDynamicLayout(u,e.runtime.resolver))?_.moduleName:"__default__.hbs":_.moduleName,e.associateDestroyable(f),Ue(g)){g.getDebugCustomRenderTree(f.definition.state,f.state,h,p).forEach((t=>{var{bucket:r}=t -e.env.debugRenderTree.create(r,t),(0,n.registerDestructor)(f,(()=>{var t -null===(t=e.env.debugRenderTree)||void 0===t||t.willDestroy(r)})),e.updateWith(new tt(r))}))}else{var w=null!==(i=m.resolvedName)&&void 0!==i?i:g.getDebugName(m.state) -e.env.debugRenderTree.create(f,{type:"component",name:w,args:h,template:p,instance:(0,r.valueForRef)(d)}),e.associateDestroyable(f),(0,n.registerDestructor)(f,(()=>{var t -null===(t=e.env.debugRenderTree)||void 0===t||t.willDestroy(f)})),e.updateWith(new tt(f))}}e.stack.push(d)})),ce.add(91,((e,t)=>{var{op1:r}=t,{definition:i,state:n}=e.fetchValue(r),{manager:s}=i,a=s.getTagName(n) -e.stack.push(a)})),ce.add(92,((e,r)=>{var{op1:i}=r,n=e.fetchValue(i),{manager:s,definition:a}=n,{stack:l}=e,{compilable:u}=a -if(null===u){var{capabilities:c}=n -null===(u=s.getDynamicLayout(n.state,e.runtime.resolver))&&(u=(0,o.managerHasCapability)(s,c,1024)?(0,t.unwrapTemplate)(e[b].defaultTemplate).asWrappedLayout():(0,t.unwrapTemplate)(e[b].defaultTemplate).asLayout())}var d=u.compile(e.context) -l.push(u.symbolTable),l.push(d)})),ce.add(75,((e,t)=>{var{op1:r}=t,i=e.stack.pop(),n=e.stack.pop(),{manager:s,capabilities:a}=i,o={definition:i,manager:s,capabilities:a,state:null,handle:n.handle,table:n.symbolTable,lookup:null} -e.loadValue(r,o)})),ce.add(95,((e,t)=>{var{op1:r}=t,{stack:i}=e,n=i.pop(),s=i.pop(),a=e.fetchValue(r) -a.handle=n,a.table=s})),ce.add(38,((e,t)=>{var r,{op1:i}=t,{table:n,manager:a,capabilities:l,state:u}=e.fetchValue(i);(0,o.managerHasCapability)(a,l,4096)?(r=a.getOwner(u),e.loadValue(s.$t1,null)):null===(r=e.fetchValue(s.$t1))?r=e.getOwner():e.loadValue(s.$t1,null),e.pushRootScope(n.symbols.length+1,r)})),ce.add(94,((e,r)=>{var{op1:i}=r,n=e.fetchValue(i) -if(n.table.hasEval){var s=n.lookup=(0,t.dict)() -e.scope().bindEvalScope(s)}})),ce.add(17,((e,t)=>{for(var{op1:r}=t,i=e.fetchValue(r),n=e.scope(),s=e.stack.peek(),a=s.named.atNames,o=a.length-1;o>=0;o--){var l=a[o],u=i.table.symbols.indexOf(a[o]),c=s.named.get(l,!0);-1!==u&&n.bindSymbol(u+1,c),i.lookup&&(i.lookup[l]=c)}})),ce.add(18,((e,t)=>{for(var{op1:r}=t,i=e.fetchValue(r),{blocks:n}=e.stack.peek(),s=0;s{var{op1:r}=t,i=e.fetchValue(r) -e.call(i.handle)})),ce.add(100,((e,t)=>{var{op1:r}=t,i=e.fetchValue(r),{manager:n,state:s,capabilities:a}=i,l=e.elements().popBlock() -void 0!==e.env.debugRenderTree&&(Ue(n)?n.getDebugCustomRenderTree(i.definition.state,s,Ie).reverse().forEach((t=>{var{bucket:r}=t -e.env.debugRenderTree.didRender(r,l),e.updateWith(new rt(r,l))})):(e.env.debugRenderTree.didRender(i,l),e.updateWith(new rt(i,l))));(0,o.managerHasCapability)(n,a,512)&&(n.didRenderLayout(s,l),e.env.didCreate(i),e.updateWith(new et(i,l)))})),ce.add(98,(e=>{e.commitCacheGroup()})) +var t}function Je(e,t,i,n,s=!1){if("string"==typeof i)e.elements().setStaticAttribute(t,i,n) +else{var a=e.elements().setDynamicAttribute(t,(0,r.valueForRef)(i),s,n);(0,r.isConstRef)(i)||e.updateWith(new Ye(i,a,e.env))}}function Xe(e,t,r,i,n){var s=r.table.symbols.indexOf(e),a=i.get(t);-1!==s&&n.scope().bindBlock(s+1,a),r.lookup&&(r.lookup[e]=a)}ce.add(99,((e,{op1:t})=>{var{definition:r,state:i}=e.fetchValue(t),{manager:n}=r,a=e.fetchValue(s.$t0) +n.didCreateElement(i,e.elements().constructing,a)})),ce.add(90,((e,{op1:t,op2:i})=>{var s,a=e.fetchValue(t),{definition:o,state:l}=a,{manager:u}=o,c=u.getSelf(l) +if(void 0!==e.env.debugRenderTree){var d,h,p=e.fetchValue(t),{definition:f,manager:m}=p +if(e.stack.peek()===e[y])d=e[y].capture() +else{var g=e[b].getArray(i) +e[y].setup(e.stack,g,[],0,!0),d=e[y].capture()}var v=f.compilable +if(h=null===v?null!==(v=m.getDynamicLayout(l,e.runtime.resolver))?v.moduleName:"__default__.hbs":v.moduleName,e.associateDestroyable(p),Ue(m)){m.getDebugCustomRenderTree(p.definition.state,p.state,d,h).forEach((t=>{var{bucket:r}=t +e.env.debugRenderTree.create(r,t),(0,n.registerDestructor)(p,(()=>{var t +null===(t=e.env.debugRenderTree)||void 0===t||t.willDestroy(r)})),e.updateWith(new tt(r))}))}else{var _=null!==(s=f.resolvedName)&&void 0!==s?s:m.getDebugName(f.state) +e.env.debugRenderTree.create(p,{type:"component",name:_,args:d,template:h,instance:(0,r.valueForRef)(c)}),e.associateDestroyable(p),(0,n.registerDestructor)(p,(()=>{var t +null===(t=e.env.debugRenderTree)||void 0===t||t.willDestroy(p)})),e.updateWith(new tt(p))}}e.stack.push(c)})),ce.add(91,((e,{op1:t})=>{var{definition:r,state:i}=e.fetchValue(t),{manager:n}=r,s=n.getTagName(i) +e.stack.push(s)})),ce.add(92,((e,{op1:r})=>{var i=e.fetchValue(r),{manager:n,definition:s}=i,{stack:a}=e,{compilable:l}=s +if(null===l){var{capabilities:u}=i +null===(l=n.getDynamicLayout(i.state,e.runtime.resolver))&&(l=(0,o.managerHasCapability)(n,u,1024)?(0,t.unwrapTemplate)(e[b].defaultTemplate).asWrappedLayout():(0,t.unwrapTemplate)(e[b].defaultTemplate).asLayout())}var c=l.compile(e.context) +a.push(l.symbolTable),a.push(c)})),ce.add(75,((e,{op1:t})=>{var r=e.stack.pop(),i=e.stack.pop(),{manager:n,capabilities:s}=r,a={definition:r,manager:n,capabilities:s,state:null,handle:i.handle,table:i.symbolTable,lookup:null} +e.loadValue(t,a)})),ce.add(95,((e,{op1:t})=>{var{stack:r}=e,i=r.pop(),n=r.pop(),s=e.fetchValue(t) +s.handle=i,s.table=n})),ce.add(38,((e,{op1:t})=>{var r,{table:i,manager:n,capabilities:a,state:l}=e.fetchValue(t);(0,o.managerHasCapability)(n,a,4096)?(r=n.getOwner(l),e.loadValue(s.$t1,null)):null===(r=e.fetchValue(s.$t1))?r=e.getOwner():e.loadValue(s.$t1,null),e.pushRootScope(i.symbols.length+1,r)})),ce.add(94,((e,{op1:r})=>{var i=e.fetchValue(r) +if(i.table.hasEval){var n=i.lookup=(0,t.dict)() +e.scope().bindEvalScope(n)}})),ce.add(17,((e,{op1:t})=>{for(var r=e.fetchValue(t),i=e.scope(),n=e.stack.peek(),s=n.named.atNames,a=s.length-1;a>=0;a--){var o=s[a],l=r.table.symbols.indexOf(s[a]),u=n.named.get(o,!0);-1!==l&&i.bindSymbol(l+1,u),r.lookup&&(r.lookup[o]=u)}})),ce.add(18,((e,{op1:t})=>{for(var r=e.fetchValue(t),{blocks:i}=e.stack.peek(),n=0;n{var r=e.fetchValue(t) +e.call(r.handle)})),ce.add(100,((e,{op1:t})=>{var r=e.fetchValue(t),{manager:i,state:n,capabilities:s}=r,a=e.elements().popBlock() +void 0!==e.env.debugRenderTree&&(Ue(i)?i.getDebugCustomRenderTree(r.definition.state,n,Ie).reverse().forEach((t=>{var{bucket:r}=t +e.env.debugRenderTree.didRender(r,a),e.updateWith(new rt(r,a))})):(e.env.debugRenderTree.didRender(r,a),e.updateWith(new rt(r,a))));(0,o.managerHasCapability)(i,s,512)&&(i.didRenderLayout(n,a),e.env.didCreate(r),e.updateWith(new et(r,a)))})),ce.add(98,(e=>{e.commitCacheGroup()})) class Ze{constructor(e,t,r){this.component=e,this.manager=t,this.dynamicScope=r}evaluate(e){var{component:t,manager:r,dynamicScope:i}=this r.update(t,i)}}class et{constructor(e,t){this.component=e,this.bounds=t}evaluate(e){var{component:t,bounds:r}=this,{manager:i,state:n}=t i.didUpdateLayout(n,r),e.env.didUpdate(t)}}class tt{constructor(e){this.bucket=e}evaluate(e){var t null===(t=e.env.debugRenderTree)||void 0===t||t.update(this.bucket)}}class rt{constructor(e,t){this.bucket=e,this.bounds=t}evaluate(e){var t null===(t=e.env.debugRenderTree)||void 0===t||t.didRender(this.bucket,this.bounds)}}class it{constructor(e,t,r){this.node=e,this.reference=t,this.lastValue=r}evaluate(){var e,t=(0,r.valueForRef)(this.reference),{lastValue:i}=this -t!==i&&((e=T(t)?"":k(t)?t:String(t))!==i&&(this.node.nodeValue=this.lastValue=e))}}function nt(e){return function(e){return k(e)||T(e)||"boolean"==typeof e||"number"==typeof e}(e)?2:ye(e,0)||(0,o.hasInternalComponentManager)(e)?0:ye(e,1)||(0,o.hasInternalHelperManager)(e)?1:C(e)?4:function(e){return S(e)&&11===e.nodeType}(e)?5:S(e)?6:2}function st(e){return(0,t.isObject)(e)?ye(e,0)||(0,o.hasInternalComponentManager)(e)?0:1:2}function at(e,t){console.info("Use `context`, and `get()` to debug this template."),t("this")}ce.add(76,(e=>{var t=e.stack.peek() +t!==i&&((e=C(t)?"":P(t)?t:String(t))!==i&&(this.node.nodeValue=this.lastValue=e))}}function nt(e){return function(e){return P(e)||C(e)||"boolean"==typeof e||"number"==typeof e}(e)?2:ye(e,0)||(0,o.hasInternalComponentManager)(e)?0:ye(e,1)||(0,o.hasInternalHelperManager)(e)?1:T(e)?4:function(e){return k(e)&&11===e.nodeType}(e)?5:k(e)?6:2}function st(e){return(0,t.isObject)(e)?ye(e,0)||(0,o.hasInternalComponentManager)(e)?0:1:2}function at(e,t){console.info("Use `context`, and `get()` to debug this template."),t("this")}ce.add(76,(e=>{var t=e.stack.peek() e.stack.push(nt((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new $e(t,nt))})),ce.add(106,(e=>{var t=e.stack.peek() -e.stack.push(st((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new $e(t,st))})),ce.add(43,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t),n=T(i)?"":String(i) -e.elements().appendDynamicHTML(n)})),ce.add(44,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t).toHTML(),n=T(i)?"":i -e.elements().appendDynamicHTML(n)})),ce.add(47,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t),n=T(i)?"":String(i),s=e.elements().appendDynamicText(n);(0,r.isConstRef)(t)||e.updateWith(new it(s,t,n))})),ce.add(45,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t) +e.stack.push(st((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new $e(t,st))})),ce.add(43,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t),n=C(i)?"":String(i) +e.elements().appendDynamicHTML(n)})),ce.add(44,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t).toHTML(),n=C(i)?"":i +e.elements().appendDynamicHTML(n)})),ce.add(47,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t),n=C(i)?"":String(i),s=e.elements().appendDynamicText(n);(0,r.isConstRef)(t)||e.updateWith(new it(s,t,n))})),ce.add(45,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t) e.elements().appendDynamicFragment(i)})),ce.add(46,(e=>{var t=e.stack.pop(),i=(0,r.valueForRef)(t) e.elements().appendDynamicNode(i)})) var ot=at class lt{constructor(e,r,i){this.scope=e,this.locals=(0,t.dict)() for(var n=0;n(0,r.childRefFor)(e,t)),t)}}ce.add(103,((e,i)=>{var{op1:n,op2:s}=i,a=e[b].getArray(n),o=e[b].getArray((0,t.decodeHandle)(s)),l=new lt(e.scope(),a,o) -ot((0,r.valueForRef)(e.getSelf()),(e=>(0,r.valueForRef)(l.get(e))))})),ce.add(72,((e,t)=>{var{op1:i,op2:n}=t,s=e.stack,a=s.pop(),o=s.pop(),l=(0,r.valueForRef)(o),u=null===l?"@identity":String(l),c=(0,r.createIteratorRef)(a,u),d=(0,r.valueForRef)(c) -e.updateWith(new $e(c,(e=>e.isEmpty()))),!0===d.isEmpty()?e.goto(n+1):(e.enterList(c,i),e.stack.push(d))})),ce.add(73,(e=>{e.exitList()})),ce.add(74,((e,t)=>{var{op1:r}=t,i=e.stack.peek().next() -null!==i?e.registerItem(e.enterItem(i)):e.goto(r)})) +return"this"===a?t=i.getSelf():n[a]?t=n[a]:0===a.indexOf("@")&&l[a]?t=l[a]:(t=this.scope.getSelf(),o=s),o.reduce(((e,t)=>(0,r.childRefFor)(e,t)),t)}}ce.add(103,((e,{op1:i,op2:n})=>{var s=e[b].getArray(i),a=e[b].getArray((0,t.decodeHandle)(n)),o=new lt(e.scope(),s,a) +ot((0,r.valueForRef)(e.getSelf()),(e=>(0,r.valueForRef)(o.get(e))))})),ce.add(72,((e,{op1:t,op2:i})=>{var n=e.stack,s=n.pop(),a=n.pop(),o=(0,r.valueForRef)(a),l=null===o?"@identity":String(o),u=(0,r.createIteratorRef)(s,l),c=(0,r.valueForRef)(u) +e.updateWith(new $e(u,(e=>e.isEmpty()))),!0===c.isEmpty()?e.goto(i+1):(e.enterList(u,t),e.stack.push(c))})),ce.add(73,(e=>{e.exitList()})),ce.add(74,((e,{op1:t})=>{var r=e.stack.peek().next() +null!==r?e.registerItem(e.enterItem(r)):e.goto(t)})) var ut={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1} -class ct{getCapabilities(){return ut}getDebugName(e){var{name:t}=e -return t}getSelf(){return r.NULL_REFERENCE}getDestroyable(){return null}}e.TemplateOnlyComponentManager=ct -var dt=new ct -e.TEMPLATE_ONLY_COMPONENT_MANAGER=dt -class ht{constructor(e,t){void 0===e&&(e="@glimmer/component/template-only"),void 0===t&&(t="(unknown template-only component)"),this.moduleName=e,this.name=t}toString(){return this.moduleName}}e.TemplateOnlyComponent=ht,(0,o.setInternalComponentManager)(dt,ht.prototype) +class ct{getCapabilities(){return ut}getDebugName({name:e}){return e}getSelf(){return r.NULL_REFERENCE}getDestroyable(){return null}}e.TemplateOnlyComponentManager=ct +var dt=e.TEMPLATE_ONLY_COMPONENT_MANAGER=new ct +class ht{constructor(e="@glimmer/component/template-only",t="(unknown template-only component)"){this.moduleName=e,this.name=t}toString(){return this.moduleName}}e.TemplateOnlyComponent=ht,(0,o.setInternalComponentManager)(dt,ht.prototype) var pt={foreignObject:1,desc:1,title:1},ft=Object.create(null) class mt{constructor(e){this.document=e,this.setupUselessElement()}setupUselessElement(){this.uselessElement=this.document.createElement("div")}createElement(e,t){var r,i if(t?(r="http://www.w3.org/2000/svg"===t.namespaceURI||"svg"===e,i=!!pt[t.tagName]):(r="svg"===e,i=!1),r&&!i){if(ft[e])throw new Error(`Cannot create a ${e} inside an SVG context`) @@ -2687,30 +2374,26 @@ var i=!1,n=t?t.previousSibling:e.lastChild n&&n instanceof Text&&(i=!0,e.insertBefore(this.uselessComment,t)) var s=super.insertHTMLBefore(e,t,r) return i&&e.removeChild(this.uselessComment),s}}:t}["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach((e=>ft[e]=1)) -var yt,_t=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,wt="undefined"==typeof document?null:document;(function(e){class t extends mt{createElementNS(e,t){return this.document.createElementNS(e,t)}setAttribute(e,t,r,i){void 0===i&&(i=null),i?e.setAttributeNS(i,t,r):e.setAttribute(t,r)}}e.TreeConstruction=t +var yt,_t=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,wt="undefined"==typeof document?null:document;(function(e){class t extends mt{createElementNS(e,t){return this.document.createElementNS(e,t)}setAttribute(e,t,r,i=null){i?e.setAttributeNS(i,t,r):e.setAttribute(t,r)}}e.TreeConstruction=t var r=t r=bt(wt,r),r=vt(wt,r,"http://www.w3.org/2000/svg"),e.DOMTreeConstruction=r})(yt||(yt={})) class Rt extends mt{constructor(e){super(e),this.document=e,this.namespace=null}setAttribute(e,t,r){e.setAttribute(t,r)}removeAttribute(e,t){e.removeAttribute(t)}insertAfter(e,t,r){this.insertBefore(e,t,r.nextSibling)}}e.IDOMChanges=Rt var Ot=Rt -Ot=bt(wt,Ot) -var Et=Ot=vt(wt,Ot,"http://www.w3.org/2000/svg") -e.DOMChanges=Et -var At=yt.DOMTreeConstruction -e.DOMTreeConstruction=At -var Tt,Ct=0 -class St{constructor(e){this.id=Ct++,this.value=e}get(){return this.value}release(){this.value=null}toString(){var e=`Ref ${this.id}` +Ot=bt(wt,Ot),Ot=vt(wt,Ot,"http://www.w3.org/2000/svg") +e.DOMChanges=Ot +var Et,At=e.DOMTreeConstruction=yt.DOMTreeConstruction,Ct=0 +class Tt{constructor(e){this.id=Ct++,this.value=e}get(){return this.value}release(){this.value=null}toString(){var e=`Ref ${this.id}` if(null===this.value)return`${e} (released)` try{return`${e}: ${this.value}`}catch(x){return e}}}class kt{constructor(){this.stack=new t.Stack,this.refs=new WeakMap,this.roots=new Set,this.nodes=new WeakMap}begin(){this.reset()}create(e,r){var i=(0,t.assign)({},r,{bounds:null,refs:new Set}) this.nodes.set(e,i),this.appendChild(i,e),this.enter(e)}update(e){this.enter(e)}didRender(e,t){this.nodeFor(e).bounds=t,this.exit()}willDestroy(e){this.refs.get(e).release()}commit(){this.reset()}capture(){return this.captureRefs(this.roots)}reset(){if(0!==this.stack.size){var e=this.stack.toArray()[0],t=this.refs.get(e) -for(void 0!==t&&this.roots.delete(t);!this.stack.isEmpty();)this.stack.pop()}}enter(e){this.stack.push(e)}exit(){this.stack.pop()}nodeFor(e){return this.nodes.get(e)}appendChild(e,t){var r=this.stack.current,i=new St(t) +for(void 0!==t&&this.roots.delete(t);!this.stack.isEmpty();)this.stack.pop()}}enter(e){this.stack.push(e)}exit(){this.stack.pop()}nodeFor(e){return this.nodes.get(e)}appendChild(e,t){var r=this.stack.current,i=new Tt(t) if(this.refs.set(t,i),r){var n=this.nodeFor(r) n.refs.add(i),e.parent=n}else this.roots.add(i)}captureRefs(e){var t=[] return e.forEach((r=>{var i=r.get() i?t.push(this.captureNode(`render-node:${r.id}`,i)):e.delete(r)})),t}captureNode(e,t){var r=this.nodeFor(t),{type:i,name:n,args:s,instance:a,refs:o}=r,l=this.captureTemplate(r),u=this.captureBounds(r),c=this.captureRefs(o) -return{id:e,type:i,name:n,args:De(s),instance:a,template:l,bounds:u,children:c}}captureTemplate(e){var{template:t}=e -return t||null}captureBounds(e){var t=e.bounds -return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}}var Pt,jt,Mt=(0,t.symbol)("TRANSACTION") -class xt{constructor(){this.scheduledInstallModifiers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.updatedComponents=[]}didCreate(e){this.createdComponents.push(e)}didUpdate(e){this.updatedComponents.push(e)}scheduleInstallModifier(e){this.scheduledInstallModifiers.push(e)}scheduleUpdateModifier(e){this.scheduledUpdateModifiers.push(e)}commit(){for(var{createdComponents:e,updatedComponents:t}=this,r=0;ru.install(c)),!1);(0,a.updateTag)(m,g)}else u.install(c)}for(var v=0;vu.update(c)),!1);(0,a.updateTag)(y,_)}else u.update(c)}}}class Dt{constructor(e,t){this.delegate=t,this[Tt]=null,this.isInteractive=this.delegate.isInteractive,this.debugRenderTree=this.delegate.enableDebugTooling?new kt:void 0,e.appendOperations?(this.appendOperations=e.appendOperations,this.updateOperations=e.updateOperations):e.document&&(this.appendOperations=new At(e.document),this.updateOperations=new Rt(e.document))}getAppendOperations(){return this.appendOperations}getDOM(){return this.updateOperations}begin(){var e -null===(e=this.debugRenderTree)||void 0===e||e.begin(),this[Mt]=new xt}get transaction(){return this[Mt]}didCreate(e){this.transaction.didCreate(e)}didUpdate(e){this.transaction.didUpdate(e)}scheduleInstallModifier(e){this.isInteractive&&this.transaction.scheduleInstallModifier(e)}scheduleUpdateModifier(e){this.isInteractive&&this.transaction.scheduleUpdateModifier(e)}commit(){var e,t=this.transaction -this[Mt]=null,t.commit(),null===(e=this.debugRenderTree)||void 0===e||e.commit(),this.delegate.onTransactionCommit()}}function Nt(e,t){if(e[Mt])t() +if(null!==y){var _=(0,a.track)((()=>u.update(c)),!1);(0,a.updateTag)(y,_)}else u.update(c)}}}class xt{constructor(e,t){this.delegate=t,this[Et]=null,this.isInteractive=this.delegate.isInteractive,this.debugRenderTree=this.delegate.enableDebugTooling?new kt:void 0,e.appendOperations?(this.appendOperations=e.appendOperations,this.updateOperations=e.updateOperations):e.document&&(this.appendOperations=new At(e.document),this.updateOperations=new Rt(e.document))}getAppendOperations(){return this.appendOperations}getDOM(){return this.updateOperations}begin(){var e +null===(e=this.debugRenderTree)||void 0===e||e.begin(),this[jt]=new Mt}get transaction(){return this[jt]}didCreate(e){this.transaction.didCreate(e)}didUpdate(e){this.transaction.didUpdate(e)}scheduleInstallModifier(e){this.isInteractive&&this.transaction.scheduleInstallModifier(e)}scheduleUpdateModifier(e){this.isInteractive&&this.transaction.scheduleUpdateModifier(e)}commit(){var e,t=this.transaction +this[jt]=null,t.commit(),null===(e=this.debugRenderTree)||void 0===e||e.commit(),this.delegate.onTransactionCommit()}}function Dt(e,t){if(e[jt])t() else{e.begin() -try{t()}finally{e.commit()}}}e.EnvironmentImpl=Dt,Tt=Mt -class Ft{constructor(e,t,r,i,n){this.stack=e,this.heap=t,this.program=r,this.externs=i,this.registers=n,this.currentOpSize=0}fetchRegister(e){return this.registers[e]}loadRegister(e,t){this.registers[e]=t}setPc(e){this.registers[s.$pc]=e}pushFrame(){this.stack.push(this.registers[s.$ra]),this.stack.push(this.registers[s.$fp]),this.registers[s.$fp]=this.registers[s.$sp]-1}popFrame(){this.registers[s.$sp]=this.registers[s.$fp]-1,this.registers[s.$ra]=this.stack.get(0),this.registers[s.$fp]=this.stack.get(1)}pushSmallFrame(){this.stack.push(this.registers[s.$ra])}popSmallFrame(){this.registers[s.$ra]=this.stack.pop()}goto(e){this.setPc(this.target(e))}target(e){return this.registers[s.$pc]+e-this.currentOpSize}call(e){this.registers[s.$ra]=this.registers[s.$pc],this.setPc(this.heap.getaddr(e))}returnTo(e){this.registers[s.$ra]=this.target(e)}return(){this.setPc(this.registers[s.$ra])}nextStatement(){var{registers:e,program:t}=this,r=e[s.$pc] +try{t()}finally{e.commit()}}}e.EnvironmentImpl=xt,Et=jt +class Nt{constructor(e,t,r,i,n){this.stack=e,this.heap=t,this.program=r,this.externs=i,this.registers=n,this.currentOpSize=0}fetchRegister(e){return this.registers[e]}loadRegister(e,t){this.registers[e]=t}setPc(e){this.registers[s.$pc]=e}pushFrame(){this.stack.push(this.registers[s.$ra]),this.stack.push(this.registers[s.$fp]),this.registers[s.$fp]=this.registers[s.$sp]-1}popFrame(){this.registers[s.$sp]=this.registers[s.$fp]-1,this.registers[s.$ra]=this.stack.get(0),this.registers[s.$fp]=this.stack.get(1)}pushSmallFrame(){this.stack.push(this.registers[s.$ra])}popSmallFrame(){this.registers[s.$ra]=this.stack.pop()}goto(e){this.setPc(this.target(e))}target(e){return this.registers[s.$pc]+e-this.currentOpSize}call(e){this.registers[s.$ra]=this.registers[s.$pc],this.setPc(this.heap.getaddr(e))}returnTo(e){this.registers[s.$ra]=this.target(e)}return(){this.setPc(this.registers[s.$ra])}nextStatement(){var{registers:e,program:t}=this,r=e[s.$pc] if(-1===r)return null var i=t.opcode(r),n=this.currentOpSize=i.size return this.registers[s.$pc]+=n,i}evaluateOuter(e,t){this.evaluateInner(e,t)}evaluateInner(e,t){e.isMachine?this.evaluateMachine(e):this.evaluateSyscall(e,t)}evaluateMachine(e){switch(e.type){case 0:return this.pushFrame() @@ -2732,12 +2415,11 @@ case 3:return this.call(e.op1) case 2:return this.call(this.stack.pop()) case 4:return this.goto(e.op1) case 5:return this.return() -case 6:return this.returnTo(e.op1)}}evaluateSyscall(e,t){ce.evaluate(t,e,e.type)}}class It{constructor(e,r){var{alwaysRevalidate:i=!1}=r -this.frameStack=new t.Stack,this.env=e,this.dom=e.getDOM(),this.alwaysRevalidate=i}execute(e,t){this._execute(e,t)}_execute(e,t){var{frameStack:r}=this +case 6:return this.returnTo(e.op1)}}evaluateSyscall(e,t){ce.evaluate(t,e,e.type)}}class Ft{constructor(e,{alwaysRevalidate:r=!1}){this.frameStack=new t.Stack,this.env=e,this.dom=e.getDOM(),this.alwaysRevalidate=r}execute(e,t){this._execute(e,t)}_execute(e,t){var{frameStack:r}=this for(this.try(e,t);!r.isEmpty();){var i=this.frame.nextStatement() -void 0!==i?i.evaluate(this):r.pop()}}get frame(){return this.frameStack.current}goto(e){this.frame.goto(e)}try(e,t){this.frameStack.push(new Ht(e,t))}throw(){this.frame.handleException(),this.frameStack.pop()}}e.UpdatingVM=It -class zt{constructor(e,t){this.state=e,this.resumeCallback=t}resume(e,t){return this.resumeCallback(e,this.state,t)}}class Lt{constructor(e,t,r,i){this.state=e,this.runtime=t,this.children=i,this.bounds=r}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}evaluate(e){e.try(this.children,null)}}class Ut extends Lt{constructor(){super(...arguments),this.type="try"}evaluate(e){e.try(this.children,this)}handleException(){var{state:e,bounds:t,runtime:r}=this;(0,n.destroyChildren)(this) -var i=se.resume(r.env,t),s=e.resume(r,i),a=[],o=this.children=[],l=s.execute((e=>{e.pushUpdating(a),e.updateWith(this),e.pushUpdating(o)}));(0,n.associateDestroyableChild)(this,l.drop)}}class Bt extends Ut{constructor(e,t,r,i,n,s){super(e,t,r,[]),this.key=i,this.memo=n,this.value=s,this.retained=!1,this.index=-1}updateReferences(e){this.retained=!0,(0,r.updateRef)(this.value,e.value),(0,r.updateRef)(this.memo,e.memo)}shouldRemove(){return!this.retained}reset(){this.retained=!1}}class $t extends Lt{constructor(e,t,i,n,s){super(e,t,i,n),this.iterableRef=s,this.type="list-block",this.opcodeMap=new Map,this.marker=null,this.lastIterator=(0,r.valueForRef)(s)}initializeChild(e){e.index=this.children.length-1,this.opcodeMap.set(e.key,e)}evaluate(e){var t=(0,r.valueForRef)(this.iterableRef) +void 0!==i?i.evaluate(this):r.pop()}}get frame(){return this.frameStack.current}goto(e){this.frame.goto(e)}try(e,t){this.frameStack.push(new $t(e,t))}throw(){this.frame.handleException(),this.frameStack.pop()}}e.UpdatingVM=Ft +class It{constructor(e,t){this.state=e,this.resumeCallback=t}resume(e,t){return this.resumeCallback(e,this.state,t)}}class zt{constructor(e,t,r,i){this.state=e,this.runtime=t,this.children=i,this.bounds=r}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}evaluate(e){e.try(this.children,null)}}class Lt extends zt{constructor(){super(...arguments),this.type="try"}evaluate(e){e.try(this.children,this)}handleException(){var{state:e,bounds:t,runtime:r}=this;(0,n.destroyChildren)(this) +var i=se.resume(r.env,t),s=e.resume(r,i),a=[],o=this.children=[],l=s.execute((e=>{e.pushUpdating(a),e.updateWith(this),e.pushUpdating(o)}));(0,n.associateDestroyableChild)(this,l.drop)}}class Ut extends Lt{constructor(e,t,r,i,n,s){super(e,t,r,[]),this.key=i,this.memo=n,this.value=s,this.retained=!1,this.index=-1}updateReferences(e){this.retained=!0,(0,r.updateRef)(this.value,e.value),(0,r.updateRef)(this.memo,e.memo)}shouldRemove(){return!this.retained}reset(){this.retained=!1}}class Bt extends zt{constructor(e,t,i,n,s){super(e,t,i,n),this.iterableRef=s,this.type="list-block",this.opcodeMap=new Map,this.marker=null,this.lastIterator=(0,r.valueForRef)(s)}initializeChild(e){e.index=this.children.length-1,this.opcodeMap.set(e.key,e)}evaluate(e){var t=(0,r.valueForRef)(this.iterableRef) if(this.lastIterator!==t){var{bounds:i}=this,{dom:n}=e,s=this.marker=n.createComment("") n.insertAfter(i.parentElement(),s,i.lastNode()),this.sync(t),this.parentElement().removeChild(s),this.marker=null,this.lastIterator=t}super.evaluate(e)}sync(e){var{opcodeMap:t,children:r}=this,i=0,n=0 for(this.children=this.bounds.boundList=[];;){var s=e.next() @@ -2752,14 +2434,12 @@ break}!1===u?(this.retainItem(l,s),i=n+1):(this.moveItem(l,s,a),i++)}}else this. !1===h.retained?this.deleteItem(h):h.reset()}}retainItem(e,t){var{children:i}=this;(0,r.updateRef)(e.memo,t.memo),(0,r.updateRef)(e.value,t.value),e.retained=!0,e.index=i.length,i.push(e)}insertItem(e,t){var{opcodeMap:r,bounds:i,state:s,runtime:a,children:o}=this,{key:l}=e,u=void 0===t?this.marker:t.firstNode(),c=se.forInitialRender(a.env,{element:i.parentElement(),nextSibling:u}) s.resume(a,c).execute((t=>{t.pushUpdating() var i=t.enterItem(e) -i.index=o.length,o.push(i),r.set(l,i),(0,n.associateDestroyableChild)(this,i)}))}moveItem(e,t,i){var n,{children:s}=this;(0,r.updateRef)(e.memo,t.memo),(0,r.updateRef)(e.value,t.value),e.retained=!0,void 0===i?O(e,this.marker):e.lastNode().nextSibling!==(n=i.firstNode())&&O(e,n),e.index=s.length,s.push(e)}deleteItem(e){(0,n.destroy)(e),E(e),this.opcodeMap.delete(e.key)}}class Ht{constructor(e,t){this.ops=e,this.exceptionHandler=t,this.current=0}goto(e){this.current=e}nextStatement(){return this.ops[this.current++]}handleException(){this.exceptionHandler&&this.exceptionHandler.handleException()}}class qt{constructor(e,t,r,i){this.env=e,this.updating=t,this.bounds=r,this.drop=i,(0,n.associateDestroyableChild)(this,i),(0,n.registerDestructor)(this,(()=>E(this.bounds)))}rerender(e){var{alwaysRevalidate:t=!1}=void 0===e?{alwaysRevalidate:!1}:e,{env:r,updating:i}=this -new It(r,{alwaysRevalidate:t}).execute(i,this)}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}handleException(){throw"this should never happen"}}class Vt{constructor(e,t){void 0===e&&(e=[]),this.stack=e,this[g]=t}static restore(e){return new this(e.slice(),[0,-1,e.length-1,0])}push(e){this.stack[++this[g][s.$sp]]=e}dup(e){void 0===e&&(e=this[g][s.$sp]),this.stack[++this[g][s.$sp]]=this.stack[e]}copy(e,t){this.stack[t]=this.stack[e]}pop(e){void 0===e&&(e=1) -var t=this.stack[this[g][s.$sp]] -return this[g][s.$sp]-=e,t}peek(e){return void 0===e&&(e=0),this.stack[this[g][s.$sp]-e]}get(e,t){return void 0===t&&(t=this[g][s.$fp]),this.stack[t+e]}set(e,t,r){void 0===r&&(r=this[g][s.$fp]),this.stack[r+t]=e}slice(e,t){return this.stack.slice(e,t)}capture(e){var t=this[g][s.$sp]+1,r=t-e -return this.stack.slice(r,t)}reset(){this.stack.length=0}toArray(){return this.stack.slice(this[g][s.$fp],this[g][s.$sp]+1)}}class Wt{constructor(){this.scope=new t.Stack,this.dynamicScope=new t.Stack,this.updating=new t.Stack,this.cache=new t.Stack,this.list=new t.Stack}}class Gt{constructor(e,r,i,n){var{pc:a,scope:o,dynamicScope:l,stack:u}=r -this.runtime=e,this.elementStack=i,this.context=n,this[Pt]=new Wt,this[jt]=new t.Stack,this.s0=null,this.s1=null,this.t0=null,this.t1=null,this.v0=null,this.resume=Kt(this.context) -var c=Vt.restore(u) -c[g][s.$pc]=a,c[g][s.$sp]=u.length-1,c[g][s.$fp]=-1,this[v]=this.program.heap,this[b]=this.program.constants,this.elementStack=i,this[m].scope.push(o),this[m].dynamicScope.push(l),this[y]=new Oe,this[p]=new Ft(c,this[v],e.program,{debugBefore:e=>ce.debugBefore(this,e),debugAfter:e=>{ce.debugAfter(this,e)}},c[g]),this.destructor={},this[f].push(this.destructor)}get stack(){return this[p].stack}get pc(){return this[p].fetchRegister(s.$pc)}fetch(e){var t=this.fetchValue(e) +i.index=o.length,o.push(i),r.set(l,i),(0,n.associateDestroyableChild)(this,i)}))}moveItem(e,t,i){var n,{children:s}=this;(0,r.updateRef)(e.memo,t.memo),(0,r.updateRef)(e.value,t.value),e.retained=!0,void 0===i?O(e,this.marker):e.lastNode().nextSibling!==(n=i.firstNode())&&O(e,n),e.index=s.length,s.push(e)}deleteItem(e){(0,n.destroy)(e),E(e),this.opcodeMap.delete(e.key)}}class $t{constructor(e,t){this.ops=e,this.exceptionHandler=t,this.current=0}goto(e){this.current=e}nextStatement(){return this.ops[this.current++]}handleException(){this.exceptionHandler&&this.exceptionHandler.handleException()}}class Ht{constructor(e,t,r,i){this.env=e,this.updating=t,this.bounds=r,this.drop=i,(0,n.associateDestroyableChild)(this,i),(0,n.registerDestructor)(this,(()=>E(this.bounds)))}rerender({alwaysRevalidate:e=!1}={alwaysRevalidate:!1}){var{env:t,updating:r}=this +new Ft(t,{alwaysRevalidate:e}).execute(r,this)}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}handleException(){throw"this should never happen"}}class qt{constructor(e=[],t){this.stack=e,this[g]=t}static restore(e){return new this(e.slice(),[0,-1,e.length-1,0])}push(e){this.stack[++this[g][s.$sp]]=e}dup(e=this[g][s.$sp]){this.stack[++this[g][s.$sp]]=this.stack[e]}copy(e,t){this.stack[t]=this.stack[e]}pop(e=1){var t=this.stack[this[g][s.$sp]] +return this[g][s.$sp]-=e,t}peek(e=0){return this.stack[this[g][s.$sp]-e]}get(e,t=this[g][s.$fp]){return this.stack[t+e]}set(e,t,r=this[g][s.$fp]){this.stack[r+t]=e}slice(e,t){return this.stack.slice(e,t)}capture(e){var t=this[g][s.$sp]+1,r=t-e +return this.stack.slice(r,t)}reset(){this.stack.length=0}toArray(){return this.stack.slice(this[g][s.$fp],this[g][s.$sp]+1)}}class Vt{constructor(){this.scope=new t.Stack,this.dynamicScope=new t.Stack,this.updating=new t.Stack,this.cache=new t.Stack,this.list=new t.Stack}}class Wt{constructor(e,{pc:r,scope:i,dynamicScope:n,stack:a},o,l){this.runtime=e,this.elementStack=o,this.context=l,this[Pt]=new Vt,this[St]=new t.Stack,this.s0=null,this.s1=null,this.t0=null,this.t1=null,this.v0=null,this.resume=Yt(this.context) +var u=qt.restore(a) +u[g][s.$pc]=r,u[g][s.$sp]=a.length-1,u[g][s.$fp]=-1,this[v]=this.program.heap,this[b]=this.program.constants,this.elementStack=o,this[m].scope.push(i),this[m].dynamicScope.push(n),this[y]=new Oe,this[p]=new Nt(u,this[v],e.program,{debugBefore:e=>ce.debugBefore(this,e),debugAfter:e=>{ce.debugAfter(this,e)}},u[g]),this.destructor={},this[f].push(this.destructor)}get stack(){return this[p].stack}get pc(){return this[p].fetchRegister(s.$pc)}fetch(e){var t=this.fetchValue(e) this.stack.push(t)}load(e){var t=this.stack.pop() this.loadValue(e,t)}fetchValue(e){if((0,s.isLowLevelRegister)(e))return this[p].fetchRegister(e) switch(e){case s.$s0:return this.s0 @@ -2774,284 +2454,230 @@ case s.$t0:this.t0=t break case s.$t1:this.t1=t break -case s.$v0:this.v0=t}}pushFrame(){this[p].pushFrame()}popFrame(){this[p].popFrame()}goto(e){this[p].goto(e)}call(e){this[p].call(e)}returnTo(e){this[p].returnTo(e)}return(){this[p].return()}static initial(e,t,r){var{handle:i,self:n,dynamicScope:s,treeBuilder:a,numSymbols:o,owner:l}=r,u=h.root(n,o,l),c=Yt(e.program.heap.getaddr(i),u,s),d=Kt(t)(e,c,a) -return d.pushUpdating(),d}static empty(e,t,i){var{handle:n,treeBuilder:s,dynamicScope:a,owner:o}=t,l=Kt(i)(e,Yt(e.program.heap.getaddr(n),h.root(r.UNDEFINED_REFERENCE,0,o),a),s) -return l.pushUpdating(),l}compile(e){return(0,t.unwrapHandle)(e.compile(this.context))}get program(){return this.runtime.program}get env(){return this.runtime.env}captureState(e,t){return void 0===t&&(t=this[p].fetchRegister(s.$pc)),{pc:t,scope:this.scope(),dynamicScope:this.dynamicScope(),stack:this.stack.capture(e)}}capture(e,t){return void 0===t&&(t=this[p].fetchRegister(s.$pc)),new zt(this.captureState(e,t),this.resume)}beginCacheGroup(e){var t=this.updating(),r=new He +case s.$v0:this.v0=t}}pushFrame(){this[p].pushFrame()}popFrame(){this[p].popFrame()}goto(e){this[p].goto(e)}call(e){this[p].call(e)}returnTo(e){this[p].returnTo(e)}return(){this[p].return()}static initial(e,t,{handle:r,self:i,dynamicScope:n,treeBuilder:s,numSymbols:a,owner:o}){var l=h.root(i,a,o),u=Gt(e.program.heap.getaddr(r),l,n),c=Yt(t)(e,u,s) +return c.pushUpdating(),c}static empty(e,{handle:t,treeBuilder:i,dynamicScope:n,owner:s},a){var o=Yt(a)(e,Gt(e.program.heap.getaddr(t),h.root(r.UNDEFINED_REFERENCE,0,s),n),i) +return o.pushUpdating(),o}compile(e){return(0,t.unwrapHandle)(e.compile(this.context))}get program(){return this.runtime.program}get env(){return this.runtime.env}captureState(e,t=this[p].fetchRegister(s.$pc)){return{pc:t,scope:this.scope(),dynamicScope:this.dynamicScope(),stack:this.stack.capture(e)}}capture(e,t=this[p].fetchRegister(s.$pc)){return new It(this.captureState(e,t),this.resume)}beginCacheGroup(e){var t=this.updating(),r=new He t.push(r),t.push(new qe(e)),this[m].cache.push(r),(0,a.beginTrackFrame)(e)}commitCacheGroup(){var e=this.updating(),t=this[m].cache.pop(),r=(0,a.endTrackFrame)() -e.push(new Ve(t)),t.finalize(r,e.length)}enter(e){var t=this.capture(e),r=this.elements().pushUpdatableBlock(),i=new Ut(t,this.runtime,r,[]) -this.didEnter(i)}enterItem(e){var{key:t,value:i,memo:n}=e,{stack:s}=this,a=(0,r.createIteratorItemRef)(i),o=(0,r.createIteratorItemRef)(n) -s.push(a),s.push(o) -var l=this.capture(2),u=this.elements().pushUpdatableBlock(),c=new Bt(l,this.runtime,u,t,o,a) -return this.didEnter(c),c}registerItem(e){this.listBlock().initializeChild(e)}enterList(e,t){var r=[],i=this[p].target(t),n=this.capture(0,i),s=this.elements().pushBlockList(r),a=new $t(n,this.runtime,s,r,e) -this[m].list.push(a),this.didEnter(a)}didEnter(e){this.associateDestroyable(e),this[f].push(e),this.updateWith(e),this.pushUpdating(e.children)}exit(){this[f].pop(),this.elements().popBlock(),this.popUpdating()}exitList(){this.exit(),this[m].list.pop()}pushUpdating(e){void 0===e&&(e=[]),this[m].updating.push(e)}popUpdating(){return this[m].updating.pop()}updateWith(e){this.updating().push(e)}listBlock(){return this[m].list.current}associateDestroyable(e){var t=this[f].current;(0,n.associateDestroyableChild)(t,e)}tryUpdating(){return this[m].updating.current}updating(){return this[m].updating.current}elements(){return this.elementStack}scope(){return this[m].scope.current}dynamicScope(){return this[m].dynamicScope.current}pushChildScope(){this[m].scope.push(this.scope().child())}pushDynamicScope(){var e=this.dynamicScope().child() +e.push(new Ve(t)),t.finalize(r,e.length)}enter(e){var t=this.capture(e),r=this.elements().pushUpdatableBlock(),i=new Lt(t,this.runtime,r,[]) +this.didEnter(i)}enterItem({key:e,value:t,memo:i}){var{stack:n}=this,s=(0,r.createIteratorItemRef)(t),a=(0,r.createIteratorItemRef)(i) +n.push(s),n.push(a) +var o=this.capture(2),l=this.elements().pushUpdatableBlock(),u=new Ut(o,this.runtime,l,e,a,s) +return this.didEnter(u),u}registerItem(e){this.listBlock().initializeChild(e)}enterList(e,t){var r=[],i=this[p].target(t),n=this.capture(0,i),s=this.elements().pushBlockList(r),a=new Bt(n,this.runtime,s,r,e) +this[m].list.push(a),this.didEnter(a)}didEnter(e){this.associateDestroyable(e),this[f].push(e),this.updateWith(e),this.pushUpdating(e.children)}exit(){this[f].pop(),this.elements().popBlock(),this.popUpdating()}exitList(){this.exit(),this[m].list.pop()}pushUpdating(e=[]){this[m].updating.push(e)}popUpdating(){return this[m].updating.pop()}updateWith(e){this.updating().push(e)}listBlock(){return this[m].list.current}associateDestroyable(e){var t=this[f].current;(0,n.associateDestroyableChild)(t,e)}tryUpdating(){return this[m].updating.current}updating(){return this[m].updating.current}elements(){return this.elementStack}scope(){return this[m].scope.current}dynamicScope(){return this[m].dynamicScope.current}pushChildScope(){this[m].scope.push(this.scope().child())}pushDynamicScope(){var e=this.dynamicScope().child() return this[m].dynamicScope.push(e),e}pushRootScope(e,t){var r=h.sized(e,t) return this[m].scope.push(r),r}pushScope(e){this[m].scope.push(e)}popScope(){this[m].scope.pop()}popDynamicScope(){this[m].dynamicScope.pop()}getOwner(){return this.scope().owner}getSelf(){return this.scope().getSelf()}referenceForSymbol(e){return this.scope().getSymbol(e)}execute(e){return this._execute(e)}_execute(e){var t for(e&&e(this);!(t=this.next()).done;);return t.value}next(){var e,{env:t,elementStack:r}=this,i=this[p].nextStatement() -return null!==i?(this[p].evaluateOuter(i,this),e={done:!1,value:null}):(this.stack.reset(),e={done:!0,value:new qt(t,this.popUpdating(),r.popBlock(),this.destructor)}),e}bindDynamicScope(e){for(var t=this.dynamicScope(),r=e.length-1;r>=0;r--){var i=e[r] -t.set(i,this.stack.pop())}}}function Yt(e,t,r){return{pc:e,scope:t,dynamicScope:r,stack:[]}}function Kt(e){return(t,r,i)=>new Gt(t,r,i,e)}e.LowLevelVM=Gt,Pt=m,jt=f -class Qt{constructor(e){this.vm=e}next(){return this.vm.next()}sync(){return this.vm.execute()}}var Jt="%+b:0%" -e.SERIALIZATION_FIRST_NODE_STRING=Jt -class Xt extends _{constructor(e,t,r){super(e,t),this.startingBlockDepth=r,this.candidate=null,this.injectedOmittedNode=!1,this.openBlockDepth=r-1}}class Zt extends se{constructor(e,t,r){if(super(e,t,r),this.unmatchedAttributes=null,this.blockDepth=0,r)throw new Error("Rehydration with nextSibling not supported") -for(var i=this.currentCursor.element.firstChild;null!==i&&!er(i);)i=i.nextSibling +return null!==i?(this[p].evaluateOuter(i,this),e={done:!1,value:null}):(this.stack.reset(),e={done:!0,value:new Ht(t,this.popUpdating(),r.popBlock(),this.destructor)}),e}bindDynamicScope(e){for(var t=this.dynamicScope(),r=e.length-1;r>=0;r--){var i=e[r] +t.set(i,this.stack.pop())}}}function Gt(e,t,r){return{pc:e,scope:t,dynamicScope:r,stack:[]}}function Yt(e){return(t,r,i)=>new Wt(t,r,i,e)}e.LowLevelVM=Wt,Pt=m,St=f +class Kt{constructor(e){this.vm=e}next(){return this.vm.next()}sync(){return this.vm.execute()}}var Qt=e.SERIALIZATION_FIRST_NODE_STRING="%+b:0%" +class Jt extends _{constructor(e,t,r){super(e,t),this.startingBlockDepth=r,this.candidate=null,this.injectedOmittedNode=!1,this.openBlockDepth=r-1}}class Xt extends se{constructor(e,t,r){if(super(e,t,r),this.unmatchedAttributes=null,this.blockDepth=0,r)throw new Error("Rehydration with nextSibling not supported") +for(var i=this.currentCursor.element.firstChild;null!==i&&!Zt(i);)i=i.nextSibling this.candidate=i -var n=rr(i) +var n=tr(i) if(0!==n){var s=n-1,a=this.dom.createComment(`%+b:${s}%`) i.parentNode.insertBefore(a,this.candidate) -for(var o=i.nextSibling;null!==o&&(!tr(o)||rr(o)!==n);)o=o.nextSibling +for(var o=i.nextSibling;null!==o&&(!er(o)||tr(o)!==n);)o=o.nextSibling var l=this.dom.createComment(`%-b:${s}%`) i.parentNode.insertBefore(l,o.nextSibling),this.candidate=a,this.startingBlockOffset=s}else this.startingBlockOffset=0}get currentCursor(){return this[ne].current}get candidate(){return this.currentCursor?this.currentCursor.candidate:null}set candidate(e){this.currentCursor.candidate=e}disableRehydration(e){var t=this.currentCursor t.candidate=null,t.nextSibling=e}enableRehydration(e){var t=this.currentCursor -t.candidate=e,t.nextSibling=null}pushElement(e,t){void 0===t&&(t=null) -var r=new Xt(e,t,this.blockDepth||0) +t.candidate=e,t.nextSibling=null}pushElement(e,t=null){var r=new Jt(e,t,this.blockDepth||0) null!==this.candidate&&(r.candidate=e.firstChild,this.candidate=e.nextSibling),this[ne].push(r)}clearMismatch(e){var t=e,r=this.currentCursor if(null!==r){var i=r.openBlockDepth -if(i>=r.startingBlockDepth)for(;t;){if(tr(t))if(i>=ir(t,this.startingBlockOffset))break +if(i>=r.startingBlockDepth)for(;t;){if(er(t))if(i>=rr(t,this.startingBlockOffset))break t=this.remove(t)}else for(;null!==t;)t=this.remove(t) this.disableRehydration(t)}}__openBlock(){var{currentCursor:e}=this if(null!==e){var t=this.blockDepth this.blockDepth++ var{candidate:r}=e if(null!==r){var{tagName:i}=e.element -er(r)&&ir(r,this.startingBlockOffset)===t?(this.candidate=this.remove(r),e.openBlockDepth=t):"TITLE"!==i&&"SCRIPT"!==i&&"STYLE"!==i&&this.clearMismatch(r)}}}__closeBlock(){var{currentCursor:e}=this +Zt(r)&&rr(r,this.startingBlockOffset)===t?(this.candidate=this.remove(r),e.openBlockDepth=t):"TITLE"!==i&&"SCRIPT"!==i&&"STYLE"!==i&&this.clearMismatch(r)}}}__closeBlock(){var{currentCursor:e}=this if(null!==e){var t=e.openBlockDepth this.blockDepth-- var{candidate:r}=e,i=!1 -if(null!==r)if(i=!0,tr(r)&&ir(r,this.startingBlockOffset)===t){var n=this.remove(r) +if(null!==r)if(i=!0,er(r)&&rr(r,this.startingBlockOffset)===t){var n=this.remove(r) this.candidate=n,e.openBlockDepth--}else this.clearMismatch(r),i=!1 if(!1===i){var s=e.nextSibling -if(null!==s&&tr(s)&&ir(s,this.startingBlockOffset)===this.blockDepth){var a=this.remove(s) +if(null!==s&&er(s)&&rr(s,this.startingBlockOffset)===this.blockDepth){var a=this.remove(s) this.enableRehydration(a),e.openBlockDepth--}}}}__appendNode(e){var{candidate:t}=this return t||super.__appendNode(e)}__appendHTML(e){var t=this.markerBounds() if(t){var r=t.firstNode(),i=t.lastNode(),n=new w(this.element,r.nextSibling,i.previousSibling),s=this.remove(r) -return this.remove(i),null!==s&&ar(s)&&(this.candidate=this.remove(s),null!==this.candidate&&this.clearMismatch(this.candidate)),n}return super.__appendHTML(e)}remove(e){var t=e.parentNode,r=e.nextSibling +return this.remove(i),null!==s&&sr(s)&&(this.candidate=this.remove(s),null!==this.candidate&&this.clearMismatch(this.candidate)),n}return super.__appendHTML(e)}remove(e){var t=e.parentNode,r=e.nextSibling return t.removeChild(e),r}markerBounds(){var e=this.candidate -if(e&&sr(e)){for(var t=e,r=t.nextSibling;r&&!sr(r);)r=r.nextSibling +if(e&&nr(e)){for(var t=e,r=t.nextSibling;r&&!nr(r);)r=r.nextSibling return new w(this.element,t,r)}return null}__appendText(e){var{candidate:t}=this -return t?3===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):function(e){return 8===e.nodeType&&"%|%"===e.nodeValue}(t)||ar(t)&&""===e?(this.candidate=this.remove(t),this.__appendText(e)):(this.clearMismatch(t),super.__appendText(e)):super.__appendText(e)}__appendComment(e){var t=this.candidate +return t?3===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):function(e){return 8===e.nodeType&&"%|%"===e.nodeValue}(t)||sr(t)&&""===e?(this.candidate=this.remove(t),this.__appendText(e)):(this.clearMismatch(t),super.__appendText(e)):super.__appendText(e)}__appendComment(e){var t=this.candidate return t&&8===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):(t&&this.clearMismatch(t),super.__appendComment(e))}__openElement(e){var t=this.candidate -if(t&&nr(t)&&function(e,t){if("http://www.w3.org/2000/svg"===e.namespaceURI)return e.tagName===t +if(t&&ir(t)&&function(e,t){if("http://www.w3.org/2000/svg"===e.namespaceURI)return e.tagName===t return e.tagName===t.toUpperCase()}(t,e))return this.unmatchedAttributes=[].slice.call(t.attributes),t -if(t){if(nr(t)&&"TBODY"===t.tagName)return this.pushElement(t,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(e) +if(t){if(ir(t)&&"TBODY"===t.tagName)return this.pushElement(t,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(e) this.clearMismatch(t)}return super.__openElement(e)}__setAttribute(e,t,r){var i=this.unmatchedAttributes -if(i){var n=or(i,e) +if(i){var n=ar(i,e) if(n)return n.value!==t&&(n.value=t),void i.splice(i.indexOf(n),1)}return super.__setAttribute(e,t,r)}__setProperty(e,t){var r=this.unmatchedAttributes -if(r){var i=or(r,e) +if(r){var i=ar(r,e) if(i)return i.value!==t&&(i.value=t),void r.splice(r.indexOf(i),1)}return super.__setProperty(e,t)}__flushElement(e,t){var{unmatchedAttributes:r}=this if(r){for(var i=0;iIe) -var r=(0,a.createCache)((()=>t(e))) -this.argsCache=r}get named(){return lr(this).named||Ne}get positional(){return lr(this).positional||Fe}}function cr(e){return(0,o.setInternalHelperManager)(e,{})}var dr=(0,t.buildUntouchableThis)("`fn` helper"),hr=cr((e=>{var{positional:t}=e,i=t[0] -return(0,r.createComputeRef)((()=>function(){var[e,...n]=(0,c.reifyPositional)(t) -for(var s=arguments.length,a=new Array(s),o=0;o0?n[0]:a[0] -return(0,r.updateRef)(i,l)}return e.call(dr,...n,...a)}),null,"fn")})) -e.fn=hr -var pr=cr((e=>{var{named:t}=e,i=(0,r.createComputeRef)((()=>{var e=(0,c.reifyNamed)(t) -return e}),null,"hash"),n=new Map -for(var s in t)n.set(s,t[s]) -return i.children=n,i})) -e.hash=pr -var fr=cr((e=>{var{positional:t}=e -return(0,r.createComputeRef)((()=>(0,c.reifyPositional)(t)),null,"array")})) -e.array=fr -var mr=cr((e=>{var n,s,{positional:a}=e,o=null!==(n=a[0])&&void 0!==n?n:r.UNDEFINED_REFERENCE,l=null!==(s=a[1])&&void 0!==s?s:r.UNDEFINED_REFERENCE -return(0,r.createComputeRef)((()=>{var e=(0,r.valueForRef)(o) -if((0,t.isDict)(e))return(0,i.getPath)(e,String((0,r.valueForRef)(l)))}),(e=>{var n=(0,r.valueForRef)(o) -if((0,t.isDict)(n))return(0,i.setPath)(n,String((0,r.valueForRef)(l)),e)}),"get")})) -e.get=mr -var gr=e=>(e=>null==e||"function"!=typeof e.toString)(e)?"":String(e),vr=cr((e=>{var{positional:t}=e -return(0,r.createComputeRef)((()=>(0,c.reifyPositional)(t).map(gr).join("")),null,"concat")})) -e.concat=vr -var br=(0,t.buildUntouchableThis)("`on` modifier"),yr=(()=>{try{var e,t=document.createElement("div"),r=0 +this.candidate=t&&t.nextSibling}return e}}function Zt(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%+b:",0)}function er(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%-b:",0)}function tr(e){return parseInt(e.nodeValue.slice(4),10)}function rr(e,t){return tr(e)-t}function ir(e){return 1===e.nodeType}function nr(e){return 8===e.nodeType&&"%glmr%"===e.nodeValue}function sr(e){return 8===e.nodeType&&"% %"===e.nodeValue}function ar(e,t){for(var r=0;rIe)){var r=(0,a.createCache)((()=>t(e))) +this.argsCache=r}get named(){return or(this).named||Ne}get positional(){return or(this).positional||Fe}}function ur(e){return(0,o.setInternalHelperManager)(e,{})}var cr=(0,t.buildUntouchableThis)("`fn` helper") +e.fn=ur((({positional:e})=>{var t=e[0] +return(0,r.createComputeRef)((()=>(...i)=>{var[n,...s]=(0,c.reifyPositional)(e) +if((0,r.isInvokableRef)(t)){var a=s.length>0?s[0]:i[0] +return(0,r.updateRef)(t,a)}return n.call(cr,...s,...i)}),null,"fn")})) +e.hash=ur((({named:e})=>{var t=(0,r.createComputeRef)((()=>{var t=(0,c.reifyNamed)(e) +return t}),null,"hash"),i=new Map +for(var n in e)i.set(n,e[n]) +return t.children=i,t})),e.array=ur((({positional:e})=>(0,r.createComputeRef)((()=>(0,c.reifyPositional)(e)),null,"array"))),e.get=ur((({positional:e})=>{var n,s,a=null!==(n=e[0])&&void 0!==n?n:r.UNDEFINED_REFERENCE,o=null!==(s=e[1])&&void 0!==s?s:r.UNDEFINED_REFERENCE +return(0,r.createComputeRef)((()=>{var e=(0,r.valueForRef)(a) +if((0,t.isDict)(e))return(0,i.getPath)(e,String((0,r.valueForRef)(o)))}),(e=>{var n=(0,r.valueForRef)(a) +if((0,t.isDict)(n))return(0,i.setPath)(n,String((0,r.valueForRef)(o)),e)}),"get")})) +var dr=e=>(e=>null==e||"function"!=typeof e.toString)(e)?"":String(e),hr=(e.concat=ur((({positional:e})=>(0,r.createComputeRef)((()=>(0,c.reifyPositional)(e).map(dr).join("")),null,"concat"))),(0,t.buildUntouchableThis)("`on` modifier")),pr=(()=>{try{var e,t=document.createElement("div"),r=0 return t.addEventListener("click",(()=>r++),{once:!0}),"function"==typeof Event?e=new Event("click"):(e=document.createEvent("Event")).initEvent("click",!0,!0),t.dispatchEvent(e),t.dispatchEvent(e),1===r}catch(i){return!1}})() -class _r{constructor(e,t){this.tag=(0,a.createUpdatableTag)(),this.shouldUpdate=!0,this.element=e,this.args=t}updateFromArgs(){var e,{args:t}=this,{once:i,passive:n,capture:s}=(0,c.reifyNamed)(t.named) +class fr{constructor(e,t){this.tag=(0,a.createUpdatableTag)(),this.shouldUpdate=!0,this.element=e,this.args=t}updateFromArgs(){var e,{args:t}=this,{once:i,passive:n,capture:s}=(0,c.reifyNamed)(t.named) i!==this.once&&(this.once=i,this.shouldUpdate=!0),n!==this.passive&&(this.passive=n,this.shouldUpdate=!0),s!==this.capture&&(this.capture=s,this.shouldUpdate=!0),i||n||s?e=this.options={once:i,passive:n,capture:s}:this.options=void 0 var a=(0,r.valueForRef)(t.positional[0]) a!==this.eventName&&(this.eventName=a,this.shouldUpdate=!0) var o=t.positional[1],l=(0,r.valueForRef)(o) l!==this.userProvidedCallback&&(this.userProvidedCallback=l,this.shouldUpdate=!0) -var u=!1===yr&&i||!1 -if(this.shouldUpdate)if(u)var d=this.callback=function(t){return!yr&&i&&Or(this,a,d,e),l.call(br,t)} -else this.callback=l}}var wr=0,Rr=0 -function Or(e,t,r,i){Rr++,yr?e.removeEventListener(t,r,i):void 0!==i&&i.capture?e.removeEventListener(t,r,!0):e.removeEventListener(t,r)}function Er(e,t,r,i){wr++,yr?e.addEventListener(t,r,i):void 0!==i&&i.capture?e.addEventListener(t,r,!0):e.addEventListener(t,r)}var Ar=(0,o.setInternalModifierManager)(new class{constructor(){this.SUPPORTS_EVENT_OPTIONS=yr}getDebugName(){return"on"}get counters(){return{adds:wr,removes:Rr}}create(e,t,r,i){return new _r(t,i)}getTag(e){return null===e?null:e.tag}install(e){if(null!==e){e.updateFromArgs() +var u=!1===pr&&i||!1 +if(this.shouldUpdate)if(u)var d=this.callback=function(t){return!pr&&i&&vr(this,a,d,e),l.call(hr,t)} +else this.callback=l}}var mr=0,gr=0 +function vr(e,t,r,i){gr++,pr?e.removeEventListener(t,r,i):void 0!==i&&i.capture?e.removeEventListener(t,r,!0):e.removeEventListener(t,r)}function br(e,t,r,i){mr++,pr?e.addEventListener(t,r,i):void 0!==i&&i.capture?e.addEventListener(t,r,!0):e.addEventListener(t,r)}e.on=(0,o.setInternalModifierManager)(new class{constructor(){this.SUPPORTS_EVENT_OPTIONS=pr}getDebugName(){return"on"}get counters(){return{adds:mr,removes:gr}}create(e,t,r,i){return new fr(t,i)}getTag(e){return null===e?null:e.tag}install(e){if(null!==e){e.updateFromArgs() var{element:t,eventName:r,callback:i,options:s}=e -Er(t,r,i,s),(0,n.registerDestructor)(e,(()=>Or(t,r,i,s))),e.shouldUpdate=!1}}update(e){if(null!==e){var{element:t,eventName:r,callback:i,options:n}=e -e.updateFromArgs(),e.shouldUpdate&&(Or(t,r,i,n),Er(e.element,e.eventName,e.callback,e.options),e.shouldUpdate=!1)}}getDestroyable(e){return e}},{}) -e.on=Ar})),e("@glimmer/tracking/index",["exports","@ember/-internals/metal"],(function(e,t){"use strict" +br(t,r,i,s),(0,n.registerDestructor)(e,(()=>vr(t,r,i,s))),e.shouldUpdate=!1}}update(e){if(null!==e){var{element:t,eventName:r,callback:i,options:n}=e +e.updateFromArgs(),e.shouldUpdate&&(vr(t,r,i,n),br(e.element,e.eventName,e.callback,e.options),e.shouldUpdate=!1)}}getDestroyable(e){return e}},{})})),e("@glimmer/tracking/index",["exports","@ember/-internals/metal"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cached",{enumerable:!0,get:function(){return t.cached}}),Object.defineProperty(e,"tracked",{enumerable:!0,get:function(){return t.tracked}})})),e("@glimmer/tracking/primitives/cache",["exports","@ember/-internals/metal"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createCache",{enumerable:!0,get:function(){return t.createCache}}),Object.defineProperty(e,"getValue",{enumerable:!0,get:function(){return t.getValue}}),Object.defineProperty(e,"isConst",{enumerable:!0,get:function(){return t.isConst}})})),e("@glimmer/util",["exports"],(function(e){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e._WeakSet=e.Stack=e.SERIALIZATION_FIRST_NODE_STRING=e.LOGGER=e.LOCAL_LOGGER=e.HAS_NATIVE_SYMBOL=e.HAS_NATIVE_PROXY=e.EMPTY_STRING_ARRAY=e.EMPTY_NUMBER_ARRAY=e.EMPTY_ARRAY=void 0,e.assert=function(e,t){if(!e)throw new Error(t||"assertion failure")},e.assertNever=function(e,t){void 0===t&&(t="unexpected unreachable branch") -throw C.log("unreachable",e),C.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")},e.assertPresent=function(e,t){void 0===t&&(t="unexpected empty list") -if(!E(e))throw new Error(t)},e.beginTestSteps=e.assign=void 0,e.buildUntouchableThis=function(e){var t=null +Object.defineProperty(e,"__esModule",{value:!0}),e._WeakSet=e.Stack=e.SERIALIZATION_FIRST_NODE_STRING=e.LOGGER=e.LOCAL_LOGGER=e.HAS_NATIVE_SYMBOL=e.HAS_NATIVE_PROXY=e.EMPTY_STRING_ARRAY=e.EMPTY_NUMBER_ARRAY=e.EMPTY_ARRAY=void 0,e.assert=function(e,t){if(!e)throw new Error(t||"assertion failure")},e.assertNever=function(e,t="unexpected unreachable branch"){throw _.log("unreachable",e),_.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")},e.assertPresent=function(e,t="unexpected empty list"){if(!b(e))throw new Error(t)},e.beginTestSteps=e.assign=void 0,e.buildUntouchableThis=function(e){var t=null return t},e.castToBrowser=function(e,t){if(null==e)return null if(void 0===typeof document)throw new Error("Attempted to cast to a browser node in a non-browser context") -if(w(e))return e +if(m(e))return e if(e.ownerDocument!==document)throw new Error("Attempted to cast to a browser node with a node that was not created from this document") -return R(e,t)},e.castToSimple=function(e){return w(e)||function(e){e.nodeType}(e),e},e.checkNode=R,e.clearElement=function(e){var t=e.firstChild +return g(e,t)},e.castToSimple=function(e){return m(e)||function(e){e.nodeType}(e),e},e.checkNode=g,e.clearElement=function(e){var t=e.firstChild for(;t;){var r=t.nextSibling -e.removeChild(t),t=r}},e.constants=function(){for(var e=arguments.length,t=new Array(e),r=0;r=0},e.isNonPrimitiveHandle=function(e){return e>3},e.isObject=function(e){return"function"==typeof e||"object"==typeof e&&null!==e},e.isOkHandle=function(e){return"number"==typeof e},e.isPresent=E,e.isSerializationFirstNode=function(e){return e.nodeValue===s},e.isSmallInt=function(e){return e%1==0&&e<=536870911&&e>=-536870912},e.keys=function(e){return Object.keys(e)},e.logStep=void 0,e.mapPresent=function(e,t){if(null===e)return null +e.ifPresent=function(e,t,r){return b(e)?t(e):r()},e.intern=n,e.isDict=function(e){return null!=e},e.isEmptyArray=function(e){return e===t},e.isErrHandle=function(e){return"number"==typeof e},e.isHandle=function(e){return e>=0},e.isNonPrimitiveHandle=function(e){return e>3},e.isObject=function(e){return"function"==typeof e||"object"==typeof e&&null!==e},e.isOkHandle=function(e){return"number"==typeof e},e.isPresent=b,e.isSerializationFirstNode=function(e){return e.nodeValue===i},e.isSmallInt=function(e){return e%1==0&&e<=536870911&&e>=-536870912},e.keys=function(e){return Object.keys(e)},e.logStep=void 0,e.mapPresent=function(e,t){if(null===e)return null var r=[] for(var i of e)r.push(t(i)) -return r},e.strip=function(e){for(var t="",r=arguments.length,i=new Array(r>1?r-1:0),n=1;n-536870913?g(e):f(e)}e.symbol=h,[1,-1].forEach((e=>b(v(e)))) -var y,_="function"==typeof WeakSet?WeakSet:class{constructor(){this._map=new WeakMap}add(e){return this._map.set(e,!0),this}delete(e){return this._map.delete(e)}has(e){return this._map.has(e)}} -function w(e){return 9===e.nodeType}function R(e,t){var r=!1 -if(null!==e)if("string"==typeof t)r=O(e,t) -else{if(!Array.isArray(t))throw c() -r=t.some((t=>O(e,t)))}if(r)return e -throw function(e,t){return new Error(`cannot cast a ${e} into ${t}`)}(`SimpleElement(${e})`,t)}function O(e,t){switch(t){case"NODE":return!0 +return e}e.HAS_NATIVE_PROXY="function"==typeof Proxy +var s=e.HAS_NATIVE_SYMBOL="function"==typeof Symbol&&"symbol"==typeof Symbol() +function a(e="unreachable"){return new Error(e)}function o(e){return n(`__${e}${Math.floor(Math.random()*Date.now())}__`)}e.tuple=(...e)=>e +e.symbol=s?Symbol:o +function l(e){return-536870913&e}function u(e){return 536870912|e}function c(e){return~e}function d(e){return~e}function h(e){return(e|=0)<0?l(e):c(e)}function p(e){return(e|=0)>-536870913?d(e):u(e)}[1,-1].forEach((e=>p(h(e)))) +var f +e._WeakSet="function"==typeof WeakSet?WeakSet:class{constructor(){this._map=new WeakMap}add(e){return this._map.set(e,!0),this}delete(e){return this._map.delete(e)}has(e){return this._map.has(e)}} +function m(e){return 9===e.nodeType}function g(e,t){var r=!1 +if(null!==e)if("string"==typeof t)r=v(e,t) +else{if(!Array.isArray(t))throw a() +r=t.some((t=>v(e,t)))}if(r)return e +throw function(e,t){return new Error(`cannot cast a ${e} into ${t}`)}(`SimpleElement(${e})`,t)}function v(e,t){switch(t){case"NODE":return!0 case"HTML":return e instanceof HTMLElement case"SVG":return e instanceof SVGElement case"ELEMENT":return e instanceof Element default:if(t.toUpperCase()===t)throw new Error("BUG: this code is missing handling for a generic node type") -return e instanceof Element&&e.tagName.toLowerCase()===t}}function E(e){return e.length>0}e._WeakSet=_ -var A=y -e.debugToString=A,e.beginTestSteps=undefined,e.endTestSteps=undefined,e.verifySteps=undefined,e.logStep=undefined -var T=console -e.LOCAL_LOGGER=T -var C=console -e.LOGGER=C})),e("@glimmer/validator",["exports","@glimmer/global-context"],(function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.VolatileTag=e.VOLATILE_TAG=e.VOLATILE=e.INITIAL=e.CurrentTag=e.CURRENT_TAG=e.CONSTANT_TAG=e.CONSTANT=e.COMPUTE=e.ALLOW_CYCLES=void 0,e.beginTrackFrame=I,e.beginTrackingTransaction=void 0,e.beginUntrackFrame=L,e.bump=function(){c++},e.combine=void 0,e.consumeTag=B,e.createCache=function(e,t){0 -var r={[$]:e,[H]:void 0,[q]:void 0,[V]:-1} +return e instanceof Element&&e.tagName.toLowerCase()===t}}function b(e){return e.length>0}e.debugToString=f +var y=e.LOCAL_LOGGER=console,_=e.LOGGER=console})),e("@glimmer/validator",["exports","@glimmer/global-context"],(function(e,t){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.VolatileTag=e.VOLATILE_TAG=e.VOLATILE=e.INITIAL=e.CurrentTag=e.CURRENT_TAG=e.CONSTANT_TAG=e.CONSTANT=e.COMPUTE=e.ALLOW_CYCLES=void 0,e.beginTrackFrame=j,e.beginTrackingTransaction=void 0,e.beginUntrackFrame=x,e.bump=function(){o++},e.combine=void 0,e.consumeTag=N,e.createCache=function(e,t){0 +var r={[F]:e,[I]:void 0,[z]:void 0,[L]:-1} 0 -return r},e.createTag=function(){return new g(0)},e.createUpdatableTag=y,e.dirtyTag=void 0,e.dirtyTagFor=j,e.endTrackFrame=z,e.endTrackingTransaction=void 0,e.endUntrackFrame=U,e.getValue=function(e){W(e,"getValue") -var t=e[$],r=e[q],i=e[V] -if(void 0!==r&&p(r,i))B(r) -else{I() -try{e[H]=t()}finally{r=z(),e[q]=r,e[V]=h(r),B(r)}}return e[H]},e.isConst=function(e){W(e,"isConst") -var t=e[q] -return function(e,t){0}(),w(t)},e.isConstTag=w,e.isTracking=function(){return null!==N},e.logTrackingStack=void 0,e.resetTracking=function(){for(;F.length>0;)F.pop() -N=null,!1},e.setTrackingTransactionEnv=e.runInTrackingTransaction=void 0,e.tagFor=x,e.tagMetaFor=M,e.track=function(e,t){var r -I(t) -try{e()}finally{r=z()}return r},e.trackedData=function(e,t){var r=new WeakMap,i="function"==typeof t +return r},e.createTag=function(){return new h(0)},e.createUpdatableTag=m,e.dirtyTag=void 0,e.dirtyTagFor=A,e.endTrackFrame=M,e.endTrackingTransaction=void 0,e.endUntrackFrame=D,e.getValue=function(e){U(e,"getValue") +var t=e[F],r=e[z],i=e[L] +if(void 0!==r&&c(r,i))N(r) +else{j() +try{e[I]=t()}finally{r=M(),e[z]=r,e[L]=u(r),N(r)}}return e[I]},e.isConst=function(e){U(e,"isConst") +var t=e[z] +return function(e,t){0}(),v(t)},e.isConstTag=v,e.isTracking=function(){return null!==P},e.logTrackingStack=void 0,e.resetTracking=function(){for(;S.length>0;)S.pop() +P=null,!1},e.setTrackingTransactionEnv=e.runInTrackingTransaction=void 0,e.tagFor=T,e.tagMetaFor=C,e.track=function(e,t){var r +j(t) +try{e()}finally{r=M()}return r},e.trackedData=function(e,t){var r=new WeakMap,i="function"==typeof t return{getter:function(n){var s -return B(x(n,e)),i&&!r.has(n)?(s=t.call(n),r.set(n,s)):s=r.get(n),s},setter:function(t,i){j(t,e),r.set(t,i)}}},e.untrack=function(e){L() -try{return e()}finally{U()}},e.updateTag=void 0,e.validateTag=p -e.valueForTag=h -var r,i,n,s,a,o="undefined"!=typeof Symbol?Symbol:e=>`__${e}${Math.floor(Math.random()*Date.now())}__`,l="undefined"!=typeof Symbol?Symbol.for:e=>`__GLIMMER_VALIDATOR_SYMBOL_FOR_${e}` -function u(e){if(null==e)throw new Error("Expected value to be present") -return e}e.beginTrackingTransaction=r,e.endTrackingTransaction=i,e.runInTrackingTransaction=n,e.setTrackingTransactionEnv=s,e.logTrackingStack=a -e.CONSTANT=0 -e.INITIAL=1 -e.VOLATILE=NaN -var c=1 -var d=o("TAG_COMPUTE") -function h(e){return e[d]()}function p(e,t){return t>=e[d]()}e.COMPUTE=d -var f,m=o("TAG_TYPE") -e.ALLOW_CYCLES=f -class g{constructor(e){this.revision=1,this.lastChecked=1,this.lastValue=1,this.isUpdating=!1,this.subtag=null,this.subtagBufferCache=null,this[m]=e}static combine(e){switch(e.length){case 0:return _ +return N(T(n,e)),i&&!r.has(n)?(s=t.call(n),r.set(n,s)):s=r.get(n),s},setter:function(t,i){A(t,e),r.set(t,i)}}},e.untrack=function(e){x() +try{return e()}finally{D()}},e.updateTag=void 0,e.validateTag=c +e.valueForTag=u +var r="undefined"!=typeof Symbol?Symbol:e=>`__${e}${Math.floor(Math.random()*Date.now())}__`,i="undefined"!=typeof Symbol?Symbol.for:e=>`__GLIMMER_VALIDATOR_SYMBOL_FOR_${e}` +function n(e){if(null==e)throw new Error("Expected value to be present") +return e}e.CONSTANT=0 +var s=e.INITIAL=1,a=e.VOLATILE=NaN,o=s +var l=e.COMPUTE=r("TAG_COMPUTE") +function u(e){return e[l]()}function c(e,t){return t>=e[l]()}var d=r("TAG_TYPE") +class h{constructor(e){this.revision=s,this.lastChecked=s,this.lastValue=s,this.isUpdating=!1,this.subtag=null,this.subtagBufferCache=null,this[d]=e}static combine(e){switch(e.length){case 0:return g case 1:return e[0] -default:var t=new g(2) -return t.subtag=e,t}}[d](){var{lastChecked:e}=this -if(!0===this.isUpdating)this.lastChecked=++c -else if(e!==c){this.isUpdating=!0,this.lastChecked=c +default:var t=new h(2) +return t.subtag=e,t}}[l](){var{lastChecked:e}=this +if(!0===this.isUpdating)this.lastChecked=++o +else if(e!==o){this.isUpdating=!0,this.lastChecked=o try{var{subtag:t,revision:r}=this -if(null!==t)if(Array.isArray(t))for(var i=0;it.push(e))),T(t)}}var N=null,F=[] -function I(e){F.push(N),N=new D}function z(){var e=N -return N=F.pop()||null,u(e).combine()}function L(){F.push(N),N=null}function U(){N=F.pop()||null}function B(e){null!==N&&N.add(e)}var $=o("FN"),H=o("LAST_VALUE"),q=o("TAG"),V=o("SNAPSHOT") -o("DEBUG_LABEL") -function W(e,t){0}var G=l("GLIMMER_VALIDATOR_REGISTRATION"),Y=function(){if("undefined"!=typeof globalThis)return globalThis +return e.forEach((e=>t.push(e))),_(t)}}var P=null,S=[] +function j(e){S.push(P),P=new k}function M(){var e=P +return P=S.pop()||null,n(e).combine()}function x(){S.push(P),P=null}function D(){P=S.pop()||null}function N(e){null!==P&&P.add(e)}var F=r("FN"),I=r("LAST_VALUE"),z=r("TAG"),L=r("SNAPSHOT") +r("DEBUG_LABEL") +function U(e,t){0}var B=i("GLIMMER_VALIDATOR_REGISTRATION"),$=function(){if("undefined"!=typeof globalThis)return globalThis if("undefined"!=typeof self)return self if("undefined"!=typeof window)return window if("undefined"!=typeof global)return global throw new Error("unable to locate global object")}() -if(!0===Y[G])throw new Error("The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.") -Y[G]=!0})),e("@glimmer/vm",["exports"],(function(e){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.TemporaryRegister=e.SavedRegister=e.$v0=e.$t1=e.$t0=e.$sp=e.$s1=e.$s0=e.$ra=e.$pc=e.$fp=void 0,e.isLowLevelRegister=function(e){return e<=t},e.isMachineOp=function(e){return e>=0&&e<=15},e.isOp=function(e){return e>=16} -e.$pc=0 -e.$ra=1 -e.$fp=2 -var t=3 -e.$sp=t -e.$s0=4 -e.$s1=5 -e.$t0=6 -e.$t1=7 -var r,i -e.$v0=8,e.SavedRegister=r,function(e){e[e.s0=4]="s0",e[e.s1=5]="s1"}(r||(e.SavedRegister=r={})),e.TemporaryRegister=i,function(e){e[e.t0=6]="t0",e[e.t1=7]="t1"}(i||(e.TemporaryRegister=i={}))})),e("@glimmer/wire-format",["exports"],(function(e){"use strict" +if(!0===$[B])throw new Error("The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.") +$[B]=!0})),e("@glimmer/vm",["exports"],(function(e){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.TemporaryRegister=e.SavedRegister=e.$v0=e.$t1=e.$t0=e.$sp=e.$s1=e.$s0=e.$ra=e.$pc=e.$fp=void 0,e.isLowLevelRegister=function(e){return e<=i},e.isMachineOp=function(e){return e>=0&&e<=15},e.isOp=function(e){return e>=16} +e.$pc=0,e.$ra=1,e.$fp=2 +var t,r,i=e.$sp=3 +e.$s0=4,e.$s1=5,e.$t0=6,e.$t1=7,e.$v0=8;(function(e){e[e.s0=4]="s0",e[e.s1=5]="s1"})(t||(e.SavedRegister=t={})),function(e){e[e.t0=6]="t0",e[e.t1=7]="t1"}(r||(e.TemporaryRegister=r={}))})),e("@glimmer/wire-format",["exports"],(function(e){"use strict" function t(e){return function(t){return Array.isArray(t)&&t[0]===e}}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringFromValue=function(e){return e},e.is=t,e.isArgument=function(e){return 21===e[0]||20===e[0]},e.isAttribute=function(e){return 14===e[0]||15===e[0]||22===e[0]||16===e[0]||24===e[0]||23===e[0]||17===e[0]||4===e[0]},e.isGet=e.isFlushElement=void 0,e.isHelper=function(e){return Array.isArray(e)&&28===e[0]},e.isStringLiteral=function(e){return"string"==typeof e} -var r=t(12) -e.isFlushElement=r -var i=t(30) -e.isGet=i})) +e.isFlushElement=t(12) +e.isGet=t(30)})) e("@simple-dom/document",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=[] @@ -3099,123 +2725,110 @@ return n(this.attributes,null,t)}getAttributeNS(e,t){return n(this.attributes,e, return-1!==i&&(r=e.slice(0,i),t=e.slice(i+1)),[r,t]}(t) a(this,e,i,n,r)}removeAttribute(e){var t=i(this.namespaceURI,e) s(this.attributes,null,t)}removeAttributeNS(e,t){s(this.attributes,e,t)}get doctype(){return this.firstChild}get documentElement(){return this.lastChild}get head(){return this.documentElement.firstChild}get body(){return this.documentElement.lastChild}createElement(e){return new h(this,1,e.toUpperCase(),null,"http://www.w3.org/1999/xhtml")}createElementNS(e,t){var r="http://www.w3.org/1999/xhtml"===e?t.toUpperCase():t -return new h(this,1,r,null,e)}createTextNode(e){return new h(this,3,"#text",e,void 0)}createComment(e){return new h(this,8,"#comment",e,void 0)}createRawHTMLSection(e){return new h(this,-1,"#raw",e,void 0)}createDocumentFragment(){return new h(this,11,"#document-fragment",null,void 0)}}var p=function(){var e=new h(null,9,"#document",null,"http://www.w3.org/1999/xhtml"),t=new h(e,10,"html",null,"http://www.w3.org/1999/xhtml"),r=new h(e,1,"HTML",null,"http://www.w3.org/1999/xhtml"),i=new h(e,1,"HEAD",null,"http://www.w3.org/1999/xhtml"),n=new h(e,1,"BODY",null,"http://www.w3.org/1999/xhtml") -return r.appendChild(i),r.appendChild(n),e.appendChild(t),e.appendChild(r),e} -e.default=p})),e("backburner",["exports"],(function(e){"use strict" +return new h(this,1,r,null,e)}createTextNode(e){return new h(this,3,"#text",e,void 0)}createComment(e){return new h(this,8,"#comment",e,void 0)}createRawHTMLSection(e){return new h(this,-1,"#raw",e,void 0)}createDocumentFragment(){return new h(this,11,"#document-fragment",null,void 0)}}e.default=function(){var e=new h(null,9,"#document",null,"http://www.w3.org/1999/xhtml"),t=new h(e,10,"html",null,"http://www.w3.org/1999/xhtml"),r=new h(e,1,"HTML",null,"http://www.w3.org/1999/xhtml"),i=new h(e,1,"HEAD",null,"http://www.w3.org/1999/xhtml"),n=new h(e,1,"BODY",null,"http://www.w3.org/1999/xhtml") +return r.appendChild(i),r.appendChild(n),e.appendChild(t),e.appendChild(r),e}})),e("backburner",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.buildPlatform=n,e.default=void 0 var t=setTimeout,r=()=>{} function i(e){if("function"==typeof Promise){var r=Promise.resolve() return()=>r.then(e)}if("function"==typeof MutationObserver){var i=0,n=new MutationObserver(e),s=document.createTextNode("") return n.observe(s,{characterData:!0}),()=>(i=++i%2,s.data=""+i,i)}return()=>t(e,0)}function n(e){var t=r -return{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now(),next:i(e),clearNext:t}}var s=/\d+/,a=6 -function o(e){var t=typeof e -return"number"===t&&e==e||"string"===t&&s.test(e)}function l(e){return e.onError||e.onErrorTarget&&e.onErrorTarget[e.onErrorMethod]}function u(e,t,r){for(var i=-1,n=0,s=r.length;n=t[r=n+(i=(s-n)/a)-i%a]?n=r+a:s=r -return e>=t[n]?n+a:n}class p{constructor(e,t,r){void 0===t&&(t={}),void 0===r&&(r={}),this._queueBeingFlushed=[],this.targetQueues=new Map,this.index=0,this._queue=[],this.name=e,this.options=t,this.globalOptions=r}stackFor(e){if(esetTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now(),next:i(e),clearNext:t}}var s=/\d+/ +function a(e){var t=typeof e +return"number"===t&&e==e||"string"===t&&s.test(e)}function o(e){return e.onError||e.onErrorTarget&&e.onErrorTarget[e.onErrorMethod]}function l(e,t,r){for(var i=-1,n=0,s=r.length;n=t[r=n+(i=(s-n)/6)-i%6]?n=r+6:s=r +return e>=t[n]?n+6:n}class h{constructor(e,t={},r={}){this._queueBeingFlushed=[],this.targetQueues=new Map,this.index=0,this._queue=[],this.name=e,this.options=t,this.globalOptions=r}stackFor(e){if(e0){var a=l(this.globalOptions) +if(s.length>0){var a=o(this.globalOptions) r=a?this.invokeWithOnError:this.invoke -for(var o=this.index;o0&&this.flush(!0)}hasWork(){return this._queueBeingFlushed.length>0||this._queue.length>0}cancel(e){var{target:t,method:r}=e,i=this._queue,n=this.targetQueues.get(t) -void 0!==n&&n.delete(r) -var s=u(t,r,i) -return s>-1?(i.splice(s,4),!0):(s=u(t,r,i=this._queueBeingFlushed))>-1&&(i[s+1]=null,!0)}push(e,t,r,i){return this._queue.push(e,t,r,i),{queue:this,target:e,method:t}}pushUnique(e,t,r,i){var n=this.targetQueues.get(e) +for(var l=this.index;l0&&this.flush(!0)}hasWork(){return this._queueBeingFlushed.length>0||this._queue.length>0}cancel({target:e,method:t}){var r=this._queue,i=this.targetQueues.get(e) +void 0!==i&&i.delete(t) +var n=l(e,t,r) +return n>-1?(r.splice(n,4),!0):(n=l(e,t,r=this._queueBeingFlushed))>-1&&(r[n+1]=null,!0)}push(e,t,r,i){return this._queue.push(e,t,r,i),{queue:this,target:e,method:t}}pushUnique(e,t,r,i){var n=this.targetQueues.get(e) void 0===n&&(n=new Map,this.targetQueues.set(e,n)) var s=n.get(t) if(void 0===s){var a=this._queue.push(e,t,r,i)-4 n.set(t,a)}else{var o=this._queue -o[s+2]=r,o[s+3]=i}return{queue:this,target:e,method:t}}_getDebugInfo(e){if(e)return d(this._queue,4)}invoke(e,t,r){void 0===r?t.call(e):t.apply(e,r)}invokeWithOnError(e,t,r,i,n){try{void 0===r?t.call(e):t.apply(e,r)}catch(s){i(s,n)}}}class f{constructor(e,t){void 0===e&&(e=[]),this.queues={},this.queueNameIndex=0,this.queueNames=e,e.reduce((function(e,r){return e[r]=new p(r,t[r],t),e}),this.queues)}schedule(e,t,r,i,n,s){var a=this.queues[e] +o[s+2]=r,o[s+3]=i}return{queue:this,target:e,method:t}}_getDebugInfo(e){if(e)return c(this._queue,4)}invoke(e,t,r){void 0===r?t.call(e):t.apply(e,r)}invokeWithOnError(e,t,r,i,n){try{void 0===r?t.call(e):t.apply(e,r)}catch(s){i(s,n)}}}class p{constructor(e=[],t){this.queues={},this.queueNameIndex=0,this.queueNames=e,e.reduce((function(e,r){return e[r]=new h(r,t[r],t),e}),this.queues)}schedule(e,t,r,i,n,s){var a=this.queues[e] if(void 0===a)throw new Error(`You attempted to schedule an action in a queue (${e}) that doesn't exist`) if(null==r)throw new Error(`You attempted to schedule an action in a queue (${e}) for a method that doesn't exist`) -return this.queueNameIndex=0,n?a.pushUnique(t,r,i,s):a.push(t,r,i,s)}flush(e){var t,r -void 0===e&&(e=!1) -for(var i=this.queueNames.length;this.queueNameIndexn){var l=i-n e=new Array(l) -for(var u=0;u{z++,!1!==this._autorun&&(this._autorun=!1,this._autorunStack=null,this._end(!0))} +for(var u=0;u{I++,!1!==this._autorun&&(this._autorun=!1,this._autorunStack=null,this._end(!0))} var r=this.options._buildPlatform||n -this._platform=r(this._boundAutorunEnd)}get counters(){return{begin:w,end:R,events:{begin:O,end:0},autoruns:{created:I,completed:z},run:E,join:A,defer:T,schedule:C,scheduleIterable:S,deferOnce:k,scheduleOnce:P,setTimeout:j,later:M,throttle:x,debounce:D,cancelTimers:N,cancel:F,loops:{total:L,nested:U}}}get defaultQueue(){return this._defaultQueue}begin(){w++ +this._platform=r(this._boundAutorunEnd)}get counters(){return{begin:_,end:w,events:{begin:R,end:0},autoruns:{created:F,completed:I},run:O,join:E,defer:A,schedule:C,scheduleIterable:T,deferOnce:k,scheduleOnce:P,setTimeout:S,later:j,throttle:M,debounce:x,cancelTimers:D,cancel:N,loops:{total:z,nested:L}}}get defaultQueue(){return this._defaultQueue}begin(){_++ var e,t=this.options,r=this.currentInstance -return!1!==this._autorun?(e=r,this._cancelAutorun()):(null!==r&&(U++,this.instanceStack.push(r)),L++,e=this.currentInstance=new f(this.queueNames,t),O++,this._trigger("begin",e,r)),this._onBegin(e,r),e}end(){R++,this._end(!1)}on(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function") +return!1!==this._autorun?(e=r,this._cancelAutorun()):(null!==r&&(L++,this.instanceStack.push(r)),z++,e=this.currentInstance=new p(this.queueNames,t),R++,this._trigger("begin",e,r)),this._onBegin(e,r),e}end(){w++,this._end(!1)}on(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function") var r=this._eventCallbacks[e] if(void 0===r)throw new TypeError(`Cannot on() event ${e} because it does not exist`) r.push(t)}off(e,t){var r=this._eventCallbacks[e] if(!e||void 0===r)throw new TypeError(`Cannot off() event ${e} because it does not exist`) var i=!1 if(t)for(var n=0;n3?i-3:0),s=3;s1?t-1:0),i=1;i3?i-3:0),s=3;s1?t-1:0),i=1;i0&&o(r[n-1])&&(i=parseInt(r.pop(),10)),[e,t,r,i]}(...arguments) -return this._later(e,t,r,i)}throttle(){x++ -var e,[t,r,i,n,s=!0]=y(...arguments),a=c(t,r,this._timers) -if(-1===a)e=this._later(t,r,s?v:i,n),s&&this._join(t,r,i) +return this._ensureInstance().schedule(e,null,f,[t],!1,r)}deferOnce(e,t,r,...i){return k++,this.scheduleOnce(e,t,r,...i)}scheduleOnce(e,...t){P++ +var[r,i,n]=v(...t),s=this.DEBUG?new Error:void 0 +return this._ensureInstance().schedule(e,r,i,n,!0,s)}setTimeout(){return S++,this.later(...arguments)}later(){j++ +var[e,t,r,i]=function(){var[e,t,r]=v(...arguments),i=0,n=void 0!==r?r.length:0 +return n>0&&a(r[n-1])&&(i=parseInt(r.pop(),10)),[e,t,r,i]}(...arguments) +return this._later(e,t,r,i)}throttle(){M++ +var e,[t,r,i,n,s=!0]=b(...arguments),a=u(t,r,this._timers) +if(-1===a)e=this._later(t,r,s?g:i,n),s&&this._join(t,r,i) else{e=this._timers[a+1] var o=a+4 -this._timers[o]!==v&&(this._timers[o]=i)}return e}debounce(){D++ -var e,[t,r,i,n,s=!1]=y(...arguments),o=this._timers,l=c(t,r,o) -if(-1===l)e=this._later(t,r,s?v:i,n),s&&this._join(t,r,i) -else{var u=this._platform.now()+n,d=l+4 -o[d]===v&&(i=v),e=o[l+1] -var p=h(u,o) -if(l+a===p)o[l]=u,o[d]=i -else{var f=this._timers[l+5] -this._timers.splice(p,0,u,e,t,r,i,f),this._timers.splice(l,a)}0===l&&this._reinstallTimerTimeout()}return e}cancelTimers(){N++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()}hasTimers(){return this._timers.length>0||this._autorun}cancel(e){if(F++,null==e)return!1 +this._timers[o]!==g&&(this._timers[o]=i)}return e}debounce(){x++ +var e,[t,r,i,n,s=!1]=b(...arguments),a=this._timers,o=u(t,r,a) +if(-1===o)e=this._later(t,r,s?g:i,n),s&&this._join(t,r,i) +else{var l=this._platform.now()+n,c=o+4 +a[c]===g&&(i=g),e=a[o+1] +var h=d(l,a) +if(o+6===h)a[o]=l,a[c]=i +else{var p=this._timers[o+5] +this._timers.splice(h,0,l,e,t,r,i,p),this._timers.splice(o,6)}0===o&&this._reinstallTimerTimeout()}return e}cancelTimers(){D++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()}hasTimers(){return this._timers.length>0||this._autorun}cancel(e){if(N++,null==e)return!1 var t=typeof e -return"number"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)}ensureInstance(){this._ensureInstance()}getDebugInfo(){if(this.DEBUG)return{autorun:this._autorunStack,counters:this.counters,timers:d(this._timers,a,2),instanceStack:[this.currentInstance,...this.instanceStack].map((e=>e&&e._getDebugInfo(this.DEBUG)))}}_end(e){var t=this.currentInstance,r=null +return"number"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)}ensureInstance(){this._ensureInstance()}getDebugInfo(){if(this.DEBUG)return{autorun:this._autorunStack,counters:this.counters,timers:c(this._timers,6,2),instanceStack:[this.currentInstance,...this.instanceStack].map((e=>e&&e._getDebugInfo(this.DEBUG)))}}_end(e){var t=this.currentInstance,r=null if(null===t)throw new Error("end called without begin") var i,n=!1 try{i=t.flush(e)}finally{if(!n)if(n=!0,1===i){var s=this.queueNames[t.queueNameIndex] -this._scheduleAutorun(s)}else this.currentInstance=null,this.instanceStack.length>0&&(r=this.instanceStack.pop(),this.currentInstance=r),this._trigger("end",t,r),this._onEnd(t,r)}}_join(e,t,r){return null===this.currentInstance?this._run(e,t,r):void 0===e&&void 0===r?t():t.apply(e,r)}_run(e,t,r){var i=l(this.options) -if(this.begin(),i)try{return t.apply(e,r)}catch(n){i(n)}finally{this.end()}else try{return t.apply(e,r)}finally{this.end()}}_cancelAutorun(){this._autorun&&(this._platform.clearNext(),this._autorun=!1,this._autorunStack=null)}_later(e,t,r,i){var n=this.DEBUG?new Error:void 0,s=this._platform.now()+i,a=_++ +this._scheduleAutorun(s)}else this.currentInstance=null,this.instanceStack.length>0&&(r=this.instanceStack.pop(),this.currentInstance=r),this._trigger("end",t,r),this._onEnd(t,r)}}_join(e,t,r){return null===this.currentInstance?this._run(e,t,r):void 0===e&&void 0===r?t():t.apply(e,r)}_run(e,t,r){var i=o(this.options) +if(this.begin(),i)try{return t.apply(e,r)}catch(n){i(n)}finally{this.end()}else try{return t.apply(e,r)}finally{this.end()}}_cancelAutorun(){this._autorun&&(this._platform.clearNext(),this._autorun=!1,this._autorunStack=null)}_later(e,t,r,i){var n=this.DEBUG?new Error:void 0,s=this._platform.now()+i,a=y++ if(0===this._timers.length)this._timers.push(s,a,e,t,r,n),this._installTimerTimeout() -else{var o=h(s,this._timers) -this._timers.splice(o,0,s,a,e,t,r,n),this._reinstallTimerTimeout()}return a}_cancelLaterTimer(e){for(var t=1;t0&&(this.begin(),this._scheduleExpiredTimers(),this.end())}_scheduleExpiredTimers(){for(var e=this._timers,t=0,r=e.length,i=this._defaultQueue,n=this._platform.now();tn)break +if(void 0!==i)for(var n=0;n0&&(this.begin(),this._scheduleExpiredTimers(),this.end())}_scheduleExpiredTimers(){for(var e=this._timers,t=0,r=e.length,i=this._defaultQueue,n=this._platform.now();tn)break var s=e[t+4] -if(s!==v){var o=e[t+2],l=e[t+3],u=e[t+5] -this.currentInstance.schedule(i,o,l,s,!1,u)}}e.splice(0,t),this._installTimerTimeout()}_reinstallTimerTimeout(){this._clearTimerTimeout(),this._installTimerTimeout()}_clearTimerTimeout(){null!==this._timerTimeoutId&&(this._platform.clearTimeout(this._timerTimeoutId),this._timerTimeoutId=null)}_installTimerTimeout(){if(0!==this._timers.length){var e=this._timers[0],t=this._platform.now(),r=Math.max(0,e-t) +if(s!==g){var a=e[t+2],o=e[t+3],l=e[t+5] +this.currentInstance.schedule(i,a,o,s,!1,l)}}e.splice(0,t),this._installTimerTimeout()}_reinstallTimerTimeout(){this._clearTimerTimeout(),this._installTimerTimeout()}_clearTimerTimeout(){null!==this._timerTimeoutId&&(this._platform.clearTimeout(this._timerTimeoutId),this._timerTimeoutId=null)}_installTimerTimeout(){if(0!==this._timers.length){var e=this._timers[0],t=this._platform.now(),r=Math.max(0,e-t) this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,r)}}_ensureInstance(){var e=this.currentInstance -return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e}_scheduleAutorun(e){I++ +return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e}_scheduleAutorun(e){F++ var t=this._platform.next,r=this.options.flush -r?r(e,t):t(),this._autorun=!0}}B.Queue=p,B.buildPlatform=n,B.buildNext=i -var $=B -e.default=$})),e("dag-map",["exports"],(function(e){"use strict" +r?r(e,t):t(),this._autorun=!0}}U.Queue=h,U.buildPlatform=n,U.buildNext=i +e.default=U})),e("dag-map",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=function(){function e(){this._vertices=new r}return e.prototype.add=function(e,t,r,i){if(!e)throw new Error("argument `key` is required") var n=this._vertices,s=n.add(e) if(s.val=t,r)if("string"==typeof r)n.addEdge(s,n.add(r)) else for(var a=0;a=0;r--){var i=e[r] this[i].flag||t.push(i)}},e.prototype.each=function(e,t){for(var r=0,i=e.length;re.length)&&(t=e.length) for(var r=new Array(t),i=0;i"Ember",Container:s.Container,Registry:s.Registry,_setComponentManager:w.setComponentManager,_componentManagerCapabilities:w.componentCapabilities,_modifierManagerCapabilities:w.modifierCapabilities,meta:o.meta,_createCache:l.createCache,_cacheGetValue:l.getValue,_cacheIsConst:l.isConst,_descriptor:l.nativeDescDecorator,_getPath:l._getPath,_setClassicDecorator:l.setClassicDecorator,_tracked:l.tracked,beginPropertyChanges:l.beginPropertyChanges,changeProperties:l.changeProperties,endPropertyChanges:l.endPropertyChanges,hasListeners:l.hasListeners,libraries:l.libraries,_ContainerProxyMixin:_.ContainerProxyMixin,_ProxyMixin:_._ProxyMixin,_RegistryProxyMixin:_.RegistryProxyMixin,ActionHandler:_.ActionHandler,Comparable:_.Comparable,RSVP:_.RSVP,ComponentLookup:O.ComponentLookup,EventDispatcher:O.EventDispatcher,_Cache:n.Cache,GUID_KEY:n.GUID_KEY,canInvoke:n.canInvoke,generateGuid:n.generateGuid,guidFor:n.guidFor,uuid:n.uuid,wrap:n.wrap,getOwner:M.getOwner,onLoad:M.onLoad,runLoadHooks:M.runLoadHooks,setOwner:M.setOwner,Application:M.default,ApplicationInstance:x.default,Namespace:D.default,A:k.A,Array:k.default,NativeArray:k.NativeArray,isArray:k.isArray,makeArray:k.makeArray,MutableArray:P.default,ArrayProxy:j.default,FEATURES:Object.assign({isEnabled:u.isEnabled},u.FEATURES),_Input:N.Input,Component:N.default,Helper:F.default,Controller:h.default,ControllerMixin:h.ControllerMixin,_captureRenderTree:c.captureRenderTree,assert:c.assert,warn:c.warn,debug:c.debug,deprecate:c.deprecate,deprecateFunc:c.deprecateFunc,runInDebug:c.runInDebug,inspect:c.inspect,Debug:{registerDeprecationHandler:c.registerDeprecationHandler,registerWarnHandler:c.registerWarnHandler,isComputed:l.isComputed},ContainerDebugAdapter:E.default,DataAdapter:A.default,_assertDestroyablesDestroyed:ae.assertDestroyablesDestroyed,_associateDestroyableChild:ae.associateDestroyableChild,_enableDestroyableTracking:ae.enableDestroyableTracking,_isDestroying:ae.isDestroying,_isDestroyed:ae.isDestroyed,_registerDestructor:ae.registerDestructor,_unregisterDestructor:ae.unregisterDestructor,destroy:ae.destroy,Engine:I.default,EngineInstance:z.default,Enumerable:L.default,MutableEnumerable:U.default,Error:T.default,instrument:a.instrument,subscribe:a.subscribe,Instrumentation:{instrument:a.instrument,subscribe:a.subscribe,unsubscribe:a.unsubscribe,reset:a.reset},Object:m.default,_action:m.action,computed:m.computed,defineProperty:m.defineProperty,get:m.get,getProperties:m.getProperties,notifyPropertyChange:m.notifyPropertyChange,observer:m.observer,set:m.set,trySet:m.trySet,setProperties:m.setProperties,cacheFor:g.cacheFor,_dependentKeyCompat:v.dependentKeyCompat,ComputedProperty:b.default,expandProperties:b.expandProperties,CoreObject:B.default,Evented:$.default,on:$.on,addListener:y.addListener,removeListener:y.removeListener,sendEvent:y.sendEvent,Mixin:H.default,mixin:H.mixin,Observable:q.default,addObserver:V.addObserver,removeObserver:V.removeObserver,PromiseProxyMixin:G.default,ObjectProxy:W.default,assign:Y.assign,RouterDSL:re.DSL,controllerFor:re.controllerFor,generateController:re.generateController,generateControllerFactory:re.generateControllerFactory,AutoLocation:K.default,HashLocation:Q.default,HistoryLocation:J.default,Location:Z.default,NoneLocation:X.default,Route:ee.default,Router:te.default,run:C.run,Service:f.default,String:{camelize:p.camelize,capitalize:p.capitalize,classify:p.classify,decamelize:p.decamelize,dasherize:p.dasherize,underscore:p.underscore,w:p.w},compare:ie.compare,isBlank:ie.isBlank,isEmpty:ie.isEmpty,isEqual:ie.isEqual,isNone:ie.isNone,isPresent:ie.isPresent,typeOf:ie.typeOf,VERSION:R.default,ViewUtils:{getChildViews:O.getChildViews,getElementView:O.getElementView,getRootViews:O.getRootViews,getViewBounds:O.getViewBounds,getViewBoundingClientRect:O.getViewBoundingClientRect,getViewClientRects:O.getViewClientRects,getViewElement:O.getViewElement,isSimpleClick:O.isSimpleClick,isSerializationFirstNode:w.isSerializationFirstNode},_getComponentTemplate:se.getComponentTemplate,_helperManagerCapabilities:se.helperCapabilities,_setComponentTemplate:se.setComponentTemplate,_setHelperManager:se.setHelperManager,_setModifierManager:se.setModifierManager,_templateOnlyComponent:ne.templateOnlyComponent,_invokeHelper:ne.invokeHelper,_hash:ne.hash,_array:ne.array,_concat:ne.concat,_get:ne.get,_on:ne.on,_fn:ne.fn,_Backburner:d.default,inject:oe,platform:{defineProperty:!0,hasPropertyAccessors:!0},__loader:{require:r.default,define:e,registry:void 0!==requirejs?requirejs.entries:r.default.entries}} -Object.defineProperty(le,"ENV",{get:i.getENV,enumerable:!1}),Object.defineProperty(le,"lookup",{get:i.getLookup,set:i.setLookup,enumerable:!1}),Object.defineProperty(le,"onerror",{get:S.getOnerror,set:S.setOnerror,enumerable:!1}),Object.defineProperty(le,"testing",{get:c.isTesting,set:c.setTesting,enumerable:!1}),Object.defineProperty(le,"STRINGS",{configurable:!1,get:p._getStrings,set:p._setStrings}),Object.defineProperty(le,"BOOTED",{configurable:!1,enumerable:!1,get:l.isNamespaceSearchDisabled,set:l.setNamespaceSearchDisabled}),Object.defineProperty(le,"TEMPLATES",{get:w.getTemplates,set:w.setTemplates,configurable:!1,enumerable:!1}),Object.defineProperty(le,"String",{enumerable:!0,configurable:!0,get:()=>({camelize:p.camelize,capitalize:p.capitalize,classify:p.classify,dasherize:p.dasherize,decamelize:p.decamelize,underscore:p.underscore,w:p.w,htmlSafe:w.htmlSafe,isHTMLSafe:w.isHTMLSafe})}),Object.defineProperty(le,"TEMPLATES",{get:w.getTemplates,set:w.setTemplates,configurable:!1,enumerable:!1}),Object.defineProperty(le,"testing",{get:c.isTesting,set:c.setTesting,enumerable:!1}),(0,M.runLoadHooks)("Ember.Application",M.default) -var ue={template:w.template,Utils:{escapeExpression:w.escapeExpression}},ce={template:w.template} -function de(e){Object.defineProperty(le,e,{configurable:!0,enumerable:!0,get(){if((0,r.has)("ember-template-compiler")){var t=(0,r.default)("ember-template-compiler") -ce.precompile=ue.precompile=t.precompile,ce.compile=ue.compile=t.compile,Object.defineProperty(le,"HTMLBars",{configurable:!0,writable:!0,enumerable:!0,value:ce}),Object.defineProperty(le,"Handlebars",{configurable:!0,writable:!0,enumerable:!0,value:ue})}return"Handlebars"===e?ue:ce}})}function he(e){Object.defineProperty(le,e,{configurable:!0,enumerable:!0,get(){if((0,r.has)("ember-testing")){var t=(0,r.default)("ember-testing"),{Test:i,Adapter:n,QUnitAdapter:s,setupForTesting:a}=t -return i.Adapter=n,i.QUnitAdapter=s,Object.defineProperty(le,"Test",{configurable:!0,writable:!0,enumerable:!0,value:i}),Object.defineProperty(le,"setupForTesting",{configurable:!0,writable:!0,enumerable:!0,value:a}),"Test"===e?i:a}}})}de("HTMLBars"),de("Handlebars"),he("Test"),he("setupForTesting"),(0,M.runLoadHooks)("Ember") -var pe=le -t.default=pe})),e("ember/version",["exports"],(function(e){"use strict" +return r}})),e("ember/index",["exports","require","@ember/-internals/environment","@ember/-internals/utils","@ember/-internals/container","@ember/instrumentation","@ember/-internals/meta","@ember/-internals/metal","@ember/canary-features","@ember/debug","backburner","@ember/controller","@ember/string","@ember/service","@ember/object","@ember/object/-internals","@ember/object/compat","@ember/object/computed","@ember/object/events","@ember/-internals/runtime","@ember/-internals/glimmer","ember/version","@ember/-internals/views","@ember/debug/container-debug-adapter","@ember/debug/data-adapter","@ember/error","@ember/runloop","@ember/-internals/error-handling","@ember/array","@ember/array/mutable","@ember/array/proxy","@ember/application","@ember/application/instance","@ember/application/namespace","@ember/component","@ember/component/helper","@ember/engine","@ember/engine/instance","@ember/enumerable","@ember/enumerable/mutable","@ember/object/core","@ember/object/evented","@ember/object/mixin","@ember/object/observable","@ember/object/observers","@ember/object/proxy","@ember/object/promise-proxy-mixin","@ember/polyfills","@ember/routing/auto-location","@ember/routing/hash-location","@ember/routing/history-location","@ember/routing/none-location","@ember/routing/location","@ember/routing/route","@ember/routing/router","@ember/routing/-internals","@ember/utils","@glimmer/runtime","@glimmer/manager","@ember/destroyable"],(function(t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_,w,R,O,E,A,C,T,k,P,S,j,M,x,D,N,F,I,z,L,U,B,$,H,q,V,W,G,Y,K,Q,J,X,Z,ee,te,re,ie,ne,se,ae){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0 +var oe=c +function le(){}le.controller=h.inject,le.service=f.service +var ue={isNamespace:!0,toString:()=>"Ember",Container:s.Container,Registry:s.Registry,_setComponentManager:w.setComponentManager,_componentManagerCapabilities:w.componentCapabilities,_modifierManagerCapabilities:w.modifierCapabilities,meta:o.meta,_createCache:l.createCache,_cacheGetValue:l.getValue,_cacheIsConst:l.isConst,_descriptor:l.nativeDescDecorator,_getPath:l._getPath,_setClassicDecorator:l.setClassicDecorator,_tracked:l.tracked,beginPropertyChanges:l.beginPropertyChanges,changeProperties:l.changeProperties,endPropertyChanges:l.endPropertyChanges,hasListeners:l.hasListeners,libraries:l.libraries,_ContainerProxyMixin:_.ContainerProxyMixin,_ProxyMixin:_._ProxyMixin,_RegistryProxyMixin:_.RegistryProxyMixin,ActionHandler:_.ActionHandler,Comparable:_.Comparable,RSVP:_.RSVP,ComponentLookup:O.ComponentLookup,EventDispatcher:O.EventDispatcher,_Cache:n.Cache,GUID_KEY:n.GUID_KEY,canInvoke:n.canInvoke,generateGuid:n.generateGuid,guidFor:n.guidFor,uuid:n.uuid,wrap:n.wrap,getOwner:M.getOwner,onLoad:M.onLoad,runLoadHooks:M.runLoadHooks,setOwner:M.setOwner,Application:M.default,ApplicationInstance:x.default,Namespace:D.default,A:P.A,Array:P.default,NativeArray:P.NativeArray,isArray:P.isArray,makeArray:P.makeArray,MutableArray:S.default,ArrayProxy:j.default,FEATURES:Object.assign({isEnabled:u.isEnabled},u.FEATURES),_Input:N.Input,Component:N.default,Helper:F.default,Controller:h.default,ControllerMixin:h.ControllerMixin,_captureRenderTree:c.captureRenderTree,assert:oe.assert,warn:oe.warn,debug:oe.debug,deprecate:oe.deprecate,deprecateFunc:oe.deprecateFunc,runInDebug:oe.runInDebug,inspect:oe.inspect,Debug:{registerDeprecationHandler:oe.registerDeprecationHandler,registerWarnHandler:oe.registerWarnHandler,isComputed:l.isComputed},ContainerDebugAdapter:E.default,DataAdapter:A.default,_assertDestroyablesDestroyed:ae.assertDestroyablesDestroyed,_associateDestroyableChild:ae.associateDestroyableChild,_enableDestroyableTracking:ae.enableDestroyableTracking,_isDestroying:ae.isDestroying,_isDestroyed:ae.isDestroyed,_registerDestructor:ae.registerDestructor,_unregisterDestructor:ae.unregisterDestructor,destroy:ae.destroy,Engine:I.default,EngineInstance:z.default,Enumerable:L.default,MutableEnumerable:U.default,Error:C.default,instrument:a.instrument,subscribe:a.subscribe,Instrumentation:{instrument:a.instrument,subscribe:a.subscribe,unsubscribe:a.unsubscribe,reset:a.reset},Object:m.default,_action:m.action,computed:m.computed,defineProperty:m.defineProperty,get:m.get,getProperties:m.getProperties,notifyPropertyChange:m.notifyPropertyChange,observer:m.observer,set:m.set,trySet:m.trySet,setProperties:m.setProperties,cacheFor:g.cacheFor,_dependentKeyCompat:v.dependentKeyCompat,ComputedProperty:b.default,expandProperties:b.expandProperties,CoreObject:B.default,Evented:$.default,on:$.on,addListener:y.addListener,removeListener:y.removeListener,sendEvent:y.sendEvent,Mixin:H.default,mixin:H.mixin,Observable:q.default,addObserver:V.addObserver,removeObserver:V.removeObserver,PromiseProxyMixin:G.default,ObjectProxy:W.default,assign:Y.assign,RouterDSL:re.DSL,controllerFor:re.controllerFor,generateController:re.generateController,generateControllerFactory:re.generateControllerFactory,AutoLocation:K.default,HashLocation:Q.default,HistoryLocation:J.default,Location:Z.default,NoneLocation:X.default,Route:ee.default,Router:te.default,run:T.run,Service:f.default,String:{camelize:p.camelize,capitalize:p.capitalize,classify:p.classify,decamelize:p.decamelize,dasherize:p.dasherize,underscore:p.underscore,w:p.w},compare:ie.compare,isBlank:ie.isBlank,isEmpty:ie.isEmpty,isEqual:ie.isEqual,isNone:ie.isNone,isPresent:ie.isPresent,typeOf:ie.typeOf,VERSION:R.default,ViewUtils:{getChildViews:O.getChildViews,getElementView:O.getElementView,getRootViews:O.getRootViews,getViewBounds:O.getViewBounds,getViewBoundingClientRect:O.getViewBoundingClientRect,getViewClientRects:O.getViewClientRects,getViewElement:O.getViewElement,isSimpleClick:O.isSimpleClick,isSerializationFirstNode:w.isSerializationFirstNode},_getComponentTemplate:se.getComponentTemplate,_helperManagerCapabilities:se.helperCapabilities,_setComponentTemplate:se.setComponentTemplate,_setHelperManager:se.setHelperManager,_setModifierManager:se.setModifierManager,_templateOnlyComponent:ne.templateOnlyComponent,_invokeHelper:ne.invokeHelper,_hash:ne.hash,_array:ne.array,_concat:ne.concat,_get:ne.get,_on:ne.on,_fn:ne.fn,_Backburner:d.default,inject:le,platform:{defineProperty:!0,hasPropertyAccessors:!0},__loader:{require:r.default,define:e,registry:void 0!==requirejs?requirejs.entries:r.default.entries}} +Object.defineProperty(ue,"ENV",{get:i.getENV,enumerable:!1}),Object.defineProperty(ue,"lookup",{get:i.getLookup,set:i.setLookup,enumerable:!1}),Object.defineProperty(ue,"onerror",{get:k.getOnerror,set:k.setOnerror,enumerable:!1}),Object.defineProperty(ue,"testing",{get:oe.isTesting,set:oe.setTesting,enumerable:!1}),Object.defineProperty(ue,"STRINGS",{configurable:!1,get:p._getStrings,set:p._setStrings}),Object.defineProperty(ue,"BOOTED",{configurable:!1,enumerable:!1,get:l.isNamespaceSearchDisabled,set:l.setNamespaceSearchDisabled}),Object.defineProperty(ue,"TEMPLATES",{get:w.getTemplates,set:w.setTemplates,configurable:!1,enumerable:!1}),Object.defineProperty(ue,"String",{enumerable:!0,configurable:!0,get:()=>({camelize:p.camelize,capitalize:p.capitalize,classify:p.classify,dasherize:p.dasherize,decamelize:p.decamelize,underscore:p.underscore,w:p.w,htmlSafe:w.htmlSafe,isHTMLSafe:w.isHTMLSafe})}),Object.defineProperty(ue,"TEMPLATES",{get:w.getTemplates,set:w.setTemplates,configurable:!1,enumerable:!1}),Object.defineProperty(ue,"testing",{get:oe.isTesting,set:oe.setTesting,enumerable:!1}),(0,M.runLoadHooks)("Ember.Application",M.default) +var ce={template:w.template,Utils:{escapeExpression:w.escapeExpression}},de={template:w.template} +function he(e){Object.defineProperty(ue,e,{configurable:!0,enumerable:!0,get(){if((0,r.has)("ember-template-compiler")){var t=(0,r.default)("ember-template-compiler") +de.precompile=ce.precompile=t.precompile,de.compile=ce.compile=t.compile,Object.defineProperty(ue,"HTMLBars",{configurable:!0,writable:!0,enumerable:!0,value:de}),Object.defineProperty(ue,"Handlebars",{configurable:!0,writable:!0,enumerable:!0,value:ce})}return"Handlebars"===e?ce:de}})}function pe(e){Object.defineProperty(ue,e,{configurable:!0,enumerable:!0,get(){if((0,r.has)("ember-testing")){var t=(0,r.default)("ember-testing"),{Test:i,Adapter:n,QUnitAdapter:s,setupForTesting:a}=t +return i.Adapter=n,i.QUnitAdapter=s,Object.defineProperty(ue,"Test",{configurable:!0,writable:!0,enumerable:!0,value:i}),Object.defineProperty(ue,"setupForTesting",{configurable:!0,writable:!0,enumerable:!0,value:a}),"Test"===e?i:a}}})}he("HTMLBars"),he("Handlebars"),pe("Test"),pe("setupForTesting"),(0,M.runLoadHooks)("Ember") +t.default=ue})),e("ember/version",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 e.default="4.11.0"})),e("route-recognizer",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 @@ -3297,12 +2911,12 @@ var b=[] b[0]=function(e){return e.value.replace(p,"\\$1")},b[1]=function(){return"([^/]+)"},b[2]=function(){return"(.+)"},b[4]=function(){return""} var y=[] y[0]=function(e){return e.value},y[1]=function(e,t){var r=g(t,e.value) -return k.ENCODE_AND_DECODE_PATH_SEGMENTS?h(r):r},y[2]=function(e,t){return g(t,e.value)},y[4]=function(){return""} +return P.ENCODE_AND_DECODE_PATH_SEGMENTS?h(r):r},y[2]=function(e,t){return g(t,e.value)},y[4]=function(){return""} var _=Object.freeze({}),w=Object.freeze([]) function R(e,t,r){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1)) for(var i=t.split("/"),n=void 0,s=void 0,a=0;a2&&"[]"===s.slice(a-2)&&(o=!0,r[s=s.slice(0,a-2)]||(r[s]=[])),l=n[1]?S(n[1]):""),o?r[s].push(l):r[s]=l}return r},k.prototype.recognize=function(e){var t,r=[this.rootState],i={},n=!1,s=e.indexOf("#");-1!==s&&(e=e.substr(0,s)) +t.push(l)}else a+="="+encodeURIComponent(s),t.push(a)}}return 0===t.length?"":"?"+t.join("&")},P.prototype.parseQueryString=function(e){for(var t=e.split("&"),r={},i=0;i2&&"[]"===s.slice(a-2)&&(o=!0,r[s=s.slice(0,a-2)]||(r[s]=[])),l=n[1]?k(n[1]):""),o?r[s].push(l):r[s]=l}return r},P.prototype.recognize=function(e){var t,r=[this.rootState],i={},n=!1,s=e.indexOf("#");-1!==s&&(e=e.substr(0,s)) var a=e.indexOf("?") if(-1!==a){var o=e.substr(a+1,e.length) e=e.substr(0,a),i=this.parseQueryString(o)}"/"!==e.charAt(0)&&(e="/"+e) var u=e -k.ENCODE_AND_DECODE_PATH_SEGMENTS?e=l(e):(e=decodeURI(e),u=decodeURI(u)) +P.ENCODE_AND_DECODE_PATH_SEGMENTS?e=l(e):(e=decodeURI(e),u=decodeURI(u)) var c=e.length c>1&&"/"===e.charAt(c-1)&&(e=e.substr(0,c-1),u=u.substr(0,u.length-1),n=!0) -for(var d=0;d0){var i=e[r-1] if(function(e){if(e&&"object"==typeof e){var t=e return"queryParams"in t&&Object.keys(t.queryParams).every((e=>"string"==typeof e))}return!1}(i))return t=i.queryParams,[s.call(e,0,r-1),t]}return[e,null]}function u(e){for(var t in e){var r=e[t] if("number"==typeof r)e[t]=""+r -else if(Array.isArray(r))for(var i=0,n=r.length;i1?t-1:0),i=1;i2?r-2:0),n=2;n{var{name:s,params:a,paramNames:o,context:l,route:u}=i,c=i +function O(e,t={},r=!1){return e.map(((i,n)=>{var{name:s,params:a,paramNames:o,context:l,route:u}=i,c=i if(R.has(c)&&r){var d=R.get(c) d=function(e,t){var r={get metadata(){return A(e)}} if(!Object.isExtensible(t)||t.hasOwnProperty("metadata"))return Object.freeze(Object.assign({},t,r)) @@ -3413,11 +3018,11 @@ return void 0===t?null:R.get(t)},get child(){var t=e[n+1] return void 0===t?null:R.get(t)},get localName(){var e=this.name.split(".") return e[e.length-1]},get params(){return a},get queryParams(){return t}} return r&&(p=E(p,l)),R.set(i,p),p}))}function E(e,t){var r={get attributes(){return t}} -return!Object.isExtensible(e)||e.hasOwnProperty("attributes")?Object.freeze(Object.assign({},e,r)):Object.assign(e,r)}function A(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}class T{constructor(e,t,r,i){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=r,this.router=e,i&&this._processRoute(i)}getModel(e){return t.Promise.resolve(this.context)}serialize(e){return this.params||{}}resolve(e){return t.Promise.resolve(this.routePromise).then((t=>(n(e),t))).then((()=>this.runBeforeModelHook(e))).then((()=>n(e))).then((()=>this.getModel(e))).then((t=>(n(e),t))).then((t=>this.runAfterModelHook(e,t))).then((t=>this.becomeResolved(e,t)))}becomeResolved(e,t){var r,i=this.serialize(t) +return!Object.isExtensible(e)||e.hasOwnProperty("attributes")?Object.freeze(Object.assign({},e,r)):Object.assign(e,r)}function A(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}class C{constructor(e,t,r,i){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=r,this.router=e,i&&this._processRoute(i)}getModel(e){return t.Promise.resolve(this.context)}serialize(e){return this.params||{}}resolve(e){return t.Promise.resolve(this.routePromise).then((t=>(n(e),t))).then((()=>this.runBeforeModelHook(e))).then((()=>n(e))).then((()=>this.getModel(e))).then((t=>(n(e),t))).then((t=>this.runAfterModelHook(e,t))).then((t=>this.becomeResolved(e,t)))}becomeResolved(e,t){var r,i=this.serialize(t) e&&(this.stashResolvedModel(e,t),e[v]=e[v]||{},e[v][this.name]=i) var n=t===this.context !("context"in this)&&n||(r=t) -var s=R.get(this),a=new C(this.router,this.name,this.paramNames,i,this.route,r) +var s=R.get(this),a=new T(this.router,this.name,this.paramNames,i,this.route,r) return void 0!==s&&R.set(a,s),a}shouldSupersede(e){if(!e)return!0 var t=e.context===this.context return e.name!==this.name||"context"in this&&!t||this.hasOwnProperty("params")&&!function(e,t){if(e===t)return!0 @@ -3427,18 +3032,18 @@ return!0}(this.params,e.params)}get route(){return null!==this._route?this._rout return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void 0!==this.route.beforeModel&&(r=this.route.beforeModel(e)),w(r)&&(r=null),t.Promise.resolve(r)}runAfterModelHook(e,r){var i,n,s=this.name return this.stashResolvedModel(e,r),void 0!==this.route&&void 0!==this.route.afterModel&&(i=this.route.afterModel(r,e)),i=w(n=i)?null:n,t.Promise.resolve(i).then((()=>e.resolvedModels[s]))}stashResolvedModel(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t}fetchRoute(){var e=this.router.getRoute(this.name) return this._processRoute(e)}_processRoute(e){return this.routePromise=t.Promise.resolve(e),null!==(r=e)&&"object"==typeof r&&"function"==typeof r.then?(this.routePromise=this.routePromise.then((e=>this.updateRoute(e))),this.route=void 0):e?this.updateRoute(e):void 0 -var r}}e.InternalRouteInfo=T -class C extends T{constructor(e,t,r,i,n,s){super(e,t,r,n),this.params=i,this.isResolved=!0,this.context=s}resolve(e){return e&&e.resolvedModels&&(e.resolvedModels[this.name]=this.context),t.Promise.resolve(this)}}class S extends T{constructor(e,t,r,i,n){super(e,t,r,n),this.params={},i&&(this.params=i)}getModel(e){var r=this.params +var r}}e.InternalRouteInfo=C +class T extends C{constructor(e,t,r,i,n,s){super(e,t,r,n),this.params=i,this.isResolved=!0,this.context=s}resolve(e){return e&&e.resolvedModels&&(e.resolvedModels[this.name]=this.context),t.Promise.resolve(this)}}class k extends C{constructor(e,t,r,i,n){super(e,t,r,n),this.params={},i&&(this.params=i)}getModel(e){var r=this.params e&&e[b]&&(o(r={},this.params),r.queryParams=e[b]) var i,n=this.route -return n.deserialize?i=n.deserialize(r,e):n.model&&(i=n.model(r,e)),i&&w(i)&&(i=void 0),t.Promise.resolve(i)}}class k extends T{constructor(e,t,r,i){super(e,t,r),this.context=i,this.serializer=this.router.getSerializer(t)}getModel(e){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),super.getModel(e)}serialize(e){var{paramNames:t,context:r}=this +return n.deserialize?i=n.deserialize(r,e):n.model&&(i=n.model(r,e)),i&&w(i)&&(i=void 0),t.Promise.resolve(i)}}class P extends C{constructor(e,t,r,i){super(e,t,r),this.context=i,this.serializer=this.router.getSerializer(t)}getModel(e){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),super.getModel(e)}serialize(e){var{paramNames:t,context:r}=this e||(e=r) var i={} if(d(e))return i[t[0]]=e,i if(this.serializer)return this.serializer.call(null,e,t) if(void 0!==this.route&&this.route.serialize)return this.route.serialize(e,t) if(1===t.length){var n=t[0] -return/_id$/.test(n)?i[n]=e.id:i[n]=e,i}}}class P{constructor(e,t){void 0===t&&(t={}),this.router=e,this.data=t}}function j(e,t,r){var i=e.routeInfos,n=t.resolveIndex>=i.length?i.length-1:t.resolveIndex,s=t.isAborted +return/_id$/.test(n)?i[n]=e.id:i[n]=e,i}}}class S{constructor(e,t={}){this.router=e,this.data=t}}function j(e,t,r){var i=e.routeInfos,n=t.resolveIndex>=i.length?i.length-1:t.resolveIndex,s=t.isAborted throw new N(r,e.routeInfos[n].route,s,e)}function M(e,t){if(t.resolveIndex!==e.routeInfos.length){var r=e.routeInfos[t.resolveIndex],i=x.bind(null,e,t) return r.resolve(t).then(i,null,e.promiseLabel("Proceed"))}}function x(e,t,r){var i=e.routeInfos[t.resolveIndex].isResolved if(e.routeInfos[t.resolveIndex++]=r,!i){var{route:s}=r @@ -3448,7 +3053,7 @@ h(this.routeInfos,(e=>(r[e.name]=e.params||{},!0))),e.resolveIndex=0 var i=M.bind(null,this,e),n=j.bind(null,this,e) return t.Promise.resolve(null,this.promiseLabel("Start transition")).then(i,null,this.promiseLabel("Resolve route")).catch(n,this.promiseLabel("Handle error")).then((()=>this))}}e.TransitionState=D class N{constructor(e,t,r,i){this.error=e,this.route=t,this.wasAborted=r,this.state=i}}e.TransitionError=N -class F extends P{constructor(e,t,r,i,n,s){void 0===i&&(i=[]),void 0===n&&(n={}),super(e,s),this.preTransitionState=void 0,this.name=t,this.pivotHandler=r,this.contexts=i,this.queryParams=n}applyToState(e,t){var r=this.router.recognizer.handlersFor(this.name),i=r[r.length-1].handler +class F extends S{constructor(e,t,r,i=[],n={},s){super(e,s),this.preTransitionState=void 0,this.name=t,this.pivotHandler=r,this.contexts=i,this.queryParams=n}applyToState(e,t){var r=this.router.recognizer.handlersFor(this.name),i=r[r.length-1].handler return this.applyToHandlers(e,r,i,t,!1)}applyToHandlers(e,t,r,i,n){var s,a,l=new D,u=this.contexts.slice(0),c=t.length if(this.pivotHandler)for(s=0,a=t.length;s=0;--s){var d=t[s],h=d.handler,p=e.routeInfos[s],f=null @@ -3456,22 +3061,22 @@ if(f=d.names.length>0?s>=c?this.createParamHandlerInfo(h,d.names,u,p):this.getHa var m=p&&p.context d.names.length>0&&void 0!==p.context&&f.context===m&&(f.params=p&&p.params),f.context=m}var g=p;(s>=c||f.shouldSupersede(p))&&(c=Math.min(s,c),g=f),i&&!n&&(g=g.becomeResolved(null,g.context)),l.routeInfos.unshift(g)}if(u.length>0)throw new Error("More context objects were passed than there are dynamic segments for the route: "+r) return i||this.invalidateChildren(l.routeInfos,c),o(l.queryParams,this.queryParams||{}),i&&e.queryParams&&o(l.queryParams,e.queryParams),l}invalidateChildren(e,t){for(var r=t,i=e.length;r0){if(d(a=r[r.length-1]))return this.createParamHandlerInfo(e,t,r,i) r.pop()}else{if(i&&i.name===e)return i if(!this.preTransitionState)return i var o=this.preTransitionState.routeInfos[s] -a=null==o?void 0:o.context}return new k(this.router,e,t,a)}createParamHandlerInfo(e,t,r,i){for(var n={},s=t.length,a=[];s--;){var o=i&&e===i.name&&i.params||{},l=r[r.length-1],u=t[s] +a=null==o?void 0:o.context}return new P(this.router,e,t,a)}createParamHandlerInfo(e,t,r,i){for(var n={},s=t.length,a=[];s--;){var o=i&&e===i.name&&i.params||{},l=r[r.length-1],u=t[s] d(l)?n[u]=""+r.pop():o.hasOwnProperty(u)?n[u]=o[u]:a.push(u)}if(a.length>0)throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${e}. Missing params: ${a}`) -return new S(this.router,e,t,n)}}var I=function(){function e(t){var r=Error.call(this,t) +return new k(this.router,e,t,n)}}var I=function(){function e(t){var r=Error.call(this,t) this.name="UnrecognizedURLError",this.message=t||"UnrecognizedURL",Error.captureStackTrace?Error.captureStackTrace(this,e):this.stack=r.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}() -class z extends P{constructor(e,t,r){super(e,r),this.url=t,this.preTransitionState=void 0}applyToState(e){var t,r,i=new D,n=this.router.recognizer.recognize(this.url) +class z extends S{constructor(e,t,r){super(e,r),this.url=t,this.preTransitionState=void 0}applyToState(e){var t,r,i=new D,n=this.router.recognizer.recognize(this.url) if(!n)throw new I(this.url) var s=!1,a=this.url function l(e){if(e&&e.inaccessibleByURL)throw new I(a) return e}for(t=0,r=n.length;t=0&&i;--r){var n=t[r],s=n.handler +if(e[a]!==t[a])return!1}return!0}e.default=class{constructor(e){this._lastQueryParams={},this.state=void 0,this.oldState=void 0,this.activeTransition=void 0,this.currentRouteInfos=void 0,this._changedQueryParams=void 0,this.currentSequence=0,this.log=e,this.recognizer=new r.default,this.reset()}map(e){this.recognizer.map(e,(function(e,t){for(var r=t.length-1,i=!0;r>=0&&i;--r){var n=t[r],s=n.handler e.add(t,{as:s}),i="/"===n.path||""===n.path||".index"===s.slice(-6)}}))}hasRoute(e){return this.recognizer.hasRoute(e)}queryParamsTransition(e,t,r,i){if(this.fireQueryParamDidChange(i,e),!t&&this.activeTransition)return this.activeTransition var n=new y(this,void 0,void 0) return n.queryParamsOnly=!0,r.queryParams=this.finalizeQueryParamChange(i.routeInfos,i.queryParams,n),n[b]=i.queryParams,this.toReadOnlyInfos(n,i),this.routeWillChange(n),n.promise=n.promise.then((e=>(n.isAborted||(this._updateURL(n,r),this.didTransition(this.currentRouteInfos),this.toInfos(n,i.routeInfos,!0),this.routeDidChange(n)),e)),null,m("Transition complete")),n}transitionByIntent(e,t){try{return this.getTransitionByIntent(e,t)}catch(r){return new y(this,e,void 0,r,void 0)}}recognize(e){var t=new z(this,e),r=this.generateNewState(t) @@ -3496,8 +3101,7 @@ if(L(s.routeInfos,n.routeInfos)){if(a){var o=this.queryParamsTransition(a,i,n,s) return o.queryParamsOnly=!0,o}return this.activeTransition||new y(this,void 0,void 0)}if(t){var l=new y(this,void 0,s) return l.isIntermediate=!0,this.toReadOnlyInfos(l,s),this.setupContexts(s,l),this.routeWillChange(l),this.activeTransition}return r=new y(this,e,s,void 0,this.activeTransition),function(e,t){if(e.length!==t.length)return!1 for(var r=0,i=e.length;rthis.finalizeTransition(r,e)),null,m("Settle transition promise when transition is finalized")),i||this.notifyExistingHandlers(s,r),this.fireQueryParamDidChange(s,a),r}doTransition(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=!1) -var i,n=t[t.length-1],s={} +if(!U(e[r].params,t[r].params))return!1}return!0}(s.routeInfos,n.routeInfos)&&(r.queryParamsOnly=!0),this.toReadOnlyInfos(r,s),this.activeTransition&&this.activeTransition.redirect(r),this.activeTransition=r,r.promise=r.promise.then((e=>this.finalizeTransition(r,e)),null,m("Settle transition promise when transition is finalized")),i||this.notifyExistingHandlers(s,r),this.fireQueryParamDidChange(s,a),r}doTransition(e,t=[],r=!1){var i,n=t[t.length-1],s={} if(n&&Object.prototype.hasOwnProperty.call(n,"queryParams")&&(s=t.pop().queryParams),void 0===e){c(this,"Updating query params") var{routeInfos:a}=this.state i=new F(this,a[a.length-1].name,void 0,[],s)}else"/"===e.charAt(0)?(c(this,"Attempting URL transition to "+e),i=new z(this,e)):(c(this,"Attempting transition to "+e),i=new F(this,e,void 0,t,s)) @@ -3525,17 +3129,14 @@ this.triggerEvent(e,!0,"finalizeQueryParamChange",[t,n,r]),r&&(r._visibleQueryPa for(var s={},a=0,o=n.length;a0){var r=O(t,Object.assign({},this._lastQueryParams),!0) -e.from=r[r.length-1]||null}}toInfos(e,t,r){if(void 0===r&&(r=!1),void 0!==e&&t.length>0){var i=O(t,Object.assign({},e[b]),r) +e.from=r[r.length-1]||null}}toInfos(e,t,r=!1){if(void 0!==e&&t.length>0){var i=O(t,Object.assign({},e[b]),r) e.to=i[i.length-1]||null}}notifyExistingHandlers(e,t){var r,i,n,s,a=this.state.routeInfos for(i=a.length,r=0;r1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i_(s,a,p,l)))}return a}class R{constructor(e,t,r,i){this._instanceConstructor=e,this.promise=new e(u,i),this._abortOnReject=r,this._isUsingOwnPromise=e===T,this._isUsingOwnResolve=e.resolve===l,this._init(...arguments)}_init(e,t){var r=t.length||0 +n.async((()=>_(s,a,p,l)))}return a}class R{constructor(e,t,r,i){this._instanceConstructor=e,this.promise=new e(u,i),this._abortOnReject=r,this._isUsingOwnPromise=e===C,this._isUsingOwnResolve=e.resolve===l,this._init(...arguments)}_init(e,t){var r=t.length||0 this.length=r,this._remaining=r,this._result=new Array(r),this._enumerate(t)}_enumerate(e){for(var t=this.length,r=this.promise,i=0;r._state===c&&it(e))),t,r)}else this._willSettleAt(i.resolve(e),t,r)}_eachEntry(e,t,r){null!==e&&"object"==typeof e?this._settleMaybeThenable(e,t,r):this._setResultAt(d,t,e,r)}_settledAt(e,t,r,i){var n=this.promise n._state===c&&(this._abortOnReject&&e===h?v(n,r):(this._setResultAt(e,t,r,i),this._checkFullfillment()))}_setResultAt(e,t,r,i){this._remaining--,this._result[t]=r}_willSettleAt(e,t,r){b(e,void 0,(e=>this._settledAt(d,t,e,r)),(e=>this._settledAt(h,t,e,r)))}}function O(e,t,r){this._remaining--,this._result[t]=e===d?{state:"fulfilled",value:r}:{state:"rejected",reason:r}}var E="rsvp_"+Date.now()+"-",A=0 -class T{constructor(e,t){this._id=A++,this._label=t,this._state=void 0,this._result=void 0,this._subscribers=[],n.instrument&&o("created",this),u!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof T?function(e,t){var r=!1 +class C{constructor(e,t){this._id=A++,this._label=t,this._state=void 0,this._result=void 0,this._subscribers=[],n.instrument&&o("created",this),u!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof C?function(e,t){var r=!1 try{t((t=>{r||(r=!0,f(e,t))}),(t=>{r||(r=!0,v(e,t))}))}catch(i){v(e,i)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}_onError(e){n.after((()=>{this._onError&&n.trigger("error",e,this._label)}))}catch(e,t){return this.then(void 0,e,t)}finally(e,t){var r=this,i=r.constructor -return"function"==typeof e?r.then((t=>i.resolve(e()).then((()=>t))),(t=>i.resolve(e()).then((()=>{throw t})))):r.then(e,e)}}function C(e,t){return{then:(r,i)=>e.call(t,r,i)}}function S(e,t){var r=function(){for(var r=arguments.length,i=new Array(r+1),n=!1,s=0;si.resolve(e()).then((()=>t))),(t=>i.resolve(e()).then((()=>{throw t})))):r.then(e,e)}}function T(e,t){return{then:(r,i)=>e.call(t,r,i)}}function k(e,t){var r=function(){for(var r=arguments.length,i=new Array(r+1),n=!1,s=0;sk(e,t,r,i)))}(l,i,e,this):k(l,i,e,this)} -return r.__proto__=e,r}function k(e,t,r,i){try{r.apply(i,t)}catch(n){v(e,n)}return e}function P(e,t){return T.all(e,t)}e.Promise=T,T.cast=l,T.all=function(e,t){return Array.isArray(e)?new R(this,e,!0,t).promise:this.reject(new TypeError("Promise.all must be called with an array"),t)},T.race=function(e,t){var r=new this(u,t) +return r}(arguments,t)):f(l,r)},n?function(e,t,r,i){return C.all(t).then((t=>P(e,t,r,i)))}(l,i,e,this):P(l,i,e,this)} +return r.__proto__=e,r}function P(e,t,r,i){try{r.apply(i,t)}catch(n){v(e,n)}return e}function S(e,t){return C.all(e,t)}e.Promise=C,C.cast=l,C.all=function(e,t){return Array.isArray(e)?new R(this,e,!0,t).promise:this.reject(new TypeError("Promise.all must be called with an array"),t)},C.race=function(e,t){var r=new this(u,t) if(!Array.isArray(e))return v(r,new TypeError("Promise.race must be called with an array")),r for(var i=0;r._state===c&&if(r,e)),(e=>v(r,e))) -return r},T.resolve=l,T.reject=function(e,t){var r=new this(u,t) -return v(r,e),r},T.prototype._guidKey=E,T.prototype.then=w -class j extends R{constructor(e,t,r){super(e,t,!1,r)}}function M(e,t){return Array.isArray(e)?new j(T,e,t).promise:T.reject(new TypeError("Promise.allSettled must be called with an array"),t)}function x(e,t){return T.race(e,t)}j.prototype._setResultAt=O -class D extends R{constructor(e,t,r,i){void 0===r&&(r=!0),super(e,t,r,i)}_init(e,t){this._result={},this._enumerate(t)}_enumerate(e){var t,r,i=Object.keys(e),n=i.length,s=this.promise +return r},C.resolve=l,C.reject=function(e,t){var r=new this(u,t) +return v(r,e),r},C.prototype._guidKey=E,C.prototype.then=w +class j extends R{constructor(e,t,r){super(e,t,!1,r)}}function M(e,t){return Array.isArray(e)?new j(C,e,t).promise:C.reject(new TypeError("Promise.allSettled must be called with an array"),t)}function x(e,t){return C.race(e,t)}j.prototype._setResultAt=O +class D extends R{constructor(e,t,r=!0,i){super(e,t,r,i)}_init(e,t){this._result={},this._enumerate(t)}_enumerate(e){var t,r,i=Object.keys(e),n=i.length,s=this.promise this._remaining=n for(var a=0;s._state===c&&a{throw e})),e}function L(e){var t={resolve:void 0,reject:void 0} -return t.promise=new T(((e,r)=>{t.resolve=e,t.reject=r}),e),t}F.prototype._setResultAt=O +this._checkFullfillment()}}function N(e,t){return C.resolve(e,t).then((function(e){if(null===e||"object"!=typeof e)throw new TypeError("Promise.hash must be called with an object") +return new D(C,e,t).promise}))}class F extends D{constructor(e,t,r){super(e,t,!1,r)}}function I(e,t){return C.resolve(e,t).then((function(e){if(null===e||"object"!=typeof e)throw new TypeError("hashSettled must be called with an object") +return new F(C,e,!1,t).promise}))}function z(e){throw setTimeout((()=>{throw e})),e}function L(e){var t={resolve:void 0,reject:void 0} +return t.promise=new C(((e,r)=>{t.resolve=e,t.reject=r}),e),t}F.prototype._setResultAt=O class U extends R{constructor(e,t,r,i){super(e,t,!0,i,r)}_init(e,t,r,i,n){var s=t.length||0 -this.length=s,this._remaining=s,this._result=new Array(s),this._mapFn=n,this._enumerate(t)}_setResultAt(e,t,r,i){if(i)try{this._eachEntry(this._mapFn(r,t),t,!1)}catch(n){this._settledAt(h,t,n,!1)}else this._remaining--,this._result[t]=r}}function B(e,t,r){return"function"!=typeof t?T.reject(new TypeError("map expects a function as a second argument"),r):T.resolve(e,r).then((function(e){if(!Array.isArray(e))throw new TypeError("map must be called with an array") -return new U(T,e,t,r).promise}))}function $(e,t){return T.resolve(e,t)}function H(e,t){return T.reject(e,t)}var q={} +this.length=s,this._remaining=s,this._result=new Array(s),this._mapFn=n,this._enumerate(t)}_setResultAt(e,t,r,i){if(i)try{this._eachEntry(this._mapFn(r,t),t,!1)}catch(n){this._settledAt(h,t,n,!1)}else this._remaining--,this._result[t]=r}}function B(e,t,r){return"function"!=typeof t?C.reject(new TypeError("map expects a function as a second argument"),r):C.resolve(e,r).then((function(e){if(!Array.isArray(e))throw new TypeError("map must be called with an array") +return new U(C,e,t,r).promise}))}function $(e,t){return C.resolve(e,t)}function H(e,t){return C.reject(e,t)}var q={} class V extends U{_checkFullfillment(){if(0===this._remaining&&null!==this._result){var e=this._result.filter((e=>e!==q)) g(this.promise,e),this._result=null}}_setResultAt(e,t,r,i){if(i){this._result[t]=r var n,s=!0 -try{n=this._mapFn(r,t)}catch(a){s=!1,this._settledAt(h,t,a,!1)}s&&this._eachEntry(n,t,!1)}else this._remaining--,r||(this._result[t]=q)}}function W(e,t,r){return"function"!=typeof t?T.reject(new TypeError("filter expects function as a second argument"),r):T.resolve(e,r).then((function(e){if(!Array.isArray(e))throw new TypeError("filter must be called with an array") -return new V(T,e,t,r).promise}))}var G,Y=0 +try{n=this._mapFn(r,t)}catch(a){s=!1,this._settledAt(h,t,a,!1)}s&&this._eachEntry(n,t,!1)}else this._remaining--,r||(this._result[t]=q)}}function W(e,t,r){return"function"!=typeof t?C.reject(new TypeError("filter expects function as a second argument"),r):C.resolve(e,r).then((function(e){if(!Array.isArray(e))throw new TypeError("filter must be called with an array") +return new V(C,e,t,r).promise}))}var G,Y=0 function K(e,t){ue[Y]=e,ue[Y+1]=t,2===(Y+=2)&&re()}var Q="undefined"!=typeof window?window:void 0,J=Q||{},X=J.MutationObserver||J.WebKitMutationObserver,Z="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),ee="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel function te(){return()=>setTimeout(ce,1)}var re,ie,ne,se,ae,oe,le,ue=new Array(1e3) function ce(){for(var e=0;eoe(ce)):X?(ne=0,se=new X(ce),ae=document.createTextNode(""),se.observe(ae,{characterData:!0}),re=()=>ae.data=ne=++ne%2):ee?((ie=new MessageChannel).port1.onmessage=ce,re=()=>ie.port2.postMessage(0)):re=void 0===Q&&"function"==typeof t?function(){try{var e=Function("return this")().require("vertx") return void 0!==(G=e.runOnLoop||e.runOnContext)?function(){G(ce)}:te()}catch(t){return te()}}():te(),n.async=K,n.after=e=>setTimeout(e,0) -var de=$ -e.cast=de -var he=(e,t)=>n.async(e,t) +var de=e.cast=$,he=(e,t)=>n.async(e,t) function pe(){n.on(...arguments)}function fe(){n.off(...arguments)}if(e.async=he,"undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){var me=window.__PROMISE_INSTRUMENTATION__ -for(var ge in s("instrument",!0),me)me.hasOwnProperty(ge)&&pe(ge,me[ge])}var ve={asap:K,cast:de,Promise:T,EventTarget:i,all:P,allSettled:M,race:x,hash:N,hashSettled:I,rethrow:z,defer:L,denodeify:S,configure:s,on:pe,off:fe,resolve:$,reject:H,map:B,async:he,filter:W} +for(var ge in s("instrument",!0),me)me.hasOwnProperty(ge)&&pe(ge,me[ge])}var ve={asap:K,cast:de,Promise:C,EventTarget:i,all:S,allSettled:M,race:x,hash:N,hashSettled:I,rethrow:z,defer:L,denodeify:k,configure:s,on:pe,off:fe,resolve:$,reject:H,map:B,async:he,filter:W} e.default=ve})),t("@ember/-internals/bootstrap")}(),"undefined"==typeof FastBoot){var preferNative=!1;(function(e){define("fetch",["exports","ember","rsvp"],(function(t,r,i){"use strict" var n="default"in r?r.default:r,s=("default"in i?i.default:i).Promise,a=["FormData","FileReader","Blob","URLSearchParams","Symbol","ArrayBuffer"],o=a preferNative&&(o=a.concat(["fetch","Headers","Request","Response","AbortController"])),o.forEach((function(r){e[r]&&Object.defineProperty(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})})) @@ -3646,61 +3240,65 @@ for(let i=0,n=t.length;i{throw r}))}n.options&&n.options.once&&this.removeEventListener(e.type,n.callback)}return!e.defaultPrevented}}class t extends e{constructor(){super(),this.listeners||e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.dispatchEvent(e)}}class r{constructor(){Object.defineProperty(this,"signal",{value:new t,writable:!0,configurable:!0})}abort(e){let t try{t=new Event("abort")}catch(i){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let r=e if(void 0===r)if("undefined"==typeof document)r=new Error("This operation was aborted"),r.name="AbortError" -else try{r=new DOMException("signal is aborted without reason")}catch(n){r=new Error("This operation was aborted"),r.name="AbortError"}this.signal.reason=r,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(r.prototype[Symbol.toStringTag]="AbortController",t.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=r,e.AbortSignal=t)}(void 0!==u?u:global)})();(function(e){var t=void 0!==l&&l||void 0!==u&&u||void 0!==t&&t,r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t} -if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1} -function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"') -return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift() +else try{r=new DOMException("signal is aborted without reason")}catch(n){r=new Error("This operation was aborted"),r.name="AbortError"}this.signal.reason=r,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(r.prototype[Symbol.toStringTag]="AbortController",t.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=r,e.AbortSignal=t)}(void 0!==u?u:global)})();(function(e){var t=void 0!==l&&l||void 0!==u&&u||"undefined"!=typeof global&&global||{},r="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,n="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,o="ArrayBuffer"in t +if(o)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1} +function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"') +return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift() return{done:void 0===t,value:t}}} -return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return s.reject(new TypeError("Already read")) -e.bodyUsed=!0}function p(e){return new s((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function f(e){var t=new FileReader,r=p(t) -return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0) +return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length) +this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(!e._noBody)return e.bodyUsed?s.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function v(e){return new s((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function b(e){var t=new FileReader,r=v(t) +return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0) var t=new Uint8Array(e.byteLength) -return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t -this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||n(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=h(this) +return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t +this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&n&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=g(this) if(e)return e if(this._bodyBlob)return s.resolve(this._bodyBlob) if(this._bodyArrayBuffer)return s.resolve(new Blob([this._bodyArrayBuffer])) if(this._bodyFormData)throw new Error("could not read FormData body as blob") -return s.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this) -return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?s.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):s.resolve(this._bodyArrayBuffer))}return this.blob().then(f)}),this.text=function(){var e,t,r,i=h(this) -if(i)return i -if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=p(t),t.readAsText(e),r +return s.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=g(this) +return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?s.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):s.resolve(this._bodyArrayBuffer))}if(n)return this.blob().then(b) +throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i,n,a=g(this) +if(a)return a +if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=v(t),i=/charset=([A-Za-z0-9_-]+)/.exec(e.type),n=i?i[1]:"utf-8",t.readAsText(e,n),r if(this._bodyArrayBuffer)return s.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests") -if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/ -if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime()) -else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(e){var t=new FormData +this.map[e]=r?r+", "+t:t},m.prototype.delete=function(e){delete this.map[h(e)]},m.prototype.get=function(e){return e=h(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(h(e))},m.prototype.set=function(e,t){this.map[h(e)]=p(t)},m.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},m.prototype.keys=function(){var e=[] +return this.forEach((function(t,r){e.push(r)})),f(e)},m.prototype.values=function(){var e=[] +return this.forEach((function(t){e.push(t)})),f(e)},m.prototype.entries=function(){var e=[] +return this.forEach((function(t,r){e.push([r,t])})),f(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries) +var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"] +function R(e,r){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') +var i,n,s=(r=r||{}).body +if(e instanceof R){if(e.bodyUsed)throw new TypeError("Already read") +this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e) +if(this.credentials=r.credentials||this.credentials||"same-origin",!r.headers&&this.headers||(this.headers=new m(r.headers)),this.method=(i=r.method||this.method||"GET",n=i.toUpperCase(),w.indexOf(n)>-1?n:i),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests") +if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==r.cache&&"no-cache"!==r.cache)){var a=/([?&])_=[^&]*/ +if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime()) +else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function O(e){var t=new FormData return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ") -t.append(decodeURIComponent(i),decodeURIComponent(n))}})),t}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') -t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""}) -return e.type="error",e} -var w=[301,302,303,307,308] -_.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code") -return new _(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException -try{new e.DOMException}catch(O){e.DOMException=function(e,t){this.message=e,this.name=t +t.append(decodeURIComponent(i),decodeURIComponent(n))}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') +if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].") +this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})},_.call(R.prototype),_.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""}) +return e.ok=!1,e.status=0,e.type="error",e} +var A=[301,302,303,307,308] +E.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code") +return new E(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException +try{new e.DOMException}catch(T){e.DOMException=function(e,t){this.message=e,this.name=t var r=Error(e) -this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function R(i,n){return new s((function(s,a){var l=new b(i,n) +this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function C(r,i){return new s((function(s,a){var l=new R(r,i) if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError")) var u=new XMLHttpRequest -function c(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),i=r.shift().trim() +function c(){u.abort()}if(u.onload=function(){var e,t,r={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),i=r.shift().trim() if(i){var n=r.join(":").trim() -t.append(i,n)}})),t)} -r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL") +try{t.append(i,n)}catch(s){console.warn("Response "+s.message)}}})),t)} +0===l.url.indexOf("file://")&&(u.status<200||u.status>599)?r.status=200:r.status=u.status,r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL") var i="response"in u?u.response:u.responseText -setTimeout((function(){s(new _(i,r))}),0)},u.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},u.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(r){return e}}(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(r.blob?u.responseType="blob":r.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?l.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,o(n.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",c)}),u.send(void 0===l._bodyInit?null:l._bodyInit)}))}R.polyfill=!0,t.fetch||(t.fetch=R,t.Headers=d,t.Request=b,t.Response=_),e.Headers=d,e.Request=b,e.Response=_,e.fetch=R})({}) +setTimeout((function(){s(new E(i,r))}),0)},u.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},u.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(r){return e}}(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(n?u.responseType="blob":o&&(u.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof m||t.Headers&&i.headers instanceof t.Headers)){var d=[] +Object.getOwnPropertyNames(i.headers).forEach((function(e){d.push(h(e)),u.setRequestHeader(e,p(i.headers[e]))})),l.headers.forEach((function(e,t){-1===d.indexOf(t)&&u.setRequestHeader(t,e)}))}else l.headers.forEach((function(e,t){u.setRequestHeader(t,e)})) +l.signal&&(l.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",c)}),u.send(void 0===l._bodyInit?null:l._bodyInit)}))}C.polyfill=!0,t.fetch||(t.fetch=C,t.Headers=m,t.Request=R,t.Response=E),e.Headers=m,e.Request=R,e.Response=E,e.fetch=C})({}) if(!l.fetch)throw new Error("fetch is not defined - maybe your browser targets are not covering everything you need?") var c=0 function d(e){return c--,e}n.Test?(n.Test.registerWaiter((function(){return 0===c})),t.default=function(){return c++,t.fetch.apply(e,arguments).then((function(e){return e.clone().blob().then(d,d),e}),(function(e){throw d(e),e}))}):t.default=t.fetch,a.forEach((function(e){delete t[e]}))}))})("undefined"!=typeof window&&window||"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global)}define("@ember-data/adapter/-private",["exports","@ember/debug","rsvp","require","@ember/object/mixin","@ember/string","ember-inflector"],(function(e,t,r,i,n,s,a){"use strict" @@ -3740,8 +3338,7 @@ for(let i=0;i{if(e.source&&e.source.pointer){let r=e.source.pointer.match(f) -r?r=r[2]:-1!==e.source.pointer.search(m)&&(r=g),r&&(t[r]=t[r]||[],t[r].push(e.detail||e.title))}})),t}},e.errorsHashToArray=function(e){{let t=[] +return e&&e.forEach((e=>{if(e.source&&e.source.pointer){let r=e.source.pointer.match(s) +r?r=r[2]:-1!==e.source.pointer.search(a)&&(r=o),r&&(t[r]=t[r]||[],t[r].push(e.detail||e.title))}})),t}},e.errorsHashToArray=function(e){{let t=[] return e&&Object.keys(e).forEach((r=>{let i=(n=e[r],Array.isArray(n)?n:[n]) var n for(let e=0;e{let a=function(t,r,n){let s=0,a=i._stripIDFromURL(e,t[ return t.forEach((e=>{let t=encodeURIComponent(e.id).length+n a.length+s+t>=r&&(s=0,o.push([])),s+=t let i=o.length-1 -o[i].push(e)})),o}(t,n,"&ids%5B%5D=".length) +o[i].push(e)})),o}(t,n,11) a.forEach((e=>s.push(e)))})),s}handleResponse(e,t,r,i){if(this.isSuccess(e,t,r))return r if(this.isInvalid(e,t,r))return new o.InvalidError("object"==typeof r&&"errors"in r?r.errors:void 0) let n=this.normalizeErrorResponse(e,t,r),s=this.generatedDetailedMessage(e,t,r,i) @@ -3837,8 +3414,7 @@ switch(e){case 401:return new o.UnauthorizedError(n,s) case 403:return new o.ForbiddenError(n,s) case 404:return new o.NotFoundError(n,s) case 409:return new o.ConflictError(n,s) -default:if(e>=500)return new o.ServerError(n,s)}return new o.default(n,s)}isSuccess(e,t,r){return e>=200&&e<300||304===e}isInvalid(e,t,r){return 422===e}async ajax(e,t,r){void 0===r&&(r={}) -let i=this,o={url:e,method:t} +default:if(e>=500)return new o.ServerError(n,s)}return new o.default(n,s)}isSuccess(e,t,r){return e>=200&&e<300||304===e}isInvalid(e,t,r){return 422===e}async ajax(e,t,r={}){let i=this,o={url:e,method:t} if(this.useFetch){let n=i.ajaxOptions(e,t,r),s=await this._fetchRequest(n),l=await(0,a.determineBodyPromise)(s,o) if(!s.ok||l instanceof Error)throw function(e,t,r,i,n){let s=_(r) 200===s.status&&t instanceof Error?(s.errorThrown=t,t=s.errorThrown.payload):(s.errorThrown=i,"string"==typeof t&&(t=e.parseErrorResponse(t))) @@ -3872,10 +3448,9 @@ return new o.AbortError(a)}(r,i) else try{n=e.handleResponse(i.status,i.headers,t||i.errorThrown,r)}catch(s){n=s}return n}function _(e){return{status:e.status,textStatus:e.statusText,headers:R(e.headers)}}function w(e){return{status:e.status,textStatus:e.statusText,headers:(0,a.parseResponseHeaders)(e.getAllResponseHeaders())}}function R(e){let t={} return e&&e.forEach(((e,r)=>t[r]=e)),t}function O(e,t){if(e.credentials=e.credentials||"same-origin",e.data)if("GET"===e.method||"HEAD"===e.method){if(Object.keys(e.data).length&&e.url){const t=e.url.indexOf("?")>-1?"&":"?" e.url+=`${t}${(0,a.serializeQueryParams)(e.data)}`}}else"[object Object]"===Object.prototype.toString.call(e.data)?e.body=JSON.stringify(e.data):e.body=e.data -return e}var E=d -e.default=E})),define("@ember-data/debug/index",["exports","@ember/array","@ember/debug","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/string","@ember/runloop","@ember-data/debug/setup"],(function(e,t,r,i,n,s,a,o,l){"use strict" +return e}e.default=d})),define("@ember-data/debug/index",["exports","@ember/array","@ember/debug","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/string","@ember/runloop","@ember-data/debug/setup"],(function(e,t,r,i,n,s,a,o,l){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var u=i.default.extend({store:(0,s.inject)("store"),getFilters:()=>[{name:"isNew",desc:"New"},{name:"isModified",desc:"Modified"},{name:"isClean",desc:"Clean"}],_nameToClass(e){return this.store.modelFor(e)},watchModelTypes(e,t){const{store:r}=this,i=r._instanceCache.getRecordData,n=[],s=(0,l.typesMapFor)(r) +e.default=i.default.extend({store:(0,s.inject)("store"),getFilters:()=>[{name:"isNew",desc:"New"},{name:"isModified",desc:"Modified"},{name:"isClean",desc:"Clean"}],_nameToClass(e){return this.store.modelFor(e)},watchModelTypes(e,t){const{store:r}=this,i=r._instanceCache.getRecordData,n=[],s=(0,l.typesMapFor)(r) s.forEach(((i,a)=>{this.watchTypeIfUnseen(r,s,a,e,t,n)})),r._instanceCache.getRecordData=a=>((0,o.next)((()=>this.watchTypeIfUnseen(r,s,a.type,e,t,n))),i.call(r._instanceCache,a)) let a=()=>{n.forEach((e=>e())),r._instanceCache.getRecordData=i,s.forEach(((e,t)=>{s.set(t,!1)})),this.releaseMethods.removeObject(a)} return this.releaseMethods.pushObject(a),a},watchTypeIfUnseen(e,t,r,i,n,s){if(!0!==t.get(r)){let a=e.modelFor(r),o=this.wrapModelType(a,r) @@ -3892,8 +3467,7 @@ return e.isNew?t="green":e.hasDirtyAttributes&&(t="blue"),t},observeRecord(e,r){ e.eachAttribute((e=>s.push(e))) let a=this s.forEach((function(t){let s=function(){r(a.wrapRecord(e))};(0,n.addObserver)(e,t,s),i.push((function(){(0,n.removeObserver)(e,t,s)}))})) -return function(){i.forEach((e=>e()))}}}) -e.default=u})),define("@ember-data/debug/setup",["exports","@ember-data/store"],(function(e,t){"use strict" +return function(){i.forEach((e=>e()))}}})})),define("@ember-data/debug/setup",["exports","@ember-data/store"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.typesMapFor=i const r=new WeakMap function i(e){let t=r.get(e) @@ -3903,12 +3477,10 @@ return n.has(e.type)||n.set(e.type,!1),t.call(this,e)},this.__instanceCache=e}}) const n=t.default.prototype._createRecordData t.default.prototype._createRecordData=function(e){const t=i(this) return t.has(e.type)||t.set(e.type,!1),n.call(this,e)} -var s={name:"@ember-data/data-adapter",initialize(){}} -e.default=s})),define("@ember-data/model/-private",["exports","@ember/debug","@ember/object","@ember-data/store","@ember-data/store/-private","@ember/string","@ember/object/compat","@ember/runloop","@glimmer/tracking","ember","rsvp","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/array","@ember/array/proxy","@ember/object/computed","@embroider/macros/es-compat","@ember/object/internals","@ember-data/tracking/-private","ember-inflector","@ember/application"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_){"use strict" -const w=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},R=w(r),O=w(u),E=w(d),A=w(h),T=w(p),C=w(f),S=w(g) -function k(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;ie&&"object"==typeof e&&"default"in e?e:{default:e},R=w(r),O=w(u),E=w(d),A=w(h),C=w(p),T=w(f),k=w(g) +function P(e){return(...t)=>function(e){let[t,r,i]=e +return 3===e.length&&("function"==typeof t||"object"==typeof t&&null!==t)&&"string"==typeof r&&("object"==typeof i&&null!==i&&"enumerable"in i&&"configurable"in i||void 0===i)}(t)?e()(...t):e(...t)}const S=P((function(e,t){"object"==typeof e?(t=e,e=void 0):t=t||{} let s={type:e,isAttribute:!0,options:t} return r.computed({get(e){if(!this.isDestroyed&&!this.isDestroying)return n.recordDataFor(this).getAttr(i.recordIdentifierFor(this),e)},set(e,t){const r=i.recordIdentifierFor(this),n=i.storeFor(this)._instanceCache.getRecordData(r) if(n.getAttr(r,e)!==t&&(n.setAttr(r,e,t),!this.isValid)){const{errors:t}=this @@ -3916,8 +3488,8 @@ t.get(e)&&(t.remove(e),this.currentState.cleanErrorRequests())}return t}}).meta( function M(e){const t=function(e){return j.create({promise:c.resolve(e)})}(e) return t}var x,D,N,F,I,z,L function U(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function B(e,t,r,i,n){var s={} -return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const $=C.default -let H=(x=r.computed(),D=m.mapBy("content","message"),N=r.computed(),F=m.not("length"),I=class extends ${constructor(){super(...arguments),U(this,"messages",z,this),U(this,"isEmpty",L,this)}get errorsByAttributeName(){return new Map}errorsFor(e){let t=this.errorsByAttributeName,i=t.get(e) +return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const $=T.default +let H=(x=r.computed(),D=m.mapBy("content","message"),N=r.computed(),F=m.not("length"),B((I=class extends ${constructor(...e){super(...e),U(this,"messages",z,this),U(this,"isEmpty",L,this)}get errorsByAttributeName(){return new Map}errorsFor(e){let t=this.errorsByAttributeName,i=t.get(e) return void 0===i&&(i=p.A(),t.set(e,i)),r.get(i,"[]"),i}get content(){return p.A()}unknownProperty(e){let t=this.errorsFor(e) if(0!==t.length)return t}add(e,t){const r=this._findOrCreateMessages(e,t) this.addObjects(r),this.errorsFor(e).addObjects(r),this.__record.currentState.notify("isValid"),this.notifyPropertyChange(e)}_findOrCreateMessages(e,t){let r=this.errorsFor(e),i=Array.isArray(t)?t:[t],n=new Array(i.length) @@ -3929,7 +3501,7 @@ let r=this.errorsFor(e) for(let i=0;i{this.notifyPropertyChange(e)})),this.__record.currentState.notify("isValid"),super.clear()}has(e){return this.errorsFor(e).length>0}},B(I.prototype,"errorsByAttributeName",[x],Object.getOwnPropertyDescriptor(I.prototype,"errorsByAttributeName"),I.prototype),z=B(I.prototype,"messages",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B(I.prototype,"content",[N],Object.getOwnPropertyDescriptor(I.prototype,"content"),I.prototype),L=B(I.prototype,"isEmpty",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I) +e.forEach((function(e,r){t.push(r)})),e.clear(),t.forEach((e=>{this.notifyPropertyChange(e)})),this.__record.currentState.notify("isValid"),super.clear()}has(e){return this.errorsFor(e).length>0}}).prototype,"errorsByAttributeName",[x],Object.getOwnPropertyDescriptor(I.prototype,"errorsByAttributeName"),I.prototype),z=B(I.prototype,"messages",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B(I.prototype,"content",[N],Object.getOwnPropertyDescriptor(I.prototype,"content"),I.prototype),L=B(I.prototype,"isEmpty",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I) function q(e,t,r,i,n,s){return e?e.normalizeResponse(t,r,i,n,s):i}function V(e,t,r,i){let n=t.data?(s=t.data,a=(t,n)=>{const{id:s,type:a}=t return function(e,t,r,i,n){let{id:s,type:a}=e e.relationships||(e.relationships={}) @@ -3941,14 +3513,13 @@ if(a){const t=e.getSchemaDefinitionService().relationshipsDefinitionFor({type:i} let{kind:r}=t[a] return{inverseKey:a,kind:r}}}(r,t,i,a) if(l){let{inverseKey:e,kind:r}=l,i=o[e]&&o[e].data -"hasMany"===r&&void 0===i||(o[e]=o[e]||{},o[e].data=function(e,t,r){let i,{id:n,type:s}=r,a={id:n,type:s} -return"hasMany"===t?(i=e||[],e&&e.find((e=>e.type===a.type&&e.id===a.id))||i.push(a)):(i=e||{},Object.assign(i,a)),i}(i,r,t))}}(t,r,e,i),{id:s,type:a}},Array.isArray(s)?s.map(a):a(s)):null +"hasMany"===r&&void 0===i||(o[e]=o[e]||{},o[e].data=function(e,t,{id:r,type:i}){let n,s={id:r,type:i} +return"hasMany"===t?(n=e||[],e&&e.find((e=>e.type===s.type&&e.id===s.id))||n.push(s)):(n=e||{},Object.assign(n,s)),n}(i,r,t))}}(t,r,e,i),{id:s,type:a}},Array.isArray(s)?s.map(a):a(s)):null var s,a const o={} "meta"in t&&(o.meta=t.meta),"links"in t&&(o.links=t.links),"data"in t&&(o.data=n) const l={id:r.id,type:r.type,relationships:{[i.key]:o}} -return Array.isArray(t.included)||(t.included=[]),t.included.push(l),t}function W(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{t()||(r._subscribers.length=0)})) +return Array.isArray(t.included)||(t.included=[]),t.included.push(l),t}function W(e,...t){return function(){return e.apply(void 0,t)}}function G(e,t){let r=e.finally((()=>{t()||(r._subscribers.length=0)})) return r}function Y(e){return!(e.isDestroyed||e.isDestroying)}function K(e,t,r){return G(c.resolve(e,r).then((r=>(Y(t),e))),(()=>Y(t)))}class Q extends n.RecordArray{constructor(e){super(e),this.isLoaded=e.isLoaded||!1,this.isAsync=e.isAsync||!1,this.isPolymorphic=e.isPolymorphic||!1,this.identifier=e.identifier,this.key=e.key}[n.MUTATE](e,t,r){switch(e){case"length 0":this._manager.updateCache({op:"replaceRelatedRecords",record:this.identifier,field:this.key,value:[]}) break case"replace cell":{const[e,r,i]=t @@ -3976,13 +3547,11 @@ return await r.reloadBelongsTo(t,e),this}}).prototype,ne="meta",se=[Z],ae=Object var ie,ne,se,ae,oe,le,ue,ce,de,he,pe,fe function me(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function ge(e,t,r,i,n){var s={} return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let ve=(ce=ge((ue=class{constructor(e,t){me(this,"content",ce,this),me(this,"isPending",de,this),me(this,"isRejected",he,this),me(this,"isFulfilled",pe,this),me(this,"isSettled",fe,this),this._update(e,t),this.isDestroyed=!1,this.isDestroying=!1 -O.default.meta(this).hasMixin=e=>e===p.NativeArray||e===T.default}get length(){return this["[]"],this.content?this.content.length:0}get"[]"(){return this.content?.length&&this.content}forEach(e){this.content&&this.length&&this.content.forEach(e)}reload(e){return this.content.reload(e),this}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}destroy(){this.isDestroying=!0,this.isDestroyed=!0,this.content=null,this.promise=null}get links(){return this.content?this.content.links:void 0}get meta(){return this.content?this.content.meta:void 0}_update(e,t){void 0!==t&&(this.content=t),this.promise=function(e,t){return e.isPending=!0,e.isSettled=!1,e.isFulfilled=!1,e.isRejected=!1,c.resolve(t).then((t=>(e.isPending=!1,e.isFulfilled=!0,e.isSettled=!0,e.content=t,t)),(t=>{throw e.isPending=!1,e.isFulfilled=!1,e.isRejected=!0,e.isSettled=!0,t}))}(this,e)}static create(e){let{promise:t,content:r}=e -return new this(t,r)}}).prototype,"content",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge(ue.prototype,"length",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"length"),ue.prototype),ge(ue.prototype,"[]",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"[]"),ue.prototype),de=ge(ue.prototype,"isPending",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),he=ge(ue.prototype,"isRejected",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pe=ge(ue.prototype,"isFulfilled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fe=ge(ue.prototype,"isSettled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge(ue.prototype,"links",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"links"),ue.prototype),ge(ue.prototype,"meta",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"meta"),ue.prototype),ue) -ve.prototype.createRecord=function(){return this.content.createRecord(...arguments)},Object.defineProperty(ve.prototype,"firstObject",{get(){return this.content?this.content.firstObject:void 0}}),Object.defineProperty(ve.prototype,"lastObject",{get(){return this.content?this.content.lastObject:void 0}});["addObserver","cacheFor","decrementProperty","get","getProperties","incrementProperty","notifyPropertyChange","removeObserver","set","setProperties","toggleProperty"].forEach((e=>{ve.prototype[e]=function(){for(var t=arguments.length,r=new Array(t),i=0;i{ve.prototype[e]=function(){return this.content[e](...arguments)}})) +O.default.meta(this).hasMixin=e=>e===p.NativeArray||e===C.default}get length(){return this["[]"],this.content?this.content.length:0}get"[]"(){return this.content?.length&&this.content}forEach(e){this.content&&this.length&&this.content.forEach(e)}reload(e){return this.content.reload(e),this}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}destroy(){this.isDestroying=!0,this.isDestroyed=!0,this.content=null,this.promise=null}get links(){return this.content?this.content.links:void 0}get meta(){return this.content?this.content.meta:void 0}_update(e,t){void 0!==t&&(this.content=t),this.promise=function(e,t){return e.isPending=!0,e.isSettled=!1,e.isFulfilled=!1,e.isRejected=!1,c.resolve(t).then((t=>(e.isPending=!1,e.isFulfilled=!0,e.isSettled=!0,e.content=t,t)),(t=>{throw e.isPending=!1,e.isFulfilled=!1,e.isRejected=!0,e.isSettled=!0,t}))}(this,e)}static create({promise:e,content:t}){return new this(e,t)}}).prototype,"content",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ge(ue.prototype,"length",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"length"),ue.prototype),ge(ue.prototype,"[]",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"[]"),ue.prototype),de=ge(ue.prototype,"isPending",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),he=ge(ue.prototype,"isRejected",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pe=ge(ue.prototype,"isFulfilled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fe=ge(ue.prototype,"isSettled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge(ue.prototype,"links",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"links"),ue.prototype),ge(ue.prototype,"meta",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(ue.prototype,"meta"),ue.prototype),ue) +ve.prototype.createRecord=function(...e){return this.content.createRecord(...e)},Object.defineProperty(ve.prototype,"firstObject",{get(){return this.content?this.content.firstObject:void 0}}),Object.defineProperty(ve.prototype,"lastObject",{get(){return this.content?this.content.lastObject:void 0}});["addObserver","cacheFor","decrementProperty","get","getProperties","incrementProperty","notifyPropertyChange","removeObserver","set","setProperties","toggleProperty"].forEach((e=>{ve.prototype[e]=function(...t){return O.default[e](this,...t)}}));["addArrayObserver","addObject","addObjects","any","arrayContentDidChange","arrayContentWillChange","clear","compact","every","filter","filterBy","find","findBy","getEach","includes","indexOf","insertAt","invoke","isAny","isEvery","lastIndexOf","map","mapBy","objectAt","objectsAt","popObject","pushObject","pushObjects","reduce","reject","rejectBy","removeArrayObserver","removeAt","removeObject","removeObjects","replace","reverseObjects","setEach","setObjects","shiftObject","slice","sortBy","toArray","uniq","uniqBy","unshiftObject","unshiftObjects","without"].forEach((e=>{ve.prototype[e]=function(...t){return this.content[e](...t)}})) var be,ye function _e(e,t,r,i,n){var s={} -return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let we=S.default(require("ember-cached-decorator-polyfill")).cached +return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let we=k.default(require("ember-cached-decorator-polyfill")).cached function Re(e){return Boolean(e&&e.links&&e.links.related)}let Oe=(be=class{constructor(e,t,r,i,n){this.___identifier=void 0,this.___token=void 0,this.___relatedToken=null,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"_ref",ye,this),this.graph=t,this.key=n,this.belongsToRelationship=i,this.type=i.definition.type,this.store=e,this.___identifier=r,this.___token=e._notificationManager.subscribe(r,((e,t,r)=>{"relationships"===t&&r===n&&this._ref++}))}destroy(){this.store._notificationManager.unsubscribe(this.___token),this.___token=null,this.___relatedToken&&(this.store._notificationManager.unsubscribe(this.___relatedToken),this.___relatedToken=null)}get identifier(){this._ref,this.___relatedToken&&(this.store._notificationManager.unsubscribe(this.___relatedToken),this.___relatedToken=null) let e=this._resource() if(e&&e.data){const t=this.store.identifierCache.getOrCreateRecordIdentifier(e.data) @@ -3997,9 +3566,9 @@ const{identifier:i}=this.belongsToRelationship return this.store._join((()=>{this.graph.push({op:"replaceRelatedRecord",record:i,field:this.key,value:n.recordIdentifierFor(r)})})),r}value(){let e=this._resource() return e&&e.data?this.store.peekRecord(e.data):null}load(e){return it.get(this.___identifier).getBelongsTo(this.key,e)}reload(e){return it.get(this.___identifier).reloadBelongsTo(this.key,e).then((()=>this.value()))}},ye=_e(be.prototype,"_ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_e(be.prototype,"identifier",[we,a.dependentKeyCompat],Object.getOwnPropertyDescriptor(be.prototype,"identifier"),be.prototype),be) var Ee,Ae -function Te(e,t,r,i,n){var s={} -return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let Ce=S.default(require("ember-cached-decorator-polyfill")).cached -let Se=(Ee=class{constructor(e,t,r,i,n){this.___token=void 0,this.___identifier=void 0,this.___relatedTokenMap=void 0,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"_ref",Ae,this),this.graph=t,this.key=n,this.hasManyRelationship=i,this.type=i.definition.type,this.store=e,this.___identifier=r,this.___token=e._notificationManager.subscribe(r,((e,t,r)=>{"relationships"===t&&r===n&&this._ref++})),this.___relatedTokenMap=new Map}destroy(){this.store._notificationManager.unsubscribe(this.___token),this.___relatedTokenMap.forEach((e=>{this.store._notificationManager.unsubscribe(e)})),this.___relatedTokenMap.clear()}get identifiers(){this._ref +function Ce(e,t,r,i,n){var s={} +return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let Te=k.default(require("ember-cached-decorator-polyfill")).cached +let ke=(Ee=class{constructor(e,t,r,i,n){this.___token=void 0,this.___identifier=void 0,this.___relatedTokenMap=void 0,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"_ref",Ae,this),this.graph=t,this.key=n,this.hasManyRelationship=i,this.type=i.definition.type,this.store=e,this.___identifier=r,this.___token=e._notificationManager.subscribe(r,((e,t,r)=>{"relationships"===t&&r===n&&this._ref++})),this.___relatedTokenMap=new Map}destroy(){this.store._notificationManager.unsubscribe(this.___token),this.___relatedTokenMap.forEach((e=>{this.store._notificationManager.unsubscribe(e)})),this.___relatedTokenMap.clear()}get identifiers(){this._ref let e=this._resource(),t=this.___relatedTokenMap return this.___relatedTokenMap=new Map,e&&e.data?e.data.map((e=>{const r=this.store.identifierCache.getOrCreateRecordIdentifier(e) let i=t.get(r) @@ -4016,19 +3585,19 @@ let s=t.map((e=>{let t return t="data"in e?n.push(e):n.push({data:e}),i.recordIdentifierFor(t)})) const{identifier:a}=this.hasManyRelationship return n._join((()=>{this.graph.push({op:"replaceRelatedRecords",record:a,field:this.key,value:s})})),this.load()}_isLoaded(){return!!this.hasManyRelationship.state.hasReceivedData&&this.hasManyRelationship.localState.every((e=>!0===this.store._instanceCache.recordIsLoaded(e,!0)))}value(){const e=it.get(this.___identifier) -return this._isLoaded()?e.getManyArray(this.key):(this._ref,null)}async load(e){return it.get(this.___identifier).getHasMany(this.key,e)}reload(e){return it.get(this.___identifier).reloadHasMany(this.key,e)}},Ae=Te(Ee.prototype,"_ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Te(Ee.prototype,"identifiers",[Ce,a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Ee.prototype,"identifiers"),Ee.prototype),Ee) -class ke{constructor(e){this.record=e,this.store=n.storeFor(e),this.identifier=n.recordIdentifierFor(e),this.recordData=this.store._instanceCache.getRecordData(this.identifier),this._manyArrayCache=Object.create(null),this._relationshipPromisesCache=Object.create(null),this._relationshipProxyCache=Object.create(null),this.references=Object.create(null)}_syncArray(e){if(this.isDestroyed||this.isDestroying)return +return this._isLoaded()?e.getManyArray(this.key):(this._ref,null)}async load(e){return it.get(this.___identifier).getHasMany(this.key,e)}reload(e){return it.get(this.___identifier).reloadHasMany(this.key,e)}},Ae=Ce(Ee.prototype,"_ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ce(Ee.prototype,"identifiers",[Te,a.dependentKeyCompat],Object.getOwnPropertyDescriptor(Ee.prototype,"identifiers"),Ee.prototype),Ee) +class Pe{constructor(e){this.record=e,this.store=n.storeFor(e),this.identifier=n.recordIdentifierFor(e),this.recordData=this.store._instanceCache.getRecordData(this.identifier),this._manyArrayCache=Object.create(null),this._relationshipPromisesCache=Object.create(null),this._relationshipProxyCache=Object.create(null),this.references=Object.create(null)}_syncArray(e){if(this.isDestroyed||this.isDestroying)return const t=e[n.SOURCE],r=this.identifier let[i,s]=this._getCurrentState(r,e.key) -s.meta&&(e.meta=s.meta),s.links&&(e.links=s.links),t.length=0,n.fastPush(t,i)}updateCache(e){this.recordData.update(e)}_findBelongsTo(e,t,r,i){return this._findBelongsToByJsonApiResource(t,this.identifier,r,i).then((t=>Pe(this,e,r,t)),(t=>Pe(this,e,r,null,t)))}reloadBelongsTo(e,t){let r=this._relationshipPromisesCache[e] +s.meta&&(e.meta=s.meta),s.links&&(e.links=s.links),t.length=0,n.fastPush(t,i)}updateCache(e){this.recordData.update(e)}_findBelongsTo(e,t,r,i){return this._findBelongsToByJsonApiResource(t,this.identifier,r,i).then((t=>Se(this,e,r,t)),(t=>Se(this,e,r,null,t)))}reloadBelongsTo(e,t){let r=this._relationshipPromisesCache[e] if(r)return r -const i=(0,S.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e) +const i=(0,k.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e) let n=this.recordData.getRelationship(this.identifier,e) i.state.hasFailedLoadAttempt=!1,i.state.shouldForceReload=!0 let s=this._findBelongsTo(e,n,i,t) return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("belongsTo",e,{promise:s}):s}getBelongsTo(e,t){const{identifier:r,recordData:i}=this let n=i.getRelationship(this.identifier,e),s=n&&n.data?n.data:null -const a=this.store,o=(0,S.default(require("@ember-data/record-data/-private")).graphFor)(a).get(this.identifier,e) +const a=this.store,o=(0,k.default(require("@ember-data/record-data/-private")).graphFor)(a).get(this.identifier,e) let l=o.definition.isAsync,u={key:e,store:a,legacySupport:this,modelName:o.definition.type} if(l){if(o.state.hasFailedLoadAttempt)return this._relationshipProxyCache[e] let r=this._findBelongsTo(e,n,o,t) @@ -4039,16 +3608,16 @@ const i=this.store._instanceCache let n=[] if(r.data)for(let s=0;sPe(this,e,t,r)),(i=>Pe(this,e,t,r,i))),this._relationshipPromisesCache[e]=n,n):(r.isLoaded=!0,c.resolve(r))}}reloadHasMany(e,t){{let r=this._relationshipPromisesCache[e] +return a?(n=a.then((()=>Se(this,e,t,r)),(i=>Se(this,e,t,r,i))),this._relationshipPromisesCache[e]=n,n):(r.isLoaded=!0,c.resolve(r))}}reloadHasMany(e,t){{let r=this._relationshipPromisesCache[e] if(r)return r -const i=(0,S.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e),{definition:n,state:s}=i +const i=(0,k.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e),{definition:n,state:s}=i s.hasFailedLoadAttempt=!1,s.shouldForceReload=!0 let a=this.getManyArray(e,n),o=this.fetchAsyncHasMany(e,i,a,t) -return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("hasMany",e,{promise:o}):o}}getHasMany(e,t){{const r=(0,S.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e),{definition:i,state:n}=r +return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("hasMany",e,{promise:o}):o}}getHasMany(e,t){{const r=(0,k.default(require("@ember-data/record-data/-private")).graphFor)(this.store).get(this.identifier,e),{definition:i,state:n}=r let s=this.getManyArray(e,i) if(i.isAsync){if(n.hasFailedLoadAttempt)return this._relationshipProxyCache[e] let i=this.fetchAsyncHasMany(e,r,s,t) @@ -4057,10 +3626,9 @@ if("hasMany"===e){const{promise:e,content:n}=r return i?i._update(e,n):i=this._relationshipProxyCache[t]=new ve(e,n),i}if(i){const{promise:e,content:t}=r void 0!==t&&i.set("content",t),i.set("promise",e)}else i=re.create(r),this._relationshipProxyCache[t]=i return i}referenceFor(e,t){let r=this.references[t] -if(!r){const e=(0,S.default(require("@ember-data/record-data/-private")).graphFor)(this.store),i=e.get(this.identifier,t) +if(!r){const e=(0,k.default(require("@ember-data/record-data/-private")).graphFor)(this.store),i=e.get(this.identifier,t) let n=i.definition.kind -"belongsTo"===n?r=new Oe(this.store,e,this.identifier,i,t):"hasMany"===n&&(r=new Se(this.store,e,this.identifier,i,t)),this.references[t]=r}return r}_findHasManyByJsonApiResource(e,t,r,i){void 0===i&&(i={}) -{if(!e)return +"belongsTo"===n?r=new Oe(this.store,e,this.identifier,i,t):"hasMany"===n&&(r=new ke(this.store,e,this.identifier,i,t)),this.references[t]=r}return r}_findHasManyByJsonApiResource(e,t,r,i={}){{if(!e)return const{definition:n,state:s}=r,a=this.store.adapterFor(n.type),{isStale:o,hasDematerializedInverse:l,hasReceivedData:u,isEmpty:d,shouldForceReload:h}=s,p=Me(this.store,e) if(e.links&&e.links.related&&("function"==typeof a.findHasMany||void 0===e.data)&&(h||l||o||!p&&!d)){const r=this.store.getSchemaDefinitionService().relationshipsDefinitionFor({type:n.inverseType})[n.key] return function(e,t,r,i,n,s){const a=t._instanceCache.getRecord(r),o=t._instanceCache.createSnapshot(r,s) @@ -4076,7 +3644,7 @@ t[n]=r._fetchDataIfNeededForIdentifier(s,i)}return c.all(t)}if(u&&!d||m){const t let r=new Array(t.length) const n=this.store._fetchManager for(let e=0;e{e[t].destroy()})),e=this._relationshipProxyCache,this._relationshipProxyCache=Object.create(null),Object.keys(e).forEach((t=>{const r=e[t] -r.destroy&&r.destroy()})),e=this.references,this.references=Object.create(null),Object.keys(e).forEach((t=>{e[t].destroy()})),this.isDestroyed=!0}}function Pe(e,t,r,i,n){delete e._relationshipPromisesCache[t],r.state.shouldForceReload=!1 +r.destroy&&r.destroy()})),e=this.references,this.references=Object.create(null),Object.keys(e).forEach((t=>{e[t].destroy()})),this.isDestroyed=!0}}function Se(e,t,r,i,n){delete e._relationshipPromisesCache[t],r.state.shouldForceReload=!1 const s="hasMany"===r.definition.kind if(s&&i.notify(),n){r.state.hasFailedLoadAttempt=!0 let i=e._relationshipProxyCache[t] @@ -4105,7 +3673,7 @@ else if("hasMany"===i.kind){let n=it.get(e),s=n&&n._manyArrayCache[t],a=n&&n._re if(s&&a)return s&&(s.notify(),i.options&&!i.options.async&&void 0!==i.options.async||r.notifyPropertyChange(t))}}function De(e,t,r,i){v.cacheFor(i,r)!==e._instanceCache.getRecordData(t).getAttr(t,r)&&i.notifyPropertyChange(r)}var Ne,Fe,Ie,ze function Le(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Ue(e,t,r,i,n){var s={} -return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let Be=S.default(require("ember-cached-decorator-polyfill")).cached +return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let Be=k.default(require("ember-cached-decorator-polyfill")).cached const $e=/^\/?data\/(attributes|relationships)\/(.*)/,He=/^\/?data/ function qe(e){return e&&!0===e.isAdapterError&&"InvalidError"===e.code}let Ve=(Fe=Ue((Ne=class{constructor(){Le(this,"ref",Fe,this),this.rev=1,this.isDirty=!0,this.value=void 0,this.t=!1}notify(){this.isDirty=!0,b.addToTransaction(this),this.rev++}consume(e){this.isDirty=!1,this.value=e}}).prototype,"ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ne) const We=new WeakMap @@ -4150,15 +3718,14 @@ function tt(e,t,r,i,n){var s={} return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const{changeProperties:rt}=O.default,it=new Map function nt(e){const t=i.recordIdentifierFor(e) let r=it.get(t) -return r||(r=new ke(e),it.set(t,r),it.set(e,r)),r}function st(e,t,r,i){let n=i||[],s=t.relationships +return r||(r=new Pe(e),it.set(t,r),it.set(e,r)),r}function st(e,t,r,i){let n=i||[],s=t.relationships if(!s)return n let a=s.get(e.modelName),o=Array.isArray(a)?a.filter((e=>{let t=e.options return!t.inverse&&null!==t.inverse||r===t.inverse})):null return o&&n.push.apply(n,o),e.superclass&&st(e.superclass,t,r,n),n}function at(e,t,r){const i=new WeakMap let n=r.get return r.get=function(){let e=i.get(this) -return e||(e={hasComputed:!1,value:void 0},i.set(this,e)),e.hasComputed||(e.value=n.call(this),e.hasComputed=!0),e.value},r}let ot=(et=class extends R.default{constructor(){super(...arguments),this.___private_notifications=void 0,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"isReloading",Ze,this)}init(e){void 0===e&&(e={}) -const t=e._createProps,r=e._secretInit +return e||(e={hasComputed:!1,value:void 0},i.set(this,e)),e.hasComputed||(e.value=n.call(this),e.hasComputed=!0),e.value},r}let ot=(et=class extends R.default{constructor(...e){super(...e),this.___private_notifications=void 0,function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"isReloading",Ze,this)}init(e={}){const t=e._createProps,r=e._secretInit e._createProps=null,e._secretInit=null let i=this.store=r.store super.init(e) @@ -4214,19 +3781,19 @@ this.eachAttribute(((t,r)=>e.push(t))) let i=[{name:"Attributes",properties:e,expand:!0}] return this.eachRelationship(((e,n)=>{let s=t[n.kind] void 0===s&&(s=t[n.kind]=[],i.push({name:n.kind,properties:s,expand:!0})),s.push(e),r.push(e)})),i.push({name:"Flags",properties:["isLoaded","hasDirtyAttributes","isSaving","isDeleted","isError","isNew","isValid"]}),{propertyInfo:{includeOtherProperties:!0,groups:i,expensiveProperties:r}}} -const ut=k((function(e,t){let i=t,n=e +const ut=P((function(e,t){let i=t,n=e "string"==typeof e&&e.length||("object"==typeof e?(i=e,n=void 0):(i=t,n=e)),i&&"boolean"==typeof i.async||(i=i||{},"async"in i||(i.async=!0)),null!==i.inverse&&("string"!=typeof i.inverse||i.inverse.length) let s={type:lt(n),isRelationship:!0,options:i,kind:"belongsTo",name:"Belongs To",key:null} return r.computed({get(e){if(this.isDestroying||this.isDestroyed)return null return nt(this).getBelongsTo(e)},set(e,t){const r=nt(this) return this.store._join((()=>{r.setDirtyBelongsTo(e,t)})),r.getBelongsTo(e)}}).meta(s)})) -function ct(e){if(e)return y.singularize(s.dasherize(e))}const dt=k((function(e,t){"string"==typeof e&&e.length||"object"==typeof e&&(t=e,e=void 0),t&&"boolean"==typeof t.async||"async"in(t=t||{})||(t.async=!0),null!==t.inverse&&("string"!=typeof t.inverse||t.inverse.length) +function ct(e){if(e)return y.singularize(s.dasherize(e))}const dt=P((function(e,t){"string"==typeof e&&e.length||"object"==typeof e&&(t=e,e=void 0),t&&"boolean"==typeof t.async||"async"in(t=t||{})||(t.async=!0),null!==t.inverse&&("string"!=typeof t.inverse||t.inverse.length) let i={type:ct(e),options:t,isRelationship:!0,kind:"hasMany",name:"Has Many",key:null} return r.computed({get(e){return this.isDestroying||this.isDestroyed?p.A():nt(this).getHasMany(e)},set(e,t){const r=nt(this),i=r.getManyArray(e) return this.store._join((()=>{i.splice(0,i.length,...t)})),r.getHasMany(e)}}).meta(i)})) e.Errors=H,e.LEGACY_SUPPORT=it,e.ManyArray=Q,e.Model=ot,e.PromiseBelongsTo=re,e.PromiseManyArray=ve,e._modelForMixin=function(e,t){let r=_.getOwner(e),i=r.factoryFor(`mixin:${t}`),n=i&&i.class if(n){let e=ot.extend(n) -e.__isMixin=!0,e.__mixin=n,r.register("model:"+t,e)}return r.factoryFor(`model:${t}`)},e.attr=P,e.belongsTo=ut,e.diffArray=function(e,t){const r=e.length,i=t.length,n=Math.min(r,i) +e.__isMixin=!0,e.__mixin=n,r.register("model:"+t,e)}return r.factoryFor(`model:${t}`)},e.attr=S,e.belongsTo=ut,e.diffArray=function(e,t){const r=e.length,i=t.length,n=Math.min(r,i) let s=null for(let l=0;lu?f:u,g=f===u for(let v=0,b=0;v{const n=r[i] +l!==i.type&&e.registerPolymorphicType(i.type,l),t.state.hasReceivedData=!0,a.add(i),void 0===n?o.push(i):o.splice(n,0,i),E(e,i,t.definition.inverseKey,r,s)}function k(e,t,r){Object.keys(r).forEach((i=>{const n=r[i] n&&function(e,t,r){r.identifier=t.value,h(r,(i=>{const n=e.get(i,r.definition.inverseKey);(function(e,t,r){u(t)?function(e,t,r){t.remoteState===r.record&&(t.remoteState=r.value) t.localState===r.record&&(t.localState=r.record,f(e,t.identifier,t.definition.key))}(e,t,r):d(t)?function(e,t,r){if(t.remoteMembers.has(r.record)){t.remoteMembers.delete(r.record),t.remoteMembers.add(r.value) const e=t.remoteState.indexOf(r.record) t.remoteState.splice(e,1,r.value)}if(t.localMembers.has(r.record)){t.localMembers.delete(r.record),t.localMembers.add(r.value) const i=t.localState.indexOf(r.record) t.localState.splice(i,1,r.value),f(e,t.identifier,t.definition.key)}}(e,t,r):function(e,t,r){t.remoteMembers.has(r.record)&&(t.remoteMembers.delete(r.record),t.remoteMembers.add(r.value)) -t.localMembers.has(r.record)&&(t.localMembers.delete(r.record),t.localMembers.add(r.value))}(0,t,r)})(e,n,t)}))}(e,t,n)}))}function k(e,t,r,i,n){const{localMembers:s,localState:a}=t +t.localMembers.has(r.record)&&(t.localMembers.delete(r.record),t.localMembers.add(r.value))}(0,t,r)})(e,n,t)}))}(e,t,n)}))}function P(e,t,r,i,n){const{localMembers:s,localState:a}=t if(!s.has(i))return s.delete(i) let o=a.indexOf(i) -a.splice(o,1),A(e,i,t.definition.inverseKey,r,n)}function P(e,t,r){void 0===r&&(r=!1) -const i=e.get(t.record,t.field) +a.splice(o,1),A(e,i,t.definition.inverseKey,r,n)}function S(e,t,r=!1){const i=e.get(t.record,t.field) r&&e._addToTransaction(i) const{definition:n,state:s}=i,a=r?"remoteState":"localState",o=i[a] if(t.value!==o)if(o&&A(e,o,n.inverseKey,t.record,r),i[a]=t.value,s.hasReceivedData=!0,s.isEmpty=null===t.value,s.isStale=!1,s.hasFailedLoadAttempt=!1,t.value&&(n.type!==t.value.type&&e.registerPolymorphicType(n.type,t.value.type),E(e,t.value,n.inverseKey,t.record,r)),r){const{localState:t,remoteState:r}=i @@ -4349,8 +3915,8 @@ u(s)&&s.localState&&i!==s.localState||function(e,t,r,i){if(u(t)){const r=t.local t.definition.inverseIsImplicit||t.definition.inverseIsAsync||(t.state.isStale=!0,D(t),t.definition.isAsync||r||f(e,t.identifier,t.definition.key))}(this,i,t),c(i)&&(r[e]=void 0))}))}remove(e){this._removing=e,this.unload(e),this.identifiers.delete(e),this._removing=null}push(e){if("deleteRecord"===e.op)this._pushedUpdates.deletions.push(e) else if("replaceRelatedRecord"===e.op)this._pushedUpdates.belongsTo.push(e) else{const t=this.get(e.record,e.field) -this._pushedUpdates[t.definition.kind].push(e)}this._willSyncRemote||(this._willSyncRemote=!0,s(this.store)._schedule("coalesce",(()=>this._flushRemoteQueue())))}update(e,t){switch(void 0===t&&(t=!1),e.op){case"mergeIdentifiers":{const t=this.identifiers.get(e.record) -t&&S(this,e,t) +this._pushedUpdates[t.definition.kind].push(e)}this._willSyncRemote||(this._willSyncRemote=!0,s(this.store)._schedule("coalesce",(()=>this._flushRemoteQueue())))}update(e,t=!1){switch(e.op){case"mergeIdentifiers":{const t=this.identifiers.get(e.record) +t&&k(this,e,t) break}case"updateRelationship":(function(e,t){const r=e.get(t.record,t.field),{definition:i,state:n,identifier:s}=r,{isCollection:a}=i,o=t.value let l=!1,u=!1 if(o.meta&&(r.meta=o.meta),void 0!==o.data)if(l=!0,a){null===o.data&&(o.data=[]) @@ -4365,16 +3931,16 @@ break case"deleteRecord":{const t=e.record,r=this.identifiers.get(t) r&&(Object.keys(r).forEach((e=>{const t=r[e] t&&(r[e]=void 0,N(this,t))})),this.identifiers.delete(t)) -break}case"replaceRelatedRecord":P(this,e,t) +break}case"replaceRelatedRecord":S(this,e,t) break case"addToRelatedRecords":(function(e,t,r){const{record:i,value:n,index:s}=t,a=e.get(i,t.field) -if(Array.isArray(n))for(let o=0;othis._flushLocalQueue())))}_flushRemoteQueue(){if(!this._willSyncRemote)return @@ -4416,8 +3982,7 @@ let s=0,a=0,o=0 return{iterator:()=>({next:()=>{const e=(()=>{for(;se.record&&!e.record.isNew)),o=new Array(a.length) for(let e=0;e{if(void 0===t[e])return @@ -4613,8 +4176,7 @@ r?r=r[2]:-1!==t.source.pointer.search(l)&&(r="base"),r&&(e[r]=e[r]||[],e[r].push r!==t&&void 0!==e[r]&&(e[t]=e[r],delete e[r])})),t.eachRelationship((t=>{let r=this.keyForRelationship(t,"deserialize") r!==t&&void 0!==e[r]&&(e[t]=e[r],delete e[r])})),e}return r},keyForAttribute:(e,t)=>e,keyForRelationship:(e,t,r)=>e,keyForLink:(e,t)=>e,transformFor(e,r){let i=(0,t.getOwner)(this).lookup("transform:"+e) return i}}) -var c=u -e.default=c})),define("@ember-data/serializer/rest",["exports","@ember/debug","@ember/string","@ember/utils","ember-inflector","@ember-data/serializer/json","@ember-data/store/-private","@ember-data/serializer/-private"],(function(e,t,r,i,n,s,a,o){"use strict" +e.default=u})),define("@ember-data/serializer/rest",["exports","@ember/debug","@ember/string","@ember/utils","ember-inflector","@ember-data/serializer/json","@ember-data/store/-private","@ember-data/serializer/-private"],(function(e,t,r,i,n,s,a,o){"use strict" function l(e){return Array.isArray(e)?e:[e]}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EmbeddedRecordsMixin",{enumerable:!0,get:function(){return o.EmbeddedRecordsMixin}}),e.default=void 0 const u=s.default.extend({keyForPolymorphicType(e,t,r){return`${this.keyForRelationship(e)}Type`},_normalizeArray(e,t,r,i){let n={data:[],included:[]},s=e.modelFor(t),a=e.serializerFor(t) return l(r).forEach((t=>{let{data:r,included:o}=this._normalizePolymorphicRecord(e,t,i,s,a) @@ -4639,41 +4201,39 @@ if(e.getSchemaDefinitionService().doesTypeExist(n)){var s=e.modelFor(n),a=e.seri l(t[i]).forEach((e=>{let{data:t,included:n}=a.normalize(s,e,i) r.data.push(t),n&&(r.included=r.included.concat(n))}))}}e.push(r)},modelNameFromPayloadKey:e=>(0,n.singularize)((0,r.dasherize)(e)),serialize(e,t){return this._super(...arguments)},serializeIntoHash(e,t,r,i){e[this.payloadKeyFromModelName(t.modelName)]=this.serialize(r,i)},payloadKeyFromModelName:e=>(0,r.camelize)(e),serializePolymorphicType(e,t,n){let s=n.key,a=this.keyForPolymorphicType(s,n.type,"serialize"),o=e.belongsTo(s);(0,i.isNone)(o)?t[a]=null:t[a]=(0,r.camelize)(o.modelName)},extractPolymorphicRelationship(e,t,r){let{key:i,resourceHash:n,relationshipMeta:s}=r,a=s.options.polymorphic,o=this.keyForPolymorphicType(i,e,"deserialize") if(a&&void 0!==n[o]&&"object"!=typeof t){return{id:t,type:this.modelNameFromPayloadKey(n[o])}}return this._super(...arguments)}}) -var c=u -e.default=c})),define("@ember-data/serializer/transform",["exports","@ember-data/serializer/-private"],(function(e,t){"use strict" +e.default=u})),define("@ember-data/serializer/transform",["exports","@ember-data/serializer/-private"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var r=t.Transform -e.default=r})),define("@ember-data/store/-private",["exports","@ember/debug","@ember/string","@embroider/macros/es-compat","@ember/application","@ember/runloop","@ember/service","@ember/test","rsvp","@glimmer/tracking","@ember-data/tracking/-private","@ember/-internals/metal","@ember/object","@ember/object/compat","@ember/utils","@glimmer/validator","ember","@ember/object/computed","@ember/array/proxy","@ember/object/promise-proxy-mixin","@ember/object/proxy"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_){"use strict" -const w=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},R=w(i),O=w(a),E=w(l),A=w(g),T=w(b),C=w(y),S=w(_) -function k(e){return r.dasherize(e)}function P(e){return null==e||""===e?null:"string"==typeof e?e:"symbol"==typeof e?e.toString():""+e}function j(e){let t=null +e.default=t.Transform})),define("@ember-data/store/-private",["exports","@ember/debug","@ember/string","@ember/application","@ember/runloop","@ember/service","@ember/test","rsvp","@glimmer/tracking","@embroider/macros/es-compat2","@ember-data/tracking/-private","@ember/-internals/metal","@ember/object","@ember/object/compat","@ember/utils","@glimmer/validator","ember","@ember/object/computed","@ember/array/proxy","@ember/object/promise-proxy-mixin","@ember/object/proxy"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m,g,v,b,y,_){"use strict" +const w=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},R=w(s),O=w(o),E=w(u),A=w(g),C=w(b),T=w(y),k=w(_) +function P(e){return r.dasherize(e)}function S(e){return null==e||""===e?null:"string"==typeof e?e:"symbol"==typeof e?e.toString():""+e}function j(e){let t=null if("string"==typeof e?t=e.length>0?e:null:"number"!=typeof e||isNaN(e)||(t=""+e),null===t)throw new Error(`Expected id to be a string or number, received ${String(e)}`) return t}function M(e){return e&&"string"==typeof e}const x=new Set function D(e){return x.has(e)}const N="undefined"!=typeof FastBoot?FastBoot.require("crypto"):window.crypto let F,I,z,L function U(e,t){if(M(e.lid))return e.lid if(void 0!==e.id){let{type:t,id:r}=e -if(M(P(r)))return`@lid:${k(t)}-${r}`}return N.randomUUID()}function B(){}class ${constructor(){this._cache={lids:new Map,types:Object.create(null)},this._generate=I||U,this._update=L||B,this._forget=F||B,this._reset=z||B,this._merge=B,this._isDefaultConfig=!I}__configureMerge(e){this._merge=e||B}_getRecordIdentifier(e,t){if(void 0===t&&(t=!1),D(e))return e -let r=P(e.lid),i=null!==r?this._cache.lids.get(r):void 0 +if(M(S(r)))return`@lid:${P(t)}-${r}`}return N.randomUUID()}function B(...e){}class ${constructor(){this._cache={lids:new Map,types:Object.create(null)},this._generate=I||U,this._update=L||B,this._forget=F||B,this._reset=z||B,this._merge=B,this._isDefaultConfig=!I}__configureMerge(e){this._merge=e||B}_getRecordIdentifier(e,t=!1){if(D(e))return e +let r=S(e.lid),i=null!==r?this._cache.lids.get(r):void 0 if(void 0!==i)return i if(!(!1!==t||e.type&&e.id))return -let n=e.type&&k(e.type),s=P(e.id),a=H(this._cache.types,n) +let n=e.type&&P(e.type),s=S(e.id),a=H(this._cache.types,n) if(null!==r&&(i=a.lid.get(r)),void 0===i&&null!==s&&(i=a.id.get(s)),void 0===i){let o=this._generate(e,"record") if(null!==r&&o!==r)throw new Error("You should not change the of a RecordIdentifier") -null!==r||this._isDefaultConfig||(i=a.lid.get(o)),!0===t&&(void 0===i&&(i=q(s,n,o),this._cache.lids.set(i.lid,i),a.lid.set(i.lid,i)),null!==i.id&&a.id.set(i.id,i))}return i}peekRecordIdentifier(e){return this._getRecordIdentifier(e,!1)}getOrCreateRecordIdentifier(e){return this._getRecordIdentifier(e,!0)}createIdentifierForNewRecord(e){let t=this._generate(e,"record"),r=q(e.id||null,e.type,t),i=H(this._cache.types,e.type) -return this._cache.lids.set(r.lid,r),i.lid.set(t,r),e.id&&i.id.set(e.id,r),r}updateRecordIdentifier(e,t){let r=this.getOrCreateRecordIdentifier(e),i=void 0!==t.id?P(t.id):null,n=function(e,t,r,i,n){const{id:s,type:a,lid:o}=t +null!==r||this._isDefaultConfig||(i=a.lid.get(o)),!0===t&&(void 0===i&&(i=q(s,n,o,"record",!1),this._cache.lids.set(i.lid,i),a.lid.set(i.lid,i)),null!==i.id&&a.id.set(i.id,i))}return i}peekRecordIdentifier(e){return this._getRecordIdentifier(e,!1)}getOrCreateRecordIdentifier(e){return this._getRecordIdentifier(e,!0)}createIdentifierForNewRecord(e){let t=this._generate(e,"record"),r=q(e.id||null,e.type,t,"record",!0),i=H(this._cache.types,e.type) +return this._cache.lids.set(r.lid,r),i.lid.set(t,r),e.id&&i.id.set(e.id,r),r}updateRecordIdentifier(e,t){let r=this.getOrCreateRecordIdentifier(e),i=void 0!==t.id?S(t.id):null,n=function(e,t,r,i,n){const{id:s,type:a,lid:o}=t if(null!==s&&s!==i&&null!==i){let r=H(e,t.type).id.get(i) -return void 0!==r&&r}{let t=r.type&&k(r.type) +return void 0!==r&&r}{let t=r.type&&P(r.type) if(null!==s&&s===i&&t===a&&r.lid&&r.lid!==o){let e=n.get(r.lid) return void 0!==e&&e}if(null!==s&&s===i&&t&&t!==a&&r.lid&&r.lid===o){let r=H(e,t).id.get(s) return void 0!==r&&r}}return!1}(this._cache.types,r,t,i,this._cache.lids) -if(!n&&t.type&&r.type!==k(t.type)){let e={...t} +if(!n&&t.type&&r.type!==P(t.type)){let e={...t} delete e.lid,n=this.getOrCreateRecordIdentifier(e)}if(n){let e=H(this._cache.types,r.type),s=r r=this._mergeRecordIdentifiers(e,s,n,t,i)}let s=r.id -if(function(e,t,r){r(e,t,"record"),void 0!==t.id&&(e.id=P(t.id))}(r,t,this._update),i=r.id,s!==i&&null!==i){let e=H(this._cache.types,r.type) +if(function(e,t,r){r(e,t,"record"),void 0!==t.id&&(e.id=S(t.id))}(r,t,this._update),i=r.id,s!==i&&null!==i){let e=H(this._cache.types,r.type) e.id.set(i,r),null!==s&&e.id.delete(s)}return r}_mergeRecordIdentifiers(e,t,r,i,n){let s=this._merge(t,r,i),a=s===t?r:t return this.forgetRecordIdentifier(a),e.id.set(n,s),H(this._cache.types,r.type).id.set(n,s),i.lid=s.lid,s}forgetRecordIdentifier(e){let t=this.getOrCreateRecordIdentifier(e),r=H(this._cache.types,t.type) null!==t.id&&r.id.delete(t.id),this._cache.lids.delete(t.lid),r.lid.delete(t.lid),x.delete(e),this._forget(t,"record")}destroy(){this._reset()}}function H(e,t){let r=e[t] -return void 0===r&&(r={lid:new Map,id:new Map},e[t]=r),r}function q(e,t,r,i,n){let s={lid:r,id:e,type:t} +return void 0===r&&(r={lid:new Map,id:new Map},e[t]=r),r}function q(e,t,r,i,n=!1){let s={lid:r,id:e,type:t} return x.add(s),s}const V=new Map,W=new Map function G(e){let t=W.get(e) if(t){W.delete(e) @@ -4685,9 +4245,9 @@ return r.set(i,t),W.set(i,e),i}unsubscribe(e){this.isDestroyed||G(e)}notify(e,t, let i=V.get(e) return!(!i||!i.size)&&(i.forEach((i=>{i(e,t,r)})),!0)}destroy(){this.isDestroyed=!0,W.clear(),V.clear()}}var K,Q let J=(K=class{constructor(e,t){var r,i,n,s -this.___token=void 0,this.___identifier=void 0,r=this,i="_ref",s=this,(n=Q)&&Object.defineProperty(r,i,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(s):void 0}),this.store=e,this.___identifier=t,this.___token=e._notificationManager.subscribe(t,((e,t,r)=>{("identity"===t||"attributes"===t&&"id"===r)&&this._ref++}))}destroy(){G(this.___token)}get type(){return this.identifier().type}id(){return this._ref,this.___identifier.id}identifier(){return this.___identifier}remoteType(){return"identity"}push(e){return l.resolve(e).then((e=>this.store.push(e)))}value(){return this.store.peekRecord(this.___identifier)}load(){const e=this.id() +this.___token=void 0,this.___identifier=void 0,r=this,i="_ref",s=this,(n=Q)&&Object.defineProperty(r,i,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(s):void 0}),this.store=e,this.___identifier=t,this.___token=e._notificationManager.subscribe(t,((e,t,r)=>{("identity"===t||"attributes"===t&&"id"===r)&&this._ref++}))}destroy(){G(this.___token)}get type(){return this.identifier().type}id(){return this._ref,this.___identifier.id}identifier(){return this.___identifier}remoteType(){return"identity"}push(e){return o.resolve(e).then((e=>this.store.push(e)))}value(){return this.store.peekRecord(this.___identifier)}load(){const e=this.id() if(null!==e)return this.store.findRecord(this.type,e)}reload(){const e=this.id() -if(null!==e)return this.store.findRecord(this.type,e,{reload:!0})}},X=K.prototype,Z="_ref",ee=[u.tracked],te={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}},ie={},Object.keys(te).forEach((function(e){ie[e]=te[e]})),ie.enumerable=!!ie.enumerable,ie.configurable=!!ie.configurable,("value"in ie||ie.initializer)&&(ie.writable=!0),ie=ee.slice().reverse().reduce((function(e,t){return t(X,Z,e)||e}),ie),re&&void 0!==ie.initializer&&(ie.value=ie.initializer?ie.initializer.call(re):void 0,ie.initializer=void 0),void 0===ie.initializer&&(Object.defineProperty(X,Z,ie),ie=null),Q=ie,K) +if(null!==e)return this.store.findRecord(this.type,e,{reload:!0})}},X=K.prototype,Z="_ref",ee=[l.tracked],te={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}},ie={},Object.keys(te).forEach((function(e){ie[e]=te[e]})),ie.enumerable=!!ie.enumerable,ie.configurable=!!ie.configurable,("value"in ie||ie.initializer)&&(ie.writable=!0),ie=ee.slice().reverse().reduce((function(e,t){return t(X,Z,e)||e}),ie),re&&void 0!==ie.initializer&&(ie.value=ie.initializer?ie.initializer.call(re):void 0,ie.initializer=void 0),void 0===ie.initializer&&(Object.defineProperty(X,Z,ie),ie=null),Q=ie,K) var X,Z,ee,te,re,ie function ne(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance") return e}var se=0 @@ -4715,8 +4275,7 @@ return ne(this,ce)[ce](t)?t.changedAttributes():t.changedAttrs(e)}hasChangedAttr return ne(this,ce)[ce](e)?e.hasChangedAttributes():e.hasChangedAttrs(ne(this,ue)[ue])}hasChangedAttrs(e){const t=ne(this,le)[le] return ne(this,ce)[ce](t)?t.hasChangedAttributes():t.hasChangedAttrs(e)}rollbackAttributes(){const e=ne(this,le)[le] return ne(this,ce)[ce](e)?e.rollbackAttributes():e.rollbackAttrs(ne(this,ue)[ue])}rollbackAttrs(e){const t=ne(this,le)[le] -return ne(this,ce)[ce](t)?t.rollbackAttributes():t.rollbackAttrs(e)}getRelationship(e,t,r){void 0===r&&(r=!1) -let i=ne(this,le)[le] +return ne(this,ce)[ce](t)?t.rollbackAttributes():t.rollbackAttrs(e)}getRelationship(e,t,r=!1){let i=ne(this,le)[le] if(ne(this,ce)[ce](i)){return!r?i.getBelongsTo(t):i.getHasMany(t)}return i.getRelationship(e,t)}getBelongsTo(e){let t=ne(this,le)[le] if(ne(this,ce)[ce](t))return t.getBelongsTo(e) {let r=ne(this,ue)[ue] @@ -4731,7 +4290,7 @@ ne(this,ce)[ce](r)?r.setDirtyHasMany(e,t):r.update({op:"replaceRelatedRecords",r const r=ne(this,le)[le] ne(this,ce)[ce](r)?r.setIsDeleted(t):r.setIsDeleted(e,t)}getErrors(e){return ne(this,le)[le].getErrors(e||ne(this,ue)[ue])}isEmpty(e){const t=ne(this,le)[le] return ne(this,ce)[ce](t)?t.isEmpty?.(e||ne(this,ue)[ue])||!1:t.isEmpty(e||ne(this,ue)[ue])}isNew(e){return ne(this,le)[le].isNew(e||ne(this,ue)[ue])}isDeleted(e){return ne(this,le)[le].isDeleted(e||ne(this,ue)[ue])}isDeletionCommitted(e){return ne(this,le)[le].isDeletionCommitted(e||ne(this,ue)[ue])}}function he(e){return(e.version||"1")!==this.version}function pe(e,t,r){if("object"==typeof e&&null!==e){let t=e -return D(t)||"id"in t&&(t.id=P(t.id)),t}{const i=P(t) +return D(t)||"id"in t&&(t.id=S(t.id)),t}{const i=S(t) if(!M(i)){if(M(r))return{lid:r} throw new Error("Expected either id or lid to be a valid string")}return M(r)?{type:e,id:i,lid:r}:{type:e,id:i}}}const fe=class{constructor(e){this._store=e,this._willNotify=!1,this._pendingNotifies=new Map}get identifierCache(){return this._store.identifierCache}_scheduleNotification(e,t){let r=this._pendingNotifies.get(e) r||(r=new Set,this._pendingNotifies.set(e,r)),r.add(t),!0!==this._willNotify&&(this._willNotify=!0,this._store._cbs?this._store._schedule("notify",(()=>this._flushNotifications())):this._flushNotifications())}_flushNotifications(){if(!1===this._willNotify)return @@ -4746,7 +4305,7 @@ i=D(e)?e:t||r?this.identifierCache.getOrCreateRecordIdentifier(pe(e,t,r)):this.i const n=this._store._instanceCache.getRecordData(i) return t||r||(n.clientDidCreate(i),this._store.recordArrayManager.identifierAdded(i)),n}setRecordId(e,t,r){let i if(D(e))i=e -else{const t=pe(k(e),null,P(r)) +else{const t=pe(P(e),null,S(r)) i=this.identifierCache.peekRecordIdentifier(t)}this._store._instanceCache.setRecordId(i,t)}isRecordInUse(e,t,r){const i=pe(e,t,r),n=this.identifierCache.peekRecordIdentifier(i),s=n&&this._store._instanceCache.peek({identifier:n,bucket:"record"}) return!!s&&!(s.isDestroyed||s.isDestroying)}hasRecord(e){return Boolean(this._store._instanceCache.peek({identifier:e,bucket:"record"}))}disconnectRecord(e,t,r){let i if("string"==typeof e){let n=pe(e,t,r) @@ -4767,14 +4326,14 @@ e[i]=this._changedAttributes[i].slice()}return e}belongsTo(e,t){let r,i=!(!t||!t if(!0===i&&e in this._belongsToIds)return this._belongsToIds[e] if(!1===i&&e in this._belongsToRelationships)return this._belongsToRelationships[e] n.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName})[e] -const s=R.default(require("@ember-data/record-data/-private")).graphFor,{identifier:a}=this +const s=E.default(require("@ember-data/record-data/-private")).graphFor,{identifier:a}=this let o=s(this._store).get(a,e).getData(),l=o&&o.data,u=l?n.identifierCache.getOrCreateRecordIdentifier(l):null return o&&void 0!==o.data&&(r=u&&!n._instanceCache.getRecordData(u).isDeleted(u)?i?u.id:n._instanceCache.createSnapshot(u):null),i?this._belongsToIds[e]=r:this._belongsToRelationships[e]=r,r}hasMany(e,t){let r,i=!(!t||!t.ids),n=this._hasManyIds[e],s=this._hasManyRelationships[e] if(!0===i&&e in this._hasManyIds)return n if(!1===i&&e in this._hasManyRelationships)return s let a=this._store a.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName})[e] -const o=R.default(require("@ember-data/record-data/-private")).graphFor,{identifier:l}=this +const o=E.default(require("@ember-data/record-data/-private")).graphFor,{identifier:l}=this let u=o(this._store).get(l,e).getData() return u.data&&(r=[],u.data.forEach((e=>{let t=a.identifierCache.getOrCreateRecordIdentifier(e) a._instanceCache.getRecordData(t).isDeleted(t)||(i?r.push(t.id):r.push(a._instanceCache.createSnapshot(t)))}))),i?this._hasManyIds[e]=r:this._hasManyRelationships[e]=r,r}eachAttribute(e,t){let r=this._store.getSchemaDefinitionService().attributesDefinitionFor(this.identifier) @@ -4783,83 +4342,80 @@ Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}serialize(e){return this._store. const ge=new Map function ve(e,t){ge.set(e,t)}function be(e){ge.delete(e)}function ye(e){return ge.has(e)?ge.get(e):null}let _e {let e -_e=t=>{let r=R.default(require("@ember-data/record-data/-private")).peekGraph +_e=t=>{let r=E.default(require("@ember-data/record-data/-private")).peekGraph return e=e||r,e(t)}}const we=new Map function Re(e){return we.get(e)}function Oe(e){return we.get(e)}function Ee(e,t){we.set(e,t)}const Ae=new Map -class Te{constructor(e){this.__instances={record:new Map,recordData:new Map,reference:new WeakMap},this.store=e,this._storeWrapper=new fe(this.store),this.__recordDataFor=e=>{const t=this.store.identifierCache.getOrCreateRecordIdentifier(e) +class Ce{constructor(e){this.__instances={record:new Map,recordData:new Map,reference:new WeakMap},this.store=e,this._storeWrapper=new fe(this.store),this.__recordDataFor=e=>{const t=this.store.identifierCache.getOrCreateRecordIdentifier(e) return this.getRecordData(t)},e.identifierCache.__configureMerge(((e,t,r)=>{let i=e e.id!==t.id?i="id"in r&&e.id===r.id?e:t:e.type!==t.type&&(i="type"in r&&e.type===r.type?e:t) let n=e===i?t:e,s=this.__instances.record.has(i),a=this.__instances.record.has(n),o=this.__instances.recordData.get(i)||null,l=this.__instances.recordData.get(n)||null if(s&&a&&"id"in r)throw new Error(`Failed to update the 'id' for the RecordIdentifier '${e.type}:${String(e.id)} (${e.lid})' to '${String(r.id)}', because that id is already in use by '${t.type}:${String(t.id)} (${t.lid})'`) let u=o||l -return u?u.sync({op:"mergeIdentifiers",record:n,value:i}):this.store.__private_singleton_recordData?.sync({op:"mergeIdentifiers",record:n,value:i}),null===l||this.unloadRecord(n),i}))}peek(e){let{identifier:t,bucket:r}=e -return this.__instances[r]?.get(t)}getRecord(e,t){let r=this.__instances.record.get(e) +return u?u.sync({op:"mergeIdentifiers",record:n,value:i}):this.store.__private_singleton_recordData?.sync({op:"mergeIdentifiers",record:n,value:i}),null===l||this.unloadRecord(n),i}))}peek({identifier:e,bucket:t}){return this.__instances[t]?.get(e)}getRecord(e,t){let r=this.__instances.record.get(e) if(!r){const i=this.getRecordData(e) r=this.store.instantiateRecord(e,t||{},this.__recordDataFor,this.store._notificationManager),Ee(r,e),ve(r,i),Ae.set(r,this.store),this.__instances.record.set(e,r)}return r}getRecordData(e){let t=this.__instances.recordData.get(e) if(!t&&this.store.createRecordDataFor.length>2){let r=this.store.createRecordDataFor(e.type,e.id,e.lid,this._storeWrapper) t=new de(this.store,r,e)}if(!t){let r=this.store.createRecordDataFor(e,this._storeWrapper) t=new de(this.store,r,e),ve(e,t),this.__instances.recordData.set(e,t)}return t}getReference(e){let t=this.__instances.reference,r=t.get(e) -return r||(r=new J(this.store,e),t.set(e,r)),r}recordIsLoaded(e,t){void 0===t&&(t=!1) -const r=this.__instances.recordData.get(e) +return r||(r=new J(this.store,e),t.set(e,r)),r}recordIsLoaded(e,t=!1){const r=this.__instances.recordData.get(e) if(!r)return!1 const i=r.isNew(e),n=r.isEmpty(e) -return i?!r.isDeleted(e):(!t||!r.isDeletionCommitted(e))&&!n}createSnapshot(e,t){return void 0===t&&(t={}),new me(t,e,this.store)}disconnect(e){this.__instances.record.get(e) +return i?!r.isDeleted(e):(!t||!r.isDeletionCommitted(e))&&!n}createSnapshot(e,t={}){return new me(t,e,this.store)}disconnect(e){this.__instances.record.get(e) {let t=_e(this.store) t&&t.remove(e)}this.store.identifierCache.forgetRecordIdentifier(e)}unloadRecord(e){this.store._join((()=>{const t=this.__instances.record.get(e),r=this.__instances.recordData.get(e) t&&(this.store.teardownRecord(t),this.__instances.record.delete(e),Ae.delete(t),we.delete(t),be(t)),r?(r.unloadRecord(e),this.__instances.recordData.delete(e),be(e)):this.disconnect(e),this.store._fetchManager.clearEntries(e),this.store.recordArrayManager.identifierRemoved(e)}))}clear(e){const t=this.store.identifierCache._cache.types if(void 0===e)this.__instances.recordData.forEach(((e,t)=>{this.unloadRecord(t)})) else{let r=t[e]?.lid const i=this.__instances.recordData -r&&r.forEach((e=>{i.has(e)&&this.unloadRecord(e)}))}}_fetchDataIfNeededForIdentifier(e,t){void 0===t&&(t={}) -const r=Se(this,e),i=ke(this,e) +r&&r.forEach((e=>{i.has(e)&&this.unloadRecord(e)}))}}_fetchDataIfNeededForIdentifier(e,t={}){const r=ke(this,e),i=Pe(this,e) let n return t.preload&&this.store._join((()=>{(function(e,t,r){let i={} const n=e.getSchemaDefinitionService().relationshipsDefinitionFor(t) Object.keys(r).forEach((e=>{let t=r[e],s=n[e] s?(i.relationships||(i.relationships={}),i.relationships[e]=function(e,t){const r=e.type -if("hasMany"===e.kind)return{data:t.map((e=>Ce(e,r)))} -return{data:t?Ce(t,r):null}}(s,t)):(i.attributes||(i.attributes={}),i.attributes[e]=t)})),e._instanceCache.getRecordData(t).pushData(t,i)})(this.store,e,t.preload)})),n=r?this.store._fetchManager.scheduleFetch(e,t):i?this.store._fetchManager.getPendingFetch(e,t):l.resolve(e),n}setRecordId(e,t){const{type:r,lid:i}=e +if("hasMany"===e.kind)return{data:t.map((e=>Te(e,r)))} +return{data:t?Te(t,r):null}}(s,t)):(i.attributes||(i.attributes={}),i.attributes[e]=t)})),e._instanceCache.getRecordData(t).pushData(t,i)})(this.store,e,t.preload)})),n=r?this.store._fetchManager.scheduleFetch(e,t):i?this.store._fetchManager.getPendingFetch(e,t):o.resolve(e),n}setRecordId(e,t){const{type:r,lid:i}=e null!==e.id&&null===t||(this.store.identifierCache.peekRecordIdentifier({type:r,id:t}),null===e.id&&this.store.identifierCache.updateRecordIdentifier(e,{type:r,id:t}),this.store._notificationManager.notify(e,"identity"))}loadData(e){e.type -const t=pe(k(e.type),j(e.id),P(e.lid)) +const t=pe(P(e.type),j(e.id),S(e.lid)) let r=this.store.identifierCache.peekRecordIdentifier(t),i=!1 -if(r){const t=ke(this,r)||!this.recordIsLoaded(r) -i=!Se(this,r)&&!t,(i||t)&&(r=this.store.identifierCache.updateRecordIdentifier(r,e))}else r=this.store.identifierCache.getOrCreateRecordIdentifier(e) +if(r){const t=Pe(this,r)||!this.recordIsLoaded(r) +i=!ke(this,r)&&!t,(i||t)&&(r=this.store.identifierCache.updateRecordIdentifier(r,e))}else r=this.store.identifierCache.getOrCreateRecordIdentifier(e) const n=this.getRecordData(r) n.isNew(r)&&this.store._notificationManager.notify(r,"identity") const s=this.__instances.record.has(r) -return n.pushData(r,e,s),i||this.store.recordArrayManager.identifierAdded(r),r}}function Ce(e,t){return"string"==typeof e||"number"==typeof e?{type:t,id:e}:Oe(e)}function Se(e,t){const r=e.__instances.recordData.get(t) +return n.pushData(r,e,s),i||this.store.recordArrayManager.identifierAdded(r),r}}function Te(e,t){return"string"==typeof e||"number"==typeof e?{type:t,id:e}:Oe(e)}function ke(e,t){const r=e.__instances.recordData.get(t) if(!r)return!0 const i=r.isNew(t),n=r.isDeleted(t),s=r.isEmpty(t) -return(!i||n)&&s}function ke(e,t){const r=e.store.getRequestStateService() -return!e.recordIsLoaded(t)&&r.getPendingRequestsForRecord(t).some((e=>"query"===e.type))}let Pe +return(!i||n)&&s}function Pe(e,t){const r=e.store.getRequestStateService() +return!e.recordIsLoaded(t)&&r.getPendingRequestsForRecord(t).some((e=>"query"===e.type))}let Se {let e -Pe=function(){return e||(e=R.default(require("@ember-data/model/-private"))._modelForMixin),e(...arguments)}}class je{constructor(e){this.store=e,this._relationshipsDefCache=Object.create(null),this._attributesDefCache=Object.create(null)}attributesDefinitionFor(e){let t,r +Se=function(){return e||(e=E.default(require("@ember-data/model/-private"))._modelForMixin),e(...arguments)}}class je{constructor(e){this.store=e,this._relationshipsDefCache=Object.create(null),this._attributesDefCache=Object.create(null)}attributesDefinitionFor(e){let t,r if(t="string"==typeof e?e:e.type,r=this._attributesDefCache[t],void 0===r){let e=this.store.modelFor(t).attributes r=Object.create(null),e.forEach(((e,t)=>r[t]=e)),this._attributesDefCache[t]=r}return r}relationshipsDefinitionFor(e){let t,r -if(t="string"==typeof e?e:e.type,r=this._relationshipsDefCache[t],void 0===r){r=this.store.modelFor(t).relationshipsObject||null,this._relationshipsDefCache[t]=r}return r}doesTypeExist(e){let t=k(e) -return null!==Me(this.store,this.store._modelFactoryCache,t)}}function Me(e,t,r){let i=t[r] -if(!i){if(i=n.getOwner(e).factoryFor(`model:${r}`),i||(i=Pe(e,r)),!i)return null -let s=i.class -if(s.isModel){s.modelName&&Object.prototype.hasOwnProperty.call(s,"modelName")||Object.defineProperty(s,"modelName",{value:r})}t[r]=i}return i}const xe=new WeakMap +if(t="string"==typeof e?e:e.type,r=this._relationshipsDefCache[t],void 0===r){r=this.store.modelFor(t).relationshipsObject||null,this._relationshipsDefCache[t]=r}return r}doesTypeExist(e){let t=P(e) +return null!==Me(this.store,this.store._modelFactoryCache,t)}}function Me(e,t,r){let n=t[r] +if(!n){if(n=i.getOwner(e).factoryFor(`model:${r}`),n||(n=Se(e,r)),!n)return null +let s=n.class +if(s.isModel){s.modelName&&Object.prototype.hasOwnProperty.call(s,"modelName")||Object.defineProperty(s,"modelName",{value:r})}t[r]=n}return n}const xe=new WeakMap function De(e){let t=new Map for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.set(r,e[r]) return t}class Ne{constructor(e,t){this.__store=e,this.modelName=t}get fields(){let e=this.__store.getSchemaDefinitionService().attributesDefinitionFor({type:this.modelName}),t=this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName}),r=new Map return Object.keys(e).forEach((e=>r.set(e,"attribute"))),Object.keys(t).forEach((e=>r.set(e,t[e].kind))),r}get attributes(){return De(this.__store.getSchemaDefinitionService().attributesDefinitionFor({type:this.modelName}))}get relationshipsByName(){return De(this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName}))}eachAttribute(e,t){let r=this.__store.getSchemaDefinitionService().attributesDefinitionFor({type:this.modelName}) Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}eachRelationship(e,t){let r=this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName}) Object.keys(r).forEach((i=>{e.call(t,i,r[i])}))}eachTransformedAttribute(e,t){let r=this.__store.getSchemaDefinitionService().relationshipsDefinitionFor({type:this.modelName}) -Object.keys(r).forEach((i=>{r[i].type&&e.call(t,i,r[i])}))}}const Fe=T.default.extend(C.default),Ie=S.default.extend(C.default) +Object.keys(r).forEach((i=>{r[i].type&&e.call(t,i,r[i])}))}}const Fe=C.default.extend(T.default),Ie=k.default.extend(T.default) var ze,Le,Ue -let Be=(ze=v.reads("content.meta"),Le=class extends Fe{constructor(){super(...arguments),function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"meta",Ue,this)}},Ue=function(e,t,r,i,n){var s={} +let Be=(ze=v.reads("content.meta"),Le=class extends Fe{constructor(...e){super(...e),function(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}(this,"meta",Ue,this)}},Ue=function(e,t,r,i,n){var s={} return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}(Le.prototype,"meta",[ze],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Le) -function $e(e){const t=function(e,t){return Be.create({promise:l.resolve(e,t)})}(e) -return t}function He(e){const t=function(e,t){return Ie.create({promise:l.resolve(e,t)})}(e) +function $e(e){const t=function(e,t){return Be.create({promise:o.resolve(e,t)})}(e) +return t}function He(e){const t=function(e,t){return Ie.create({promise:o.resolve(e,t)})}(e) return t}var qe,Ve,We,Ge function Ye(e,t,r,i){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Ke(e,t,r,i,n){var s={} return Object.keys(i).forEach((function(e){s[e]=i[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(e,t,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const Qe=new Set([Symbol.iterator,"concat","entries","every","fill","filter","find","findIndex","flat","flatMap","forEach","includes","indexOf","join","keys","lastIndexOf","map","reduce","reduceRight","slice","some","values"]),Je=new Set(["push","pop","unshift","shift","splice","sort"]),Xe=new Set(["[]","length","links","meta"]) function Ze(e){return Qe.has(e)}const et=Symbol("#tag"),tt=Symbol("#source"),rt=Symbol("#update"),it=Symbol("#notify") function nt(e){e[et].ref=null,m.dirtyTag(d.tagForProperty(e,"length")),m.dirtyTag(d.tagForProperty(e,"[]"))}function st(e){if("symbol"==typeof e)return null const t=Number(e) -return isNaN(t)?null:t%1==0?t:null}let at=(Ve=Ke((qe=class{constructor(){Ye(this,"ref",Ve,this),this.shouldReset=!1,this.t=!1}}).prototype,"ref",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qe) +return isNaN(t)?null:t%1==0?t:null}let at=(Ve=Ke((qe=class{constructor(){Ye(this,"ref",Ve,this),this.shouldReset=!1,this.t=!1}}).prototype,"ref",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),qe) let ot=(We=class e{[it](){nt(this)}destroy(){this.isDestroying=!0,this[tt].length=0,this[it](),this.isDestroyed=!0}get length(){return this[tt].length}set length(e){this[tt].length=e}get"[]"(){return this}constructor(t){Ye(this,"isUpdating",Ge,this),this.isLoaded=!0,this.isDestroying=!1,this.isDestroyed=!1,this._updatingPromise=null,this[et]=new at,this[tt]=void 0 let r=this this.modelName=t.type,this.store=t.store,this._manager=t.manager,this[tt]=t.identifiers @@ -4898,19 +4454,16 @@ A.default.meta(this).hasMixin=e=>e===NativeArray||e===ArrayMixin return this[it]=this[it].bind(l),l}update(){if(this.isUpdating)return this._updatingPromise this.isUpdating=!0 let e=this._update() -return e.finally((()=>{this._updatingPromise=null,this.isDestroying||this.isDestroyed||(this.isUpdating=!1)})),this._updatingPromise=e,e}_update(){return this.store.findAll(this.modelName,{reload:!0})}save(){return $e(Promise.all(this.map((e=>this.store.saveRecord(e)))).then((()=>this)))}},Ge=Ke(We.prototype,"isUpdating",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ke(We.prototype,"length",[p.dependentKeyCompat],Object.getOwnPropertyDescriptor(We.prototype,"length"),We.prototype),We) +return e.finally((()=>{this._updatingPromise=null,this.isDestroying||this.isDestroyed||(this.isUpdating=!1)})),this._updatingPromise=e,e}_update(){return this.store.findAll(this.modelName,{reload:!0})}save(){return $e(Promise.all(this.map((e=>this.store.saveRecord(e)))).then((()=>this)))}},Ge=Ke(We.prototype,"isUpdating",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ke(We.prototype,"length",[p.dependentKeyCompat],Object.getOwnPropertyDescriptor(We.prototype,"length"),We.prototype),We) Object.defineProperty(ot.prototype,"type",{get(){return this.modelName?this.store.modelFor(this.modelName):null}}) class lt extends ot{constructor(e){super(e),this.query=null,this.query=e.query||null,this.isLoaded=e.isLoaded||!1}_update(){const{store:e,query:t}=this return $e(e.query(this.modelName,t,{_recordArray:this}))}destroy(){super.destroy(),this._manager._managed.delete(this),this._manager._pending.delete(this)}}lt.prototype.query=null -ot.prototype.DEPRECATED_CLASS_NAME="RecordArray",lt.prototype.DEPRECATED_CLASS_NAME="RecordArray";["addObserver","cacheFor","decrementProperty","get","getProperties","incrementProperty","notifyPropertyChange","removeObserver","set","setProperties","toggleProperty"].forEach((e=>{ot.prototype[e]=function(){for(var t=arguments.length,r=new Array(t),i=0;i{-1===this.indexOf(e)&&this.push(e)})),this},ot.prototype.popObject=function(){return this.DEPRECATED_CLASS_NAME,this.pop()},ot.prototype.pushObject=function(e){return this.DEPRECATED_CLASS_NAME,this.push(e),e},ot.prototype.pushObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.push(...e),this},ot.prototype.shiftObject=function(){return this.DEPRECATED_CLASS_NAME,this.shift()},ot.prototype.unshiftObject=function(e){return this.DEPRECATED_CLASS_NAME,this.unshift(e),e},ot.prototype.unshiftObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.unshift(...e),this},ot.prototype.objectAt=function(e){return this.DEPRECATED_CLASS_NAME,this[-1===Math.sign(e)?this.length+e:e]},ot.prototype.objectsAt=function(e){return this.DEPRECATED_CLASS_NAME,e.map((e=>this.objectAt(e)))},ot.prototype.removeAt=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(e,1),this},ot.prototype.insertAt=function(e,t){return this.DEPRECATED_CLASS_NAME,this.splice(e,0,t),this},ot.prototype.removeObject=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(this.indexOf(e),1),this},ot.prototype.removeObjects=function(e){return this.DEPRECATED_CLASS_NAME,e.forEach((e=>this.splice(this.indexOf(e),1))),this},ot.prototype.toArray=function(){return this.DEPRECATED_CLASS_NAME,this.slice()},ot.prototype.replace=function(e,t,r){this.DEPRECATED_CLASS_NAME,r?this.splice(e,t,...r):this.splice(e,t)},ot.prototype.clear=function(){return this.DEPRECATED_CLASS_NAME,this.splice(0,this.length),this},ot.prototype.setObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(0,this.length),this.push(...e),this},ot.prototype.reverseObjects=function(){return this.DEPRECATED_CLASS_NAME,this.reverse(),this},ot.prototype.compact=function(){return this.DEPRECATED_CLASS_NAME,this.filter((e=>null!=e))},ot.prototype.any=function(e,t){return this.DEPRECATED_CLASS_NAME,this.some(e,t)},ot.prototype.isAny=function(e,t){this.DEPRECATED_CLASS_NAME +ot.prototype.DEPRECATED_CLASS_NAME="RecordArray",lt.prototype.DEPRECATED_CLASS_NAME="RecordArray";["addObserver","cacheFor","decrementProperty","get","getProperties","incrementProperty","notifyPropertyChange","removeObserver","set","setProperties","toggleProperty"].forEach((e=>{ot.prototype[e]=function(...t){return A.default[e](this,...t)}})),ot.prototype.addObject=function(e){return this.DEPRECATED_CLASS_NAME,-1===this.indexOf(e)&&this.push(e),this},ot.prototype.addObjects=function(e){return this.DEPRECATED_CLASS_NAME,e.forEach((e=>{-1===this.indexOf(e)&&this.push(e)})),this},ot.prototype.popObject=function(){return this.DEPRECATED_CLASS_NAME,this.pop()},ot.prototype.pushObject=function(e){return this.DEPRECATED_CLASS_NAME,this.push(e),e},ot.prototype.pushObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.push(...e),this},ot.prototype.shiftObject=function(){return this.DEPRECATED_CLASS_NAME,this.shift()},ot.prototype.unshiftObject=function(e){return this.DEPRECATED_CLASS_NAME,this.unshift(e),e},ot.prototype.unshiftObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.unshift(...e),this},ot.prototype.objectAt=function(e){return this.DEPRECATED_CLASS_NAME,this[-1===Math.sign(e)?this.length+e:e]},ot.prototype.objectsAt=function(e){return this.DEPRECATED_CLASS_NAME,e.map((e=>this.objectAt(e)))},ot.prototype.removeAt=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(e,1),this},ot.prototype.insertAt=function(e,t){return this.DEPRECATED_CLASS_NAME,this.splice(e,0,t),this},ot.prototype.removeObject=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(this.indexOf(e),1),this},ot.prototype.removeObjects=function(e){return this.DEPRECATED_CLASS_NAME,e.forEach((e=>this.splice(this.indexOf(e),1))),this},ot.prototype.toArray=function(){return this.DEPRECATED_CLASS_NAME,this.slice()},ot.prototype.replace=function(e,t,r){this.DEPRECATED_CLASS_NAME,r?this.splice(e,t,...r):this.splice(e,t)},ot.prototype.clear=function(){return this.DEPRECATED_CLASS_NAME,this.splice(0,this.length),this},ot.prototype.setObjects=function(e){return this.DEPRECATED_CLASS_NAME,this.splice(0,this.length),this.push(...e),this},ot.prototype.reverseObjects=function(){return this.DEPRECATED_CLASS_NAME,this.reverse(),this},ot.prototype.compact=function(){return this.DEPRECATED_CLASS_NAME,this.filter((e=>null!=e))},ot.prototype.any=function(e,t){return this.DEPRECATED_CLASS_NAME,this.some(e,t)},ot.prototype.isAny=function(e,t){this.DEPRECATED_CLASS_NAME let r=2===arguments.length return this.some((i=>r?i[e]===t:!0===i[e]))},ot.prototype.isEvery=function(e,t){this.DEPRECATED_CLASS_NAME let r=2===arguments.length -return this.every((i=>r?i[e]===t:!0===i[e]))},ot.prototype.getEach=function(e){return this.DEPRECATED_CLASS_NAME,this.map((t=>h.get(t,e)))},ot.prototype.mapBy=function(e){return this.DEPRECATED_CLASS_NAME,this.map((t=>h.get(t,e)))},ot.prototype.findBy=function(e,t){return this.DEPRECATED_CLASS_NAME,2===arguments.length?this.find((r=>h.get(r,e)===t)):this.find((t=>Boolean(h.get(t,e))))},ot.prototype.filterBy=function(e,t){return this.DEPRECATED_CLASS_NAME,2===arguments.length?this.filter((r=>h.get(r,e)===t)):this.filter((t=>Boolean(h.get(t,e))))},ot.prototype.sortBy=function(){for(var e=arguments.length,t=new Array(e),r=0;r{for(let i=0;i1?t-1:0),i=1;it[e](...r)))} +return this.every((i=>r?i[e]===t:!0===i[e]))},ot.prototype.getEach=function(e){return this.DEPRECATED_CLASS_NAME,this.map((t=>h.get(t,e)))},ot.prototype.mapBy=function(e){return this.DEPRECATED_CLASS_NAME,this.map((t=>h.get(t,e)))},ot.prototype.findBy=function(e,t){return this.DEPRECATED_CLASS_NAME,2===arguments.length?this.find((r=>h.get(r,e)===t)):this.find((t=>Boolean(h.get(t,e))))},ot.prototype.filterBy=function(e,t){return this.DEPRECATED_CLASS_NAME,2===arguments.length?this.filter((r=>h.get(r,e)===t)):this.filter((t=>Boolean(h.get(t,e))))},ot.prototype.sortBy=function(...e){return this.DEPRECATED_CLASS_NAME,this.slice().sort(((t,r)=>{for(let i=0;ir[e](...t)))} ot.prototype.addArrayObserver=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.removeArrayObserver=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.arrayContentWillChange=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.arrayContentDidChange=function(){this.DEPRECATED_CLASS_NAME},ot.prototype.reject=function(e,t){return this.DEPRECATED_CLASS_NAME,this.filter((t=>!h.get(t,e)))},ot.prototype.rejectBy=function(e,t){return this.DEPRECATED_CLASS_NAME,this.filter((t=>!h.get(t,e)))},ot.prototype.setEach=function(e,t){this.DEPRECATED_CLASS_NAME,this.forEach((r=>h.set(r,e,t)))},ot.prototype.uniq=function(){return this.DEPRECATED_CLASS_NAME,this.slice()},ot.prototype.uniqBy=function(e){this.DEPRECATED_CLASS_NAME let t=new Set,r=[] return this.forEach((i=>{let n=h.get(i,e) @@ -4945,7 +4498,7 @@ t&&t.forEach(((t,r)=>{"del"===t.get(e)?t.delete(e):(t.set(e,"add"),this.dirtyArr t&&t.forEach(((t,r)=>{"add"===t.get(e)?t.delete(e):(t.set(e,"del"),this.dirtyArray(r,t.size))}))}identifierChanged(e){this.store._instanceCache.recordIsLoaded(e,!0)?this.identifierAdded(e):this.identifierRemoved(e)}clear(){this._live.forEach((e=>e.destroy())),this._managed.forEach((e=>e.destroy())),this._managed.clear(),ut.clear()}destroy(){this.isDestroying=!0,this.clear(),this._live.clear(),this.isDestroyed=!0}}function ft(e,t){for(let r=0;r{t()||(r._subscribers.length=0)})) -return r}function vt(e){return!(e.isDestroyed||e.isDestroying)}function bt(e,t,r){return gt(l.resolve(e,r).then((r=>(vt(t),e))),(()=>vt(t)))}function yt(e,t,r,i,n,s){return e?e.normalizeResponse(t,r,i,n,s):i}const _t=Symbol("touching"),wt=Symbol("promise") +return r}function vt(e){return!(e.isDestroyed||e.isDestroying)}function bt(e,t,r){return gt(o.resolve(e,r).then((r=>(vt(t),e))),(()=>vt(t)))}function yt(e,t,r,i,n,s){return e?e.normalizeResponse(t,r,i,n,s):i}const _t=Symbol("touching"),wt=Symbol("promise") class Rt{constructor(){this._pending=Object.create(null),this._done=new Map,this._subscriptions=Object.create(null)}enqueue(e,t){let r=t.data[0] if("recordIdentifier"in r){let i=r.recordIdentifier.lid,n="saveRecord"===r.op?"mutation":"query" this._pending[i]||(this._pending[i]=[]) @@ -4958,25 +4511,23 @@ r[_t]=s[_t],this._addDone(r),this._triggerSubscriptions(r)}))}}_triggerSubscript i&&(i=i.filter((e=>{let t return t=e.request.data instanceof Array?e.request.data[0]:e.request.data,t.op!==r}))),i=i||[],i.push(e),this._done.set(t,i)}))}subscribeForRecord(e,t){this._subscriptions[e.lid]||(this._subscriptions[e.lid]=[]),this._subscriptions[e.lid].push(t)}getPendingRequestsForRecord(e){return this._pending[e.lid]?this._pending[e.lid]:[]}getLastRequestForRecord(e){let t=this._done.get(e) return t?t[t.length-1]:null}}const Ot=Symbol("SaveOp") -class Et{constructor(e){this._store=e,this._pendingFetch=new Map,this._pendingSave=[],this.requestCache=new Rt,this.isDestroyed=!1}clearEntries(e){this.requestCache._done.delete(e)}scheduleSave(e,t){let r="DS: Model#save "+this,i=E.default.defer(r),n={data:[{op:"saveRecord",recordIdentifier:e,options:t}]},a={snapshot:new me(t,e,this._store),resolver:i,identifier:e,options:t,queryRequest:n} -return this._pendingSave.push(a),s._backburner.scheduleOnce("actions",this,this._flushPendingSaves),this.requestCache.enqueue(i.promise,a.queryRequest),i.promise}_flushPendingSaves(){const e=this._store +class Et{constructor(e){this._store=e,this._pendingFetch=new Map,this._pendingSave=[],this.requestCache=new Rt,this.isDestroyed=!1}clearEntries(e){this.requestCache._done.delete(e)}scheduleSave(e,t){let r="DS: Model#save "+this,i=O.default.defer(r),s={data:[{op:"saveRecord",recordIdentifier:e,options:t}]},a={snapshot:new me(t,e,this._store),resolver:i,identifier:e,options:t,queryRequest:s} +return this._pendingSave.push(a),n._backburner.scheduleOnce("actions",this,this._flushPendingSaves),this.requestCache.enqueue(i.promise,a.queryRequest),i.promise}_flushPendingSaves(){const e=this._store let t=this._pendingSave.slice() this._pendingSave=[] -for(let r=0,i=t.length;r{t.data&&!Array.isArray(t.data)&&(t.data.lid=e.lid) let r=c._push(t) return r&&!Array.isArray(r)?r:e}),(t=>{const r=c._instanceCache.peek({identifier:e,bucket:"recordData"}) if(!r||r.isEmpty(e)||d){let t=!0 -if(!r){const r=(0,R.default(require("@ember-data/record-data/-private")).graphFor)(c) +if(!r){const r=(0,E.default(require("@ember-data/record-data/-private")).graphFor)(c) t=r.isReleasable(e),t||r.unload(e,!0)}(r||t)&&c._instanceCache.unloadRecord(e)}throw t})) -0===this._pendingFetch.size&&s._backburner.schedule("actions",this,this.flushAllPendingFetches) +0===this._pendingFetch.size&&n._backburner.schedule("actions",this,this.flushAllPendingFetches) let p=this._pendingFetch return p.has(a)||p.set(a,[]),p.get(a).push(l),l.promise=h,this.requestCache.enqueue(u,l.queryRequest),h}getPendingFetch(e,t){let r=this._pendingFetch.get(e.type) -if(r){let i=r.find((r=>r.identifier===e&&function(e,t){void 0===e&&(e={}) -void 0===t&&(t={}) -let r=!e.include||e.include===t.include,i=e.adapterOptions===t.adapterOptions +if(r){let i=r.find((r=>r.identifier===e&&function(e={},t={}){let r=!e.include||e.include===t.include,i=e.adapterOptions===t.adapterOptions return r&&i}(t,r.options))) if(i)return i.promise}}flushAllPendingFetches(){if(this.isDestroyed)return const e=this._store @@ -4984,9 +4535,9 @@ this._pendingFetch.forEach(((t,r)=>function(e,t,r){let i=e.adapterFor(r),n=!!i.f if(n){let n,a=new Array(s),o=new Map for(let r=0;r' to be present in the adapter provided payload, but it was not found.`))}}function Tt(e,t){let r=t.identifier,i=r.type,n=e.adapterFor(i),s=new me(t.options,r,e),a=e.modelFor(r.type),o=r.id,u=`DS: Handle Adapter#findRecord of '${i}' with id: '${o}'`,c=bt(l.resolve().then((()=>n.findRecord(e,a,r.id,s))),e,u).then((t=>yt(e.serializerFor(i),e,a,t,o,"findRecord"))) -t.resolver.resolve(c)}function Ct(e,t,r,i,n){r.length>1?function(e,t,r,i){let n=e.modelFor(r) +for(let t=0,s=n.length;t' to be present in the adapter provided payload, but it was not found.`))}}function Ct(e,t){let r=t.identifier,i=r.type,n=e.adapterFor(i),s=new me(t.options,r,e),a=e.modelFor(r.type),l=r.id,u=`DS: Handle Adapter#findRecord of '${i}' with id: '${l}'`,c=bt(o.resolve().then((()=>n.findRecord(e,a,r.id,s))),e,u).then((t=>yt(e.serializerFor(i),e,a,t,l,"findRecord"))) +t.resolver.resolve(c)}function Tt(e,t,r,i,n){r.length>1?function(e,t,r,i){let n=e.modelFor(r) const s=i.map((e=>e.id)) let a=t.findMany(e,n,s,i),o=`DS: Handle Adapter#findMany of '${r}'` if(void 0===a)throw new Error("adapter.findMany returned undefined, this was very likely a mistake") @@ -4997,70 +4548,67 @@ let a=i.data for(let l=0,u=a.length;l{t.get(r).resolver.resolve({data:e})})):s.push(e)}if(s.length>0&&e._push({data:null,included:s}),0===n.size)return let o=[] -n.forEach((e=>{o.push(...e)})),At(t,o)})(e,t,r,i)})).catch((e=>{At(t,r,e)})):1===r.length&&Tt(e,t.get(r[0]))}function St(e,t){const{snapshot:r,resolver:i,identifier:n,options:s}=t,a=e.adapterFor(n.type),o=s[Ot] +n.forEach((e=>{o.push(...e)})),At(t,o)})(e,t,r,i)})).catch((e=>{At(t,r,e)})):1===r.length&&Ct(e,t.get(r[0]))}function kt(e,t){const{snapshot:r,resolver:i,identifier:n,options:s}=t,a=e.adapterFor(n.type),l=s[Ot] let u=r.modelName,c=e.modelFor(u) const d=e._instanceCache.getRecord(n) -let h=l.resolve().then((()=>a[o](e,c,r))),p=e.serializerFor(u) -h=gt(bt(h,e,`DS: Extract and notify about ${o} completion of ${n}`),function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{if(vt(d),t)return yt(p,e,c,t,r.id,o)})),i.resolve(h)}class kt{constructor(e,t,r){void 0===r&&(r={}),this.__store=e,this._snapshots=null,this._recordArray=t,this.length=t.length,this.adapterOptions=r.adapterOptions,this.include=r.include}get modelName(){return this._recordArray.modelName}snapshots(){if(null!==this._snapshots)return this._snapshots +let h=o.resolve().then((()=>a[l](e,c,r))),p=e.serializerFor(u) +h=gt(bt(h,e,`DS: Extract and notify about ${l} completion of ${n}`),function(e,...t){return function(){return e.apply(void 0,t)}}(vt,d)).then((t=>{if(vt(d),t)return yt(p,e,c,t,r.id,l)})),i.resolve(h)}class Pt{constructor(e,t,r={}){this.__store=e,this._snapshots=null,this._recordArray=t,this.length=t.length,this.adapterOptions=r.adapterOptions,this.include=r.include}get modelName(){return this._recordArray.modelName}snapshots(){if(null!==this._snapshots)return this._snapshots const{_instanceCache:e}=this.__store -return this._snapshots=this._recordArray[tt].map((t=>e.createSnapshot(t))),this._snapshots}}function Pt(e,t,r,i,n){let s=t.modelFor(r),a=t.peekAll(r) -n=n||new kt(t,a,i) -let o=l.Promise.resolve().then((()=>e.findAll(t,s,null,n))) -return o=bt(o,t,"DS: Handle Adapter#findAll of "+s),o.then((e=>{let i=yt(t.serializerFor(r),t,s,e,null,"findAll") +return this._snapshots=this._recordArray[tt].map((t=>e.createSnapshot(t))),this._snapshots}}function St(e,t,r,i,n){let s=t.modelFor(r),a=t.peekAll(r) +n=n||new Pt(t,a,i) +let l=o.Promise.resolve().then((()=>e.findAll(t,s,null,n))) +return l=bt(l,t,"DS: Handle Adapter#findAll of "+s),l.then((e=>{let i=yt(t.serializerFor(r),t,s,e,null,"findAll") return t._push(i),a.isUpdating=!1,a}),null,"DS: Extract payload of findAll ${modelName}")}let jt -Object.defineProperty(kt.prototype,"type",{get(){return this._recordArray.type}}) -class Mt extends O.default{constructor(){super(...arguments),this.__private_singleton_recordData=void 0,this.identifierCache=new $,this.recordArrayManager=new pt({store:this}),this._notificationManager=new Y(this),this._fetchManager=new Et(this),this._instanceCache=new Te(this),this._adapterCache=Object.create(null),this._serializerCache=Object.create(null),this._modelFactoryCache=Object.create(null)}_run(e){const t=this._cbs={} -e(),t.coalesce&&t.coalesce(),t.sync&&t.sync(),t.notify&&t.notify(),this._cbs=null}_join(e){this._cbs?e():this._run(e)}_schedule(e,t){this._cbs[e]=t}getRequestStateService(){return this._fetchManager.requestCache}instantiateRecord(e,t,r,i){{let r=e.type,i={_createProps:t,_secretInit:{identifier:e,recordData:this._instanceCache.getRecordData(e),store:this,cb:It}} -return n.setOwner(i,n.getOwner(this)),Me(this,this._modelFactoryCache,r).class.create(i)}}teardownRecord(e){e.destroy()}getSchemaDefinitionService(){return this._schemaDefinitionService||(this._schemaDefinitionService=new je(this)),this._schemaDefinitionService}registerSchemaDefinitionService(e){this._schemaDefinitionService=e}modelFor(e){{let t=k(e),r=Me(this,this._modelFactoryCache,t),i=r&&r.class?r.class:r +Object.defineProperty(Pt.prototype,"type",{get(){return this._recordArray.type}}) +class Mt extends R.default{constructor(){super(...arguments),this.__private_singleton_recordData=void 0,this.identifierCache=new $,this.recordArrayManager=new pt({store:this}),this._notificationManager=new Y(this),this._fetchManager=new Et(this),this._instanceCache=new Ce(this),this._adapterCache=Object.create(null),this._serializerCache=Object.create(null),this._modelFactoryCache=Object.create(null)}_run(e){const t=this._cbs={} +e(),t.coalesce&&t.coalesce(),t.sync&&t.sync(),t.notify&&t.notify(),this._cbs=null}_join(e){this._cbs?e():this._run(e)}_schedule(e,t){this._cbs[e]=t}getRequestStateService(){return this._fetchManager.requestCache}instantiateRecord(e,t,r,n){{let r=e.type,n={_createProps:t,_secretInit:{identifier:e,recordData:this._instanceCache.getRecordData(e),store:this,cb:It}} +return i.setOwner(n,i.getOwner(this)),Me(this,this._modelFactoryCache,r).class.create(n)}}teardownRecord(e){e.destroy()}getSchemaDefinitionService(){return this._schemaDefinitionService||(this._schemaDefinitionService=new je(this)),this._schemaDefinitionService}registerSchemaDefinitionService(e){this._schemaDefinitionService=e}modelFor(e){{let t=P(e),r=Me(this,this._modelFactoryCache,t),i=r&&r.class?r.class:r return i&&i.isModel?i:function(e,t){let r=xe.get(e) r||(r=Object.create(null),xe.set(e,r)) let i=r[t] return void 0===i&&(i=r[t]=new Ne(e,t)),i}(this,e)}}createRecord(e,t){let r -return s._backburner.join((()=>{this._join((()=>{let i=k(e),n={...t} +return n._backburner.join((()=>{this._join((()=>{let i=P(e),n={...t} if(null===n.id||void 0===n.id){let t=this.adapterFor(e) -t&&t.generateIdForRecord?n.id=t.generateIdForRecord(this,e,n):n.id=null}n.id=P(n.id) +t&&t.generateIdForRecord?n.id=t.generateIdForRecord(this,e,n):n.id=null}n.id=S(n.id) const s={type:i,id:n.id} s.id&&this.identifierCache.peekRecordIdentifier(s) -const a=this.identifierCache.createIdentifierForNewRecord(s),o=this._instanceCache.getRecordData(a),l=function(e,t,r,i){void 0===i&&(i=!1) -if(void 0!==r){const{type:n}=t +const a=this.identifierCache.createIdentifierForNewRecord(s),o=this._instanceCache.getRecordData(a),l=function(e,t,r,i=!1){if(void 0!==r){const{type:n}=t let s=e.getSchemaDefinitionService().relationshipsDefinitionFor({type:n}) if(null!==s){let e,t=Object.keys(r) for(let n=0;n{r.setIsDeleted(t,!0),r.isNew(t)&&s._backburner.join((()=>{this._instanceCache.unloadRecord(t)}))}))}unloadRecord(e){const t=Re(e) +this._join((()=>{r.setIsDeleted(t,!0),r.isNew(t)&&n._backburner.join((()=>{this._instanceCache.unloadRecord(t)}))}))}unloadRecord(e){const t=Re(e) t&&this._instanceCache.unloadRecord(t)}find(e,t,r){return this.findRecord(e,t)}findRecord(e,t,r){if(xt(e))r=t -else{e=pe(k(e),j(t))}const i=this.identifierCache.getOrCreateRecordIdentifier(e) +else{e=pe(P(e),j(t))}const i=this.identifierCache.getOrCreateRecordIdentifier(e) let n if(r=r||{},this._instanceCache.recordIsLoaded(i))if(r.reload)n=this._fetchManager.scheduleFetch(i,r) else{let e=null,t=this.adapterFor(i.type) -void 0===r.reload&&t.shouldReloadRecord&&t.shouldReloadRecord(this,e=this._instanceCache.createSnapshot(i,r))?n=this._fetchManager.scheduleFetch(i,r):(!1===r.backgroundReload||!r.backgroundReload&&t.shouldBackgroundReloadRecord&&!t.shouldBackgroundReloadRecord(this,e=e||this._instanceCache.createSnapshot(i,r))||this._fetchManager.scheduleFetch(i,r),n=l.resolve(i))}else n=this._instanceCache._fetchDataIfNeededForIdentifier(i,r) +void 0===r.reload&&t.shouldReloadRecord&&t.shouldReloadRecord(this,e=this._instanceCache.createSnapshot(i,r))?n=this._fetchManager.scheduleFetch(i,r):(!1===r.backgroundReload||!r.backgroundReload&&t.shouldBackgroundReloadRecord&&!t.shouldBackgroundReloadRecord(this,e=e||this._instanceCache.createSnapshot(i,r))||this._fetchManager.scheduleFetch(i,r),n=o.resolve(i))}else n=this._instanceCache._fetchDataIfNeededForIdentifier(i,r) return function(e,t){return He(t.then((t=>e.peekRecord(t))))}(this,n)}getReference(e,t){let r if(1===arguments.length&&xt(e))r=e -else{r=pe(k(e),j(t))}let i=this.identifierCache.getOrCreateRecordIdentifier(r) +else{r=pe(P(e),j(t))}let i=this.identifierCache.getOrCreateRecordIdentifier(r) return this._instanceCache.getReference(i)}peekRecord(e,t){if(1===arguments.length&&xt(e)){const t=this.identifierCache.peekRecordIdentifier(e) -return t&&this._instanceCache.recordIsLoaded(t)?this._instanceCache.getRecord(t):null}const r={type:k(e),id:j(t)},i=this.identifierCache.peekRecordIdentifier(r) -return i&&this._instanceCache.recordIsLoaded(i)?this._instanceCache.getRecord(i):null}hasRecordForId(e,t){{const r={type:k(e),id:j(t)},i=this.identifierCache.peekRecordIdentifier(r) +return t&&this._instanceCache.recordIsLoaded(t)?this._instanceCache.getRecord(t):null}const r={type:P(e),id:j(t)},i=this.identifierCache.peekRecordIdentifier(r) +return i&&this._instanceCache.recordIsLoaded(i)?this._instanceCache.getRecord(i):null}hasRecordForId(e,t){{const r={type:P(e),id:j(t)},i=this.identifierCache.peekRecordIdentifier(r) return Boolean(i&&this._instanceCache.recordIsLoaded(i))}}query(e,t,r){let i={} r&&r.adapterOptions&&(i.adapterOptions=r.adapterOptions) -let n=r?._recordArray||null,s=k(e),a=function(e,t,r,i,n,s){let a=t.modelFor(r) +let n=r?._recordArray||null,s=P(e),a=function(e,t,r,i,n,s){let a=t.modelFor(r) n=n||t.recordArrayManager.createArray({type:r,query:i}) -let o=l.Promise.resolve().then((()=>e.query(t,a,i,n,s))) -return o=bt(o,t,`DS: Handle Adapter#query of ${r}`),o.then((e=>{let i=yt(t.serializerFor(r),t,a,e,null,"query"),s=t._push(i) +let l=o.Promise.resolve().then((()=>e.query(t,a,i,n,s))) +return l=bt(l,t,`DS: Handle Adapter#query of ${r}`),l.then((e=>{let i=yt(t.serializerFor(r),t,a,e,null,"query"),s=t._push(i) return t.recordArrayManager.populateManagedArray(n,s,i),n}),null,`DS: Extract payload of query ${r}`)}(this.adapterFor(s),this,s,t,n,i) -return $e(a)}queryRecord(e,t,r){let i=k(e),n=this.adapterFor(i),s={} +return $e(a)}queryRecord(e,t,r){let i=P(e),n=this.adapterFor(i),s={} r&&r.adapterOptions&&(s.adapterOptions=r.adapterOptions) -const a=function(e,t,r,i,n){let s=t.modelFor(r),a=l.Promise.resolve().then((()=>e.queryRecord(t,s,i,n))) +const a=function(e,t,r,i,n){let s=t.modelFor(r),a=o.Promise.resolve().then((()=>e.queryRecord(t,s,i,n))) return a=bt(a,t,`DS: Handle Adapter#queryRecord of ${r}`),a.then((e=>{let i=yt(t.serializerFor(r),t,s,e,null,"queryRecord") return t._push(i)}),null,`DS: Extract payload of queryRecord ${r}`)}(n,this,i,t,s) -return He(a.then((e=>e&&this.peekRecord(e))))}findAll(e,t){void 0===t&&(t={}) -let r,i=k(e),n=this.peekAll(i),s=this.adapterFor(i) -if(t.reload)n.isUpdating=!0,r=Pt(s,this,i,t) -else{let i=new kt(this,n,t) -!1!==t.reload&&(s.shouldReloadAll&&s.shouldReloadAll(this,i)||!s.shouldReloadAll&&0===i.length)&&(n.isUpdating=!0,r=Pt(s,this,e,t,i)),r||(!1===t.backgroundReload?r=l.resolve(n):(t.backgroundReload||!s.shouldBackgroundReloadAll||s.shouldBackgroundReloadAll(this,i))&&(n.isUpdating=!0,Pt(s,this,e,t,i)),r=l.resolve(n))}return $e(r)}peekAll(e){let t=k(e) -return this.recordArrayManager.liveArrayFor(t)}unloadAll(e){this._join((()=>{if(void 0===e){{let e=(0,R.default(require("@ember-data/record-data/-private")).peekGraph)(this) -e&&e.identifiers.clear()}this._notificationManager.destroy(),this.recordArrayManager.clear(),this._instanceCache.clear()}else{let t=k(e) +return He(a.then((e=>e&&this.peekRecord(e))))}findAll(e,t={}){let r,i=P(e),n=this.peekAll(i),s=this.adapterFor(i) +if(t.reload)n.isUpdating=!0,r=St(s,this,i,t) +else{let i=new Pt(this,n,t) +!1!==t.reload&&(s.shouldReloadAll&&s.shouldReloadAll(this,i)||!s.shouldReloadAll&&0===i.length)&&(n.isUpdating=!0,r=St(s,this,e,t,i)),r||(!1===t.backgroundReload?r=o.resolve(n):(t.backgroundReload||!s.shouldBackgroundReloadAll||s.shouldBackgroundReloadAll(this,i))&&(n.isUpdating=!0,St(s,this,e,t,i)),r=o.resolve(n))}return $e(r)}peekAll(e){let t=P(e) +return this.recordArrayManager.liveArrayFor(t)}unloadAll(e){this._join((()=>{if(void 0===e){{let e=(0,E.default(require("@ember-data/record-data/-private")).peekGraph)(this) +e&&e.identifiers.clear()}this._notificationManager.destroy(),this.recordArrayManager.clear(),this._instanceCache.clear()}else{let t=P(e) this._instanceCache.clear(t)}}))}push(e){let t=this._push(e) if(Array.isArray(t)){return t.map((e=>this._instanceCache.getRecord(e)))}return null===t?null:this._instanceCache.getRecord(t)}_push(e){let t return this._join((()=>{let r,i,n=e.included @@ -5070,13 +4618,12 @@ let n=new Array(i) for(r=0;rFt(e,t)))}function Ft(e,t){if(void 0===t&&(t=!1),!e)return null +function Nt(e,t=!1){return e.map((e=>Ft(e,t)))}function Ft(e,t=!1){if(!e)return null const r=t?ye:Oe if(e.then){let t=e.content -return t?r(t):null}return r(e)}function It(e,t,r,i){Ee(e,r),Ae.set(e,i),ve(e,t)}e.AdapterPopulatedRecordArray=lt,e.IDENTIFIER_ARRAY_TAG=et,e.IdentifierArray=ot,e.MUTATE=rt,e.RecordArray=ot,e.RecordArrayManager=pt,e.SOURCE=tt,e.Snapshot=me,e.SnapshotRecordArray=kt,e.Store=Mt,e._clearCaches=function(){we.clear(),Ae.clear(),ge.clear()},e.coerceId=P,e.fastPush=ht,e.isStableIdentifier=D,e.normalizeModelName=function(e){return k(e)},e.notifyArray=nt,e.recordDataFor=ye,e.recordIdentifierFor=Oe,e.removeRecordDataFor=be,e.setIdentifierForgetMethod=function(e){F=e},e.setIdentifierGenerationMethod=function(e){I=e},e.setIdentifierResetMethod=function(e){z=e},e.setIdentifierUpdateMethod=function(e){L=e},e.storeFor=function(e){return Ae.get(e)},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/store/index",["exports","@ember-data/store/-private"],(function(e,t){"use strict" +return t?r(t):null}return r(e)}function It(e,t,r,i){Ee(e,r),Ae.set(e,i),ve(e,t)}e.AdapterPopulatedRecordArray=lt,e.IDENTIFIER_ARRAY_TAG=et,e.IdentifierArray=ot,e.MUTATE=rt,e.RecordArray=ot,e.RecordArrayManager=pt,e.SOURCE=tt,e.Snapshot=me,e.SnapshotRecordArray=Pt,e.Store=Mt,e._clearCaches=function(){we.clear(),Ae.clear(),ge.clear()},e.coerceId=S,e.fastPush=ht,e.isStableIdentifier=D,e.normalizeModelName=function(e){return P(e)},e.notifyArray=nt,e.recordDataFor=ye,e.recordIdentifierFor=Oe,e.removeRecordDataFor=be,e.setIdentifierForgetMethod=function(e){F=e},e.setIdentifierGenerationMethod=function(e){I=e},e.setIdentifierResetMethod=function(e){z=e},e.setIdentifierUpdateMethod=function(e){L=e},e.storeFor=function(e){return Ae.get(e)},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})),define("@ember-data/store/index",["exports","@ember-data/store/-private"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.Store}}),Object.defineProperty(e,"normalizeModelName",{enumerable:!0,get:function(){return t.normalizeModelName}}),Object.defineProperty(e,"recordIdentifierFor",{enumerable:!0,get:function(){return t.recordIdentifierFor}}),Object.defineProperty(e,"setIdentifierForgetMethod",{enumerable:!0,get:function(){return t.setIdentifierForgetMethod}}),Object.defineProperty(e,"setIdentifierGenerationMethod",{enumerable:!0,get:function(){return t.setIdentifierGenerationMethod}}),Object.defineProperty(e,"setIdentifierResetMethod",{enumerable:!0,get:function(){return t.setIdentifierResetMethod}}),Object.defineProperty(e,"setIdentifierUpdateMethod",{enumerable:!0,get:function(){return t.setIdentifierUpdateMethod}}),Object.defineProperty(e,"storeFor",{enumerable:!0,get:function(){return t.storeFor}})})),define("@ember-data/tracking/-private",["exports"],(function(e){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.addToTransaction=function(e){t?t.props.add(e):e.ref=null},e.addTransactionCB=function(e){t?t.cbs.add(e):e()},e.memoTransact=function(e){return function(){r() -const t=e(...arguments) -return i(),t}},e.subscribe=function(e){t?t.sub.add(e):e.ref},e.transact=function(e){r() +Object.defineProperty(e,"__esModule",{value:!0}),e.addToTransaction=function(e){t?t.props.add(e):e.ref=null},e.addTransactionCB=function(e){t?t.cbs.add(e):e()},e.memoTransact=function(e){return function(...t){r() +const n=e(...t) +return i(),n}},e.subscribe=function(e){t?t.sub.add(e):e.ref},e.transact=function(e){r() const t=e() return i(),t},e.untracked=function(e){r() const i=e() @@ -5135,10 +4682,9 @@ Object.defineProperty(e,"__esModule",{value:!0})})),define("@ember/test-waiters/ Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let r=e 0 return r};(0,t.default)("@ember/test-waiters:promise-waiter")})),define("@ember/test-waiters/wait-for",["exports","@ember/test-waiters/wait-for-promise","@ember/test-waiters/build-waiter"],(function(e,t,r){"use strict" -function i(e,t){return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var e=arguments.length,t=new Array(e),r=0;r{e.push(t)})),e}function a(){let e={pending:0,waiters:{}} return i.forEach((t=>{if(!t.waitUntil()){e.pending++ let r=t.debugInfo() -e.waiters[t.name]=r||!0}})),e}function o(){return a().pending>0}t.default.Test&&(0,r.registerWaiter)((()=>!o()))})),define("@embroider/macros/es-compat",["exports"],(function(e){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return e?.__esModule?e:{default:e}}})),define("@embroider/macros/runtime",["exports"],(function(e){"use strict" +e.waiters[t.name]=r||!0}})),e}function o(){return a().pending>0}t.default.Test&&(0,r.registerWaiter)((()=>!o()))})),define("@embroider/macros/es-compat2",["exports"],(function(e){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return e?.__esModule?e:{default:e,...e}}})),define("@embroider/macros/runtime",["exports"],(function(e){"use strict" function t(e){return i.packages[e]}function r(){return i.global}Object.defineProperty(e,"__esModule",{value:!0}),e.config=t,e.each=function(e){if(!Array.isArray(e))throw new Error("the argument to the each() macro must be an array") return e},e.getGlobalConfig=r,e.isTesting=function(){let e=i.global,t=e&&e["@embroider/macros"] return Boolean(t&&t.isTesting)},e.macroCondition=function(e){return e} const i={packages:{},global:{}} let n="undefined"!=typeof window?window._embroider_macros_runtime_config:void 0 if(n){let e={config:t,getGlobalConfig:r,setConfig(e,t){i.packages[e]=t},setGlobalConfig(e,t){i.global[e]=t}} -for(let t of n)t(e)}})),define("@embroider/util/ember-private-api",["exports","@embroider/macros/es-compat"],(function(e,t){"use strict" +for(let t of n)t(e)}})),define("@embroider/util/ember-private-api",["exports","@embroider/macros/es-compat2"],(function(e,t){"use strict" let r Object.defineProperty(e,"__esModule",{value:!0}),e.isCurriedComponentDefinition=void 0,e.lookupCurriedComponentDefinition=function(e,t){let r=function(e){let t=e.lookup("renderer:-dom")._runtimeResolver if(t)return t @@ -5174,56 +4720,47 @@ e.isCurriedComponentDefinition=i,i||(e.isCurriedComponentDefinition=i=function(e define("@embroider/util/index",["exports","@ember/debug","@ember/application","@embroider/util/ember-private-api","@ember/component/helper"],(function(e,t,r,i,n){"use strict" function s(e,t){return"string"==typeof e?function(e,t){let n=(0,r.getOwner)(t) return(0,i.lookupCurriedComponentDefinition)(e,n)}(e,t):(0,i.isCurriedComponentDefinition)(e)||null==e?e:e}Object.defineProperty(e,"__esModule",{value:!0}),e.EnsureSafeComponentHelper=void 0,e.ensureSafeComponent=s -class a extends n.default{compute(e){let[t]=e -return s(t,this)}}e.EnsureSafeComponentHelper=a})),define("@embroider/util/services/ensure-registered",["exports","@ember/service","@ember/application"],(function(e,t,r){"use strict" -function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e +class a extends n.default{compute([e]){return s(e,this)}}e.EnsureSafeComponentHelper=a})),define("@embroider/util/services/ensure-registered",["exports","@ember/service","@ember/application"],(function(e,t,r){"use strict" +function i(e,t,r){var i +return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e var r=e[Symbol.toPrimitive] if(void 0!==r){var i=r.call(e,t||"default") if("object"!=typeof i)return i -throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string") -return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -class n extends t.default{constructor(){super(...arguments),i(this,"classNonces",new WeakMap),i(this,"nonceCounter",0)}register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.getOwner)(this),i=this.classNonces.get(e) +throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +class n extends t.default{constructor(...e){super(...e),i(this,"classNonces",new WeakMap),i(this,"nonceCounter",0)}register(e,t=(0,r.getOwner)(this)){let i=this.classNonces.get(e) return null==i&&(i="-ensure"+this.nonceCounter++,this.classNonces.set(e,i),t.register(`component:${i}`,e)),i}}e.default=n})),define("@glimmer/component/-private/base-component-manager",["exports","@glimmer/component/-private/component"],(function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){return class{static create(e){return new this(t(e))}constructor(t){(function(e,t,r){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e +Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,r){return class{static create(e){return new this(t(e))}constructor(t){(function(e,t,r){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e var r=e[Symbol.toPrimitive] if(void 0!==r){var i=r.call(e,t||"default") if("object"!=typeof i)return i throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string") -return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})(this,"capabilities",r),e(this,t)}createComponent(e,r){return new e(t(this),r.named)}getContext(e){return e}}}})),define("@glimmer/component/-private/component",["exports","@glimmer/component/-private/owner","@glimmer/component/-private/destroyables"],(function(e,t,r){"use strict" -function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e +return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})(this,"capabilities",r),e(this,t)}createComponent(e,r){return new e(t(this),r.named)}getContext(e){return e}}}})),define("@glimmer/component/-private/component",["exports","@glimmer/component/-private/owner","@glimmer/component/-private/destroyables"],(function(e,t,r){"use strict" +function i(e,t,r){var i +return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||!e)return e var r=e[Symbol.toPrimitive] if(void 0!==r){var i=r.call(e,t||"default") if("object"!=typeof i)return i -throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string") -return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let n -Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ARGS_SET=void 0,e.ARGS_SET=n +throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:i+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ARGS_SET=void 0 +e.ARGS_SET=void 0 e.default=class{constructor(e,r){i(this,"args",void 0),this.args=r,(0,t.setOwner)(this,e)}get isDestroying(){return(0,r.isDestroying)(this)}get isDestroyed(){return(0,r.isDestroyed)(this)}willDestroy(){}}})),define("@glimmer/component/-private/destroyables",["exports","ember"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.isDestroying=e.isDestroyed=void 0 -const r=t.default._isDestroying -e.isDestroying=r -const i=t.default._isDestroyed -e.isDestroyed=i})),define("@glimmer/component/-private/ember-component-manager",["exports","ember","@ember/object","@ember/application","@ember/component","@ember/runloop","@glimmer/component/-private/base-component-manager","@glimmer/component/-private/destroyables"],(function(e,t,r,i,n,s,a,o){"use strict" +e.isDestroying=t.default._isDestroying,e.isDestroyed=t.default._isDestroyed})),define("@glimmer/component/-private/ember-component-manager",["exports","ember","@ember/object","@ember/application","@ember/component","@ember/runloop","@glimmer/component/-private/base-component-manager","@glimmer/component/-private/destroyables"],(function(e,t,r,i,n,s,a,o){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 const{setDestroyed:l,setDestroying:u}=o,c=(0,n.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),d=t.default.destroy,h=t.default._registerDestructor class p extends((0,a.default)(i.setOwner,i.getOwner,c)){createComponent(e,t){const r=super.createComponent(e,t) -return h(r,(()=>{r.willDestroy()})),r}destroyComponent(e){d(e)}}var f=p -e.default=f})),define("@glimmer/component/-private/owner",["exports","@ember/application"],(function(e,t){"use strict" +return h(r,(()=>{r.willDestroy()})),r}destroyComponent(e){d(e)}}e.default=p})),define("@glimmer/component/-private/owner",["exports","@ember/application"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"setOwner",{enumerable:!0,get:function(){return t.setOwner}})})),define("@glimmer/component/index",["exports","@ember/component","@glimmer/component/-private/ember-component-manager","@glimmer/component/-private/component"],(function(e,t,r,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 let n=i.default;(0,t.setComponentManager)((e=>new r.default(e)),n) -var s=n -e.default=s})),define("ember-cached-decorator-polyfill/index",["exports","@glimmer/tracking/primitives/cache","@ember/debug"],(function(e,t,r){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.cached=function(){for(var e=arguments.length,r=new Array(e),i=0;ie&&"object"==typeof e&&"default"in e?e:{default:e},h=d(t),p=d(r),f=d(i),m=d(n),g=d(s),v=d(a),b=d(o),y=g.default.create({VERSION:b.default,name:"DS"}) v.default.libraries&&v.default.libraries.registerCoreLibrary("Ember Data",b.default) const _=h.default.extend(p.default),w=f.default.extend(p.default) @@ -5232,11 +4769,10 @@ Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"defaul Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortError",{enumerable:!0,get:function(){return t.AbortError}}),Object.defineProperty(e,"AdapterError",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"ConflictError",{enumerable:!0,get:function(){return t.ConflictError}}),Object.defineProperty(e,"ForbiddenError",{enumerable:!0,get:function(){return t.ForbiddenError}}),Object.defineProperty(e,"InvalidError",{enumerable:!0,get:function(){return t.InvalidError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return t.NotFoundError}}),Object.defineProperty(e,"ServerError",{enumerable:!0,get:function(){return t.ServerError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return t.TimeoutError}}),Object.defineProperty(e,"UnauthorizedError",{enumerable:!0,get:function(){return t.UnauthorizedError}}),Object.defineProperty(e,"errorsArrayToHash",{enumerable:!0,get:function(){return t.errorsArrayToHash}}),Object.defineProperty(e,"errorsHashToArray",{enumerable:!0,get:function(){return t.errorsHashToArray}})})),define("ember-data/adapters/json-api",["exports","@ember-data/adapter/json-api"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/adapters/rest",["exports","@ember-data/adapter/rest"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/attr",["exports","@ember-data/model"],(function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.attr}})})),define("ember-data/index",["exports","@embroider/macros/es-compat","@ember-data/adapter","@ember-data/adapter/error","@ember-data/adapter/json-api","@ember-data/adapter/rest","@ember-data/model","@ember-data/serializer","@ember-data/serializer/-private","@ember-data/serializer/json","@ember-data/serializer/json-api","@ember-data/serializer/rest","@ember-data/serializer/transform","@ember-data/store","ember-data/-private","ember-data/setup-container"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,f.DS.Store=p.default,f.DS.PromiseArray=f.PromiseArray,f.DS.PromiseObject=f.PromiseObject,f.DS.PromiseManyArray=f.PromiseManyArray,f.DS.Model=a.default,f.DS.attr=a.attr,f.DS.Errors=f.Errors,f.DS.Snapshot=f.Snapshot,f.DS.Adapter=r.default,f.DS.AdapterError=i.default,f.DS.InvalidError=i.InvalidError,f.DS.TimeoutError=i.TimeoutError,f.DS.AbortError=i.AbortError,f.DS.UnauthorizedError=i.UnauthorizedError,f.DS.ForbiddenError=i.ForbiddenError,f.DS.NotFoundError=i.NotFoundError,f.DS.ConflictError=i.ConflictError,f.DS.ServerError=i.ServerError,f.DS.errorsHashToArray=i.errorsHashToArray,f.DS.errorsArrayToHash=i.errorsArrayToHash,f.DS.Serializer=o.default,f.DS.DebugAdapter=(0,t.default)(require("@ember-data/debug")).default,f.DS.ManyArray=f.ManyArray,f.DS.RecordArrayManager=f.RecordArrayManager,f.DS.RESTAdapter=s.default,f.DS.BuildURLMixin=r.BuildURLMixin,f.DS.RESTSerializer=d.default,f.DS.JSONSerializer=u.default -f.DS.JSONAPIAdapter=n.default,f.DS.JSONAPISerializer=c.default,f.DS.Transform=h.default,f.DS.DateTransform=l.DateTransform,f.DS.StringTransform=l.StringTransform,f.DS.NumberTransform=l.NumberTransform,f.DS.BooleanTransform=l.BooleanTransform,f.DS.EmbeddedRecordsMixin=d.EmbeddedRecordsMixin,f.DS.belongsTo=a.belongsTo,f.DS.hasMany=a.hasMany,f.DS._setupContainer=m.default,Object.defineProperty(f.DS,"normalizeModelName",{enumerable:!0,writable:!1,configurable:!1,value:p.normalizeModelName}) -var g=f.DS -e.default=g})),define("ember-data/model",["exports","@ember-data/model"],(function(e,t){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.attr}})})),define("ember-data/index",["exports","@ember-data/adapter","@ember-data/adapter/error","@ember-data/adapter/json-api","@ember-data/adapter/rest","@ember-data/model","@ember-data/serializer","@ember-data/serializer/-private","@ember-data/serializer/json","@ember-data/serializer/json-api","@ember-data/serializer/rest","@ember-data/serializer/transform","@ember-data/store","ember-data/-private","ember-data/setup-container","@embroider/macros/es-compat2"],(function(e,t,r,i,n,s,a,o,l,u,c,d,h,p,f,m){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,p.DS.Store=h.default,p.DS.PromiseArray=p.PromiseArray,p.DS.PromiseObject=p.PromiseObject,p.DS.PromiseManyArray=p.PromiseManyArray,p.DS.Model=s.default,p.DS.attr=s.attr,p.DS.Errors=p.Errors,p.DS.Snapshot=p.Snapshot,p.DS.Adapter=t.default,p.DS.AdapterError=r.default,p.DS.InvalidError=r.InvalidError,p.DS.TimeoutError=r.TimeoutError,p.DS.AbortError=r.AbortError,p.DS.UnauthorizedError=r.UnauthorizedError,p.DS.ForbiddenError=r.ForbiddenError,p.DS.NotFoundError=r.NotFoundError,p.DS.ConflictError=r.ConflictError,p.DS.ServerError=r.ServerError,p.DS.errorsHashToArray=r.errorsHashToArray,p.DS.errorsArrayToHash=r.errorsArrayToHash,p.DS.Serializer=a.default,p.DS.DebugAdapter=(0,m.default)(require("@ember-data/debug")).default,p.DS.ManyArray=p.ManyArray,p.DS.RecordArrayManager=p.RecordArrayManager,p.DS.RESTAdapter=n.default,p.DS.BuildURLMixin=t.BuildURLMixin,p.DS.RESTSerializer=c.default,p.DS.JSONSerializer=l.default +p.DS.JSONAPIAdapter=i.default,p.DS.JSONAPISerializer=u.default,p.DS.Transform=d.default,p.DS.DateTransform=o.DateTransform,p.DS.StringTransform=o.StringTransform,p.DS.NumberTransform=o.NumberTransform,p.DS.BooleanTransform=o.BooleanTransform,p.DS.EmbeddedRecordsMixin=c.EmbeddedRecordsMixin,p.DS.belongsTo=s.belongsTo,p.DS.hasMany=s.hasMany,p.DS._setupContainer=f.default,Object.defineProperty(p.DS,"normalizeModelName",{enumerable:!0,writable:!1,configurable:!1,value:h.normalizeModelName}) +e.default=p.DS})),define("ember-data/model",["exports","@ember-data/model"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/relationships",["exports","@ember-data/model"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"belongsTo",{enumerable:!0,get:function(){return t.belongsTo}}),Object.defineProperty(e,"hasMany",{enumerable:!0,get:function(){return t.hasMany}})})),define("ember-data/serializer",["exports","@ember-data/serializer"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("ember-data/serializers/embedded-records-mixin",["exports","@ember-data/serializer/rest"],(function(e,t){"use strict" @@ -5269,18 +4805,14 @@ else if((0,t.isPlainObject)(a))for(u in a)e(s+"["+u+"]",a[u]) else n(i,s,a) else if(Array.isArray(a))for(o=0,l=a.length;o2&&void 0!==arguments[2]?arguments[2]:{} -this._cacheUsed=!0 +return e._dict=null,delete e._dict,e}u.prototype={enableCache(){this.purgeCache(),this.singularize=function(e){return this._cacheUsed=!0,this._sCache[e]||(this._sCache[e]=this._singularize(e))},this.pluralize=function(e,t,r={}){this._cacheUsed=!0 var i=[e,t,r.withoutCount] -return this._pCache[i]||(this._pCache[i]=this._pluralize(e,t,r))}},purgeCache(){this._cacheUsed=!1,this._sCache=c(),this._pCache=c()},disableCache(){this._sCache=null,this._pCache=null,this.singularize=function(e){return this._singularize(e)},this.pluralize=function(){return this._pluralize(...arguments)}},plural(e,t){this._cacheUsed&&this.purgeCache(),this.rules.plurals.push([e,t.toLowerCase()])},singular(e,t){this._cacheUsed&&this.purgeCache(),this.rules.singular.push([e,t.toLowerCase()])},uncountable(e){this._cacheUsed&&this.purgeCache(),o(this.rules,[e.toLowerCase()])},irregular(e,t){this._cacheUsed&&this.purgeCache(),l(this.rules,[[e,t]])},pluralize(){return this._pluralize(...arguments)},_pluralize(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{} -return void 0===t?this.inflect(e,this.rules.plurals,this.rules.irregular):(1!==parseFloat(e)&&(t=this.inflect(t,this.rules.plurals,this.rules.irregular)),r.withoutCount?t:`${e} ${t}`)},singularize(e){return this._singularize(e)},_singularize(e){return this.inflect(e,this.rules.singular,this.rules.irregularInverse)},inflect(e,r,o){let l,u,c,d,h,p,f,m,g,v +return this._pCache[i]||(this._pCache[i]=this._pluralize(e,t,r))}},purgeCache(){this._cacheUsed=!1,this._sCache=c(),this._pCache=c()},disableCache(){this._sCache=null,this._pCache=null,this.singularize=function(e){return this._singularize(e)},this.pluralize=function(){return this._pluralize(...arguments)}},plural(e,t){this._cacheUsed&&this.purgeCache(),this.rules.plurals.push([e,t.toLowerCase()])},singular(e,t){this._cacheUsed&&this.purgeCache(),this.rules.singular.push([e,t.toLowerCase()])},uncountable(e){this._cacheUsed&&this.purgeCache(),o(this.rules,[e.toLowerCase()])},irregular(e,t){this._cacheUsed&&this.purgeCache(),l(this.rules,[[e,t]])},pluralize(){return this._pluralize(...arguments)},_pluralize(e,t,r={}){return void 0===t?this.inflect(e,this.rules.plurals,this.rules.irregular):(1!==parseFloat(e)&&(t=this.inflect(t,this.rules.plurals,this.rules.irregular)),r.withoutCount?t:`${e} ${t}`)},singularize(e){return this._singularize(e)},_singularize(e){return this.inflect(e,this.rules.singular,this.rules.irregularInverse)},inflect(e,r,o){let l,u,c,d,h,p,f,m,g,v if(f=!e||i.test(e),m=a.test(e),f)return e if(d=e.toLowerCase(),h=n.exec(e)||s.exec(e),h&&(p=h[2].toLowerCase()),v=this.rules.uncountable[d]||this.rules.uncountable[p],v)return e for(g in o)if(d.match(g+"$"))return u=o[g],m&&o[p]&&(u=(0,t.capitalize)(u),g=(0,t.capitalize)(g)),e.replace(new RegExp(g,"i"),u) for(var b=r.length;b>0&&(l=r[b-1],g=l[0],!g.test(e));b--);return l=l||[],g=l[0],u=l[1],c=e.replace(g,u),c}},u.defaultRules=r.default,u.inflector=new u(r.default) -var d=u -e.default=d})),define("ember-inflector/lib/system/string",["exports","ember-inflector/lib/system/inflector"],(function(e,t){"use strict" +e.default=u})),define("ember-inflector/lib/system/string",["exports","ember-inflector/lib/system/inflector"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.pluralize=function(){return t.default.inflector.pluralize(...arguments)},e.singularize=function(e){return t.default.inflector.singularize(e)}})),define("ember-inflector/lib/utils/make-helper",["exports","ember","@ember/component/helper"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(r.default)return r.default.helper(e) if(t.default.HTMLBars)return t.default.HTMLBars.makeBoundHelper(e) @@ -5314,22 +4843,21 @@ return i.name||(i.name=e.slice(e.lastIndexOf("/")+1)),i}function i(e,t){return-1 0===c.lastIndexOf(n,0)?i(c,"-test")||a.push(c):0===c.lastIndexOf(s,0)&&(i(c,"-test")||o.push(c))}(function(e,t){for(var i=0;i{(0,r.scheduleOnce)("afterRender",this,this._updateTitle)})),this._validateExistingTitleElement() +e.default=(a=(0,i.inject)("page-title"),o=(0,i.inject)("router"),l=(0,i.inject)("-document"),u=class extends i.default{constructor(){super(...arguments),p(this,"pageTitle",c,this),p(this,"router",d,this),p(this,"document",h,this),f(this,"tokens",[]),f(this,"_defaultConfig",{separator:" | ",prepend:!0,replace:null}),f(this,"scheduleTitleUpdate",(()=>{(0,r.scheduleOnce)("afterRender",this,this._updateTitle)})),this._validateExistingTitleElement() let e=(0,t.getOwner)(this).resolveRegistration("config:environment") e.pageTitle&&["separator","prepend","replace"].forEach((t=>{(0,n.isEmpty)(e.pageTitle[t])||(this._defaultConfig[t]=e.pageTitle[t])})),this.router.on(v,this.scheduleTitleUpdate)}applyTokenDefaults(e){let t=this._defaultConfig.separator,r=this._defaultConfig.prepend,i=this._defaultConfig.replace null==e.separator&&(e.separator=t),null==e.prepend&&null!=r&&(e.prepend=r),null==e.replace&&null!=i&&(e.replace=i)}inheritFromPrevious(e){let t=e.previous @@ -5353,21 +4881,19 @@ g?this.updateFastbootTitle(e):this.document.title=e,this.pageTitle.titleDidUpdat const t=this.document.head,r=t.childNodes for(let s=0;so.length?e+":"+t.slice(o.length):void 0},_extractDefaultExport(e){let t=this._moduleRegistry.get(e,null,null,!0) return t&&t.default&&(t=t.default),t}}) o.reopenClass({moduleBasedResolver:!0}) -var l=o -e.default=l})),define("ember-resolver/utils/class-factory",["exports"],(function(e){"use strict" +e.default=o})),define("ember-resolver/utils/class-factory",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return{create:t=>"function"==typeof e.extend?e.extend(t):e}}})),define("ember-test-waiters/index",["exports","@ember/debug","@ember/test-waiters"],(function(e,t,r){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})) diff --git a/examples_build/ember/index.html b/examples_build/ember/index.html index 03957e61..1a26ad14 100644 --- a/examples_build/ember/index.html +++ b/examples_build/ember/index.html @@ -2,7 +2,7 @@ - Emberjs + Emberjs Example - + @@ -19,9 +19,9 @@ - - - + + + diff --git a/examples_build/react/asset-manifest.json b/examples_build/react/asset-manifest.json index 8d44ac06..f273de7e 100644 --- a/examples_build/react/asset-manifest.json +++ b/examples_build/react/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/static/css/main.986591f0.css", - "main.js": "/static/js/main.1aa7f29a.js", + "main.js": "/static/js/main.f214b795.js", "index.html": "/index.html", "main.986591f0.css.map": "/static/css/main.986591f0.css.map", - "main.1aa7f29a.js.map": "/static/js/main.1aa7f29a.js.map" + "main.f214b795.js.map": "/static/js/main.f214b795.js.map" }, "entrypoints": [ "static/css/main.986591f0.css", - "static/js/main.1aa7f29a.js" + "static/js/main.f214b795.js" ] } \ No newline at end of file diff --git a/examples_build/react/index.html b/examples_build/react/index.html index 2fb73bef..4819615a 100644 --- a/examples_build/react/index.html +++ b/examples_build/react/index.html @@ -1 +1 @@ -React App
\ No newline at end of file +React App
\ No newline at end of file diff --git a/examples_build/react/static/js/main.1aa7f29a.js b/examples_build/react/static/js/main.1aa7f29a.js deleted file mode 100644 index 5380358a..00000000 --- a/examples_build/react/static/js/main.1aa7f29a.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.1aa7f29a.js.LICENSE.txt */ -!function(){var e={53:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(468);var r,l=(r=n(430))&&r.__esModule?r:{default:r};function a(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:null,r=/^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=.]+$/g,l=/^\d{2,8}:(|test)publickey_.+$/g;return this.loaded?this.getKrypton(t):e?t?r.test(e)?l.test(t)?(this.domain=e,this.publicKey=t,this.formToken=n,this.domain&&this.publicKey?this.loadKryptonClient():Promise.reject("The library cannot be loaded")):(console.error("Public key format should be shopId:[test]publickey_*"),Promise.reject("[".concat(t,"] is not a valid public key"))):(console.error("Domain format should be https://domain.name"),Promise.reject("[".concat(e,"] is not a valid endpoint domain"))):Promise.reject("Public key not defined"):Promise.reject("Domain not defined")}},{key:"loadKryptonClient",value:function(){var e=this;if(!this.loading){var t=this.publicKey,n=this.domain;this.loading=!0;var r=document.createElement("script");r.type="text/javascript",/^.+\/$/.test(n)||(n+="/"),r.src="".concat(n,"static/js/krypton-client/V4.0/stable/kr-payment-form.min.js"),r.setAttribute("kr-public-key",t),r.setAttribute("kr-spa-mode","true"),this.formToken&&r.setAttribute("kr-form-token",this.formToken),!document.querySelector('script[src="'.concat(r.src,'"]'))&&document.body?document.body.appendChild(r):document.body||console.warn("document.body is undefined")}return new Promise((function(t){(0,l.default)(window,"KR",(function(){(0,l.default)(window.KR,"ready",(function(){e.loaded=!0,e.loading=!1,t({KR:window.KR})}))}))}))}},{key:"getKrypton",value:function(e){var t=this;return new Promise((function(n,r){e&&e!==t.publicKey?window.KR.setFormConfig({publicKey:e}).then(n).catch(r):n({KR:window.KR})}))}}],n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),i=new o;t.default=i},523:function(e,t,n){"use strict";var r;t.Z=void 0;var l=((r=n(53))&&r.__esModule?r:{default:r}).default;t.Z=l},430:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:150,l=function l(){e[t]?n():setTimeout(l,r)};setTimeout(l,0)}},468:function(e,t,n){"use strict";e.exports=n(229).polyfill()},229:function(e,t,n){e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"===typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=0,a=void 0,o=void 0,i=function(e,t){w[l]=e,w[l+1]=t,2===(l+=2)&&(o?o(k):_())};function u(e){o=e}function s(e){i=e}var c="undefined"!==typeof window?window:void 0,f=c||{},d=f.MutationObserver||f.WebKitMutationObserver,p="undefined"===typeof self&&"undefined"!==typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function m(){return function(){return process.nextTick(k)}}function v(){return"undefined"!==typeof a?function(){a(k)}:b()}function y(){var e=0,t=new d(k),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function g(){var e=new MessageChannel;return e.port1.onmessage=k,function(){return e.port2.postMessage(0)}}function b(){var e=setTimeout;return function(){return e(k,1)}}var w=new Array(1e3);function k(){for(var e=0;e