@bool-ts/core 2.3.2 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/dist/index.js.map +5 -5
- package/package.json +7 -7
- package/src/entities/application.ts +3 -2
- package/dist/keys/index.d.ts +0 -34
- package/dist/ultils/asyncFunction.d.ts +0 -1
- package/dist/ultils/colors.d.ts +0 -30
- package/dist/ultils/constructor.d.ts +0 -1
- package/dist/ultils/index.d.ts +0 -4
- package/dist/ultils/socket.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
2
|
+
var KA=Object.create;var{getPrototypeOf:IA,defineProperty:Af,getOwnPropertyNames:mA}=Object;var PA=Object.prototype.hasOwnProperty;function bA(_){return this[_]}var kA,vA,$_=(_,T,f)=>{var C=_!=null&&typeof _==="object";if(C){var E=T?kA??=new WeakMap:vA??=new WeakMap,A=E.get(_);if(A)return A}f=_!=null?KA(IA(_)):{};let c=T||!_||!_.__esModule?Af(f,"default",{value:_,enumerable:!0}):f;for(let u of mA(_))if(!PA.call(c,u))Af(c,u,{get:bA.bind(_,u),enumerable:!0});if(C)E.set(_,c);return c};var g=(_,T)=>()=>(T||_((T={exports:{}}).exports,T),T.exports);var sA=(_)=>_;function tA(_,T){this[_]=sA.bind(null,T)}var of=(_,T)=>{for(var f in T)Af(_,f,{get:T[f],enumerable:!0,configurable:!0,set:tA.bind(T,f)})};var jA=import.meta.require;var h_=g(()=>{/*! *****************************************************************************
|
|
3
3
|
Copyright (C) Microsoft. All rights reserved.
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
5
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -12,9 +12,9 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
12
12
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
|
-
***************************************************************************** */var r_;(function(f){(function(T){var _=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:u(),c=C(f);if(typeof _.Reflect<"u")c=C(_.Reflect,c);if(T(c,_),typeof _.Reflect>"u")_.Reflect=f;function C(R,U){return function(z,q){if(Object.defineProperty(R,z,{configurable:!0,writable:!0,value:q}),U)U(z,q)}}function E(){try{return Function("return this;")()}catch(R){}}function A(){try{return(0,eval)("(function() { return this; })()")}catch(R){}}function u(){return E()||A()}})(function(T,_){var c=Object.prototype.hasOwnProperty,C=typeof Symbol==="function",E=C&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",A=C&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create==="function",R={__proto__:[]}instanceof Array,U=!u&&!R,z={create:u?function(){return __(Object.create(null))}:R?function(){return __({__proto__:null})}:function(){return __({})},has:U?function(x,H){return c.call(x,H)}:function(x,H){return H in x},get:U?function(x,H){return c.call(x,H)?x[H]:void 0}:function(x,H){return x[H]}},q=Object.getPrototypeOf(Function),S=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:GE(),D=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:gE(),w=typeof WeakMap==="function"?WeakMap:OE(),W=C?Symbol.for("@reflect-metadata:registry"):void 0,P=ZE(),L=BE(P);function i(x,H,F,n){if(!O(F)){if(!k_(x))throw TypeError();if(!j(H))throw TypeError();if(!j(n)&&!O(n)&&!yT(n))throw TypeError();if(yT(n))n=void 0;return F=ST(F),r(x,H,F,n)}else{if(!k_(x))throw TypeError();if(!s_(H))throw TypeError();return v(x,H)}}T("decorate",i);function g(x,H){function F(n,Z){if(!j(n))throw TypeError();if(!O(Z)&&!XE(Z))throw TypeError();Bf(x,H,n,Z)}return F}T("metadata",g);function t(x,H,F,n){if(!j(F))throw TypeError();if(!O(n))n=ST(n);return Bf(x,H,F,n)}T("defineMetadata",t);function $(x,H,F){if(!j(H))throw TypeError();if(!O(F))F=ST(F);return CT(x,H,F)}T("hasMetadata",$);function b(x,H,F){if(!j(H))throw TypeError();if(!O(F))F=ST(F);return _T(x,H,F)}T("hasOwnMetadata",b);function k(x,H,F){if(!j(H))throw TypeError();if(!O(F))F=ST(F);return BT(x,H,F)}T("getMetadata",k);function V(x,H,F){if(!j(H))throw TypeError();if(!O(F))F=ST(F);return jT(x,H,F)}T("getOwnMetadata",V);function Q(x,H){if(!j(x))throw TypeError();if(!O(H))H=ST(H);return xf(x,H)}T("getMetadataKeys",Q);function J(x,H){if(!j(x))throw TypeError();if(!O(H))H=ST(H);return lT(x,H)}T("getOwnMetadataKeys",J);function B(x,H,F){if(!j(H))throw TypeError();if(!O(F))F=ST(F);if(!j(H))throw TypeError();if(!O(F))F=ST(F);var n=Rf(H,F,!1);if(O(n))return!1;return n.OrdinaryDeleteMetadata(x,H,F)}T("deleteMetadata",B);function v(x,H){for(var F=x.length-1;F>=0;--F){var n=x[F],Z=n(H);if(!O(Z)&&!yT(Z)){if(!s_(Z))throw TypeError();H=Z}}return H}function r(x,H,F,n){for(var Z=x.length-1;Z>=0;--Z){var l=x[Z],o=l(H,F,n);if(!O(o)&&!yT(o)){if(!j(o))throw TypeError();n=o}}return n}function CT(x,H,F){var n=_T(x,H,F);if(n)return!0;var Z=f_(H);if(!yT(Z))return CT(x,Z,F);return!1}function _T(x,H,F){var n=Rf(H,F,!1);if(O(n))return!1;return b_(n.OrdinaryHasOwnMetadata(x,H,F))}function BT(x,H,F){var n=_T(x,H,F);if(n)return jT(x,H,F);var Z=f_(H);if(!yT(Z))return BT(x,Z,F);return}function jT(x,H,F){var n=Rf(H,F,!1);if(O(n))return;return n.OrdinaryGetOwnMetadata(x,H,F)}function Bf(x,H,F,n){var Z=Rf(F,n,!0);Z.OrdinaryDefineOwnMetadata(x,H,F,n)}function xf(x,H){var F=lT(x,H),n=f_(x);if(n===null)return F;var Z=xf(n,H);if(Z.length<=0)return F;if(F.length<=0)return Z;var l=new D,o=[];for(var h=0,Y=F;h<Y.length;h++){var M=Y[h],N=l.has(M);if(!N)l.add(M),o.push(M)}for(var X=0,m=Z;X<m.length;X++){var M=m[X],N=l.has(M);if(!N)l.add(M),o.push(M)}return o}function lT(x,H){var F=Rf(x,H,!1);if(!F)return[];return F.OrdinaryOwnMetadataKeys(x,H)}function P_(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function O(x){return x===void 0}function yT(x){return x===null}function QE(x){return typeof x==="symbol"}function j(x){return typeof x==="object"?x!==null:typeof x==="function"}function ME(x,H){switch(P_(x)){case 0:return x;case 1:return x;case 2:return x;case 3:return x;case 4:return x;case 5:return x}var F=H===3?"string":H===5?"number":"default",n=v_(x,E);if(n!==void 0){var Z=n.call(x,F);if(j(Z))throw TypeError();return Z}return NE(x,F==="default"?"number":F)}function NE(x,H){if(H==="string"){var F=x.toString;if(iT(F)){var n=F.call(x);if(!j(n))return n}var Z=x.valueOf;if(iT(Z)){var n=Z.call(x);if(!j(n))return n}}else{var Z=x.valueOf;if(iT(Z)){var n=Z.call(x);if(!j(n))return n}var l=x.toString;if(iT(l)){var n=l.call(x);if(!j(n))return n}}throw TypeError()}function b_(x){return!!x}function DE(x){return""+x}function ST(x){var H=ME(x,3);if(QE(H))return H;return DE(H)}function k_(x){return Array.isArray?Array.isArray(x):x instanceof Object?x instanceof Array:Object.prototype.toString.call(x)==="[object Array]"}function iT(x){return typeof x==="function"}function s_(x){return typeof x==="function"}function XE(x){switch(P_(x)){case 3:return!0;case 4:return!0;default:return!1}}function T_(x,H){return x===H||x!==x&&H!==H}function v_(x,H){var F=x[H];if(F===void 0||F===null)return;if(!iT(F))throw TypeError();return F}function t_(x){var H=v_(x,A);if(!iT(H))throw TypeError();var F=H.call(x);if(!j(F))throw TypeError();return F}function d_(x){return x.value}function j_(x){var H=x.next();return H.done?!1:H}function l_(x){var H=x.return;if(H)H.call(x)}function f_(x){var H=Object.getPrototypeOf(x);if(typeof x!=="function"||x===q)return H;if(H!==q)return H;var F=x.prototype,n=F&&Object.getPrototypeOf(F);if(n==null||n===Object.prototype)return H;var Z=n.constructor;if(typeof Z!=="function")return H;if(Z===x)return H;return Z}function JE(){var x;if(!O(W)&&typeof _.Reflect<"u"&&!(W in _.Reflect)&&typeof _.Reflect.defineMetadata==="function")x=VE(_.Reflect);var H,F,n,Z=new w,l={registerProvider:o,getProvider:Y,setProvider:N};return l;function o(X){if(!Object.isExtensible(l))throw Error("Cannot add provider to a frozen registry.");switch(!0){case x===X:break;case O(H):H=X;break;case H===X:break;case O(F):F=X;break;case F===X:break;default:if(n===void 0)n=new D;n.add(X);break}}function h(X,m){if(!O(H)){if(H.isProviderFor(X,m))return H;if(!O(F)){if(F.isProviderFor(X,m))return H;if(!O(n)){var s=t_(n);while(!0){var y=j_(s);if(!y)return;var ET=d_(y);if(ET.isProviderFor(X,m))return l_(s),ET}}}}if(!O(x)&&x.isProviderFor(X,m))return x;return}function Y(X,m){var s=Z.get(X),y;if(!O(s))y=s.get(m);if(!O(y))return y;if(y=h(X,m),!O(y)){if(O(s))s=new S,Z.set(X,s);s.set(m,y)}return y}function M(X){if(O(X))throw TypeError();return H===X||F===X||!O(n)&&n.has(X)}function N(X,m,s){if(!M(s))throw Error("Metadata provider not registered.");var y=Y(X,m);if(y!==s){if(!O(y))return!1;var ET=Z.get(X);if(O(ET))ET=new S,Z.set(X,ET);ET.set(m,s)}return!0}}function ZE(){var x;if(!O(W)&&j(_.Reflect)&&Object.isExtensible(_.Reflect))x=_.Reflect[W];if(O(x))x=JE();if(!O(W)&&j(_.Reflect)&&Object.isExtensible(_.Reflect))Object.defineProperty(_.Reflect,W,{enumerable:!1,configurable:!1,writable:!1,value:x});return x}function BE(x){var H=new w,F={isProviderFor:function(M,N){var X=H.get(M);if(O(X))return!1;return X.has(N)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:Z,OrdinaryGetOwnMetadata:l,OrdinaryOwnMetadataKeys:h,OrdinaryDeleteMetadata:Y};return P.registerProvider(F),F;function n(M,N,X){var m=H.get(M),s=!1;if(O(m)){if(!X)return;m=new S,H.set(M,m),s=!0}var y=m.get(N);if(O(y)){if(!X)return;if(y=new S,m.set(N,y),!x.setProvider(M,N,F)){if(m.delete(N),s)H.delete(M);throw Error("Wrong provider for target.")}}return y}function Z(M,N,X){var m=n(N,X,!1);if(O(m))return!1;return b_(m.has(M))}function l(M,N,X){var m=n(N,X,!1);if(O(m))return;return m.get(M)}function o(M,N,X,m){var s=n(X,m,!0);s.set(M,N)}function h(M,N){var X=[],m=n(M,N,!1);if(O(m))return X;var s=m.keys(),y=t_(s),ET=0;while(!0){var y_=j_(y);if(!y_)return X.length=ET,X;var $E=d_(y_);try{X[ET]=$E}catch(hE){try{l_(y)}finally{throw hE}}ET++}}function Y(M,N,X){var m=n(N,X,!1);if(O(m))return!1;if(!m.delete(M))return!1;if(m.size===0){var s=H.get(N);if(!O(s)){if(s.delete(X),s.size===0)H.delete(s)}}return!0}}function VE(x){var{defineMetadata:H,hasOwnMetadata:F,getOwnMetadata:n,getOwnMetadataKeys:Z,deleteMetadata:l}=x,o=new w,h={isProviderFor:function(Y,M){var N=o.get(Y);if(!O(N)&&N.has(M))return!0;if(Z(Y,M).length){if(O(N))N=new D,o.set(Y,N);return N.add(M),!0}return!1},OrdinaryDefineOwnMetadata:H,OrdinaryHasOwnMetadata:F,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:Z,OrdinaryDeleteMetadata:l};return h}function Rf(x,H,F){var n=P.getProvider(x,H);if(!O(n))return n;if(F){if(P.setProvider(x,H,L))return L;throw Error("Illegal state.")}return}function GE(){var x={},H=[],F=function(){function h(Y,M,N){this._index=0,this._keys=Y,this._values=M,this._selector=N}return h.prototype["@@iterator"]=function(){return this},h.prototype[A]=function(){return this},h.prototype.next=function(){var Y=this._index;if(Y>=0&&Y<this._keys.length){var M=this._selector(this._keys[Y],this._values[Y]);if(Y+1>=this._keys.length)this._index=-1,this._keys=H,this._values=H;else this._index++;return{value:M,done:!1}}return{value:void 0,done:!0}},h.prototype.throw=function(Y){if(this._index>=0)this._index=-1,this._keys=H,this._values=H;throw Y},h.prototype.return=function(Y){if(this._index>=0)this._index=-1,this._keys=H,this._values=H;return{value:Y,done:!0}},h}(),n=function(){function h(){this._keys=[],this._values=[],this._cacheKey=x,this._cacheIndex=-2}return Object.defineProperty(h.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),h.prototype.has=function(Y){return this._find(Y,!1)>=0},h.prototype.get=function(Y){var M=this._find(Y,!1);return M>=0?this._values[M]:void 0},h.prototype.set=function(Y,M){var N=this._find(Y,!0);return this._values[N]=M,this},h.prototype.delete=function(Y){var M=this._find(Y,!1);if(M>=0){var N=this._keys.length;for(var X=M+1;X<N;X++)this._keys[X-1]=this._keys[X],this._values[X-1]=this._values[X];if(this._keys.length--,this._values.length--,T_(Y,this._cacheKey))this._cacheKey=x,this._cacheIndex=-2;return!0}return!1},h.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=x,this._cacheIndex=-2},h.prototype.keys=function(){return new F(this._keys,this._values,Z)},h.prototype.values=function(){return new F(this._keys,this._values,l)},h.prototype.entries=function(){return new F(this._keys,this._values,o)},h.prototype["@@iterator"]=function(){return this.entries()},h.prototype[A]=function(){return this.entries()},h.prototype._find=function(Y,M){if(!T_(this._cacheKey,Y)){this._cacheIndex=-1;for(var N=0;N<this._keys.length;N++)if(T_(this._keys[N],Y)){this._cacheIndex=N;break}}if(this._cacheIndex<0&&M)this._cacheIndex=this._keys.length,this._keys.push(Y),this._values.push(void 0);return this._cacheIndex},h}();return n;function Z(h,Y){return h}function l(h,Y){return Y}function o(h,Y){return[h,Y]}}function gE(){var x=function(){function H(){this._map=new S}return Object.defineProperty(H.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),H.prototype.has=function(F){return this._map.has(F)},H.prototype.add=function(F){return this._map.set(F,F),this},H.prototype.delete=function(F){return this._map.delete(F)},H.prototype.clear=function(){this._map.clear()},H.prototype.keys=function(){return this._map.keys()},H.prototype.values=function(){return this._map.keys()},H.prototype.entries=function(){return this._map.entries()},H.prototype["@@iterator"]=function(){return this.keys()},H.prototype[A]=function(){return this.keys()},H}();return x}function OE(){var x=16,H=z.create(),F=n();return function(){function Y(){this._key=n()}return Y.prototype.has=function(M){var N=Z(M,!1);return N!==void 0?z.has(N,this._key):!1},Y.prototype.get=function(M){var N=Z(M,!1);return N!==void 0?z.get(N,this._key):void 0},Y.prototype.set=function(M,N){var X=Z(M,!0);return X[this._key]=N,this},Y.prototype.delete=function(M){var N=Z(M,!1);return N!==void 0?delete N[this._key]:!1},Y.prototype.clear=function(){this._key=n()},Y}();function n(){var Y;do Y="@@WeakMap@@"+h();while(z.has(H,Y));return H[Y]=!0,Y}function Z(Y,M){if(!c.call(Y,F)){if(!M)return;Object.defineProperty(Y,F,{value:z.create()})}return Y[F]}function l(Y,M){for(var N=0;N<M;++N)Y[N]=Math.random()*255|0;return Y}function o(Y){if(typeof Uint8Array==="function"){var M=new Uint8Array(Y);if(typeof crypto<"u")crypto.getRandomValues(M);else if(typeof msCrypto<"u")msCrypto.getRandomValues(M);else l(M,Y);return M}return l(Array(Y),Y)}function h(){var Y=o(x);Y[6]=Y[6]&79|64,Y[8]=Y[8]&191|128;var M="";for(var N=0;N<x;++N){var X=Y[N];if(N===4||N===6||N===8)M+="-";if(X<16)M+="0";M+=X.toString(16).toLowerCase()}return M}}function __(x){return x.__=void 0,delete x.__,x}})})(r_||(r_={}))});var kT=G((s0,cc)=>{cc.exports=TypeError});var Ec=G((v0,Cc)=>{Cc.exports=bE("util").inspect});var nf=G((t0,Xc)=>{var z_=typeof Map==="function"&&Map.prototype,C_=Object.getOwnPropertyDescriptor&&z_?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,hf=z_&&C_&&typeof C_.get==="function"?C_.get:null,Ac=z_&&Map.prototype.forEach,F_=typeof Set==="function"&&Set.prototype,E_=Object.getOwnPropertyDescriptor&&F_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,If=F_&&E_&&typeof E_.get==="function"?E_.get:null,xc=F_&&Set.prototype.forEach,QA=typeof WeakMap==="function"&&WeakMap.prototype,Ff=QA?WeakMap.prototype.has:null,MA=typeof WeakSet==="function"&&WeakSet.prototype,qf=MA?WeakSet.prototype.has:null,NA=typeof WeakRef==="function"&&WeakRef.prototype,Rc=NA?WeakRef.prototype.deref:null,DA=Boolean.prototype.valueOf,XA=Object.prototype.toString,JA=Function.prototype.toString,ZA=String.prototype.match,q_=String.prototype.slice,$T=String.prototype.replace,BA=String.prototype.toUpperCase,Sc=String.prototype.toLowerCase,Wc=RegExp.prototype.test,uc=Array.prototype.concat,nT=Array.prototype.join,VA=Array.prototype.slice,Hc=Math.floor,R_=typeof BigInt==="function"?BigInt.prototype.valueOf:null,A_=Object.getOwnPropertySymbols,S_=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,Tf=typeof Symbol==="function"&&typeof Symbol.iterator==="object",Uf=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Tf?"object":"symbol")?Symbol.toStringTag:null,wc=Object.prototype.propertyIsEnumerable,Lc=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function zc(f,T){if(f===1/0||f===-1/0||f!==f||f&&f>-1000&&f<1000||Wc.call(/e/,T))return T;var _=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f==="number"){var c=f<0?-Hc(-f):Hc(f);if(c!==f){var C=String(c),E=q_.call(T,C.length+1);return $T.call(C,_,"$&_")+"."+$T.call($T.call(E,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $T.call(T,_,"$&_")}var u_=Ec(),Fc=u_.custom,qc=Mc(Fc)?Fc:null,Yc={__proto__:null,double:'"',single:"'"},GA={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Xc.exports=function f(T,_,c,C){var E=_||{};if(XT(E,"quoteStyle")&&!XT(Yc,E.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(XT(E,"maxStringLength")&&(typeof E.maxStringLength==="number"?E.maxStringLength<0&&E.maxStringLength!==1/0:E.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var A=XT(E,"customInspect")?E.customInspect:!0;if(typeof A!=="boolean"&&A!=="symbol")throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(XT(E,"indent")&&E.indent!==null&&E.indent!=="\t"&&!(parseInt(E.indent,10)===E.indent&&E.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(XT(E,"numericSeparator")&&typeof E.numericSeparator!=="boolean")throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=E.numericSeparator;if(typeof T>"u")return"undefined";if(T===null)return"null";if(typeof T==="boolean")return T?"true":"false";if(typeof T==="string")return Dc(T,E);if(typeof T==="number"){if(T===0)return 1/0/T>0?"0":"-0";var R=String(T);return u?zc(T,R):R}if(typeof T==="bigint"){var U=String(T)+"n";return u?zc(T,U):U}var z=typeof E.depth>"u"?5:E.depth;if(typeof c>"u")c=0;if(c>=z&&z>0&&typeof T==="object")return H_(T)?"[Array]":"[Object]";var q=iA(E,c);if(typeof C>"u")C=[];else if(Nc(C,T)>=0)return"[Circular]";function S(r,CT,_T){if(CT)C=VA.call(C),C.push(CT);if(_T){var BT={depth:E.depth};if(XT(E,"quoteStyle"))BT.quoteStyle=E.quoteStyle;return f(r,BT,c+1,C)}return f(r,E,c+1,C)}if(typeof T==="function"&&!Uc(T)){var D=bA(T),w=$f(T,S);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(w.length>0?" { "+nT.call(w,", ")+" }":"")}if(Mc(T)){var W=Tf?$T.call(String(T),/^(Symbol\(.*\))_[^)]*$/,"$1"):S_.call(T);return typeof T==="object"&&!Tf?zf(W):W}if(jA(T)){var P="<"+Sc.call(String(T.nodeName)),L=T.attributes||[];for(var i=0;i<L.length;i++)P+=" "+L[i].name+"="+Qc(gA(L[i].value),"double",E);if(P+=">",T.childNodes&&T.childNodes.length)P+="...";return P+="</"+Sc.call(String(T.nodeName))+">",P}if(H_(T)){if(T.length===0)return"[]";var g=$f(T,S);if(q&&!yA(g))return"["+L_(g,q)+"]";return"[ "+nT.call(g,", ")+" ]"}if($A(T)){var t=$f(T,S);if(!("cause"in Error.prototype)&&"cause"in T&&!wc.call(T,"cause"))return"{ ["+String(T)+"] "+nT.call(uc.call("[cause]: "+S(T.cause),t),", ")+" }";if(t.length===0)return"["+String(T)+"]";return"{ ["+String(T)+"] "+nT.call(t,", ")+" }"}if(typeof T==="object"&&A){if(qc&&typeof T[qc]==="function"&&u_)return u_(T,{depth:z-c});else if(A!=="symbol"&&typeof T.inspect==="function")return T.inspect()}if(kA(T)){var $=[];if(Ac)Ac.call(T,function(r,CT){$.push(S(CT,T,!0)+" => "+S(r,T))});return nc("Map",hf.call(T),$,q)}if(tA(T)){var b=[];if(xc)xc.call(T,function(r){b.push(S(r,T))});return nc("Set",If.call(T),b,q)}if(sA(T))return x_("WeakMap");if(dA(T))return x_("WeakSet");if(vA(T))return x_("WeakRef");if(IA(T))return zf(S(Number(T)));if(mA(T))return zf(S(R_.call(T)));if(KA(T))return zf(DA.call(T));if(hA(T))return zf(S(String(T)));if(typeof window<"u"&&T===window)return"{ [object Window] }";if(typeof globalThis<"u"&&T===globalThis||typeof global<"u"&&T===global)return"{ [object globalThis] }";if(!OA(T)&&!Uc(T)){var k=$f(T,S),V=Lc?Lc(T)===Object.prototype:T instanceof Object||T.constructor===Object,Q=T instanceof Object?"":"null prototype",J=!V&&Uf&&Object(T)===T&&Uf in T?q_.call(hT(T),8,-1):Q?"Object":"",B=V||typeof T.constructor!=="function"?"":T.constructor.name?T.constructor.name+" ":"",v=B+(J||Q?"["+nT.call(uc.call([],J||[],Q||[]),": ")+"] ":"");if(k.length===0)return v+"{}";if(q)return v+"{"+L_(k,q)+"}";return v+"{ "+nT.call(k,", ")+" }"}return String(T)};function Qc(f,T,_){var c=_.quoteStyle||T,C=Yc[c];return C+f+C}function gA(f){return $T.call(String(f),/"/g,""")}function sT(f){return!Uf||!(typeof f==="object"&&((Uf in f)||typeof f[Uf]<"u"))}function H_(f){return hT(f)==="[object Array]"&&sT(f)}function OA(f){return hT(f)==="[object Date]"&&sT(f)}function Uc(f){return hT(f)==="[object RegExp]"&&sT(f)}function $A(f){return hT(f)==="[object Error]"&&sT(f)}function hA(f){return hT(f)==="[object String]"&&sT(f)}function IA(f){return hT(f)==="[object Number]"&&sT(f)}function KA(f){return hT(f)==="[object Boolean]"&&sT(f)}function Mc(f){if(Tf)return f&&typeof f==="object"&&f instanceof Symbol;if(typeof f==="symbol")return!0;if(!f||typeof f!=="object"||!S_)return!1;try{return S_.call(f),!0}catch(T){}return!1}function mA(f){if(!f||typeof f!=="object"||!R_)return!1;try{return R_.call(f),!0}catch(T){}return!1}var PA=Object.prototype.hasOwnProperty||function(f){return f in this};function XT(f,T){return PA.call(f,T)}function hT(f){return XA.call(f)}function bA(f){if(f.name)return f.name;var T=ZA.call(JA.call(f),/^function\s*([\w$]+)/);if(T)return T[1];return null}function Nc(f,T){if(f.indexOf)return f.indexOf(T);for(var _=0,c=f.length;_<c;_++)if(f[_]===T)return _;return-1}function kA(f){if(!hf||!f||typeof f!=="object")return!1;try{hf.call(f);try{If.call(f)}catch(T){return!0}return f instanceof Map}catch(T){}return!1}function sA(f){if(!Ff||!f||typeof f!=="object")return!1;try{Ff.call(f,Ff);try{qf.call(f,qf)}catch(T){return!0}return f instanceof WeakMap}catch(T){}return!1}function vA(f){if(!Rc||!f||typeof f!=="object")return!1;try{return Rc.call(f),!0}catch(T){}return!1}function tA(f){if(!If||!f||typeof f!=="object")return!1;try{If.call(f);try{hf.call(f)}catch(T){return!0}return f instanceof Set}catch(T){}return!1}function dA(f){if(!qf||!f||typeof f!=="object")return!1;try{qf.call(f,qf);try{Ff.call(f,Ff)}catch(T){return!0}return f instanceof WeakSet}catch(T){}return!1}function jA(f){if(!f||typeof f!=="object")return!1;if(typeof HTMLElement<"u"&&f instanceof HTMLElement)return!0;return typeof f.nodeName==="string"&&typeof f.getAttribute==="function"}function Dc(f,T){if(f.length>T.maxStringLength){var _=f.length-T.maxStringLength,c="... "+_+" more character"+(_>1?"s":"");return Dc(q_.call(f,0,T.maxStringLength),T)+c}var C=GA[T.quoteStyle||"single"];C.lastIndex=0;var E=$T.call($T.call(f,C,"\\$1"),/[\x00-\x1f]/g,lA);return Qc(E,"single",T)}function lA(f){var T=f.charCodeAt(0),_={8:"b",9:"t",10:"n",12:"f",13:"r"}[T];if(_)return"\\"+_;return"\\x"+(T<16?"0":"")+BA.call(T.toString(16))}function zf(f){return"Object("+f+")"}function x_(f){return f+" { ? }"}function nc(f,T,_,c){var C=c?L_(_,c):nT.call(_,", ");return f+" ("+T+") {"+C+"}"}function yA(f){for(var T=0;T<f.length;T++)if(Nc(f[T],`
|
|
16
|
-
`)>=0)return!1;return!0}function
|
|
17
|
-
`+T.prev+T.base;return
|
|
18
|
-
`+T.prev}function $f(f,T){var _=H_(f),c=[];if(_){c.length=f.length;for(var C=0;C<f.length;C++)c[C]=XT(f,C)?T(f[C],f):""}var E=typeof A_==="function"?A_(f):[],A;if(Tf){A={};for(var u=0;u<E.length;u++)A["$"+E[u]]=E[u]}for(var R in f){if(!XT(f,R))continue;if(_&&String(Number(R))===R&&R<f.length)continue;if(Tf&&A["$"+R]instanceof Symbol)continue;else if(Wc.call(/[^\w$]/,R))c.push(T(R,f)+": "+T(f[R],f));else c.push(R+": "+T(f[R],f))}if(typeof A_==="function"){for(var U=0;U<E.length;U++)if(wc.call(f,E[U]))c.push("["+T(E[U])+"]: "+T(f[E[U]],f))}return c}});var Zc=G((d0,Jc)=>{var rA=nf(),pA=kT(),Kf=function(f,T,_){var c=f,C;for(;(C=c.next)!=null;c=C)if(C.key===T){if(c.next=C.next,!_)C.next=f.next,f.next=C;return C}},oA=function(f,T){if(!f)return;var _=Kf(f,T);return _&&_.value},eA=function(f,T,_){var c=Kf(f,T);if(c)c.value=_;else f.next={key:T,next:f.next,value:_}},aA=function(f,T){if(!f)return!1;return!!Kf(f,T)},Tx=function(f,T){if(f)return Kf(f,T,!0)};Jc.exports=function(){var T,_={assert:function(c){if(!_.has(c))throw new pA("Side channel does not contain "+rA(c))},delete:function(c){var C=T&&T.next,E=Tx(T,c);if(E&&C&&C===E)T=void 0;return!!E},get:function(c){return oA(T,c)},has:function(c){return aA(T,c)},set:function(c,C){if(!T)T={next:void 0};eA(T,c,C)}};return _}});var U_=G((j0,Bc)=>{Bc.exports=Object});var Gc=G((l0,Vc)=>{Vc.exports=Error});var Oc=G((y0,gc)=>{gc.exports=EvalError});var hc=G((i0,$c)=>{$c.exports=RangeError});var Kc=G((r0,Ic)=>{Ic.exports=ReferenceError});var Pc=G((p0,mc)=>{mc.exports=SyntaxError});var kc=G((o0,bc)=>{bc.exports=URIError});var vc=G((e0,sc)=>{sc.exports=Math.abs});var dc=G((a0,tc)=>{tc.exports=Math.floor});var lc=G((TS,jc)=>{jc.exports=Math.max});var ic=G((fS,yc)=>{yc.exports=Math.min});var pc=G((_S,rc)=>{rc.exports=Math.pow});var ec=G((cS,oc)=>{oc.exports=Math.round});var TC=G((CS,ac)=>{ac.exports=Number.isNaN||function(T){return T!==T}});var _C=G((ES,fC)=>{var fx=TC();fC.exports=function(T){if(fx(T)||T===0)return T;return T<0?-1:1}});var CC=G((AS,cC)=>{cC.exports=Object.getOwnPropertyDescriptor});var n_=G((xS,EC)=>{var mf=CC();if(mf)try{mf([],"length")}catch(f){mf=null}EC.exports=mf});var xC=G((RS,AC)=>{var Pf=Object.defineProperty||!1;if(Pf)try{Pf({},"a",{value:1})}catch(f){Pf=!1}AC.exports=Pf});var SC=G((SS,RC)=>{RC.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var T={},_=Symbol("test"),c=Object(_);if(typeof _==="string")return!1;if(Object.prototype.toString.call(_)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var C=42;T[_]=C;for(var E in T)return!1;if(typeof Object.keys==="function"&&Object.keys(T).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(T).length!==0)return!1;var A=Object.getOwnPropertySymbols(T);if(A.length!==1||A[0]!==_)return!1;if(!Object.prototype.propertyIsEnumerable.call(T,_))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var u=Object.getOwnPropertyDescriptor(T,_);if(u.value!==C||u.enumerable!==!0)return!1}return!0}});var LC=G((uS,HC)=>{var uC=typeof Symbol<"u"&&Symbol,_x=SC();HC.exports=function(){if(typeof uC!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof uC("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return _x()}});var W_=G((HS,zC)=>{zC.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var w_=G((LS,FC)=>{var cx=U_();FC.exports=cx.getPrototypeOf||null});var nC=G((zS,UC)=>{var Cx="Function.prototype.bind called on incompatible ",Ex=Object.prototype.toString,Ax=Math.max,xx="[object Function]",qC=function(T,_){var c=[];for(var C=0;C<T.length;C+=1)c[C]=T[C];for(var E=0;E<_.length;E+=1)c[E+T.length]=_[E];return c},Rx=function(T,_){var c=[];for(var C=_||0,E=0;C<T.length;C+=1,E+=1)c[E]=T[C];return c},Sx=function(f,T){var _="";for(var c=0;c<f.length;c+=1)if(_+=f[c],c+1<f.length)_+=T;return _};UC.exports=function(T){var _=this;if(typeof _!=="function"||Ex.apply(_)!==xx)throw TypeError(Cx+_);var c=Rx(arguments,1),C,E=function(){if(this instanceof C){var z=_.apply(this,qC(c,arguments));if(Object(z)===z)return z;return this}return _.apply(T,qC(c,arguments))},A=Ax(0,_.length-c.length),u=[];for(var R=0;R<A;R++)u[R]="$"+R;if(C=Function("binder","return function ("+Sx(u,",")+"){ return binder.apply(this,arguments); }")(E),_.prototype){var U=function(){};U.prototype=_.prototype,C.prototype=new U,U.prototype=null}return C}});var Wf=G((FS,WC)=>{var ux=nC();WC.exports=Function.prototype.bind||ux});var bf=G((qS,wC)=>{wC.exports=Function.prototype.call});var Y_=G((US,YC)=>{YC.exports=Function.prototype.apply});var MC=G((nS,QC)=>{QC.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var DC=G((WS,NC)=>{var Hx=Wf(),Lx=Y_(),zx=bf(),Fx=MC();NC.exports=Fx||Hx.call(zx,Lx)});var Q_=G((wS,XC)=>{var qx=Wf(),Ux=kT(),nx=bf(),Wx=DC();XC.exports=function(T){if(T.length<1||typeof T[0]!=="function")throw new Ux("a function is required");return Wx(qx,nx,T)}});var gC=G((YS,GC)=>{var wx=Q_(),JC=n_(),BC;try{BC=[].__proto__===Array.prototype}catch(f){if(!f||typeof f!=="object"||!("code"in f)||f.code!=="ERR_PROTO_ACCESS")throw f}var M_=!!BC&&JC&&JC(Object.prototype,"__proto__"),VC=Object,ZC=VC.getPrototypeOf;GC.exports=M_&&typeof M_.get==="function"?wx([M_.get]):typeof ZC==="function"?function(T){return ZC(T==null?T:VC(T))}:!1});var KC=G((QS,IC)=>{var OC=W_(),$C=w_(),hC=gC();IC.exports=OC?function(T){return OC(T)}:$C?function(T){if(!T||typeof T!=="object"&&typeof T!=="function")throw TypeError("getProto: not an object");return $C(T)}:hC?function(T){return hC(T)}:null});var PC=G((MS,mC)=>{var Yx=Function.prototype.call,Qx=Object.prototype.hasOwnProperty,Mx=Wf();mC.exports=Mx.call(Yx,Qx)});var vf=G((NS,tC)=>{var K,Nx=U_(),Dx=Gc(),Xx=Oc(),Jx=hc(),Zx=Kc(),Cf=Pc(),cf=kT(),Bx=kc(),Vx=vc(),Gx=dc(),gx=lc(),Ox=ic(),$x=pc(),hx=ec(),Ix=_C(),sC=Function,N_=function(f){try{return sC('"use strict"; return ('+f+").constructor;")()}catch(T){}},wf=n_(),Kx=xC(),D_=function(){throw new cf},mx=wf?function(){try{return arguments.callee,D_}catch(f){try{return wf(arguments,"callee").get}catch(T){return D_}}}():D_,ff=LC()(),a=KC(),Px=w_(),bx=W_(),vC=Y_(),Yf=bf(),_f={},kx=typeof Uint8Array>"u"||!a?K:a(Uint8Array),vT={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?K:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?K:ArrayBuffer,"%ArrayIteratorPrototype%":ff&&a?a([][Symbol.iterator]()):K,"%AsyncFromSyncIteratorPrototype%":K,"%AsyncFunction%":_f,"%AsyncGenerator%":_f,"%AsyncGeneratorFunction%":_f,"%AsyncIteratorPrototype%":_f,"%Atomics%":typeof Atomics>"u"?K:Atomics,"%BigInt%":typeof BigInt>"u"?K:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?K:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?K:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?K:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Dx,"%eval%":eval,"%EvalError%":Xx,"%Float16Array%":typeof Float16Array>"u"?K:Float16Array,"%Float32Array%":typeof Float32Array>"u"?K:Float32Array,"%Float64Array%":typeof Float64Array>"u"?K:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?K:FinalizationRegistry,"%Function%":sC,"%GeneratorFunction%":_f,"%Int8Array%":typeof Int8Array>"u"?K:Int8Array,"%Int16Array%":typeof Int16Array>"u"?K:Int16Array,"%Int32Array%":typeof Int32Array>"u"?K:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ff&&a?a(a([][Symbol.iterator]())):K,"%JSON%":typeof JSON==="object"?JSON:K,"%Map%":typeof Map>"u"?K:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ff||!a?K:a(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Nx,"%Object.getOwnPropertyDescriptor%":wf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?K:Promise,"%Proxy%":typeof Proxy>"u"?K:Proxy,"%RangeError%":Jx,"%ReferenceError%":Zx,"%Reflect%":typeof Reflect>"u"?K:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?K:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ff||!a?K:a(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?K:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ff&&a?a(""[Symbol.iterator]()):K,"%Symbol%":ff?Symbol:K,"%SyntaxError%":Cf,"%ThrowTypeError%":mx,"%TypedArray%":kx,"%TypeError%":cf,"%Uint8Array%":typeof Uint8Array>"u"?K:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?K:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?K:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?K:Uint32Array,"%URIError%":Bx,"%WeakMap%":typeof WeakMap>"u"?K:WeakMap,"%WeakRef%":typeof WeakRef>"u"?K:WeakRef,"%WeakSet%":typeof WeakSet>"u"?K:WeakSet,"%Function.prototype.call%":Yf,"%Function.prototype.apply%":vC,"%Object.defineProperty%":Kx,"%Object.getPrototypeOf%":Px,"%Math.abs%":Vx,"%Math.floor%":Gx,"%Math.max%":gx,"%Math.min%":Ox,"%Math.pow%":$x,"%Math.round%":hx,"%Math.sign%":Ix,"%Reflect.getPrototypeOf%":bx};if(a)try{null.error}catch(f){X_=a(a(f)),vT["%Error.prototype%"]=X_}var X_,sx=function f(T){var _;if(T==="%AsyncFunction%")_=N_("async function () {}");else if(T==="%GeneratorFunction%")_=N_("function* () {}");else if(T==="%AsyncGeneratorFunction%")_=N_("async function* () {}");else if(T==="%AsyncGenerator%"){var c=f("%AsyncGeneratorFunction%");if(c)_=c.prototype}else if(T==="%AsyncIteratorPrototype%"){var C=f("%AsyncGenerator%");if(C&&a)_=a(C.prototype)}return vT[T]=_,_},bC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qf=Wf(),kf=PC(),vx=Qf.call(Yf,Array.prototype.concat),tx=Qf.call(vC,Array.prototype.splice),kC=Qf.call(Yf,String.prototype.replace),sf=Qf.call(Yf,String.prototype.slice),dx=Qf.call(Yf,RegExp.prototype.exec),jx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lx=/\\(\\)?/g,yx=function(T){var _=sf(T,0,1),c=sf(T,-1);if(_==="%"&&c!=="%")throw new Cf("invalid intrinsic syntax, expected closing `%`");else if(c==="%"&&_!=="%")throw new Cf("invalid intrinsic syntax, expected opening `%`");var C=[];return kC(T,jx,function(E,A,u,R){C[C.length]=u?kC(R,lx,"$1"):A||E}),C},ix=function(T,_){var c=T,C;if(kf(bC,c))C=bC[c],c="%"+C[0]+"%";if(kf(vT,c)){var E=vT[c];if(E===_f)E=sx(c);if(typeof E>"u"&&!_)throw new cf("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:C,name:c,value:E}}throw new Cf("intrinsic "+T+" does not exist!")};tC.exports=function(T,_){if(typeof T!=="string"||T.length===0)throw new cf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _!=="boolean")throw new cf('"allowMissing" argument must be a boolean');if(dx(/^%?[^%]*%?$/,T)===null)throw new Cf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=yx(T),C=c.length>0?c[0]:"",E=ix("%"+C+"%",_),A=E.name,u=E.value,R=!1,U=E.alias;if(U)C=U[0],tx(c,vx([0,1],U));for(var z=1,q=!0;z<c.length;z+=1){var S=c[z],D=sf(S,0,1),w=sf(S,-1);if((D==='"'||D==="'"||D==="`"||(w==='"'||w==="'"||w==="`"))&&D!==w)throw new Cf("property names with quotes must have matching quotes");if(S==="constructor"||!q)R=!0;if(C+="."+S,A="%"+C+"%",kf(vT,A))u=vT[A];else if(u!=null){if(!(S in u)){if(!_)throw new cf("base intrinsic for "+T+" exists, but the property is not available.");return}if(wf&&z+1>=c.length){var W=wf(u,S);if(q=!!W,q&&"get"in W&&!("originalValue"in W.get))u=W.get;else u=u[S]}else q=kf(u,S),u=u[S];if(q&&!R)vT[A]=u}}return u}});var J_=G((DS,lC)=>{var dC=vf(),jC=Q_(),rx=jC([dC("%String.prototype.indexOf%")]);lC.exports=function(T,_){var c=dC(T,!!_);if(typeof c==="function"&&rx(T,".prototype.")>-1)return jC([c]);return c}});var Z_=G((XS,iC)=>{var px=vf(),Mf=J_(),ox=nf(),ex=kT(),yC=px("%Map%",!0),ax=Mf("Map.prototype.get",!0),TR=Mf("Map.prototype.set",!0),fR=Mf("Map.prototype.has",!0),_R=Mf("Map.prototype.delete",!0),cR=Mf("Map.prototype.size",!0);iC.exports=!!yC&&function(){var T,_={assert:function(c){if(!_.has(c))throw new ex("Side channel does not contain "+ox(c))},delete:function(c){if(T){var C=_R(T,c);if(cR(T)===0)T=void 0;return C}return!1},get:function(c){if(T)return ax(T,c)},has:function(c){if(T)return fR(T,c);return!1},set:function(c,C){if(!T)T=new yC;TR(T,c,C)}};return _}});var pC=G((JS,rC)=>{var CR=vf(),df=J_(),ER=nf(),tf=Z_(),AR=kT(),Ef=CR("%WeakMap%",!0),xR=df("WeakMap.prototype.get",!0),RR=df("WeakMap.prototype.set",!0),SR=df("WeakMap.prototype.has",!0),uR=df("WeakMap.prototype.delete",!0);rC.exports=Ef?function(){var T,_,c={assert:function(C){if(!c.has(C))throw new AR("Side channel does not contain "+ER(C))},delete:function(C){if(Ef&&C&&(typeof C==="object"||typeof C==="function")){if(T)return uR(T,C)}else if(tf){if(_)return _.delete(C)}return!1},get:function(C){if(Ef&&C&&(typeof C==="object"||typeof C==="function")){if(T)return xR(T,C)}return _&&_.get(C)},has:function(C){if(Ef&&C&&(typeof C==="object"||typeof C==="function")){if(T)return SR(T,C)}return!!_&&_.has(C)},set:function(C,E){if(Ef&&C&&(typeof C==="object"||typeof C==="function")){if(!T)T=new Ef;RR(T,C,E)}else if(tf){if(!_)_=tf();_.set(C,E)}}};return c}:tf});var B_=G((ZS,oC)=>{var HR=kT(),LR=nf(),zR=Zc(),FR=Z_(),qR=pC(),UR=qR||FR||zR;oC.exports=function(){var T,_={assert:function(c){if(!_.has(c))throw new HR("Side channel does not contain "+LR(c))},delete:function(c){return!!T&&T.delete(c)},get:function(c){return T&&T.get(c)},has:function(c){return!!T&&T.has(c)},set:function(c,C){if(!T)T=UR();T.set(c,C)}};return _}});var jf=G((BS,eC)=>{var nR=String.prototype.replace,WR=/%20/g,V_={RFC1738:"RFC1738",RFC3986:"RFC3986"};eC.exports={default:V_.RFC3986,formatters:{RFC1738:function(f){return nR.call(f,WR,"+")},RFC3986:function(f){return String(f)}},RFC1738:V_.RFC1738,RFC3986:V_.RFC3986}});var h_=G((VS,fE)=>{var wR=jf(),YR=B_(),G_=Object.prototype.hasOwnProperty,tT=Array.isArray,yf=YR(),aC=function(T,_){return yf.set(T,_),T},lf=function(T){return yf.has(T)},O_=function(T){return yf.get(T)},TE=function(T,_){yf.set(T,_)},WT=function(){var f=[];for(var T=0;T<256;++T)f.push("%"+((T<16?"0":"")+T.toString(16)).toUpperCase());return f}(),QR=function(T){while(T.length>1){var _=T.pop(),c=_.obj[_.prop];if(tT(c)){var C=[];for(var E=0;E<c.length;++E)if(typeof c[E]<"u")C.push(c[E]);_.obj[_.prop]=C}}},$_=function(T,_){var c=_&&_.plainObjects?{__proto__:null}:{};for(var C=0;C<T.length;++C)if(typeof T[C]<"u")c[C]=T[C];return c},MR=function f(T,_,c){if(!_)return T;if(typeof _!=="object"&&typeof _!=="function"){if(tT(T))T.push(_);else if(T&&typeof T==="object"){if(lf(T)){var C=O_(T)+1;T[C]=_,TE(T,C)}else if(c&&(c.plainObjects||c.allowPrototypes)||!G_.call(Object.prototype,_))T[_]=!0}else return[T,_];return T}if(!T||typeof T!=="object"){if(lf(_)){var E=Object.keys(_),A=c&&c.plainObjects?{__proto__:null,0:T}:{0:T};for(var u=0;u<E.length;u++){var R=parseInt(E[u],10);A[R+1]=_[E[u]]}return aC(A,O_(_)+1)}return[T].concat(_)}var U=T;if(tT(T)&&!tT(_))U=$_(T,c);if(tT(T)&&tT(_))return _.forEach(function(z,q){if(G_.call(T,q)){var S=T[q];if(S&&typeof S==="object"&&z&&typeof z==="object")T[q]=f(S,z,c);else T.push(z)}else T[q]=z}),T;return Object.keys(_).reduce(function(z,q){var S=_[q];if(G_.call(z,q))z[q]=f(z[q],S,c);else z[q]=S;return z},U)},NR=function(T,_){return Object.keys(_).reduce(function(c,C){return c[C]=_[C],c},T)},DR=function(f,T,_){var c=f.replace(/\+/g," ");if(_==="iso-8859-1")return c.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(c)}catch(C){return c}},g_=1024,XR=function(T,_,c,C,E){if(T.length===0)return T;var A=T;if(typeof T==="symbol")A=Symbol.prototype.toString.call(T);else if(typeof T!=="string")A=String(T);if(c==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(D){return"%26%23"+parseInt(D.slice(2),16)+"%3B"});var u="";for(var R=0;R<A.length;R+=g_){var U=A.length>=g_?A.slice(R,R+g_):A,z=[];for(var q=0;q<U.length;++q){var S=U.charCodeAt(q);if(S===45||S===46||S===95||S===126||S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||E===wR.RFC1738&&(S===40||S===41)){z[z.length]=U.charAt(q);continue}if(S<128){z[z.length]=WT[S];continue}if(S<2048){z[z.length]=WT[192|S>>6]+WT[128|S&63];continue}if(S<55296||S>=57344){z[z.length]=WT[224|S>>12]+WT[128|S>>6&63]+WT[128|S&63];continue}q+=1,S=65536+((S&1023)<<10|U.charCodeAt(q)&1023),z[z.length]=WT[240|S>>18]+WT[128|S>>12&63]+WT[128|S>>6&63]+WT[128|S&63]}u+=z.join("")}return u},JR=function(T){var _=[{obj:{o:T},prop:"o"}],c=[];for(var C=0;C<_.length;++C){var E=_[C],A=E.obj[E.prop],u=Object.keys(A);for(var R=0;R<u.length;++R){var U=u[R],z=A[U];if(typeof z==="object"&&z!==null&&c.indexOf(z)===-1)_.push({obj:A,prop:U}),c.push(z)}}return QR(_),T},ZR=function(T){return Object.prototype.toString.call(T)==="[object RegExp]"},BR=function(T){if(!T||typeof T!=="object")return!1;return!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},VR=function(T,_,c,C){if(lf(T)){var E=O_(T)+1;return T[E]=_,TE(T,E),T}var A=[].concat(T,_);if(A.length>c)return aC($_(A,{plainObjects:C}),A.length-1);return A},GR=function(T,_){if(tT(T)){var c=[];for(var C=0;C<T.length;C+=1)c.push(_(T[C]));return c}return _(T)};fE.exports={arrayToObject:$_,assign:NR,combine:VR,compact:JR,decode:DR,encode:XR,isBuffer:BR,isOverflow:lf,isRegExp:ZR,maybeMap:GR,merge:MR}});var xE=G((GS,AE)=>{var cE=B_(),rf=h_(),Nf=jf(),gR=Object.prototype.hasOwnProperty,CE={brackets:function(T){return T+"[]"},comma:"comma",indices:function(T,_){return T+"["+_+"]"},repeat:function(T){return T}},wT=Array.isArray,OR=Array.prototype.push,EE=function(f,T){OR.apply(f,wT(T)?T:[T])},$R=Date.prototype.toISOString,_E=Nf.default,e={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:rf.encode,encodeValuesOnly:!1,filter:void 0,format:_E,formatter:Nf.formatters[_E],indices:!1,serializeDate:function(T){return $R.call(T)},skipNulls:!1,strictNullHandling:!1},hR=function(T){return typeof T==="string"||typeof T==="number"||typeof T==="boolean"||typeof T==="symbol"||typeof T==="bigint"},I_={},IR=function f(T,_,c,C,E,A,u,R,U,z,q,S,D,w,W,P,L,i){var g=T,t=i,$=0,b=!1;while((t=t.get(I_))!==void 0&&!b){var k=t.get(T);if($+=1,typeof k<"u")if(k===$)throw RangeError("Cyclic object value");else b=!0;if(typeof t.get(I_)>"u")$=0}if(typeof z==="function")g=z(_,g);else if(g instanceof Date)g=D(g);else if(c==="comma"&&wT(g))g=rf.maybeMap(g,function(lT){if(lT instanceof Date)return D(lT);return lT});if(g===null){if(A)return U&&!P?U(_,e.encoder,L,"key",w):_;g=""}if(hR(g)||rf.isBuffer(g)){if(U){var V=P?_:U(_,e.encoder,L,"key",w);return[W(V)+"="+W(U(g,e.encoder,L,"value",w))]}return[W(_)+"="+W(String(g))]}var Q=[];if(typeof g>"u")return Q;var J;if(c==="comma"&&wT(g)){if(P&&U)g=rf.maybeMap(g,U);J=[{value:g.length>0?g.join(",")||null:void 0}]}else if(wT(z))J=z;else{var B=Object.keys(g);J=q?B.sort(q):B}var v=R?String(_).replace(/\./g,"%2E"):String(_),r=C&&wT(g)&&g.length===1?v+"[]":v;if(E&&wT(g)&&g.length===0)return r+"[]";for(var CT=0;CT<J.length;++CT){var _T=J[CT],BT=typeof _T==="object"&&_T&&typeof _T.value<"u"?_T.value:g[_T];if(u&&BT===null)continue;var jT=S&&R?String(_T).replace(/\./g,"%2E"):String(_T),Bf=wT(g)?typeof c==="function"?c(r,jT):r:r+(S?"."+jT:"["+jT+"]");i.set(T,$);var xf=cE();xf.set(I_,i),EE(Q,f(BT,Bf,c,C,E,A,u,R,c==="comma"&&P&&wT(g)?null:U,z,q,S,D,w,W,P,L,xf))}return Q},KR=function(T){if(!T)return e;if(typeof T.allowEmptyArrays<"u"&&typeof T.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.encodeDotInKeys<"u"&&typeof T.encodeDotInKeys!=="boolean")throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(T.encoder!==null&&typeof T.encoder<"u"&&typeof T.encoder!=="function")throw TypeError("Encoder has to be a function.");var _=T.charset||e.charset;if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var c=Nf.default;if(typeof T.format<"u"){if(!gR.call(Nf.formatters,T.format))throw TypeError("Unknown format option provided.");c=T.format}var C=Nf.formatters[c],E=e.filter;if(typeof T.filter==="function"||wT(T.filter))E=T.filter;var A;if(T.arrayFormat in CE)A=T.arrayFormat;else if("indices"in T)A=T.indices?"indices":"repeat";else A=e.arrayFormat;if("commaRoundTrip"in T&&typeof T.commaRoundTrip!=="boolean")throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof T.allowDots>"u"?T.encodeDotInKeys===!0?!0:e.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix==="boolean"?T.addQueryPrefix:e.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:e.allowEmptyArrays,arrayFormat:A,charset:_,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:e.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?e.delimiter:T.delimiter,encode:typeof T.encode==="boolean"?T.encode:e.encode,encodeDotInKeys:typeof T.encodeDotInKeys==="boolean"?T.encodeDotInKeys:e.encodeDotInKeys,encoder:typeof T.encoder==="function"?T.encoder:e.encoder,encodeValuesOnly:typeof T.encodeValuesOnly==="boolean"?T.encodeValuesOnly:e.encodeValuesOnly,filter:E,format:c,formatter:C,serializeDate:typeof T.serializeDate==="function"?T.serializeDate:e.serializeDate,skipNulls:typeof T.skipNulls==="boolean"?T.skipNulls:e.skipNulls,sort:typeof T.sort==="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:e.strictNullHandling}};AE.exports=function(f,T){var _=f,c=KR(T),C,E;if(typeof c.filter==="function")E=c.filter,_=E("",_);else if(wT(c.filter))E=c.filter,C=E;var A=[];if(typeof _!=="object"||_===null)return"";var u=CE[c.arrayFormat],R=u==="comma"&&c.commaRoundTrip;if(!C)C=Object.keys(_);if(c.sort)C.sort(c.sort);var U=cE();for(var z=0;z<C.length;++z){var q=C[z],S=_[q];if(c.skipNulls&&S===null)continue;EE(A,IR(S,q,u,R,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,U))}var D=A.join(c.delimiter),w=c.addQueryPrefix===!0?"?":"";if(c.charsetSentinel)if(c.charset==="iso-8859-1")w+="utf8=%26%2310003%3B&";else w+="utf8=%E2%9C%93&";return D.length>0?w+D:""}});var HE=G((gS,uE)=>{var IT=h_(),pf=Object.prototype.hasOwnProperty,RE=Array.isArray,d={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:IT.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},mR=function(f){return f.replace(/&#(\d+);/g,function(T,_){return String.fromCharCode(parseInt(_,10))})},SE=function(f,T,_){if(f&&typeof f==="string"&&T.comma&&f.indexOf(",")>-1)return f.split(",");if(T.throwOnLimitExceeded&&_>=T.arrayLimit)throw RangeError("Array limit exceeded. Only "+T.arrayLimit+" element"+(T.arrayLimit===1?"":"s")+" allowed in an array.");return f},PR="utf8=%26%2310003%3B",bR="utf8=%E2%9C%93",kR=function(T,_){var c={__proto__:null},C=_.ignoreQueryPrefix?T.replace(/^\?/,""):T;C=C.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var E=_.parameterLimit===1/0?void 0:_.parameterLimit,A=C.split(_.delimiter,_.throwOnLimitExceeded?E+1:E);if(_.throwOnLimitExceeded&&A.length>E)throw RangeError("Parameter limit exceeded. Only "+E+" parameter"+(E===1?"":"s")+" allowed.");var u=-1,R,U=_.charset;if(_.charsetSentinel){for(R=0;R<A.length;++R)if(A[R].indexOf("utf8=")===0){if(A[R]===bR)U="utf-8";else if(A[R]===PR)U="iso-8859-1";u=R,R=A.length}}for(R=0;R<A.length;++R){if(R===u)continue;var z=A[R],q=z.indexOf("]="),S=q===-1?z.indexOf("="):q+1,D,w;if(S===-1)D=_.decoder(z,d.decoder,U,"key"),w=_.strictNullHandling?null:"";else if(D=_.decoder(z.slice(0,S),d.decoder,U,"key"),D!==null)w=IT.maybeMap(SE(z.slice(S+1),_,RE(c[D])?c[D].length:0),function(P){return _.decoder(P,d.decoder,U,"value")});if(w&&_.interpretNumericEntities&&U==="iso-8859-1")w=mR(String(w));if(z.indexOf("[]=")>-1)w=RE(w)?[w]:w;if(D!==null){var W=pf.call(c,D);if(W&&_.duplicates==="combine")c[D]=IT.combine(c[D],w,_.arrayLimit,_.plainObjects);else if(!W||_.duplicates==="last")c[D]=w}}return c},sR=function(f,T,_,c){var C=0;if(f.length>0&&f[f.length-1]==="[]"){var E=f.slice(0,-1).join("");C=Array.isArray(T)&&T[E]?T[E].length:0}var A=c?T:SE(T,_,C);for(var u=f.length-1;u>=0;--u){var R,U=f[u];if(U==="[]"&&_.parseArrays)if(IT.isOverflow(A))R=A;else R=_.allowEmptyArrays&&(A===""||_.strictNullHandling&&A===null)?[]:IT.combine([],A,_.arrayLimit,_.plainObjects);else{R=_.plainObjects?{__proto__:null}:{};var z=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,q=_.decodeDotInKeys?z.replace(/%2E/g,"."):z,S=parseInt(q,10);if(!_.parseArrays&&q==="")R={0:A};else if(!isNaN(S)&&U!==q&&String(S)===q&&S>=0&&(_.parseArrays&&S<=_.arrayLimit))R=[],R[S]=A;else if(q!=="__proto__")R[q]=A}A=R}return A},vR=function(T,_){var c=_.allowDots?T.replace(/\.([^.[]+)/g,"[$1]"):T;if(_.depth<=0){if(!_.plainObjects&&pf.call(Object.prototype,c)){if(!_.allowPrototypes)return}return[c]}var C=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,A=C.exec(c),u=A?c.slice(0,A.index):c,R=[];if(u){if(!_.plainObjects&&pf.call(Object.prototype,u)){if(!_.allowPrototypes)return}R.push(u)}var U=0;while((A=E.exec(c))!==null&&U<_.depth){U+=1;var z=A[1].slice(1,-1);if(!_.plainObjects&&pf.call(Object.prototype,z)){if(!_.allowPrototypes)return}R.push(A[1])}if(A){if(_.strictDepth===!0)throw RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");R.push("["+c.slice(A.index)+"]")}return R},tR=function(T,_,c,C){if(!T)return;var E=vR(T,c);if(!E)return;return sR(E,_,c,C)},dR=function(T){if(!T)return d;if(typeof T.allowEmptyArrays<"u"&&typeof T.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.decodeDotInKeys<"u"&&typeof T.decodeDotInKeys!=="boolean")throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(T.decoder!==null&&typeof T.decoder<"u"&&typeof T.decoder!=="function")throw TypeError("Decoder has to be a function.");if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof T.throwOnLimitExceeded<"u"&&typeof T.throwOnLimitExceeded!=="boolean")throw TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof T.charset>"u"?d.charset:T.charset,c=typeof T.duplicates>"u"?d.duplicates:T.duplicates;if(c!=="combine"&&c!=="first"&&c!=="last")throw TypeError("The duplicates option must be either combine, first, or last");var C=typeof T.allowDots>"u"?T.decodeDotInKeys===!0?!0:d.allowDots:!!T.allowDots;return{allowDots:C,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:d.allowEmptyArrays,allowPrototypes:typeof T.allowPrototypes==="boolean"?T.allowPrototypes:d.allowPrototypes,allowSparse:typeof T.allowSparse==="boolean"?T.allowSparse:d.allowSparse,arrayLimit:typeof T.arrayLimit==="number"?T.arrayLimit:d.arrayLimit,charset:_,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:d.charsetSentinel,comma:typeof T.comma==="boolean"?T.comma:d.comma,decodeDotInKeys:typeof T.decodeDotInKeys==="boolean"?T.decodeDotInKeys:d.decodeDotInKeys,decoder:typeof T.decoder==="function"?T.decoder:d.decoder,delimiter:typeof T.delimiter==="string"||IT.isRegExp(T.delimiter)?T.delimiter:d.delimiter,depth:typeof T.depth==="number"||T.depth===!1?+T.depth:d.depth,duplicates:c,ignoreQueryPrefix:T.ignoreQueryPrefix===!0,interpretNumericEntities:typeof T.interpretNumericEntities==="boolean"?T.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof T.parameterLimit==="number"?T.parameterLimit:d.parameterLimit,parseArrays:T.parseArrays!==!1,plainObjects:typeof T.plainObjects==="boolean"?T.plainObjects:d.plainObjects,strictDepth:typeof T.strictDepth==="boolean"?!!T.strictDepth:d.strictDepth,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:d.strictNullHandling,throwOnLimitExceeded:typeof T.throwOnLimitExceeded==="boolean"?T.throwOnLimitExceeded:!1}};uE.exports=function(f,T){var _=dR(T);if(f===""||f===null||typeof f>"u")return _.plainObjects?{__proto__:null}:{};var c=typeof f==="string"?kR(f,_):f,C=_.plainObjects?{__proto__:null}:{},E=Object.keys(c);for(var A=0;A<E.length;++A){var u=E[A],R=tR(u,c[u],_,typeof f==="string");C=IT.merge(C,R,_)}if(_.allowSparse===!0)return C;return IT.compact(C)}});var zE=G((OS,LE)=>{var jR=xE(),lR=HE(),yR=jf();LE.exports={formats:yR,parse:lR,stringify:jR}});var v1=Vf(Gf(),1);var p_={};i_(p_,{zodSchemaKey:()=>kE,webSocketServerArgsKey:()=>TT,webSocketMessageArgsKey:()=>PT,webSocketKey:()=>LT,webSocketEventKey:()=>mT,webSocketEventArgumentsKey:()=>fT,webSocketConnectionArgsKey:()=>zT,webSocketCloseReasonArgsKey:()=>uf,webSocketCloseCodeArgsKey:()=>Sf,routeModelArgsKey:()=>RT,responseStatusTextArgsKey:()=>eT,responseStatusArgsKey:()=>bT,responseHeadersArgsKey:()=>xT,responseBodyArgsKey:()=>oT,requestHeadersArgsKey:()=>VT,requestHeaderArgsKey:()=>qT,requestBodyArgsKey:()=>GT,requestArgsKey:()=>UT,queryArgsKey:()=>Lf,paramsArgsKey:()=>Hf,paramArgsKey:()=>gT,moduleKey:()=>AT,middlewareKey:()=>DT,interceptorKey:()=>QT,injectableKey:()=>NT,injectKey:()=>pT,httpServerArgsKey:()=>FT,guardKey:()=>MT,controllerKey:()=>uT,controllerHttpKey:()=>rT,contextArgsKey:()=>OT,containerKey:()=>HT,configKey:()=>gf,argumentsKey:()=>I});var I=Symbol.for("____boolTypescriptCore:arguments__"),fT=Symbol.for("____boolTypescriptCore:webSocketEventArguments__"),gf=Symbol.for("____boolTypescriptCore:config__"),uT=Symbol.for("____boolTypescriptCore:controller__"),QT=Symbol.for("____boolTypescriptCore:interceptor__"),MT=Symbol.for("____boolTypescriptCore:guard__"),rT=Symbol.for("____boolTypescriptCore:controller.http__"),pT=Symbol.for("____boolTypescriptCore:inject__"),NT=Symbol.for("____boolTypescriptCore:injectable__"),DT=Symbol.for("____boolTypescriptCore:middleware__"),AT=Symbol.for("____boolTypescriptCore:module__"),HT=Symbol.for("____boolTypescriptCore:container__"),kE=Symbol.for("____boolTypescriptCore:zodSchema__"),LT=Symbol.for("____boolTypescriptCore:webSocket__"),mT=Symbol.for("____boolTypescriptCore:webSocket:event__"),TT=Symbol.for("____boolTypescriptCore:webSocketArguments:server__"),zT=Symbol.for("____boolTypescriptCore:webSocketArguments:connection__"),PT=Symbol.for("____boolTypescriptCore:webSocketArguments:message__"),Sf=Symbol.for("____boolTypescriptCore:webSocketArguments:closeCode__"),uf=Symbol.for("____boolTypescriptCore:webSocketArguments:closeReason__"),FT=Symbol.for("____boolTypescriptCore:httpArguments:server__"),VT=Symbol.for("____boolTypescriptCore:httpArguments:requestHeaders__"),qT=Symbol.for("____boolTypescriptCore:httpArguments:requestHeader__"),GT=Symbol.for("____boolTypescriptCore:httpArguments:requestBody__"),Hf=Symbol.for("____boolTypescriptCore:httpArguments:params__"),gT=Symbol.for("____boolTypescriptCore:httpArguments:param__"),Lf=Symbol.for("____boolTypescriptCore:httpArguments:query__"),UT=Symbol.for("____boolTypescriptCore:httpArguments:request__"),xT=Symbol.for("____boolTypescriptCore:httpArguments:responseHeaders__"),OT=Symbol.for("____boolTypescriptCore:httpArguments:context__"),RT=Symbol.for("____boolTypescriptCore:httpArguments:routeModel__"),oT=Symbol.for("____boolTypescriptCore:httpArguments:responseBody__"),bT=Symbol.for("____boolTypescriptCore:httpArguments:responseStatus__"),eT=Symbol.for("____boolTypescriptCore:httpArguments:responseStatusText__");var p={};i_(p,{successfulStatuses:()=>e_,serverErrorStatuses:()=>fc,redirectionStatuses:()=>a_,informationalStatuses:()=>o_,httpStatuses:()=>sE,clientErrorStatuses:()=>Tc});var o_=Object.freeze({CONTINUE:Object.freeze({status:100,statusText:"Continue"}),SWITCHING_PROTOCOLS:Object.freeze({status:101,statusText:"Switching Protocols"}),EARLY_HINTS:Object.freeze({status:103,statusText:"Early Hints"})}),e_=Object.freeze({OK:Object.freeze({status:200,statusText:"OK"}),CREATED:Object.freeze({status:201,statusText:"Created"}),ACCEPTED:Object.freeze({status:202,statusText:"Accepted"}),NON_AUTHORITATIVE_INFORMATION:Object.freeze({status:203,statusText:"Non-Authoritative Information"}),NO_CONTENT:Object.freeze({status:204,statusText:"No Content"}),RESET_CONTENT:Object.freeze({status:205,statusText:"Reset Content"}),PARTIAL_CONTENT:Object.freeze({status:206,statusText:"Partial Content"}),MULTI_STATUS:Object.freeze({status:207,statusText:"Multi-Status"}),ALREADY_REPORTED:Object.freeze({status:208,statusText:"Already Reported"}),IM_USED:Object.freeze({status:226,statusText:"IM Used"})}),a_=Object.freeze({MULTIPLE_CHOICES:Object.freeze({status:300,statusText:"Multiple Choices"}),MOVED_PERMANENTLY:Object.freeze({status:301,statusText:"Moved Permanently"}),FOUND:Object.freeze({status:302,statusText:"Found"}),SEE_OTHER:Object.freeze({status:303,statusText:"See Other"}),NOT_MODIFIED:Object.freeze({status:304,statusText:"Not Modified"}),UNUSED:Object.freeze({status:306,statusText:"Unused"}),TEMPORARY_REDIRECT:Object.freeze({status:307,statusText:"Temporary Redirect"}),PERMANENT_REDIRECT:Object.freeze({status:308,statusText:"Permanent Redirect"})}),Tc=Object.freeze({BAD_REQUEST:Object.freeze({status:400,statusText:"Bad Request"}),UNAUTHORIZED:Object.freeze({status:401,statusText:"Unauthorized"}),PAYMENT_REQUIRED:Object.freeze({status:402,statusText:"Payment Required"}),FORBIDDEN:Object.freeze({status:403,statusText:"Forbidden"}),NOT_FOUND:Object.freeze({status:404,statusText:"Not Found"}),METHOD_NOT_ALLOWED:Object.freeze({status:405,statusText:"Method Not Allowed"}),NOT_ACCEPTABLE:Object.freeze({status:406,statusText:"Not Acceptable"}),PROXY_AUTHENTICATION_REQUIRED:Object.freeze({status:407,statusText:"Proxy Authentication Required"}),REQUEST_TIMEOUT:Object.freeze({status:408,statusText:"Request Timeout"}),CONFLICT:Object.freeze({status:409,statusText:"Conflict"}),GONE:Object.freeze({status:410,statusText:"Gone"}),LENGTH_REQUIRED:Object.freeze({status:411,statusText:"Length Required"}),PRECONDITION_FAILED:Object.freeze({status:412,statusText:"Precondition Failed"}),CONTENT_TOO_LARGE:Object.freeze({status:413,statusText:"Content Too Large"}),URI_TOO_LONG:Object.freeze({status:414,statusText:"URI Too Long"}),UNSUPPORTED_MEDIA_TYPE:Object.freeze({status:415,statusText:"Unsupported Media Type"}),RANGE_NOT_SATISFIABLE:Object.freeze({status:416,statusText:"Range Not Satisfiable"}),EXPECTATION_FAILED:Object.freeze({status:417,statusText:"Expectation Failed"}),I_AM_A_TEAPOT:Object.freeze({status:418,statusText:"I'm a teapot"}),MISDIRECTED_REQUEST:Object.freeze({status:421,statusText:"Misdirected Request"}),UNPROCESSABLE_CONTENT:Object.freeze({status:422,statusText:"Unprocessable Content"}),LOCKED:Object.freeze({status:423,statusText:"Locked"}),FAILED_DEPENDENCY:Object.freeze({status:424,statusText:"Failed Dependency"}),TOO_EARLY:Object.freeze({status:425,statusText:"Too Early"}),UPGRADE_REQUIRED:Object.freeze({status:426,statusText:"Upgrade Required"}),PRECONDITION_REQUIRED:Object.freeze({status:428,statusText:"Precondition Required"}),TOO_MANY_REQUESTS:Object.freeze({status:429,statusText:"Too Many Requests"}),REQUEST_HEADER_FIELDS_TOO_LARGE:Object.freeze({status:431,statusText:"Request Header Fields Too Large"}),UNAVAILABLE_FOR_LEGAL_REASONS:Object.freeze({status:451,statusText:"Unavailable For Legal Reasons"})}),fc=Object.freeze({INTERNAL_SERVER_ERROR:Object.freeze({status:500,statusText:"Internal Server Error"}),NOT_IMPLEMENTED:Object.freeze({status:501,statusText:"Not Implemented"}),BAD_GATEWAY:Object.freeze({status:502,statusText:"Bad Gateway"}),SERVICE_UNAVAILABLE:Object.freeze({status:503,statusText:"Service Unavailable"}),GATEWAY_TIMEOUT:Object.freeze({status:504,statusText:"Gateway Timeout"}),HTTP_VERSION_NOT_SUPPORTED:Object.freeze({status:505,statusText:"HTTP Version Not Supported"}),VARIANT_ALSO_NEGOTIATES:Object.freeze({status:506,statusText:"Variant Also Negotiates"}),INSUFFICIENT_STORAGE:Object.freeze({status:507,statusText:"Insufficient Storage"}),LOOP_DETECTED:Object.freeze({status:508,statusText:"Loop Detected"}),NOT_EXTENDED:Object.freeze({status:510,statusText:"Not Extended"}),NETWORK_AUTHENTICATION_REQUIRED:Object.freeze({status:511,statusText:"Network Authentication Required"})}),sE=Object.freeze({...o_,...e_,...a_,...Tc,...fc});var vE=(f)=>(T,_,c)=>{if(!_)return;let C=Reflect.getOwnMetadata(I,T.constructor,_)||{};C[`argumentIndexes.${c}`]={index:c,type:VT,validationSchema:f},Reflect.defineMetadata(I,C,T.constructor,_)},tE=(f,T)=>(_,c,C)=>{if(!c)return;let E=Reflect.getOwnMetadata(I,_.constructor,c)||{};E[`argumentIndexes.${C}`]={index:C,type:qT,key:f,validationSchema:T},Reflect.defineMetadata(I,E,_.constructor,c)},dE=(f,T)=>(_,c,C)=>{if(!c)return;let E=Reflect.getOwnMetadata(I,_.constructor,c)||{};E[`argumentIndexes.${C}`]={index:C,type:GT,validationSchema:f,parser:T},Reflect.defineMetadata(I,E,_.constructor,c)},jE=(f)=>(T,_,c)=>{if(!_)return;let C=Reflect.getOwnMetadata(I,T.constructor,_)||{};C[`argumentIndexes.${c}`]={index:c,type:Hf,validationSchema:f},Reflect.defineMetadata(I,C,T.constructor,_)},lE=(f,T)=>(_,c,C)=>{if(!c)return;let E=Reflect.getOwnMetadata(I,_.constructor,c)||{};E[`argumentIndexes.${C}`]={index:C,type:gT,key:f,validationSchema:T},Reflect.defineMetadata(I,E,_.constructor,c)},yE=(f)=>(T,_,c)=>{if(!_)return;let C=Reflect.getOwnMetadata(I,T.constructor,_)||{};C[`argumentIndexes.${c}`]={index:c,type:Lf,validationSchema:f},Reflect.defineMetadata(I,C,T.constructor,_)},iE=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(I,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:UT},Reflect.defineMetadata(I,c,f.constructor,T)},rE=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(I,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:xT},Reflect.defineMetadata(I,c,f.constructor,T)},pE=(f)=>(T,_,c)=>{if(!_)return;let C=Reflect.getOwnMetadata(I,T.constructor,_)||{};C[`argumentIndexes.${c}`]={index:c,type:OT,key:f},Reflect.defineMetadata(I,C,T.constructor,_)},oE=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(I,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:RT},Reflect.defineMetadata(I,c,f.constructor,T)},eE=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(I,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:FT},Reflect.defineMetadata(I,c,f.constructor,T)};var aE=(f)=>(T)=>{let{modules:_,middlewares:c,guards:C,interceptors:E,dependencies:A}=f||{};if(Reflect.hasOwnMetadata(AT,T))throw Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);if(_){let u=[];for(let R of _){if(!Reflect.getOwnMetadataKeys(R).includes(AT))throw Error(`[${R.name}] is not a module.`);let U=Reflect.getOwnMetadata(AT,R);if(u.includes(U?.prefix||""))throw Error(`Duplicated prefix of module [${R.name}].`)}}if(c){for(let u of c)if(!Reflect.getOwnMetadataKeys(u).includes(DT))throw Error(`[${u.name}] is not a middleware.`)}if(C){for(let u of C)if(!Reflect.getOwnMetadataKeys(u).includes(MT))throw Error(`[${u.name}] is not a guard.`)}if(E){for(let u of E)if(!Reflect.getOwnMetadataKeys(u).includes(QT))throw Error(`${u.name} is not a middleware.`)}if(A){for(let u of A)if(!Reflect.getOwnMetadataKeys(u).includes(NT))throw Error(`${u.name} is not an injectable.`)}Reflect.defineMetadata(HT,f,T)};var TA=(f)=>(T)=>{let _={prefix:!f?.startsWith("/")?`/${f||""}`:f,httpMetadata:[...Reflect.getOwnMetadata(rT,T)||[]]};Reflect.defineMetadata(uT,_,T)};var fA=()=>(f)=>{if(!("enforce"in f.prototype)||typeof f.prototype.enforce!=="function")return;let T=void 0;return Reflect.defineMetadata(MT,T,f),f};var aT=(f,T)=>(_,c,C)=>{if(!(C?.value instanceof Function))throw Error(`${T} decorator only use for class method.`);let E=Reflect.getOwnMetadata(I,_.constructor,c)||{},A=[...Reflect.getOwnMetadata(rT,_.constructor)||[],{path:!f.startsWith("/")?`/${f}`:f,httpMethod:T.toUpperCase(),methodName:c,descriptor:C,argumentsMetadata:E}];Reflect.defineMetadata(rT,A,_.constructor)},_A=(f="/")=>aT(f,"Get"),cA=(f="/")=>aT(f,"Post"),CA=(f="/")=>aT(f,"Put"),EA=(f="/")=>aT(f,"Patch"),AA=(f="/")=>aT(f,"Delete"),xA=(f="/")=>aT(f,"Options");var RA=(f)=>(T,_,c)=>{let C=Reflect.getMetadata(pT,T)||[];C[c]=f,Reflect.defineMetadata(pT,C,T)};var SA=()=>(f)=>Reflect.defineMetadata(NT,void 0,f);var uA=()=>(f)=>{Reflect.defineMetadata(QT,void 0,f)};var HA=()=>(f)=>{Reflect.defineMetadata(DT,void 0,f)};var LA=(f)=>(T)=>{if(Reflect.hasOwnMetadata(HT,T))throw Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);let{middlewares:_,guards:c,interceptors:C,controllers:E,dependencies:A,webSockets:u}=f||{};if(_){for(let R=0;R<_.length;R++)if(!Reflect.getOwnMetadataKeys(_[R]).includes(DT))throw Error(`${_[R].name} is not a middleware.`)}if(c){for(let R=0;R<c.length;R++)if(!Reflect.getOwnMetadataKeys(c[R]).includes(MT))throw Error(`${c[R].name} is not a guard.`)}if(C){for(let R=0;R<C.length;R++)if(!Reflect.getOwnMetadataKeys(C[R]).includes(QT))throw Error(`${C[R].name} is not a interceptor.`)}if(E){for(let R=0;R<E.length;R++)if(!Reflect.getOwnMetadataKeys(E[R]).includes(uT))throw Error(`${E[R].name} is not a controller.`)}if(A){for(let R=0;R<A.length;R++)if(!Reflect.getOwnMetadataKeys(A[R]).includes(NT))throw Error(`${A[R].name} is not an injectable.`)}if(u){for(let R=0;R<u.length;R++)if(!Reflect.getOwnMetadataKeys(u[R]).includes(LT))throw Error(`${u[R].name} is not a websocket gateway.`)}Reflect.defineMetadata(AT,f,T)};var Of=Symbol("__bool:webSocket.upgrade__"),zA=(f,T,_)=>{let c=new URL(T.url);return f.upgrade(T,{data:{method:T.method.toUpperCase(),pathname:c.pathname,query:_}})},FA=(f)=>(T)=>{let{prefix:_}=f||{};T.prototype[Of]=zA;let c=Object.getOwnPropertyDescriptor(T.prototype,Of),C=!c?[]:[{path:"/",httpMethod:"GET",methodName:Of,descriptor:c,argumentsMetadata:{}},{path:"/",httpMethod:"POST",methodName:Of,descriptor:c,argumentsMetadata:{}}],E={prefix:!_?.startsWith("/")?`/${_||""}`:_,events:Reflect.getOwnMetadata(mT,T)||{},http:C};Reflect.defineMetadata(LT,E,T)};var qA=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(fT,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:zT},Reflect.defineMetadata(fT,c,f.constructor,T)},UA=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(fT,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:TT},Reflect.defineMetadata(fT,c,f.constructor,T)},nA=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(fT,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:Sf},Reflect.defineMetadata(fT,c,f.constructor,T)},WA=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(fT,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:uf},Reflect.defineMetadata(fT,c,f.constructor,T)},wA=()=>(f,T,_)=>{if(!T)return;let c=Reflect.getOwnMetadata(fT,f.constructor,T)||{};c[`argumentIndexes.${_}`]={index:_,type:PT},Reflect.defineMetadata(fT,c,f.constructor,T)};var YA=(f)=>(T,_,c)=>{if(!(c.value instanceof Function))throw Error("WebSocketEvent decorator only use for class's method.");let C=Reflect.getOwnMetadata(fT,T.constructor,_),E=Object.freeze({methodName:_,descriptor:c,arguments:C}),A={...Reflect.getOwnMetadata(mT,T.constructor)||void 0,[f]:E};Reflect.defineMetadata(mT,E,T.constructor,_),Reflect.defineMetadata(mT,A,T.constructor)};var cT;(function(f){f.year="year",f.month="month",f.day="day",f.hours="hours",f.minutes="minutes",f.seconds="seconds",f.miliseconds="miliseconds"})(cT||(cT={}));var _c=(f,T,_=cT.day)=>{let c=f instanceof Date?f:new Date(f);switch(_){case cT.year:c.setFullYear(c.getFullYear()+T);break;case cT.month:c.setMonth(c.getMonth()+T);break;case cT.day:c.setDate(c.getDate()+T);break;case cT.hours:c.setHours(c.getHours()+T);break;case cT.minutes:c.setMinutes(c.getMinutes()+T);break;case cT.seconds:c.setSeconds(c.getSeconds()+T);break;case cT.miliseconds:c.setMilliseconds(c.getMilliseconds()+T);break}return c};var YE=Vf(zE(),1);var{serve:iR}=globalThis.Bun;var $S=async function(){}.constructor;var FE=Object.freeze({black:"38;5;16",red:"38;5;196",green:"38;5;46",yellow:"38;5;226",blue:"38;5;21",magenta:"38;5;201",cyan:"38;5;51",white:"38;5;231",gray:"38;5;244"}),qE=Object.freeze({black:"48;5;16",red:"48;5;196",green:"48;5;46",yellow:"48;5;226",blue:"48;5;21",magenta:"48;5;201",cyan:"48;5;51",white:"48;5;231",gray:"48;5;244"}),YT=(f,T={})=>{let{color:_,backgroundColor:c,bold:C,underline:E}=T,A=[];if(C)A.push("1");if(E)A.push("4");if(_&&FE[_])A.push(FE[_]);if(c&&qE[c])A.push(qE[c]);if(A.length===0)return f;return`\x1B[${A.join(";")}m${f}\x1B[0m`};var dT=(f)=>{for(let[T,_]of Object.entries(p.httpStatuses)){if(_.status!==f)continue;return _.statusText}return"Unknown error"};var UE=(f)=>{let{headers:T,method:_}=f,c=T.get("upgrade")?.toLowerCase()||"",C=T.get("connection")?.toLowerCase()||"";return _==="GET"&&c?.toLowerCase()==="websocket"&&C?.toLowerCase().includes("upgrade")};class Af extends Error{httpCode;message;data;constructor({httpCode:f,data:T,message:_}){super();this.httpCode=f,this.message=!_?.trim()?dT(f):_.trim(),this.data=T}}class Df extends Error{httpCode;message;data;constructor({httpCode:f,data:T,message:_}){super();this.httpCode=f,this.message=!_?.trim()?dT(f):_.trim(),this.data=T}}var K_=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],nE=(f)=>!!K_.find((T)=>T===f),WE=(f,T=new Headers)=>{if(T.set("Content-Type","application/json"),f instanceof Af||f instanceof Df)return new Response(JSON.stringify(f),{status:f.httpCode,statusText:f.message,headers:T});return new Response(JSON.stringify((()=>{switch(typeof f){case"object":return!(f instanceof Error)?f:{message:f.message,code:f.name,cause:f.cause};case"string":return{message:f};case"number":return{code:f};default:return}})()),{status:500,statusText:"INTERNAL SERVER ERROR",headers:T})};class of{_staticMap=new Map;_dynamicMap=new Map;_options=void 0;constructor(...f){f.forEach((T)=>{T.staticEntries.forEach(([_,c])=>this.set(_,c,{isStatic:!0,isPassthrough:!0})),T.dynamicEntries.forEach(([_,c])=>this.set(_,c,{isStatic:!1}))})}get(f,T){return!{...this._options,...T}?.isStatic?this._dynamicMap.get(f):this._staticMap.get(f)}has(f,T){return!{...this._options,...T}?.isStatic?this._dynamicMap.has(f):this._staticMap.has(f)}set(f,T,_){let c={...this._options,..._};if(!c?.isStatic)this._dynamicMap.set(f,T);else if(!this._staticMap.has(f))this._staticMap.set(f,T);else if(!c.isPassthrough)throw Error(`${String(f)} already exists in context static collection.`);return this}setOptions(f){return this._options=f,this}get staticEntries(){return[...this._staticMap.entries()]}get dynamicEntries(){return[...this._dynamicMap.entries()]}}class m_{alias;#T=new Map;#c;constructor({alias:f}){let T=this._thinAlias(f);this.alias=T,this.#c=new URLPattern({pathname:T,baseURL:"https://www.booljs.com"})}test({pathname:f}){try{return this.#c.test({pathname:this._thinAlias(f),baseURL:"https://www.booljs.com"})}catch(T){return console.error(T),!1}}exec({pathname:f,method:T}){try{let _=this.#T.get(T);if(!_)return null;let c=this.#c.exec({pathname:this._thinAlias(f),baseURL:"https://www.booljs.com"});if(!c)return null;let C=c.pathname.groups;return Object.freeze({parameters:C,model:_})}catch(_){return console.error(_),null}}get({model:f}){if(!this.#T.get("GET"))this.#T.set("GET",f);return this}post({model:f}){if(!this.#T.get("POST"))this.#T.set("POST",f);return this}put({model:f}){if(!this.#T.get("PUT"))this.#T.set("PUT",f);return this}delete({model:f}){if(!this.#T.get("DELETE"))this.#T.set("DELETE",f);return this}connect({model:f}){if(!this.#T.get("CONNECT"))return this.#T.set("CONNECT",f);return this}options({model:f}){if(!this.#T.get("OPTIONS"))return this.#T.set("OPTIONS",f);return this}trace({model:f}){if(!this.#T.get("TRACE"))return this.#T.set("TRACE",f);return this}patch({model:f}){if(!this.#T.get("PATCH"))return this.#T.set("PATCH",f);return this}_thinAlias(f){return f.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get _fullPath(){return this.alias.split("/").map((_,c)=>{let C=new RegExp(":([a-z0-9A-Z_.-]{1,})(\\(.*?\\))","g");if(!C.test(_)){if(C=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!C.test(_))return _;return _.replace(C,(E,A)=>`${E}(.*?)`)}return _}).join("/")}get _filteredPath(){return this.alias.split("/").map((_,c)=>{let C=new RegExp(":([a-z0-9A-Z_.-]{1,})((.*?))","g");if(!C.test(_)){if(C=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!C.test(_))return _;return _.replace(C,(E,A)=>"(.*?)")}return _.replace(C,(E,A,u)=>u)}).join("/")}}var wE=m_;class Xf{alias;#T=new Map;#c;#A;#C;constructor({alias:f,guardHandlers:T=[],openInterceptorHandlers:_=[],closeInterceptorHandlers:c=[]}){this.alias=this._thinAlias(f),this.#c=T,this.#A=_,this.#C=c}route({alias:f}){let T=this._thinAlias(`${this.alias}/${f}`),_=this.#T.get(T),c=!_?new wE({alias:`${this.alias}/${f}`}):_;if(!_)this.#T.set(T,c);return c}_thinAlias(f){return f.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get routes(){return this.#T}get pipes(){return Object.freeze({guardHandlers:[...this.#c],openInterceptorHandlers:[...this.#A],closeInterceptorHandlers:[...this.#C]})}}class JT{#T=new Map;add(...f){for(let T of f){if(this.#T.has(T.alias))continue;this.#T.set(T.alias,T)}return this}find({pathname:f,method:T}){for(let _ of this.#T.values())for(let c of _.routes.values()){if(!c.test({pathname:f}))continue;let E=c.exec({pathname:f,method:T});if(!E)continue;return Object.freeze({...E,..._.pipes})}return null}}var E1=Vf(Gf(),1);class ZT{_mapper=new Map;constructor(...f){f.forEach((T)=>{T.entries.forEach(([_,c])=>{this._mapper.set(_,c)})})}get(f){if(this._mapper.has(f))return this._mapper.get(f);if(typeof f!=="function")return;let T=Reflect.getMetadataKeys(f);if(![NT,uT,DT,MT,QT,LT].some((E)=>T.includes(E)))throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");let c=(Reflect.getOwnMetadata(pT,f)||[]).map((E)=>this.get(E)),C=new f(...c);return this._mapper.set(f,C),C}set(f,T){if(this._mapper.has(f))throw Error(`${String(f)} already exists in injector collection.`);this._mapper.set(f,T)}get entries(){return[...this._mapper.entries()]}}class ef{error;constructor(f){this.error=f}}class af{eventName;metadata;_context=void 0;constructor({eventName:f,metadata:T}){this.eventName=f,this.metadata=T}bind(f){return this._context=f,this}execute(){if(this._context&&typeof this.metadata.descriptor.value==="function")this.metadata.descriptor.value=this.metadata.descriptor.value.bind(this._context);return Object.freeze({methodName:this.metadata.methodName,descriptor:this.metadata.descriptor,arguments:this.metadata.arguments})}}class Jf{rawAlias;alias;routes=[];constructor(f="/"){this.rawAlias=f;this.alias=Jf.thinAlias(f)}addRoutes(...f){for(let T of f)if(!this.routes.includes(T))this.routes.push(T);return this}bind(f){for(let T of this.routes)T.bind(f);return this}execute(){let f=new Map;for(let T of this.routes)f.set(`${this.alias}:::${T.eventName}`,T.execute());return f}static thinAlias(f){return f.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class KT{rawPrefix;prefix;routers=[];constructor(f="/"){this.rawPrefix=f;this.prefix=KT.thinPrefix(f)}addRouters(...f){for(let T=0;T<f.length;T++)if(!this.routers.includes(f[T]))this.routers.push(f[T]);for(let T of f)if(!this.routers.includes(T))this.routers.push(T);return this}execute(){let f=new Map;for(let T of this.routers){let _=T.execute();for(let[c,C]of _.entries())f.set(`/${KT.thinPrefix(`${this.prefix}/${c}`)}`,C)}return f}static thinPrefix(f){return f.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class Zf{classConstructor;options;#T;#c;#A=new Map;#C;#R=900;#x;#E=new of;constructor(f,T){this.classConstructor=f;this.options=T;let _=Reflect.getOwnMetadataKeys(f);if(!_.includes(HT)&&!_.includes(AT))throw Error(`Can not detect! ${f.name} class is not a container or module.`);this.#c=!_.includes(HT)?"MODULE":"CONTAINER",this.#R=typeof T.static?.cacheTimeInSeconds!=="number"?900:T.static.cacheTimeInSeconds,this.#C=Object.freeze({allowLogsMethods:this.options?.log?.methods||[],staticOption:this.options.static,allowOrigins:!this.options.cors?.origins?["*"]:typeof this.options.cors.origins!=="string"?this.options.cors.origins.includes("*")||this.options.cors.origins.length<1?["*"]:this.options.cors.origins:[this.options.cors.origins!=="*"?this.options.cors.origins:"*"],allowMethods:this.options.cors?.methods||K_,allowCredentials:!this.options.cors?.credentials?!1:!0,allowHeaders:!this.options.cors?.headers||this.options.cors.headers.includes("*")?["*"]:this.options.cors.headers,pipelineStrategy:(()=>{switch(T.pipelineStrategy?.type){case"SIMPLE":return Object.freeze({startMiddlewares:"FIFO",endMiddlewares:T.pipelineStrategy.targets?.middlewares||"FIFO",openInterceptors:"FIFO",closeInterceptors:T.pipelineStrategy.targets?.interceptors||"FIFO"});default:return Object.freeze({startMiddlewares:"FIFO",endMiddlewares:"FIFO",openInterceptors:"FIFO",closeInterceptors:"FIFO"})}})()})}static async create(f,T){let _=new Zf(f,T);return await _.preLaunch(),_}useValidator(f){this.#x=f}async preLaunch(){if(this.#T)return this.#T;let{startMiddlewareHandlers:f,endMiddlewareHandlers:T,controllerRouterGroup:_,webSocketHttpRouterGroup:c,webSocketRouterGroup:C}=this.#c!=="MODULE"?await this.#q({containerClass:this.classConstructor,prefix:this.options.prefix,options:this.options}):await this.#S({moduleClass:this.classConstructor,prefix:this.options.prefix,options:this.options}),E=new Map,A=C.execute();for(let[u,R]of A.entries())E.set(u,R);return this.#T=Object.freeze({startMiddlewareHandlers:f,endMiddlewareHandlers:T,controllerRouterGroup:_,webSocketHttpRouterGroup:c,webSocketRouterGroup:C,webSocketsMap:E}),this.#T}async listen(){let f=iR({port:this.options.port,idleTimeout:typeof this.options.idleTimeoutInSeconds!=="number"||this.options.idleTimeoutInSeconds<=0?void 0:this.options.idleTimeoutInSeconds,fetch:this.#u.bind(this),websocket:await this.#H.bind(this)()});this.#E.set(TT,f)}async#u(f,T){let{allowLogsMethods:_,allowOrigins:c,allowMethods:C,allowHeaders:E,allowCredentials:A,staticOption:u}=this.#C,{startMiddlewareHandlers:R,endMiddlewareHandlers:U,controllerRouterGroup:z,webSocketHttpRouterGroup:q}=await this.preLaunch(),S=performance.now(),D=new URL(f.url),w=YE.parse(D.searchParams.toString(),this.options.queryParser),W=f.headers.get("origin")||"*",P=f.method.toUpperCase(),L=new Headers,i=new of().setOptions({isStatic:!0}).set(FT,T).set(UT,f).set(qT,f.headers).set(xT,L).set(Lf,w);try{if([...!A?[]:[{key:"Access-Control-Allow-Credentials",value:"true"}],{key:"Access-Control-Allow-Origin",value:c.includes("*")?"*":!c.includes(W)?c[0]:W},{key:"Access-Control-Allow-Methods",value:C.join(", ")},{key:"Access-Control-Allow-Headers",value:E.join(", ")}].forEach(({key:$,value:b})=>L.set($,b)),!nE(P)||!C.includes(P))return this.finalizeResponse(new Response(void 0,{...p.clientErrorStatuses.METHOD_NOT_ALLOWED,headers:L}));if(UE(f))return await this.#L({request:f,server:T,context:i,url:D,query:w,method:P,responseHeaders:L,httpRouterGroup:q,startMiddlewareHandlers:R,endMiddlewareHandlers:U});if(f.method.toUpperCase()==="OPTIONS")return this.finalizeResponse(c.includes("*")||c.includes(W)?new Response(void 0,{...p.successfulStatuses.NO_CONTENT,headers:L}):new Response(void 0,{...p.clientErrorStatuses.EXPECTATION_FAILED,headers:L}));if(u){let $=await this.#z({url:D,responseHeaders:L,path:u.path,headers:u.headers,cacheTimeInSeconds:u.cacheTimeInSeconds});if($ instanceof Response)return $}return await this.#F({url:D,method:P,context:i,httpRouterGroup:z,startMiddlewareHandlers:R,endMiddlewareHandlers:U})}catch(g){return this.options.debug&&console.error(g),this.finalizeResponse(WE(g,L))}finally{if(_){let g=performance.now(),t=i.get(bT,{isStatic:!1}),$=typeof t!=="number"||!t?0:t,b=YT(D.pathname,{color:"blue"}),k=`${Bun.color("yellow","ansi")}${process.pid}`,V=YT(` ${f.method} `,{color:"yellow",backgroundColor:"blue"}),Q=YT(`${f.headers.get("x-forwarded-for")||f.headers.get("x-real-ip")||T.requestIP(f)?.address||"<Unknown>"}`,{color:"yellow"}),J=YT(` ${Math.round((g-S+Number.EPSILON)*100)/100}ms `,{color:"yellow",backgroundColor:"blue"}),B=YT(` ${$} (${dT($)}) `,(()=>{if($>=100&&$<200)return{color:"white",backgroundColor:"cyan"};else if($>=200&&$<300)return{color:"white",backgroundColor:"blue"};else if($>=300&&$<400)return{color:"black",backgroundColor:"magenta"};else if($>=400&&$<500)return{color:"black",backgroundColor:"yellow"};else if($>=500&&$<600)return{color:"white",backgroundColor:"red"};else return{color:"black",backgroundColor:"gray"}})());_.includes(f.method.toUpperCase())&&console.info([`PID: ${k}`,`Method: ${V}`,`IP: ${Q}`,b,`Time: ${J}`,typeof t!=="number"||!t?void 0:B].filter((v)=>!!v?.trim()).join(" - "))}}}async#H(){let{webSocketsMap:f}=await this.preLaunch();return{open:(T)=>{let _=`${T.data.pathname}:::open`,c=f.get(_);if(!c)return;let C=c.arguments||{},E=[];for(let[,A]of Object.entries(C))switch(A.type){case zT:E[A.index]=T;break;case TT:E[A.index]=this.#E.get(TT);break}c.descriptor.value(...E)},close:(T,_,c)=>{let C=`${T.data.pathname}:::close`,E=f.get(C);if(!E)return;let A=E.arguments||{},u=[];for(let[,R]of Object.entries(A))switch(R.type){case zT:u[R.index]=T;break;case Sf:u[R.index]=_;break;case uf:u[R.index]=c;break;case TT:u[R.index]=this.#E.get(TT);break}E.descriptor.value(...u)},message:(T,_)=>{let c=`${T.data.pathname}:::message`,C=f.get(c);if(!C)return;let E=C.arguments||{},A=[];for(let[,u]of Object.entries(E))switch(u.type){case zT:A[u.index]=T;break;case PT:A[u.index]=_;break;case TT:A[u.index]=this.#E.get(TT);break}C.descriptor.value(...A)},drain:(T)=>{let _=`${T.data.pathname}:::drain`,c=f.get(_);if(!c)return;let C=c.arguments||{},E=[];for(let[,A]of Object.entries(C))switch(A.type){case zT:E[A.index]=T;break;case TT:E[A.index]=this.#E.get(TT);break}c.descriptor.value(...E)},ping:(T,_)=>{let c=`${T.data.pathname}:::ping`,C=f.get(c);if(!C)return;let E=C.arguments||{},A=[];for(let[,u]of Object.entries(E))switch(u.type){case zT:A[u.index]=T;break;case PT:A[u.index]=_;break;case TT:A[u.index]=this.#E.get(TT);break}C.descriptor.value(...A)},pong:(T,_)=>{let c=`${T.data.pathname}:::pong`,C=f.get(c);if(!C)return;let E=C.arguments||{},A=[];for(let[,u]of Object.entries(E))switch(u.type){case zT:A[u.index]=T;break;case PT:A[u.index]=_;break;case TT:A[u.index]=this.#E.get(TT);break}C.descriptor.value(...A)}}}async#L({request:f,server:T,context:_,url:c,query:C,method:E,responseHeaders:A,httpRouterGroup:u,startMiddlewareHandlers:R,endMiddlewareHandlers:U}){try{await this.#_({type:"START_MIDDLEWARES",handlers:R,context:_});let z=u.find({pathname:c.pathname,method:E}),q=this.finalizeResponse(new Response(void 0,{...p.serverErrorStatuses.INTERNAL_SERVER_ERROR,headers:A}));if(z){let S=await this.#_({type:"GUARDS",handlers:z.guardHandlers,context:_});if(S!==!0)q=this.finalizeResponse(new Response(void 0,{...!S||S==="UNAUTHORIZATION"?p.clientErrorStatuses.UNAUTHORIZED:p.clientErrorStatuses.FORBIDDEN,headers:A}));else{_.set(RT,z.model),await this.#_({type:"OPEN_INTERCEPTORS",handlers:z.openInterceptorHandlers,context:_});let D=await z.model.func(...[T,f,C]);if(await this.#_({type:"CLOSE_INTERCEPTORS",handlers:z.closeInterceptorHandlers,context:_}),typeof D!=="boolean"||!D)q=this.finalizeResponse(new Response(void 0,{...p.serverErrorStatuses.INTERNAL_SERVER_ERROR,headers:A}));else q=void 0}}return await this.#_({type:"END_MIDDLEWARES",handlers:U,context:_}),q}catch(z){throw console.error(z),z}}async#z({url:f,path:T,headers:_,cacheTimeInSeconds:c,responseHeaders:C}){let E=`${T}/${f.pathname}`,A=this.#A.get(E);if(!A){let u=Bun.file(E);if(await u.exists()){if(_)for(let[U,z]of Object.entries(_))C.set(U,z);return C.set("Content-Type",u.type),this.finalizeResponse(new Response(await u.arrayBuffer(),{...p.successfulStatuses.OK,headers:C}))}}else{let u=new Date>A.expiredAt;if(u)this.#A.delete(E);let R=!u?A.file:Bun.file(E);if(await R.exists()){if(this.#A.set(E,Object.freeze({expiredAt:_c(new Date,this.#R,cT.seconds),file:R})),_)for(let[z,q]of Object.entries(_))C.set(z,q);return C.set("Content-Type",R.type),this.finalizeResponse(new Response(await R.arrayBuffer(),{...p.successfulStatuses.OK,headers:C}))}}}async#F({context:f,url:T,method:_,httpRouterGroup:c,startMiddlewareHandlers:C=[],endMiddlewareHandlers:E=[]}){let A={isStatic:!0};f.setOptions(A),await this.#_({type:"START_MIDDLEWARES",handlers:C,context:f});let u=c.find({pathname:T.pathname,method:_});if(!u)f.setOptions({isStatic:!1}).set(bT,p.clientErrorStatuses.NOT_FOUND.status).set(eT,p.clientErrorStatuses.NOT_FOUND.statusText).set(oT,void 0);else{f.set(RT,u.model);let S=await this.#_({type:"GUARDS",handlers:u.guardHandlers,context:f});if(S!==!0)f.setOptions({isStatic:!1}).set(bT,!S||S==="UNAUTHORIZATION"?p.clientErrorStatuses.UNAUTHORIZED.status:p.clientErrorStatuses.FORBIDDEN.status).set(eT,!S||S==="UNAUTHORIZATION"?p.clientErrorStatuses.UNAUTHORIZED.statusText:p.clientErrorStatuses.FORBIDDEN.statusText).set(oT,void 0);else await this.#_({type:"OPEN_INTERCEPTORS",handlers:u.openInterceptorHandlers,context:f}),await this.#_({type:"CONTROLLER",context:f}),await this.#_({type:"CLOSE_INTERCEPTORS",handlers:u.closeInterceptorHandlers,context:f})}await this.#_({type:"END_MIDDLEWARES",handlers:E,context:f});let R=f.get(xT,{isStatic:!0})||new Headers,U=f.get(oT,{isStatic:!1})||void 0,z=f.get(bT,{isStatic:!1}),q=f.get(eT,{isStatic:!1});return this.serializeResponse({status:typeof z!=="number"?_==="POST"?201:void 0:z,statusText:typeof q!=="string"?void 0:q,headers:R,data:U})}async#q({prefix:f="",startMiddlewareHandlers:T=[],endMiddlewareHandlers:_=[],guardHandlers:c=[],openInterceptorHandlers:C=[],closeInterceptorHandlers:E=[],controllerRouterGroup:A=new JT,webSocketHttpRouterGroup:u=new JT,webSocketRouterGroup:R=new KT,containerClass:U,options:z,extendInjector:q}){if(!Reflect.getOwnMetadataKeys(U).includes(HT))throw Error(`[${U.name}] is not a container.`);let S=!q?new ZT:new ZT(q),D=Reflect.getOwnMetadata(HT,U),{loaders:w,middlewares:W,dependencies:P,modules:L,guards:i,interceptors:g,prefix:t,config:$}=D||{},{config:b}=Object.freeze({config:{...typeof z.config!=="function"?z.config:await z.config(),...typeof $!=="function"?typeof $!=="object"?void 0:("key"in $)&&("value"in $)&&typeof $.key==="symbol"?typeof $.value!=="function"?$.value:await $.value():$:await $()}});if(S.set($&&"key"in $&&"value"in $&&typeof $.key==="symbol"?$.key:gf,b),w){let k=[];for(let[Q,J]of Object.entries(w))k.push(async()=>{try{let B=await J({config:b});return console.info(`${YT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${Q}] initialized successfully.`),B}catch(B){throw console.error(`${YT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${Q}] initialization failed.`),z.debug&&console.error(B),B}});let V=await Promise.all(k.map((Q)=>Q()));for(let[Q,J]of V)S.set(Q,J)}if(P){for(let k of P)if(!S.get(k))throw Error(`Can not collect dependency [${k.name}].`)}if(W){let k=(V,Q)=>!!V;for(let V of W){let Q=S.get(V);if(!Q||!k(Q,V))throw Error(`Can not collect middleware [${V.name}].`);if(Q.start&&typeof Q.start==="function"){let J=Reflect.getOwnMetadata(I,V,"start")||{};T.push(Object.freeze({class:V,funcName:"start",func:Q.start.bind(Q),argumentsMetadata:J}))}if(Q.end&&typeof Q.end==="function"){let J=Reflect.getOwnMetadata(I,V,"end")||{};_.push(Object.freeze({class:V,funcName:"end",func:Q.end.bind(Q),argumentsMetadata:J}))}}}if(i){let k=(V,Q)=>!!V;for(let V of i){let Q=S.get(V);if(!Q||!k(Q,V))throw Error(`Can not collect guard [${V.name}].`);let J=Reflect.getOwnMetadata(I,V,"enforce")||{};c.push(Object.freeze({class:V,funcName:"enforce",func:Q.enforce.bind(Q),argumentsMetadata:J}))}}if(g){let k=(V,Q)=>!!V;for(let V of g){let Q=S.get(V);if(!Q||!k(Q,V))throw Error(`Can not collect interceptor [${V.name}].`);if(Q){if(Q.open&&typeof Q.open==="function"){let J=Reflect.getOwnMetadata(I,V,"open")||{};C.push(Object.freeze({class:V,funcName:"open",func:Q.open.bind(Q),argumentsMetadata:J}))}if(Q.close&&typeof Q.close==="function"){let J=Reflect.getOwnMetadata(I,V,"close")||{};E.push(Object.freeze({class:V,funcName:"close",func:Q.close.bind(Q),argumentsMetadata:J}))}}}}if(L){let k=[f.trim(),t?.trim()||""].filter((V)=>V.length>0).join("/");for(let V of L)try{await this.#S({prefix:k,moduleClass:V,extendInjector:S,options:z,startMiddlewareHandlers:T,endMiddlewareHandlers:_,guardHandlers:[...c],openInterceptorHandlers:[...C],closeInterceptorHandlers:[...E],controllerRouterGroup:A,webSocketHttpRouterGroup:u,webSocketRouterGroup:R})}catch(Q){throw console.group(`Can not resolve module: [${V.name}].`),console.error(Q),console.groupEnd(),Q}}return Object.freeze({startMiddlewareHandlers:T,endMiddlewareHandlers:_,controllerRouterGroup:A,webSocketHttpRouterGroup:u,webSocketRouterGroup:R})}async#S({prefix:f="",startMiddlewareHandlers:T=[],endMiddlewareHandlers:_=[],guardHandlers:c=[],openInterceptorHandlers:C=[],closeInterceptorHandlers:E=[],controllerRouterGroup:A=new JT,webSocketHttpRouterGroup:u=new JT,webSocketRouterGroup:R=new KT,moduleClass:U,options:z,extendInjector:q}){if(!Reflect.getOwnMetadataKeys(U).includes(AT))throw Error(`[${U.name}] is not a module.`);let S=!q?new ZT:new ZT(q),D=Reflect.getOwnMetadata(AT,U),{loaders:w,middlewares:W,guards:P,interceptors:L,controllers:i,dependencies:g,webSockets:t,prefix:$,config:b}=D||{},k=[f.trim(),$?.trim()||""].filter((Q)=>Q.length>0).join("/"),{config:V}=Object.freeze({config:!b?void 0:{...typeof z.config!=="function"?z.config:await z.config(),...typeof b!=="function"?typeof b!=="object"?void 0:("key"in b)&&("value"in b)&&typeof b.key==="symbol"?typeof b.value!=="function"?b.value:await b.value():b:await b()}});if(V&&S.set(b&&"key"in b&&"value"in b&&typeof b.key==="symbol"?b.key:gf,V),w){let Q=[];for(let[B,v]of Object.entries(w))Q.push(async()=>{try{let r=await v({config:V});return console.info(`${YT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${B}] initialized successfully.`),r}catch(r){throw console.error(`${YT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${B}] initialization failed.`),z.debug&&console.error(r),r}});let J=await Promise.all(Q.map((B)=>B()));for(let B=0;B<J.length;B++){let[v,r]=J[B];S.set(v,r)}}if(g){for(let Q of g)if(!S.get(Q))throw Error(`Can not collect dependency [${Q.name}].`)}if(W){let Q=(J,B)=>!!J;for(let J of W){let B=S.get(J);if(!B||!Q(B,J))throw Error(`Can not collect middleware [${J.name}].`);if(B.start&&typeof B.start==="function"){let v=Reflect.getOwnMetadata(I,J,"start")||{};T.push(Object.freeze({class:J,funcName:"start",func:B.start.bind(B),argumentsMetadata:v}))}if(B.end&&typeof B.end==="function"){let v=Reflect.getOwnMetadata(I,J,"end")||{};_.push(Object.freeze({class:J,funcName:"end",func:B.end.bind(B),argumentsMetadata:v}))}}}if(P){let Q=(J,B)=>!!J;for(let J of P){let B=S.get(J);if(!B||!Q(B,J))throw Error(`Can not collect guard [${J.name}].`);let v=Reflect.getOwnMetadata(I,J,"enforce")||{};c.push(Object.freeze({class:J,funcName:"enforce",func:B.enforce.bind(B),argumentsMetadata:v}))}}if(L){let Q=(J,B)=>!!J;for(let J of L){let B=S.get(J);if(!B||!Q(B,J))throw Error(`Can not collect interceptor [${J.name}].`);if(B){if(B.open&&typeof B.open==="function"){let v=Reflect.getOwnMetadata(I,J,"open")||{};C.push(Object.freeze({class:J,funcName:"open",func:B.open.bind(B),argumentsMetadata:v}))}if(B.close&&typeof B.close==="function"){let v=Reflect.getOwnMetadata(I,J,"close")||{};E.push(Object.freeze({class:J,funcName:"close",func:B.close.bind(B),argumentsMetadata:v}))}}}}if(i)for(let Q of i)this.#U({controllerConstructor:Q,prefix:k,injector:S,httpRouterGroup:A,guardHandlers:[...c],openInterceptorHandlers:[...C],closeInterceptorHandlers:[...E]});if(t)for(let Q of t)this.#n({webSocketConstructor:Q,injector:S,prefix:k,webSocketHttpRouterGroup:u,webSocketRouterGroup:R});return Object.freeze({startMiddlewareHandlers:T,endMiddlewareHandlers:_,controllerRouterGroup:A,webSocketHttpRouterGroup:u,webSocketRouterGroup:R})}#U({controllerConstructor:f,prefix:T="",injector:_=new ZT,httpRouterGroup:c=new JT,guardHandlers:C=[],openInterceptorHandlers:E=[],closeInterceptorHandlers:A=[]}){if(!Reflect.getOwnMetadataKeys(f).includes(uT))throw Error(`[${f.name}] is not a controller.`);let u=_.get(f);if(!u)throw Error("Can not initialize controller.");let R=Reflect.getOwnMetadata(uT,f)||{prefix:"/",httpMetadata:[]},U=[T.trim(),R.prefix.trim()].filter((q)=>q.length>0).join("/"),z=new Xf({alias:U,guardHandlers:C,openInterceptorHandlers:E,closeInterceptorHandlers:A});for(let q of R.httpMetadata){if(typeof q.descriptor.value!=="function")continue;let S=z.route({alias:q.path}),D=q.descriptor.value.bind(u),w=Object.freeze({class:f,funcName:q.methodName,func:D,argumentsMetadata:q.argumentsMetadata});switch(q.httpMethod){case"GET":S.get({model:w});break;case"POST":S.post({model:w});break;case"PUT":S.put({model:w});break;case"PATCH":S.patch({model:w});break;case"DELETE":S.delete({model:w});break;case"OPTIONS":S.options({model:w});break}}return c.add(z)}async#f({data:f,validationSchema:T,argumentIndex:_,funcName:c}){if(!this.#x)return f;try{let C=await this.#x.validate(f,T,_,c);if(!(C instanceof ef))return C;throw new Af({httpCode:400,message:`Validation at the [${c.toString()}] method fails at positional argument [${_}].`,data:C.error})}catch(C){if(C instanceof Af)throw C;throw new Df({httpCode:500,message:`Validation at the [${c.toString()}] method error at positional argument [${_}].`,data:!(C instanceof Error)?C:[{message:C.message,code:C.name,cause:C.cause}]})}}#n({webSocketConstructor:f,prefix:T="",injector:_=new ZT,webSocketHttpRouterGroup:c=new JT,webSocketRouterGroup:C=new KT,guardHandlers:E=[],openInterceptorHandlers:A=[],closeInterceptorHandlers:u=[]}){if(!Reflect.getOwnMetadataKeys(f).includes(LT))throw Error(`[${f.name}] is not a websocket route.`);let R=_.get(f);if(!R)throw Error("Can not initialize webSocket.");let U=Reflect.getOwnMetadata(LT,f)||{prefix:"/",events:[],http:[]},z=`/${T}/${U.prefix}`,q=new Xf({alias:z,guardHandlers:E,openInterceptorHandlers:A,closeInterceptorHandlers:u});for(let[D,w]of Object.entries(U.http)){if(typeof w.descriptor?.value!=="function")continue;let W=q.route({alias:w.path}),P=w.descriptor.value.bind(R),L=Object.freeze({class:f,funcName:w.methodName,func:P,argumentsMetadata:w.argumentsMetadata});switch(w.httpMethod){case"GET":W.get({model:L});break;case"POST":W.post({model:L});break}}c.add(q);let S=new Jf(z);for(let[D,w]of Object.entries(U.events)){let W=new af({eventName:D,metadata:w});S.addRoutes(W)}return S.bind(R),C.addRouters(S),Object.freeze({webSocketHttpRouterGroup:c,webSocketRouterGroup:C})}async#_({type:f,handlers:T,context:_}){let c={isStatic:!0};_.setOptions(c);let C=_.get(FT,c)||void 0,E=_.get(UT,c)||void 0,A=_.get(qT,c)||void 0,u=_.get(xT,c)||void 0,R=_.get(Hf,c)||void 0,U=_.get(RT,c)||void 0;if(f==="START_MIDDLEWARES"||f==="END_MIDDLEWARES"){let z=f==="START_MIDDLEWARES"?this.#C.pipelineStrategy.startMiddlewares:this.#C.pipelineStrategy.endMiddlewares;for(let q=z==="FIFO"?0:T.length-1;z==="FIFO"?q<T.length:q>-1;z==="FIFO"?q++:q--){let S=[],{func:D,funcName:w,argumentsMetadata:W}=T[q];for(let[P,L]of Object.entries(W))switch(L.type){case OT:S[L.index]=!L.key?_:_.get(L.key,c);break;case UT:S[L.index]=E;break;case GT:S[L.index]=!L.validationSchema?await E?.[L.parser||"json"]():await this.#f({data:await E?.[L.parser||"json"](),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case VT:S[L.index]=!L.validationSchema?A:await this.#f({data:A?.toJSON(),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case qT:S[L.index]=!L.validationSchema?A?.get(L.key)||void 0:await this.#f({data:A?.get(L.key)||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case gT:S[L.index]=!L.validationSchema?R?.[L.key]||void 0:await this.#f({data:R?.[L.key]||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case RT:S[L.index]=void 0;break;case xT:S[L.index]=u;break;case FT:S[L.index]=C;break;default:S[L.index]=!L.validationSchema?_.get(L.type,c):await this.#f({data:_.get(L.type,c),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break}await D(...S)}}else if(f==="GUARDS"){if(!U||T.length===0)return!0;for(let z=0;z<T.length;z++){let q=[],{func:S,funcName:D,argumentsMetadata:w}=T[z];for(let[P,L]of Object.entries(w))switch(L.type){case UT:q[L.index]=E;break;case GT:q[L.index]=!L.validationSchema?await E?.[L.parser||"json"]():await this.#f({data:await E?.[L.parser||"json"](),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:D});break;case OT:q[L.index]=!L.key?_:_.get(L.key);break;case VT:q[L.index]=!L.validationSchema?A:await this.#f({data:A?.toJSON(),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:D});break;case xT:q[L.index]=u;break;case qT:q[L.index]=!L.validationSchema?A?.get(L.key)||void 0:await this.#f({data:A?.get(L.key)||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:D});break;case gT:q[L.index]=!L.validationSchema?R?.[L.key]||void 0:await this.#f({data:R?.[L.key],validationSchema:L.validationSchema,argumentIndex:L.index,funcName:D});break;case RT:q[L.index]=U;break;case FT:q[L.index]=C;break;default:q[L.index]=!L.validationSchema?_.get(L.type):await this.#f({data:_.get(L.type),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:D});break}let W=await S(...q);if(W!==!0)return W}return!0}else if(f==="OPEN_INTERCEPTORS"||f==="CLOSE_INTERCEPTORS"){if(!U)return;let z=f==="OPEN_INTERCEPTORS"?this.#C.pipelineStrategy.openInterceptors:this.#C.pipelineStrategy.closeInterceptors;for(let q=z==="FIFO"?0:T.length-1;z==="FIFO"?q<T.length:q>-1;z==="FIFO"?q++:q--){let S=[],{func:D,funcName:w,argumentsMetadata:W}=T[q];for(let[P,L]of Object.entries(W))switch(L.type){case UT:S[L.index]=E;break;case GT:S[L.index]=!L.validationSchema?await E?.[L.parser||"json"]():await this.#f({data:await E?.[L.parser||"json"](),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case OT:S[L.index]=!L.key?_:_.get(L.key);break;case VT:S[L.index]=!L.validationSchema?A:await this.#f({data:A?.toJSON(),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case qT:S[L.index]=!L.validationSchema?A?.get(L.key)||void 0:await this.#f({data:A?.get(L.key)||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case xT:S[L.index]=u;break;case gT:S[L.index]=!L.validationSchema?R?.[L.key]||void 0:await this.#f({data:R?.[L.key]||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break;case RT:S[L.index]=U;break;case FT:S[L.index]=C;break;default:S[L.index]=!L.validationSchema?_.get(L.type):await this.#f({data:_.get(L.type),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:w});break}await D(...S)}}else if(f==="CONTROLLER"){if(!U){_.setOptions({isStatic:!1}).set(bT,404).set(eT,"Not found.");return}let z=[],{func:q,funcName:S,argumentsMetadata:D}=U;for(let[w,W]of Object.entries(D))switch(W.type){case UT:z[W.index]=E;break;case GT:z[W.index]=!W.validationSchema?await E?.[W.parser||"json"]():await this.#f({data:await E?.[W.parser||"json"](),validationSchema:W.validationSchema,argumentIndex:W.index,funcName:S});break;case OT:z[W.index]=!W.key?_:_.get(W.key);break;case VT:z[W.index]=!W.validationSchema?A:await this.#f({data:A?.toJSON(),validationSchema:W.validationSchema,argumentIndex:W.index,funcName:S});break;case qT:z[W.index]=!W.validationSchema?A?.get(W.key)||void 0:await this.#f({data:A?.get(W.key)||void 0,validationSchema:W.validationSchema,argumentIndex:W.index,funcName:S});break;case xT:z[W.index]=u;break;case gT:z[W.index]=!W.validationSchema?R?.[W.key]||void 0:await this.#f({data:R?.[W.key]||void 0,validationSchema:W.validationSchema,argumentIndex:W.index,funcName:S});break;case RT:z[W.index]=U;break;case FT:z[W.index]=C;break;default:z[W.index]=!W.validationSchema?_.get(W.type):await this.#f({data:_.get(W.type),validationSchema:W.validationSchema,argumentIndex:W.index,funcName:S});break}_.set(oT,await q(...z),{isStatic:!1})}return}serializeResponse({status:f,statusText:T,headers:_,data:c}){let C=_.get("Content-Type")||"text/plain",E=!f?!c?204:200:f,A=dT(E);if(C.includes("application/json"))return this.finalizeResponse(new Response(!c?void 0:c instanceof ReadableStream?c:JSON.stringify(c),{status:E,statusText:A,headers:_}));if(C.includes("text/plain")||C.includes("text/html"))return this.finalizeResponse(new Response(!c?void 0:c instanceof ReadableStream?c:String(c),{status:E,statusText:A,headers:_}));if(C.includes("application/octet-stream")){if(c instanceof Uint8Array||c instanceof ArrayBuffer||c instanceof Blob||c instanceof ReadableStream)return this.finalizeResponse(new Response(c,{status:E,statusText:A,headers:_}));throw Error("Invalid data type for application/octet-stream")}if(C.includes("multipart/form-data")){if(c instanceof FormData)return this.finalizeResponse(new Response(c,{status:E,statusText:A,headers:_}));throw Error("multipart/form-data requires FormData object")}return this.finalizeResponse(new Response(!c?void 0:String(c),{status:E,statusText:A,headers:_}))}finalizeResponse(f){return f.headers.set("X-Powered-By","Bool Typescript"),f}}var K1=Vf(Gf(),1);var rR=async(f,T)=>{try{let _=new Zf(f,T);return await _.preLaunch(),_}catch(_){throw T.debug&&console.error(_),_}};export{WE as jsonErrorInfer,nE as httpMethodsStandardization,K_ as httpMethods,UA as WebSocketServer,KT as WebSocketRouterGroup,Jf as WebSocketRouter,af as WebSocketRoute,wA as WebSocketMessage,YA as WebSocketEvent,qA as WebSocketConnection,WA as WebSocketCloseReason,nA as WebSocketCloseCode,FA as WebSocket,ef as ValidationFailed,oE as RouteModel,rE as ResponseHeaders,vE as RequestHeaders,tE as RequestHeader,dE as RequestBody,iE as Request,yE as Query,CA as Put,cA as Post,EA as Patch,jE as Params,lE as Param,xA as Options,p as Objects,LA as Module,HA as Middleware,p_ as Keys,uA as Interceptor,ZT as Injector,SA as Injectable,RA as Inject,Df as HttpServerError,eE as HttpServer,JT as HttpRouterGroup,Xf as HttpRouter,m_ as HttpRoute,Af as HttpClientError,fA as Guard,_A as Get,AA as Delete,TA as Controller,pE as Context,aE as Container,rR as BoolFactory,Zf as Application};
|
|
15
|
+
***************************************************************************** */var ef;(function(_){(function(T){var f=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:u(),C=E(_);if(typeof f.Reflect<"u")C=E(f.Reflect,C);if(T(C,f),typeof f.Reflect>"u")f.Reflect=_;function E(S,U){return function(z,q){if(Object.defineProperty(S,z,{configurable:!0,writable:!0,value:q}),U)U(z,q)}}function A(){try{return Function("return this;")()}catch(S){}}function c(){try{return(0,eval)("(function() { return this; })()")}catch(S){}}function u(){return A()||c()}})(function(T,f){var C=Object.prototype.hasOwnProperty,E=typeof Symbol==="function",A=E&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",c=E&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create==="function",S={__proto__:[]}instanceof Array,U=!u&&!S,z={create:u?function(){return Ef(Object.create(null))}:S?function(){return Ef({__proto__:null})}:function(){return Ef({})},has:U?function(R,H){return C.call(R,H)}:function(R,H){return H in R},get:U?function(R,H){return C.call(R,H)?R[H]:void 0}:function(R,H){return R[H]}},q=Object.getPrototypeOf(Function),x=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:gA(),Q=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:nA(),Y=typeof WeakMap==="function"?WeakMap:OA(),W=E?Symbol.for("@reflect-metadata:registry"):void 0,P=BA(),L=VA(P);function i(R,H,F,w){if(!O(F)){if(!sf(R))throw TypeError();if(!d(H))throw TypeError();if(!d(w)&&!O(w)&&!iT(w))throw TypeError();if(iT(w))w=void 0;return F=ST(F),r(R,H,F,w)}else{if(!sf(R))throw TypeError();if(!tf(H))throw TypeError();return s(R,H)}}T("decorate",i);function n(R,H){function F(w,B){if(!d(w))throw TypeError();if(!O(B)&&!NA(B))throw TypeError();O_(R,H,w,B)}return F}T("metadata",n);function j(R,H,F,w){if(!d(F))throw TypeError();if(!O(w))w=ST(w);return O_(R,H,F,w)}T("defineMetadata",j);function $(R,H,F){if(!d(H))throw TypeError();if(!O(F))F=ST(F);return ET(R,H,F)}T("hasMetadata",$);function b(R,H,F){if(!d(H))throw TypeError();if(!O(F))F=ST(F);return fT(R,H,F)}T("hasOwnMetadata",b);function k(R,H,F){if(!d(H))throw TypeError();if(!O(F))F=ST(F);return GT(R,H,F)}T("getMetadata",k);function G(R,H,F){if(!d(H))throw TypeError();if(!O(F))F=ST(F);return lT(R,H,F)}T("getOwnMetadata",G);function M(R,H){if(!d(R))throw TypeError();if(!O(H))H=ST(H);return u_(R,H)}T("getMetadataKeys",M);function Z(R,H){if(!d(R))throw TypeError();if(!O(H))H=ST(H);return yT(R,H)}T("getOwnMetadataKeys",Z);function V(R,H,F){if(!d(H))throw TypeError();if(!O(F))F=ST(F);if(!d(H))throw TypeError();if(!O(F))F=ST(F);var w=H_(H,F,!1);if(O(w))return!1;return w.OrdinaryDeleteMetadata(R,H,F)}T("deleteMetadata",V);function s(R,H){for(var F=R.length-1;F>=0;--F){var w=R[F],B=w(H);if(!O(B)&&!iT(B)){if(!tf(B))throw TypeError();H=B}}return H}function r(R,H,F,w){for(var B=R.length-1;B>=0;--B){var l=R[B],o=l(H,F,w);if(!O(o)&&!iT(o)){if(!d(o))throw TypeError();w=o}}return w}function ET(R,H,F){var w=fT(R,H,F);if(w)return!0;var B=Cf(H);if(!iT(B))return ET(R,B,F);return!1}function fT(R,H,F){var w=H_(H,F,!1);if(O(w))return!1;return vf(w.OrdinaryHasOwnMetadata(R,H,F))}function GT(R,H,F){var w=fT(R,H,F);if(w)return lT(R,H,F);var B=Cf(H);if(!iT(B))return GT(R,B,F);return}function lT(R,H,F){var w=H_(H,F,!1);if(O(w))return;return w.OrdinaryGetOwnMetadata(R,H,F)}function O_(R,H,F,w){var B=H_(F,w,!0);B.OrdinaryDefineOwnMetadata(R,H,F,w)}function u_(R,H){var F=yT(R,H),w=Cf(R);if(w===null)return F;var B=u_(w,H);if(B.length<=0)return F;if(F.length<=0)return B;var l=new Q,o=[];for(var h=0,D=F;h<D.length;h++){var X=D[h],J=l.has(X);if(!J)l.add(X),o.push(X)}for(var N=0,m=B;N<m.length;N++){var X=m[N],J=l.has(X);if(!J)l.add(X),o.push(X)}return o}function yT(R,H){var F=H_(R,H,!1);if(!F)return[];return F.OrdinaryOwnMetadataKeys(R,H)}function kf(R){if(R===null)return 1;switch(typeof R){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return R===null?1:6;default:return 6}}function O(R){return R===void 0}function iT(R){return R===null}function DA(R){return typeof R==="symbol"}function d(R){return typeof R==="object"?R!==null:typeof R==="function"}function MA(R,H){switch(kf(R)){case 0:return R;case 1:return R;case 2:return R;case 3:return R;case 4:return R;case 5:return R}var F=H===3?"string":H===5?"number":"default",w=jf(R,A);if(w!==void 0){var B=w.call(R,F);if(d(B))throw TypeError();return B}return XA(R,F==="default"?"number":F)}function XA(R,H){if(H==="string"){var F=R.toString;if(rT(F)){var w=F.call(R);if(!d(w))return w}var B=R.valueOf;if(rT(B)){var w=B.call(R);if(!d(w))return w}}else{var B=R.valueOf;if(rT(B)){var w=B.call(R);if(!d(w))return w}var l=R.toString;if(rT(l)){var w=l.call(R);if(!d(w))return w}}throw TypeError()}function vf(R){return!!R}function JA(R){return""+R}function ST(R){var H=MA(R,3);if(DA(H))return H;return JA(H)}function sf(R){return Array.isArray?Array.isArray(R):R instanceof Object?R instanceof Array:Object.prototype.toString.call(R)==="[object Array]"}function rT(R){return typeof R==="function"}function tf(R){return typeof R==="function"}function NA(R){switch(kf(R)){case 3:return!0;case 4:return!0;default:return!1}}function ff(R,H){return R===H||R!==R&&H!==H}function jf(R,H){var F=R[H];if(F===void 0||F===null)return;if(!rT(F))throw TypeError();return F}function df(R){var H=jf(R,c);if(!rT(H))throw TypeError();var F=H.call(R);if(!d(F))throw TypeError();return F}function lf(R){return R.value}function yf(R){var H=R.next();return H.done?!1:H}function rf(R){var H=R.return;if(H)H.call(R)}function Cf(R){var H=Object.getPrototypeOf(R);if(typeof R!=="function"||R===q)return H;if(H!==q)return H;var F=R.prototype,w=F&&Object.getPrototypeOf(F);if(w==null||w===Object.prototype)return H;var B=w.constructor;if(typeof B!=="function")return H;if(B===R)return H;return B}function ZA(){var R;if(!O(W)&&typeof f.Reflect<"u"&&!(W in f.Reflect)&&typeof f.Reflect.defineMetadata==="function")R=GA(f.Reflect);var H,F,w,B=new Y,l={registerProvider:o,getProvider:D,setProvider:J};return l;function o(N){if(!Object.isExtensible(l))throw Error("Cannot add provider to a frozen registry.");switch(!0){case R===N:break;case O(H):H=N;break;case H===N:break;case O(F):F=N;break;case F===N:break;default:if(w===void 0)w=new Q;w.add(N);break}}function h(N,m){if(!O(H)){if(H.isProviderFor(N,m))return H;if(!O(F)){if(F.isProviderFor(N,m))return H;if(!O(w)){var v=df(w);while(!0){var y=yf(v);if(!y)return;var AT=lf(y);if(AT.isProviderFor(N,m))return rf(v),AT}}}}if(!O(R)&&R.isProviderFor(N,m))return R;return}function D(N,m){var v=B.get(N),y;if(!O(v))y=v.get(m);if(!O(y))return y;if(y=h(N,m),!O(y)){if(O(v))v=new x,B.set(N,v);v.set(m,y)}return y}function X(N){if(O(N))throw TypeError();return H===N||F===N||!O(w)&&w.has(N)}function J(N,m,v){if(!X(v))throw Error("Metadata provider not registered.");var y=D(N,m);if(y!==v){if(!O(y))return!1;var AT=B.get(N);if(O(AT))AT=new x,B.set(N,AT);AT.set(m,v)}return!0}}function BA(){var R;if(!O(W)&&d(f.Reflect)&&Object.isExtensible(f.Reflect))R=f.Reflect[W];if(O(R))R=ZA();if(!O(W)&&d(f.Reflect)&&Object.isExtensible(f.Reflect))Object.defineProperty(f.Reflect,W,{enumerable:!1,configurable:!1,writable:!1,value:R});return R}function VA(R){var H=new Y,F={isProviderFor:function(X,J){var N=H.get(X);if(O(N))return!1;return N.has(J)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:B,OrdinaryGetOwnMetadata:l,OrdinaryOwnMetadataKeys:h,OrdinaryDeleteMetadata:D};return P.registerProvider(F),F;function w(X,J,N){var m=H.get(X),v=!1;if(O(m)){if(!N)return;m=new x,H.set(X,m),v=!0}var y=m.get(J);if(O(y)){if(!N)return;if(y=new x,m.set(J,y),!R.setProvider(X,J,F)){if(m.delete(J),v)H.delete(X);throw Error("Wrong provider for target.")}}return y}function B(X,J,N){var m=w(J,N,!1);if(O(m))return!1;return vf(m.has(X))}function l(X,J,N){var m=w(J,N,!1);if(O(m))return;return m.get(X)}function o(X,J,N,m){var v=w(N,m,!0);v.set(X,J)}function h(X,J){var N=[],m=w(X,J,!1);if(O(m))return N;var v=m.keys(),y=df(v),AT=0;while(!0){var pf=yf(y);if(!pf)return N.length=AT,N;var $A=lf(pf);try{N[AT]=$A}catch(hA){try{rf(y)}finally{throw hA}}AT++}}function D(X,J,N){var m=w(J,N,!1);if(O(m))return!1;if(!m.delete(X))return!1;if(m.size===0){var v=H.get(J);if(!O(v)){if(v.delete(N),v.size===0)H.delete(v)}}return!0}}function GA(R){var{defineMetadata:H,hasOwnMetadata:F,getOwnMetadata:w,getOwnMetadataKeys:B,deleteMetadata:l}=R,o=new Y,h={isProviderFor:function(D,X){var J=o.get(D);if(!O(J)&&J.has(X))return!0;if(B(D,X).length){if(O(J))J=new Q,o.set(D,J);return J.add(X),!0}return!1},OrdinaryDefineOwnMetadata:H,OrdinaryHasOwnMetadata:F,OrdinaryGetOwnMetadata:w,OrdinaryOwnMetadataKeys:B,OrdinaryDeleteMetadata:l};return h}function H_(R,H,F){var w=P.getProvider(R,H);if(!O(w))return w;if(F){if(P.setProvider(R,H,L))return L;throw Error("Illegal state.")}return}function gA(){var R={},H=[],F=function(){function h(D,X,J){this._index=0,this._keys=D,this._values=X,this._selector=J}return h.prototype["@@iterator"]=function(){return this},h.prototype[c]=function(){return this},h.prototype.next=function(){var D=this._index;if(D>=0&&D<this._keys.length){var X=this._selector(this._keys[D],this._values[D]);if(D+1>=this._keys.length)this._index=-1,this._keys=H,this._values=H;else this._index++;return{value:X,done:!1}}return{value:void 0,done:!0}},h.prototype.throw=function(D){if(this._index>=0)this._index=-1,this._keys=H,this._values=H;throw D},h.prototype.return=function(D){if(this._index>=0)this._index=-1,this._keys=H,this._values=H;return{value:D,done:!0}},h}(),w=function(){function h(){this._keys=[],this._values=[],this._cacheKey=R,this._cacheIndex=-2}return Object.defineProperty(h.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),h.prototype.has=function(D){return this._find(D,!1)>=0},h.prototype.get=function(D){var X=this._find(D,!1);return X>=0?this._values[X]:void 0},h.prototype.set=function(D,X){var J=this._find(D,!0);return this._values[J]=X,this},h.prototype.delete=function(D){var X=this._find(D,!1);if(X>=0){var J=this._keys.length;for(var N=X+1;N<J;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];if(this._keys.length--,this._values.length--,ff(D,this._cacheKey))this._cacheKey=R,this._cacheIndex=-2;return!0}return!1},h.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=R,this._cacheIndex=-2},h.prototype.keys=function(){return new F(this._keys,this._values,B)},h.prototype.values=function(){return new F(this._keys,this._values,l)},h.prototype.entries=function(){return new F(this._keys,this._values,o)},h.prototype["@@iterator"]=function(){return this.entries()},h.prototype[c]=function(){return this.entries()},h.prototype._find=function(D,X){if(!ff(this._cacheKey,D)){this._cacheIndex=-1;for(var J=0;J<this._keys.length;J++)if(ff(this._keys[J],D)){this._cacheIndex=J;break}}if(this._cacheIndex<0&&X)this._cacheIndex=this._keys.length,this._keys.push(D),this._values.push(void 0);return this._cacheIndex},h}();return w;function B(h,D){return h}function l(h,D){return D}function o(h,D){return[h,D]}}function nA(){var R=function(){function H(){this._map=new x}return Object.defineProperty(H.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),H.prototype.has=function(F){return this._map.has(F)},H.prototype.add=function(F){return this._map.set(F,F),this},H.prototype.delete=function(F){return this._map.delete(F)},H.prototype.clear=function(){this._map.clear()},H.prototype.keys=function(){return this._map.keys()},H.prototype.values=function(){return this._map.keys()},H.prototype.entries=function(){return this._map.entries()},H.prototype["@@iterator"]=function(){return this.keys()},H.prototype[c]=function(){return this.keys()},H}();return R}function OA(){var R=16,H=z.create(),F=w();return function(){function D(){this._key=w()}return D.prototype.has=function(X){var J=B(X,!1);return J!==void 0?z.has(J,this._key):!1},D.prototype.get=function(X){var J=B(X,!1);return J!==void 0?z.get(J,this._key):void 0},D.prototype.set=function(X,J){var N=B(X,!0);return N[this._key]=J,this},D.prototype.delete=function(X){var J=B(X,!1);return J!==void 0?delete J[this._key]:!1},D.prototype.clear=function(){this._key=w()},D}();function w(){var D;do D="@@WeakMap@@"+h();while(z.has(H,D));return H[D]=!0,D}function B(D,X){if(!C.call(D,F)){if(!X)return;Object.defineProperty(D,F,{value:z.create()})}return D[F]}function l(D,X){for(var J=0;J<X;++J)D[J]=Math.random()*255|0;return D}function o(D){if(typeof Uint8Array==="function"){var X=new Uint8Array(D);if(typeof crypto<"u")crypto.getRandomValues(X);else if(typeof msCrypto<"u")msCrypto.getRandomValues(X);else l(X,D);return X}return l(Array(D),D)}function h(){var D=o(R);D[6]=D[6]&79|64,D[8]=D[8]&191|128;var X="";for(var J=0;J<R;++J){var N=D[J];if(J===4||J===6||J===8)X+="-";if(N<16)X+="0";X+=N.toString(16).toLowerCase()}return X}}function Ef(R){return R.__=void 0,delete R.__,R}})})(ef||(ef={}))});var kT=g((l0,cC)=>{cC.exports=TypeError});var xC=g((y0,RC)=>{RC.exports=jA("util").inspect});var w_=g((i0,VC)=>{var qf=typeof Map==="function"&&Map.prototype,cf=Object.getOwnPropertyDescriptor&&qf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,P_=qf&&cf&&typeof cf.get==="function"?cf.get:null,SC=qf&&Map.prototype.forEach,Uf=typeof Set==="function"&&Set.prototype,Rf=Object.getOwnPropertyDescriptor&&Uf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,b_=Uf&&Rf&&typeof Rf.get==="function"?Rf.get:null,uC=Uf&&Set.prototype.forEach,Zc=typeof WeakMap==="function"&&WeakMap.prototype,U_=Zc?WeakMap.prototype.has:null,Bc=typeof WeakSet==="function"&&WeakSet.prototype,W_=Bc?WeakSet.prototype.has:null,Vc=typeof WeakRef==="function"&&WeakRef.prototype,HC=Vc?WeakRef.prototype.deref:null,Gc=Boolean.prototype.valueOf,gc=Object.prototype.toString,nc=Function.prototype.toString,Oc=String.prototype.match,Wf=String.prototype.slice,hT=String.prototype.replace,$c=String.prototype.toUpperCase,LC=String.prototype.toLowerCase,DC=RegExp.prototype.test,zC=Array.prototype.concat,WT=Array.prototype.join,hc=Array.prototype.slice,FC=Math.floor,uf=typeof BigInt==="function"?BigInt.prototype.valueOf:null,xf=Object.getOwnPropertySymbols,Hf=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null,f_=typeof Symbol==="function"&&typeof Symbol.iterator==="object",Y_=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===f_?"object":"symbol")?Symbol.toStringTag:null,MC=Object.prototype.propertyIsEnumerable,qC=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_){return _.__proto__}:null);function UC(_,T){if(_===1/0||_===-1/0||_!==_||_&&_>-1000&&_<1000||DC.call(/e/,T))return T;var f=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _==="number"){var C=_<0?-FC(-_):FC(_);if(C!==_){var E=String(C),A=Wf.call(T,E.length+1);return hT.call(E,f,"$&_")+"."+hT.call(hT.call(A,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hT.call(T,f,"$&_")}var Lf=xC(),WC=Lf.custom,YC=NC(WC)?WC:null,XC={__proto__:null,double:'"',single:"'"},Kc={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};VC.exports=function _(T,f,C,E){var A=f||{};if(ZT(A,"quoteStyle")&&!ZT(XC,A.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(ZT(A,"maxStringLength")&&(typeof A.maxStringLength==="number"?A.maxStringLength<0&&A.maxStringLength!==1/0:A.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=ZT(A,"customInspect")?A.customInspect:!0;if(typeof c!=="boolean"&&c!=="symbol")throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ZT(A,"indent")&&A.indent!==null&&A.indent!=="\t"&&!(parseInt(A.indent,10)===A.indent&&A.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ZT(A,"numericSeparator")&&typeof A.numericSeparator!=="boolean")throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=A.numericSeparator;if(typeof T>"u")return"undefined";if(T===null)return"null";if(typeof T==="boolean")return T?"true":"false";if(typeof T==="string")return BC(T,A);if(typeof T==="number"){if(T===0)return 1/0/T>0?"0":"-0";var S=String(T);return u?UC(T,S):S}if(typeof T==="bigint"){var U=String(T)+"n";return u?UC(T,U):U}var z=typeof A.depth>"u"?5:A.depth;if(typeof C>"u")C=0;if(C>=z&&z>0&&typeof T==="object")return zf(T)?"[Array]":"[Object]";var q=ac(A,C);if(typeof E>"u")E=[];else if(ZC(E,T)>=0)return"[Circular]";function x(r,ET,fT){if(ET)E=hc.call(E),E.push(ET);if(fT){var GT={depth:A.depth};if(ZT(A,"quoteStyle"))GT.quoteStyle=A.quoteStyle;return _(r,GT,C+1,E)}return _(r,A,C+1,E)}if(typeof T==="function"&&!wC(T)){var Q=jc(T),Y=m_(T,x);return"[Function"+(Q?": "+Q:" (anonymous)")+"]"+(Y.length>0?" { "+WT.call(Y,", ")+" }":"")}if(NC(T)){var W=f_?hT.call(String(T),/^(Symbol\(.*\))_[^)]*$/,"$1"):Hf.call(T);return typeof T==="object"&&!f_?q_(W):W}if(pc(T)){var P="<"+LC.call(String(T.nodeName)),L=T.attributes||[];for(var i=0;i<L.length;i++)P+=" "+L[i].name+"="+JC(Ic(L[i].value),"double",A);if(P+=">",T.childNodes&&T.childNodes.length)P+="...";return P+="</"+LC.call(String(T.nodeName))+">",P}if(zf(T)){if(T.length===0)return"[]";var n=m_(T,x);if(q&&!ec(n))return"["+Ff(n,q)+"]";return"[ "+WT.call(n,", ")+" ]"}if(Pc(T)){var j=m_(T,x);if(!("cause"in Error.prototype)&&"cause"in T&&!MC.call(T,"cause"))return"{ ["+String(T)+"] "+WT.call(zC.call("[cause]: "+x(T.cause),j),", ")+" }";if(j.length===0)return"["+String(T)+"]";return"{ ["+String(T)+"] "+WT.call(j,", ")+" }"}if(typeof T==="object"&&c){if(YC&&typeof T[YC]==="function"&&Lf)return Lf(T,{depth:z-C});else if(c!=="symbol"&&typeof T.inspect==="function")return T.inspect()}if(dc(T)){var $=[];if(SC)SC.call(T,function(r,ET){$.push(x(ET,T,!0)+" => "+x(r,T))});return QC("Map",P_.call(T),$,q)}if(ic(T)){var b=[];if(uC)uC.call(T,function(r){b.push(x(r,T))});return QC("Set",b_.call(T),b,q)}if(lc(T))return Sf("WeakMap");if(rc(T))return Sf("WeakSet");if(yc(T))return Sf("WeakRef");if(kc(T))return q_(x(Number(T)));if(sc(T))return q_(x(uf.call(T)));if(vc(T))return q_(Gc.call(T));if(bc(T))return q_(x(String(T)));if(typeof window<"u"&&T===window)return"{ [object Window] }";if(typeof globalThis<"u"&&T===globalThis||typeof global<"u"&&T===global)return"{ [object globalThis] }";if(!mc(T)&&!wC(T)){var k=m_(T,x),G=qC?qC(T)===Object.prototype:T instanceof Object||T.constructor===Object,M=T instanceof Object?"":"null prototype",Z=!G&&Y_&&Object(T)===T&&Y_ in T?Wf.call(KT(T),8,-1):M?"Object":"",V=G||typeof T.constructor!=="function"?"":T.constructor.name?T.constructor.name+" ":"",s=V+(Z||M?"["+WT.call(zC.call([],Z||[],M||[]),": ")+"] ":"");if(k.length===0)return s+"{}";if(q)return s+"{"+Ff(k,q)+"}";return s+"{ "+WT.call(k,", ")+" }"}return String(T)};function JC(_,T,f){var C=f.quoteStyle||T,E=XC[C];return E+_+E}function Ic(_){return hT.call(String(_),/"/g,""")}function vT(_){return!Y_||!(typeof _==="object"&&((Y_ in _)||typeof _[Y_]<"u"))}function zf(_){return KT(_)==="[object Array]"&&vT(_)}function mc(_){return KT(_)==="[object Date]"&&vT(_)}function wC(_){return KT(_)==="[object RegExp]"&&vT(_)}function Pc(_){return KT(_)==="[object Error]"&&vT(_)}function bc(_){return KT(_)==="[object String]"&&vT(_)}function kc(_){return KT(_)==="[object Number]"&&vT(_)}function vc(_){return KT(_)==="[object Boolean]"&&vT(_)}function NC(_){if(f_)return _&&typeof _==="object"&&_ instanceof Symbol;if(typeof _==="symbol")return!0;if(!_||typeof _!=="object"||!Hf)return!1;try{return Hf.call(_),!0}catch(T){}return!1}function sc(_){if(!_||typeof _!=="object"||!uf)return!1;try{return uf.call(_),!0}catch(T){}return!1}var tc=Object.prototype.hasOwnProperty||function(_){return _ in this};function ZT(_,T){return tc.call(_,T)}function KT(_){return gc.call(_)}function jc(_){if(_.name)return _.name;var T=Oc.call(nc.call(_),/^function\s*([\w$]+)/);if(T)return T[1];return null}function ZC(_,T){if(_.indexOf)return _.indexOf(T);for(var f=0,C=_.length;f<C;f++)if(_[f]===T)return f;return-1}function dc(_){if(!P_||!_||typeof _!=="object")return!1;try{P_.call(_);try{b_.call(_)}catch(T){return!0}return _ instanceof Map}catch(T){}return!1}function lc(_){if(!U_||!_||typeof _!=="object")return!1;try{U_.call(_,U_);try{W_.call(_,W_)}catch(T){return!0}return _ instanceof WeakMap}catch(T){}return!1}function yc(_){if(!HC||!_||typeof _!=="object")return!1;try{return HC.call(_),!0}catch(T){}return!1}function ic(_){if(!b_||!_||typeof _!=="object")return!1;try{b_.call(_);try{P_.call(_)}catch(T){return!0}return _ instanceof Set}catch(T){}return!1}function rc(_){if(!W_||!_||typeof _!=="object")return!1;try{W_.call(_,W_);try{U_.call(_,U_)}catch(T){return!0}return _ instanceof WeakSet}catch(T){}return!1}function pc(_){if(!_||typeof _!=="object")return!1;if(typeof HTMLElement<"u"&&_ instanceof HTMLElement)return!0;return typeof _.nodeName==="string"&&typeof _.getAttribute==="function"}function BC(_,T){if(_.length>T.maxStringLength){var f=_.length-T.maxStringLength,C="... "+f+" more character"+(f>1?"s":"");return BC(Wf.call(_,0,T.maxStringLength),T)+C}var E=Kc[T.quoteStyle||"single"];E.lastIndex=0;var A=hT.call(hT.call(_,E,"\\$1"),/[\x00-\x1f]/g,oc);return JC(A,"single",T)}function oc(_){var T=_.charCodeAt(0),f={8:"b",9:"t",10:"n",12:"f",13:"r"}[T];if(f)return"\\"+f;return"\\x"+(T<16?"0":"")+$c.call(T.toString(16))}function q_(_){return"Object("+_+")"}function Sf(_){return _+" { ? }"}function QC(_,T,f,C){var E=C?Ff(f,C):WT.call(f,", ");return _+" ("+T+") {"+E+"}"}function ec(_){for(var T=0;T<_.length;T++)if(ZC(_[T],`
|
|
16
|
+
`)>=0)return!1;return!0}function ac(_,T){var f;if(_.indent==="\t")f="\t";else if(typeof _.indent==="number"&&_.indent>0)f=WT.call(Array(_.indent+1)," ");else return null;return{base:f,prev:WT.call(Array(T+1),f)}}function Ff(_,T){if(_.length===0)return"";var f=`
|
|
17
|
+
`+T.prev+T.base;return f+WT.call(_,","+f)+`
|
|
18
|
+
`+T.prev}function m_(_,T){var f=zf(_),C=[];if(f){C.length=_.length;for(var E=0;E<_.length;E++)C[E]=ZT(_,E)?T(_[E],_):""}var A=typeof xf==="function"?xf(_):[],c;if(f_){c={};for(var u=0;u<A.length;u++)c["$"+A[u]]=A[u]}for(var S in _){if(!ZT(_,S))continue;if(f&&String(Number(S))===S&&S<_.length)continue;if(f_&&c["$"+S]instanceof Symbol)continue;else if(DC.call(/[^\w$]/,S))C.push(T(S,_)+": "+T(_[S],_));else C.push(S+": "+T(_[S],_))}if(typeof xf==="function"){for(var U=0;U<A.length;U++)if(MC.call(_,A[U]))C.push("["+T(A[U])+"]: "+T(_[A[U]],_))}return C}});var gC=g((r0,GC)=>{var TR=w_(),_R=kT(),k_=function(_,T,f){var C=_,E;for(;(E=C.next)!=null;C=E)if(E.key===T){if(C.next=E.next,!f)E.next=_.next,_.next=E;return E}},fR=function(_,T){if(!_)return;var f=k_(_,T);return f&&f.value},CR=function(_,T,f){var C=k_(_,T);if(C)C.value=f;else _.next={key:T,next:_.next,value:f}},ER=function(_,T){if(!_)return!1;return!!k_(_,T)},AR=function(_,T){if(_)return k_(_,T,!0)};GC.exports=function(){var T,f={assert:function(C){if(!f.has(C))throw new _R("Side channel does not contain "+TR(C))},delete:function(C){var E=T&&T.next,A=AR(T,C);if(A&&E&&E===A)T=void 0;return!!A},get:function(C){return fR(T,C)},has:function(C){return ER(T,C)},set:function(C,E){if(!T)T={next:void 0};CR(T,C,E)}};return f}});var Yf=g((p0,nC)=>{nC.exports=Object});var $C=g((o0,OC)=>{OC.exports=Error});var KC=g((e0,hC)=>{hC.exports=EvalError});var mC=g((a0,IC)=>{IC.exports=RangeError});var bC=g((TS,PC)=>{PC.exports=ReferenceError});var vC=g((_S,kC)=>{kC.exports=SyntaxError});var tC=g((fS,sC)=>{sC.exports=URIError});var dC=g((CS,jC)=>{jC.exports=Math.abs});var yC=g((ES,lC)=>{lC.exports=Math.floor});var rC=g((AS,iC)=>{iC.exports=Math.max});var oC=g((cS,pC)=>{pC.exports=Math.min});var aC=g((RS,eC)=>{eC.exports=Math.pow});var _E=g((xS,TE)=>{TE.exports=Math.round});var CE=g((SS,fE)=>{fE.exports=Number.isNaN||function(T){return T!==T}});var AE=g((uS,EE)=>{var cR=CE();EE.exports=function(T){if(cR(T)||T===0)return T;return T<0?-1:1}});var RE=g((HS,cE)=>{cE.exports=Object.getOwnPropertyDescriptor});var wf=g((LS,xE)=>{var v_=RE();if(v_)try{v_([],"length")}catch(_){v_=null}xE.exports=v_});var uE=g((zS,SE)=>{var s_=Object.defineProperty||!1;if(s_)try{s_({},"a",{value:1})}catch(_){s_=!1}SE.exports=s_});var LE=g((FS,HE)=>{HE.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var T={},f=Symbol("test"),C=Object(f);if(typeof f==="string")return!1;if(Object.prototype.toString.call(f)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(C)!=="[object Symbol]")return!1;var E=42;T[f]=E;for(var A in T)return!1;if(typeof Object.keys==="function"&&Object.keys(T).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(T).length!==0)return!1;var c=Object.getOwnPropertySymbols(T);if(c.length!==1||c[0]!==f)return!1;if(!Object.prototype.propertyIsEnumerable.call(T,f))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var u=Object.getOwnPropertyDescriptor(T,f);if(u.value!==E||u.enumerable!==!0)return!1}return!0}});var qE=g((qS,FE)=>{var zE=typeof Symbol<"u"&&Symbol,RR=LE();FE.exports=function(){if(typeof zE!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof zE("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return RR()}});var Qf=g((US,UE)=>{UE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Df=g((WS,WE)=>{var xR=Yf();WE.exports=xR.getPrototypeOf||null});var QE=g((YS,wE)=>{var SR="Function.prototype.bind called on incompatible ",uR=Object.prototype.toString,HR=Math.max,LR="[object Function]",YE=function(T,f){var C=[];for(var E=0;E<T.length;E+=1)C[E]=T[E];for(var A=0;A<f.length;A+=1)C[A+T.length]=f[A];return C},zR=function(T,f){var C=[];for(var E=f||0,A=0;E<T.length;E+=1,A+=1)C[A]=T[E];return C},FR=function(_,T){var f="";for(var C=0;C<_.length;C+=1)if(f+=_[C],C+1<_.length)f+=T;return f};wE.exports=function(T){var f=this;if(typeof f!=="function"||uR.apply(f)!==LR)throw TypeError(SR+f);var C=zR(arguments,1),E,A=function(){if(this instanceof E){var z=f.apply(this,YE(C,arguments));if(Object(z)===z)return z;return this}return f.apply(T,YE(C,arguments))},c=HR(0,f.length-C.length),u=[];for(var S=0;S<c;S++)u[S]="$"+S;if(E=Function("binder","return function ("+FR(u,",")+"){ return binder.apply(this,arguments); }")(A),f.prototype){var U=function(){};U.prototype=f.prototype,E.prototype=new U,U.prototype=null}return E}});var Q_=g((wS,DE)=>{var qR=QE();DE.exports=Function.prototype.bind||qR});var t_=g((QS,ME)=>{ME.exports=Function.prototype.call});var Mf=g((DS,XE)=>{XE.exports=Function.prototype.apply});var NE=g((MS,JE)=>{JE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var BE=g((XS,ZE)=>{var UR=Q_(),WR=Mf(),YR=t_(),wR=NE();ZE.exports=wR||UR.call(YR,WR)});var Xf=g((JS,VE)=>{var QR=Q_(),DR=kT(),MR=t_(),XR=BE();VE.exports=function(T){if(T.length<1||typeof T[0]!=="function")throw new DR("a function is required");return XR(QR,MR,T)}});var hE=g((NS,$E)=>{var JR=Xf(),GE=wf(),nE;try{nE=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var Jf=!!nE&&GE&&GE(Object.prototype,"__proto__"),OE=Object,gE=OE.getPrototypeOf;$E.exports=Jf&&typeof Jf.get==="function"?JR([Jf.get]):typeof gE==="function"?function(T){return gE(T==null?T:OE(T))}:!1});var bE=g((ZS,PE)=>{var KE=Qf(),IE=Df(),mE=hE();PE.exports=KE?function(T){return KE(T)}:IE?function(T){if(!T||typeof T!=="object"&&typeof T!=="function")throw TypeError("getProto: not an object");return IE(T)}:mE?function(T){return mE(T)}:null});var vE=g((BS,kE)=>{var NR=Function.prototype.call,ZR=Object.prototype.hasOwnProperty,BR=Q_();kE.exports=BR.call(NR,ZR)});var l_=g((VS,lE)=>{var I,VR=Yf(),GR=$C(),gR=KC(),nR=mC(),OR=bC(),c_=vC(),A_=kT(),$R=tC(),hR=dC(),KR=yC(),IR=rC(),mR=oC(),PR=aC(),bR=_E(),kR=AE(),jE=Function,Nf=function(_){try{return jE('"use strict"; return ('+_+").constructor;")()}catch(T){}},D_=wf(),vR=uE(),Zf=function(){throw new A_},sR=D_?function(){try{return arguments.callee,Zf}catch(_){try{return D_(arguments,"callee").get}catch(T){return Zf}}}():Zf,C_=qE()(),a=bE(),tR=Df(),jR=Qf(),dE=Mf(),M_=t_(),E_={},dR=typeof Uint8Array>"u"||!a?I:a(Uint8Array),sT={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":C_&&a?a([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":E_,"%AsyncGenerator%":E_,"%AsyncGeneratorFunction%":E_,"%AsyncIteratorPrototype%":E_,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":GR,"%eval%":eval,"%EvalError%":gR,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":jE,"%GeneratorFunction%":E_,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C_&&a?a(a([][Symbol.iterator]())):I,"%JSON%":typeof JSON==="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C_||!a?I:a(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":VR,"%Object.getOwnPropertyDescriptor%":D_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":nR,"%ReferenceError%":OR,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C_||!a?I:a(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C_&&a?a(""[Symbol.iterator]()):I,"%Symbol%":C_?Symbol:I,"%SyntaxError%":c_,"%ThrowTypeError%":sR,"%TypedArray%":dR,"%TypeError%":A_,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":$R,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":M_,"%Function.prototype.apply%":dE,"%Object.defineProperty%":vR,"%Object.getPrototypeOf%":tR,"%Math.abs%":hR,"%Math.floor%":KR,"%Math.max%":IR,"%Math.min%":mR,"%Math.pow%":PR,"%Math.round%":bR,"%Math.sign%":kR,"%Reflect.getPrototypeOf%":jR};if(a)try{null.error}catch(_){Bf=a(a(_)),sT["%Error.prototype%"]=Bf}var Bf,lR=function _(T){var f;if(T==="%AsyncFunction%")f=Nf("async function () {}");else if(T==="%GeneratorFunction%")f=Nf("function* () {}");else if(T==="%AsyncGeneratorFunction%")f=Nf("async function* () {}");else if(T==="%AsyncGenerator%"){var C=_("%AsyncGeneratorFunction%");if(C)f=C.prototype}else if(T==="%AsyncIteratorPrototype%"){var E=_("%AsyncGenerator%");if(E&&a)f=a(E.prototype)}return sT[T]=f,f},sE={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X_=Q_(),j_=vE(),yR=X_.call(M_,Array.prototype.concat),iR=X_.call(dE,Array.prototype.splice),tE=X_.call(M_,String.prototype.replace),d_=X_.call(M_,String.prototype.slice),rR=X_.call(M_,RegExp.prototype.exec),pR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oR=/\\(\\)?/g,eR=function(T){var f=d_(T,0,1),C=d_(T,-1);if(f==="%"&&C!=="%")throw new c_("invalid intrinsic syntax, expected closing `%`");else if(C==="%"&&f!=="%")throw new c_("invalid intrinsic syntax, expected opening `%`");var E=[];return tE(T,pR,function(A,c,u,S){E[E.length]=u?tE(S,oR,"$1"):c||A}),E},aR=function(T,f){var C=T,E;if(j_(sE,C))E=sE[C],C="%"+E[0]+"%";if(j_(sT,C)){var A=sT[C];if(A===E_)A=lR(C);if(typeof A>"u"&&!f)throw new A_("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:E,name:C,value:A}}throw new c_("intrinsic "+T+" does not exist!")};lE.exports=function(T,f){if(typeof T!=="string"||T.length===0)throw new A_("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof f!=="boolean")throw new A_('"allowMissing" argument must be a boolean');if(rR(/^%?[^%]*%?$/,T)===null)throw new c_("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var C=eR(T),E=C.length>0?C[0]:"",A=aR("%"+E+"%",f),c=A.name,u=A.value,S=!1,U=A.alias;if(U)E=U[0],iR(C,yR([0,1],U));for(var z=1,q=!0;z<C.length;z+=1){var x=C[z],Q=d_(x,0,1),Y=d_(x,-1);if((Q==='"'||Q==="'"||Q==="`"||(Y==='"'||Y==="'"||Y==="`"))&&Q!==Y)throw new c_("property names with quotes must have matching quotes");if(x==="constructor"||!q)S=!0;if(E+="."+x,c="%"+E+"%",j_(sT,c))u=sT[c];else if(u!=null){if(!(x in u)){if(!f)throw new A_("base intrinsic for "+T+" exists, but the property is not available.");return}if(D_&&z+1>=C.length){var W=D_(u,x);if(q=!!W,q&&"get"in W&&!("originalValue"in W.get))u=W.get;else u=u[x]}else q=j_(u,x),u=u[x];if(q&&!S)sT[c]=u}}return u}});var Vf=g((GS,rE)=>{var yE=l_(),iE=Xf(),Tx=iE([yE("%String.prototype.indexOf%")]);rE.exports=function(T,f){var C=yE(T,!!f);if(typeof C==="function"&&Tx(T,".prototype.")>-1)return iE([C]);return C}});var Gf=g((gS,oE)=>{var _x=l_(),J_=Vf(),fx=w_(),Cx=kT(),pE=_x("%Map%",!0),Ex=J_("Map.prototype.get",!0),Ax=J_("Map.prototype.set",!0),cx=J_("Map.prototype.has",!0),Rx=J_("Map.prototype.delete",!0),xx=J_("Map.prototype.size",!0);oE.exports=!!pE&&function(){var T,f={assert:function(C){if(!f.has(C))throw new Cx("Side channel does not contain "+fx(C))},delete:function(C){if(T){var E=Rx(T,C);if(xx(T)===0)T=void 0;return E}return!1},get:function(C){if(T)return Ex(T,C)},has:function(C){if(T)return cx(T,C);return!1},set:function(C,E){if(!T)T=new pE;Ax(T,C,E)}};return f}});var aE=g((nS,eE)=>{var Sx=l_(),i_=Vf(),ux=w_(),y_=Gf(),Hx=kT(),R_=Sx("%WeakMap%",!0),Lx=i_("WeakMap.prototype.get",!0),zx=i_("WeakMap.prototype.set",!0),Fx=i_("WeakMap.prototype.has",!0),qx=i_("WeakMap.prototype.delete",!0);eE.exports=R_?function(){var T,f,C={assert:function(E){if(!C.has(E))throw new Hx("Side channel does not contain "+ux(E))},delete:function(E){if(R_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return qx(T,E)}else if(y_){if(f)return f.delete(E)}return!1},get:function(E){if(R_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return Lx(T,E)}return f&&f.get(E)},has:function(E){if(R_&&E&&(typeof E==="object"||typeof E==="function")){if(T)return Fx(T,E)}return!!f&&f.has(E)},set:function(E,A){if(R_&&E&&(typeof E==="object"||typeof E==="function")){if(!T)T=new R_;zx(T,E,A)}else if(y_){if(!f)f=y_();f.set(E,A)}}};return C}:y_});var gf=g((OS,TA)=>{var Ux=kT(),Wx=w_(),Yx=gC(),wx=Gf(),Qx=aE(),Dx=Qx||wx||Yx;TA.exports=function(){var T,f={assert:function(C){if(!f.has(C))throw new Ux("Side channel does not contain "+Wx(C))},delete:function(C){return!!T&&T.delete(C)},get:function(C){return T&&T.get(C)},has:function(C){return!!T&&T.has(C)},set:function(C,E){if(!T)T=Dx();T.set(C,E)}};return f}});var r_=g(($S,_A)=>{var Mx=String.prototype.replace,Xx=/%20/g,nf={RFC1738:"RFC1738",RFC3986:"RFC3986"};_A.exports={default:nf.RFC3986,formatters:{RFC1738:function(_){return Mx.call(_,Xx,"+")},RFC3986:function(_){return String(_)}},RFC1738:nf.RFC1738,RFC3986:nf.RFC3986}});var Kf=g((hS,fA)=>{var Jx=r_(),Nx=gf(),Of=Object.prototype.hasOwnProperty,tT=Array.isArray,p_=Nx(),x_=function(T,f){return p_.set(T,f),T},jT=function(T){return p_.has(T)},N_=function(T){return p_.get(T)},hf=function(T,f){p_.set(T,f)},YT=function(){var _=[];for(var T=0;T<256;++T)_[_.length]="%"+((T<16?"0":"")+T.toString(16)).toUpperCase();return _}(),Zx=function(T){while(T.length>1){var f=T.pop(),C=f.obj[f.prop];if(tT(C)){var E=[];for(var A=0;A<C.length;++A)if(typeof C[A]<"u")E[E.length]=C[A];f.obj[f.prop]=E}}},Z_=function(T,f){var C=f&&f.plainObjects?{__proto__:null}:{};for(var E=0;E<T.length;++E)if(typeof T[E]<"u")C[E]=T[E];return C},Bx=function _(T,f,C){if(!f)return T;if(typeof f!=="object"&&typeof f!=="function"){if(tT(T)){var E=T.length;if(C&&typeof C.arrayLimit==="number"&&E>C.arrayLimit)return x_(Z_(T.concat(f),C),E);T[E]=f}else if(T&&typeof T==="object"){if(jT(T)){var A=N_(T)+1;T[A]=f,hf(T,A)}else if(C&&C.strictMerge)return[T,f];else if(C&&(C.plainObjects||C.allowPrototypes)||!Of.call(Object.prototype,f))T[f]=!0}else return[T,f];return T}if(!T||typeof T!=="object"){if(jT(f)){var c=Object.keys(f),u=C&&C.plainObjects?{__proto__:null,0:T}:{0:T};for(var S=0;S<c.length;S++){var U=parseInt(c[S],10);u[U+1]=f[c[S]]}return x_(u,N_(f)+1)}var z=[T].concat(f);if(C&&typeof C.arrayLimit==="number"&&z.length>C.arrayLimit)return x_(Z_(z,C),z.length-1);return z}var q=T;if(tT(T)&&!tT(f))q=Z_(T,C);if(tT(T)&&tT(f))return f.forEach(function(x,Q){if(Of.call(T,Q)){var Y=T[Q];if(Y&&typeof Y==="object"&&x&&typeof x==="object")T[Q]=_(Y,x,C);else T[T.length]=x}else T[Q]=x}),T;return Object.keys(f).reduce(function(x,Q){var Y=f[Q];if(Of.call(x,Q))x[Q]=_(x[Q],Y,C);else x[Q]=Y;if(jT(f)&&!jT(x))x_(x,N_(f));if(jT(x)){var W=parseInt(Q,10);if(String(W)===Q&&W>=0&&W>N_(x))hf(x,W)}return x},q)},Vx=function(T,f){return Object.keys(f).reduce(function(C,E){return C[E]=f[E],C},T)},Gx=function(_,T,f){var C=_.replace(/\+/g," ");if(f==="iso-8859-1")return C.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(C)}catch(E){return C}},$f=1024,gx=function(T,f,C,E,A){if(T.length===0)return T;var c=T;if(typeof T==="symbol")c=Symbol.prototype.toString.call(T);else if(typeof T!=="string")c=String(T);if(C==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(Q){return"%26%23"+parseInt(Q.slice(2),16)+"%3B"});var u="";for(var S=0;S<c.length;S+=$f){var U=c.length>=$f?c.slice(S,S+$f):c,z=[];for(var q=0;q<U.length;++q){var x=U.charCodeAt(q);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||A===Jx.RFC1738&&(x===40||x===41)){z[z.length]=U.charAt(q);continue}if(x<128){z[z.length]=YT[x];continue}if(x<2048){z[z.length]=YT[192|x>>6]+YT[128|x&63];continue}if(x<55296||x>=57344){z[z.length]=YT[224|x>>12]+YT[128|x>>6&63]+YT[128|x&63];continue}q+=1,x=65536+((x&1023)<<10|U.charCodeAt(q)&1023),z[z.length]=YT[240|x>>18]+YT[128|x>>12&63]+YT[128|x>>6&63]+YT[128|x&63]}u+=z.join("")}return u},nx=function(T){var f=[{obj:{o:T},prop:"o"}],C=[];for(var E=0;E<f.length;++E){var A=f[E],c=A.obj[A.prop],u=Object.keys(c);for(var S=0;S<u.length;++S){var U=u[S],z=c[U];if(typeof z==="object"&&z!==null&&C.indexOf(z)===-1)f[f.length]={obj:c,prop:U},C[C.length]=z}}return Zx(f),T},Ox=function(T){return Object.prototype.toString.call(T)==="[object RegExp]"},$x=function(T){if(!T||typeof T!=="object")return!1;return!!(T.constructor&&T.constructor.isBuffer&&T.constructor.isBuffer(T))},hx=function(T,f,C,E){if(jT(T)){var A=N_(T)+1;return T[A]=f,hf(T,A),T}var c=[].concat(T,f);if(c.length>C)return x_(Z_(c,{plainObjects:E}),c.length-1);return c},Kx=function(T,f){if(tT(T)){var C=[];for(var E=0;E<T.length;E+=1)C[C.length]=f(T[E]);return C}return f(T)};fA.exports={arrayToObject:Z_,assign:Vx,combine:hx,compact:nx,decode:Gx,encode:gx,isBuffer:$x,isOverflow:jT,isRegExp:Ox,markOverflow:x_,maybeMap:Kx,merge:Bx}});var xA=g((KS,RA)=>{var EA=gf(),o_=Kf(),B_=r_(),Ix=Object.prototype.hasOwnProperty,AA={brackets:function(T){return T+"[]"},comma:"comma",indices:function(T,f){return T+"["+f+"]"},repeat:function(T){return T}},wT=Array.isArray,mx=Array.prototype.push,cA=function(_,T){mx.apply(_,wT(T)?T:[T])},Px=Date.prototype.toISOString,CA=B_.default,e={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o_.encode,encodeValuesOnly:!1,filter:void 0,format:CA,formatter:B_.formatters[CA],indices:!1,serializeDate:function(T){return Px.call(T)},skipNulls:!1,strictNullHandling:!1},bx=function(T){return typeof T==="string"||typeof T==="number"||typeof T==="boolean"||typeof T==="symbol"||typeof T==="bigint"},If={},kx=function _(T,f,C,E,A,c,u,S,U,z,q,x,Q,Y,W,P,L,i){var n=T,j=i,$=0,b=!1;while((j=j.get(If))!==void 0&&!b){var k=j.get(T);if($+=1,typeof k<"u")if(k===$)throw RangeError("Cyclic object value");else b=!0;if(typeof j.get(If)>"u")$=0}if(typeof z==="function")n=z(f,n);else if(n instanceof Date)n=Q(n);else if(C==="comma"&&wT(n))n=o_.maybeMap(n,function(yT){if(yT instanceof Date)return Q(yT);return yT});if(n===null){if(c)return U&&!P?U(f,e.encoder,L,"key",Y):f;n=""}if(bx(n)||o_.isBuffer(n)){if(U){var G=P?f:U(f,e.encoder,L,"key",Y);return[W(G)+"="+W(U(n,e.encoder,L,"value",Y))]}return[W(f)+"="+W(String(n))]}var M=[];if(typeof n>"u")return M;var Z;if(C==="comma"&&wT(n)){if(P&&U)n=o_.maybeMap(n,U);Z=[{value:n.length>0?n.join(",")||null:void 0}]}else if(wT(z))Z=z;else{var V=Object.keys(n);Z=q?V.sort(q):V}var s=S?String(f).replace(/\./g,"%2E"):String(f),r=E&&wT(n)&&n.length===1?s+"[]":s;if(A&&wT(n)&&n.length===0)return r+"[]";for(var ET=0;ET<Z.length;++ET){var fT=Z[ET],GT=typeof fT==="object"&&fT&&typeof fT.value<"u"?fT.value:n[fT];if(u&>===null)continue;var lT=x&&S?String(fT).replace(/\./g,"%2E"):String(fT),O_=wT(n)?typeof C==="function"?C(r,lT):r:r+(x?"."+lT:"["+lT+"]");i.set(T,$);var u_=EA();u_.set(If,i),cA(M,_(GT,O_,C,E,A,c,u,S,C==="comma"&&P&&wT(n)?null:U,z,q,x,Q,Y,W,P,L,u_))}return M},vx=function(T){if(!T)return e;if(typeof T.allowEmptyArrays<"u"&&typeof T.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.encodeDotInKeys<"u"&&typeof T.encodeDotInKeys!=="boolean")throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(T.encoder!==null&&typeof T.encoder<"u"&&typeof T.encoder!=="function")throw TypeError("Encoder has to be a function.");var f=T.charset||e.charset;if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var C=B_.default;if(typeof T.format<"u"){if(!Ix.call(B_.formatters,T.format))throw TypeError("Unknown format option provided.");C=T.format}var E=B_.formatters[C],A=e.filter;if(typeof T.filter==="function"||wT(T.filter))A=T.filter;var c;if(T.arrayFormat in AA)c=T.arrayFormat;else if("indices"in T)c=T.indices?"indices":"repeat";else c=e.arrayFormat;if("commaRoundTrip"in T&&typeof T.commaRoundTrip!=="boolean")throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof T.allowDots>"u"?T.encodeDotInKeys===!0?!0:e.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix==="boolean"?T.addQueryPrefix:e.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:e.allowEmptyArrays,arrayFormat:c,charset:f,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:e.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?e.delimiter:T.delimiter,encode:typeof T.encode==="boolean"?T.encode:e.encode,encodeDotInKeys:typeof T.encodeDotInKeys==="boolean"?T.encodeDotInKeys:e.encodeDotInKeys,encoder:typeof T.encoder==="function"?T.encoder:e.encoder,encodeValuesOnly:typeof T.encodeValuesOnly==="boolean"?T.encodeValuesOnly:e.encodeValuesOnly,filter:A,format:C,formatter:E,serializeDate:typeof T.serializeDate==="function"?T.serializeDate:e.serializeDate,skipNulls:typeof T.skipNulls==="boolean"?T.skipNulls:e.skipNulls,sort:typeof T.sort==="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:e.strictNullHandling}};RA.exports=function(_,T){var f=_,C=vx(T),E,A;if(typeof C.filter==="function")A=C.filter,f=A("",f);else if(wT(C.filter))A=C.filter,E=A;var c=[];if(typeof f!=="object"||f===null)return"";var u=AA[C.arrayFormat],S=u==="comma"&&C.commaRoundTrip;if(!E)E=Object.keys(f);if(C.sort)E.sort(C.sort);var U=EA();for(var z=0;z<E.length;++z){var q=E[z],x=f[q];if(C.skipNulls&&x===null)continue;cA(c,kx(x,q,u,S,C.allowEmptyArrays,C.strictNullHandling,C.skipNulls,C.encodeDotInKeys,C.encode?C.encoder:null,C.filter,C.sort,C.allowDots,C.serializeDate,C.format,C.formatter,C.encodeValuesOnly,C.charset,U))}var Q=c.join(C.delimiter),Y=C.addQueryPrefix===!0?"?":"";if(C.charsetSentinel)if(C.charset==="iso-8859-1")Y+="utf8=%26%2310003%3B&";else Y+="utf8=%E2%9C%93&";return Q.length>0?Y+Q:""}});var HA=g((IS,uA)=>{var QT=Kf(),e_=Object.prototype.hasOwnProperty,mf=Array.isArray,t={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:QT.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1000,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},sx=function(_){return _.replace(/&#(\d+);/g,function(T,f){return String.fromCharCode(parseInt(f,10))})},SA=function(_,T,f){if(_&&typeof _==="string"&&T.comma&&_.indexOf(",")>-1)return _.split(",");if(T.throwOnLimitExceeded&&f>=T.arrayLimit)throw RangeError("Array limit exceeded. Only "+T.arrayLimit+" element"+(T.arrayLimit===1?"":"s")+" allowed in an array.");return _},tx="utf8=%26%2310003%3B",jx="utf8=%E2%9C%93",dx=function(T,f){var C={__proto__:null},E=f.ignoreQueryPrefix?T.replace(/^\?/,""):T;E=E.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var A=f.parameterLimit===1/0?void 0:f.parameterLimit,c=E.split(f.delimiter,f.throwOnLimitExceeded?A+1:A);if(f.throwOnLimitExceeded&&c.length>A)throw RangeError("Parameter limit exceeded. Only "+A+" parameter"+(A===1?"":"s")+" allowed.");var u=-1,S,U=f.charset;if(f.charsetSentinel){for(S=0;S<c.length;++S)if(c[S].indexOf("utf8=")===0){if(c[S]===jx)U="utf-8";else if(c[S]===tx)U="iso-8859-1";u=S,S=c.length}}for(S=0;S<c.length;++S){if(S===u)continue;var z=c[S],q=z.indexOf("]="),x=q===-1?z.indexOf("="):q+1,Q,Y;if(x===-1)Q=f.decoder(z,t.decoder,U,"key"),Y=f.strictNullHandling?null:"";else if(Q=f.decoder(z.slice(0,x),t.decoder,U,"key"),Q!==null)Y=QT.maybeMap(SA(z.slice(x+1),f,mf(C[Q])?C[Q].length:0),function(P){return f.decoder(P,t.decoder,U,"value")});if(Y&&f.interpretNumericEntities&&U==="iso-8859-1")Y=sx(String(Y));if(z.indexOf("[]=")>-1)Y=mf(Y)?[Y]:Y;if(f.comma&&mf(Y)&&Y.length>f.arrayLimit){if(f.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");Y=QT.combine([],Y,f.arrayLimit,f.plainObjects)}if(Q!==null){var W=e_.call(C,Q);if(W&&(f.duplicates==="combine"||z.indexOf("[]=")>-1))C[Q]=QT.combine(C[Q],Y,f.arrayLimit,f.plainObjects);else if(!W||f.duplicates==="last")C[Q]=Y}}return C},lx=function(_,T,f,C){var E=0;if(_.length>0&&_[_.length-1]==="[]"){var A=_.slice(0,-1).join("");E=Array.isArray(T)&&T[A]?T[A].length:0}var c=C?T:SA(T,f,E);for(var u=_.length-1;u>=0;--u){var S,U=_[u];if(U==="[]"&&f.parseArrays)if(QT.isOverflow(c))S=c;else S=f.allowEmptyArrays&&(c===""||f.strictNullHandling&&c===null)?[]:QT.combine([],c,f.arrayLimit,f.plainObjects);else{S=f.plainObjects?{__proto__:null}:{};var z=U.charAt(0)==="["&&U.charAt(U.length-1)==="]"?U.slice(1,-1):U,q=f.decodeDotInKeys?z.replace(/%2E/g,"."):z,x=parseInt(q,10),Q=!isNaN(x)&&U!==q&&String(x)===q&&x>=0&&f.parseArrays;if(!f.parseArrays&&q==="")S={0:c};else if(Q&&x<f.arrayLimit)S=[],S[x]=c;else if(Q&&f.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");else if(Q)S[x]=c,QT.markOverflow(S,x);else if(q!=="__proto__")S[q]=c}c=S}return c},yx=function(T,f){var C=f.allowDots?T.replace(/\.([^.[]+)/g,"[$1]"):T;if(f.depth<=0){if(!f.plainObjects&&e_.call(Object.prototype,C)){if(!f.allowPrototypes)return}return[C]}var E=/(\[[^[\]]*])/,A=/(\[[^[\]]*])/g,c=E.exec(C),u=c?C.slice(0,c.index):C,S=[];if(u){if(!f.plainObjects&&e_.call(Object.prototype,u)){if(!f.allowPrototypes)return}S[S.length]=u}var U=0;while((c=A.exec(C))!==null&&U<f.depth){U+=1;var z=c[1].slice(1,-1);if(!f.plainObjects&&e_.call(Object.prototype,z)){if(!f.allowPrototypes)return}S[S.length]=c[1]}if(c){if(f.strictDepth===!0)throw RangeError("Input depth exceeded depth option of "+f.depth+" and strictDepth is true");S[S.length]="["+C.slice(c.index)+"]"}return S},ix=function(T,f,C,E){if(!T)return;var A=yx(T,C);if(!A)return;return lx(A,f,C,E)},rx=function(T){if(!T)return t;if(typeof T.allowEmptyArrays<"u"&&typeof T.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof T.decodeDotInKeys<"u"&&typeof T.decodeDotInKeys!=="boolean")throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(T.decoder!==null&&typeof T.decoder<"u"&&typeof T.decoder!=="function")throw TypeError("Decoder has to be a function.");if(typeof T.charset<"u"&&T.charset!=="utf-8"&&T.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof T.throwOnLimitExceeded<"u"&&typeof T.throwOnLimitExceeded!=="boolean")throw TypeError("`throwOnLimitExceeded` option must be a boolean");var f=typeof T.charset>"u"?t.charset:T.charset,C=typeof T.duplicates>"u"?t.duplicates:T.duplicates;if(C!=="combine"&&C!=="first"&&C!=="last")throw TypeError("The duplicates option must be either combine, first, or last");var E=typeof T.allowDots>"u"?T.decodeDotInKeys===!0?!0:t.allowDots:!!T.allowDots;return{allowDots:E,allowEmptyArrays:typeof T.allowEmptyArrays==="boolean"?!!T.allowEmptyArrays:t.allowEmptyArrays,allowPrototypes:typeof T.allowPrototypes==="boolean"?T.allowPrototypes:t.allowPrototypes,allowSparse:typeof T.allowSparse==="boolean"?T.allowSparse:t.allowSparse,arrayLimit:typeof T.arrayLimit==="number"?T.arrayLimit:t.arrayLimit,charset:f,charsetSentinel:typeof T.charsetSentinel==="boolean"?T.charsetSentinel:t.charsetSentinel,comma:typeof T.comma==="boolean"?T.comma:t.comma,decodeDotInKeys:typeof T.decodeDotInKeys==="boolean"?T.decodeDotInKeys:t.decodeDotInKeys,decoder:typeof T.decoder==="function"?T.decoder:t.decoder,delimiter:typeof T.delimiter==="string"||QT.isRegExp(T.delimiter)?T.delimiter:t.delimiter,depth:typeof T.depth==="number"||T.depth===!1?+T.depth:t.depth,duplicates:C,ignoreQueryPrefix:T.ignoreQueryPrefix===!0,interpretNumericEntities:typeof T.interpretNumericEntities==="boolean"?T.interpretNumericEntities:t.interpretNumericEntities,parameterLimit:typeof T.parameterLimit==="number"?T.parameterLimit:t.parameterLimit,parseArrays:T.parseArrays!==!1,plainObjects:typeof T.plainObjects==="boolean"?T.plainObjects:t.plainObjects,strictDepth:typeof T.strictDepth==="boolean"?!!T.strictDepth:t.strictDepth,strictMerge:typeof T.strictMerge==="boolean"?!!T.strictMerge:t.strictMerge,strictNullHandling:typeof T.strictNullHandling==="boolean"?T.strictNullHandling:t.strictNullHandling,throwOnLimitExceeded:typeof T.throwOnLimitExceeded==="boolean"?T.throwOnLimitExceeded:!1}};uA.exports=function(_,T){var f=rx(T);if(_===""||_===null||typeof _>"u")return f.plainObjects?{__proto__:null}:{};var C=typeof _==="string"?dx(_,f):_,E=f.plainObjects?{__proto__:null}:{},A=Object.keys(C);for(var c=0;c<A.length;++c){var u=A[c],S=ix(u,C[u],f,typeof _==="string");E=QT.merge(E,S,f)}if(f.allowSparse===!0)return E;return QT.compact(E)}});var zA=g((mS,LA)=>{var px=xA(),ox=HA(),ex=r_();LA.exports={formats:ex,parse:ox,stringify:px}});var y1=$_(h_(),1);var af={};of(af,{zodSchemaKey:()=>dA,webSocketServerArgsKey:()=>TT,webSocketMessageArgsKey:()=>PT,webSocketKey:()=>LT,webSocketEventKey:()=>mT,webSocketEventArgumentsKey:()=>_T,webSocketConnectionArgsKey:()=>zT,webSocketCloseReasonArgsKey:()=>z_,webSocketCloseCodeArgsKey:()=>L_,routeModelArgsKey:()=>xT,responseStatusTextArgsKey:()=>T_,responseStatusArgsKey:()=>bT,responseHeadersArgsKey:()=>RT,responseBodyArgsKey:()=>aT,requestHeadersArgsKey:()=>gT,requestHeaderArgsKey:()=>qT,requestBodyArgsKey:()=>nT,requestArgsKey:()=>UT,queryArgsKey:()=>F_,paramsArgsKey:()=>eT,paramArgsKey:()=>OT,moduleKey:()=>cT,middlewareKey:()=>NT,interceptorKey:()=>MT,injectableKey:()=>JT,injectKey:()=>oT,httpServerArgsKey:()=>FT,guardKey:()=>XT,controllerKey:()=>uT,controllerHttpKey:()=>pT,contextArgsKey:()=>$T,containerKey:()=>HT,configKey:()=>K_,argumentsKey:()=>K});var K=Symbol.for("____boolTypescriptCore:arguments__"),_T=Symbol.for("____boolTypescriptCore:webSocketEventArguments__"),K_=Symbol.for("____boolTypescriptCore:config__"),uT=Symbol.for("____boolTypescriptCore:controller__"),MT=Symbol.for("____boolTypescriptCore:interceptor__"),XT=Symbol.for("____boolTypescriptCore:guard__"),pT=Symbol.for("____boolTypescriptCore:controller.http__"),oT=Symbol.for("____boolTypescriptCore:inject__"),JT=Symbol.for("____boolTypescriptCore:injectable__"),NT=Symbol.for("____boolTypescriptCore:middleware__"),cT=Symbol.for("____boolTypescriptCore:module__"),HT=Symbol.for("____boolTypescriptCore:container__"),dA=Symbol.for("____boolTypescriptCore:zodSchema__"),LT=Symbol.for("____boolTypescriptCore:webSocket__"),mT=Symbol.for("____boolTypescriptCore:webSocket:event__"),TT=Symbol.for("____boolTypescriptCore:webSocketArguments:server__"),zT=Symbol.for("____boolTypescriptCore:webSocketArguments:connection__"),PT=Symbol.for("____boolTypescriptCore:webSocketArguments:message__"),L_=Symbol.for("____boolTypescriptCore:webSocketArguments:closeCode__"),z_=Symbol.for("____boolTypescriptCore:webSocketArguments:closeReason__"),FT=Symbol.for("____boolTypescriptCore:httpArguments:server__"),gT=Symbol.for("____boolTypescriptCore:httpArguments:requestHeaders__"),qT=Symbol.for("____boolTypescriptCore:httpArguments:requestHeader__"),nT=Symbol.for("____boolTypescriptCore:httpArguments:requestBody__"),eT=Symbol.for("____boolTypescriptCore:httpArguments:params__"),OT=Symbol.for("____boolTypescriptCore:httpArguments:param__"),F_=Symbol.for("____boolTypescriptCore:httpArguments:query__"),UT=Symbol.for("____boolTypescriptCore:httpArguments:request__"),RT=Symbol.for("____boolTypescriptCore:httpArguments:responseHeaders__"),$T=Symbol.for("____boolTypescriptCore:httpArguments:context__"),xT=Symbol.for("____boolTypescriptCore:httpArguments:routeModel__"),aT=Symbol.for("____boolTypescriptCore:httpArguments:responseBody__"),bT=Symbol.for("____boolTypescriptCore:httpArguments:responseStatus__"),T_=Symbol.for("____boolTypescriptCore:httpArguments:responseStatusText__");var p={};of(p,{successfulStatuses:()=>_C,serverErrorStatuses:()=>EC,redirectionStatuses:()=>fC,informationalStatuses:()=>TC,httpStatuses:()=>lA,clientErrorStatuses:()=>CC});var TC=Object.freeze({CONTINUE:Object.freeze({status:100,statusText:"Continue"}),SWITCHING_PROTOCOLS:Object.freeze({status:101,statusText:"Switching Protocols"}),EARLY_HINTS:Object.freeze({status:103,statusText:"Early Hints"})}),_C=Object.freeze({OK:Object.freeze({status:200,statusText:"OK"}),CREATED:Object.freeze({status:201,statusText:"Created"}),ACCEPTED:Object.freeze({status:202,statusText:"Accepted"}),NON_AUTHORITATIVE_INFORMATION:Object.freeze({status:203,statusText:"Non-Authoritative Information"}),NO_CONTENT:Object.freeze({status:204,statusText:"No Content"}),RESET_CONTENT:Object.freeze({status:205,statusText:"Reset Content"}),PARTIAL_CONTENT:Object.freeze({status:206,statusText:"Partial Content"}),MULTI_STATUS:Object.freeze({status:207,statusText:"Multi-Status"}),ALREADY_REPORTED:Object.freeze({status:208,statusText:"Already Reported"}),IM_USED:Object.freeze({status:226,statusText:"IM Used"})}),fC=Object.freeze({MULTIPLE_CHOICES:Object.freeze({status:300,statusText:"Multiple Choices"}),MOVED_PERMANENTLY:Object.freeze({status:301,statusText:"Moved Permanently"}),FOUND:Object.freeze({status:302,statusText:"Found"}),SEE_OTHER:Object.freeze({status:303,statusText:"See Other"}),NOT_MODIFIED:Object.freeze({status:304,statusText:"Not Modified"}),UNUSED:Object.freeze({status:306,statusText:"Unused"}),TEMPORARY_REDIRECT:Object.freeze({status:307,statusText:"Temporary Redirect"}),PERMANENT_REDIRECT:Object.freeze({status:308,statusText:"Permanent Redirect"})}),CC=Object.freeze({BAD_REQUEST:Object.freeze({status:400,statusText:"Bad Request"}),UNAUTHORIZED:Object.freeze({status:401,statusText:"Unauthorized"}),PAYMENT_REQUIRED:Object.freeze({status:402,statusText:"Payment Required"}),FORBIDDEN:Object.freeze({status:403,statusText:"Forbidden"}),NOT_FOUND:Object.freeze({status:404,statusText:"Not Found"}),METHOD_NOT_ALLOWED:Object.freeze({status:405,statusText:"Method Not Allowed"}),NOT_ACCEPTABLE:Object.freeze({status:406,statusText:"Not Acceptable"}),PROXY_AUTHENTICATION_REQUIRED:Object.freeze({status:407,statusText:"Proxy Authentication Required"}),REQUEST_TIMEOUT:Object.freeze({status:408,statusText:"Request Timeout"}),CONFLICT:Object.freeze({status:409,statusText:"Conflict"}),GONE:Object.freeze({status:410,statusText:"Gone"}),LENGTH_REQUIRED:Object.freeze({status:411,statusText:"Length Required"}),PRECONDITION_FAILED:Object.freeze({status:412,statusText:"Precondition Failed"}),CONTENT_TOO_LARGE:Object.freeze({status:413,statusText:"Content Too Large"}),URI_TOO_LONG:Object.freeze({status:414,statusText:"URI Too Long"}),UNSUPPORTED_MEDIA_TYPE:Object.freeze({status:415,statusText:"Unsupported Media Type"}),RANGE_NOT_SATISFIABLE:Object.freeze({status:416,statusText:"Range Not Satisfiable"}),EXPECTATION_FAILED:Object.freeze({status:417,statusText:"Expectation Failed"}),I_AM_A_TEAPOT:Object.freeze({status:418,statusText:"I'm a teapot"}),MISDIRECTED_REQUEST:Object.freeze({status:421,statusText:"Misdirected Request"}),UNPROCESSABLE_CONTENT:Object.freeze({status:422,statusText:"Unprocessable Content"}),LOCKED:Object.freeze({status:423,statusText:"Locked"}),FAILED_DEPENDENCY:Object.freeze({status:424,statusText:"Failed Dependency"}),TOO_EARLY:Object.freeze({status:425,statusText:"Too Early"}),UPGRADE_REQUIRED:Object.freeze({status:426,statusText:"Upgrade Required"}),PRECONDITION_REQUIRED:Object.freeze({status:428,statusText:"Precondition Required"}),TOO_MANY_REQUESTS:Object.freeze({status:429,statusText:"Too Many Requests"}),REQUEST_HEADER_FIELDS_TOO_LARGE:Object.freeze({status:431,statusText:"Request Header Fields Too Large"}),UNAVAILABLE_FOR_LEGAL_REASONS:Object.freeze({status:451,statusText:"Unavailable For Legal Reasons"})}),EC=Object.freeze({INTERNAL_SERVER_ERROR:Object.freeze({status:500,statusText:"Internal Server Error"}),NOT_IMPLEMENTED:Object.freeze({status:501,statusText:"Not Implemented"}),BAD_GATEWAY:Object.freeze({status:502,statusText:"Bad Gateway"}),SERVICE_UNAVAILABLE:Object.freeze({status:503,statusText:"Service Unavailable"}),GATEWAY_TIMEOUT:Object.freeze({status:504,statusText:"Gateway Timeout"}),HTTP_VERSION_NOT_SUPPORTED:Object.freeze({status:505,statusText:"HTTP Version Not Supported"}),VARIANT_ALSO_NEGOTIATES:Object.freeze({status:506,statusText:"Variant Also Negotiates"}),INSUFFICIENT_STORAGE:Object.freeze({status:507,statusText:"Insufficient Storage"}),LOOP_DETECTED:Object.freeze({status:508,statusText:"Loop Detected"}),NOT_EXTENDED:Object.freeze({status:510,statusText:"Not Extended"}),NETWORK_AUTHENTICATION_REQUIRED:Object.freeze({status:511,statusText:"Network Authentication Required"})}),lA=Object.freeze({...TC,..._C,...fC,...CC,...EC});var yA=(_)=>(T,f,C)=>{if(!f)return;let E=Reflect.getOwnMetadata(K,T.constructor,f)||{};E[`argumentIndexes.${C}`]={index:C,type:gT,validationSchema:_},Reflect.defineMetadata(K,E,T.constructor,f)},iA=(_,T)=>(f,C,E)=>{if(!C)return;let A=Reflect.getOwnMetadata(K,f.constructor,C)||{};A[`argumentIndexes.${E}`]={index:E,type:qT,key:_,validationSchema:T},Reflect.defineMetadata(K,A,f.constructor,C)},rA=(_,T)=>(f,C,E)=>{if(!C)return;let A=Reflect.getOwnMetadata(K,f.constructor,C)||{};A[`argumentIndexes.${E}`]={index:E,type:nT,validationSchema:_,parser:T},Reflect.defineMetadata(K,A,f.constructor,C)},pA=(_)=>(T,f,C)=>{if(!f)return;let E=Reflect.getOwnMetadata(K,T.constructor,f)||{};E[`argumentIndexes.${C}`]={index:C,type:eT,validationSchema:_},Reflect.defineMetadata(K,E,T.constructor,f)},oA=(_,T)=>(f,C,E)=>{if(!C)return;let A=Reflect.getOwnMetadata(K,f.constructor,C)||{};A[`argumentIndexes.${E}`]={index:E,type:OT,key:_,validationSchema:T},Reflect.defineMetadata(K,A,f.constructor,C)},eA=(_)=>(T,f,C)=>{if(!f)return;let E=Reflect.getOwnMetadata(K,T.constructor,f)||{};E[`argumentIndexes.${C}`]={index:C,type:F_,validationSchema:_},Reflect.defineMetadata(K,E,T.constructor,f)},aA=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(K,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:UT},Reflect.defineMetadata(K,C,_.constructor,T)},Tc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(K,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:RT},Reflect.defineMetadata(K,C,_.constructor,T)},_c=(_)=>(T,f,C)=>{if(!f)return;let E=Reflect.getOwnMetadata(K,T.constructor,f)||{};E[`argumentIndexes.${C}`]={index:C,type:$T,key:_},Reflect.defineMetadata(K,E,T.constructor,f)},fc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(K,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:xT},Reflect.defineMetadata(K,C,_.constructor,T)},Cc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(K,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:FT},Reflect.defineMetadata(K,C,_.constructor,T)};var Ec=(_)=>(T)=>{let{modules:f,middlewares:C,guards:E,interceptors:A,dependencies:c}=_||{};if(Reflect.hasOwnMetadata(cT,T))throw Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);if(f){let u=[];for(let S of f){if(!Reflect.getOwnMetadataKeys(S).includes(cT))throw Error(`[${S.name}] is not a module.`);let U=Reflect.getOwnMetadata(cT,S);if(u.includes(U?.prefix||""))throw Error(`Duplicated prefix of module [${S.name}].`)}}if(C){for(let u of C)if(!Reflect.getOwnMetadataKeys(u).includes(NT))throw Error(`[${u.name}] is not a middleware.`)}if(E){for(let u of E)if(!Reflect.getOwnMetadataKeys(u).includes(XT))throw Error(`[${u.name}] is not a guard.`)}if(A){for(let u of A)if(!Reflect.getOwnMetadataKeys(u).includes(MT))throw Error(`${u.name} is not a middleware.`)}if(c){for(let u of c)if(!Reflect.getOwnMetadataKeys(u).includes(JT))throw Error(`${u.name} is not an injectable.`)}Reflect.defineMetadata(HT,_,T)};var Ac=(_)=>(T)=>{let f={prefix:!_?.startsWith("/")?`/${_||""}`:_,httpMetadata:[...Reflect.getOwnMetadata(pT,T)||[]]};Reflect.defineMetadata(uT,f,T)};var cc=()=>(_)=>{if(!("enforce"in _.prototype)||typeof _.prototype.enforce!=="function")return;let T=void 0;return Reflect.defineMetadata(XT,T,_),_};var __=(_,T)=>(f,C,E)=>{if(!(E?.value instanceof Function))throw Error(`${T} decorator only use for class method.`);let A=Reflect.getOwnMetadata(K,f.constructor,C)||{},c=[...Reflect.getOwnMetadata(pT,f.constructor)||[],{path:!_.startsWith("/")?`/${_}`:_,httpMethod:T.toUpperCase(),methodName:C,descriptor:E,argumentsMetadata:A}];Reflect.defineMetadata(pT,c,f.constructor)},Rc=(_="/")=>__(_,"Get"),xc=(_="/")=>__(_,"Post"),Sc=(_="/")=>__(_,"Put"),uc=(_="/")=>__(_,"Patch"),Hc=(_="/")=>__(_,"Delete"),Lc=(_="/")=>__(_,"Options");var zc=(_)=>(T,f,C)=>{let E=Reflect.getMetadata(oT,T)||[];E[C]=_,Reflect.defineMetadata(oT,E,T)};var Fc=()=>(_)=>Reflect.defineMetadata(JT,void 0,_);var qc=()=>(_)=>{Reflect.defineMetadata(MT,void 0,_)};var Uc=()=>(_)=>{Reflect.defineMetadata(NT,void 0,_)};var Wc=(_)=>(T)=>{if(Reflect.hasOwnMetadata(HT,T))throw Error(`Conflict detected! ${T.name} class cannot be both a Module and a Container.`);let{middlewares:f,guards:C,interceptors:E,controllers:A,dependencies:c,webSockets:u}=_||{};if(f){for(let S=0;S<f.length;S++)if(!Reflect.getOwnMetadataKeys(f[S]).includes(NT))throw Error(`${f[S].name} is not a middleware.`)}if(C){for(let S=0;S<C.length;S++)if(!Reflect.getOwnMetadataKeys(C[S]).includes(XT))throw Error(`${C[S].name} is not a guard.`)}if(E){for(let S=0;S<E.length;S++)if(!Reflect.getOwnMetadataKeys(E[S]).includes(MT))throw Error(`${E[S].name} is not a interceptor.`)}if(A){for(let S=0;S<A.length;S++)if(!Reflect.getOwnMetadataKeys(A[S]).includes(uT))throw Error(`${A[S].name} is not a controller.`)}if(c){for(let S=0;S<c.length;S++)if(!Reflect.getOwnMetadataKeys(c[S]).includes(JT))throw Error(`${c[S].name} is not an injectable.`)}if(u){for(let S=0;S<u.length;S++)if(!Reflect.getOwnMetadataKeys(u[S]).includes(LT))throw Error(`${u[S].name} is not a websocket gateway.`)}Reflect.defineMetadata(cT,_,T)};var I_=Symbol("__bool:webSocket.upgrade__"),Yc=(_,T,f)=>{let C=new URL(T.url);return _.upgrade(T,{data:{method:T.method.toUpperCase(),pathname:C.pathname,query:f}})},wc=(_)=>(T)=>{let{prefix:f}=_||{};T.prototype[I_]=Yc;let C=Object.getOwnPropertyDescriptor(T.prototype,I_),E=!C?[]:[{path:"/",httpMethod:"GET",methodName:I_,descriptor:C,argumentsMetadata:{}},{path:"/",httpMethod:"POST",methodName:I_,descriptor:C,argumentsMetadata:{}}],A={prefix:!f?.startsWith("/")?`/${f||""}`:f,events:Reflect.getOwnMetadata(mT,T)||{},http:E};Reflect.defineMetadata(LT,A,T)};var Qc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:zT},Reflect.defineMetadata(_T,C,_.constructor,T)},Dc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:TT},Reflect.defineMetadata(_T,C,_.constructor,T)},Mc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:L_},Reflect.defineMetadata(_T,C,_.constructor,T)},Xc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:z_},Reflect.defineMetadata(_T,C,_.constructor,T)},Jc=()=>(_,T,f)=>{if(!T)return;let C=Reflect.getOwnMetadata(_T,_.constructor,T)||{};C[`argumentIndexes.${f}`]={index:f,type:PT},Reflect.defineMetadata(_T,C,_.constructor,T)};var Nc=(_)=>(T,f,C)=>{if(!(C.value instanceof Function))throw Error("WebSocketEvent decorator only use for class's method.");let E=Reflect.getOwnMetadata(_T,T.constructor,f),A=Object.freeze({methodName:f,descriptor:C,arguments:E}),c={...Reflect.getOwnMetadata(mT,T.constructor)||void 0,[_]:A};Reflect.defineMetadata(mT,A,T.constructor,f),Reflect.defineMetadata(mT,c,T.constructor)};var CT;(function(_){_.year="year",_.month="month",_.day="day",_.hours="hours",_.minutes="minutes",_.seconds="seconds",_.miliseconds="miliseconds"})(CT||(CT={}));var AC=(_,T,f=CT.day)=>{let C=_ instanceof Date?_:new Date(_);switch(f){case CT.year:C.setFullYear(C.getFullYear()+T);break;case CT.month:C.setMonth(C.getMonth()+T);break;case CT.day:C.setDate(C.getDate()+T);break;case CT.hours:C.setHours(C.getHours()+T);break;case CT.minutes:C.setMinutes(C.getMinutes()+T);break;case CT.seconds:C.setSeconds(C.getSeconds()+T);break;case CT.miliseconds:C.setMilliseconds(C.getMilliseconds()+T);break}return C};var QA=$_(zA(),1);var{serve:ax}=globalThis.Bun;var PS=async function(){}.constructor;var FA=Object.freeze({black:"38;5;16",red:"38;5;196",green:"38;5;46",yellow:"38;5;226",blue:"38;5;21",magenta:"38;5;201",cyan:"38;5;51",white:"38;5;231",gray:"38;5;244"}),qA=Object.freeze({black:"48;5;16",red:"48;5;196",green:"48;5;46",yellow:"48;5;226",blue:"48;5;21",magenta:"48;5;201",cyan:"48;5;51",white:"48;5;231",gray:"48;5;244"}),DT=(_,T={})=>{let{color:f,backgroundColor:C,bold:E,underline:A}=T,c=[];if(E)c.push("1");if(A)c.push("4");if(f&&FA[f])c.push(FA[f]);if(C&&qA[C])c.push(qA[C]);if(c.length===0)return _;return`\x1B[${c.join(";")}m${_}\x1B[0m`};var dT=(_)=>{for(let[T,f]of Object.entries(p.httpStatuses)){if(f.status!==_)continue;return f.statusText}return"Unknown error"};var UA=(_)=>{let{headers:T,method:f}=_,C=T.get("upgrade")?.toLowerCase()||"",E=T.get("connection")?.toLowerCase()||"";return f==="GET"&&C?.toLowerCase()==="websocket"&&E?.toLowerCase().includes("upgrade")};class S_ extends Error{httpCode;message;data;constructor({httpCode:_,data:T,message:f}){super();this.httpCode=_,this.message=!f?.trim()?dT(_):f.trim(),this.data=T}}class V_ extends Error{httpCode;message;data;constructor({httpCode:_,data:T,message:f}){super();this.httpCode=_,this.message=!f?.trim()?dT(_):f.trim(),this.data=T}}var Pf=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],WA=(_)=>!!Pf.find((T)=>T===_),YA=(_,T=new Headers)=>{if(T.set("Content-Type","application/json"),_ instanceof S_||_ instanceof V_)return new Response(JSON.stringify(_),{status:_.httpCode,statusText:_.message,headers:T});return new Response(JSON.stringify((()=>{switch(typeof _){case"object":return!(_ instanceof Error)?_:{message:_.message,code:_.name,cause:_.cause};case"string":return{message:_};case"number":return{code:_};default:return}})()),{status:500,statusText:"INTERNAL SERVER ERROR",headers:T})};class a_{_staticMap=new Map;_dynamicMap=new Map;_options=void 0;constructor(..._){_.forEach((T)=>{T.staticEntries.forEach(([f,C])=>this.set(f,C,{isStatic:!0,isPassthrough:!0})),T.dynamicEntries.forEach(([f,C])=>this.set(f,C,{isStatic:!1}))})}get(_,T){return!{...this._options,...T}?.isStatic?this._dynamicMap.get(_):this._staticMap.get(_)}has(_,T){return!{...this._options,...T}?.isStatic?this._dynamicMap.has(_):this._staticMap.has(_)}set(_,T,f){let C={...this._options,...f};if(!C?.isStatic)this._dynamicMap.set(_,T);else if(!this._staticMap.has(_))this._staticMap.set(_,T);else if(!C.isPassthrough)throw Error(`${String(_)} already exists in context static collection.`);return this}setOptions(_){return this._options=_,this}get staticEntries(){return[...this._staticMap.entries()]}get dynamicEntries(){return[...this._dynamicMap.entries()]}}class bf{alias;#T=new Map;#C;constructor({alias:_}){let T=this._thinAlias(_);this.alias=T,this.#C=new URLPattern({pathname:T,baseURL:"https://www.booljs.com"})}test({pathname:_}){try{return this.#C.test({pathname:this._thinAlias(_),baseURL:"https://www.booljs.com"})}catch(T){return console.error(T),!1}}exec({pathname:_,method:T}){try{let f=this.#T.get(T);if(!f)return null;let C=this.#C.exec({pathname:this._thinAlias(_),baseURL:"https://www.booljs.com"});if(!C)return null;let E=C.pathname.groups;return Object.freeze({parameters:E,model:f})}catch(f){return console.error(f),null}}get({model:_}){if(!this.#T.get("GET"))this.#T.set("GET",_);return this}post({model:_}){if(!this.#T.get("POST"))this.#T.set("POST",_);return this}put({model:_}){if(!this.#T.get("PUT"))this.#T.set("PUT",_);return this}delete({model:_}){if(!this.#T.get("DELETE"))this.#T.set("DELETE",_);return this}connect({model:_}){if(!this.#T.get("CONNECT"))return this.#T.set("CONNECT",_);return this}options({model:_}){if(!this.#T.get("OPTIONS"))return this.#T.set("OPTIONS",_);return this}trace({model:_}){if(!this.#T.get("TRACE"))return this.#T.set("TRACE",_);return this}patch({model:_}){if(!this.#T.get("PATCH"))return this.#T.set("PATCH",_);return this}_thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get _fullPath(){return this.alias.split("/").map((f,C)=>{let E=new RegExp(":([a-z0-9A-Z_.-]{1,})(\\(.*?\\))","g");if(!E.test(f)){if(E=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!E.test(f))return f;return f.replace(E,(A,c)=>`${A}(.*?)`)}return f}).join("/")}get _filteredPath(){return this.alias.split("/").map((f,C)=>{let E=new RegExp(":([a-z0-9A-Z_.-]{1,})((.*?))","g");if(!E.test(f)){if(E=new RegExp(":([a-z0-9A-Z_.-]{1,})","g"),!E.test(f))return f;return f.replace(E,(A,c)=>"(.*?)")}return f.replace(E,(A,c,u)=>u)}).join("/")}}var wA=bf;class G_{alias;#T=new Map;#C;#c;#E;constructor({alias:_,guardHandlers:T=[],openInterceptorHandlers:f=[],closeInterceptorHandlers:C=[]}){this.alias=this._thinAlias(_),this.#C=T,this.#c=f,this.#E=C}route({alias:_}){let T=this._thinAlias(`${this.alias}/${_}`),f=this.#T.get(T),C=!f?new wA({alias:`${this.alias}/${_}`}):f;if(!f)this.#T.set(T,C);return C}_thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}get routes(){return this.#T}get pipes(){return Object.freeze({guardHandlers:[...this.#C],openInterceptorHandlers:[...this.#c],closeInterceptorHandlers:[...this.#E]})}}class BT{#T=new Map;add(..._){for(let T of _){if(this.#T.has(T.alias))continue;this.#T.set(T.alias,T)}return this}find({pathname:_,method:T}){for(let f of this.#T.values())for(let C of f.routes.values()){if(!C.test({pathname:_}))continue;let A=C.exec({pathname:_,method:T});if(!A)continue;return Object.freeze({...A,...f.pipes})}return null}}var u1=$_(h_(),1);class VT{_mapper=new Map;constructor(..._){_.forEach((T)=>{T.entries.forEach(([f,C])=>{this._mapper.set(f,C)})})}get(_){if(this._mapper.has(_))return this._mapper.get(_);if(typeof _!=="function")return;let T=Reflect.getMetadataKeys(_);if(![JT,uT,NT,XT,MT,LT].some((A)=>T.includes(A)))throw Error("Missing dependency declaration, please check @Injectable() used on dependency(ies).");let C=(Reflect.getOwnMetadata(oT,_)||[]).map((A)=>this.get(A)),E=new _(...C);return this._mapper.set(_,E),E}set(_,T){if(this._mapper.has(_))throw Error(`${String(_)} already exists in injector collection.`);this._mapper.set(_,T)}get entries(){return[...this._mapper.entries()]}}class Tf{error;constructor(_){this.error=_}}class _f{eventName;metadata;_context=void 0;constructor({eventName:_,metadata:T}){this.eventName=_,this.metadata=T}bind(_){return this._context=_,this}execute(){if(this._context&&typeof this.metadata.descriptor.value==="function")this.metadata.descriptor.value=this.metadata.descriptor.value.bind(this._context);return Object.freeze({methodName:this.metadata.methodName,descriptor:this.metadata.descriptor,arguments:this.metadata.arguments})}}class g_{rawAlias;alias;routes=[];constructor(_="/"){this.rawAlias=_;this.alias=g_.thinAlias(_)}addRoutes(..._){for(let T of _)if(!this.routes.includes(T))this.routes.push(T);return this}bind(_){for(let T of this.routes)T.bind(_);return this}execute(){let _=new Map;for(let T of this.routes)_.set(`${this.alias}:::${T.eventName}`,T.execute());return _}static thinAlias(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class IT{rawPrefix;prefix;routers=[];constructor(_="/"){this.rawPrefix=_;this.prefix=IT.thinPrefix(_)}addRouters(..._){for(let T=0;T<_.length;T++)if(!this.routers.includes(_[T]))this.routers.push(_[T]);for(let T of _)if(!this.routers.includes(T))this.routers.push(T);return this}execute(){let _=new Map;for(let T of this.routers){let f=T.execute();for(let[C,E]of f.entries())_.set(`/${IT.thinPrefix(`${this.prefix}/${C}`)}`,E)}return _}static thinPrefix(_){return _.replace(new RegExp("[/]{2,}","g"),"/").replace(new RegExp("^[/]|[/]$","g"),"")}}class n_{classConstructor;options;#T;#C;#c=new Map;#E;#x=900;#R;#A=new a_;constructor(_,T){this.classConstructor=_;this.options=T;let f=Reflect.getOwnMetadataKeys(_);if(!f.includes(HT)&&!f.includes(cT))throw Error(`Can not detect! ${_.name} class is not a container or module.`);this.#C=!f.includes(HT)?"MODULE":"CONTAINER",this.#x=typeof T.static?.cacheTimeInSeconds!=="number"?900:T.static.cacheTimeInSeconds,this.#E=Object.freeze({allowLogsMethods:this.options?.log?.methods||[],staticOption:this.options.static,allowOrigins:!this.options.cors?.origins?["*"]:typeof this.options.cors.origins!=="string"?this.options.cors.origins.includes("*")||this.options.cors.origins.length<1?["*"]:this.options.cors.origins:[this.options.cors.origins!=="*"?this.options.cors.origins:"*"],allowMethods:this.options.cors?.methods||Pf,allowCredentials:!this.options.cors?.credentials?!1:!0,allowHeaders:!this.options.cors?.headers||this.options.cors.headers.includes("*")?["*"]:this.options.cors.headers,pipelineStrategy:(()=>{switch(T.pipelineStrategy?.type){case"SIMPLE":return Object.freeze({startMiddlewares:"FIFO",endMiddlewares:T.pipelineStrategy.targets?.middlewares||"FIFO",openInterceptors:"FIFO",closeInterceptors:T.pipelineStrategy.targets?.interceptors||"FIFO"});default:return Object.freeze({startMiddlewares:"FIFO",endMiddlewares:"FIFO",openInterceptors:"FIFO",closeInterceptors:"FIFO"})}})()})}static async create(_,T){let f=new n_(_,T);return await f.preLaunch(),f}useValidator(_){this.#R=_}async preLaunch(){if(this.#T)return this.#T;let{startMiddlewareHandlers:_,endMiddlewareHandlers:T,controllerRouterGroup:f,webSocketHttpRouterGroup:C,webSocketRouterGroup:E}=this.#C!=="MODULE"?await this.#q({containerClass:this.classConstructor,prefix:this.options.prefix,options:this.options}):await this.#S({moduleClass:this.classConstructor,prefix:this.options.prefix,options:this.options}),A=new Map,c=E.execute();for(let[u,S]of c.entries())A.set(u,S);return this.#T=Object.freeze({startMiddlewareHandlers:_,endMiddlewareHandlers:T,controllerRouterGroup:f,webSocketHttpRouterGroup:C,webSocketRouterGroup:E,webSocketsMap:A}),this.#T}async listen(){let _=ax({port:this.options.port,idleTimeout:typeof this.options.idleTimeoutInSeconds!=="number"||this.options.idleTimeoutInSeconds<=0?void 0:this.options.idleTimeoutInSeconds,fetch:this.#u.bind(this),websocket:await this.#H.bind(this)()});this.#A.set(TT,_)}async#u(_,T){let{allowLogsMethods:f,allowOrigins:C,allowMethods:E,allowHeaders:A,allowCredentials:c,staticOption:u}=this.#E,{startMiddlewareHandlers:S,endMiddlewareHandlers:U,controllerRouterGroup:z,webSocketHttpRouterGroup:q}=await this.preLaunch(),x=performance.now(),Q=new URL(_.url),Y=QA.parse(Q.searchParams.toString(),this.options.queryParser),W=_.headers.get("origin")||"*",P=_.method.toUpperCase(),L=new Headers,i=new a_().setOptions({isStatic:!0}).set(FT,T).set(UT,_).set(qT,_.headers).set(RT,L).set(F_,Y);try{if([...!c?[]:[{key:"Access-Control-Allow-Credentials",value:"true"}],{key:"Access-Control-Allow-Origin",value:C.includes("*")?"*":!C.includes(W)?C[0]:W},{key:"Access-Control-Allow-Methods",value:E.join(", ")},{key:"Access-Control-Allow-Headers",value:A.join(", ")}].forEach(({key:$,value:b})=>L.set($,b)),!WA(P)||!E.includes(P))return this.finalizeResponse(new Response(void 0,{...p.clientErrorStatuses.METHOD_NOT_ALLOWED,headers:L}));if(UA(_))return await this.#L({request:_,server:T,context:i,url:Q,query:Y,method:P,responseHeaders:L,httpRouterGroup:q,startMiddlewareHandlers:S,endMiddlewareHandlers:U});if(_.method.toUpperCase()==="OPTIONS")return this.finalizeResponse(C.includes("*")||C.includes(W)?new Response(void 0,{...p.successfulStatuses.NO_CONTENT,headers:L}):new Response(void 0,{...p.clientErrorStatuses.EXPECTATION_FAILED,headers:L}));if(u){let $=await this.#z({url:Q,responseHeaders:L,path:u.path,headers:u.headers,cacheTimeInSeconds:u.cacheTimeInSeconds});if($ instanceof Response)return $}return await this.#F({url:Q,method:P,context:i,httpRouterGroup:z,startMiddlewareHandlers:S,endMiddlewareHandlers:U})}catch(n){return this.options.debug&&console.error(n),this.finalizeResponse(YA(n,L))}finally{if(f){let n=performance.now(),j=i.get(bT,{isStatic:!1}),$=typeof j!=="number"||!j?0:j,b=DT(Q.pathname,{color:"blue"}),k=`${Bun.color("yellow","ansi")}${process.pid}`,G=DT(` ${_.method} `,{color:"yellow",backgroundColor:"blue"}),M=DT(`${_.headers.get("x-forwarded-for")||_.headers.get("x-real-ip")||T.requestIP(_)?.address||"<Unknown>"}`,{color:"yellow"}),Z=DT(` ${Math.round((n-x+Number.EPSILON)*100)/100}ms `,{color:"yellow",backgroundColor:"blue"}),V=DT(` ${$} (${dT($)}) `,(()=>{if($>=100&&$<200)return{color:"white",backgroundColor:"cyan"};else if($>=200&&$<300)return{color:"white",backgroundColor:"blue"};else if($>=300&&$<400)return{color:"black",backgroundColor:"magenta"};else if($>=400&&$<500)return{color:"black",backgroundColor:"yellow"};else if($>=500&&$<600)return{color:"white",backgroundColor:"red"};else return{color:"black",backgroundColor:"gray"}})());f.includes(_.method.toUpperCase())&&console.info([`PID: ${k}`,`Method: ${G}`,`IP: ${M}`,`Time: ${Z}`,typeof j!=="number"||!j?void 0:V,b].filter((s)=>!!s?.trim()).join(" - "))}}}async#H(){let{webSocketsMap:_}=await this.preLaunch();return{open:(T)=>{let f=`${T.data.pathname}:::open`,C=_.get(f);if(!C)return;let E=C.arguments||{},A=[];for(let[,c]of Object.entries(E))switch(c.type){case zT:A[c.index]=T;break;case TT:A[c.index]=this.#A.get(TT);break}C.descriptor.value(...A)},close:(T,f,C)=>{let E=`${T.data.pathname}:::close`,A=_.get(E);if(!A)return;let c=A.arguments||{},u=[];for(let[,S]of Object.entries(c))switch(S.type){case zT:u[S.index]=T;break;case L_:u[S.index]=f;break;case z_:u[S.index]=C;break;case TT:u[S.index]=this.#A.get(TT);break}A.descriptor.value(...u)},message:(T,f)=>{let C=`${T.data.pathname}:::message`,E=_.get(C);if(!E)return;let A=E.arguments||{},c=[];for(let[,u]of Object.entries(A))switch(u.type){case zT:c[u.index]=T;break;case PT:c[u.index]=f;break;case TT:c[u.index]=this.#A.get(TT);break}E.descriptor.value(...c)},drain:(T)=>{let f=`${T.data.pathname}:::drain`,C=_.get(f);if(!C)return;let E=C.arguments||{},A=[];for(let[,c]of Object.entries(E))switch(c.type){case zT:A[c.index]=T;break;case TT:A[c.index]=this.#A.get(TT);break}C.descriptor.value(...A)},ping:(T,f)=>{let C=`${T.data.pathname}:::ping`,E=_.get(C);if(!E)return;let A=E.arguments||{},c=[];for(let[,u]of Object.entries(A))switch(u.type){case zT:c[u.index]=T;break;case PT:c[u.index]=f;break;case TT:c[u.index]=this.#A.get(TT);break}E.descriptor.value(...c)},pong:(T,f)=>{let C=`${T.data.pathname}:::pong`,E=_.get(C);if(!E)return;let A=E.arguments||{},c=[];for(let[,u]of Object.entries(A))switch(u.type){case zT:c[u.index]=T;break;case PT:c[u.index]=f;break;case TT:c[u.index]=this.#A.get(TT);break}E.descriptor.value(...c)}}}async#L({request:_,server:T,context:f,url:C,query:E,method:A,responseHeaders:c,httpRouterGroup:u,startMiddlewareHandlers:S,endMiddlewareHandlers:U}){try{await this.#f({type:"START_MIDDLEWARES",handlers:S,context:f});let z=u.find({pathname:C.pathname,method:A}),q=this.finalizeResponse(new Response(void 0,{...p.serverErrorStatuses.INTERNAL_SERVER_ERROR,headers:c}));if(z){let x=await this.#f({type:"GUARDS",handlers:z.guardHandlers,context:f});if(x!==!0)q=this.finalizeResponse(new Response(void 0,{...!x||x==="UNAUTHORIZATION"?p.clientErrorStatuses.UNAUTHORIZED:p.clientErrorStatuses.FORBIDDEN,headers:c}));else{f.set(xT,z.model),await this.#f({type:"OPEN_INTERCEPTORS",handlers:z.openInterceptorHandlers,context:f});let Q=await z.model.func(...[T,_,E]);if(await this.#f({type:"CLOSE_INTERCEPTORS",handlers:z.closeInterceptorHandlers,context:f}),typeof Q!=="boolean"||!Q)q=this.finalizeResponse(new Response(void 0,{...p.serverErrorStatuses.INTERNAL_SERVER_ERROR,headers:c}));else q=void 0}}return await this.#f({type:"END_MIDDLEWARES",handlers:U,context:f}),q}catch(z){throw console.error(z),z}}async#z({url:_,path:T,headers:f,cacheTimeInSeconds:C,responseHeaders:E}){let A=`${T}/${_.pathname}`,c=this.#c.get(A);if(!c){let u=Bun.file(A);if(await u.exists()){if(f)for(let[U,z]of Object.entries(f))E.set(U,z);return E.set("Content-Type",u.type),this.finalizeResponse(new Response(await u.arrayBuffer(),{...p.successfulStatuses.OK,headers:E}))}}else{let u=new Date>c.expiredAt;if(u)this.#c.delete(A);let S=!u?c.file:Bun.file(A);if(await S.exists()){if(this.#c.set(A,Object.freeze({expiredAt:AC(new Date,this.#x,CT.seconds),file:S})),f)for(let[z,q]of Object.entries(f))E.set(z,q);return E.set("Content-Type",S.type),this.finalizeResponse(new Response(await S.arrayBuffer(),{...p.successfulStatuses.OK,headers:E}))}}}async#F({context:_,url:T,method:f,httpRouterGroup:C,startMiddlewareHandlers:E=[],endMiddlewareHandlers:A=[]}){let c={isStatic:!0};_.setOptions(c),await this.#f({type:"START_MIDDLEWARES",handlers:E,context:_});let u=C.find({pathname:T.pathname,method:f});if(!u)_.setOptions({isStatic:!1}).set(bT,p.clientErrorStatuses.NOT_FOUND.status).set(T_,p.clientErrorStatuses.NOT_FOUND.statusText).set(aT,void 0);else{_.set(xT,u.model),_.set(eT,u.parameters);let x=await this.#f({type:"GUARDS",handlers:u.guardHandlers,context:_});if(x!==!0)_.setOptions({isStatic:!1}).set(bT,!x||x==="UNAUTHORIZATION"?p.clientErrorStatuses.UNAUTHORIZED.status:p.clientErrorStatuses.FORBIDDEN.status).set(T_,!x||x==="UNAUTHORIZATION"?p.clientErrorStatuses.UNAUTHORIZED.statusText:p.clientErrorStatuses.FORBIDDEN.statusText).set(aT,void 0);else await this.#f({type:"OPEN_INTERCEPTORS",handlers:u.openInterceptorHandlers,context:_}),await this.#f({type:"CONTROLLER",context:_}),await this.#f({type:"CLOSE_INTERCEPTORS",handlers:u.closeInterceptorHandlers,context:_})}await this.#f({type:"END_MIDDLEWARES",handlers:A,context:_});let S=_.get(RT,{isStatic:!0})||new Headers,U=_.get(aT,{isStatic:!1})||void 0,z=_.get(bT,{isStatic:!1}),q=_.get(T_,{isStatic:!1});return this.serializeResponse({status:typeof z!=="number"?f==="POST"?201:void 0:z,statusText:typeof q!=="string"?void 0:q,headers:S,data:U})}async#q({prefix:_="",startMiddlewareHandlers:T=[],endMiddlewareHandlers:f=[],guardHandlers:C=[],openInterceptorHandlers:E=[],closeInterceptorHandlers:A=[],controllerRouterGroup:c=new BT,webSocketHttpRouterGroup:u=new BT,webSocketRouterGroup:S=new IT,containerClass:U,options:z,extendInjector:q}){if(!Reflect.getOwnMetadataKeys(U).includes(HT))throw Error(`[${U.name}] is not a container.`);let x=!q?new VT:new VT(q),Q=Reflect.getOwnMetadata(HT,U),{loaders:Y,middlewares:W,dependencies:P,modules:L,guards:i,interceptors:n,prefix:j,config:$}=Q||{},{config:b}=Object.freeze({config:{...typeof z.config!=="function"?z.config:await z.config(),...typeof $!=="function"?typeof $!=="object"?void 0:("key"in $)&&("value"in $)&&typeof $.key==="symbol"?typeof $.value!=="function"?$.value:await $.value():$:await $()}});if(x.set($&&"key"in $&&"value"in $&&typeof $.key==="symbol"?$.key:K_,b),Y){let k=[];for(let[M,Z]of Object.entries(Y))k.push(async()=>{try{let V=await Z({config:b});return console.info(`${DT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${M}] initialized successfully.`),V}catch(V){throw console.error(`${DT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${M}] initialization failed.`),z.debug&&console.error(V),V}});let G=await Promise.all(k.map((M)=>M()));for(let[M,Z]of G)x.set(M,Z)}if(P){for(let k of P)if(!x.get(k))throw Error(`Can not collect dependency [${k.name}].`)}if(W){let k=(G,M)=>!!G;for(let G of W){let M=x.get(G);if(!M||!k(M,G))throw Error(`Can not collect middleware [${G.name}].`);if(M.start&&typeof M.start==="function"){let Z=Reflect.getOwnMetadata(K,G,"start")||{};T.push(Object.freeze({class:G,funcName:"start",func:M.start.bind(M),argumentsMetadata:Z}))}if(M.end&&typeof M.end==="function"){let Z=Reflect.getOwnMetadata(K,G,"end")||{};f.push(Object.freeze({class:G,funcName:"end",func:M.end.bind(M),argumentsMetadata:Z}))}}}if(i){let k=(G,M)=>!!G;for(let G of i){let M=x.get(G);if(!M||!k(M,G))throw Error(`Can not collect guard [${G.name}].`);let Z=Reflect.getOwnMetadata(K,G,"enforce")||{};C.push(Object.freeze({class:G,funcName:"enforce",func:M.enforce.bind(M),argumentsMetadata:Z}))}}if(n){let k=(G,M)=>!!G;for(let G of n){let M=x.get(G);if(!M||!k(M,G))throw Error(`Can not collect interceptor [${G.name}].`);if(M){if(M.open&&typeof M.open==="function"){let Z=Reflect.getOwnMetadata(K,G,"open")||{};E.push(Object.freeze({class:G,funcName:"open",func:M.open.bind(M),argumentsMetadata:Z}))}if(M.close&&typeof M.close==="function"){let Z=Reflect.getOwnMetadata(K,G,"close")||{};A.push(Object.freeze({class:G,funcName:"close",func:M.close.bind(M),argumentsMetadata:Z}))}}}}if(L){let k=[_.trim(),j?.trim()||""].filter((G)=>G.length>0).join("/");for(let G of L)try{await this.#S({prefix:k,moduleClass:G,extendInjector:x,options:z,startMiddlewareHandlers:T,endMiddlewareHandlers:f,guardHandlers:[...C],openInterceptorHandlers:[...E],closeInterceptorHandlers:[...A],controllerRouterGroup:c,webSocketHttpRouterGroup:u,webSocketRouterGroup:S})}catch(M){throw console.group(`Can not resolve module: [${G.name}].`),console.error(M),console.groupEnd(),M}}return Object.freeze({startMiddlewareHandlers:T,endMiddlewareHandlers:f,controllerRouterGroup:c,webSocketHttpRouterGroup:u,webSocketRouterGroup:S})}async#S({prefix:_="",startMiddlewareHandlers:T=[],endMiddlewareHandlers:f=[],guardHandlers:C=[],openInterceptorHandlers:E=[],closeInterceptorHandlers:A=[],controllerRouterGroup:c=new BT,webSocketHttpRouterGroup:u=new BT,webSocketRouterGroup:S=new IT,moduleClass:U,options:z,extendInjector:q}){if(!Reflect.getOwnMetadataKeys(U).includes(cT))throw Error(`[${U.name}] is not a module.`);let x=!q?new VT:new VT(q),Q=Reflect.getOwnMetadata(cT,U),{loaders:Y,middlewares:W,guards:P,interceptors:L,controllers:i,dependencies:n,webSockets:j,prefix:$,config:b}=Q||{},k=[_.trim(),$?.trim()||""].filter((M)=>M.length>0).join("/"),{config:G}=Object.freeze({config:!b?void 0:{...typeof z.config!=="function"?z.config:await z.config(),...typeof b!=="function"?typeof b!=="object"?void 0:("key"in b)&&("value"in b)&&typeof b.key==="symbol"?typeof b.value!=="function"?b.value:await b.value():b:await b()}});if(G&&x.set(b&&"key"in b&&"value"in b&&typeof b.key==="symbol"?b.key:K_,G),Y){let M=[];for(let[V,s]of Object.entries(Y))M.push(async()=>{try{let r=await s({config:G});return console.info(`${DT(" INFO ",{color:"white",backgroundColor:"blue",bold:!0})} Loader [${V}] initialized successfully.`),r}catch(r){throw console.error(`${DT(" WARN ",{color:"yellow",backgroundColor:"red",bold:!0})} Loader [${V}] initialization failed.`),z.debug&&console.error(r),r}});let Z=await Promise.all(M.map((V)=>V()));for(let V=0;V<Z.length;V++){let[s,r]=Z[V];x.set(s,r)}}if(n){for(let M of n)if(!x.get(M))throw Error(`Can not collect dependency [${M.name}].`)}if(W){let M=(Z,V)=>!!Z;for(let Z of W){let V=x.get(Z);if(!V||!M(V,Z))throw Error(`Can not collect middleware [${Z.name}].`);if(V.start&&typeof V.start==="function"){let s=Reflect.getOwnMetadata(K,Z,"start")||{};T.push(Object.freeze({class:Z,funcName:"start",func:V.start.bind(V),argumentsMetadata:s}))}if(V.end&&typeof V.end==="function"){let s=Reflect.getOwnMetadata(K,Z,"end")||{};f.push(Object.freeze({class:Z,funcName:"end",func:V.end.bind(V),argumentsMetadata:s}))}}}if(P){let M=(Z,V)=>!!Z;for(let Z of P){let V=x.get(Z);if(!V||!M(V,Z))throw Error(`Can not collect guard [${Z.name}].`);let s=Reflect.getOwnMetadata(K,Z,"enforce")||{};C.push(Object.freeze({class:Z,funcName:"enforce",func:V.enforce.bind(V),argumentsMetadata:s}))}}if(L){let M=(Z,V)=>!!Z;for(let Z of L){let V=x.get(Z);if(!V||!M(V,Z))throw Error(`Can not collect interceptor [${Z.name}].`);if(V){if(V.open&&typeof V.open==="function"){let s=Reflect.getOwnMetadata(K,Z,"open")||{};E.push(Object.freeze({class:Z,funcName:"open",func:V.open.bind(V),argumentsMetadata:s}))}if(V.close&&typeof V.close==="function"){let s=Reflect.getOwnMetadata(K,Z,"close")||{};A.push(Object.freeze({class:Z,funcName:"close",func:V.close.bind(V),argumentsMetadata:s}))}}}}if(i)for(let M of i)this.#U({controllerConstructor:M,prefix:k,injector:x,httpRouterGroup:c,guardHandlers:[...C],openInterceptorHandlers:[...E],closeInterceptorHandlers:[...A]});if(j)for(let M of j)this.#W({webSocketConstructor:M,injector:x,prefix:k,webSocketHttpRouterGroup:u,webSocketRouterGroup:S});return Object.freeze({startMiddlewareHandlers:T,endMiddlewareHandlers:f,controllerRouterGroup:c,webSocketHttpRouterGroup:u,webSocketRouterGroup:S})}#U({controllerConstructor:_,prefix:T="",injector:f=new VT,httpRouterGroup:C=new BT,guardHandlers:E=[],openInterceptorHandlers:A=[],closeInterceptorHandlers:c=[]}){if(!Reflect.getOwnMetadataKeys(_).includes(uT))throw Error(`[${_.name}] is not a controller.`);let u=f.get(_);if(!u)throw Error("Can not initialize controller.");let S=Reflect.getOwnMetadata(uT,_)||{prefix:"/",httpMetadata:[]},U=[T.trim(),S.prefix.trim()].filter((q)=>q.length>0).join("/"),z=new G_({alias:U,guardHandlers:E,openInterceptorHandlers:A,closeInterceptorHandlers:c});for(let q of S.httpMetadata){if(typeof q.descriptor.value!=="function")continue;let x=z.route({alias:q.path}),Q=q.descriptor.value.bind(u),Y=Object.freeze({class:_,funcName:q.methodName,func:Q,argumentsMetadata:q.argumentsMetadata});switch(q.httpMethod){case"GET":x.get({model:Y});break;case"POST":x.post({model:Y});break;case"PUT":x.put({model:Y});break;case"PATCH":x.patch({model:Y});break;case"DELETE":x.delete({model:Y});break;case"OPTIONS":x.options({model:Y});break}}return C.add(z)}async#_({data:_,validationSchema:T,argumentIndex:f,funcName:C}){if(!this.#R)return _;try{let E=await this.#R.validate(_,T,f,C);if(!(E instanceof Tf))return E;throw new S_({httpCode:400,message:`Validation at the [${C.toString()}] method fails at positional argument [${f}].`,data:E.error})}catch(E){if(E instanceof S_)throw E;throw new V_({httpCode:500,message:`Validation at the [${C.toString()}] method error at positional argument [${f}].`,data:!(E instanceof Error)?E:[{message:E.message,code:E.name,cause:E.cause}]})}}#W({webSocketConstructor:_,prefix:T="",injector:f=new VT,webSocketHttpRouterGroup:C=new BT,webSocketRouterGroup:E=new IT,guardHandlers:A=[],openInterceptorHandlers:c=[],closeInterceptorHandlers:u=[]}){if(!Reflect.getOwnMetadataKeys(_).includes(LT))throw Error(`[${_.name}] is not a websocket route.`);let S=f.get(_);if(!S)throw Error("Can not initialize webSocket.");let U=Reflect.getOwnMetadata(LT,_)||{prefix:"/",events:[],http:[]},z=`/${T}/${U.prefix}`,q=new G_({alias:z,guardHandlers:A,openInterceptorHandlers:c,closeInterceptorHandlers:u});for(let[Q,Y]of Object.entries(U.http)){if(typeof Y.descriptor?.value!=="function")continue;let W=q.route({alias:Y.path}),P=Y.descriptor.value.bind(S),L=Object.freeze({class:_,funcName:Y.methodName,func:P,argumentsMetadata:Y.argumentsMetadata});switch(Y.httpMethod){case"GET":W.get({model:L});break;case"POST":W.post({model:L});break}}C.add(q);let x=new g_(z);for(let[Q,Y]of Object.entries(U.events)){let W=new _f({eventName:Q,metadata:Y});x.addRoutes(W)}return x.bind(S),E.addRouters(x),Object.freeze({webSocketHttpRouterGroup:C,webSocketRouterGroup:E})}async#f({type:_,handlers:T,context:f}){let C={isStatic:!0};f.setOptions(C);let E=f.get(FT,C)||void 0,A=f.get(UT,C)||void 0,c=f.get(qT,C)||void 0,u=f.get(RT,C)||void 0,S=f.get(eT,C)||void 0,U=f.get(xT,C)||void 0;if(_==="START_MIDDLEWARES"||_==="END_MIDDLEWARES"){let z=_==="START_MIDDLEWARES"?this.#E.pipelineStrategy.startMiddlewares:this.#E.pipelineStrategy.endMiddlewares;for(let q=z==="FIFO"?0:T.length-1;z==="FIFO"?q<T.length:q>-1;z==="FIFO"?q++:q--){let x=[],{func:Q,funcName:Y,argumentsMetadata:W}=T[q];for(let[P,L]of Object.entries(W))switch(L.type){case $T:x[L.index]=!L.key?f:f.get(L.key,C);break;case UT:x[L.index]=A;break;case nT:x[L.index]=!L.validationSchema?await A?.[L.parser||"json"]():await this.#_({data:await A?.[L.parser||"json"](),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case gT:x[L.index]=!L.validationSchema?c:await this.#_({data:c?.toJSON(),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case qT:x[L.index]=!L.validationSchema?c?.get(L.key)||void 0:await this.#_({data:c?.get(L.key)||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case OT:x[L.index]=!L.validationSchema?S?.[L.key]||void 0:await this.#_({data:S?.[L.key]||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case xT:x[L.index]=void 0;break;case RT:x[L.index]=u;break;case FT:x[L.index]=E;break;default:x[L.index]=!L.validationSchema?f.get(L.type,C):await this.#_({data:f.get(L.type,C),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break}await Q(...x)}}else if(_==="GUARDS"){if(!U||T.length===0)return!0;for(let z=0;z<T.length;z++){let q=[],{func:x,funcName:Q,argumentsMetadata:Y}=T[z];for(let[P,L]of Object.entries(Y))switch(L.type){case UT:q[L.index]=A;break;case nT:q[L.index]=!L.validationSchema?await A?.[L.parser||"json"]():await this.#_({data:await A?.[L.parser||"json"](),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Q});break;case $T:q[L.index]=!L.key?f:f.get(L.key);break;case gT:q[L.index]=!L.validationSchema?c:await this.#_({data:c?.toJSON(),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Q});break;case RT:q[L.index]=u;break;case qT:q[L.index]=!L.validationSchema?c?.get(L.key)||void 0:await this.#_({data:c?.get(L.key)||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Q});break;case OT:q[L.index]=!L.validationSchema?S?.[L.key]||void 0:await this.#_({data:S?.[L.key],validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Q});break;case xT:q[L.index]=U;break;case FT:q[L.index]=E;break;default:q[L.index]=!L.validationSchema?f.get(L.type):await this.#_({data:f.get(L.type),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Q});break}let W=await x(...q);if(W!==!0)return W}return!0}else if(_==="OPEN_INTERCEPTORS"||_==="CLOSE_INTERCEPTORS"){if(!U)return;let z=_==="OPEN_INTERCEPTORS"?this.#E.pipelineStrategy.openInterceptors:this.#E.pipelineStrategy.closeInterceptors;for(let q=z==="FIFO"?0:T.length-1;z==="FIFO"?q<T.length:q>-1;z==="FIFO"?q++:q--){let x=[],{func:Q,funcName:Y,argumentsMetadata:W}=T[q];for(let[P,L]of Object.entries(W))switch(L.type){case UT:x[L.index]=A;break;case nT:x[L.index]=!L.validationSchema?await A?.[L.parser||"json"]():await this.#_({data:await A?.[L.parser||"json"](),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case $T:x[L.index]=!L.key?f:f.get(L.key);break;case gT:x[L.index]=!L.validationSchema?c:await this.#_({data:c?.toJSON(),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case qT:x[L.index]=!L.validationSchema?c?.get(L.key)||void 0:await this.#_({data:c?.get(L.key)||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case RT:x[L.index]=u;break;case OT:x[L.index]=!L.validationSchema?S?.[L.key]||void 0:await this.#_({data:S?.[L.key]||void 0,validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break;case xT:x[L.index]=U;break;case FT:x[L.index]=E;break;default:x[L.index]=!L.validationSchema?f.get(L.type):await this.#_({data:f.get(L.type),validationSchema:L.validationSchema,argumentIndex:L.index,funcName:Y});break}await Q(...x)}}else if(_==="CONTROLLER"){if(!U){f.setOptions({isStatic:!1}).set(bT,404).set(T_,"Not found.");return}let z=[],{func:q,funcName:x,argumentsMetadata:Q}=U;for(let[Y,W]of Object.entries(Q))switch(W.type){case UT:z[W.index]=A;break;case nT:z[W.index]=!W.validationSchema?await A?.[W.parser||"json"]():await this.#_({data:await A?.[W.parser||"json"](),validationSchema:W.validationSchema,argumentIndex:W.index,funcName:x});break;case $T:z[W.index]=!W.key?f:f.get(W.key);break;case gT:z[W.index]=!W.validationSchema?c:await this.#_({data:c?.toJSON(),validationSchema:W.validationSchema,argumentIndex:W.index,funcName:x});break;case qT:z[W.index]=!W.validationSchema?c?.get(W.key)||void 0:await this.#_({data:c?.get(W.key)||void 0,validationSchema:W.validationSchema,argumentIndex:W.index,funcName:x});break;case RT:z[W.index]=u;break;case OT:z[W.index]=!W.validationSchema?S?.[W.key]||void 0:await this.#_({data:S?.[W.key]||void 0,validationSchema:W.validationSchema,argumentIndex:W.index,funcName:x});break;case xT:z[W.index]=U;break;case FT:z[W.index]=E;break;default:z[W.index]=!W.validationSchema?f.get(W.type):await this.#_({data:f.get(W.type),validationSchema:W.validationSchema,argumentIndex:W.index,funcName:x});break}f.set(aT,await q(...z),{isStatic:!1})}return}serializeResponse({status:_,statusText:T,headers:f,data:C}){let E=f.get("Content-Type")||"text/plain",A=!_?!C?204:200:_,c=dT(A);if(E.includes("application/json"))return this.finalizeResponse(new Response(!C?void 0:C instanceof ReadableStream?C:JSON.stringify(C),{status:A,statusText:c,headers:f}));if(E.includes("text/plain")||E.includes("text/html"))return this.finalizeResponse(new Response(!C?void 0:C instanceof ReadableStream?C:String(C),{status:A,statusText:c,headers:f}));if(E.includes("application/octet-stream")){if(C instanceof Uint8Array||C instanceof ArrayBuffer||C instanceof Blob||C instanceof ReadableStream)return this.finalizeResponse(new Response(C,{status:A,statusText:c,headers:f}));throw Error("Invalid data type for application/octet-stream")}if(E.includes("multipart/form-data")){if(C instanceof FormData)return this.finalizeResponse(new Response(C,{status:A,statusText:c,headers:f}));throw Error("multipart/form-data requires FormData object")}return this.finalizeResponse(new Response(!C?void 0:String(C),{status:A,statusText:c,headers:f}))}finalizeResponse(_){return _.headers.set("X-Powered-By","Bool Typescript"),_}}var v1=$_(h_(),1);var T0=async(_,T)=>{try{let f=new n_(_,T);return await f.preLaunch(),f}catch(f){throw T.debug&&console.error(f),f}};export{YA as jsonErrorInfer,WA as httpMethodsStandardization,Pf as httpMethods,Dc as WebSocketServer,IT as WebSocketRouterGroup,g_ as WebSocketRouter,_f as WebSocketRoute,Jc as WebSocketMessage,Nc as WebSocketEvent,Qc as WebSocketConnection,Xc as WebSocketCloseReason,Mc as WebSocketCloseCode,wc as WebSocket,Tf as ValidationFailed,fc as RouteModel,Tc as ResponseHeaders,yA as RequestHeaders,iA as RequestHeader,rA as RequestBody,aA as Request,eA as Query,Sc as Put,xc as Post,uc as Patch,pA as Params,oA as Param,Lc as Options,p as Objects,Wc as Module,Uc as Middleware,af as Keys,qc as Interceptor,VT as Injector,Fc as Injectable,zc as Inject,V_ as HttpServerError,Cc as HttpServer,BT as HttpRouterGroup,G_ as HttpRouter,bf as HttpRoute,S_ as HttpClientError,cc as Guard,Rc as Get,Hc as Delete,Ac as Controller,_c as Context,Ec as Container,T0 as BoolFactory,n_ as Application};
|
|
19
19
|
|
|
20
|
-
//# debugId=
|
|
20
|
+
//# debugId=A37612F2021ACA3964756E2164756E21
|