UNPKG

@dooboostore/simple-boot-http-server-ssr

Version:
2 lines 29.4 kB
/*! For license information please see SaveAroundAfter.js.LICENSE.txt */ var t={49783:(t,e,r)=>{r.d(e,{Op:()=>f});var n={5053:(t,e,r)=>{r.d(e,{d:()=>s});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,s=!a&&!u,f={create:a?function(){return W(Object.create(null))}:u?function(){return W({__proto__:null})}:function(){return W({})},has:s?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:s?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,F(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!F(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(F(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),y="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new l}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),d="function"==typeof WeakMap?WeakMap:function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var t;return!j(p)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),j(t)&&(t=function(){var t,r,n,i;j(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new d;return{isProviderFor:function(t,e){var r=a.get(t);return!(j(r)||!r.has(e))||!!i(t,e).length&&(j(r)&&(r=new y,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new d,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case j(r):r=e;break;case r===e:break;case j(n):n=e;break;case n===e:break;default:void 0===i&&(i=new y),i.add(e)}},getProvider:s,setProvider:function(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=s(t,e);if(n!==r){if(!j(n))return!1;var i=o.get(t);j(i)&&(i=new l,o.set(t,i)),i.set(e,r)}return!0}};return a;function u(e,o){if(!j(r)){if(r.isProviderFor(e,o))return r;if(!j(n)){if(n.isProviderFor(e,o))return r;if(!j(i))for(var a=z(i);;){var u=I(a);if(!u)return;var s=K(u);if(s.isProviderFor(e,o))return D(a),s}}}if(!j(t)&&t.isProviderFor(e,o))return t}function s(t,e){var r,n=o.get(t);return j(n)||(r=n.get(e)),j(r)?(j(r=u(t,e))||(j(n)&&(n=new l,o.set(t,n)),n.set(e,r)),r):r}function f(t){if(j(t))throw new TypeError;return r===t||n===t||!j(i)&&i.has(t)}}()),!j(p)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new d,r={isProviderFor:function(t,r){var n=e.get(t);return!j(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!j(i)&&P(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!j(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(j(i))return r;for(var o=z(i.keys()),a=0;;){var u=I(o);if(!u)return r.length=a,r;var s=K(u);try{r[a]=s}catch(t){try{D(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(j(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);j(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return h.registerProvider(r),r;function n(n,i,o){var a=e.get(n),u=!1;if(j(a)){if(!o)return;a=new l,e.set(n,a),u=!0}var s=a.get(i);if(j(s)){if(!o)return;if(s=new l,a.set(i,s),!t.setProvider(n,i,r))throw a.delete(i),u&&e.delete(n),new Error("Wrong provider for target.")}return s}}(h);function w(t,e,r){if(_(t,e,r))return!0;var n=U(e);return!S(n)&&w(t,n,r)}function _(t,e,r){var n=C(e,r,!1);return!j(n)&&P(n.OrdinaryHasOwnMetadata(t,e,r))}function g(t,e,r){if(_(t,e,r))return b(t,e,r);var n=U(e);return S(n)?void 0:g(t,n,r)}function b(t,e,r){var n=C(e,r,!1);if(!j(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){C(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function M(t,e){var r=m(t,e),n=U(t);if(null===n)return r;var i=M(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new y,a=[],u=0,s=r;u<s.length;u++){var f=s[u];o.has(f)||(o.add(f),a.push(f))}for(var c=0,l=i;c<l.length;c++)f=l[c],o.has(f)||(o.add(f),a.push(f));return a}function m(t,e){var r=C(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function k(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function j(t){return void 0===t}function S(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function P(t){return!!t}function T(t){var e=function(t){switch(k(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(E(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(R(n)&&!E(r=n.call(t)))return r;if(R(e=t.valueOf)&&!E(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function x(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function R(t){return"function"==typeof t}function A(t){return"function"==typeof t}function F(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!R(r))throw new TypeError;return r}}function z(t){var e=N(t,o);if(!R(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}function K(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function D(t){var e=t.return;e&&e.call(t)}function U(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===c)return e;if(e!==c)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function C(t,e,r){var n=h.getProvider(t,e);if(!j(n))return n;if(r){if(h.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function W(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(j(r)){if(!x(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!j(n)&&!S(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!x(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!j(n)&&!S(n))throw new TypeError;return S(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!j(o)&&!S(o)){if(!E(o))throw new TypeError;n=o}}return n}(t,e,r=T(r),n)}),t("metadata",function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!j(n)&&!function(t){switch(k(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!E(r))throw new TypeError;return j(n)||(n=T(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),w(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),_(t,e,r)}),t("getMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),g(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),b(t,e,r)}),t("getMetadataKeys",function(t,e){if(!E(t))throw new TypeError;return j(e)||(e=T(e)),M(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!E(t))throw new TypeError;return j(e)||(e=T(e)),m(t,e)}),t("deleteMetadata",function(t,e,r){if(!E(e))throw new TypeError;if(j(r)||(r=T(r)),!E(e))throw new TypeError;j(r)||(r=T(r));var n=C(e,r,!1);return!j(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,u={};o.d(u,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const s=u.d},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,u={__proto__:[]}instanceof Array,s=!a&&!u,f={create:a?function(){return W(Object.create(null))}:u?function(){return W({__proto__:null})}:function(){return W({})},has:s?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:s?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}(),n=function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,F(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,i)},e.prototype.values=function(){return new r(this._keys,this._values,a)},e.prototype.entries=function(){return new r(this._keys,this._values,u)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!F(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(F(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();return n;function i(t,e){return t}function a(t,e){return e}function u(t,e){return[t,e]}}(),y="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new l}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),d="function"==typeof WeakMap?WeakMap:function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var t;return!j(p)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),j(t)&&(t=function(){var t,r,n,i;j(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new d;return{isProviderFor:function(t,e){var r=a.get(t);return!(j(r)||!r.has(e))||!!i(t,e).length&&(j(r)&&(r=new y,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new d,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case j(r):r=e;break;case r===e:break;case j(n):n=e;break;case n===e:break;default:void 0===i&&(i=new y),i.add(e)}},getProvider:s,setProvider:function(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=s(t,e);if(n!==r){if(!j(n))return!1;var i=o.get(t);j(i)&&(i=new l,o.set(t,i)),i.set(e,r)}return!0}};return a;function u(e,o){if(!j(r)){if(r.isProviderFor(e,o))return r;if(!j(n)){if(n.isProviderFor(e,o))return r;if(!j(i))for(var a=z(i);;){var u=I(a);if(!u)return;var s=K(u);if(s.isProviderFor(e,o))return D(a),s}}}if(!j(t)&&t.isProviderFor(e,o))return t}function s(t,e){var r,n=o.get(t);return j(n)||(r=n.get(e)),j(r)?(j(r=u(t,e))||(j(n)&&(n=new l,o.set(t,n)),n.set(e,r)),r):r}function f(t){if(j(t))throw new TypeError;return r===t||n===t||!j(i)&&i.has(t)}}()),!j(p)&&E(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new d,r={isProviderFor:function(t,r){var n=e.get(t);return!j(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!j(i)&&P(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!j(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(j(i))return r;for(var o=z(i.keys()),a=0;;){var u=I(o);if(!u)return r.length=a,r;var s=K(u);try{r[a]=s}catch(t){try{D(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(j(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);j(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return h.registerProvider(r),r;function n(n,i,o){var a=e.get(n),u=!1;if(j(a)){if(!o)return;a=new l,e.set(n,a),u=!0}var s=a.get(i);if(j(s)){if(!o)return;if(s=new l,a.set(i,s),!t.setProvider(n,i,r))throw a.delete(i),u&&e.delete(n),new Error("Wrong provider for target.")}return s}}(h);function w(t,e,r){if(_(t,e,r))return!0;var n=U(e);return!S(n)&&w(t,n,r)}function _(t,e,r){var n=C(e,r,!1);return!j(n)&&P(n.OrdinaryHasOwnMetadata(t,e,r))}function g(t,e,r){if(_(t,e,r))return b(t,e,r);var n=U(e);return S(n)?void 0:g(t,n,r)}function b(t,e,r){var n=C(e,r,!1);if(!j(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){C(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function M(t,e){var r=m(t,e),n=U(t);if(null===n)return r;var i=M(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new y,a=[],u=0,s=r;u<s.length;u++){var f=s[u];o.has(f)||(o.add(f),a.push(f))}for(var c=0,l=i;c<l.length;c++)f=l[c],o.has(f)||(o.add(f),a.push(f));return a}function m(t,e){var r=C(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function k(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function j(t){return void 0===t}function S(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function P(t){return!!t}function T(t){var e=function(t){switch(k(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(E(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(R(n)&&!E(r=n.call(t)))return r;if(R(e=t.valueOf)&&!E(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function x(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function R(t){return"function"==typeof t}function A(t){return"function"==typeof t}function F(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!R(r))throw new TypeError;return r}}function z(t){var e=N(t,o);if(!R(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}function K(t){return t.value}function I(t){var e=t.next();return!e.done&&e}function D(t){var e=t.return;e&&e.call(t)}function U(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===c)return e;if(e!==c)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function C(t,e,r){var n=h.getProvider(t,e);if(!j(n))return n;if(r){if(h.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function W(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(j(r)){if(!x(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!j(n)&&!S(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!x(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!j(n)&&!S(n))throw new TypeError;return S(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!j(o)&&!S(o)){if(!E(o))throw new TypeError;n=o}}return n}(t,e,r=T(r),n)}),t("metadata",function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!j(n)&&!function(t){switch(k(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!E(r))throw new TypeError;return j(n)||(n=T(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),w(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),_(t,e,r)}),t("getMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),g(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!E(e))throw new TypeError;return j(r)||(r=T(r)),b(t,e,r)}),t("getMetadataKeys",function(t,e){if(!E(t))throw new TypeError;return j(e)||(e=T(e)),M(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!E(t))throw new TypeError;return j(e)||(e=T(e)),m(t,e)}),t("deleteMetadata",function(t,e,r){if(!E(e))throw new TypeError;if(j(r)||(r=T(r)),!E(e))throw new TypeError;j(r)||(r=T(r));var n=C(e,r,!1);return!j(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,u,s=(o(6404),o(5053),{d:(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)});s.d({},{U:()=>a}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(a||(a={})),function(t){t.Singleton="Singleton",t.Transient="Transient"}(u||(u={})),new Map,new Set,Symbol("Sim"),Symbol("PostConstruct");const f={}.Op}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};r.d(n,{D:()=>o,c:()=>a});var i=r(49783);const o=(t,e,r,n)=>{const o=t._SimpleBoot_simstanceManager,a=t._SimpleBoot_simOption,u=(0,i.Op)(t);if(o&&a&&u?.scheme){a.window.server_side_data||(a.window.server_side_data={});const t=u.scheme+"_"+e;n instanceof Promise?n.then(e=>(a.window.server_side_data[t]=JSON.stringify(e),e)):a.window.server_side_data[t]=JSON.stringify(n)}return n},a=t=>t.aroundStorage,u=n.D,s=n.c;export{u as SaveAroundAfter,s as getStorage};