@tsed/core 8.0.0-alpha.8 → 8.0.0-beta.1
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.
|
@@ -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["@tsed/core"]=e():t["@tsed/core"]=e()}(self,(()=>(()=>{var 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},605:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"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){}}(),o=i(t);function i(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==n.Reflect&&(o=i(n.Reflect,o)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!s&&!u,c={create:s?function(){return V(Object.create(null))}:u?function(){return V({__proto__:null})}:function(){return V({})},has:a?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:a?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=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[i]=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--,x(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,o)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!x(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(x(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 o(t,e){return e}function s(t,e){return[t,e]}}(),p="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[i]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=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(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}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}}(),h=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!P(h)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[h]),P(t)&&(t=function(){var t,r,n,o;P(h)||void 0===e.Reflect||h in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new y;return{isProviderFor:function(t,e){var r=s.get(t);return P(r)?!!o(t,e).length&&(P(r)&&(r=new p,s.set(t,r)),r.add(e),!0):r.has(e)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new y,s={registerProvider:u,getProvider:c,setProvider:d};return s;function u(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case P(r):r=e;break;case r===e:break;case P(n):n=e;break;case n===e:break;default:void 0===o&&(o=new p),o.add(e)}}function a(e,i){if(!P(r)){if(r.isProviderFor(e,i))return r;if(!P(n)){if(n.isProviderFor(e,i))return r;if(!P(o))for(var s=F(o);;){var u=K(s);if(!u)return;var a=B(u);if(a.isProviderFor(e,i))return I(s),a}}}if(!P(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return P(n)||(r=n.get(e)),P(r)?(P(r=a(t,e))||(P(n)&&(n=new l,i.set(t,n)),n.set(e,r)),r):r}function f(t){if(P(t))throw new TypeError;return r===t||n===t||!P(o)&&o.has(t)}function d(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!P(n))return!1;var o=i.get(t);P(o)&&(o=new l,i.set(t,o)),o.set(e,r)}return!0}}()),!P(h)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!P(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!P(o)&&A(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!P(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(P(o))return r;for(var i=F(o.keys()),s=0;;){var u=K(i);if(!u)return r.length=s,r;var a=B(u);try{r[s]=a}catch(t){try{I(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(P(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);P(s)||(s.delete(o),0===s.size&&e.delete(s))}return!0}};return d.registerProvider(r),r;function n(n,o,i){var s=e.get(n),u=!1;if(P(s)){if(!i)return;s=new l,e.set(n,s),u=!0}var a=s.get(o);if(P(a)){if(!i)return;if(a=new l,s.set(o,a),!t.setProvider(n,o,r))throw s.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return a}}(d);function g(t,e,r){if(w(t,e,r))return!0;var n=L(e);return!R(n)&&g(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!P(n)&&A(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=L(e);return R(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!P(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=E(t,e),n=L(t);if(null===n)return r;var o=_(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,s=[],u=0,a=r;u<a.length;u++){var c=a[u];i.has(c)||(i.add(c),s.push(c))}for(var f=0,l=o;f<l.length;f++)c=l[f],i.has(c)||(i.add(c),s.push(c));return s}function E(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function M(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 P(t){return void 0===t}function R(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(M(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=N(t,o);if(void 0!==n){var i=n.call(t,r);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(k(r)&&!S(o=r.call(t)))return o;if(k(n=t.valueOf)&&!S(o=n.call(t)))return o}else{var n;if(k(n=t.valueOf)&&!S(o=n.call(t)))return o;var o,i=t.toString;if(k(i)&&!S(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function A(t){return!!t}function j(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function D(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"function"==typeof t}function C(t){return"function"==typeof t}function x(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!k(r))throw new TypeError;return r}}function F(t){var e=N(t,i);if(!k(e))throw new TypeError;var r=e.call(t);if(!S(r))throw new TypeError;return r}function B(t){return t.value}function K(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function L(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)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 U(t,e,r){var n=d.getProvider(t,e);if(!P(n))return n;if(r){if(d.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function V(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(P(r)){if(!D(t))throw new TypeError;if(!C(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!P(n)&&!R(n)){if(!C(n))throw new TypeError;e=n}}return e}(t,e)}if(!D(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(n)&&!P(n)&&!R(n))throw new TypeError;return R(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(!P(i)&&!R(i)){if(!S(i))throw new TypeError;n=i}}return n}(t,e,r=j(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!S(r))throw new TypeError;if(!P(n)&&!function(t){switch(M(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(!S(r))throw new TypeError;return P(n)||(n=j(n)),O(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=j(r)),g(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=j(r)),w(t,e,r)})),t("getMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=j(r)),b(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=j(r)),m(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=j(e)),_(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=j(e)),E(t,e)})),t("deleteMetadata",(function(t,e,r){if(!S(e))throw new TypeError;if(P(r)||(r=j(r)),!S(e))throw new TypeError;P(r)||(r=j(r));var n=U(e,r,!1);return!P(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(o,n),void 0===n.Reflect&&(n.Reflect=t)}()}(n||(n={}))}},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 Reflect.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}}function i(t,e){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(...r){return i(t,e).apply(this,r)};let r=!1;return function(...n){if(!r){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,n)}}function s(t){return(e,r,n)=>{const o=n.value;return n.value=i(o,t),n}}function u(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 c(){return u(!1)}function f(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 l(){return f(!1)}var p;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"):p.CLASS}function v(t){return t===Date||t instanceof Date&&!isNaN(+t)}function g(t){return"function"==typeof t}function w(t){return null==t}function b(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function m(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function O(t){return"number"==typeof t}function _(t){return"number"==typeof t||t instanceof Number||t===Number}function E(t){return"string"==typeof t}function M(t){return"string"==typeof t||t instanceof String||t===String}function P(t){return M(t)||_(t)||m(t)}function R(t){return E(t)||O(t)||b(t)}function S(t){return[String,Number,Boolean].includes(t)}function T(t){return t instanceof RegExp}function A(t){return"symbol"==typeof t}function j(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}r.r(n),r.d(n,{AnyToPromise:()=>ft,AnyToPromiseResponseTypes:()=>at,AnyToPromiseStatus:()=>ut,CLASS_STORE:()=>z,Configurable:()=>o,DecoratorTypes:()=>p,Deprecated:()=>s,Enumerable:()=>u,Env:()=>ct,EnvTypes:()=>lt,Hooks:()=>pt,METHOD_STORE:()=>G,Metadata:()=>$,NotConfigurable:()=>a,NotEnumerable:()=>c,PARAM_STORE:()=>q,PROPERTY_STORE:()=>J,Readonly:()=>l,Store:()=>X,StoreFn:()=>Z,StoreMerge:()=>tt,StoreSet:()=>et,Type:()=>yt,UnsupportedDecoratorType:()=>ht,Writable:()=>f,ancestorOf:()=>gt,ancestorsOf:()=>bt,catchAsyncError:()=>vt,catchError:()=>dt,classOf:()=>h,cleanObject:()=>Dt,constructorOf:()=>Ct,createInstance:()=>k,decorateMethodsOf:()=>_t,decoratorArgs:()=>Et,decoratorTypeOf:()=>d,deepClone:()=>D,deepMerge:()=>B,descriptorOf:()=>t,getClass:()=>y,getClassOrSymbol:()=>Vt,getConstructor:()=>kt,getConstructorArgNames:()=>Wt,getEnumerableKeys:()=>zt,getHostInfoFromPort:()=>At,getInheritedClass:()=>wt,getRandomId:()=>Tt,getValue:()=>Gt,hasJsonMethod:()=>Jt,importPackage:()=>jt,inheritedDescriptorOf:()=>Mt,isArray:()=>xt,isArrayOrArrayClass:()=>Nt,isArrowFn:()=>Ft,isBoolean:()=>b,isBooleanOrBooleanClass:()=>m,isBuffer:()=>Bt,isClass:()=>Ut,isClassObject:()=>It,isCollection:()=>qt,isDate:()=>v,isEmpty:()=>Yt,isEnumerable:()=>$t,isFunction:()=>g,isInheritedFrom:()=>Qt,isMethodDescriptor:()=>e,isMomentObject:()=>Xt,isMongooseObject:()=>te,isNil:()=>w,isNumber:()=>O,isNumberOrNumberClass:()=>_,isObject:()=>rt,isObjectID:()=>Zt,isObservable:()=>nt,isPlainObject:()=>Lt,isPrimitive:()=>R,isPrimitiveClass:()=>S,isPrimitiveOrPrimitiveClass:()=>P,isPromise:()=>ot,isProtectedKey:()=>C,isRegExp:()=>T,isSerializable:()=>ee,isStream:()=>it,isString:()=>E,isStringOrStringClass:()=>M,isSymbol:()=>A,isSymbolOrSymbolClass:()=>j,isUint8Array:()=>Kt,mergeReducerBuilder:()=>N,methodsOf:()=>Ot,nameOf:()=>L,nameOfClass:()=>K,nameOfSymbol:()=>I,objectKeys:()=>x,primitiveOf:()=>re,prototypeOf:()=>mt,proxyDelegation:()=>ae,setValue:()=>ne,toMap:()=>ie,toStringConstructor:()=>Ht,uniq:()=>se,uniqBy:()=>ue,useDecorators:()=>Pt,useMethodDecorator:()=>Rt,useMethodDecorators:()=>St}),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"}(p||(p={}));const D=(t,e=new WeakMap)=>{if((t=>w(t)||R(t)||A(t)||g(t))(t))return t;const r=e.get(t);if(r)return r;if(ArrayBuffer.isView(t))return Buffer.isBuffer(t)?Buffer.from(t):new(h(t))(t.buffer.slice(0),t.byteOffset,t.byteLength);if(v(t))return new Date(t);if(T(t))return new RegExp(t);if(Array.isArray(t)){const r=[];return e.set(t,r),t.forEach(((t,n)=>r[n]=D(t,e))),r}if(t instanceof Map){const r=new Map;return e.set(t,r),t.forEach(((t,n)=>r.set(D(n,e),D(t,e)))),r}if(t instanceof Set){const r=new Set;return e.set(t,r),t.forEach((t=>r.add(D(t,e)))),r}const n=Object.create(Reflect.getPrototypeOf(t));return e.set(t,n),Reflect.ownKeys(t).forEach((r=>{const o=Object.getOwnPropertyDescriptor(t,r);o&&(g(o.value)?Object.defineProperty(n,r,o):Object.defineProperty(n,r,{...o,value:D(o.value,e)}))})),n};function k(t){return t&&h(t)!==Object?Object.create(t):{}}function C(t){return["__proto__","constructor","prototype"].includes(t)}function x(t){return Object.keys(t).filter((t=>!C(t)))}function N(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=B(e[o],r,n),e)}}const F=N(((t,e)=>t===e));function B(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return R(t)||A(t)||g(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||F:F}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}return[...x(t),...x(e)].reduce(((n,o)=>{const i=B(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i?n:{...n,[o]:i}}),k(t))}function K(t){return"function"==typeof t?t.name:t.constructor.name}const I=t=>t.toString().replace("Symbol(","").replace(")","");function L(t){switch(typeof t){default:return""+t;case"symbol":return I(t);case"function":return K(t)}}r(605);const U="design:paramtypes",V="design:type",H="design:returntype",W=new Map;class ${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(V,t,e)}static getOwnType(t,e){return Reflect.getMetadata(V,t,e)}static getReturnType(t,e){return Reflect.getMetadata(H,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(H,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(U,r,t.prototype,e)}static{this.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(U,t,e)||[]}static getOwnParamTypes(t,e){return Reflect.getOwnMetadata(U,t,e)||[]}}const z="tsed:class:store",G="tsed:method:store",J="tsed:property:store",q="tsed:param:store",Y=new Map;function Q(t,...e){if(A(e[0]))return Y.has(e[0])||Y.set(e[0],new X),Y.get(e[0]);{const r=$;return r.hasOwn(t,...e)||r.set(t,new X,...e),r.getOwn(t,...e)}}class X{constructor(){this._entries=new Map}static from(...t){return function(t){const[e,r,n]=t;switch(d(t)){case p.PARAM_CTOR:case p.PARAM_STC:case p.PARAM:const t=Q(q,e,r);return t.has(""+n)||t.set(""+n,new X),t.get(""+n);case p.PROP:case p.PROP_STC:return Q(J,e,r);case p.METHOD:case p.METHOD_STC:return Q(G,e,r);case p.CLASS:return Q(z,e)}}(t)}static fromMethod(e,r){return X.from(e,r,t(e,r))}static mergeStoreFrom(t,e,...r){const n=X.from(t,...r);return X.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(L(t))||e}has(t){return this._entries.has(L(t))}set(t,e){return this._entries.set(L(t),e),this}delete(t){return this._entries.delete(L(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=D(e),n=D(n),e=r?B(e,n):B(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function Z(t){return(...e)=>{const r=X.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function tt(t,e){return Z((r=>{r.merge(t,e)}))}function et(t,e){return Z((r=>{r.set(t,e)}))}function rt(t){return"object"==typeof t}function nt(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function ot(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function it(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function st(t){return rt(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var ut,at,ct;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(ut||(ut={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(at||(at={}));class ft{#t;#e;#r;#n;constructor({hasNextFunction:t=!1}={}){this.status=ut.PENDING,this.#r=!1,this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==ut.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:at.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(ut.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(ut.RESOLVED),this.#t({...t,state:ut.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(ut.CANCELED),this.#t({state:ut.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(nt(t)&&(t=t.toPromise()),st(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(it(t))return this.resolve({...e,type:at.STREAM,data:t});if(it(t)||Buffer.isBuffer(t))return this.resolve({...e,type:at.BUFFER,data:t});if(ot(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&st(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:at.DATA})}}isCanceledResponse(t){return t===ut.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(ct||(ct={}));const lt=ct;class pt{#o={};has(t){return!!this.#o[t]}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 yt=Function;r.g.Type=yt;class ht extends Error{constructor(t,e){super(ht.buildMessage(t,e))}static buildMessage(t,e){const[r,n,o]=e,i=d(e),s=i.split("/")[0],u="parameter"===s?".["+o+"]":"",a=n?"."+n:"parameter"===s?".constructor":"",c=L(h(r))+a+u;return`${t.name} cannot be used as ${i} decorator on ${c}`}}function dt(t){try{t()}catch(t){return t}}async function vt(t){try{await t()}catch(t){return t}}function gt(t){return t&&Object.getPrototypeOf(t)}function wt(t){return gt(t)}function bt(t){const e=[];let r=h(t);for(;r&&""!==L(r);)e.unshift(r),r=wt(r);return e}function mt(t){return h(t)===t?t.prototype:t}function Ot(t){const e=new Map;return bt(t=h(t)).forEach((t=>{Reflect.ownKeys(mt(t)).forEach((r=>{"constructor"!==r&&e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function _t(e,r){Ot(e).forEach((({target:n,propertyKey:o})=>{const i=mt(e);n!==h(e)&&(Object.defineProperty(i,o,{writable:!0,configurable:!0,value(...t){return mt(n)[o].apply(this,t)}}),X.mergeStoreMethodFrom(e,n,o));const s=r(i,o,t(e,o));s&&Object.defineProperty(i,o,s)}))}function Et(e,r){return[e,r,t(e,r)]}function Mt(t,e){for(const r of bt(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function Pt(...t){return(...e)=>{t.filter((t=>!!t)).forEach((t=>{t(...e)}))}}function Rt(e){return(r,n)=>e(r,n,t(r,n))}function St(...e){return(r,n)=>{e.filter(Boolean).forEach((e=>e(r,n,t(r,n))))}}function Tt(){return`e${Math.random().toString(36).substring(7)}`}function At(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 jt(t,e=(()=>r(340)(t)),n=!1){try{return await e()}catch(t){if(!n)throw t;return{}}}function Dt(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>C(r)||e.includes(r)||void 0===n?t:{...t,[r]:n}),{})}function kt(t){return"function"==typeof t?t:t.constructor}function Ct(t){return kt(t)}function xt(t){return Array.isArray(t)}function Nt(t){return t===Array||xt(t)}function Ft(t){return t&&g(t)&&!t.prototype}function Bt(t){return!(!t||!("isBuffer"in t)||"function"!=typeof t.isBuffer)||Kt(t)}function Kt(t){return!(!t||!(t===Uint8Array||t instanceof Uint8Array))}function It(t){return t===Object}function Lt(t){return It(h(t))&&t!==Object}function Ut(t){return!!t&&!Ft(t)&&!(A(t)||P(t)||It(t)||v(t)||ot(t)||Nt(t)||Bt(t))}function Vt(t){return Ut(t)?h(t):t}function Ht(t){return`${(Ct(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function Wt(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 zt(t){const e=[];for(const r in t)!C(r)&&$t(t,r)&&e.push(r);return e}function Gt(...t){const e=(t=>{const[e,r,n,o="."]=t;return rt(r)||E(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]||rt(r)&&t in r)return r[t];if(g(r.get))return r.get(t)}};for(;(r=u(s.shift()))&&s.length;);return void 0===r?o:r}function Jt(t){return t&&"function"==typeof t.toJSON}function qt(t){return Nt(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 Qt(t,e,r=5){if(!t||!e)return!1;for(t=h(t),e=h(e);""!==L(t);){if(!r)return!1;if(t===e)return!0;t=gt(t),r--}return!1}function Xt(t){return!(!t||!t?._isAMomentObject)}function Zt(t){return t&&t._bsontype}function te(t){return!!(Jt(t)&&t.$isMongooseModelPrototype||Zt(t))}function ee(t){return!(Buffer.isBuffer(t)||it(t)||b(t)||O(t)||E(t)||w(t))}function re(t){return M(t)?"string":_(t)?"number":m(t)?"boolean":"any"}function ne(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!C(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 oe(t){return t?E(t)?e=>e[t]:t:(t,e)=>String(e)}function ie(t,e){if(xt(t)){const r=oe(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=oe(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}function se(t){return Array.from(new Set(t).values())}function ue(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}function ae(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=>se(Reflect.ownKeys(t).concat(o&&o(t)||[])),...r})}})(),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["@tsed/core"]=e():t["@tsed/core"]=e()}(self,(()=>(()=>{var 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},605:(t,e,r)=>{var n;!function(t){!function(e){var n="object"==typeof globalThis?globalThis:"object"==typeof r.g?r.g:"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){}}(),o=i(t);function i(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==n.Reflect&&(o=i(n.Reflect,o)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!s&&!u,c={create:s?function(){return U(Object.create(null))}:u?function(){return U({__proto__:null})}:function(){return U({})},has:a?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:a?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=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[i]=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--,x(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,o)},e.prototype.entries=function(){return new r(this._keys,this._values,s)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[i]=function(){return this.entries()},e.prototype._find=function(t,e){if(!x(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(x(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 o(t,e){return e}function s(t,e){return[t,e]}}(),p="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[i]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=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(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function s(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):i(e,t),e}return i(new Array(t),t)}(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}}(),h=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!P(h)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[h]),P(t)&&(t=function(){var t,r,n,o;P(h)||void 0===e.Reflect||h in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,o=t.getOwnMetadataKeys,i=t.deleteMetadata,s=new y;return{isProviderFor:function(t,e){var r=s.get(t);return!(P(r)||!r.has(e))||!!o(t,e).length&&(P(r)&&(r=new p,s.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:i}}(e.Reflect));var i=new y,s={registerProvider:u,getProvider:c,setProvider:d};return s;function u(e){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case P(r):r=e;break;case r===e:break;case P(n):n=e;break;case n===e:break;default:void 0===o&&(o=new p),o.add(e)}}function a(e,i){if(!P(r)){if(r.isProviderFor(e,i))return r;if(!P(n)){if(n.isProviderFor(e,i))return r;if(!P(o))for(var s=F(o);;){var u=K(s);if(!u)return;var a=B(u);if(a.isProviderFor(e,i))return I(s),a}}}if(!P(t)&&t.isProviderFor(e,i))return t}function c(t,e){var r,n=i.get(t);return P(n)||(r=n.get(e)),P(r)?(P(r=a(t,e))||(P(n)&&(n=new l,i.set(t,n)),n.set(e,r)),r):r}function f(t){if(P(t))throw new TypeError;return r===t||n===t||!P(o)&&o.has(t)}function d(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!P(n))return!1;var o=i.get(t);P(o)&&(o=new l,i.set(t,o)),o.set(e,r)}return!0}}()),!P(h)&&S(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),v=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!P(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,o){n(r,o,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var o=n(e,r,!1);return!P(o)&&j(o.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var o=n(e,r,!1);if(!P(o))return o.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],o=n(t,e,!1);if(P(o))return r;for(var i=F(o.keys()),s=0;;){var u=K(i);if(!u)return r.length=s,r;var a=B(u);try{r[s]=a}catch(t){try{I(i)}finally{throw t}}s++}},OrdinaryDeleteMetadata:function(t,r,o){var i=n(r,o,!1);if(P(i))return!1;if(!i.delete(t))return!1;if(0===i.size){var s=e.get(r);P(s)||(s.delete(o),0===s.size&&e.delete(s))}return!0}};return d.registerProvider(r),r;function n(n,o,i){var s=e.get(n),u=!1;if(P(s)){if(!i)return;s=new l,e.set(n,s),u=!0}var a=s.get(o);if(P(a)){if(!i)return;if(a=new l,s.set(o,a),!t.setProvider(n,o,r))throw s.delete(o),u&&e.delete(n),new Error("Wrong provider for target.")}return a}}(d);function g(t,e,r){if(w(t,e,r))return!0;var n=L(e);return!R(n)&&g(t,n,r)}function w(t,e,r){var n=V(e,r,!1);return!P(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=L(e);return R(n)?void 0:b(t,n,r)}function m(t,e,r){var n=V(e,r,!1);if(!P(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){V(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=E(t,e),n=L(t);if(null===n)return r;var o=_(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,s=[],u=0,a=r;u<a.length;u++){var c=a[u];i.has(c)||(i.add(c),s.push(c))}for(var f=0,l=o;f<l.length;f++)c=l[f],i.has(c)||(i.add(c),s.push(c));return s}function E(t,e){var r=V(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function M(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 P(t){return void 0===t}function R(t){return null===t}function S(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(M(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=N(t,o);if(void 0!==n){var i=n.call(t,r);if(S(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(k(r)&&!S(o=r.call(t)))return o;if(k(n=t.valueOf)&&!S(o=n.call(t)))return o}else{var n;if(k(n=t.valueOf)&&!S(o=n.call(t)))return o;var o,i=t.toString;if(k(i)&&!S(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function j(t){return!!t}function A(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function D(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"function"==typeof t}function C(t){return"function"==typeof t}function x(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!k(r))throw new TypeError;return r}}function F(t){var e=N(t,i);if(!k(e))throw new TypeError;var r=e.call(t);if(!S(r))throw new TypeError;return r}function B(t){return t.value}function K(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function L(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)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 V(t,e,r){var n=d.getProvider(t,e);if(!P(n))return n;if(r){if(d.setProvider(t,e,v))return v;throw new Error("Illegal state.")}}function U(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(P(r)){if(!D(t))throw new TypeError;if(!C(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!P(n)&&!R(n)){if(!C(n))throw new TypeError;e=n}}return e}(t,e)}if(!D(t))throw new TypeError;if(!S(e))throw new TypeError;if(!S(n)&&!P(n)&&!R(n))throw new TypeError;return R(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(!P(i)&&!R(i)){if(!S(i))throw new TypeError;n=i}}return n}(t,e,r=A(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!S(r))throw new TypeError;if(!P(n)&&!function(t){switch(M(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(!S(r))throw new TypeError;return P(n)||(n=A(n)),O(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=A(r)),g(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=A(r)),w(t,e,r)})),t("getMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=A(r)),b(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!S(e))throw new TypeError;return P(r)||(r=A(r)),m(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=A(e)),_(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!S(t))throw new TypeError;return P(e)||(e=A(e)),E(t,e)})),t("deleteMetadata",(function(t,e,r){if(!S(e))throw new TypeError;if(P(r)||(r=A(r)),!S(e))throw new TypeError;P(r)||(r=A(r));var n=V(e,r,!1);return!P(n)&&n.OrdinaryDeleteMetadata(t,e,r)}))}(o,n),void 0===n.Reflect&&(n.Reflect=t)}()}(n||(n={}))}},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 Reflect.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}}function i(t,e){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(...r){return i(t,e).apply(this,r)};let r=!1;return function(...n){if(!r){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,n)}}function s(t){return(e,r,n)=>{const o=n.value;return n.value=i(o,t),n}}function u(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 c(){return u(!1)}function f(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 l(){return f(!1)}var p;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"):p.CLASS}function v(t){return t===Date||t instanceof Date&&!isNaN(+t)}function g(t){return"function"==typeof t}function w(t){return null==t}function b(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function m(t){return"boolean"==typeof t||t instanceof Boolean||t===Boolean}function O(t){return"number"==typeof t}function _(t){return"number"==typeof t||t instanceof Number||t===Number}function E(t){return"string"==typeof t}function M(t){return"string"==typeof t||t instanceof String||t===String}function P(t){return M(t)||_(t)||m(t)}function R(t){return E(t)||O(t)||b(t)}function S(t){return[String,Number,Boolean].includes(t)}function T(t){return t instanceof RegExp}function j(t){return"symbol"==typeof t}function A(t){return"symbol"==typeof t||t instanceof Symbol||t===Symbol}r.r(n),r.d(n,{AnyToPromise:()=>ft,AnyToPromiseResponseTypes:()=>at,AnyToPromiseStatus:()=>ut,CLASS_STORE:()=>z,Configurable:()=>o,DecoratorTypes:()=>p,Deprecated:()=>s,Enumerable:()=>u,Env:()=>ct,EnvTypes:()=>lt,Hooks:()=>pt,METHOD_STORE:()=>G,Metadata:()=>$,NotConfigurable:()=>a,NotEnumerable:()=>c,PARAM_STORE:()=>q,PROPERTY_STORE:()=>J,Readonly:()=>l,Store:()=>X,StoreFn:()=>Z,StoreMerge:()=>tt,StoreSet:()=>et,Type:()=>yt,UnsupportedDecoratorType:()=>ht,Writable:()=>f,ancestorOf:()=>gt,ancestorsOf:()=>bt,catchAsyncError:()=>vt,catchError:()=>dt,classOf:()=>h,cleanObject:()=>Dt,constructorOf:()=>Ct,createInstance:()=>k,decorateMethodsOf:()=>_t,decoratorArgs:()=>Et,decoratorTypeOf:()=>d,deepClone:()=>D,deepMerge:()=>B,descriptorOf:()=>t,getClass:()=>y,getClassOrSymbol:()=>Ut,getConstructor:()=>kt,getConstructorArgNames:()=>Wt,getEnumerableKeys:()=>zt,getHostInfoFromPort:()=>jt,getInheritedClass:()=>wt,getRandomId:()=>Tt,getValue:()=>Gt,hasJsonMethod:()=>Jt,importPackage:()=>At,inheritedDescriptorOf:()=>Mt,isArray:()=>xt,isArrayOrArrayClass:()=>Nt,isArrowFn:()=>Ft,isBoolean:()=>b,isBooleanOrBooleanClass:()=>m,isBuffer:()=>Bt,isClass:()=>Vt,isClassObject:()=>It,isCollection:()=>qt,isDate:()=>v,isEmpty:()=>Yt,isEnumerable:()=>$t,isFunction:()=>g,isInheritedFrom:()=>Qt,isMethodDescriptor:()=>e,isMomentObject:()=>Xt,isMongooseObject:()=>te,isNil:()=>w,isNumber:()=>O,isNumberOrNumberClass:()=>_,isObject:()=>rt,isObjectID:()=>Zt,isObservable:()=>nt,isPlainObject:()=>Lt,isPrimitive:()=>R,isPrimitiveClass:()=>S,isPrimitiveOrPrimitiveClass:()=>P,isPromise:()=>ot,isProtectedKey:()=>C,isRegExp:()=>T,isSerializable:()=>ee,isStream:()=>it,isString:()=>E,isStringOrStringClass:()=>M,isSymbol:()=>j,isSymbolOrSymbolClass:()=>A,isUint8Array:()=>Kt,mergeReducerBuilder:()=>N,methodsOf:()=>Ot,nameOf:()=>L,nameOfClass:()=>K,nameOfSymbol:()=>I,objectKeys:()=>x,primitiveOf:()=>re,prototypeOf:()=>mt,proxyDelegation:()=>ae,setValue:()=>ne,toMap:()=>ie,toStringConstructor:()=>Ht,uniq:()=>se,uniqBy:()=>ue,useDecorators:()=>Pt,useMethodDecorator:()=>Rt,useMethodDecorators:()=>St}),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"}(p||(p={}));const D=(t,e=new WeakMap)=>{if((t=>w(t)||R(t)||j(t)||g(t))(t))return t;const r=e.get(t);if(r)return r;if(ArrayBuffer.isView(t))return Buffer.isBuffer(t)?Buffer.from(t):new(h(t))(t.buffer.slice(0),t.byteOffset,t.byteLength);if(v(t))return new Date(t);if(T(t))return new RegExp(t);if(Array.isArray(t)){const r=[];return e.set(t,r),t.forEach(((t,n)=>r[n]=D(t,e))),r}if(t instanceof Map){const r=new Map;return e.set(t,r),t.forEach(((t,n)=>r.set(D(n,e),D(t,e)))),r}if(t instanceof Set){const r=new Set;return e.set(t,r),t.forEach((t=>r.add(D(t,e)))),r}const n=Object.create(Reflect.getPrototypeOf(t));return e.set(t,n),Reflect.ownKeys(t).forEach((r=>{const o=Object.getOwnPropertyDescriptor(t,r);o&&(g(o.value)?Object.defineProperty(n,r,o):Object.defineProperty(n,r,{...o,value:D(o.value,e)}))})),n};function k(t){return t&&h(t)!==Object?Object.create(t):{}}function C(t){return["__proto__","constructor","prototype"].includes(t)}function x(t){return Object.keys(t).filter((t=>!C(t)))}function N(t){return(e,r,n)=>{const o=e.findIndex((e=>t(e,r)));return-1===o?[...e,r]:(e[o]=B(e[o],r,n),e)}}const F=N(((t,e)=>t===e));function B(t,e,r={}){if(function(t,e){return null==t||""===t&&""!==e}(e,t))return t;if(function(t,e){return R(t)||j(t)||g(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||F:F}(r);return[].concat(e).reduce(((t,e)=>n(t,e,r)),[...t])}return[...x(t),...x(e)].reduce(((n,o)=>{const i=B(t&&t[o],e&&e[o],{...r,parentKey:o});return r.cleanUndefinedProps&&void 0===i?n:{...n,[o]:i}}),k(t))}function K(t){return"function"==typeof t?t.name:t.constructor.name}const I=t=>t.toString().replace("Symbol(","").replace(")","");function L(t){switch(typeof t){default:return""+t;case"symbol":return I(t);case"function":return K(t)}}r(605);const V="design:paramtypes",U="design:type",H="design:returntype",W=new Map;class ${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(U,t,e)}static getOwnType(t,e){return Reflect.getMetadata(U,t,e)}static getReturnType(t,e){return Reflect.getMetadata(H,t,e)}static getOwnReturnType(t,e){return Reflect.getOwnMetadata(H,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{this.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 z="tsed:class:store",G="tsed:method:store",J="tsed:property:store",q="tsed:param:store",Y=new Map;function Q(t,...e){if(j(e[0]))return Y.has(e[0])||Y.set(e[0],new X),Y.get(e[0]);{const r=$;return r.hasOwn(t,...e)||r.set(t,new X,...e),r.getOwn(t,...e)}}class X{constructor(){this._entries=new Map}static from(...t){return function(t){const[e,r,n]=t;switch(d(t)){case p.PARAM_CTOR:case p.PARAM_STC:case p.PARAM:const t=Q(q,e,r);return t.has(""+n)||t.set(""+n,new X),t.get(""+n);case p.PROP:case p.PROP_STC:return Q(J,e,r);case p.METHOD:case p.METHOD_STC:return Q(G,e,r);case p.CLASS:return Q(z,e)}}(t)}static fromMethod(e,r){return X.from(e,r,t(e,r))}static mergeStoreFrom(t,e,...r){const n=X.from(t,...r);return X.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(L(t))||e}has(t){return this._entries.has(L(t))}set(t,e){return this._entries.set(L(t),e),this}delete(t){return this._entries.delete(L(t))}merge(t,e,r=!1){let n=this.get(t);return n&&(e=D(e),n=D(n),e=r?B(e,n):B(n,e)),this.set(t,e),this}toJson(){return[...this._entries.entries()].reduce(((t,[e,r])=>({...t,[e]:r})),{})}}function Z(t){return(...e)=>{const r=X.from(...e),n=t(r,e);return"function"==typeof n&&n(...e),e[2]}}function tt(t,e){return Z((r=>{r.merge(t,e)}))}function et(t,e){return Z((r=>{r.set(t,e)}))}function rt(t){return"object"==typeof t}function nt(t){return!!t&&"function"==typeof t.lift&&"function"==typeof t.subscribe}function ot(t){return t===Promise||t instanceof Promise||!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function it(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function st(t){return rt(t)&&"data"in t&&"headers"in t&&"status"in t&&"statusText"in t}var ut,at,ct;!function(t){t.PENDING="PENDING",t.CANCELED="CANCELED",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(ut||(ut={})),function(t){t.STREAM="STREAM",t.BUFFER="BUFFER",t.DATA="DATA"}(at||(at={}));class ft{#t;#e;#r;#n;constructor({hasNextFunction:t=!1}={}){this.status=ut.PENDING,this.#r=!1,this.#r=t,this.#n=new Promise(((t,e)=>{this.#t=t,this.#e=e}))}isDone(){return this.status!==ut.PENDING}get next(){return this.#r=!0,t=>{if(!this.isDone())return t?this.reject(t):this.resolve({type:at.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(ut.REJECTED),this.#e(t))}resolve(t={}){this.isDone()||(this.done(ut.RESOLVED),this.#t({...t,state:ut.RESOLVED}))}destroy(){}cancel(){if(!this.isDone())return this.done(ut.CANCELED),this.#t({state:ut.CANCELED})}done(t){this.destroy(),this.status=t}handle(t,e={}){if(!this.isDone()){if(t){if(this.isCanceledResponse(t))return this.cancel();if(nt(t)&&(t=t.toPromise()),st(t))return this.handle(t.data,{...e,status:t.status,headers:t.headers});if(it(t))return this.resolve({...e,type:at.STREAM,data:t});if(it(t)||Buffer.isBuffer(t))return this.resolve({...e,type:at.BUFFER,data:t});if(ot(t))return t.then((t=>this.handle(t,e))).catch((t=>t.response&&st(t.response)?this.handle(t.response):this.reject(t)))}return this.#r?void 0:this.resolve({...e,data:t,type:at.DATA})}}isCanceledResponse(t){return t===ut.CANCELED}}!function(t){t.PROD="production",t.DEV="development",t.TEST="test"}(ct||(ct={}));const lt=ct;class pt{#o={};has(t){return!!this.#o[t]}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 yt=Function;r.g.Type=yt;class ht extends Error{constructor(t,e){super(ht.buildMessage(t,e))}static buildMessage(t,e){const[r,n,o]=e,i=d(e),s=i.split("/")[0],u="parameter"===s?".["+o+"]":"",a=n?"."+n:"parameter"===s?".constructor":"",c=L(h(r))+a+u;return`${t.name} cannot be used as ${i} decorator on ${c}`}}function dt(t){try{t()}catch(t){return t}}async function vt(t){try{await t()}catch(t){return t}}function gt(t){return t&&Object.getPrototypeOf(t)}function wt(t){return gt(t)}function bt(t){const e=[];let r=h(t);for(;r&&""!==L(r);)e.unshift(r),r=wt(r);return e}function mt(t){return h(t)===t?t.prototype:t}function Ot(t){const e=new Map;return bt(t=h(t)).forEach((t=>{Reflect.ownKeys(mt(t)).forEach((r=>{"constructor"!==r&&e.set(r,{target:t,propertyKey:r})}))})),Array.from(e.values())}function _t(e,r){Ot(e).forEach((({target:n,propertyKey:o})=>{const i=mt(e);n!==h(e)&&(Object.defineProperty(i,o,{writable:!0,configurable:!0,value(...t){return mt(n)[o].apply(this,t)}}),X.mergeStoreMethodFrom(e,n,o));const s=r(i,o,t(e,o));s&&Object.defineProperty(i,o,s)}))}function Et(e,r){return[e,r,t(e,r)]}function Mt(t,e){for(const r of bt(t)){const t=Object.getOwnPropertyDescriptor(r&&r.prototype||r,e);if(t)return t}}function Pt(...t){return(...e)=>{t.filter((t=>!!t)).forEach((t=>{t(...e)}))}}function Rt(e){return(r,n)=>e(r,n,t(r,n))}function St(...e){return(r,n)=>{e.filter(Boolean).forEach((e=>e(r,n,t(r,n))))}}function Tt(){return`e${Math.random().toString(36).substring(7)}`}function jt(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 At(t,e=(()=>r(340)(t)),n=!1){try{return await e()}catch(t){if(!n)throw t;return{}}}function Dt(t,e=[]){return Object.entries(t).reduce(((t,[r,n])=>C(r)||e.includes(r)||void 0===n?t:{...t,[r]:n}),{})}function kt(t){return"function"==typeof t?t:t.constructor}function Ct(t){return kt(t)}function xt(t){return Array.isArray(t)}function Nt(t){return t===Array||xt(t)}function Ft(t){return t&&g(t)&&!t.prototype}function Bt(t){return!(!t||!("isBuffer"in t)||"function"!=typeof t.isBuffer)||Kt(t)}function Kt(t){return!(!t||!(t===Uint8Array||t instanceof Uint8Array))}function It(t){return t===Object}function Lt(t){return It(h(t))&&t!==Object}function Vt(t){return!!t&&!Ft(t)&&!(j(t)||P(t)||It(t)||v(t)||ot(t)||Nt(t)||Bt(t))}function Ut(t){return Vt(t)?h(t):t}function Ht(t){return`${(Ct(t).toString().split("\n").find((t=>t.indexOf("constructor(")>-1))||"constructor()").replace("{","").trim()}`}function Wt(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 zt(t){const e=[];for(const r in t)!C(r)&&$t(t,r)&&e.push(r);return e}function Gt(...t){const e=(t=>{const[e,r,n,o="."]=t;return rt(r)||E(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]||rt(r)&&t in r)return r[t];if(g(r.get))return r.get(t)}};for(;(r=u(s.shift()))&&s.length;);return void 0===r?o:r}function Jt(t){return t&&"function"==typeof t.toJSON}function qt(t){return Nt(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 Qt(t,e,r=5){if(!t||!e)return!1;for(t=h(t),e=h(e);""!==L(t);){if(!r)return!1;if(t===e)return!0;t=gt(t),r--}return!1}function Xt(t){return!(!t||!t?._isAMomentObject)}function Zt(t){return t&&t._bsontype}function te(t){return!!(Jt(t)&&t.$isMongooseModelPrototype||Zt(t))}function ee(t){return!(Buffer.isBuffer(t)||it(t)||b(t)||O(t)||E(t)||w(t))}function re(t){return M(t)?"string":_(t)?"number":m(t)?"boolean":"any"}function ne(t,e,r,n="."){const o=e.split(n);for(;i=o.shift(),s=!o.length,!C(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 oe(t){return t?E(t)?e=>e[t]:t:(t,e)=>String(e)}function ie(t,e){if(xt(t)){const r=oe(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=oe(e);return Object.entries(t).reduce(((t,[e,n])=>t.set(r(n,e),n)),new Map)}function se(t){return Array.from(new Set(t).values())}function ue(t,e="id"){const r=new Map;return t.forEach((t=>{r.set(t[e],t)})),Array.from(r.values())}function ae(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=>se(Reflect.ownKeys(t).concat(o&&o(t)||[])),...r})}})(),n})()));
|
|
3
3
|
//# sourceMappingURL=core.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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AAEjf,EAAQoM,IAAgBpM,EAAO4B,IAAIwK,IAC7D5I,EAAMgP,EAAQ0M,QAAU,EAAElf,EAAQoM,EAAajM,MAAYH,EAAOwD,IAAI4I,EAAajM,IACnFgf,EAAa,CAACnf,EAAQof,IAAM/f,QAAQoC,IAAIzB,EAAQof,IAAmB,iBAANA,EACnE,OAAO,IAAIC,MAAM3gB,EAAM,CACnBiP,yBAAwB,CAAC3N,EAAQof,IACtB/f,QAAQsO,yBAAyB3N,EAAQof,GAEpD3d,IAAG,CAACzB,EAAQof,IACJD,EAAWnf,EAAQof,GACZ/f,QAAQoC,IAAIzB,EAAQof,QAELvd,IAAnBD,EAAI5B,EAAQof,GAEvBxd,IAAG,CAAC5B,EAAQof,EAAGE,IACPH,EAAWnf,EAAQof,GACZ/f,QAAQuC,IAAI5B,EAAQof,EAAGE,GAE3B1d,EAAI5B,EAAQof,GAEvB5b,IAAG,CAACxD,EAAQof,EAAGjf,EAAOmf,IACdH,EAAWnf,EAAQof,GACZ/f,QAAQmE,IAAIxD,EAAQof,EAAGjf,EAAOmf,KAEhC9b,EAAIxD,EAAQof,EAAGjf,EAAOmf,GAEnCC,eAAc,CAACvf,EAAQof,IACfD,EAAWnf,EAAQof,KAAOJ,EACnB3f,QAAQkgB,eAAevf,EAAQof,GAEnCJ,EAAOhf,EAAQof,GAE1B/e,eAAc,CAACL,EAAQof,EAAG/S,IACfhN,QAAQgB,eAAeL,EAAQof,EAAG/S,GAE7CvC,QAAQ9J,GACG2e,GAAKtf,QAAQyK,QAAQ9J,GAAQoT,OAAQtJ,GAAWA,EAAQ9J,IAAY,QAE5E+e,GAEX","sources":["webpack://@tsed/core/webpack/universalModuleDefinition","webpack://@tsed/core/./src/utils/imports/ lazy namespace object","webpack://@tsed/core/../../node_modules/reflect-metadata/Reflect.js","webpack://@tsed/core/webpack/bootstrap","webpack://@tsed/core/webpack/runtime/define property getters","webpack://@tsed/core/webpack/runtime/global","webpack://@tsed/core/webpack/runtime/hasOwnProperty shorthand","webpack://@tsed/core/webpack/runtime/make namespace object","webpack://@tsed/core/./src/utils/objects/descriptorOf.ts","webpack://@tsed/core/./src/decorators/configurable.ts","webpack://@tsed/core/./src/decorators/deprecated.ts","webpack://@tsed/core/./src/decorators/enumerable.ts","webpack://@tsed/core/./src/decorators/notConfigurable.ts","webpack://@tsed/core/./src/decorators/notEnumerable.ts","webpack://@tsed/core/./src/decorators/writable.ts","webpack://@tsed/core/./src/decorators/readOnly.ts","webpack://@tsed/core/./src/domain/DecoratorTypes.ts","webpack://@tsed/core/./src/utils/objects/classOf.ts","webpack://@tsed/core/./src/utils/decorators/decoratorTypeOf.ts","webpack://@tsed/core/./src/utils/objects/isDate.ts","webpack://@tsed/core/./src/utils/objects/isFunction.ts","webpack://@tsed/core/./src/utils/objects/isNil.ts","webpack://@tsed/core/./src/utils/objects/isBoolean.ts","webpack://@tsed/core/./src/utils/objects/isNumber.ts","webpack://@tsed/core/./src/utils/objects/isString.ts","webpack://@tsed/core/./src/utils/objects/isPrimitive.ts","webpack://@tsed/core/./src/utils/objects/isRegExp.ts","webpack://@tsed/core/./src/utils/objects/isSymbol.ts","webpack://@tsed/core/./src/utils/objects/deepClone.ts","webpack://@tsed/core/./src/utils/objects/createInstance.ts","webpack://@tsed/core/./src/utils/objects/isProtectedKey.ts","webpack://@tsed/core/./src/utils/objects/objectKeys.ts","webpack://@tsed/core/./src/utils/objects/deepMerge.ts","webpack://@tsed/core/./src/utils/objects/nameOf.ts","webpack://@tsed/core/./src/domain/Metadata.ts","webpack://@tsed/core/./src/domain/Store.ts","webpack://@tsed/core/./src/decorators/storeFn.ts","webpack://@tsed/core/./src/decorators/storeMerge.ts","webpack://@tsed/core/./src/decorators/storeSet.ts","webpack://@tsed/core/./src/utils/objects/isObject.ts","webpack://@tsed/core/./src/utils/objects/isObservable.ts","webpack://@tsed/core/./src/utils/objects/isPromise.ts","webpack://@tsed/core/./src/utils/objects/isStream.ts","webpack://@tsed/core/./src/domain/AnyToPromise.ts","webpack://@tsed/core/./src/domain/Env.ts","webpack://@tsed/core/./src/domain/Hooks.ts","webpack://@tsed/core/./src/domain/Type.ts","webpack://@tsed/core/./src/errors/UnsupportedDecoratorType.ts","webpack://@tsed/core/./src/utils/catchError.ts","webpack://@tsed/core/./src/utils/objects/ancestorOf.ts","webpack://@tsed/core/./src/utils/objects/ancestorsOf.ts","webpack://@tsed/core/./src/utils/objects/prototypeOf.ts","webpack://@tsed/core/./src/utils/objects/methodsOf.ts","webpack://@tsed/core/./src/utils/decorators/decorateMethodsOf.ts","webpack://@tsed/core/./src/utils/decorators/decoratorArgs.ts","webpack://@tsed/core/./src/utils/decorators/inheritedDescriptorOf.ts","webpack://@tsed/core/./src/utils/decorators/useDecorators.ts","webpack://@tsed/core/./src/utils/decorators/useMethodDecorators.ts","webpack://@tsed/core/./src/utils/getRandomId.ts","webpack://@tsed/core/./src/utils/http/getHostInfoFromPort.ts","webpack://@tsed/core/./src/utils/imports/importPackage.ts","webpack://@tsed/core/./src/utils/objects/cleanObject.ts","webpack://@tsed/core/./src/utils/objects/constructorOf.ts","webpack://@tsed/core/./src/utils/objects/isArray.ts","webpack://@tsed/core/./src/utils/objects/isArrowFn.ts","webpack://@tsed/core/./src/utils/objects/isBuffer.ts","webpack://@tsed/core/./src/utils/objects/isPlainObject.ts","webpack://@tsed/core/./src/utils/objects/isClass.ts","webpack://@tsed/core/./src/utils/objects/getClassOrSymbol.ts","webpack://@tsed/core/./src/utils/objects/toStringConstructor.ts","webpack://@tsed/core/./src/utils/objects/getConstructorArgNames.ts","webpack://@tsed/core/./src/utils/objects/isEnumerable.ts","webpack://@tsed/core/./src/utils/objects/getEnumerableKeys.ts","webpack://@tsed/core/./src/utils/objects/getValue.ts","webpack://@tsed/core/./src/utils/objects/hasJsonMethod.ts","webpack://@tsed/core/./src/utils/objects/isCollection.ts","webpack://@tsed/core/./src/utils/objects/isEmpty.ts","webpack://@tsed/core/./src/utils/objects/isInheritedFrom.ts","webpack://@tsed/core/./src/utils/objects/isMomentObject.ts","webpack://@tsed/core/./src/utils/objects/isMongooseObject.ts","webpack://@tsed/core/./src/utils/objects/isSerializable.ts","webpack://@tsed/core/./src/utils/objects/primitiveOf.ts","webpack://@tsed/core/./src/utils/objects/setValue.ts","webpack://@tsed/core/./src/utils/objects/toMap.ts","webpack://@tsed/core/./src/utils/uniq.ts","webpack://@tsed/core/./src/utils/proxyDelegation.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@tsed/core\"] = factory();\n\telse\n\t\troot[\"@tsed/core\"] = factory();\n})(self, () => {\nreturn ","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(() => {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = () => ([]);\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 340;\nmodule.exports = webpackEmptyAsyncContext;","/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof globalThis === \"object\" ? globalThis :\n typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n sloppyModeThis();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect !== \"undefined\") {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter, root);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n function makeExporter(target, previous) {\n return function (key, value) {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n if (previous)\n previous(key, value);\n };\n }\n function functionThis() {\n try {\n return Function(\"return this;\")();\n }\n catch (_) { }\n }\n function indirectEvalThis() {\n try {\n return (void 0, eval)(\"(function() { return this; })()\");\n }\n catch (_) { }\n }\n function sloppyModeThis() {\n return functionThis() || indirectEvalThis();\n }\n })(function (exporter, root) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var _Map = typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n var registrySymbol = supportsSymbol ? Symbol.for(\"@reflect-metadata:registry\") : undefined;\n var metadataRegistry = GetOrCreateMetadataRegistry();\n var metadataProvider = CreateMetadataProvider(metadataRegistry);\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return;\n return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ true);\n provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var provider = GetMetadataProvider(O, P, /*create*/ false);\n if (!provider) {\n return [];\n }\n return provider.OrdinaryOwnMetadataKeys(O, P);\n }\n // 6 ECMAScript Data Typ0es and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n function SameValueZero(x, y) {\n return x === y || x !== x && y !== y;\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // Global metadata registry\n // - Allows `import \"reflect-metadata\"` and `import \"reflect-metadata/no-conflict\"` to interoperate.\n // - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.\n /**\n * Creates a registry used to allow multiple `reflect-metadata` providers.\n */\n function CreateMetadataRegistry() {\n var fallback;\n if (!IsUndefined(registrySymbol) &&\n typeof root.Reflect !== \"undefined\" &&\n !(registrySymbol in root.Reflect) &&\n typeof root.Reflect.defineMetadata === \"function\") {\n // interoperate with older version of `reflect-metadata` that did not support a registry.\n fallback = CreateFallbackProvider(root.Reflect);\n }\n var first;\n var second;\n var rest;\n var targetProviderMap = new _WeakMap();\n var registry = {\n registerProvider: registerProvider,\n getProvider: getProvider,\n setProvider: setProvider,\n };\n return registry;\n function registerProvider(provider) {\n if (!Object.isExtensible(registry)) {\n throw new Error(\"Cannot add provider to a frozen registry.\");\n }\n switch (true) {\n case fallback === provider: break;\n case IsUndefined(first):\n first = provider;\n break;\n case first === provider: break;\n case IsUndefined(second):\n second = provider;\n break;\n case second === provider: break;\n default:\n if (rest === undefined)\n rest = new _Set();\n rest.add(provider);\n break;\n }\n }\n function getProviderNoCache(O, P) {\n if (!IsUndefined(first)) {\n if (first.isProviderFor(O, P))\n return first;\n if (!IsUndefined(second)) {\n if (second.isProviderFor(O, P))\n return first;\n if (!IsUndefined(rest)) {\n var iterator = GetIterator(rest);\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n return undefined;\n }\n var provider = IteratorValue(next);\n if (provider.isProviderFor(O, P)) {\n IteratorClose(iterator);\n return provider;\n }\n }\n }\n }\n }\n if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {\n return fallback;\n }\n return undefined;\n }\n function getProvider(O, P) {\n var providerMap = targetProviderMap.get(O);\n var provider;\n if (!IsUndefined(providerMap)) {\n provider = providerMap.get(P);\n }\n if (!IsUndefined(provider)) {\n return provider;\n }\n provider = getProviderNoCache(O, P);\n if (!IsUndefined(provider)) {\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return provider;\n }\n function hasProvider(provider) {\n if (IsUndefined(provider))\n throw new TypeError();\n return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);\n }\n function setProvider(O, P, provider) {\n if (!hasProvider(provider)) {\n throw new Error(\"Metadata provider not registered.\");\n }\n var existingProvider = getProvider(O, P);\n if (existingProvider !== provider) {\n if (!IsUndefined(existingProvider)) {\n return false;\n }\n var providerMap = targetProviderMap.get(O);\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return true;\n }\n }\n /**\n * Gets or creates the shared registry of metadata providers.\n */\n function GetOrCreateMetadataRegistry() {\n var metadataRegistry;\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n metadataRegistry = root.Reflect[registrySymbol];\n }\n if (IsUndefined(metadataRegistry)) {\n metadataRegistry = CreateMetadataRegistry();\n }\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n Object.defineProperty(root.Reflect, registrySymbol, {\n enumerable: false,\n configurable: false,\n writable: false,\n value: metadataRegistry\n });\n }\n return metadataRegistry;\n }\n function CreateMetadataProvider(registry) {\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var metadata = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var targetMetadata = metadata.get(O);\n if (IsUndefined(targetMetadata))\n return false;\n return targetMetadata.has(P);\n },\n OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,\n OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,\n OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,\n OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,\n OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,\n };\n metadataRegistry.registerProvider(provider);\n return provider;\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = metadata.get(O);\n var createdTargetMetadata = false;\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n metadata.set(O, targetMetadata);\n createdTargetMetadata = true;\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n if (!registry.setProvider(O, P, provider)) {\n targetMetadata.delete(P);\n if (createdTargetMetadata) {\n metadata.delete(O);\n }\n throw new Error(\"Wrong provider for target.\");\n }\n }\n return metadataMap;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n function OrdinaryDeleteMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(MetadataKey))\n return false;\n if (metadataMap.size === 0) {\n var targetMetadata = metadata.get(O);\n if (!IsUndefined(targetMetadata)) {\n targetMetadata.delete(P);\n if (targetMetadata.size === 0) {\n metadata.delete(targetMetadata);\n }\n }\n }\n return true;\n }\n }\n function CreateFallbackProvider(reflect) {\n var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;\n var metadataOwner = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var metadataPropertySet = metadataOwner.get(O);\n if (!IsUndefined(metadataPropertySet)) {\n return metadataPropertySet.has(P);\n }\n if (getOwnMetadataKeys(O, P).length) {\n if (IsUndefined(metadataPropertySet)) {\n metadataPropertySet = new _Set();\n metadataOwner.set(O, metadataPropertySet);\n }\n metadataPropertySet.add(P);\n return true;\n }\n return false;\n },\n OrdinaryDefineOwnMetadata: defineMetadata,\n OrdinaryHasOwnMetadata: hasOwnMetadata,\n OrdinaryGetOwnMetadata: getOwnMetadata,\n OrdinaryOwnMetadataKeys: getOwnMetadataKeys,\n OrdinaryDeleteMetadata: deleteMetadata,\n };\n return provider;\n }\n /**\n * Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,\n * then this module's metadata provider is assigned to the object.\n */\n function GetMetadataProvider(O, P, Create) {\n var registeredProvider = metadataRegistry.getProvider(O, P);\n if (!IsUndefined(registeredProvider)) {\n return registeredProvider;\n }\n if (Create) {\n if (metadataRegistry.setProvider(O, P, metadataProvider)) {\n return metadataProvider;\n }\n throw new Error(\"Illegal state.\");\n }\n return undefined;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n var Map = /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (SameValueZero(key, this._cacheKey)) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (!SameValueZero(this._cacheKey, key)) {\n this._cacheIndex = -1;\n for (var i = 0; i < this._keys.length; i++) {\n if (SameValueZero(this._keys[i], key)) {\n this._cacheIndex = i;\n break;\n }\n }\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n return Map;\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n var Set = /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.keys(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n return Set;\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n if (typeof crypto !== \"undefined\")\n return crypto.getRandomValues(new Uint8Array(size));\n if (typeof msCrypto !== \"undefined\")\n return msCrypto.getRandomValues(new Uint8Array(size));\n return FillRandomBytes(new Uint8Array(size), size);\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Return the descriptor for a given class and propertyKey\n * @param target\n * @param {string} propertyKey\n * @returns {PropertyDescriptor}\n */\nexport function descriptorOf(target, propertyKey) {\n return Reflect.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);\n}\nexport function isMethodDescriptor(target, propertyKey) {\n return descriptorOf(target, propertyKey)?.value;\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nexport function Configurable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, enumerable: true };\n descriptor.configurable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","function deprecate(fn, msg) {\n if (typeof process !== \"undefined\" && process.noDeprecation === true) {\n return fn;\n }\n // Allow for deprecating things in the process of starting up.\n if (typeof process === \"undefined\") {\n return function (...args) {\n return deprecate(fn, msg).apply(this, args);\n };\n }\n let warned = false;\n function deprecated(...args) {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n }\n else if (process.traceDeprecation) {\n console.trace(msg);\n }\n else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, args);\n }\n return deprecated;\n}\n/**\n * The `@Deprecated()` decorators wraps the given method in such a way that it is marked as deprecated.\n *\n * ```typescript\n * provide Foo {\n *\n * @Deprecated(\"Foo.method: Use Foo.method2 instead\")\n * public method() {\n *\n * }\n * ```\n *\n * When called, @Deprecated() will return a function that will emit a `DeprecationWarning` using the `process.on('warning')` event.\n * By default, this warning will be emitted and printed to `stderr` exactly once, the first time it is called. After the warning is emitted, the wrapped method is called.\n *\n * If either the `--no-deprecation` or `--no-warnings` command line flags are used, or if the `process.noDeprecation`\n * property is set to `true` prior to the first deprecation warning, the `@Deprecated()` decorators does nothing.\n *\n * If the `--trace-deprecation` or `--trace-warnings` command line flags are set, or the `process.traceDeprecation`\n * property is set to `true`, a warning and a stack trace are printed to stderr the first time the deprecated function is called.\n *\n * If the `--throw-deprecation` command line flag is set, or the `process.throwDeprecation` property is set to `true`,\n * then an exception will be thrown when the deprecated function is called.\n *\n * The `--throw-deprecation` command line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation`\n * and `process.traceDeprecation`.\n *\n * @param message\n * @returns {Function}\n * @decorator\n */\nexport function Deprecated(message) {\n return (target, targetKey, descriptor) => {\n const originalMethod = descriptor.value;\n descriptor.value = deprecate(originalMethod, message);\n return descriptor;\n };\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nexport function Enumerable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, configurable: true };\n descriptor.enumerable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Configurable } from \"./configurable.js\";\nexport function NotConfigurable() {\n return Configurable(false);\n}\n","import { Enumerable } from \"./enumerable.js\";\nexport function NotEnumerable() {\n return Enumerable(false);\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nexport function Writable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { configurable: true, enumerable: true };\n descriptor.writable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Writable } from \"./writable.js\";\nexport function Readonly() {\n return Writable(false);\n}\n","export var DecoratorTypes;\n(function (DecoratorTypes) {\n DecoratorTypes[\"PARAM\"] = \"parameter\";\n DecoratorTypes[\"PARAM_CTOR\"] = \"parameter.constructor\";\n DecoratorTypes[\"PARAM_STC\"] = \"parameter.static\";\n DecoratorTypes[\"PROP\"] = \"property\";\n DecoratorTypes[\"PROP_STC\"] = \"property.static\";\n DecoratorTypes[\"METHOD\"] = \"method\";\n DecoratorTypes[\"METHOD_STC\"] = \"method.static\";\n DecoratorTypes[\"CLASS\"] = \"class\";\n})(DecoratorTypes || (DecoratorTypes = {}));\n","/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n */\nexport function getClass(target) {\n return target.prototype ? target : target.constructor;\n}\n/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n * @alias getClass\n */\nexport function classOf(target) {\n return getClass(target);\n}\n","import { DecoratorTypes } from \"../../domain/DecoratorTypes.js\";\nimport { classOf } from \"../objects/classOf.js\";\nexport function decoratorTypeOf(args) {\n const [target, propertyKey, descriptor] = args;\n const staticType = (type) => {\n return target !== classOf(target) ? type : `${type}.static`;\n };\n if (typeof descriptor === \"number\") {\n return propertyKey ? staticType(\"parameter\") : \"parameter.constructor\";\n }\n if (descriptor && descriptor.value) {\n return staticType(\"method\");\n }\n if ((propertyKey && descriptor === undefined) || descriptor) {\n return staticType(\"property\");\n }\n return DecoratorTypes.CLASS;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isDate(target) {\n return target === Date || (target instanceof Date && !isNaN(+target));\n}\n","export function isFunction(target) {\n return typeof target === \"function\";\n}\n","export function isNil(value) {\n return value === undefined || value === null;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isBoolean(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\nexport function isBooleanOrBooleanClass(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isNumber(target) {\n return typeof target === \"number\";\n}\nexport function isNumberOrNumberClass(target) {\n return typeof target === \"number\" || target instanceof Number || target === Number;\n}\n","/**\n * @param target\n * @returns {boolean}\n */\nexport function isString(target) {\n return typeof target === \"string\";\n}\nexport function isStringOrStringClass(target) {\n return typeof target === \"string\" || target instanceof String || target === String;\n}\n","import { isBoolean, isBooleanOrBooleanClass } from \"./isBoolean.js\";\nimport { isNumber, isNumberOrNumberClass } from \"./isNumber.js\";\nimport { isString, isStringOrStringClass } from \"./isString.js\";\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isPrimitiveOrPrimitiveClass(target) {\n return isStringOrStringClass(target) || isNumberOrNumberClass(target) || isBooleanOrBooleanClass(target);\n}\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n */\nexport function isPrimitive(target) {\n return isString(target) || isNumber(target) || isBoolean(target);\n}\nexport function isPrimitiveClass(target) {\n return [String, Number, Boolean].includes(target);\n}\n","export function isRegExp(target) {\n return target instanceof RegExp;\n}\n","/**\n *\n * @param target\n */\nexport function isSymbol(target) {\n return typeof target === \"symbol\";\n}\nexport function isSymbolOrSymbolClass(target) {\n return typeof target === \"symbol\" || target instanceof Symbol || target === Symbol;\n}\n","import { classOf } from \"./classOf.js\";\nimport { isDate } from \"./isDate.js\";\nimport { isFunction } from \"./isFunction.js\";\nimport { isNil } from \"./isNil.js\";\nimport { isPrimitive } from \"./isPrimitive.js\";\nimport { isRegExp } from \"./isRegExp.js\";\nimport { isSymbol } from \"./isSymbol.js\";\nconst isBasicType = (source) => isNil(source) || isPrimitive(source) || isSymbol(source) || isFunction(source);\n/**\n * Return a cloned value\n * @param source\n * @param stack\n */\nexport const deepClone = (source, stack = new WeakMap()) => {\n // provides an early exit for simple cases\n if (isBasicType(source)) {\n return source;\n }\n const stacked = stack.get(source);\n if (stacked) {\n // See issue #1619\n return stacked;\n }\n if (ArrayBuffer.isView(source)) {\n return Buffer.isBuffer(source)\n ? Buffer.from(source)\n : // adds support for all kind of TypedArray such as Int8Array, Uint8Array, etc\n new (classOf(source))(source.buffer.slice(0), source.byteOffset, source.byteLength);\n }\n if (isDate(source)) {\n return new Date(source);\n }\n if (isRegExp(source)) {\n return new RegExp(source);\n }\n if (Array.isArray(source)) {\n const clone = [];\n stack.set(source, clone);\n source.forEach((item, idx) => (clone[idx] = deepClone(item, stack)));\n return clone;\n }\n if (source instanceof Map) {\n const clone = new Map();\n stack.set(source, clone);\n source.forEach((value, key) => clone.set(deepClone(key, stack), deepClone(value, stack)));\n return clone;\n }\n if (source instanceof Set) {\n const clone = new Set();\n stack.set(source, clone);\n source.forEach((value) => clone.add(deepClone(value, stack)));\n return clone;\n }\n const clone = Object.create(Reflect.getPrototypeOf(source));\n stack.set(source, clone);\n Reflect.ownKeys(source).forEach((key) => {\n // respects property descriptors and the prototype chain more explicitly, which is important for objects with getter/setter.\n const descriptor = Object.getOwnPropertyDescriptor(source, key);\n if (descriptor) {\n if (!isFunction(descriptor.value)) {\n Object.defineProperty(clone, key, {\n ...descriptor,\n value: deepClone(descriptor.value, stack)\n });\n }\n else {\n Object.defineProperty(clone, key, descriptor);\n }\n }\n });\n return clone;\n};\n","import { classOf } from \"./classOf.js\";\nexport function createInstance(obj) {\n return obj ? (classOf(obj) !== Object ? Object.create(obj) : {}) : {};\n}\n","/**\n * Prevent prototype pollution vulnerability\n * @param key\n */\nexport function isProtectedKey(key) {\n return [\"__proto__\", \"constructor\", \"prototype\"].includes(key);\n}\n","import { isProtectedKey } from \"./isProtectedKey.js\";\nexport function objectKeys(obj) {\n return Object.keys(obj).filter((key) => !isProtectedKey(key));\n}\n","import { createInstance } from \"./createInstance.js\";\nimport { isFunction } from \"./isFunction.js\";\nimport { isPrimitive } from \"./isPrimitive.js\";\nimport { isSymbol } from \"./isSymbol.js\";\nimport { objectKeys } from \"./objectKeys.js\";\nexport function mergeReducerBuilder(cb) {\n return (collection, value, options) => {\n const index = collection.findIndex((item) => cb(item, value));\n if (index === -1) {\n return [...collection, value];\n }\n collection[index] = deepMerge(collection[index], value, options);\n return collection;\n };\n}\nconst defaultReducer = mergeReducerBuilder((a, b) => a === b);\nfunction getReducer({ reducers, parentKey }) {\n if (!reducers) {\n return defaultReducer;\n }\n if (parentKey && reducers[parentKey]) {\n return reducers[parentKey];\n }\n return reducers[\"default\"] || defaultReducer;\n}\nfunction shouldReturnObj(obj, source) {\n return isPrimitive(obj) || isSymbol(obj) || isFunction(obj) || source === undefined;\n}\nfunction shouldReturnSource(obj, source) {\n return obj === undefined || obj === null || (obj === \"\" && source !== \"\");\n}\nexport function deepMerge(source, obj, options = {}) {\n if (shouldReturnSource(obj, source)) {\n return source;\n }\n if (shouldReturnObj(obj, source)) {\n return obj;\n }\n if (Array.isArray(source)) {\n const reducer = getReducer(options);\n return [].concat(obj).reduce((out, value) => reducer(out, value, options), [...source]);\n }\n return [...objectKeys(source), ...objectKeys(obj)].reduce((out, key) => {\n const src = source && source[key];\n const value = deepMerge(src, obj && obj[key], {\n ...options,\n parentKey: key\n });\n if (options.cleanUndefinedProps && value === undefined) {\n return out;\n }\n return {\n ...out,\n [key]: value\n };\n }, createInstance(source));\n}\n","/**\n * Get the provide name.\n * @param targetClass\n */\nexport function nameOfClass(targetClass) {\n return typeof targetClass === \"function\" ? targetClass.name : targetClass.constructor.name;\n}\n/**\n * Get symbol name.\n * @param sym\n */\nexport const nameOfSymbol = (sym) => sym.toString().replace(\"Symbol(\", \"\").replace(\")\", \"\");\n/**\n * Get object name\n */\nexport function nameOf(obj) {\n switch (typeof obj) {\n default:\n return \"\" + obj;\n case \"symbol\":\n return nameOfSymbol(obj);\n case \"function\":\n return nameOfClass(obj);\n }\n}\n","import \"reflect-metadata\";\nimport { classOf } from \"../utils/objects/classOf.js\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_PARAM_TYPES = \"design:paramtypes\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_TYPE = \"design:type\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_RETURN_TYPE = \"design:returntype\";\n/**\n * Properties collections\n * @private\n * @type {string}\n */\nconst PROPERTIES = new Map();\n/**\n * @stable\n */\nexport class Metadata {\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.get(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static get(key, target, propertyKey) {\n return Reflect.getMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.getOwn(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static getOwn(key, target, propertyKey) {\n return Reflect.getOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getType(Example, \"staticMethod\");\n * ```\n *\n */\n static getType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getReturnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnReturnType(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static has(key, target, propertyKey) {\n try {\n return Reflect.hasMetadata(key, classOf(target), propertyKey);\n }\n catch (er) { }\n return false;\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static hasOwn(key, target, propertyKey) {\n return Reflect.hasOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.delete(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static delete(key, target, propertyKey) {\n return Reflect.deleteMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Set the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @param value A value that contains attached metadata.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.setParamTypes(Example, undefined, [Object]);\n *\n * // property (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticProperty\", [Object]);\n *\n * // property (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"property\", [Object]);\n *\n * // method (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticMethod\", [Object]);\n *\n * // method (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"method\", [Object]);\n * ```\n *\n */\n static setParamTypes(target, propertyKey, value) {\n return this.set(DESIGN_PARAM_TYPES, value, target.prototype, propertyKey);\n }\n /**\n * Get all metadata for a metadataKey.\n * @param metadataKey\n */\n static { this.getTargetsFromPropertyKey = (metadataKey) => PROPERTIES.has(metadataKey) ? PROPERTIES.get(metadataKey) || [] : []; }\n /**\n * Define a unique metadata entry on the target.\n * @param key A key used to store and retrieve metadata.\n * @param value A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey The property key for the target.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): PropertyDecorator {\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n * ```\n *\n */\n static set(key, value, target, propertyKey) {\n const targets = PROPERTIES.has(key) ? PROPERTIES.get(key) || [] : [];\n const classConstructor = classOf(target);\n if (targets.indexOf(classConstructor) === -1) {\n targets.push(classConstructor);\n PROPERTIES.set(key, targets);\n }\n Reflect.defineMetadata(key, value, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param targetPrototype\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example.prototype);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticMethod\");\n * ```\n *\n */\n static getParamTypes(targetPrototype, propertyKey) {\n return Reflect.getMetadata(DESIGN_PARAM_TYPES, targetPrototype, propertyKey) || [];\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnParamTypes(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_PARAM_TYPES, target, propertyKey) || [];\n }\n}\n","import { DecoratorTypes } from \"../domain/DecoratorTypes.js\";\nimport { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf.js\";\nimport { deepClone } from \"../utils/objects/deepClone.js\";\nimport { deepMerge } from \"../utils/objects/deepMerge.js\";\nimport { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nimport { isSymbol } from \"../utils/objects/isSymbol.js\";\nimport { nameOf } from \"../utils/objects/nameOf.js\";\nimport { Metadata } from \"./Metadata.js\";\n/**\n * @ignore\n */\nexport const CLASS_STORE = \"tsed:class:store\";\n/**\n * @ignore\n */\nexport const METHOD_STORE = \"tsed:method:store\";\n/**\n * @ignore\n */\nexport const PROPERTY_STORE = \"tsed:property:store\";\n/**\n * @ignore\n */\nexport const PARAM_STORE = \"tsed:param:store\";\nconst stores = new Map();\nfunction storeGet(key, ...args) {\n if (isSymbol(args[0])) {\n if (!stores.has(args[0])) {\n stores.set(args[0], new Store());\n }\n return stores.get(args[0]);\n }\n else {\n const registry = Metadata;\n if (!registry.hasOwn(key, ...args)) {\n registry.set(key, new Store(), ...args);\n }\n return registry.getOwn(key, ...args);\n }\n}\nfunction defineStore(args) {\n const [target, propertyKey, descriptor] = args;\n switch (decoratorTypeOf(args)) {\n case DecoratorTypes.PARAM_CTOR:\n case DecoratorTypes.PARAM_STC:\n case DecoratorTypes.PARAM:\n const store = storeGet(PARAM_STORE, target, propertyKey);\n if (!store.has(\"\" + descriptor)) {\n store.set(\"\" + descriptor, new Store());\n }\n return store.get(\"\" + descriptor);\n case DecoratorTypes.PROP:\n case DecoratorTypes.PROP_STC:\n return storeGet(PROPERTY_STORE, target, propertyKey);\n case DecoratorTypes.METHOD:\n case DecoratorTypes.METHOD_STC:\n return storeGet(METHOD_STORE, target, propertyKey);\n case DecoratorTypes.CLASS:\n return storeGet(CLASS_STORE, target);\n }\n}\nexport class Store {\n constructor() {\n this._entries = new Map();\n }\n /**\n * Create or get a Store from args {target + methodName + descriptor}\n * @param args\n * @returns {Store}\n */\n static from(...args) {\n return defineStore(args);\n }\n /**\n * Create store on the method.\n * @param target\n * @param {string} propertyKey\n * @returns {Store}\n */\n static fromMethod(target, propertyKey) {\n return Store.from(target, propertyKey, descriptorOf(target, propertyKey));\n }\n static mergeStoreFrom(target, source, ...args) {\n const store = Store.from(target, ...args);\n Store.from(source, ...args)._entries.forEach((value, key) => {\n store.merge(key, value);\n });\n return store;\n }\n static mergeStoreMethodFrom(target, source, propertyKey) {\n return this.mergeStoreFrom(target, source, propertyKey, descriptorOf(target, propertyKey));\n }\n /**\n * The get() method returns a specified element from a Map object.\n * @param key Required. The key of the element to return from the Map object.\n * @param defaultValue\n * @returns {T} Returns the element associated with the specified key or undefined if the key can't be found in the Map object.\n */\n get(key, defaultValue) {\n return this._entries.get(nameOf(key)) || defaultValue;\n }\n /**\n * The has() method returns a boolean indicating whether an element with the specified key exists or not.\n * @param key\n * @returns {boolean}\n */\n has(key) {\n return this._entries.has(nameOf(key));\n }\n /**\n * The set() method adds or updates an element with a specified key and value to a Map object.\n * @param key Required. The key of the element to add to the Map object.\n * @param metadata Required. The value of the element to add to the Map object.\n */\n set(key, metadata) {\n this._entries.set(nameOf(key), metadata);\n return this;\n }\n /**\n * The delete() method removes the specified element from a Map object.\n * @param key Required. The key of the element to remove from the Map object.\n * @returns {boolean} Returns true if an element in the Map object existed and has been removed, or false if the element does not exist.\n */\n delete(key) {\n return this._entries.delete(nameOf(key));\n }\n /**\n * Merge given value with existing value.\n * @param key\n * @param value\n * @param inverse Change the merge order. Get the existing value and apply over given value\n * @returns {Store}\n */\n merge(key, value, inverse = false) {\n let _value_ = this.get(key);\n if (_value_) {\n value = deepClone(value);\n _value_ = deepClone(_value_);\n value = inverse ? deepMerge(value, _value_) : deepMerge(_value_, value);\n }\n this.set(key, value);\n return this;\n }\n toJson() {\n return [...this._entries.entries()].reduce((obj, [key, value]) => {\n return {\n ...obj,\n [key]: value\n };\n }, {});\n }\n}\n","import { Store } from \"../domain/Store.js\";\n/**\n * Create a store correctly configured from the parameters given by the decorator.\n * The `fn` can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).\n * @param {(store: Store, parameters: DecoratorParameters) => void} fn\n * @returns {Function}\n */\nexport function StoreFn(fn) {\n return (...parameters) => {\n const store = Store.from(...parameters);\n const result = fn(store, parameters);\n if (typeof result === \"function\") {\n result(...parameters);\n }\n return parameters[2];\n };\n}\n","import { StoreFn } from \"./storeFn.js\";\nexport function StoreMerge(key, value) {\n return StoreFn((store) => {\n store.merge(key, value);\n });\n}\n","import { StoreFn } from \"./storeFn.js\";\nexport function StoreSet(key, value) {\n return StoreFn((store) => {\n store.set(key, value);\n });\n}\n","export function isObject(target) {\n return typeof target === \"object\";\n}\n","export function isObservable(obj) {\n return !!obj && typeof obj.lift === \"function\" && typeof obj.subscribe === \"function\";\n}\n","/**\n * Tests to see if the object is an ES2015 (ES6) Promise\n * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}\n * @param target\n * @returns {boolean}\n */\nexport function isPromise(target) {\n return (target === Promise ||\n target instanceof Promise ||\n (!!target && typeof target.subscribe !== \"function\" && typeof target.then === \"function\"));\n}\n","export function isStream(obj) {\n return obj !== null && typeof obj === \"object\" && typeof obj.pipe === \"function\";\n}\n","import { isObject } from \"../utils/objects/isObject.js\";\nimport { isObservable } from \"../utils/objects/isObservable.js\";\nimport { isPromise } from \"../utils/objects/isPromise.js\";\nimport { isStream } from \"../utils/objects/isStream.js\";\n/**\n * @ignore\n */\nfunction isResponse(obj) {\n return isObject(obj) && \"data\" in obj && \"headers\" in obj && \"status\" in obj && \"statusText\" in obj;\n}\n/**\n * @ignore\n */\nexport var AnyToPromiseStatus;\n(function (AnyToPromiseStatus) {\n AnyToPromiseStatus[\"PENDING\"] = \"PENDING\";\n AnyToPromiseStatus[\"CANCELED\"] = \"CANCELED\";\n AnyToPromiseStatus[\"RESOLVED\"] = \"RESOLVED\";\n AnyToPromiseStatus[\"REJECTED\"] = \"REJECTED\";\n})(AnyToPromiseStatus || (AnyToPromiseStatus = {}));\nexport var AnyToPromiseResponseTypes;\n(function (AnyToPromiseResponseTypes) {\n AnyToPromiseResponseTypes[\"STREAM\"] = \"STREAM\";\n AnyToPromiseResponseTypes[\"BUFFER\"] = \"BUFFER\";\n AnyToPromiseResponseTypes[\"DATA\"] = \"DATA\";\n})(AnyToPromiseResponseTypes || (AnyToPromiseResponseTypes = {}));\nexport class AnyToPromise {\n #resolves;\n #rejects;\n #hasNextFunction;\n #promise;\n constructor({ hasNextFunction = false } = {}) {\n this.status = AnyToPromiseStatus.PENDING;\n this.#hasNextFunction = false;\n this.#hasNextFunction = hasNextFunction;\n this.#promise = new Promise((resolve, reject) => {\n this.#resolves = resolve;\n this.#rejects = reject;\n });\n }\n isDone() {\n return this.status !== AnyToPromiseStatus.PENDING;\n }\n get next() {\n this.#hasNextFunction = true;\n return (error) => {\n if (this.isDone()) {\n return;\n }\n return error ? this.reject(error) : this.resolve({ type: AnyToPromiseResponseTypes.DATA });\n };\n }\n /**\n *\n */\n call(cb) {\n if (this.isDone()) {\n return Promise.resolve(this);\n }\n try {\n this.handle(cb());\n }\n catch (er) {\n this.reject(er);\n }\n return this.#promise;\n }\n reject(er) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.REJECTED);\n this.#rejects(er);\n }\n resolve(response = {}) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.RESOLVED);\n this.#resolves({ ...response, state: AnyToPromiseStatus.RESOLVED });\n }\n destroy() { }\n cancel() {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.CANCELED);\n return this.#resolves({ state: AnyToPromiseStatus.CANCELED });\n }\n done(status) {\n this.destroy();\n this.status = status;\n }\n handle(process, additionalProps = {}) {\n if (this.isDone()) {\n return;\n }\n if (process) {\n if (this.isCanceledResponse(process)) {\n // ABANDON\n return this.cancel();\n }\n if (isObservable(process)) {\n process = process.toPromise();\n }\n if (isResponse(process)) {\n return this.handle(process.data, {\n ...additionalProps,\n status: process.status,\n headers: process.headers\n });\n }\n if (isStream(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.STREAM, data: process });\n }\n if (isStream(process) || Buffer.isBuffer(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.BUFFER, data: process });\n }\n if (isPromise(process)) {\n return process\n .then((result) => this.handle(result, additionalProps))\n .catch((error) => {\n if (error.response && isResponse(error.response)) {\n return this.handle(error.response);\n }\n return this.reject(error);\n });\n }\n }\n if (!this.#hasNextFunction) {\n // no next function and empty response\n return this.resolve({\n ...additionalProps,\n data: process,\n type: AnyToPromiseResponseTypes.DATA\n });\n }\n }\n isCanceledResponse(process) {\n return process === AnyToPromiseStatus.CANCELED;\n }\n}\n","/**\n *\n */\nexport var Env;\n(function (Env) {\n Env[\"PROD\"] = \"production\";\n Env[\"DEV\"] = \"development\";\n Env[\"TEST\"] = \"test\";\n})(Env || (Env = {}));\n/**\n * Fallback\n * @type {Env}\n */\n// tslint:disable-next-line: variable-name\nexport const EnvTypes = Env;\n","export class Hooks {\n #listeners = {};\n has(event) {\n return !!this.#listeners[event];\n }\n /**\n * Listen a hook event\n * @param event\n * @param cb\n */\n on(event, cb) {\n if (!this.#listeners[event]) {\n this.#listeners[event] = [];\n }\n this.#listeners[event].push(cb);\n return this;\n }\n /**\n * Remove a listener attached to an event\n * @param event\n * @param cb\n */\n off(event, cb) {\n if (this.#listeners[event]) {\n this.#listeners[event] = this.#listeners[event].filter((item) => item === cb);\n }\n return this;\n }\n /**\n * Trigger an event and call listener.\n * @param event\n * @param args\n * @param callThis\n */\n emit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n cb.call(callThis, ...args);\n }\n }\n }\n /**\n * Trigger an event, listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n alter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n /**\n * Trigger an event and call async listener.\n * @param event\n * @param args\n * @param callThis\n */\n async asyncEmit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n const promises = listeners.map((cb) => cb.call(callThis, ...args));\n await Promise.all(promises);\n }\n }\n /**\n * Trigger an event, async listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n async asyncAlter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = await cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n destroy() {\n this.#listeners = {};\n }\n}\n","export const Type = Function;\n// @ts-ignore\nglobal.Type = Type;\n","import { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf.js\";\nimport { classOf } from \"../utils/objects/classOf.js\";\nimport { nameOf } from \"../utils/objects/nameOf.js\";\nexport class UnsupportedDecoratorType extends Error {\n constructor(decorator, args) {\n super(UnsupportedDecoratorType.buildMessage(decorator, args));\n }\n static buildMessage(decorator, args) {\n const [target, propertyKey, index] = args;\n const bindingType = decoratorTypeOf(args);\n const shortBinding = bindingType.split(\"/\")[0];\n const param = shortBinding === \"parameter\" ? \".[\" + index + \"]\" : \"\";\n const cstr = shortBinding === \"parameter\" ? \".constructor\" : \"\";\n const method = propertyKey ? \".\" + propertyKey : cstr;\n const path = nameOf(classOf(target)) + method + param;\n return `${decorator.name} cannot be used as ${bindingType} decorator on ${path}`;\n }\n}\n","export function catchError(cb) {\n try {\n cb();\n }\n catch (er) {\n return er;\n }\n}\nexport async function catchAsyncError(cb) {\n try {\n await cb();\n }\n catch (er) {\n return er;\n }\n}\n","export function ancestorOf(target) {\n return target && Object.getPrototypeOf(target);\n}\nexport function getInheritedClass(target) {\n return ancestorOf(target);\n}\n","import { getInheritedClass } from \"./ancestorOf.js\";\nimport { classOf } from \"./classOf.js\";\nimport { nameOf } from \"./nameOf.js\";\n/**\n *\n * @param target\n * @returns {Array}\n */\nexport function ancestorsOf(target) {\n const classes = [];\n let currentTarget = classOf(target);\n while (currentTarget && nameOf(currentTarget) !== \"\") {\n classes.unshift(currentTarget);\n currentTarget = getInheritedClass(currentTarget);\n }\n return classes;\n}\n","import { classOf } from \"./classOf.js\";\n/**\n * Return the prototype of the given class.\n * @param target\n * @returns {any}\n */\nexport function prototypeOf(target) {\n return classOf(target) === target ? target.prototype : target;\n}\n","import { ancestorsOf } from \"./ancestorsOf.js\";\nimport { classOf } from \"./classOf.js\";\nimport { prototypeOf } from \"./prototypeOf.js\";\n/**\n * Return all methods for a given class.\n * @param target\n */\nexport function methodsOf(target) {\n const methods = new Map();\n target = classOf(target);\n ancestorsOf(target).forEach((target) => {\n const keys = Reflect.ownKeys(prototypeOf(target));\n keys.forEach((propertyKey) => {\n if (propertyKey !== \"constructor\") {\n methods.set(propertyKey, { target, propertyKey });\n }\n });\n });\n return Array.from(methods.values());\n}\n","import { Store } from \"../../domain/Store.js\";\nimport { classOf } from \"../objects/classOf.js\";\nimport { descriptorOf } from \"../objects/descriptorOf.js\";\nimport { methodsOf } from \"../objects/methodsOf.js\";\nimport { prototypeOf } from \"../objects/prototypeOf.js\";\nexport function decorateMethodsOf(klass, decorator) {\n methodsOf(klass).forEach(({ target, propertyKey }) => {\n const proto = prototypeOf(klass);\n if (target !== classOf(klass)) {\n Object.defineProperty(proto, propertyKey, {\n writable: true,\n configurable: true,\n value(...args) {\n return prototypeOf(target)[propertyKey].apply(this, args);\n }\n });\n Store.mergeStoreMethodFrom(klass, target, propertyKey);\n }\n const newDescriptor = decorator(proto, propertyKey, descriptorOf(klass, propertyKey));\n if (newDescriptor) {\n Object.defineProperty(proto, propertyKey, newDescriptor);\n }\n });\n}\n","import { descriptorOf } from \"../objects/descriptorOf.js\";\nexport function decoratorArgs(target, propertyKey) {\n return [target, propertyKey, descriptorOf(target, propertyKey)];\n}\n","import { ancestorsOf } from \"../objects/ancestorsOf.js\";\nexport function inheritedDescriptorOf(target, propertyKey) {\n for (const klass of ancestorsOf(target)) {\n const descriptor = Object.getOwnPropertyDescriptor((klass && klass.prototype) || klass, propertyKey);\n if (descriptor) {\n return descriptor;\n }\n }\n return undefined;\n}\n","export function useDecorators(...decorators) {\n return (...args) => {\n decorators\n .filter((o) => !!o)\n .forEach((decorator) => {\n decorator(...args);\n });\n };\n}\n","import { descriptorOf } from \"../objects/descriptorOf.js\";\nexport function useMethodDecorator(decorator) {\n return (target, propertyKey) => decorator(target, propertyKey, descriptorOf(target, propertyKey));\n}\nexport function useMethodDecorators(...decorators) {\n return (target, propertyKey) => {\n decorators.filter(Boolean).forEach((decorator) => decorator(target, propertyKey, descriptorOf(target, propertyKey)));\n };\n}\n","export function getRandomId() {\n return `e${Math.random().toString(36).substring(7)}`;\n}\n","export function getHostInfoFromPort(protocol, addressPort) {\n let address = \"0.0.0.0\";\n let port = addressPort;\n if (typeof addressPort === \"string\" && addressPort.indexOf(\":\") > -1) {\n [address, port] = addressPort.split(\":\");\n port = +port;\n }\n return {\n protocol,\n address,\n port: port,\n toString() {\n return [`${this.protocol}://${this.address}`, typeof this.port === \"number\" && this.port].filter(Boolean).join(\":\");\n }\n };\n}\n","export async function importPackage(packageName, loaderFn = () => import(packageName), optional = false) {\n try {\n return await loaderFn();\n }\n catch (e) {\n if (!optional) {\n throw e;\n }\n return {};\n }\n}\n","import { isProtectedKey } from \"./isProtectedKey.js\";\n/**\n * Remove undefined value\n * @param obj\n * @param ignore\n */\nexport function cleanObject(obj, ignore = []) {\n return Object.entries(obj).reduce((obj, [key, value]) => {\n if (isProtectedKey(key) || ignore.includes(key)) {\n return obj;\n }\n return value === undefined\n ? obj\n : {\n ...obj,\n [key]: value\n };\n }, {});\n}\n","/**\n * Get the class constructor\n * @param target\n */\nexport function getConstructor(target) {\n return typeof target === \"function\" ? target : target.constructor;\n}\n/**\n * Get the class constructor\n * @param target\n */\nexport function constructorOf(target) {\n return getConstructor(target);\n}\n","/**\n * Return true if value is an array\n * @param target\n * @returns {boolean}\n */\nexport function isArray(target) {\n return Array.isArray(target);\n}\n/**\n * Return true if the clazz is an array.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isArrayOrArrayClass(target) {\n return target === Array || isArray(target);\n}\n","import { isFunction } from \"./isFunction.js\";\nexport function isArrowFn(target) {\n return target && isFunction(target) && !target.prototype;\n}\n","/**\n * Tests to see if the object is Buffer\n * @param target\n * @returns {boolean}\n */\nexport function isBuffer(target) {\n // is Class\n if (target && \"isBuffer\" in target && typeof target.isBuffer === \"function\") {\n return true;\n }\n return isUint8Array(target);\n}\nexport function isUint8Array(target) {\n return !!(target && (target === Uint8Array || target instanceof Uint8Array));\n}\n","import { classOf } from \"./classOf.js\";\n/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isClassObject(target) {\n return target === Object;\n}\nexport function isPlainObject(target) {\n return isClassObject(classOf(target)) && target !== Object;\n}\n","import { isArrayOrArrayClass } from \"./isArray.js\";\nimport { isArrowFn } from \"./isArrowFn.js\";\nimport { isBuffer } from \"./isBuffer.js\";\nimport { isDate } from \"./isDate.js\";\nimport { isClassObject } from \"./isPlainObject.js\";\nimport { isPrimitiveOrPrimitiveClass } from \"./isPrimitive.js\";\nimport { isPromise } from \"./isPromise.js\";\nimport { isSymbol } from \"./isSymbol.js\";\nexport function isClass(target) {\n if (!target) {\n return false;\n }\n if (isArrowFn(target)) {\n return false;\n }\n return !(isSymbol(target) ||\n isPrimitiveOrPrimitiveClass(target) ||\n isClassObject(target) ||\n isDate(target) ||\n isPromise(target) ||\n isArrayOrArrayClass(target) ||\n isBuffer(target));\n}\n","import { classOf } from \"./classOf.js\";\nimport { isClass } from \"./isClass.js\";\nexport function getClassOrSymbol(target) {\n return isClass(target) ? classOf(target) : target;\n}\n","import { constructorOf } from \"./constructorOf.js\";\nexport function toStringConstructor(target) {\n const ctr = constructorOf(target);\n const strings = ctr.toString().split(\"\\n\");\n const ctrString = strings.find((s) => s.indexOf(\"constructor(\") > -1) || \"constructor()\";\n return `${ctrString.replace(\"{\", \"\").trim()}`;\n}\n","import { toStringConstructor } from \"./toStringConstructor.js\";\nexport function getConstructorArgNames(target) {\n return toStringConstructor(target)\n .split(\"constructor(\")[1]\n .split(\")\")[0]\n .split(\", \")\n .filter(Boolean)\n .map((s) => s.trim());\n}\n","import { inheritedDescriptorOf } from \"../decorators/inheritedDescriptorOf.js\";\nimport { classOf } from \"./classOf.js\";\n/**\n *\n * @param obj\n * @param key\n */\nexport function isEnumerable(obj, key) {\n const klass = classOf(obj);\n if (klass) {\n const descriptor = inheritedDescriptorOf(klass, key);\n if (descriptor) {\n return descriptor.enumerable;\n }\n }\n return Object.prototype.propertyIsEnumerable.call(obj, key);\n}\n","import { isEnumerable } from \"./isEnumerable.js\";\nimport { isProtectedKey } from \"./isProtectedKey.js\";\n/**\n * Return all enumerable keys of the given object\n * @param obj\n */\nexport function getEnumerableKeys(obj) {\n const keys = [];\n for (const key in obj) {\n if (!isProtectedKey(key) && isEnumerable(obj, key)) {\n keys.push(key);\n }\n }\n return keys;\n}\n","import { isFunction } from \"./isFunction.js\";\nimport { isObject } from \"./isObject.js\";\nimport { isString } from \"./isString.js\";\nconst mapOptions = (args) => {\n const [expression, scope, defaultValue, separator = \".\"] = args;\n if (isObject(scope) || isString(expression)) {\n return {\n expression,\n scope,\n defaultValue,\n separator\n };\n }\n return {\n expression: scope,\n scope: expression,\n defaultValue,\n separator\n };\n};\nexport function getValue(...args) {\n const options = mapOptions(args);\n let scope = options.scope;\n const { expression, defaultValue, separator } = options;\n if (!expression) {\n return scope;\n }\n if (!scope) {\n return defaultValue;\n }\n const keys = expression.split(separator);\n const getValue = (key) => {\n if (scope) {\n if (scope[key] !== undefined || (isObject(scope) && key in scope)) {\n return scope[key];\n }\n if (isFunction(scope.get)) {\n return scope.get(key);\n }\n }\n };\n while ((scope = getValue(keys.shift())) && keys.length) { }\n return scope === undefined ? defaultValue : scope;\n}\n","export function hasJsonMethod(obj) {\n return obj && typeof obj.toJSON === \"function\";\n}\n","import { isArrayOrArrayClass } from \"./isArray.js\";\n/**\n * Return true if the target.\n * @param target\n * @returns {boolean}\n */\nexport function isCollection(target) {\n return (isArrayOrArrayClass(target) ||\n target === Map ||\n target instanceof Map ||\n target === Set ||\n target instanceof Set ||\n target === WeakMap ||\n target instanceof WeakMap ||\n target === WeakSet ||\n target instanceof WeakSet);\n}\n","import { isNil } from \"./isNil.js\";\n/**\n * Return true if the value is an empty string, null or undefined.\n * @param value\n * @returns {boolean}\n */\nexport function isEmpty(value) {\n return value === \"\" || isNil(value);\n}\n","import { ancestorOf } from \"./ancestorOf.js\";\nimport { classOf } from \"./classOf.js\";\nimport { nameOf } from \"./nameOf.js\";\nexport function isInheritedFrom(target, from, deep = 5) {\n if (!target || !from) {\n return false;\n }\n target = classOf(target);\n from = classOf(from);\n while (nameOf(target) !== \"\") {\n if (!deep) {\n return false;\n }\n if (target === from) {\n return true;\n }\n target = ancestorOf(target);\n deep--;\n }\n return false;\n}\n","export function isMomentObject(obj) {\n return !!(obj && obj?._isAMomentObject);\n}\n","import { hasJsonMethod } from \"./hasJsonMethod.js\";\nexport function isObjectID(obj) {\n return obj && obj._bsontype;\n}\nexport function isMongooseObject(obj) {\n return !!((hasJsonMethod(obj) && obj.$isMongooseModelPrototype) || isObjectID(obj));\n}\n","import { isBoolean } from \"./isBoolean.js\";\nimport { isNil } from \"./isNil.js\";\nimport { isNumber } from \"./isNumber.js\";\nimport { isStream } from \"./isStream.js\";\nimport { isString } from \"./isString.js\";\nexport function isSerializable(data) {\n return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));\n}\n","import { isBooleanOrBooleanClass } from \"./isBoolean.js\";\nimport { isNumberOrNumberClass } from \"./isNumber.js\";\nimport { isStringOrStringClass } from \"./isString.js\";\nexport function primitiveOf(target) {\n if (isStringOrStringClass(target)) {\n return \"string\";\n }\n if (isNumberOrNumberClass(target)) {\n return \"number\";\n }\n if (isBooleanOrBooleanClass(target)) {\n return \"boolean\";\n }\n return \"any\";\n}\n","import { isProtectedKey } from \"./isProtectedKey.js\";\nexport function setValue(scope, expression, value, separator = \".\") {\n const keys = expression.split(separator);\n const setValue = (key, add) => {\n if (isProtectedKey(key)) {\n return false;\n }\n if (add) {\n if (typeof scope.set === \"function\") {\n scope.set(key, value);\n }\n else {\n scope[key] = value;\n }\n return false;\n }\n if (typeof scope.set === \"function\") {\n if (!scope.has(key)) {\n scope.set(key, {});\n }\n scope = scope.get(key);\n }\n else {\n scope = scope[key] = scope[key] || {};\n }\n return true;\n };\n while (setValue(keys.shift(), !keys.length)) { }\n}\n","import { isArray } from \"./isArray.js\";\nimport { isString } from \"./isString.js\";\nfunction createIdentityFn(keyOrFn) {\n if (!keyOrFn) {\n return (v, k) => String(k);\n }\n if (isString(keyOrFn)) {\n return (item) => {\n return item[keyOrFn];\n };\n }\n return keyOrFn;\n}\nexport function toMap(input, keyOrFn) {\n if (isArray(input)) {\n const identity = createIdentityFn(keyOrFn || \"id\");\n return input.reduce((map, value, index) => {\n const ids = [].concat(identity(value, index));\n ids.forEach((id) => {\n const item = map.get(id);\n value = item?.merge?.(value) || value;\n map.set(id, value);\n });\n return map;\n }, new Map());\n }\n const identity = createIdentityFn(keyOrFn);\n return Object.entries(input).reduce((map, [key, value]) => {\n return map.set(identity(value, key), value);\n }, new Map());\n}\n","/**\n * @param list\n */\nexport function uniq(list) {\n return Array.from(new Set(list).values());\n}\nexport function uniqBy(list, key = \"id\") {\n const map = new Map();\n list.forEach((item) => {\n map.set(item[key], item);\n });\n return Array.from(map.values());\n}\n","import { uniq } from \"./uniq.js\";\n/**\n * Create a complete and iterable trap.\n * @param self\n * @param options\n * @ignore\n */\nexport function proxyDelegation(self, options = {}) {\n const { handlers = {}, remove, ownKeys } = options;\n const get = options.getter || ((target, propertyKey) => target.get(propertyKey));\n const set = options.setter || ((target, propertyKey, value) => !!target.set(propertyKey, value));\n const itsOwnProp = (target, p) => Reflect.has(target, p) || typeof p === \"symbol\";\n return new Proxy(self, {\n getOwnPropertyDescriptor(target, p) {\n return Reflect.getOwnPropertyDescriptor(target, p);\n },\n has(target, p) {\n if (itsOwnProp(target, p)) {\n return Reflect.has(target, p);\n }\n return get(target, p) !== undefined;\n },\n get(target, p, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.get(target, p, receiver);\n }\n return get(target, p);\n },\n set(target, p, value, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.set(target, p, value, receiver);\n }\n return !!set(target, p, value, receiver);\n },\n deleteProperty(target, p) {\n if (itsOwnProp(target, p) || !remove) {\n return Reflect.deleteProperty(target, p);\n }\n return remove(target, p);\n },\n defineProperty(target, p, attributes) {\n return Reflect.defineProperty(target, p, attributes);\n },\n ownKeys(target) {\n return uniq(Reflect.ownKeys(target).concat((ownKeys && ownKeys(target)) || []));\n },\n ...handlers\n });\n}\n"],"names":["root","factory","exports","module","define","amd","self","webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","Reflect","globalThis","g","this","Function","_","functionThis","eval","indirectEvalThis","exporter","makeExporter","target","previous","key","value","Object","defineProperty","configurable","writable","hasOwn","prototype","hasOwnProperty","supportsSymbol","Symbol","toPrimitiveSymbol","toPrimitive","iteratorSymbol","iterator","supportsCreate","create","supportsProto","__proto__","Array","downLevel","HashMap","MakeDictionary","has","map","call","get","undefined","functionPrototype","getPrototypeOf","_Map","Map","entries","cacheSentinel","arraySentinel","MapIterator","values","selector","_index","_keys","_values","_selector","next","index","length","result","done","throw","error","return","_cacheKey","_cacheIndex","enumerable","_find","set","delete","size","i","SameValueZero","clear","getKey","getValue","getEntry","insert","push","CreateMapPolyfill","_Set","Set","_map","add","_WeakMap","WeakMap","rootKey","CreateUniqueKey","_key","table","GetOrCreateWeakMapTable","CreateUUID","FillRandomBytes","buffer","Math","random","data","Uint8Array","crypto","getRandomValues","msCrypto","offset","byte","toString","toLowerCase","CreateWeakMapPolyfill","registrySymbol","for","metadataRegistry","IsUndefined","IsObject","isExtensible","fallback","first","second","rest","defineMetadata","reflect","hasOwnMetadata","getOwnMetadata","getOwnMetadataKeys","deleteMetadata","metadataOwner","isProviderFor","O","P","metadataPropertySet","OrdinaryDefineOwnMetadata","OrdinaryHasOwnMetadata","OrdinaryGetOwnMetadata","OrdinaryOwnMetadataKeys","OrdinaryDeleteMetadata","CreateFallbackProvider","targetProviderMap","registry","registerProvider","getProvider","setProvider","provider","getProviderNoCache","GetIterator","IteratorStep","IteratorValue","IteratorClose","providerMap","hasProvider","TypeError","existingProvider","CreateMetadataRegistry","GetOrCreateMetadataRegistry","metadataProvider","metadata","targetMetadata","MetadataKey","MetadataValue","GetOrCreateMetadataMap","metadataMap","ToBoolean","k","nextValue","Create","createdTargetMetadata","CreateMetadataProvider","OrdinaryHasMetadata","parent","OrdinaryGetPrototypeOf","IsNull","GetMetadataProvider","OrdinaryGetMetadata","OrdinaryMetadataKeys","ownKeys","parentKeys","_i","ownKeys_1","_a","parentKeys_1","Type","x","ToPrimitive","input","PreferredType","hint","exoticToPrim","GetMethod","toString_1","IsCallable","valueOf","toString_2","OrdinaryToPrimitive","argument","ToPropertyKey","ToString","IsArray","isArray","IsConstructor","y","V","func","obj","method","iterResult","f","proto","prototypeProto","constructor","registeredProvider","__","decorators","propertyKey","attributes","decorated","decorator","DecorateConstructor","descriptor","DecorateProperty","metadataKey","metadataValue","IsPropertyKey","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","d","definition","o","window","prop","r","toStringTag","descriptorOf","getOwnPropertyDescriptor","isMethodDescriptor","Configurable","deprecate","fn","msg","process","noDeprecation","args","apply","warned","throwDeprecation","traceDeprecation","console","trace","Deprecated","message","targetKey","originalMethod","Enumerable","NotConfigurable","NotEnumerable","Writable","Readonly","DecoratorTypes","getClass","classOf","decoratorTypeOf","staticType","type","CLASS","isDate","Date","isNaN","isFunction","isNil","isBoolean","Boolean","isBooleanOrBooleanClass","isNumber","isNumberOrNumberClass","Number","isString","isStringOrStringClass","String","isPrimitiveOrPrimitiveClass","isPrimitive","isPrimitiveClass","includes","isRegExp","RegExp","isSymbol","isSymbolOrSymbolClass","deepClone","source","stack","isBasicType","stacked","ArrayBuffer","isView","Buffer","isBuffer","from","slice","byteOffset","byteLength","clone","forEach","item","idx","createInstance","isProtectedKey","objectKeys","filter","mergeReducerBuilder","cb","collection","options","findIndex","deepMerge","defaultReducer","a","b","shouldReturnSource","shouldReturnObj","reducer","reducers","parentKey","getReducer","concat","reduce","out","cleanUndefinedProps","nameOfClass","targetClass","name","nameOfSymbol","sym","replace","nameOf","DESIGN_PARAM_TYPES","DESIGN_TYPE","DESIGN_RETURN_TYPE","PROPERTIES","Metadata","static","getMetadata","hasMetadata","er","getTargetsFromPropertyKey","targets","classConstructor","indexOf","targetPrototype","CLASS_STORE","METHOD_STORE","PROPERTY_STORE","PARAM_STORE","stores","storeGet","Store","getOwn","_entries","PARAM_CTOR","PARAM_STC","PARAM","store","PROP","PROP_STC","METHOD","METHOD_STC","defineStore","merge","mergeStoreFrom","defaultValue","inverse","_value_","toJson","StoreFn","parameters","StoreMerge","StoreSet","isObject","isObservable","lift","subscribe","isPromise","isStream","pipe","isResponse","AnyToPromiseStatus","AnyToPromiseResponseTypes","Env","AnyToPromise","hasNextFunction","status","PENDING","reject","isDone","DATA","handle","REJECTED","response","RESOLVED","state","destroy","cancel","CANCELED","additionalProps","isCanceledResponse","toPromise","headers","STREAM","BUFFER","catch","EnvTypes","Hooks","event","on","off","emit","callThis","listeners","alter","async","promises","all","UnsupportedDecoratorType","super","buildMessage","bindingType","shortBinding","split","param","path","catchError","catchAsyncError","ancestorOf","getInheritedClass","ancestorsOf","classes","currentTarget","unshift","prototypeOf","methodsOf","methods","decorateMethodsOf","klass","mergeStoreMethodFrom","newDescriptor","decoratorArgs","inheritedDescriptorOf","useDecorators","useMethodDecorator","useMethodDecorators","getRandomId","substring","getHostInfoFromPort","protocol","addressPort","address","port","join","importPackage","packageName","loaderFn","optional","cleanObject","ignore","getConstructor","constructorOf","isArrayOrArrayClass","isArrowFn","isUint8Array","isClassObject","isPlainObject","isClass","getClassOrSymbol","toStringConstructor","find","s","trim","getConstructorArgNames","isEnumerable","propertyIsEnumerable","getEnumerableKeys","expression","scope","separator","mapOptions","shift","hasJsonMethod","toJSON","isCollection","WeakSet","isEmpty","isInheritedFrom","deep","isMomentObject","_isAMomentObject","isObjectID","_bsontype","isMongooseObject","$isMongooseModelPrototype","isSerializable","primitiveOf","setValue","createIdentityFn","keyOrFn","v","toMap","identity","uniq","list","uniqBy","proxyDelegation","handlers","remove","getter","setter","itsOwnProp","p","Proxy","receiver","deleteProperty"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"core.umd.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAQ,cAAgBD,IAExBD,EAAK,cAAgBC,GACtB,CATD,CASGK,MAAM,yBCTT,SAASC,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,CAAC,GAET,CACAL,EAAyBQ,KAAO,IAAM,GACtCR,EAAyBG,QAAUH,EACnCA,EAAyBS,GAAK,IAC9Bb,EAAOD,QAAUK,iBCEjB,IAAIU,GACJ,SAAWA,IAGP,SAAWhB,GACP,IAAID,EAA6B,iBAAfkB,WAA0BA,WACtB,iBAAX,EAAAC,EAAsB,EAAAA,EACT,iBAATb,KAAoBA,KACP,iBAATc,KAAoBA,KAiBvC,WACI,IACI,OAAOC,SAAS,eAAT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IACdH,EAAWrf,EAAQsf,GACZjgB,QAAQmE,IAAIxD,EAAQsf,EAAGnf,EAAOqf,KAEhChc,EAAIxD,EAAQsf,EAAGnf,EAAOqf,GAEnCC,eAAc,CAACzf,EAAQsf,IACfD,EAAWrf,EAAQsf,KAAOJ,EACnB7f,QAAQogB,eAAezf,EAAQsf,GAEnCJ,EAAOlf,EAAQsf,GAE1Bjf,eAAc,CAACL,EAAQsf,EAAG/S,IACflN,QAAQgB,eAAeL,EAAQsf,EAAG/S,GAE7CvC,QAAQhK,GACG6e,GAAKxf,QAAQ2K,QAAQhK,GAAQsT,OAAQtJ,GAAWA,EAAQhK,IAAY,QAE5Eif,GAEX","sources":["webpack://@tsed/core/webpack/universalModuleDefinition","webpack://@tsed/core/./src/utils/imports/ lazy namespace object","webpack://@tsed/core/../../node_modules/reflect-metadata/Reflect.js","webpack://@tsed/core/webpack/bootstrap","webpack://@tsed/core/webpack/runtime/define property getters","webpack://@tsed/core/webpack/runtime/global","webpack://@tsed/core/webpack/runtime/hasOwnProperty shorthand","webpack://@tsed/core/webpack/runtime/make namespace object","webpack://@tsed/core/./src/utils/objects/descriptorOf.ts","webpack://@tsed/core/./src/decorators/configurable.ts","webpack://@tsed/core/./src/decorators/deprecated.ts","webpack://@tsed/core/./src/decorators/enumerable.ts","webpack://@tsed/core/./src/decorators/notConfigurable.ts","webpack://@tsed/core/./src/decorators/notEnumerable.ts","webpack://@tsed/core/./src/decorators/writable.ts","webpack://@tsed/core/./src/decorators/readOnly.ts","webpack://@tsed/core/./src/domain/DecoratorTypes.ts","webpack://@tsed/core/./src/utils/objects/classOf.ts","webpack://@tsed/core/./src/utils/decorators/decoratorTypeOf.ts","webpack://@tsed/core/./src/utils/objects/isDate.ts","webpack://@tsed/core/./src/utils/objects/isFunction.ts","webpack://@tsed/core/./src/utils/objects/isNil.ts","webpack://@tsed/core/./src/utils/objects/isBoolean.ts","webpack://@tsed/core/./src/utils/objects/isNumber.ts","webpack://@tsed/core/./src/utils/objects/isString.ts","webpack://@tsed/core/./src/utils/objects/isPrimitive.ts","webpack://@tsed/core/./src/utils/objects/isRegExp.ts","webpack://@tsed/core/./src/utils/objects/isSymbol.ts","webpack://@tsed/core/./src/utils/objects/deepClone.ts","webpack://@tsed/core/./src/utils/objects/createInstance.ts","webpack://@tsed/core/./src/utils/objects/isProtectedKey.ts","webpack://@tsed/core/./src/utils/objects/objectKeys.ts","webpack://@tsed/core/./src/utils/objects/deepMerge.ts","webpack://@tsed/core/./src/utils/objects/nameOf.ts","webpack://@tsed/core/./src/domain/Metadata.ts","webpack://@tsed/core/./src/domain/Store.ts","webpack://@tsed/core/./src/decorators/storeFn.ts","webpack://@tsed/core/./src/decorators/storeMerge.ts","webpack://@tsed/core/./src/decorators/storeSet.ts","webpack://@tsed/core/./src/utils/objects/isObject.ts","webpack://@tsed/core/./src/utils/objects/isObservable.ts","webpack://@tsed/core/./src/utils/objects/isPromise.ts","webpack://@tsed/core/./src/utils/objects/isStream.ts","webpack://@tsed/core/./src/domain/AnyToPromise.ts","webpack://@tsed/core/./src/domain/Env.ts","webpack://@tsed/core/./src/domain/Hooks.ts","webpack://@tsed/core/./src/domain/Type.ts","webpack://@tsed/core/./src/errors/UnsupportedDecoratorType.ts","webpack://@tsed/core/./src/utils/catchError.ts","webpack://@tsed/core/./src/utils/objects/ancestorOf.ts","webpack://@tsed/core/./src/utils/objects/ancestorsOf.ts","webpack://@tsed/core/./src/utils/objects/prototypeOf.ts","webpack://@tsed/core/./src/utils/objects/methodsOf.ts","webpack://@tsed/core/./src/utils/decorators/decorateMethodsOf.ts","webpack://@tsed/core/./src/utils/decorators/decoratorArgs.ts","webpack://@tsed/core/./src/utils/decorators/inheritedDescriptorOf.ts","webpack://@tsed/core/./src/utils/decorators/useDecorators.ts","webpack://@tsed/core/./src/utils/decorators/useMethodDecorators.ts","webpack://@tsed/core/./src/utils/getRandomId.ts","webpack://@tsed/core/./src/utils/http/getHostInfoFromPort.ts","webpack://@tsed/core/./src/utils/imports/importPackage.ts","webpack://@tsed/core/./src/utils/objects/cleanObject.ts","webpack://@tsed/core/./src/utils/objects/constructorOf.ts","webpack://@tsed/core/./src/utils/objects/isArray.ts","webpack://@tsed/core/./src/utils/objects/isArrowFn.ts","webpack://@tsed/core/./src/utils/objects/isBuffer.ts","webpack://@tsed/core/./src/utils/objects/isPlainObject.ts","webpack://@tsed/core/./src/utils/objects/isClass.ts","webpack://@tsed/core/./src/utils/objects/getClassOrSymbol.ts","webpack://@tsed/core/./src/utils/objects/toStringConstructor.ts","webpack://@tsed/core/./src/utils/objects/getConstructorArgNames.ts","webpack://@tsed/core/./src/utils/objects/isEnumerable.ts","webpack://@tsed/core/./src/utils/objects/getEnumerableKeys.ts","webpack://@tsed/core/./src/utils/objects/getValue.ts","webpack://@tsed/core/./src/utils/objects/hasJsonMethod.ts","webpack://@tsed/core/./src/utils/objects/isCollection.ts","webpack://@tsed/core/./src/utils/objects/isEmpty.ts","webpack://@tsed/core/./src/utils/objects/isInheritedFrom.ts","webpack://@tsed/core/./src/utils/objects/isMomentObject.ts","webpack://@tsed/core/./src/utils/objects/isMongooseObject.ts","webpack://@tsed/core/./src/utils/objects/isSerializable.ts","webpack://@tsed/core/./src/utils/objects/primitiveOf.ts","webpack://@tsed/core/./src/utils/objects/setValue.ts","webpack://@tsed/core/./src/utils/objects/toMap.ts","webpack://@tsed/core/./src/utils/uniq.ts","webpack://@tsed/core/./src/utils/proxyDelegation.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@tsed/core\"] = factory();\n\telse\n\t\troot[\"@tsed/core\"] = factory();\n})(self, () => {\nreturn ","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(() => {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = () => ([]);\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 340;\nmodule.exports = webpackEmptyAsyncContext;","/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof globalThis === \"object\" ? globalThis :\n typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n sloppyModeThis();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect !== \"undefined\") {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter, root);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n function makeExporter(target, previous) {\n return function (key, value) {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n if (previous)\n previous(key, value);\n };\n }\n function functionThis() {\n try {\n return Function(\"return this;\")();\n }\n catch (_) { }\n }\n function indirectEvalThis() {\n try {\n return (void 0, eval)(\"(function() { return this; })()\");\n }\n catch (_) { }\n }\n function sloppyModeThis() {\n return functionThis() || indirectEvalThis();\n }\n })(function (exporter, root) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var _Map = typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n var registrySymbol = supportsSymbol ? Symbol.for(\"@reflect-metadata:registry\") : undefined;\n var metadataRegistry = GetOrCreateMetadataRegistry();\n var metadataProvider = CreateMetadataProvider(metadataRegistry);\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return false;\n return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ false);\n if (IsUndefined(provider))\n return;\n return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var provider = GetMetadataProvider(O, P, /*Create*/ true);\n provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var provider = GetMetadataProvider(O, P, /*create*/ false);\n if (!provider) {\n return [];\n }\n return provider.OrdinaryOwnMetadataKeys(O, P);\n }\n // 6 ECMAScript Data Types and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n function SameValueZero(x, y) {\n return x === y || x !== x && y !== y;\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // Global metadata registry\n // - Allows `import \"reflect-metadata\"` and `import \"reflect-metadata/no-conflict\"` to interoperate.\n // - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.\n /**\n * Creates a registry used to allow multiple `reflect-metadata` providers.\n */\n function CreateMetadataRegistry() {\n var fallback;\n if (!IsUndefined(registrySymbol) &&\n typeof root.Reflect !== \"undefined\" &&\n !(registrySymbol in root.Reflect) &&\n typeof root.Reflect.defineMetadata === \"function\") {\n // interoperate with older version of `reflect-metadata` that did not support a registry.\n fallback = CreateFallbackProvider(root.Reflect);\n }\n var first;\n var second;\n var rest;\n var targetProviderMap = new _WeakMap();\n var registry = {\n registerProvider: registerProvider,\n getProvider: getProvider,\n setProvider: setProvider,\n };\n return registry;\n function registerProvider(provider) {\n if (!Object.isExtensible(registry)) {\n throw new Error(\"Cannot add provider to a frozen registry.\");\n }\n switch (true) {\n case fallback === provider: break;\n case IsUndefined(first):\n first = provider;\n break;\n case first === provider: break;\n case IsUndefined(second):\n second = provider;\n break;\n case second === provider: break;\n default:\n if (rest === undefined)\n rest = new _Set();\n rest.add(provider);\n break;\n }\n }\n function getProviderNoCache(O, P) {\n if (!IsUndefined(first)) {\n if (first.isProviderFor(O, P))\n return first;\n if (!IsUndefined(second)) {\n if (second.isProviderFor(O, P))\n return first;\n if (!IsUndefined(rest)) {\n var iterator = GetIterator(rest);\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n return undefined;\n }\n var provider = IteratorValue(next);\n if (provider.isProviderFor(O, P)) {\n IteratorClose(iterator);\n return provider;\n }\n }\n }\n }\n }\n if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {\n return fallback;\n }\n return undefined;\n }\n function getProvider(O, P) {\n var providerMap = targetProviderMap.get(O);\n var provider;\n if (!IsUndefined(providerMap)) {\n provider = providerMap.get(P);\n }\n if (!IsUndefined(provider)) {\n return provider;\n }\n provider = getProviderNoCache(O, P);\n if (!IsUndefined(provider)) {\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return provider;\n }\n function hasProvider(provider) {\n if (IsUndefined(provider))\n throw new TypeError();\n return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);\n }\n function setProvider(O, P, provider) {\n if (!hasProvider(provider)) {\n throw new Error(\"Metadata provider not registered.\");\n }\n var existingProvider = getProvider(O, P);\n if (existingProvider !== provider) {\n if (!IsUndefined(existingProvider)) {\n return false;\n }\n var providerMap = targetProviderMap.get(O);\n if (IsUndefined(providerMap)) {\n providerMap = new _Map();\n targetProviderMap.set(O, providerMap);\n }\n providerMap.set(P, provider);\n }\n return true;\n }\n }\n /**\n * Gets or creates the shared registry of metadata providers.\n */\n function GetOrCreateMetadataRegistry() {\n var metadataRegistry;\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n metadataRegistry = root.Reflect[registrySymbol];\n }\n if (IsUndefined(metadataRegistry)) {\n metadataRegistry = CreateMetadataRegistry();\n }\n if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {\n Object.defineProperty(root.Reflect, registrySymbol, {\n enumerable: false,\n configurable: false,\n writable: false,\n value: metadataRegistry\n });\n }\n return metadataRegistry;\n }\n function CreateMetadataProvider(registry) {\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var metadata = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var targetMetadata = metadata.get(O);\n if (IsUndefined(targetMetadata))\n return false;\n return targetMetadata.has(P);\n },\n OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,\n OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,\n OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,\n OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,\n OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,\n };\n metadataRegistry.registerProvider(provider);\n return provider;\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = metadata.get(O);\n var createdTargetMetadata = false;\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n metadata.set(O, targetMetadata);\n createdTargetMetadata = true;\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n if (!registry.setProvider(O, P, provider)) {\n targetMetadata.delete(P);\n if (createdTargetMetadata) {\n metadata.delete(O);\n }\n throw new Error(\"Wrong provider for target.\");\n }\n }\n return metadataMap;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n function OrdinaryDeleteMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(MetadataKey))\n return false;\n if (metadataMap.size === 0) {\n var targetMetadata = metadata.get(O);\n if (!IsUndefined(targetMetadata)) {\n targetMetadata.delete(P);\n if (targetMetadata.size === 0) {\n metadata.delete(targetMetadata);\n }\n }\n }\n return true;\n }\n }\n function CreateFallbackProvider(reflect) {\n var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;\n var metadataOwner = new _WeakMap();\n var provider = {\n isProviderFor: function (O, P) {\n var metadataPropertySet = metadataOwner.get(O);\n if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {\n return true;\n }\n if (getOwnMetadataKeys(O, P).length) {\n if (IsUndefined(metadataPropertySet)) {\n metadataPropertySet = new _Set();\n metadataOwner.set(O, metadataPropertySet);\n }\n metadataPropertySet.add(P);\n return true;\n }\n return false;\n },\n OrdinaryDefineOwnMetadata: defineMetadata,\n OrdinaryHasOwnMetadata: hasOwnMetadata,\n OrdinaryGetOwnMetadata: getOwnMetadata,\n OrdinaryOwnMetadataKeys: getOwnMetadataKeys,\n OrdinaryDeleteMetadata: deleteMetadata,\n };\n return provider;\n }\n /**\n * Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,\n * then this module's metadata provider is assigned to the object.\n */\n function GetMetadataProvider(O, P, Create) {\n var registeredProvider = metadataRegistry.getProvider(O, P);\n if (!IsUndefined(registeredProvider)) {\n return registeredProvider;\n }\n if (Create) {\n if (metadataRegistry.setProvider(O, P, metadataProvider)) {\n return metadataProvider;\n }\n throw new Error(\"Illegal state.\");\n }\n return undefined;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n var Map = /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (SameValueZero(key, this._cacheKey)) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (!SameValueZero(this._cacheKey, key)) {\n this._cacheIndex = -1;\n for (var i = 0; i < this._keys.length; i++) {\n if (SameValueZero(this._keys[i], key)) {\n this._cacheIndex = i;\n break;\n }\n }\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n return Map;\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n var Set = /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.keys(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n return Set;\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n var array = new Uint8Array(size);\n if (typeof crypto !== \"undefined\") {\n crypto.getRandomValues(array);\n }\n else if (typeof msCrypto !== \"undefined\") {\n msCrypto.getRandomValues(array);\n }\n else {\n FillRandomBytes(array, size);\n }\n return array;\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Return the descriptor for a given class and propertyKey\n * @param target\n * @param {string} propertyKey\n * @returns {PropertyDescriptor}\n */\nexport function descriptorOf(target, propertyKey) {\n return Reflect.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);\n}\nexport function isMethodDescriptor(target, propertyKey) {\n return descriptorOf(target, propertyKey)?.value;\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nexport function Configurable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, enumerable: true };\n descriptor.configurable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","function deprecate(fn, msg) {\n if (typeof process !== \"undefined\" && process.noDeprecation === true) {\n return fn;\n }\n // Allow for deprecating things in the process of starting up.\n if (typeof process === \"undefined\") {\n return function (...args) {\n return deprecate(fn, msg).apply(this, args);\n };\n }\n let warned = false;\n function deprecated(...args) {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n }\n else if (process.traceDeprecation) {\n console.trace(msg);\n }\n else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, args);\n }\n return deprecated;\n}\n/**\n * The `@Deprecated()` decorators wraps the given method in such a way that it is marked as deprecated.\n *\n * ```typescript\n * provide Foo {\n *\n * @Deprecated(\"Foo.method: Use Foo.method2 instead\")\n * public method() {\n *\n * }\n * ```\n *\n * When called, @Deprecated() will return a function that will emit a `DeprecationWarning` using the `process.on('warning')` event.\n * By default, this warning will be emitted and printed to `stderr` exactly once, the first time it is called. After the warning is emitted, the wrapped method is called.\n *\n * If either the `--no-deprecation` or `--no-warnings` command line flags are used, or if the `process.noDeprecation`\n * property is set to `true` prior to the first deprecation warning, the `@Deprecated()` decorators does nothing.\n *\n * If the `--trace-deprecation` or `--trace-warnings` command line flags are set, or the `process.traceDeprecation`\n * property is set to `true`, a warning and a stack trace are printed to stderr the first time the deprecated function is called.\n *\n * If the `--throw-deprecation` command line flag is set, or the `process.throwDeprecation` property is set to `true`,\n * then an exception will be thrown when the deprecated function is called.\n *\n * The `--throw-deprecation` command line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation`\n * and `process.traceDeprecation`.\n *\n * @param message\n * @returns {Function}\n * @decorator\n */\nexport function Deprecated(message) {\n return (target, targetKey, descriptor) => {\n const originalMethod = descriptor.value;\n descriptor.value = deprecate(originalMethod, message);\n return descriptor;\n };\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nexport function Enumerable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { writable: true, configurable: true };\n descriptor.enumerable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Configurable } from \"./configurable.js\";\nexport function NotConfigurable() {\n return Configurable(false);\n}\n","import { Enumerable } from \"./enumerable.js\";\nexport function NotEnumerable() {\n return Enumerable(false);\n}\n","import { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nexport function Writable(value = true) {\n return (target, propertyKey) => {\n const descriptor = descriptorOf(target, propertyKey) || { configurable: true, enumerable: true };\n descriptor.writable = value;\n Object.defineProperty((target && target.prototype) || target, propertyKey, descriptor);\n return descriptor;\n };\n}\n","import { Writable } from \"./writable.js\";\nexport function Readonly() {\n return Writable(false);\n}\n","export var DecoratorTypes;\n(function (DecoratorTypes) {\n DecoratorTypes[\"PARAM\"] = \"parameter\";\n DecoratorTypes[\"PARAM_CTOR\"] = \"parameter.constructor\";\n DecoratorTypes[\"PARAM_STC\"] = \"parameter.static\";\n DecoratorTypes[\"PROP\"] = \"property\";\n DecoratorTypes[\"PROP_STC\"] = \"property.static\";\n DecoratorTypes[\"METHOD\"] = \"method\";\n DecoratorTypes[\"METHOD_STC\"] = \"method.static\";\n DecoratorTypes[\"CLASS\"] = \"class\";\n})(DecoratorTypes || (DecoratorTypes = {}));\n","/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n */\nexport function getClass(target) {\n return target.prototype ? target : target.constructor;\n}\n/**\n * Get the provide constructor if target is an instance.\n * @param target\n * @returns {*}\n * @alias getClass\n */\nexport function classOf(target) {\n return getClass(target);\n}\n","import { DecoratorTypes } from \"../../domain/DecoratorTypes.js\";\nimport { classOf } from \"../objects/classOf.js\";\nexport function decoratorTypeOf(args) {\n const [target, propertyKey, descriptor] = args;\n const staticType = (type) => {\n return target !== classOf(target) ? type : `${type}.static`;\n };\n if (typeof descriptor === \"number\") {\n return propertyKey ? staticType(\"parameter\") : \"parameter.constructor\";\n }\n if (descriptor && descriptor.value) {\n return staticType(\"method\");\n }\n if ((propertyKey && descriptor === undefined) || descriptor) {\n return staticType(\"property\");\n }\n return DecoratorTypes.CLASS;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isDate(target) {\n return target === Date || (target instanceof Date && !isNaN(+target));\n}\n","export function isFunction(target) {\n return typeof target === \"function\";\n}\n","export function isNil(value) {\n return value === undefined || value === null;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isBoolean(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\nexport function isBooleanOrBooleanClass(target) {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n","/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isNumber(target) {\n return typeof target === \"number\";\n}\nexport function isNumberOrNumberClass(target) {\n return typeof target === \"number\" || target instanceof Number || target === Number;\n}\n","/**\n * @param target\n * @returns {boolean}\n */\nexport function isString(target) {\n return typeof target === \"string\";\n}\nexport function isStringOrStringClass(target) {\n return typeof target === \"string\" || target instanceof String || target === String;\n}\n","import { isBoolean, isBooleanOrBooleanClass } from \"./isBoolean.js\";\nimport { isNumber, isNumberOrNumberClass } from \"./isNumber.js\";\nimport { isString, isStringOrStringClass } from \"./isString.js\";\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isPrimitiveOrPrimitiveClass(target) {\n return isStringOrStringClass(target) || isNumberOrNumberClass(target) || isBooleanOrBooleanClass(target);\n}\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n */\nexport function isPrimitive(target) {\n return isString(target) || isNumber(target) || isBoolean(target);\n}\nexport function isPrimitiveClass(target) {\n return [String, Number, Boolean].includes(target);\n}\n","export function isRegExp(target) {\n return target instanceof RegExp;\n}\n","/**\n *\n * @param target\n */\nexport function isSymbol(target) {\n return typeof target === \"symbol\";\n}\nexport function isSymbolOrSymbolClass(target) {\n return typeof target === \"symbol\" || target instanceof Symbol || target === Symbol;\n}\n","import { classOf } from \"./classOf.js\";\nimport { isDate } from \"./isDate.js\";\nimport { isFunction } from \"./isFunction.js\";\nimport { isNil } from \"./isNil.js\";\nimport { isPrimitive } from \"./isPrimitive.js\";\nimport { isRegExp } from \"./isRegExp.js\";\nimport { isSymbol } from \"./isSymbol.js\";\nconst isBasicType = (source) => isNil(source) || isPrimitive(source) || isSymbol(source) || isFunction(source);\n/**\n * Return a cloned value\n * @param source\n * @param stack\n */\nexport const deepClone = (source, stack = new WeakMap()) => {\n // provides an early exit for simple cases\n if (isBasicType(source)) {\n return source;\n }\n const stacked = stack.get(source);\n if (stacked) {\n // See issue #1619\n return stacked;\n }\n if (ArrayBuffer.isView(source)) {\n return Buffer.isBuffer(source)\n ? Buffer.from(source)\n : // adds support for all kind of TypedArray such as Int8Array, Uint8Array, etc\n new (classOf(source))(source.buffer.slice(0), source.byteOffset, source.byteLength);\n }\n if (isDate(source)) {\n return new Date(source);\n }\n if (isRegExp(source)) {\n return new RegExp(source);\n }\n if (Array.isArray(source)) {\n const clone = [];\n stack.set(source, clone);\n source.forEach((item, idx) => (clone[idx] = deepClone(item, stack)));\n return clone;\n }\n if (source instanceof Map) {\n const clone = new Map();\n stack.set(source, clone);\n source.forEach((value, key) => clone.set(deepClone(key, stack), deepClone(value, stack)));\n return clone;\n }\n if (source instanceof Set) {\n const clone = new Set();\n stack.set(source, clone);\n source.forEach((value) => clone.add(deepClone(value, stack)));\n return clone;\n }\n const clone = Object.create(Reflect.getPrototypeOf(source));\n stack.set(source, clone);\n Reflect.ownKeys(source).forEach((key) => {\n // respects property descriptors and the prototype chain more explicitly, which is important for objects with getter/setter.\n const descriptor = Object.getOwnPropertyDescriptor(source, key);\n if (descriptor) {\n if (!isFunction(descriptor.value)) {\n Object.defineProperty(clone, key, {\n ...descriptor,\n value: deepClone(descriptor.value, stack)\n });\n }\n else {\n Object.defineProperty(clone, key, descriptor);\n }\n }\n });\n return clone;\n};\n","import { classOf } from \"./classOf.js\";\nexport function createInstance(obj) {\n return obj ? (classOf(obj) !== Object ? Object.create(obj) : {}) : {};\n}\n","/**\n * Prevent prototype pollution vulnerability\n * @param key\n */\nexport function isProtectedKey(key) {\n return [\"__proto__\", \"constructor\", \"prototype\"].includes(key);\n}\n","import { isProtectedKey } from \"./isProtectedKey.js\";\nexport function objectKeys(obj) {\n return Object.keys(obj).filter((key) => !isProtectedKey(key));\n}\n","import { createInstance } from \"./createInstance.js\";\nimport { isFunction } from \"./isFunction.js\";\nimport { isPrimitive } from \"./isPrimitive.js\";\nimport { isSymbol } from \"./isSymbol.js\";\nimport { objectKeys } from \"./objectKeys.js\";\nexport function mergeReducerBuilder(cb) {\n return (collection, value, options) => {\n const index = collection.findIndex((item) => cb(item, value));\n if (index === -1) {\n return [...collection, value];\n }\n collection[index] = deepMerge(collection[index], value, options);\n return collection;\n };\n}\nconst defaultReducer = mergeReducerBuilder((a, b) => a === b);\nfunction getReducer({ reducers, parentKey }) {\n if (!reducers) {\n return defaultReducer;\n }\n if (parentKey && reducers[parentKey]) {\n return reducers[parentKey];\n }\n return reducers[\"default\"] || defaultReducer;\n}\nfunction shouldReturnObj(obj, source) {\n return isPrimitive(obj) || isSymbol(obj) || isFunction(obj) || source === undefined;\n}\nfunction shouldReturnSource(obj, source) {\n return obj === undefined || obj === null || (obj === \"\" && source !== \"\");\n}\nexport function deepMerge(source, obj, options = {}) {\n if (shouldReturnSource(obj, source)) {\n return source;\n }\n if (shouldReturnObj(obj, source)) {\n return obj;\n }\n if (Array.isArray(source)) {\n const reducer = getReducer(options);\n return [].concat(obj).reduce((out, value) => reducer(out, value, options), [...source]);\n }\n return [...objectKeys(source), ...objectKeys(obj)].reduce((out, key) => {\n const src = source && source[key];\n const value = deepMerge(src, obj && obj[key], {\n ...options,\n parentKey: key\n });\n if (options.cleanUndefinedProps && value === undefined) {\n return out;\n }\n return {\n ...out,\n [key]: value\n };\n }, createInstance(source));\n}\n","/**\n * Get the provide name.\n * @param targetClass\n */\nexport function nameOfClass(targetClass) {\n return typeof targetClass === \"function\" ? targetClass.name : targetClass.constructor.name;\n}\n/**\n * Get symbol name.\n * @param sym\n */\nexport const nameOfSymbol = (sym) => sym.toString().replace(\"Symbol(\", \"\").replace(\")\", \"\");\n/**\n * Get object name\n */\nexport function nameOf(obj) {\n switch (typeof obj) {\n default:\n return \"\" + obj;\n case \"symbol\":\n return nameOfSymbol(obj);\n case \"function\":\n return nameOfClass(obj);\n }\n}\n","import \"reflect-metadata\";\nimport { classOf } from \"../utils/objects/classOf.js\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_PARAM_TYPES = \"design:paramtypes\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_TYPE = \"design:type\";\n/**\n * Metadata key\n * @private\n * @type {string}\n */\nconst DESIGN_RETURN_TYPE = \"design:returntype\";\n/**\n * Properties collections\n * @private\n * @type {string}\n */\nconst PROPERTIES = new Map();\n/**\n * @stable\n */\nexport class Metadata {\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.get(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.get(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.get(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static get(key, target, propertyKey) {\n return Reflect.getMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.getOwn(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.getOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.getOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static getOwn(key, target, propertyKey) {\n return Reflect.getOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getType(Example, \"staticMethod\");\n * ```\n *\n */\n static getType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getReturnType(target, propertyKey) {\n return Reflect.getMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_RETURN_TYPE on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getOwnReturnType(Example);\n *\n * // property (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getOwnReturnType(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnReturnType(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_RETURN_TYPE, target, propertyKey);\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.has(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.has(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static has(key, target, propertyKey) {\n try {\n return Reflect.hasMetadata(key, classOf(target), propertyKey);\n }\n catch (er) { }\n return false;\n }\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.has(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.hasOwn(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.hasOwn(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static hasOwn(key, target, propertyKey) {\n return Reflect.hasOwnMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param key A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Metadata.delete(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Metadata.delete(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Metadata.delete(\"custom:annotation\", Example.prototype, \"method\");\n * ```\n *\n */\n static delete(key, target, propertyKey) {\n return Reflect.deleteMetadata(key, classOf(target), propertyKey);\n }\n /**\n * Set the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @param value A value that contains attached metadata.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.setParamTypes(Example, undefined, [Object]);\n *\n * // property (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticProperty\", [Object]);\n *\n * // property (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"property\", [Object]);\n *\n * // method (on constructor)\n * result = Metadata.setParamTypes(Example, \"staticMethod\", [Object]);\n *\n * // method (on prototype)\n * result = Metadata.setParamTypes(Example.prototype, \"method\", [Object]);\n * ```\n *\n */\n static setParamTypes(target, propertyKey, value) {\n return this.set(DESIGN_PARAM_TYPES, value, target.prototype, propertyKey);\n }\n /**\n * Get all metadata for a metadataKey.\n * @param metadataKey\n */\n static { this.getTargetsFromPropertyKey = (metadataKey) => PROPERTIES.has(metadataKey) ? PROPERTIES.get(metadataKey) || [] : []; }\n /**\n * Define a unique metadata entry on the target.\n * @param key A key used to store and retrieve metadata.\n * @param value A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey The property key for the target.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", Number, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): PropertyDecorator {\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n * ```\n *\n */\n static set(key, value, target, propertyKey) {\n const targets = PROPERTIES.has(key) ? PROPERTIES.get(key) || [] : [];\n const classConstructor = classOf(target);\n if (targets.indexOf(classConstructor) === -1) {\n targets.push(classConstructor);\n PROPERTIES.set(key, targets);\n }\n Reflect.defineMetadata(key, value, classOf(target), propertyKey);\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param targetPrototype\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example.prototype);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example.prototype, \"staticMethod\");\n * ```\n *\n */\n static getParamTypes(targetPrototype, propertyKey) {\n return Reflect.getMetadata(DESIGN_PARAM_TYPES, targetPrototype, propertyKey) || [];\n }\n /**\n * Gets the metadata value for the provided metadata DESIGN_PARAM_TYPES on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * ```typescript\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // on contructor\n * result = Metadata.getParamTypes(Example);\n *\n * // property (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticProperty\");\n *\n * // method (on constructor)\n * result = Metadata.getParamTypes(Example, \"staticMethod\");\n * ```\n *\n */\n static getOwnParamTypes(target, propertyKey) {\n return Reflect.getOwnMetadata(DESIGN_PARAM_TYPES, target, propertyKey) || [];\n }\n}\n","import { DecoratorTypes } from \"../domain/DecoratorTypes.js\";\nimport { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf.js\";\nimport { deepClone } from \"../utils/objects/deepClone.js\";\nimport { deepMerge } from \"../utils/objects/deepMerge.js\";\nimport { descriptorOf } from \"../utils/objects/descriptorOf.js\";\nimport { isSymbol } from \"../utils/objects/isSymbol.js\";\nimport { nameOf } from \"../utils/objects/nameOf.js\";\nimport { Metadata } from \"./Metadata.js\";\n/**\n * @ignore\n */\nexport const CLASS_STORE = \"tsed:class:store\";\n/**\n * @ignore\n */\nexport const METHOD_STORE = \"tsed:method:store\";\n/**\n * @ignore\n */\nexport const PROPERTY_STORE = \"tsed:property:store\";\n/**\n * @ignore\n */\nexport const PARAM_STORE = \"tsed:param:store\";\nconst stores = new Map();\nfunction storeGet(key, ...args) {\n if (isSymbol(args[0])) {\n if (!stores.has(args[0])) {\n stores.set(args[0], new Store());\n }\n return stores.get(args[0]);\n }\n else {\n const registry = Metadata;\n if (!registry.hasOwn(key, ...args)) {\n registry.set(key, new Store(), ...args);\n }\n return registry.getOwn(key, ...args);\n }\n}\nfunction defineStore(args) {\n const [target, propertyKey, descriptor] = args;\n switch (decoratorTypeOf(args)) {\n case DecoratorTypes.PARAM_CTOR:\n case DecoratorTypes.PARAM_STC:\n case DecoratorTypes.PARAM:\n const store = storeGet(PARAM_STORE, target, propertyKey);\n if (!store.has(\"\" + descriptor)) {\n store.set(\"\" + descriptor, new Store());\n }\n return store.get(\"\" + descriptor);\n case DecoratorTypes.PROP:\n case DecoratorTypes.PROP_STC:\n return storeGet(PROPERTY_STORE, target, propertyKey);\n case DecoratorTypes.METHOD:\n case DecoratorTypes.METHOD_STC:\n return storeGet(METHOD_STORE, target, propertyKey);\n case DecoratorTypes.CLASS:\n return storeGet(CLASS_STORE, target);\n }\n}\nexport class Store {\n constructor() {\n this._entries = new Map();\n }\n /**\n * Create or get a Store from args {target + methodName + descriptor}\n * @param args\n * @returns {Store}\n */\n static from(...args) {\n return defineStore(args);\n }\n /**\n * Create store on the method.\n * @param target\n * @param {string} propertyKey\n * @returns {Store}\n */\n static fromMethod(target, propertyKey) {\n return Store.from(target, propertyKey, descriptorOf(target, propertyKey));\n }\n static mergeStoreFrom(target, source, ...args) {\n const store = Store.from(target, ...args);\n Store.from(source, ...args)._entries.forEach((value, key) => {\n store.merge(key, value);\n });\n return store;\n }\n static mergeStoreMethodFrom(target, source, propertyKey) {\n return this.mergeStoreFrom(target, source, propertyKey, descriptorOf(target, propertyKey));\n }\n /**\n * The get() method returns a specified element from a Map object.\n * @param key Required. The key of the element to return from the Map object.\n * @param defaultValue\n * @returns {T} Returns the element associated with the specified key or undefined if the key can't be found in the Map object.\n */\n get(key, defaultValue) {\n return this._entries.get(nameOf(key)) || defaultValue;\n }\n /**\n * The has() method returns a boolean indicating whether an element with the specified key exists or not.\n * @param key\n * @returns {boolean}\n */\n has(key) {\n return this._entries.has(nameOf(key));\n }\n /**\n * The set() method adds or updates an element with a specified key and value to a Map object.\n * @param key Required. The key of the element to add to the Map object.\n * @param metadata Required. The value of the element to add to the Map object.\n */\n set(key, metadata) {\n this._entries.set(nameOf(key), metadata);\n return this;\n }\n /**\n * The delete() method removes the specified element from a Map object.\n * @param key Required. The key of the element to remove from the Map object.\n * @returns {boolean} Returns true if an element in the Map object existed and has been removed, or false if the element does not exist.\n */\n delete(key) {\n return this._entries.delete(nameOf(key));\n }\n /**\n * Merge given value with existing value.\n * @param key\n * @param value\n * @param inverse Change the merge order. Get the existing value and apply over given value\n * @returns {Store}\n */\n merge(key, value, inverse = false) {\n let _value_ = this.get(key);\n if (_value_) {\n value = deepClone(value);\n _value_ = deepClone(_value_);\n value = inverse ? deepMerge(value, _value_) : deepMerge(_value_, value);\n }\n this.set(key, value);\n return this;\n }\n toJson() {\n return [...this._entries.entries()].reduce((obj, [key, value]) => {\n return {\n ...obj,\n [key]: value\n };\n }, {});\n }\n}\n","import { Store } from \"../domain/Store.js\";\n/**\n * Create a store correctly configured from the parameters given by the decorator.\n * The `fn` can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).\n * @param {(store: Store, parameters: DecoratorParameters) => void} fn\n * @returns {Function}\n */\nexport function StoreFn(fn) {\n return (...parameters) => {\n const store = Store.from(...parameters);\n const result = fn(store, parameters);\n if (typeof result === \"function\") {\n result(...parameters);\n }\n return parameters[2];\n };\n}\n","import { StoreFn } from \"./storeFn.js\";\nexport function StoreMerge(key, value) {\n return StoreFn((store) => {\n store.merge(key, value);\n });\n}\n","import { StoreFn } from \"./storeFn.js\";\nexport function StoreSet(key, value) {\n return StoreFn((store) => {\n store.set(key, value);\n });\n}\n","export function isObject(target) {\n return typeof target === \"object\";\n}\n","export function isObservable(obj) {\n return !!obj && typeof obj.lift === \"function\" && typeof obj.subscribe === \"function\";\n}\n","/**\n * Tests to see if the object is an ES2015 (ES6) Promise\n * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}\n * @param target\n * @returns {boolean}\n */\nexport function isPromise(target) {\n return (target === Promise ||\n target instanceof Promise ||\n (!!target && typeof target.subscribe !== \"function\" && typeof target.then === \"function\"));\n}\n","export function isStream(obj) {\n return obj !== null && typeof obj === \"object\" && typeof obj.pipe === \"function\";\n}\n","import { isObject } from \"../utils/objects/isObject.js\";\nimport { isObservable } from \"../utils/objects/isObservable.js\";\nimport { isPromise } from \"../utils/objects/isPromise.js\";\nimport { isStream } from \"../utils/objects/isStream.js\";\n/**\n * @ignore\n */\nfunction isResponse(obj) {\n return isObject(obj) && \"data\" in obj && \"headers\" in obj && \"status\" in obj && \"statusText\" in obj;\n}\n/**\n * @ignore\n */\nexport var AnyToPromiseStatus;\n(function (AnyToPromiseStatus) {\n AnyToPromiseStatus[\"PENDING\"] = \"PENDING\";\n AnyToPromiseStatus[\"CANCELED\"] = \"CANCELED\";\n AnyToPromiseStatus[\"RESOLVED\"] = \"RESOLVED\";\n AnyToPromiseStatus[\"REJECTED\"] = \"REJECTED\";\n})(AnyToPromiseStatus || (AnyToPromiseStatus = {}));\nexport var AnyToPromiseResponseTypes;\n(function (AnyToPromiseResponseTypes) {\n AnyToPromiseResponseTypes[\"STREAM\"] = \"STREAM\";\n AnyToPromiseResponseTypes[\"BUFFER\"] = \"BUFFER\";\n AnyToPromiseResponseTypes[\"DATA\"] = \"DATA\";\n})(AnyToPromiseResponseTypes || (AnyToPromiseResponseTypes = {}));\nexport class AnyToPromise {\n #resolves;\n #rejects;\n #hasNextFunction;\n #promise;\n constructor({ hasNextFunction = false } = {}) {\n this.status = AnyToPromiseStatus.PENDING;\n this.#hasNextFunction = false;\n this.#hasNextFunction = hasNextFunction;\n this.#promise = new Promise((resolve, reject) => {\n this.#resolves = resolve;\n this.#rejects = reject;\n });\n }\n isDone() {\n return this.status !== AnyToPromiseStatus.PENDING;\n }\n get next() {\n this.#hasNextFunction = true;\n return (error) => {\n if (this.isDone()) {\n return;\n }\n return error ? this.reject(error) : this.resolve({ type: AnyToPromiseResponseTypes.DATA });\n };\n }\n /**\n *\n */\n call(cb) {\n if (this.isDone()) {\n return Promise.resolve(this);\n }\n try {\n this.handle(cb());\n }\n catch (er) {\n this.reject(er);\n }\n return this.#promise;\n }\n reject(er) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.REJECTED);\n this.#rejects(er);\n }\n resolve(response = {}) {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.RESOLVED);\n this.#resolves({ ...response, state: AnyToPromiseStatus.RESOLVED });\n }\n destroy() { }\n cancel() {\n if (this.isDone()) {\n return;\n }\n this.done(AnyToPromiseStatus.CANCELED);\n return this.#resolves({ state: AnyToPromiseStatus.CANCELED });\n }\n done(status) {\n this.destroy();\n this.status = status;\n }\n handle(process, additionalProps = {}) {\n if (this.isDone()) {\n return;\n }\n if (process) {\n if (this.isCanceledResponse(process)) {\n // ABANDON\n return this.cancel();\n }\n if (isObservable(process)) {\n process = process.toPromise();\n }\n if (isResponse(process)) {\n return this.handle(process.data, {\n ...additionalProps,\n status: process.status,\n headers: process.headers\n });\n }\n if (isStream(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.STREAM, data: process });\n }\n if (isStream(process) || Buffer.isBuffer(process)) {\n return this.resolve({ ...additionalProps, type: AnyToPromiseResponseTypes.BUFFER, data: process });\n }\n if (isPromise(process)) {\n return process\n .then((result) => this.handle(result, additionalProps))\n .catch((error) => {\n if (error.response && isResponse(error.response)) {\n return this.handle(error.response);\n }\n return this.reject(error);\n });\n }\n }\n if (!this.#hasNextFunction) {\n // no next function and empty response\n return this.resolve({\n ...additionalProps,\n data: process,\n type: AnyToPromiseResponseTypes.DATA\n });\n }\n }\n isCanceledResponse(process) {\n return process === AnyToPromiseStatus.CANCELED;\n }\n}\n","/**\n *\n */\nexport var Env;\n(function (Env) {\n Env[\"PROD\"] = \"production\";\n Env[\"DEV\"] = \"development\";\n Env[\"TEST\"] = \"test\";\n})(Env || (Env = {}));\n/**\n * Fallback\n * @type {Env}\n */\n// tslint:disable-next-line: variable-name\nexport const EnvTypes = Env;\n","export class Hooks {\n #listeners = {};\n has(event) {\n return !!this.#listeners[event];\n }\n /**\n * Listen a hook event\n * @param event\n * @param cb\n */\n on(event, cb) {\n if (!this.#listeners[event]) {\n this.#listeners[event] = [];\n }\n this.#listeners[event].push(cb);\n return this;\n }\n /**\n * Remove a listener attached to an event\n * @param event\n * @param cb\n */\n off(event, cb) {\n if (this.#listeners[event]) {\n this.#listeners[event] = this.#listeners[event].filter((item) => item === cb);\n }\n return this;\n }\n /**\n * Trigger an event and call listener.\n * @param event\n * @param args\n * @param callThis\n */\n emit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n cb.call(callThis, ...args);\n }\n }\n }\n /**\n * Trigger an event, listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n alter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n /**\n * Trigger an event and call async listener.\n * @param event\n * @param args\n * @param callThis\n */\n async asyncEmit(event, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n const promises = listeners.map((cb) => cb.call(callThis, ...args));\n await Promise.all(promises);\n }\n }\n /**\n * Trigger an event, async listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n async asyncAlter(event, value, args = [], callThis = null) {\n const listeners = this.#listeners[event];\n if (listeners?.length) {\n for (const cb of listeners) {\n value = await cb.call(callThis, value, ...args);\n }\n }\n return value;\n }\n destroy() {\n this.#listeners = {};\n }\n}\n","export const Type = Function;\n// @ts-ignore\nglobal.Type = Type;\n","import { decoratorTypeOf } from \"../utils/decorators/decoratorTypeOf.js\";\nimport { classOf } from \"../utils/objects/classOf.js\";\nimport { nameOf } from \"../utils/objects/nameOf.js\";\nexport class UnsupportedDecoratorType extends Error {\n constructor(decorator, args) {\n super(UnsupportedDecoratorType.buildMessage(decorator, args));\n }\n static buildMessage(decorator, args) {\n const [target, propertyKey, index] = args;\n const bindingType = decoratorTypeOf(args);\n const shortBinding = bindingType.split(\"/\")[0];\n const param = shortBinding === \"parameter\" ? \".[\" + index + \"]\" : \"\";\n const cstr = shortBinding === \"parameter\" ? \".constructor\" : \"\";\n const method = propertyKey ? \".\" + propertyKey : cstr;\n const path = nameOf(classOf(target)) + method + param;\n return `${decorator.name} cannot be used as ${bindingType} decorator on ${path}`;\n }\n}\n","export function catchError(cb) {\n try {\n cb();\n }\n catch (er) {\n return er;\n }\n}\nexport async function catchAsyncError(cb) {\n try {\n await cb();\n }\n catch (er) {\n return er;\n }\n}\n","export function ancestorOf(target) {\n return target && Object.getPrototypeOf(target);\n}\nexport function getInheritedClass(target) {\n return ancestorOf(target);\n}\n","import { getInheritedClass } from \"./ancestorOf.js\";\nimport { classOf } from \"./classOf.js\";\nimport { nameOf } from \"./nameOf.js\";\n/**\n *\n * @param target\n * @returns {Array}\n */\nexport function ancestorsOf(target) {\n const classes = [];\n let currentTarget = classOf(target);\n while (currentTarget && nameOf(currentTarget) !== \"\") {\n classes.unshift(currentTarget);\n currentTarget = getInheritedClass(currentTarget);\n }\n return classes;\n}\n","import { classOf } from \"./classOf.js\";\n/**\n * Return the prototype of the given class.\n * @param target\n * @returns {any}\n */\nexport function prototypeOf(target) {\n return classOf(target) === target ? target.prototype : target;\n}\n","import { ancestorsOf } from \"./ancestorsOf.js\";\nimport { classOf } from \"./classOf.js\";\nimport { prototypeOf } from \"./prototypeOf.js\";\n/**\n * Return all methods for a given class.\n * @param target\n */\nexport function methodsOf(target) {\n const methods = new Map();\n target = classOf(target);\n ancestorsOf(target).forEach((target) => {\n const keys = Reflect.ownKeys(prototypeOf(target));\n keys.forEach((propertyKey) => {\n if (propertyKey !== \"constructor\") {\n methods.set(propertyKey, { target, propertyKey });\n }\n });\n });\n return Array.from(methods.values());\n}\n","import { Store } from \"../../domain/Store.js\";\nimport { classOf } from \"../objects/classOf.js\";\nimport { descriptorOf } from \"../objects/descriptorOf.js\";\nimport { methodsOf } from \"../objects/methodsOf.js\";\nimport { prototypeOf } from \"../objects/prototypeOf.js\";\nexport function decorateMethodsOf(klass, decorator) {\n methodsOf(klass).forEach(({ target, propertyKey }) => {\n const proto = prototypeOf(klass);\n if (target !== classOf(klass)) {\n Object.defineProperty(proto, propertyKey, {\n writable: true,\n configurable: true,\n value(...args) {\n return prototypeOf(target)[propertyKey].apply(this, args);\n }\n });\n Store.mergeStoreMethodFrom(klass, target, propertyKey);\n }\n const newDescriptor = decorator(proto, propertyKey, descriptorOf(klass, propertyKey));\n if (newDescriptor) {\n Object.defineProperty(proto, propertyKey, newDescriptor);\n }\n });\n}\n","import { descriptorOf } from \"../objects/descriptorOf.js\";\nexport function decoratorArgs(target, propertyKey) {\n return [target, propertyKey, descriptorOf(target, propertyKey)];\n}\n","import { ancestorsOf } from \"../objects/ancestorsOf.js\";\nexport function inheritedDescriptorOf(target, propertyKey) {\n for (const klass of ancestorsOf(target)) {\n const descriptor = Object.getOwnPropertyDescriptor((klass && klass.prototype) || klass, propertyKey);\n if (descriptor) {\n return descriptor;\n }\n }\n return undefined;\n}\n","export function useDecorators(...decorators) {\n return (...args) => {\n decorators\n .filter((o) => !!o)\n .forEach((decorator) => {\n decorator(...args);\n });\n };\n}\n","import { descriptorOf } from \"../objects/descriptorOf.js\";\nexport function useMethodDecorator(decorator) {\n return (target, propertyKey) => decorator(target, propertyKey, descriptorOf(target, propertyKey));\n}\nexport function useMethodDecorators(...decorators) {\n return (target, propertyKey) => {\n decorators.filter(Boolean).forEach((decorator) => decorator(target, propertyKey, descriptorOf(target, propertyKey)));\n };\n}\n","export function getRandomId() {\n return `e${Math.random().toString(36).substring(7)}`;\n}\n","export function getHostInfoFromPort(protocol, addressPort) {\n let address = \"0.0.0.0\";\n let port = addressPort;\n if (typeof addressPort === \"string\" && addressPort.indexOf(\":\") > -1) {\n [address, port] = addressPort.split(\":\");\n port = +port;\n }\n return {\n protocol,\n address,\n port: port,\n toString() {\n return [`${this.protocol}://${this.address}`, typeof this.port === \"number\" && this.port].filter(Boolean).join(\":\");\n }\n };\n}\n","export async function importPackage(packageName, loaderFn = () => import(packageName), optional = false) {\n try {\n return await loaderFn();\n }\n catch (e) {\n if (!optional) {\n throw e;\n }\n return {};\n }\n}\n","import { isProtectedKey } from \"./isProtectedKey.js\";\n/**\n * Remove undefined value\n * @param obj\n * @param ignore\n */\nexport function cleanObject(obj, ignore = []) {\n return Object.entries(obj).reduce((obj, [key, value]) => {\n if (isProtectedKey(key) || ignore.includes(key)) {\n return obj;\n }\n return value === undefined\n ? obj\n : {\n ...obj,\n [key]: value\n };\n }, {});\n}\n","/**\n * Get the class constructor\n * @param target\n */\nexport function getConstructor(target) {\n return typeof target === \"function\" ? target : target.constructor;\n}\n/**\n * Get the class constructor\n * @param target\n */\nexport function constructorOf(target) {\n return getConstructor(target);\n}\n","/**\n * Return true if value is an array\n * @param target\n * @returns {boolean}\n */\nexport function isArray(target) {\n return Array.isArray(target);\n}\n/**\n * Return true if the clazz is an array.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isArrayOrArrayClass(target) {\n return target === Array || isArray(target);\n}\n","import { isFunction } from \"./isFunction.js\";\nexport function isArrowFn(target) {\n return target && isFunction(target) && !target.prototype;\n}\n","/**\n * Tests to see if the object is Buffer\n * @param target\n * @returns {boolean}\n */\nexport function isBuffer(target) {\n // is Class\n if (target && \"isBuffer\" in target && typeof target.isBuffer === \"function\") {\n return true;\n }\n return isUint8Array(target);\n}\nexport function isUint8Array(target) {\n return !!(target && (target === Uint8Array || target instanceof Uint8Array));\n}\n","import { classOf } from \"./classOf.js\";\n/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isClassObject(target) {\n return target === Object;\n}\nexport function isPlainObject(target) {\n return isClassObject(classOf(target)) && target !== Object;\n}\n","import { isArrayOrArrayClass } from \"./isArray.js\";\nimport { isArrowFn } from \"./isArrowFn.js\";\nimport { isBuffer } from \"./isBuffer.js\";\nimport { isDate } from \"./isDate.js\";\nimport { isClassObject } from \"./isPlainObject.js\";\nimport { isPrimitiveOrPrimitiveClass } from \"./isPrimitive.js\";\nimport { isPromise } from \"./isPromise.js\";\nimport { isSymbol } from \"./isSymbol.js\";\nexport function isClass(target) {\n if (!target) {\n return false;\n }\n if (isArrowFn(target)) {\n return false;\n }\n return !(isSymbol(target) ||\n isPrimitiveOrPrimitiveClass(target) ||\n isClassObject(target) ||\n isDate(target) ||\n isPromise(target) ||\n isArrayOrArrayClass(target) ||\n isBuffer(target));\n}\n","import { classOf } from \"./classOf.js\";\nimport { isClass } from \"./isClass.js\";\nexport function getClassOrSymbol(target) {\n return isClass(target) ? classOf(target) : target;\n}\n","import { constructorOf } from \"./constructorOf.js\";\nexport function toStringConstructor(target) {\n const ctr = constructorOf(target);\n const strings = ctr.toString().split(\"\\n\");\n const ctrString = strings.find((s) => s.indexOf(\"constructor(\") > -1) || \"constructor()\";\n return `${ctrString.replace(\"{\", \"\").trim()}`;\n}\n","import { toStringConstructor } from \"./toStringConstructor.js\";\nexport function getConstructorArgNames(target) {\n return toStringConstructor(target)\n .split(\"constructor(\")[1]\n .split(\")\")[0]\n .split(\", \")\n .filter(Boolean)\n .map((s) => s.trim());\n}\n","import { inheritedDescriptorOf } from \"../decorators/inheritedDescriptorOf.js\";\nimport { classOf } from \"./classOf.js\";\n/**\n *\n * @param obj\n * @param key\n */\nexport function isEnumerable(obj, key) {\n const klass = classOf(obj);\n if (klass) {\n const descriptor = inheritedDescriptorOf(klass, key);\n if (descriptor) {\n return descriptor.enumerable;\n }\n }\n return Object.prototype.propertyIsEnumerable.call(obj, key);\n}\n","import { isEnumerable } from \"./isEnumerable.js\";\nimport { isProtectedKey } from \"./isProtectedKey.js\";\n/**\n * Return all enumerable keys of the given object\n * @param obj\n */\nexport function getEnumerableKeys(obj) {\n const keys = [];\n for (const key in obj) {\n if (!isProtectedKey(key) && isEnumerable(obj, key)) {\n keys.push(key);\n }\n }\n return keys;\n}\n","import { isFunction } from \"./isFunction.js\";\nimport { isObject } from \"./isObject.js\";\nimport { isString } from \"./isString.js\";\nconst mapOptions = (args) => {\n const [expression, scope, defaultValue, separator = \".\"] = args;\n if (isObject(scope) || isString(expression)) {\n return {\n expression,\n scope,\n defaultValue,\n separator\n };\n }\n return {\n expression: scope,\n scope: expression,\n defaultValue,\n separator\n };\n};\nexport function getValue(...args) {\n const options = mapOptions(args);\n let scope = options.scope;\n const { expression, defaultValue, separator } = options;\n if (!expression) {\n return scope;\n }\n if (!scope) {\n return defaultValue;\n }\n const keys = expression.split(separator);\n const getValue = (key) => {\n if (scope) {\n if (scope[key] !== undefined || (isObject(scope) && key in scope)) {\n return scope[key];\n }\n if (isFunction(scope.get)) {\n return scope.get(key);\n }\n }\n };\n while ((scope = getValue(keys.shift())) && keys.length) { }\n return scope === undefined ? defaultValue : scope;\n}\n","export function hasJsonMethod(obj) {\n return obj && typeof obj.toJSON === \"function\";\n}\n","import { isArrayOrArrayClass } from \"./isArray.js\";\n/**\n * Return true if the target.\n * @param target\n * @returns {boolean}\n */\nexport function isCollection(target) {\n return (isArrayOrArrayClass(target) ||\n target === Map ||\n target instanceof Map ||\n target === Set ||\n target instanceof Set ||\n target === WeakMap ||\n target instanceof WeakMap ||\n target === WeakSet ||\n target instanceof WeakSet);\n}\n","import { isNil } from \"./isNil.js\";\n/**\n * Return true if the value is an empty string, null or undefined.\n * @param value\n * @returns {boolean}\n */\nexport function isEmpty(value) {\n return value === \"\" || isNil(value);\n}\n","import { ancestorOf } from \"./ancestorOf.js\";\nimport { classOf } from \"./classOf.js\";\nimport { nameOf } from \"./nameOf.js\";\nexport function isInheritedFrom(target, from, deep = 5) {\n if (!target || !from) {\n return false;\n }\n target = classOf(target);\n from = classOf(from);\n while (nameOf(target) !== \"\") {\n if (!deep) {\n return false;\n }\n if (target === from) {\n return true;\n }\n target = ancestorOf(target);\n deep--;\n }\n return false;\n}\n","export function isMomentObject(obj) {\n return !!(obj && obj?._isAMomentObject);\n}\n","import { hasJsonMethod } from \"./hasJsonMethod.js\";\nexport function isObjectID(obj) {\n return obj && obj._bsontype;\n}\nexport function isMongooseObject(obj) {\n return !!((hasJsonMethod(obj) && obj.$isMongooseModelPrototype) || isObjectID(obj));\n}\n","import { isBoolean } from \"./isBoolean.js\";\nimport { isNil } from \"./isNil.js\";\nimport { isNumber } from \"./isNumber.js\";\nimport { isStream } from \"./isStream.js\";\nimport { isString } from \"./isString.js\";\nexport function isSerializable(data) {\n return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));\n}\n","import { isBooleanOrBooleanClass } from \"./isBoolean.js\";\nimport { isNumberOrNumberClass } from \"./isNumber.js\";\nimport { isStringOrStringClass } from \"./isString.js\";\nexport function primitiveOf(target) {\n if (isStringOrStringClass(target)) {\n return \"string\";\n }\n if (isNumberOrNumberClass(target)) {\n return \"number\";\n }\n if (isBooleanOrBooleanClass(target)) {\n return \"boolean\";\n }\n return \"any\";\n}\n","import { isProtectedKey } from \"./isProtectedKey.js\";\nexport function setValue(scope, expression, value, separator = \".\") {\n const keys = expression.split(separator);\n const setValue = (key, add) => {\n if (isProtectedKey(key)) {\n return false;\n }\n if (add) {\n if (typeof scope.set === \"function\") {\n scope.set(key, value);\n }\n else {\n scope[key] = value;\n }\n return false;\n }\n if (typeof scope.set === \"function\") {\n if (!scope.has(key)) {\n scope.set(key, {});\n }\n scope = scope.get(key);\n }\n else {\n scope = scope[key] = scope[key] || {};\n }\n return true;\n };\n while (setValue(keys.shift(), !keys.length)) { }\n}\n","import { isArray } from \"./isArray.js\";\nimport { isString } from \"./isString.js\";\nfunction createIdentityFn(keyOrFn) {\n if (!keyOrFn) {\n return (v, k) => String(k);\n }\n if (isString(keyOrFn)) {\n return (item) => {\n return item[keyOrFn];\n };\n }\n return keyOrFn;\n}\nexport function toMap(input, keyOrFn) {\n if (isArray(input)) {\n const identity = createIdentityFn(keyOrFn || \"id\");\n return input.reduce((map, value, index) => {\n const ids = [].concat(identity(value, index));\n ids.forEach((id) => {\n const item = map.get(id);\n value = item?.merge?.(value) || value;\n map.set(id, value);\n });\n return map;\n }, new Map());\n }\n const identity = createIdentityFn(keyOrFn);\n return Object.entries(input).reduce((map, [key, value]) => {\n return map.set(identity(value, key), value);\n }, new Map());\n}\n","/**\n * @param list\n */\nexport function uniq(list) {\n return Array.from(new Set(list).values());\n}\nexport function uniqBy(list, key = \"id\") {\n const map = new Map();\n list.forEach((item) => {\n map.set(item[key], item);\n });\n return Array.from(map.values());\n}\n","import { uniq } from \"./uniq.js\";\n/**\n * Create a complete and iterable trap.\n * @param self\n * @param options\n * @ignore\n */\nexport function proxyDelegation(self, options = {}) {\n const { handlers = {}, remove, ownKeys } = options;\n const get = options.getter || ((target, propertyKey) => target.get(propertyKey));\n const set = options.setter || ((target, propertyKey, value) => !!target.set(propertyKey, value));\n const itsOwnProp = (target, p) => Reflect.has(target, p) || typeof p === \"symbol\";\n return new Proxy(self, {\n getOwnPropertyDescriptor(target, p) {\n return Reflect.getOwnPropertyDescriptor(target, p);\n },\n has(target, p) {\n if (itsOwnProp(target, p)) {\n return Reflect.has(target, p);\n }\n return get(target, p) !== undefined;\n },\n get(target, p, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.get(target, p, receiver);\n }\n return get(target, p);\n },\n set(target, p, value, receiver) {\n if (itsOwnProp(target, p)) {\n return Reflect.set(target, p, value, receiver);\n }\n return !!set(target, p, value, receiver);\n },\n deleteProperty(target, p) {\n if (itsOwnProp(target, p) || !remove) {\n return Reflect.deleteProperty(target, p);\n }\n return remove(target, p);\n },\n defineProperty(target, p, attributes) {\n return Reflect.defineProperty(target, p, attributes);\n },\n ownKeys(target) {\n return uniq(Reflect.ownKeys(target).concat((ownKeys && ownKeys(target)) || []));\n },\n ...handlers\n });\n}\n"],"names":["root","factory","exports","module","define","amd","self","webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","id","Reflect","globalThis","g","this","Function","_","functionThis","eval","indirectEvalThis","exporter","makeExporter","target","previous","key","value","Object","defineProperty","configurable","writable","hasOwn","prototype","hasOwnProperty","supportsSymbol","Symbol","toPrimitiveSymbol","toPrimitive","iteratorSymbol","iterator","supportsCreate","create","supportsProto","__proto__","Array","downLevel","HashMap","MakeDictionary","has","map","call","get","undefined","functionPrototype","getPrototypeOf","_Map","Map","entries","cacheSentinel","arraySentinel","MapIterator","values","selector","_index","_keys","_values","_selector","next","index","length","result","done","throw","error","return","_cacheKey","_cacheIndex","enumerable","_find","set","delete","size","i","SameValueZero","clear","getKey","getValue","getEntry","insert","push","CreateMapPolyfill","_Set","Set","_map","add","_WeakMap","WeakMap","rootKey","CreateUniqueKey","_key","table","GetOrCreateWeakMapTable","CreateUUID","FillRandomBytes","buffer","Math","random","data","Uint8Array","array","crypto","getRandomValues","msCrypto","GenRandomBytes","offset","byte","toString","toLowerCase","CreateWeakMapPolyfill","registrySymbol","for","metadataRegistry","IsUndefined","IsObject","isExtensible","fallback","first","second","rest","defineMetadata","reflect","hasOwnMetadata","getOwnMetadata","getOwnMetadataKeys","deleteMetadata","metadataOwner","isProviderFor","O","P","metadataPropertySet","OrdinaryDefineOwnMetadata","OrdinaryHasOwnMetadata","OrdinaryGetOwnMetadata","OrdinaryOwnMetadataKeys","OrdinaryDeleteMetadata","CreateFallbackProvider","targetProviderMap","registry","registerProvider","getProvider","setProvider","provider","getProviderNoCache","GetIterator","IteratorStep","IteratorValue","IteratorClose","providerMap","hasProvider","TypeError","existingProvider","CreateMetadataRegistry","GetOrCreateMetadataRegistry","metadataProvider","metadata","targetMetadata","MetadataKey","MetadataValue","GetOrCreateMetadataMap","metadataMap","ToBoolean","k","nextValue","Create","createdTargetMetadata","CreateMetadataProvider","OrdinaryHasMetadata","parent","OrdinaryGetPrototypeOf","IsNull","GetMetadataProvider","OrdinaryGetMetadata","OrdinaryMetadataKeys","ownKeys","parentKeys","_i","ownKeys_1","_a","parentKeys_1","Type","x","ToPrimitive","input","PreferredType","hint","exoticToPrim","GetMethod","toString_1","IsCallable","valueOf","toString_2","OrdinaryToPrimitive","argument","ToPropertyKey","ToString","IsArray","isArray","IsConstructor","y","V","func","obj","method","iterResult","f","proto","prototypeProto","constructor","registeredProvider","__","decorators","propertyKey","attributes","decorated","decorator","DecorateConstructor","descriptor","DecorateProperty","metadataKey","metadataValue","IsPropertyKey","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","d","definition","o","window","prop","r","toStringTag","descriptorOf","getOwnPropertyDescriptor","isMethodDescriptor","Configurable","deprecate","fn","msg","process","noDeprecation","args","apply","warned","throwDeprecation","traceDeprecation","console","trace","Deprecated","message","targetKey","originalMethod","Enumerable","NotConfigurable","NotEnumerable","Writable","Readonly","DecoratorTypes","getClass","classOf","decoratorTypeOf","staticType","type","CLASS","isDate","Date","isNaN","isFunction","isNil","isBoolean","Boolean","isBooleanOrBooleanClass","isNumber","isNumberOrNumberClass","Number","isString","isStringOrStringClass","String","isPrimitiveOrPrimitiveClass","isPrimitive","isPrimitiveClass","includes","isRegExp","RegExp","isSymbol","isSymbolOrSymbolClass","deepClone","source","stack","isBasicType","stacked","ArrayBuffer","isView","Buffer","isBuffer","from","slice","byteOffset","byteLength","clone","forEach","item","idx","createInstance","isProtectedKey","objectKeys","filter","mergeReducerBuilder","cb","collection","options","findIndex","deepMerge","defaultReducer","a","b","shouldReturnSource","shouldReturnObj","reducer","reducers","parentKey","getReducer","concat","reduce","out","cleanUndefinedProps","nameOfClass","targetClass","name","nameOfSymbol","sym","replace","nameOf","DESIGN_PARAM_TYPES","DESIGN_TYPE","DESIGN_RETURN_TYPE","PROPERTIES","Metadata","static","getMetadata","hasMetadata","er","getTargetsFromPropertyKey","targets","classConstructor","indexOf","targetPrototype","CLASS_STORE","METHOD_STORE","PROPERTY_STORE","PARAM_STORE","stores","storeGet","Store","getOwn","_entries","PARAM_CTOR","PARAM_STC","PARAM","store","PROP","PROP_STC","METHOD","METHOD_STC","defineStore","merge","mergeStoreFrom","defaultValue","inverse","_value_","toJson","StoreFn","parameters","StoreMerge","StoreSet","isObject","isObservable","lift","subscribe","isPromise","isStream","pipe","isResponse","AnyToPromiseStatus","AnyToPromiseResponseTypes","Env","AnyToPromise","hasNextFunction","status","PENDING","reject","isDone","DATA","handle","REJECTED","response","RESOLVED","state","destroy","cancel","CANCELED","additionalProps","isCanceledResponse","toPromise","headers","STREAM","BUFFER","catch","EnvTypes","Hooks","event","on","off","emit","callThis","listeners","alter","async","promises","all","UnsupportedDecoratorType","super","buildMessage","bindingType","shortBinding","split","param","path","catchError","catchAsyncError","ancestorOf","getInheritedClass","ancestorsOf","classes","currentTarget","unshift","prototypeOf","methodsOf","methods","decorateMethodsOf","klass","mergeStoreMethodFrom","newDescriptor","decoratorArgs","inheritedDescriptorOf","useDecorators","useMethodDecorator","useMethodDecorators","getRandomId","substring","getHostInfoFromPort","protocol","addressPort","address","port","join","importPackage","packageName","loaderFn","optional","cleanObject","ignore","getConstructor","constructorOf","isArrayOrArrayClass","isArrowFn","isUint8Array","isClassObject","isPlainObject","isClass","getClassOrSymbol","toStringConstructor","find","s","trim","getConstructorArgNames","isEnumerable","propertyIsEnumerable","getEnumerableKeys","expression","scope","separator","mapOptions","shift","hasJsonMethod","toJSON","isCollection","WeakSet","isEmpty","isInheritedFrom","deep","isMomentObject","_isAMomentObject","isObjectID","_bsontype","isMongooseObject","$isMongooseModelPrototype","isSerializable","primitiveOf","setValue","createIdentityFn","keyOrFn","v","toMap","identity","uniq","list","uniqBy","proxyDelegation","handlers","remove","getter","setter","itsOwnProp","p","Proxy","receiver","deleteProperty"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/core",
|
|
3
3
|
"description": "Core module for Ts.ED Framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.0.0-
|
|
5
|
+
"version": "8.0.0-beta.1",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"types": "./lib/types/index.d.ts",
|
|
14
14
|
"browser": "./lib/browser/core.umd.min.js",
|
|
15
15
|
"import": "./lib/esm/index.js",
|
|
16
|
-
"default": "./lib/
|
|
16
|
+
"default": "./lib/esm/index.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"reflect-metadata": "^0.2.
|
|
28
|
+
"reflect-metadata": "^0.2.2",
|
|
29
29
|
"tslib": "2.7.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsed/barrels": "8.0.0-
|
|
32
|
+
"@tsed/barrels": "8.0.0-beta.1",
|
|
33
33
|
"@tsed/monorepo-utils": "2.3.5",
|
|
34
|
-
"@tsed/typescript": "8.0.0-
|
|
35
|
-
"@tsed/vitest": "8.0.0-
|
|
36
|
-
"@vitest/coverage-v8": "^2.
|
|
37
|
-
"eslint": "9.
|
|
34
|
+
"@tsed/typescript": "8.0.0-beta.1",
|
|
35
|
+
"@tsed/vitest": "8.0.0-beta.1",
|
|
36
|
+
"@vitest/coverage-v8": "^2.1.2",
|
|
37
|
+
"eslint": "9.12.0",
|
|
38
38
|
"typescript": "5.4.5",
|
|
39
|
-
"vite": "^5.4.
|
|
40
|
-
"vitest": "2.
|
|
39
|
+
"vite": "^5.4.8",
|
|
40
|
+
"vitest": "2.1.2",
|
|
41
41
|
"webpack": "^5.75.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {},
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"author": "Romain Lenzotti",
|
|
50
50
|
"license": "MIT",
|
|
51
51
|
"publishConfig": {
|
|
52
|
-
"tag": "
|
|
52
|
+
"tag": "beta"
|
|
53
53
|
}
|
|
54
54
|
}
|