@tsed/core 7.31.0-rc.1 → 7.31.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/jest.config.js CHANGED
@@ -5,10 +5,10 @@ module.exports = {
5
5
  ...require("@tsed/jest-config"),
6
6
  coverageThreshold: {
7
7
  global: {
8
- statements: 99.17,
9
- branches: 95.2,
10
- functions: 97.42,
11
- lines: 99.17
8
+ statements: 98.85,
9
+ branches: 94.4,
10
+ functions: 95.63,
11
+ lines: 98.85
12
12
  }
13
13
  }
14
14
  };
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see core.umd.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.core=e():t.core=e()}(self,(()=>(()=>{var t={738:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=i(t);function i(t,e){return function(r,n){"function"!=typeof t[r]&&Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0===n.Reflect?n.Reflect=t:o=i(n.Reflect,o),function(t){var e=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!i&&!s,c={create:i?function(){return N(Object.create(null))}:s?function(){return N({__proto__:null})}:function(){return N({})},has:u?function(t,r){return e.call(t,r)}:function(t,e){return e in t},get:u?function(t,r){return e.call(t,r)?t[r]:void 0}:function(t,e){return t[e]}},a=Object.getPrototypeOf(Function),f="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,l=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?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,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,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,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),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 s(t,e){return[t,e]}}():Map,p=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?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.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,y=new(f||"function"!=typeof WeakMap?function(){var t=c.create(),r=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(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@@"+s()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!e.call(t,r)){if(!n)return;Object.defineProperty(t,r,{value:c.create()})}return t[r]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function s(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):i(new Uint8Array(t),t):i(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",n=0;n<16;++n){var o=e[n];4!==n&&6!==n&&8!==n||(r+="-"),o<16&&(r+="0"),r+=o.toString(16).toLowerCase()}return r}}():WeakMap);function h(t,e,r){var n=y.get(t);if(E(n)){if(!r)return;n=new l,y.set(t,n)}var o=n.get(e);if(E(o)){if(!r)return;o=new l,n.set(e,o)}return o}function d(t,e,r){if(g(t,e,r))return!0;var n=k(e);return!S(n)&&d(t,n,r)}function g(t,e,r){var n=h(e,r,!1);return!E(n)&&!!n.has(t)}function v(t,e,r){if(g(t,e,r))return m(t,e,r);var n=k(e);return S(n)?void 0:v(t,n,r)}function m(t,e,r){var n=h(e,r,!1);if(!E(n))return n.get(t)}function b(t,e,r,n){h(r,n,!0).set(t,e)}function O(t,e){var r=w(t,e),n=k(t);if(null===n)return r;var o=O(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,s=[],u=0,c=r;u<c.length;u++){var a=c[u];i.has(a)||(i.add(a),s.push(a))}for(var f=0,l=o;f<l.length;f++)a=l[f],i.has(a)||(i.add(a),s.push(a));return s}function w(t,e){var r=[],n=h(t,e,!1);if(E(n))return r;for(var i=function(t){var e=D(t,o);if(!M(e))throw new TypeError;var r=e.call(t);if(!j(r))throw new TypeError;return r}(n.keys()),s=0;;){var u=x(i);if(!u)return r.length=s,r;var c=u.value;try{r[s]=c}catch(t){try{C(i)}finally{throw t}}s++}}function _(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 E(t){return void 0===t}function S(t){return null===t}function j(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=D(t,n);if(void 0!==o){var i=o.call(t,r);if(j(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(M(r)&&!j(o=r.call(t)))return o;if(M(n=t.valueOf)&&!j(o=n.call(t)))return o}else{var n;if(M(n=t.valueOf)&&!j(o=n.call(t)))return o;var o,i=t.toString;if(M(i)&&!j(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function P(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function M(t){return"function"==typeof t}function R(t){return"function"==typeof t}function D(t,e){var r=t[e];if(null!=r){if(!M(r))throw new TypeError;return r}}function x(t){var e=t.next();return!e.done&&e}function C(t){var e=t.return;e&&e.call(t)}function k(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===a)return e;if(e!==a)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function N(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(E(r)){if(!A(t))throw new TypeError;if(!R(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!E(n)&&!S(n)){if(!R(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!j(e))throw new TypeError;if(!j(n)&&!E(n)&&!S(n))throw new TypeError;return S(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!E(i)&&!S(i)){if(!j(i))throw new TypeError;n=i}}return n}(t,e,r=P(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!j(r))throw new TypeError;if(!E(n)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;b(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!j(r))throw new TypeError;return E(n)||(n=P(n)),b(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=P(r)),d(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=P(r)),g(t,e,r)})),t("getMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=P(r)),v(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=P(r)),m(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!j(t))throw new TypeError;return E(e)||(e=P(e)),O(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!j(t))throw new TypeError;return E(e)||(e=P(e)),w(t,e)})),t("deleteMetadata",(function(t,e,r){if(!j(e))throw new TypeError;E(r)||(r=P(r));var n=h(e,r,!1);if(E(n))return!1;if(!n.delete(t))return!1;if(n.size>0)return!0;var o=y.get(e);return o.delete(r),o.size>0||y.delete(e),!0}))}(o)}()}(n||(n={}))},330:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},82:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},335:(t,e,r)=>{var n=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var o=arguments,i=o.length,u=String(t).replace(n,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(t){return"[Circular]"}default:return t}})),c=o[r];r<i;c=o[++r])h(c)||!b(c)?u+=" "+c:u+=" "+s(c);return u},e.deprecate=function(t,n){if(v(r.g.process))return function(){return e.deprecate(t,n).apply(this,arguments)};if(!0===process.noDeprecation)return t;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),o=!0}return t.apply(this,arguments)}};var o,i={};function s(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),a(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function c(t,e){return t}function a(t,r,n){if(t.customInspect&&r&&_(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return g(o)||(o=a(t,o,n)),o}var i=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):h(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var s=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),w(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(r);if(0===s.length){if(_(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(m(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return t.stylize(Date.prototype.toString.call(r),"date");if(w(r))return f(r)}var b,E="",S=!1,j=["{","}"];return p(r)&&(S=!0,j=["[","]"]),_(r)&&(E=" [Function"+(r.name?": "+r.name:"")+"]"),m(r)&&(E=" "+RegExp.prototype.toString.call(r)),O(r)&&(E=" "+Date.prototype.toUTCString.call(r)),w(r)&&(E=" "+f(r)),0!==s.length||S&&0!=r.length?n<0?m(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),b=S?function(t,e,r,n,o){for(var i=[],s=0,u=e.length;s<u;++s)P(e,String(s))?i.push(l(t,e,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(l(t,e,r,n,o,!0))})),i}(t,r,n,u,s):s.map((function(e){return l(t,r,n,u,e,S)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(b,E,j)):j[0]+E+j[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,o,i){var s,u,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),P(n,o)||(s="["+o+"]"),u||(t.seen.indexOf(c.value)<0?(u=h(r)?a(t,c.value,null):a(t,c.value,r-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return u;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function p(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function h(t){return null===t}function d(t){return"number"==typeof t}function g(t){return"string"==typeof t}function v(t){return void 0===t}function m(t){return b(t)&&"[object RegExp]"===E(t)}function b(t){return"object"==typeof t&&null!==t}function O(t){return b(t)&&"[object Date]"===E(t)}function w(t){return b(t)&&("[object Error]"===E(t)||t instanceof Error)}function _(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(v(o)&&(o=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var r=process.pid;i[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else i[t]=function(){};return i[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=y,e.isNull=h,e.isNullOrUndefined=function(t){return null==t},e.isNumber=d,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=m,e.isObject=b,e.isDate=O,e.isError=w,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",T(),e.format.apply(e,arguments))},e.inherits=r(330),e._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},340:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=340,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function t(t,e){return Object.getOwnPropertyDescriptor(t&&t.prototype||t,e)}function e(e,r){return t(e,r)?.value}function o(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,enumerable:!0};return o.configurable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}r.r(n),r.d(n,{AnyToPromise:()=>yt,AnyToPromiseResponseTypes:()=>lt,AnyToPromiseStatus:()=>ft,CLASS_STORE:()=>q,Configurable:()=>o,DecoratorTypes:()=>i,Deprecated:()=>u,Enumerable:()=>c,Env:()=>pt,EnvTypes:()=>ht,Hooks:()=>dt,METHOD_STORE:()=>Y,Metadata:()=>G,NotConfigurable:()=>a,NotEnumerable:()=>f,PARAM_STORE:()=>Q,PROPERTY_STORE:()=>Z,Readonly:()=>p,Store:()=>et,StoreFn:()=>rt,StoreMerge:()=>nt,StoreSet:()=>ot,Type:()=>gt,UnsupportedDecoratorType:()=>vt,Writable:()=>l,ancestorOf:()=>_t,ancestorsOf:()=>St,catchAsyncError:()=>bt,catchError:()=>mt,classOf:()=>h,cleanObject:()=>Nt,constructorOf:()=>Bt,createInstance:()=>N,decorateMethodsOf:()=>Pt,decoratorArgs:()=>At,decoratorTypeOf:()=>d,deepClone:()=>k,deepMerge:()=>L,descriptorOf:()=>t,getClass:()=>y,getClassOrSymbol:()=>Kt,getConstructor:()=>Ft,getConstructorArgNames:()=>Vt,getEnumerableKeys:()=>Jt,getHostInfoFromPort:()=>Ct,getInheritedClass:()=>Et,getValue:()=>Wt,importPackage:()=>kt,inheritedDescriptorOf:()=>Mt,isArray:()=>g,isArrayOrArrayClass:()=>v,isArrowFn:()=>zt,isBoolean:()=>w,isBooleanOrBooleanClass:()=>_,isBuffer:()=>x,isClass:()=>Ut,isClassObject:()=>It,isCollection:()=>Gt,isDate:()=>m,isEmpty:()=>qt,isEnumerable:()=>$t,isFunction:()=>b,isInheritedFrom:()=>Yt,isMethodDescriptor:()=>e,isNil:()=>O,isNumber:()=>E,isNumberOrNumberClass:()=>S,isObject:()=>it,isObservable:()=>st,isPlainObject:()=>Lt,isPrimitive:()=>A,isPrimitiveClass:()=>M,isPrimitiveOrPrimitiveClass:()=>P,isPromise:()=>ut,isProtectedKey:()=>F,isRegExp:()=>C,isSerializable:()=>Zt,isStream:()=>ct,isString:()=>j,isStringOrStringClass:()=>T,isSymbol:()=>R,isSymbolOrSymbolClass:()=>D,mergeReducerBuilder:()=>z,methodsOf:()=>Tt,nameOf:()=>H,nameOfClass:()=>U,nameOfSymbol:()=>K,objectKeys:()=>B,primitiveOf:()=>Qt,prototypeOf:()=>jt,setValue:()=>Xt,toMap:()=>ee,toStringConstructor:()=>Ht,uniq:()=>Ot,uniqBy:()=>wt,useDecorators:()=>Rt,useMethodDecorator:()=>Dt,useMethodDecorators:()=>xt});var i,s=r(335);function u(t){return(e,r,n)=>{const o=n.value;return n.value=(0,s.deprecate)(o,t),n}}function c(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,configurable:!0};return o.enumerable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function a(){return o(!1)}function f(){return c(!1)}function l(e=!0){return(r,n)=>{const o=t(r,n)||{configurable:!0,enumerable:!0};return o.writable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function p(){return l(!1)}function y(t){return t.prototype?t:t.constructor}function h(t){return y(t)}function d(t){const[e,r,n]=t,o=t=>e!==h(e)?t:`${t}.static`;return"number"==typeof n?r?o("parameter"):"parameter.constructor":n&&n.value?o("method"):r&&void 0===n||n?o("property"):i.CLASS}function g(t){return Array.isArray(t)}function v(t){return t===Array||g(t)}function m(t){return t===Date||t instanceof Date&&!isNaN(+t)}function b(t){return"function"==typeof t}function O(t){return null==t}function w(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function _(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function E(t){return"number"==typeof t}function S(t){return"number"==typeof t||t instanceof Number||t===Number}function j(t){return"string"==typeof t}function T(t){return"string"==typeof t||t instanceof String||t===String}function P(t){return T(t)||S(t)||_(t)}function A(t){return j(t)||E(t)||w(t)}function M(t){return[String,Number,Boolean].includes(t)}function R(t){return"symbol"==typeof t}function D(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}function x(t){return"undefined"!=typeof Buffer&&(t===Buffer||t instanceof Buffer)}function C(t){return t instanceof RegExp}function k(t,e=new WeakMap){let r;if((t=>O(t)||A(t)||R(t)||b(t))(t))return t;if(x(t)){const e=Buffer.alloc(t.length);return t.copy(e),e}if(m(t))return new Date(t);if(C(t))return new RegExp(t);const n=e.get(t);if(n)return n;g(t)?r=[]:(r={},e.set(t,r));for(const n in t){const o=Object.getOwnPropertyDescriptor(t,n);o&&(b(o.value)?Object.defineProperty(r,n,o):r[n]=k(o.value,e))}if(!g(t)){const e=Reflect.getPrototypeOf(t);Reflect.setPrototypeOf(r,e)}return r}function N(t){return t&&h(t)!==Object?Object.create(t):{}}function F(t){return["__proto__","constructor","prototype"].includes(t)}function B(t){return Object.keys(t).filter((t=>!F(t)))}function z(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=L(e[o],r,n),e)}}!function(t){t.PARAM="parameter",t.PARAM_CTOR="parameter.constructor",t.PARAM_STC="parameter.static",t.PROP="property",t.PROP_STC="property.static",t.METHOD="method",t.METHOD_STC="method.static",t.CLASS="class"}(i||(i={}));const I=z(((t,e)=>t===e));function L(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return A(t)||R(t)||b(t)||void 0===e}(e,t))return e;if(Array.isArray(t)){const n=function({reducers:t,parentKey:e}){return t?e&&t[e]?t[e]:t.default||I:I}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}return[...B(t),...B(e)].reduce(((n,o)=>{const i=L(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i?n:{...n,[o]:i}}),N(t))}function U(t){return"function"==typeof t?t.name:t.constructor.name}const K=t=>t.toString().replace("Symbol(","").replace(")","");function H(t){switch(typeof t){default:return""+t;case"symbol":return K(t);case"function":return U(t)}}r(738);const V="design:paramtypes",$="design:type",J="design:returntype",W=new Map;class G{static get(t,e,r){return Reflect.getMetadata(t,h(e),r)}static getOwn(t,e,r){return Reflect.getOwnMetadata(t,h(e),r)}static getType(t,e){return Reflect.getMetadata($,t,e)}static getOwnType(t,e){return Reflect.getMetadata($,t,e)}static getReturnType(t,e){return Reflect.getMetadata(J,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(J,t,e)}static has(t,e,r){try{return Reflect.hasMetadata(t,h(e),r)}catch(t){}return!1}static hasOwn(t,e,r){return Reflect.hasOwnMetadata(t,h(e),r)}static delete(t,e,r){return Reflect.deleteMetadata(t,h(e),r)}static setParamTypes(t,e,r){return this.set(V,r,t.prototype,e)}static getTargetsFromPropertyKey=t=>W.has(t)&&W.get(t)||[];static set(t,e,r,n){const o=W.has(t)&&W.get(t)||[],i=h(r);-1===o.indexOf(i)&&(o.push(i),W.set(t,o)),Reflect.defineMetadata(t,e,h(r),n)}static getParamTypes(t,e){return Reflect.getMetadata(V,t,e)||[]}static getOwnParamTypes(t,e){return Reflect.getOwnMetadata(V,t,e)||[]}}const q="tsed:class:store",Y="tsed:method:store",Z="tsed:property:store",Q="tsed:param:store",X=new Map;function tt(t,...e){if(R(e[0]))return X.has(e[0])||X.set(e[0],new et),X.get(e[0]);{const r=G;return r.hasOwn(t,...e)||r.set(t,new et,...e),r.getOwn(t,...e)}}class et{_entries=new Map;static from(...t){return function(t){const[e,r,n]=t;switch(d(t)){case i.PARAM_CTOR:case i.PARAM_STC:case i.PARAM:const t=tt(Q,e,r);return t.has(""+n)||t.set(""+n,new et),t.get(""+n);case i.PROP:case i.PROP_STC:return tt(Z,e,r);case i.METHOD:case i.METHOD_STC:return tt(Y,e,r);case i.CLASS:return tt(q,e)}}(t)}static fromMethod(e,r){return et.from(e,r,t(e,r))}static mergeStoreFrom(t,e,...r){const n=et.from(t,...r);return et.from(e,...r)._entries.forEach(((t,e)=>{n.merge(e,t)})),n}static mergeStoreMethodFrom(e,r,n){return this.mergeStoreFrom(e,r,n,t(e,n))}get(t,e){return this._entries.get(H(t))||e}has(t){return this._entries.has(H(t))}set(t,e){return this._entries.set(H(t),e),this}delete(t){return this._entries.delete(H(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=k(e),n=k(n),e=r?L(e,n):L(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function rt(t){return(...e)=>{const r=et.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function nt(t,e){return rt((r=>{r.merge(t,e)}))}function ot(t,e){return rt((r=>{r.set(t,e)}))}function it(t){return"object"==typeof t}function st(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function ut(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function ct(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function at(t){return it(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var ft,lt,pt;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(ft||(ft={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(lt||(lt={}));class yt{status=ft.PENDING;args;#t;#e;#r=!1;#n;constructor({hasNextFunction:t=!1}={}){this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==ft.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:lt.DATA})}}call(t){if(this.isDone())return Promise.resolve(this);try{this.handle(t())}catch(t){this.reject(t)}return this.#n}reject(t){this.isDone()||(this.done(ft.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(ft.RESOLVED),this.#t({...t,state:ft.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(ft.CANCELED),this.#t({state:ft.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(st(t)&&(t=t.toPromise()),at(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(ct(t))return this.resolve({...e,type:lt.STREAM,data:t});if(ct(t)||Buffer.isBuffer(t))return this.resolve({...e,type:lt.BUFFER,data:t});if(ut(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&at(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:lt.DATA})}}isCanceledResponse(t){return t===ft.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(pt||(pt={}));const ht=pt;class dt{#o={};on(t,e){return this.#o[t]||(this.#o[t]=[]),this.#o[t].push(e),this}off(t,e){return this.#o[t]&&(this.#o[t]=this.#o[t].filter((t=>t===e))),this}emit(t,e=[],r=null){const n=this.#o[t];if(n?.length)for(const t of n)t.call(r,...e)}alter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=t.call(n,e,...r);return e}async asyncEmit(t,e=[],r=null){const n=this.#o[t];if(n?.length){const t=n.map((t=>t.call(r,...e)));await Promise.all(t)}}async asyncAlter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=await t.call(n,e,...r);return e}destroy(){this.#o={}}}const gt=Function;r.g.Type=gt;class vt extends Error{name;constructor(t,e){super(vt.buildMessage(t,e))}static buildMessage(t,e){const[r,n,o]=e,i=d(e),s=i.split("/")[0],u="parameter"===s?".["+o+"]":"",c=n?"."+n:"parameter"===s?".constructor":"",a=H(h(r))+c+u;return`${t.name} cannot be used as ${i} decorator on ${a}`}}function mt(t){try{t()}catch(t){return t}}async function bt(t){try{await t()}catch(t){return t}}function Ot(t){return Array.from(new Set(t).values())}function wt(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}function _t(t){return t&&Object.getPrototypeOf(t)}function Et(t){return _t(t)}function St(t){const e=[];let r=h(t);for(;r&&""!==H(r);)e.unshift(r),r=Et(r);return e}function jt(t){return h(t)===t?t.prototype:t}function Tt(t){const e=new Map;return St(t=h(t)).forEach((t=>{Reflect.ownKeys(jt(t)).forEach((r=>{"constructor"!==r&&e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function Pt(e,r){Tt(e).forEach((({target:n,propertyKey:o})=>{const i=jt(e);n!==h(e)&&(Object.defineProperty(i,o,{writable:!0,configurable:!0,value(...t){return jt(n)[o].apply(this,t)}}),et.mergeStoreMethodFrom(e,n,o));const s=r(i,o,t(e,o));s&&Object.defineProperty(i,o,s)}))}function At(e,r){return[e,r,t(e,r)]}function Mt(t,e){for(const r of St(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function Rt(...t){return(...e)=>{t.filter((t=>!!t)).forEach((t=>{t(...e)}))}}function Dt(e){return(r,n)=>e(r,n,t(r,n))}function xt(...e){return(r,n)=>{e.filter(Boolean).forEach((e=>e(r,n,t(r,n))))}}function Ct(t,e){let r="0.0.0.0",n=e;return"string"==typeof e&&e.indexOf(":")>-1&&([r,n]=e.split(":"),n=+n),{protocol:t,address:r,port:n,toString(){return[`${this.protocol}://${this.address}`,"number"==typeof this.port&&this.port].filter(Boolean).join(":")}}}async function kt(t,e=(()=>r(340)(t)),n=!1){try{return await e()}catch(t){if(!n)throw t;return{}}}function Nt(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>F(r)||e.includes(r)||void 0===n?t:{...t,[r]:n}),{})}function Ft(t){return"function"==typeof t?t:t.constructor}function Bt(t){return Ft(t)}function zt(t){return t&&b(t)&&!t.prototype}function It(t){return t===Object}function Lt(t){return It(h(t))&&t!==Object}function Ut(t){return!!t&&!zt(t)&&!(R(t)||P(t)||It(t)||m(t)||ut(t)||v(t)||x(t))}function Kt(t){return Ut(t)?h(t):t}function Ht(t){return`${(Bt(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function Vt(t){return Ht(t).split("constructor(")[1].split(")")[0].split(", ").filter(Boolean).map((t=>t.trim()))}function $t(t,e){const r=h(t);if(r){const t=Mt(r,e);if(t)return t.enumerable}return Object.prototype.propertyIsEnumerable.call(t,e)}function Jt(t){const e=[];for(const r in t)!F(r)&&$t(t,r)&&e.push(r);return e}function Wt(...t){const e=(t=>{const[e,r,n,o="."]=t;return it(r)||j(e)?{expression:e,scope:r,defaultValue:n,separator:o}:{expression:r,scope:e,defaultValue:n,separator:o}})(t);let r=e.scope;const{expression:n,defaultValue:o,separator:i}=e;if(!n)return r;if(!r)return o;const s=n.split(i),u=t=>{if(r){if(void 0!==r[t]||it(r)&&t in r)return r[t];if(b(r.get))return r.get(t)}};for(;(r=u(s.shift()))&&s.length;);return void 0===r?o:r}function Gt(t){return v(t)||t===Map||t instanceof Map||t===Set||t instanceof Set||t===WeakMap||t instanceof WeakMap||t===WeakSet||t instanceof WeakSet}function qt(t){return""===t||O(t)}function Yt(t,e,r=5){if(!t||!e)return!1;for(t=h(t),e=h(e);""!==H(t);){if(!r)return!1;if(t===e)return!0;t=_t(t),r--}return!1}function Zt(t){return!(Buffer.isBuffer(t)||ct(t)||w(t)||E(t)||j(t)||O(t))}function Qt(t){return T(t)?"string":S(t)?"number":_(t)?"boolean":"any"}function Xt(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!F(i)&&(s?("function"==typeof t.set?t.set(i,r):t[i]=r,0):("function"==typeof t.set?(t.has(i)||t.set(i,{}),t=t.get(i)):t=t[i]=t[i]||{},1)););var i,s}function te(t){return t?j(t)?e=>e[t]:t:(t,e)=>String(e)}function ee(t,e){if(g(t)){const r=te(e||"id");return t.reduce(((t,e,n)=>([].concat(r(e,n)).forEach((r=>{const n=t.get(r);e=n?.merge?.(e)||e,t.set(r,e)})),t)),new Map)}const r=te(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}})(),n})()));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.core=e():t.core=e()}(self,(()=>(()=>{var t={738:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=i(t);function i(t,e){return function(r,n){"function"!=typeof t[r]&&Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0===n.Reflect?n.Reflect=t:o=i(n.Reflect,o),function(t){var e=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!i&&!s,c={create:i?function(){return N(Object.create(null))}:s?function(){return N({__proto__:null})}:function(){return N({})},has:u?function(t,r){return e.call(t,r)}:function(t,e){return e in t},get:u?function(t,r){return e.call(t,r)?t[r]:void 0}:function(t,e){return t[e]}},a=Object.getPrototypeOf(Function),f="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,l=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?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,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,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,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),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 s(t,e){return[t,e]}}():Map,p=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?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.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,y=new(f||"function"!=typeof WeakMap?function(){var t=c.create(),r=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(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@@"+s()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!e.call(t,r)){if(!n)return;Object.defineProperty(t,r,{value:c.create()})}return t[r]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function s(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):i(new Uint8Array(t),t):i(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",n=0;n<16;++n){var o=e[n];4!==n&&6!==n&&8!==n||(r+="-"),o<16&&(r+="0"),r+=o.toString(16).toLowerCase()}return r}}():WeakMap);function h(t,e,r){var n=y.get(t);if(E(n)){if(!r)return;n=new l,y.set(t,n)}var o=n.get(e);if(E(o)){if(!r)return;o=new l,n.set(e,o)}return o}function d(t,e,r){if(g(t,e,r))return!0;var n=k(e);return!S(n)&&d(t,n,r)}function g(t,e,r){var n=h(e,r,!1);return!E(n)&&!!n.has(t)}function v(t,e,r){if(g(t,e,r))return m(t,e,r);var n=k(e);return S(n)?void 0:v(t,n,r)}function m(t,e,r){var n=h(e,r,!1);if(!E(n))return n.get(t)}function b(t,e,r,n){h(r,n,!0).set(t,e)}function w(t,e){var r=O(t,e),n=k(t);if(null===n)return r;var o=w(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,s=[],u=0,c=r;u<c.length;u++){var a=c[u];i.has(a)||(i.add(a),s.push(a))}for(var f=0,l=o;f<l.length;f++)a=l[f],i.has(a)||(i.add(a),s.push(a));return s}function O(t,e){var r=[],n=h(t,e,!1);if(E(n))return r;for(var i=function(t){var e=D(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!j(r))throw new TypeError;return r}(n.keys()),s=0;;){var u=x(i);if(!u)return r.length=s,r;var c=u.value;try{r[s]=c}catch(t){try{C(i)}finally{throw t}}s++}}function _(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 E(t){return void 0===t}function S(t){return null===t}function j(t){return"object"==typeof t?null!==t:"function"==typeof t}function P(t,e){switch(_(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=D(t,n);if(void 0!==o){var i=o.call(t,r);if(j(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(A(r)&&!j(o=r.call(t)))return o;if(A(n=t.valueOf)&&!j(o=n.call(t)))return o}else{var n;if(A(n=t.valueOf)&&!j(o=n.call(t)))return o;var o,i=t.toString;if(A(i)&&!j(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function T(t){var e=P(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function R(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function M(t){return"function"==typeof t}function D(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function x(t){var e=t.next();return!e.done&&e}function C(t){var e=t.return;e&&e.call(t)}function k(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===a)return e;if(e!==a)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function N(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(E(r)){if(!R(t))throw new TypeError;if(!M(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!E(n)&&!S(n)){if(!M(n))throw new TypeError;e=n}}return e}(t,e)}if(!R(t))throw new TypeError;if(!j(e))throw new TypeError;if(!j(n)&&!E(n)&&!S(n))throw new TypeError;return S(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!E(i)&&!S(i)){if(!j(i))throw new TypeError;n=i}}return n}(t,e,r=T(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!j(r))throw new TypeError;if(!E(n)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;b(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!j(r))throw new TypeError;return E(n)||(n=T(n)),b(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=T(r)),d(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=T(r)),g(t,e,r)})),t("getMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=T(r)),v(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!j(e))throw new TypeError;return E(r)||(r=T(r)),m(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!j(t))throw new TypeError;return E(e)||(e=T(e)),w(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!j(t))throw new TypeError;return E(e)||(e=T(e)),O(t,e)})),t("deleteMetadata",(function(t,e,r){if(!j(e))throw new TypeError;E(r)||(r=T(r));var n=h(e,r,!1);if(E(n))return!1;if(!n.delete(t))return!1;if(n.size>0)return!0;var o=y.get(e);return o.delete(r),o.size>0||y.delete(e),!0}))}(o)}()}(n||(n={}))},330:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},82:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},335:(t,e,r)=>{var n=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var o=arguments,i=o.length,u=String(t).replace(n,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(t){return"[Circular]"}default:return t}})),c=o[r];r<i;c=o[++r])h(c)||!b(c)?u+=" "+c:u+=" "+s(c);return u},e.deprecate=function(t,n){if(v(r.g.process))return function(){return e.deprecate(t,n).apply(this,arguments)};if(!0===process.noDeprecation)return t;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),o=!0}return t.apply(this,arguments)}};var o,i={};function s(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),a(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function c(t,e){return t}function a(t,r,n){if(t.customInspect&&r&&_(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return g(o)||(o=a(t,o,n)),o}var i=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):h(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var s=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(r);if(0===s.length){if(_(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(m(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return f(r)}var b,E="",S=!1,j=["{","}"];return p(r)&&(S=!0,j=["[","]"]),_(r)&&(E=" [Function"+(r.name?": "+r.name:"")+"]"),m(r)&&(E=" "+RegExp.prototype.toString.call(r)),w(r)&&(E=" "+Date.prototype.toUTCString.call(r)),O(r)&&(E=" "+f(r)),0!==s.length||S&&0!=r.length?n<0?m(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),b=S?function(t,e,r,n,o){for(var i=[],s=0,u=e.length;s<u;++s)T(e,String(s))?i.push(l(t,e,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(l(t,e,r,n,o,!0))})),i}(t,r,n,u,s):s.map((function(e){return l(t,r,n,u,e,S)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(b,E,j)):j[0]+E+j[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,o,i){var s,u,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),T(n,o)||(s="["+o+"]"),u||(t.seen.indexOf(c.value)<0?(u=h(r)?a(t,c.value,null):a(t,c.value,r-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return u;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function p(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function h(t){return null===t}function d(t){return"number"==typeof t}function g(t){return"string"==typeof t}function v(t){return void 0===t}function m(t){return b(t)&&"[object RegExp]"===E(t)}function b(t){return"object"==typeof t&&null!==t}function w(t){return b(t)&&"[object Date]"===E(t)}function O(t){return b(t)&&("[object Error]"===E(t)||t instanceof Error)}function _(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(v(o)&&(o=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var r=process.pid;i[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else i[t]=function(){};return i[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=y,e.isNull=h,e.isNullOrUndefined=function(t){return null==t},e.isNumber=d,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=m,e.isObject=b,e.isDate=w,e.isError=O,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],e].join(" ")}function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=r(330),e._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},340:t=>{function e(t){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}e.keys=()=>[],e.resolve=e,e.id=340,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function t(t,e){return Object.getOwnPropertyDescriptor(t&&t.prototype||t,e)}function e(e,r){return t(e,r)?.value}function o(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,enumerable:!0};return o.configurable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}r.r(n),r.d(n,{AnyToPromise:()=>yt,AnyToPromiseResponseTypes:()=>lt,AnyToPromiseStatus:()=>ft,CLASS_STORE:()=>q,Configurable:()=>o,DecoratorTypes:()=>i,Deprecated:()=>u,Enumerable:()=>c,Env:()=>pt,EnvTypes:()=>ht,Hooks:()=>dt,METHOD_STORE:()=>Y,Metadata:()=>G,NotConfigurable:()=>a,NotEnumerable:()=>f,PARAM_STORE:()=>Q,PROPERTY_STORE:()=>Z,Readonly:()=>p,Store:()=>et,StoreFn:()=>rt,StoreMerge:()=>nt,StoreSet:()=>ot,Type:()=>gt,UnsupportedDecoratorType:()=>vt,Writable:()=>l,ancestorOf:()=>Et,ancestorsOf:()=>jt,catchAsyncError:()=>bt,catchError:()=>mt,classOf:()=>h,cleanObject:()=>Ft,constructorOf:()=>zt,createInstance:()=>N,decorateMethodsOf:()=>Rt,decoratorArgs:()=>At,decoratorTypeOf:()=>d,deepClone:()=>k,deepMerge:()=>K,descriptorOf:()=>t,getClass:()=>y,getClassOrSymbol:()=>Ht,getConstructor:()=>Bt,getConstructorArgNames:()=>$t,getEnumerableKeys:()=>Wt,getHostInfoFromPort:()=>kt,getInheritedClass:()=>St,getValue:()=>Gt,importPackage:()=>Nt,inheritedDescriptorOf:()=>Mt,isArray:()=>g,isArrayOrArrayClass:()=>v,isArrowFn:()=>It,isBoolean:()=>O,isBooleanOrBooleanClass:()=>_,isBuffer:()=>x,isClass:()=>Ut,isClassObject:()=>Kt,isCollection:()=>qt,isDate:()=>m,isEmpty:()=>Yt,isEnumerable:()=>Jt,isFunction:()=>b,isInheritedFrom:()=>Zt,isMethodDescriptor:()=>e,isNil:()=>w,isNumber:()=>E,isNumberOrNumberClass:()=>S,isObject:()=>it,isObservable:()=>st,isPlainObject:()=>Lt,isPrimitive:()=>R,isPrimitiveClass:()=>A,isPrimitiveOrPrimitiveClass:()=>T,isPromise:()=>ut,isProtectedKey:()=>F,isRegExp:()=>C,isSerializable:()=>Qt,isStream:()=>ct,isString:()=>j,isStringOrStringClass:()=>P,isSymbol:()=>M,isSymbolOrSymbolClass:()=>D,mergeReducerBuilder:()=>z,methodsOf:()=>Tt,nameOf:()=>H,nameOfClass:()=>L,nameOfSymbol:()=>U,objectKeys:()=>B,primitiveOf:()=>Xt,prototypeOf:()=>Pt,proxyDelegation:()=>_t,setValue:()=>te,toMap:()=>re,toStringConstructor:()=>Vt,uniq:()=>wt,uniqBy:()=>Ot,useDecorators:()=>Dt,useMethodDecorator:()=>xt,useMethodDecorators:()=>Ct});var i,s=r(335);function u(t){return(e,r,n)=>{const o=n.value;return n.value=(0,s.deprecate)(o,t),n}}function c(e=!0){return(r,n)=>{const o=t(r,n)||{writable:!0,configurable:!0};return o.enumerable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function a(){return o(!1)}function f(){return c(!1)}function l(e=!0){return(r,n)=>{const o=t(r,n)||{configurable:!0,enumerable:!0};return o.writable=e,Object.defineProperty(r&&r.prototype||r,n,o),o}}function p(){return l(!1)}function y(t){return t.prototype?t:t.constructor}function h(t){return y(t)}function d(t){const[e,r,n]=t,o=t=>e!==h(e)?t:`${t}.static`;return"number"==typeof n?r?o("parameter"):"parameter.constructor":n&&n.value?o("method"):r&&void 0===n||n?o("property"):i.CLASS}function g(t){return Array.isArray(t)}function v(t){return t===Array||g(t)}function m(t){return t===Date||t instanceof Date&&!isNaN(+t)}function b(t){return"function"==typeof t}function w(t){return null==t}function O(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function _(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function E(t){return"number"==typeof t}function S(t){return"number"==typeof t||t instanceof Number||t===Number}function j(t){return"string"==typeof t}function P(t){return"string"==typeof t||t instanceof String||t===String}function T(t){return P(t)||S(t)||_(t)}function R(t){return j(t)||E(t)||O(t)}function A(t){return[String,Number,Boolean].includes(t)}function M(t){return"symbol"==typeof t}function D(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}function x(t){return"undefined"!=typeof Buffer&&(t===Buffer||t instanceof Buffer)}function C(t){return t instanceof RegExp}function k(t,e=new WeakMap){let r;if((t=>w(t)||R(t)||M(t)||b(t))(t))return t;if(x(t)){const e=Buffer.alloc(t.length);return t.copy(e),e}if(m(t))return new Date(t);if(C(t))return new RegExp(t);const n=e.get(t);if(n)return n;g(t)?r=[]:(r={},e.set(t,r));for(const n in t){const o=Object.getOwnPropertyDescriptor(t,n);o&&(b(o.value)?Object.defineProperty(r,n,o):r[n]=k(o.value,e))}if(!g(t)){const e=Reflect.getPrototypeOf(t);Reflect.setPrototypeOf(r,e)}return r}function N(t){return t&&h(t)!==Object?Object.create(t):{}}function F(t){return["__proto__","constructor","prototype"].includes(t)}function B(t){return Object.keys(t).filter((t=>!F(t)))}function z(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=K(e[o],r,n),e)}}!function(t){t.PARAM="parameter",t.PARAM_CTOR="parameter.constructor",t.PARAM_STC="parameter.static",t.PROP="property",t.PROP_STC="property.static",t.METHOD="method",t.METHOD_STC="method.static",t.CLASS="class"}(i||(i={}));const I=z(((t,e)=>t===e));function K(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return R(t)||M(t)||b(t)||void 0===e}(e,t))return e;if(Array.isArray(t)){const n=function({reducers:t,parentKey:e}){return t?e&&t[e]?t[e]:t.default||I:I}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}return[...B(t),...B(e)].reduce(((n,o)=>{const i=K(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i?n:{...n,[o]:i}}),N(t))}function L(t){return"function"==typeof t?t.name:t.constructor.name}const U=t=>t.toString().replace("Symbol(","").replace(")","");function H(t){switch(typeof t){default:return""+t;case"symbol":return U(t);case"function":return L(t)}}r(738);const V="design:paramtypes",$="design:type",J="design:returntype",W=new Map;class G{static get(t,e,r){return Reflect.getMetadata(t,h(e),r)}static getOwn(t,e,r){return Reflect.getOwnMetadata(t,h(e),r)}static getType(t,e){return Reflect.getMetadata($,t,e)}static getOwnType(t,e){return Reflect.getMetadata($,t,e)}static getReturnType(t,e){return Reflect.getMetadata(J,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(J,t,e)}static has(t,e,r){try{return Reflect.hasMetadata(t,h(e),r)}catch(t){}return!1}static hasOwn(t,e,r){return Reflect.hasOwnMetadata(t,h(e),r)}static delete(t,e,r){return Reflect.deleteMetadata(t,h(e),r)}static setParamTypes(t,e,r){return this.set(V,r,t.prototype,e)}static getTargetsFromPropertyKey=t=>W.has(t)&&W.get(t)||[];static set(t,e,r,n){const o=W.has(t)&&W.get(t)||[],i=h(r);-1===o.indexOf(i)&&(o.push(i),W.set(t,o)),Reflect.defineMetadata(t,e,h(r),n)}static getParamTypes(t,e){return Reflect.getMetadata(V,t,e)||[]}static getOwnParamTypes(t,e){return Reflect.getOwnMetadata(V,t,e)||[]}}const q="tsed:class:store",Y="tsed:method:store",Z="tsed:property:store",Q="tsed:param:store",X=new Map;function tt(t,...e){if(M(e[0]))return X.has(e[0])||X.set(e[0],new et),X.get(e[0]);{const r=G;return r.hasOwn(t,...e)||r.set(t,new et,...e),r.getOwn(t,...e)}}class et{_entries=new Map;static from(...t){return function(t){const[e,r,n]=t;switch(d(t)){case i.PARAM_CTOR:case i.PARAM_STC:case i.PARAM:const t=tt(Q,e,r);return t.has(""+n)||t.set(""+n,new et),t.get(""+n);case i.PROP:case i.PROP_STC:return tt(Z,e,r);case i.METHOD:case i.METHOD_STC:return tt(Y,e,r);case i.CLASS:return tt(q,e)}}(t)}static fromMethod(e,r){return et.from(e,r,t(e,r))}static mergeStoreFrom(t,e,...r){const n=et.from(t,...r);return et.from(e,...r)._entries.forEach(((t,e)=>{n.merge(e,t)})),n}static mergeStoreMethodFrom(e,r,n){return this.mergeStoreFrom(e,r,n,t(e,n))}get(t,e){return this._entries.get(H(t))||e}has(t){return this._entries.has(H(t))}set(t,e){return this._entries.set(H(t),e),this}delete(t){return this._entries.delete(H(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=k(e),n=k(n),e=r?K(e,n):K(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function rt(t){return(...e)=>{const r=et.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function nt(t,e){return rt((r=>{r.merge(t,e)}))}function ot(t,e){return rt((r=>{r.set(t,e)}))}function it(t){return"object"==typeof t}function st(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function ut(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function ct(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function at(t){return it(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var ft,lt,pt;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(ft||(ft={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(lt||(lt={}));class yt{status=ft.PENDING;args;#t;#e;#r=!1;#n;constructor({hasNextFunction:t=!1}={}){this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==ft.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:lt.DATA})}}call(t){if(this.isDone())return Promise.resolve(this);try{this.handle(t())}catch(t){this.reject(t)}return this.#n}reject(t){this.isDone()||(this.done(ft.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(ft.RESOLVED),this.#t({...t,state:ft.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(ft.CANCELED),this.#t({state:ft.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(st(t)&&(t=t.toPromise()),at(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(ct(t))return this.resolve({...e,type:lt.STREAM,data:t});if(ct(t)||Buffer.isBuffer(t))return this.resolve({...e,type:lt.BUFFER,data:t});if(ut(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&at(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:lt.DATA})}}isCanceledResponse(t){return t===ft.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(pt||(pt={}));const ht=pt;class dt{#o={};on(t,e){return this.#o[t]||(this.#o[t]=[]),this.#o[t].push(e),this}off(t,e){return this.#o[t]&&(this.#o[t]=this.#o[t].filter((t=>t===e))),this}emit(t,e=[],r=null){const n=this.#o[t];if(n?.length)for(const t of n)t.call(r,...e)}alter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=t.call(n,e,...r);return e}async asyncEmit(t,e=[],r=null){const n=this.#o[t];if(n?.length){const t=n.map((t=>t.call(r,...e)));await Promise.all(t)}}async asyncAlter(t,e,r=[],n=null){const o=this.#o[t];if(o?.length)for(const t of o)e=await t.call(n,e,...r);return e}destroy(){this.#o={}}}const gt=Function;r.g.Type=gt;class vt extends Error{name;constructor(t,e){super(vt.buildMessage(t,e))}static buildMessage(t,e){const[r,n,o]=e,i=d(e),s=i.split("/")[0],u="parameter"===s?".["+o+"]":"",c=n?"."+n:"parameter"===s?".constructor":"",a=H(h(r))+c+u;return`${t.name} cannot be used as ${i} decorator on ${a}`}}function mt(t){try{t()}catch(t){return t}}async function bt(t){try{await t()}catch(t){return t}}function wt(t){return Array.from(new Set(t).values())}function Ot(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}function _t(t,e={}){const{handlers:r={},remove:n,ownKeys:o}=e,i=e.getter||((t,e)=>t.get(e)),s=e.setter||((t,e,r)=>!!t.set(e,r)),u=(t,e)=>Reflect.has(t,e)||"symbol"==typeof e;return new Proxy(t,{getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e),has:(t,e)=>u(t,e)?Reflect.has(t,e):void 0!==i(t,e),get:(t,e,r)=>u(t,e)?Reflect.get(t,e,r):i(t,e),set:(t,e,r,n)=>u(t,e)?Reflect.set(t,e,r,n):!!s(t,e,r,n),deleteProperty:(t,e)=>u(t,e)||!n?Reflect.deleteProperty(t,e):n(t,e),defineProperty:(t,e,r)=>Reflect.defineProperty(t,e,r),ownKeys:t=>wt(Reflect.ownKeys(t).concat(o&&o(t)||[])),...r})}function Et(t){return t&&Object.getPrototypeOf(t)}function St(t){return Et(t)}function jt(t){const e=[];let r=h(t);for(;r&&""!==H(r);)e.unshift(r),r=St(r);return e}function Pt(t){return h(t)===t?t.prototype:t}function Tt(t){const e=new Map;return jt(t=h(t)).forEach((t=>{Reflect.ownKeys(Pt(t)).forEach((r=>{"constructor"!==r&&e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function Rt(e,r){Tt(e).forEach((({target:n,propertyKey:o})=>{const i=Pt(e);n!==h(e)&&(Object.defineProperty(i,o,{writable:!0,configurable:!0,value(...t){return Pt(n)[o].apply(this,t)}}),et.mergeStoreMethodFrom(e,n,o));const s=r(i,o,t(e,o));s&&Object.defineProperty(i,o,s)}))}function At(e,r){return[e,r,t(e,r)]}function Mt(t,e){for(const r of jt(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function Dt(...t){return(...e)=>{t.filter((t=>!!t)).forEach((t=>{t(...e)}))}}function xt(e){return(r,n)=>e(r,n,t(r,n))}function Ct(...e){return(r,n)=>{e.filter(Boolean).forEach((e=>e(r,n,t(r,n))))}}function kt(t,e){let r="0.0.0.0",n=e;return"string"==typeof e&&e.indexOf(":")>-1&&([r,n]=e.split(":"),n=+n),{protocol:t,address:r,port:n,toString(){return[`${this.protocol}://${this.address}`,"number"==typeof this.port&&this.port].filter(Boolean).join(":")}}}async function Nt(t,e=(()=>r(340)(t)),n=!1){try{return await e()}catch(t){if(!n)throw t;return{}}}function Ft(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>F(r)||e.includes(r)||void 0===n?t:{...t,[r]:n}),{})}function Bt(t){return"function"==typeof t?t:t.constructor}function zt(t){return Bt(t)}function It(t){return t&&b(t)&&!t.prototype}function Kt(t){return t===Object}function Lt(t){return Kt(h(t))&&t!==Object}function Ut(t){return!!t&&!It(t)&&!(M(t)||T(t)||Kt(t)||m(t)||ut(t)||v(t)||x(t))}function Ht(t){return Ut(t)?h(t):t}function Vt(t){return`${(zt(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function $t(t){return Vt(t).split("constructor(")[1].split(")")[0].split(", ").filter(Boolean).map((t=>t.trim()))}function Jt(t,e){const r=h(t);if(r){const t=Mt(r,e);if(t)return t.enumerable}return Object.prototype.propertyIsEnumerable.call(t,e)}function Wt(t){const e=[];for(const r in t)!F(r)&&Jt(t,r)&&e.push(r);return e}function Gt(...t){const e=(t=>{const[e,r,n,o="."]=t;return it(r)||j(e)?{expression:e,scope:r,defaultValue:n,separator:o}:{expression:r,scope:e,defaultValue:n,separator:o}})(t);let r=e.scope;const{expression:n,defaultValue:o,separator:i}=e;if(!n)return r;if(!r)return o;const s=n.split(i),u=t=>{if(r){if(void 0!==r[t]||it(r)&&t in r)return r[t];if(b(r.get))return r.get(t)}};for(;(r=u(s.shift()))&&s.length;);return void 0===r?o:r}function qt(t){return v(t)||t===Map||t instanceof Map||t===Set||t instanceof Set||t===WeakMap||t instanceof WeakMap||t===WeakSet||t instanceof WeakSet}function Yt(t){return""===t||w(t)}function Zt(t,e,r=5){if(!t||!e)return!1;for(t=h(t),e=h(e);""!==H(t);){if(!r)return!1;if(t===e)return!0;t=Et(t),r--}return!1}function Qt(t){return!(Buffer.isBuffer(t)||ct(t)||O(t)||E(t)||j(t)||w(t))}function Xt(t){return P(t)?"string":S(t)?"number":_(t)?"boolean":"any"}function te(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!F(i)&&(s?("function"==typeof t.set?t.set(i,r):t[i]=r,0):("function"==typeof t.set?(t.has(i)||t.set(i,{}),t=t.get(i)):t=t[i]=t[i]||{},1)););var i,s}function ee(t){return t?j(t)?e=>e[t]:t:(t,e)=>String(e)}function re(t,e){if(g(t)){const r=ee(e||"id");return t.reduce(((t,e,n)=>([].concat(r(e,n)).forEach((r=>{const n=t.get(r);e=n?.merge?.(e)||e,t.set(r,e)})),t)),new Map)}const r=ee(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}})(),n})()));
3
3
  //# sourceMappingURL=core.umd.min.js.map