@stacksjs/whois 0.68.2 → 0.69.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,93 +1,105 @@
1
1
  // @bun
2
- var n$=Object.create;var{getPrototypeOf:r$,defineProperty:f8,getOwnPropertyNames:d$}=Object;var l$=Object.prototype.hasOwnProperty;var p=(D,u,F)=>{F=D!=null?n$(r$(D)):{};let $=u||!D||!D.__esModule?f8(F,"default",{value:D,enumerable:!0}):F;for(let E of d$(D))if(!l$.call($,E))f8($,E,{get:()=>D[E],enumerable:!0});return $};var b=(D,u)=>()=>(u||D((u={exports:{}}).exports,u),u.exports);var c1=(D,u)=>{for(var F in u)f8(D,F,{get:u[F],enumerable:!0,configurable:!0,set:($)=>u[F]=()=>$})};var C0=(D,u)=>()=>(D&&(u=D(D=0)),u);var wD=b((j0,t8)=>{Object.defineProperty(j0,"__esModule",{value:!0});j0.default=E7;function i8(D){return i8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i8(D)}function E7(D){var u=typeof D==="string"||D instanceof String;if(!u){var F=i8(D);if(D===null)F="null";else if(F==="object")F=D.constructor.name;throw new TypeError("Expected a string but received a ".concat(F))}}t8.exports=j0.default;t8.exports.default=j0.default});var k0=b((R0,a8)=>{Object.defineProperty(R0,"__esModule",{value:!0});R0.default=s8;var B7=Y7(wD());function Y7(D){return D&&D.__esModule?D:{default:D}}var C3="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Hu="(".concat(C3,"[.]){3}").concat(C3),J7=new RegExp("^".concat(Hu,"$")),ZD="(?:[0-9a-fA-F]{1,4})",Z7=new RegExp("^("+"(?:".concat(ZD,":){7}(?:").concat(ZD,"|:)|")+"(?:".concat(ZD,":){6}(?:").concat(Hu,"|:").concat(ZD,"|:)|")+"(?:".concat(ZD,":){5}(?::").concat(Hu,"|(:").concat(ZD,"){1,2}|:)|")+"(?:".concat(ZD,":){4}(?:(:").concat(ZD,"){0,1}:").concat(Hu,"|(:").concat(ZD,"){1,3}|:)|")+"(?:".concat(ZD,":){3}(?:(:").concat(ZD,"){0,2}:").concat(Hu,"|(:").concat(ZD,"){1,4}|:)|")+"(?:".concat(ZD,":){2}(?:(:").concat(ZD,"){0,3}:").concat(Hu,"|(:").concat(ZD,"){1,5}|:)|")+"(?:".concat(ZD,":){1}(?:(:").concat(ZD,"){0,4}:").concat(Hu,"|(:").concat(ZD,"){1,6}|:)|")+"(?::((?::".concat(ZD,"){0,5}:").concat(Hu,"|(?::").concat(ZD,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function s8(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(B7.default(D),u=String(u),!u)return s8(D,4)||s8(D,6);if(u==="4")return J7.test(D);if(u==="6")return Z7.test(D);return!1}a8.exports=R0.default;a8.exports.default=R0.default});var Uu=b((g0,o8)=>{Object.defineProperty(g0,"__esModule",{value:!0});g0.default=M7;function M7(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;for(var F in u)if(typeof D[F]==="undefined")D[F]=u[F];return D}o8.exports=g0.default;o8.exports.default=g0.default});var E3=b((b0,e8)=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.default=q7;var W7=$3(wD()),Q7=$3(Uu());function $3(D){return D&&D.__esModule?D:{default:D}}var A7=/[^A-Z0-9+\/=]/i,z7=/^[A-Z0-9_\-]*$/i,G7={urlSafe:!1};function q7(D,u){W7.default(D),u=Q7.default(u,G7);var F=D.length;if(u.urlSafe)return z7.test(D);if(F%4!==0||A7.test(D))return!1;var $=D.indexOf("=");return $===-1||$===F-1||$===F-2&&D[F-1]==="="}e8.exports=b0.default;e8.exports.default=b0.default});var B3=b((_0,D2)=>{Object.defineProperty(_0,"__esModule",{value:!0});_0.default=V7;var U7=w3(wD()),O7=w3(E3());function w3(D){return D&&D.__esModule?D:{default:D}}function V7(D){U7.default(D);var u=D.split("."),F=u.length;if(F!==3)return!1;return u.reduce(function($,E){return $&&O7.default(E,{urlSafe:!0})},!0)}D2.exports=_0.default;D2.exports.default=_0.default});var F2=b((P0,u2)=>{Object.defineProperty(P0,"__esModule",{value:!0});P0.default=x7;var T7=Y3(wD()),N7=Y3(Uu());function Y3(D){return D&&D.__esModule?D:{default:D}}var I7={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function x7(D,u){if(T7.default(D),u=N7.default(u,I7),u.allow_trailing_dot&&D[D.length-1]===".")D=D.substring(0,D.length-1);if(u.allow_wildcard===!0&&D.indexOf("*.")===0)D=D.substring(2);var F=D.split("."),$=F[F.length-1];if(u.require_tld){if(F.length<2)return!1;if(!u.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test($))return!1;if(/\s/.test($))return!1}if(!u.allow_numeric_tld&&/^\d+$/.test($))return!1;return F.every(function(E){if(E.length>63&&!u.ignore_max_length)return!1;if(!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(E))return!1;if(/[\uff01-\uff5e]/.test(E))return!1;if(/^-|-$/.test(E))return!1;if(!u.allow_underscores&&/_/.test(E))return!1;return!0})}u2.exports=P0.default;u2.exports.default=P0.default});var M3=b((v0,C2)=>{Object.defineProperty(v0,"__esModule",{value:!0});v0.default=c7;var h7=m0(wD()),y7=m0(F2()),J3=m0(k0()),j7=m0(Uu());function m0(D){return D&&D.__esModule?D:{default:D}}function R7(D,u){return _7(D)||b7(D,u)||g7(D,u)||k7()}function k7(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g7(D,u){if(!D)return;if(typeof D==="string")return Z3(D,u);var F=Object.prototype.toString.call(D).slice(8,-1);if(F==="Object"&&D.constructor)F=D.constructor.name;if(F==="Map"||F==="Set")return Array.from(D);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return Z3(D,u)}function Z3(D,u){if(u==null||u>D.length)u=D.length;for(var F=0,$=new Array(u);F<u;F++)$[F]=D[F];return $}function b7(D,u){var F=D==null?null:typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(F!=null){var $,E,w,C,Z=[],M=!0,W=!1;try{if(w=(F=F.call(D)).next,u===0){if(Object(F)!==F)return;M=!1}else for(;!(M=($=w.call(F)).done)&&(Z.push($.value),Z.length!==u);M=!0);}catch(X){W=!0,E=X}finally{try{if(!M&&F.return!=null&&(C=F.return(),Object(C)!==C))return}finally{if(W)throw E}}return Z}}function _7(D){if(Array.isArray(D))return D}var P7={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},m7=/^\[([^\]]+)\](?::([0-9]+))?$/;function v7(D){return Object.prototype.toString.call(D)==="[object RegExp]"}function K3(D,u){for(var F=0;F<u.length;F++){var $=u[F];if(D===$||v7($)&&$.test(D))return!0}return!1}function c7(D,u){if(h7.default(D),!D||/[\s<>]/.test(D))return!1;if(D.indexOf("mailto:")===0)return!1;if(u=j7.default(u,P7),u.validate_length&&D.length>=2083)return!1;if(!u.allow_fragments&&D.includes("#"))return!1;if(!u.allow_query_components&&(D.includes("?")||D.includes("&")))return!1;var F,$,E,w,C,Z,M,W;if(M=D.split("#"),D=M.shift(),M=D.split("?"),D=M.shift(),M=D.split("://"),M.length>1){if(F=M.shift().toLowerCase(),u.require_valid_protocol&&u.protocols.indexOf(F)===-1)return!1}else if(u.require_protocol)return!1;else if(D.slice(0,2)==="//"){if(!u.allow_protocol_relative_urls)return!1;M[0]=D.slice(2)}if(D=M.join("://"),D==="")return!1;if(M=D.split("/"),D=M.shift(),D===""&&!u.require_host)return!0;if(M=D.split("@"),M.length>1){if(u.disallow_auth)return!1;if(M[0]==="")return!1;if($=M.shift(),$.indexOf(":")>=0&&$.split(":").length>2)return!1;var X=$.split(":"),q=R7(X,2),L=q[0],U=q[1];if(L===""&&U==="")return!1}w=M.join("@"),Z=null,W=null;var A=w.match(m7);if(A)E="",W=A[1],Z=A[2]||null;else if(M=w.split(":"),E=M.shift(),M.length)Z=M.join(":");if(Z!==null&&Z.length>0){if(C=parseInt(Z,10),!/^[0-9]+$/.test(Z)||C<=0||C>65535)return!1}else if(u.require_port)return!1;if(u.host_whitelist)return K3(E,u.host_whitelist);if(E===""&&!u.require_host)return!0;if(!J3.default(E)&&!y7.default(E,u)&&(!W||!J3.default(W,6)))return!1;if(E=E||W,u.host_blacklist&&K3(E,u.host_blacklist))return!1;return!0}C2.exports=v0.default;C2.exports.default=v0.default});var X3=b((c0,$2)=>{Object.defineProperty(c0,"__esModule",{value:!0});c0.default=l7;var n7=r7(wD());function r7(D){return D&&D.__esModule?D:{default:D}}var d7=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function l7(D){return n7.default(D),d7.test(D)}$2.exports=c0.default;$2.exports.default=c0.default});var A3=b((W3)=>{Object.defineProperty(W3,"__esModule",{value:!0});W3.default=e7;W3.locales=void 0;var i7=t7(wD());function t7(D){return D&&D.__esModule?D:{default:D}}var f0={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function s7(D){var u=D.filter(function(F){return!(F in f0)});if(u.length>0)return!1;return!0}function a7(D,u){var F=D.replace(/[\s\-]+/gi,"").toUpperCase(),$=F.slice(0,2).toUpperCase(),E=$ in f0;if(u.whitelist){if(!s7(u.whitelist))return!1;var w=u.whitelist.includes($);if(!w)return!1}if(u.blacklist){var C=u.blacklist.includes($);if(C)return!1}return E&&f0[$].test(F)}function o7(D){var u=D.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),F=u.slice(4)+u.slice(0,4),$=F.replace(/[A-Z]/g,function(w){return w.charCodeAt(0)-55}),E=$.match(/\d{1,7}/g).reduce(function(w,C){return Number(w+C)%97},"");return E===1}function e7(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i7.default(D),a7(D,u)&&o7(D)}var wW=W3.locales=Object.keys(f0)});var z3=b((n0,E2)=>{Object.defineProperty(n0,"__esModule",{value:!0});n0.default=$E;var uE=FE(wD());function FE(D){return D&&D.__esModule?D:{default:D}}var CE={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function $E(D,u){uE.default(D);var F=CE[![void 0,null].includes(u)?u:"all"];return!!F&&F.test(D)}E2.exports=n0.default;E2.exports.default=n0.default});var G3=b((r0,w2)=>{Object.defineProperty(r0,"__esModule",{value:!0});r0.default=JE;var wE=BE(wD());function BE(D){return D&&D.__esModule?D:{default:D}}var YE=/^[\x00-\x7F]+$/;function JE(D){return wE.default(D),YE.test(D)}w2.exports=r0.default;w2.exports.default=r0.default});var q3=b((d0,Y2)=>{Object.defineProperty(d0,"__esModule",{value:!0});d0.default=XE;var KE=ME(wD());function ME(D){return D&&D.__esModule?D:{default:D}}function B2(D){return B2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},B2(D)}function XE(D,u){KE.default(D);var F,$;if(B2(u)==="object")F=u.min||0,$=u.max;else F=arguments[1],$=arguments[2];var E=encodeURI(D).split(/%..|./).length-1;return E>=F&&(typeof $==="undefined"||E<=$)}Y2.exports=d0.default;Y2.exports.default=d0.default});var U3=b((l0,Z2)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.default=IE;var QE=w0(wD()),J2=w0(q3()),AE=w0(F2()),H3=w0(k0()),zE=w0(Uu());function w0(D){return D&&D.__esModule?D:{default:D}}var GE={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},qE=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,HE=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,UE=/^[a-z\d]+$/,OE=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,VE=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,LE=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,TE=254;function NE(D){var u=D.replace(/^"(.+)"$/,"$1");if(!u.trim())return!1;var F=/[\.";<>]/.test(u);if(F){if(u===D)return!1;var $=u.split('"').length===u.split('\\"').length;if(!$)return!1}return!0}function IE(D,u){if(QE.default(D),u=zE.default(u,GE),u.require_display_name||u.allow_display_name){var F=D.match(qE);if(F){var $=F[1];if(D=D.replace($,"").replace(/(^<|>$)/g,""),$.endsWith(" "))$=$.slice(0,-1);if(!NE($))return!1}else if(u.require_display_name)return!1}if(!u.ignore_max_length&&D.length>TE)return!1;var E=D.split("@"),w=E.pop(),C=w.toLowerCase();if(u.host_blacklist.includes(C))return!1;if(u.host_whitelist.length>0&&!u.host_whitelist.includes(C))return!1;var Z=E.join("@");if(u.domain_specific_validation&&(C==="gmail.com"||C==="googlemail.com")){Z=Z.toLowerCase();var M=Z.split("+")[0];if(!J2.default(M.replace(/\./g,""),{min:6,max:30}))return!1;var W=M.split(".");for(var X=0;X<W.length;X++)if(!UE.test(W[X]))return!1}if(u.ignore_max_length===!1&&(!J2.default(Z,{max:64})||!J2.default(w,{max:254})))return!1;if(!AE.default(w,{require_tld:u.require_tld,ignore_max_length:u.ignore_max_length,allow_underscores:u.allow_underscores})){if(!u.allow_ip_domain)return!1;if(!H3.default(w)){if(!w.startsWith("[")||!w.endsWith("]"))return!1;var q=w.slice(1,-1);if(q.length===0||!H3.default(q))return!1}}if(Z[0]==='"')return Z=Z.slice(1,Z.length-1),u.allow_utf8_local_part?LE.test(Z):OE.test(Z);var L=u.allow_utf8_local_part?VE:HE,U=Z.split(".");for(var A=0;A<U.length;A++)if(!L.test(U[A]))return!1;if(u.blacklisted_chars){if(Z.search(new RegExp("[".concat(u.blacklisted_chars,"]+"),"g"))!==-1)return!1}return!0}Z2.exports=l0.default;Z2.exports.default=l0.default});var D8=b((x3)=>{Object.defineProperty(x3,"__esModule",{value:!0});x3.farsiLocales=x3.englishLocales=x3.dotDecimal=x3.decimal=x3.commaDecimal=x3.bengaliLocales=x3.arabicLocales=x3.alphanumeric=x3.alpha=void 0;var _D=x3.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZ\u00C7\u018F\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"bg-BG":/^[\u0410-\u042F]+$/i,"cs-CZ":/^[A-Z\u00C1\u010C\u010E\u00C9\u011A\u00CD\u0147\u00D3\u0158\u0160\u0164\u00DA\u016E\u00DD\u017D]+$/i,"da-DK":/^[A-Z\u00C6\u00D8\u00C5]+$/i,"de-DE":/^[A-Z\u00C4\u00D6\u00DC\u00DF]+$/i,"el-GR":/^[\u0391-\u03CE]+$/i,"es-ES":/^[A-Z\u00C1\u00C9\u00CD\u00D1\u00D3\u00DA\u00DC]+$/i,"fa-IR":/^[\u0627\u0628\u067E\u062A\u062B\u062C\u0686\u062D\u062E\u062F\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u06A9\u06AF\u0644\u0645\u0646\u0648\u0647\u06CC]+$/i,"fi-FI":/^[A-Z\u00C5\u00C4\u00D6]+$/i,"fr-FR":/^[A-Z\u00C0\u00C2\u00C6\u00C7\u00C9\u00C8\u00CA\u00CB\u00CF\u00CE\u00D4\u0152\u00D9\u00DB\u00DC\u0178]+$/i,"it-IT":/^[A-Z\u00C0\u00C9\u00C8\u00CC\u00CE\u00D3\u00D2\u00D9]+$/i,"ja-JP":/^[\u3041-\u3093\u30A1-\u30F6\uFF66-\uFF9F\u4E00-\u9FA0\u30FC\u30FB\u3002\u3001]+$/i,"nb-NO":/^[A-Z\u00C6\u00D8\u00C5]+$/i,"nl-NL":/^[A-Z\u00C1\u00C9\u00CB\u00CF\u00D3\u00D6\u00DC\u00DA]+$/i,"nn-NO":/^[A-Z\u00C6\u00D8\u00C5]+$/i,"hu-HU":/^[A-Z\u00C1\u00C9\u00CD\u00D3\u00D6\u0150\u00DA\u00DC\u0170]+$/i,"pl-PL":/^[A-Z\u0104\u0106\u0118\u015A\u0141\u0143\u00D3\u017B\u0179]+$/i,"pt-PT":/^[A-Z\u00C3\u00C1\u00C0\u00C2\u00C4\u00C7\u00C9\u00CA\u00CB\u00CD\u00CF\u00D5\u00D3\u00D4\u00D6\u00DA\u00DC]+$/i,"ru-RU":/^[\u0410-\u042F\u0401]+$/i,"kk-KZ":/^[\u0410-\u042F\u0401\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-Z\u010C\u0106\u0110\u0160\u017D]+$/i,"sk-SK":/^[A-Z\u00C1\u010C\u010E\u00C9\u00CD\u0147\u00D3\u0160\u0164\u00DA\u00DD\u017D\u0139\u0154\u013D\u00C4\u00D4]+$/i,"sr-RS@latin":/^[A-Z\u010C\u0106\u017D\u0160\u0110]+$/i,"sr-RS":/^[\u0410-\u042F\u0402\u0408\u0409\u040A\u040B\u040F]+$/i,"sv-SE":/^[A-Z\u00C5\u00C4\u00D6]+$/i,"th-TH":/^[\u0E01-\u0E50\s]+$/i,"tr-TR":/^[A-Z\u00C7\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"uk-UA":/^[\u0410-\u0429\u042C\u042E\u042F\u0404I\u0407\u0490\u0456]+$/i,"vi-VN":/^[A-Z\u00C0\u00C1\u1EA0\u1EA2\u00C3\u00C2\u1EA6\u1EA4\u1EAC\u1EA8\u1EAA\u0102\u1EB0\u1EAE\u1EB6\u1EB2\u1EB4\u0110\u00C8\u00C9\u1EB8\u1EBA\u1EBC\u00CA\u1EC0\u1EBE\u1EC6\u1EC2\u1EC4\u00CC\u00CD\u1ECA\u1EC8\u0128\u00D2\u00D3\u1ECC\u1ECE\u00D5\u00D4\u1ED2\u1ED0\u1ED8\u1ED4\u1ED6\u01A0\u1EDC\u1EDA\u1EE2\u1EDE\u1EE0\u00D9\u00DA\u1EE4\u1EE6\u0168\u01AF\u1EEA\u1EE8\u1EF0\u1EEC\u1EEE\u1EF2\u00DD\u1EF4\u1EF6\u1EF8]+$/i,"ko-KR":/^[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]*$/,"ku-IQ":/^[\u0626\u0627\u0628\u067E\u062A\u062C\u0686\u062D\u062E\u062F\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063A\u0641\u06A4\u0642\u06A9\u06AF\u0644\u06B5\u0645\u0646\u0648\u06C6\u06BE\u06D5\u06CC\u06CE\u064A\u0637\u0624\u062B\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,ar:/^[\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\u0670]+$/,he:/^[\u05D0-\u05EA]+$/,fa:/^['\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067E\u062A\u062B\u062C\u0686\u062D\u062E\u062F\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u06A9\u06AF\u0644\u0645\u0646\u0648\u0647\u0629\u06CC']+$/i,bn:/^['\u0980\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098A\u098B\u098C\u098F\u0990\u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099A\u099B\u099C\u099D\u099E\u099F\u09A0\u09A1\u09A2\u09A3\u09A4\u09A5\u09A6\u09A7\u09A8\u09AA\u09AB\u09AC\u09AD\u09AE\u09AF\u09B0\u09B2\u09B6\u09B7\u09B8\u09B9\u09BC\u09BD\u09BE\u09BF\u09C0\u09C1\u09C2\u09C3\u09C4\u09C7\u09C8\u09CB\u09CC\u09CD\u09CE\u09D7\u09DC\u09DD\u09DF\u09E0\u09E1\u09E2\u09E3\u09F0\u09F1\u09F2\u09F3\u09F4\u09F5\u09F6\u09F7\u09F8\u09F9\u09FA\u09FB']+$/,eo:/^[ABC\u0108D-G\u011CH\u0124IJ\u0134K-PRS\u015CTU\u016CVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/},PD=x3.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZ\u00C7\u018F\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"bg-BG":/^[0-9\u0410-\u042F]+$/i,"cs-CZ":/^[0-9A-Z\u00C1\u010C\u010E\u00C9\u011A\u00CD\u0147\u00D3\u0158\u0160\u0164\u00DA\u016E\u00DD\u017D]+$/i,"da-DK":/^[0-9A-Z\u00C6\u00D8\u00C5]+$/i,"de-DE":/^[0-9A-Z\u00C4\u00D6\u00DC\u00DF]+$/i,"el-GR":/^[0-9\u0391-\u03C9]+$/i,"es-ES":/^[0-9A-Z\u00C1\u00C9\u00CD\u00D1\u00D3\u00DA\u00DC]+$/i,"fi-FI":/^[0-9A-Z\u00C5\u00C4\u00D6]+$/i,"fr-FR":/^[0-9A-Z\u00C0\u00C2\u00C6\u00C7\u00C9\u00C8\u00CA\u00CB\u00CF\u00CE\u00D4\u0152\u00D9\u00DB\u00DC\u0178]+$/i,"it-IT":/^[0-9A-Z\u00C0\u00C9\u00C8\u00CC\u00CE\u00D3\u00D2\u00D9]+$/i,"ja-JP":/^[0-9\uFF10-\uFF19\u3041-\u3093\u30A1-\u30F6\uFF66-\uFF9F\u4E00-\u9FA0\u30FC\u30FB\u3002\u3001]+$/i,"hu-HU":/^[0-9A-Z\u00C1\u00C9\u00CD\u00D3\u00D6\u0150\u00DA\u00DC\u0170]+$/i,"nb-NO":/^[0-9A-Z\u00C6\u00D8\u00C5]+$/i,"nl-NL":/^[0-9A-Z\u00C1\u00C9\u00CB\u00CF\u00D3\u00D6\u00DC\u00DA]+$/i,"nn-NO":/^[0-9A-Z\u00C6\u00D8\u00C5]+$/i,"pl-PL":/^[0-9A-Z\u0104\u0106\u0118\u015A\u0141\u0143\u00D3\u017B\u0179]+$/i,"pt-PT":/^[0-9A-Z\u00C3\u00C1\u00C0\u00C2\u00C4\u00C7\u00C9\u00CA\u00CB\u00CD\u00CF\u00D5\u00D3\u00D4\u00D6\u00DA\u00DC]+$/i,"ru-RU":/^[0-9\u0410-\u042F\u0401]+$/i,"kk-KZ":/^[0-9\u0410-\u042F\u0401\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-Z\u010C\u0106\u0110\u0160\u017D]+$/i,"sk-SK":/^[0-9A-Z\u00C1\u010C\u010E\u00C9\u00CD\u0147\u00D3\u0160\u0164\u00DA\u00DD\u017D\u0139\u0154\u013D\u00C4\u00D4]+$/i,"sr-RS@latin":/^[0-9A-Z\u010C\u0106\u017D\u0160\u0110]+$/i,"sr-RS":/^[0-9\u0410-\u042F\u0402\u0408\u0409\u040A\u040B\u040F]+$/i,"sv-SE":/^[0-9A-Z\u00C5\u00C4\u00D6]+$/i,"th-TH":/^[\u0E01-\u0E59\s]+$/i,"tr-TR":/^[0-9A-Z\u00C7\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"uk-UA":/^[0-9\u0410-\u0429\u042C\u042E\u042F\u0404I\u0407\u0490\u0456]+$/i,"ko-KR":/^[0-9\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]*$/,"ku-IQ":/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0626\u0627\u0628\u067E\u062A\u062C\u0686\u062D\u062E\u062F\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063A\u0641\u06A4\u0642\u06A9\u06AF\u0644\u06B5\u0645\u0646\u0648\u06C6\u06BE\u06D5\u06CC\u06CE\u064A\u0637\u0624\u062B\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,"vi-VN":/^[0-9A-Z\u00C0\u00C1\u1EA0\u1EA2\u00C3\u00C2\u1EA6\u1EA4\u1EAC\u1EA8\u1EAA\u0102\u1EB0\u1EAE\u1EB6\u1EB2\u1EB4\u0110\u00C8\u00C9\u1EB8\u1EBA\u1EBC\u00CA\u1EC0\u1EBE\u1EC6\u1EC2\u1EC4\u00CC\u00CD\u1ECA\u1EC8\u0128\u00D2\u00D3\u1ECC\u1ECE\u00D5\u00D4\u1ED2\u1ED0\u1ED8\u1ED4\u1ED6\u01A0\u1EDC\u1EDA\u1EE2\u1EDE\u1EE0\u00D9\u00DA\u1EE4\u1EE6\u0168\u01AF\u1EEA\u1EE8\u1EF0\u1EEC\u1EEE\u1EF2\u00DD\u1EF4\u1EF6\u1EF8]+$/i,ar:/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\u0670]+$/,he:/^[0-9\u05D0-\u05EA]+$/,fa:/^['0-9\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067E\u062A\u062B\u062C\u0686\u062D\u062E\u062F\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u06A9\u06AF\u0644\u0645\u0646\u0648\u0647\u0629\u06CC\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9\u06F0']+$/i,bn:/^['\u0980\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098A\u098B\u098C\u098F\u0990\u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099A\u099B\u099C\u099D\u099E\u099F\u09A0\u09A1\u09A2\u09A3\u09A4\u09A5\u09A6\u09A7\u09A8\u09AA\u09AB\u09AC\u09AD\u09AE\u09AF\u09B0\u09B2\u09B6\u09B7\u09B8\u09B9\u09BC\u09BD\u09BE\u09BF\u09C0\u09C1\u09C2\u09C3\u09C4\u09C7\u09C8\u09CB\u09CC\u09CD\u09CE\u09D7\u09DC\u09DD\u09DF\u09E0\u09E1\u09E2\u09E3\u09E6\u09E7\u09E8\u09E9\u09EA\u09EB\u09EC\u09ED\u09EE\u09EF\u09F0\u09F1\u09F2\u09F3\u09F4\u09F5\u09F6\u09F7\u09F8\u09F9\u09FA\u09FB']+$/,eo:/^[0-9ABC\u0108D-G\u011CH\u0124IJ\u0134K-PRS\u015CTU\u016CVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/},yD=x3.decimal={"en-US":".",ar:"\u066B"},O3=x3.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"];for(p0=0;p0<O3.length;p0++)B0="en-".concat(O3[p0]),_D[B0]=_D["en-US"],PD[B0]=PD["en-US"],yD[B0]=yD["en-US"];var B0,p0,V3=x3.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];for(i0=0;i0<V3.length;i0++)Y0="ar-".concat(V3[i0]),_D[Y0]=_D.ar,PD[Y0]=PD.ar,yD[Y0]=yD.ar;var Y0,i0,L3=x3.farsiLocales=["IR","AF"];for(s0=0;s0<L3.length;s0++)t0="fa-".concat(L3[s0]),PD[t0]=PD.fa,yD[t0]=yD.ar;var t0,s0,T3=x3.bengaliLocales=["BD","IN"];for(a0=0;a0<T3.length;a0++)J0="bn-".concat(T3[a0]),_D[J0]=_D.bn,PD[J0]=PD.bn,yD[J0]=yD["en-US"];var J0,a0,N3=x3.dotDecimal=["ar-EG","ar-LB","ar-LY"],I3=x3.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];for(o0=0;o0<N3.length;o0++)yD[N3[o0]]=yD["en-US"];var o0;for(e0=0;e0<I3.length;e0++)yD[I3[e0]]=",";var e0;_D["fr-CA"]=_D["fr-FR"];PD["fr-CA"]=PD["fr-FR"];_D["pt-BR"]=_D["pt-PT"];PD["pt-BR"]=PD["pt-PT"];yD["pt-BR"]=yD["pt-PT"];_D["pl-Pl"]=_D["pl-PL"];PD["pl-Pl"]=PD["pl-PL"];yD["pl-Pl"]=yD["pl-PL"];_D["fa-AF"]=_D.fa});var j3=b((h3)=>{Object.defineProperty(h3,"__esModule",{value:!0});h3.default=mE;h3.locales=void 0;var _E=PE(wD()),K2=D8();function PE(D){return D&&D.__esModule?D:{default:D}}function mE(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_E.default(D);var $=D,E=F.ignore;if(E)if(E instanceof RegExp)$=$.replace(E,"");else if(typeof E==="string")$=$.replace(new RegExp("[".concat(E.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(u in K2.alpha)return K2.alpha[u].test($);throw new Error("Invalid locale '".concat(u,"'"))}var JW=h3.locales=Object.keys(K2.alpha)});var k3=b((u8,M2)=>{Object.defineProperty(u8,"__esModule",{value:!0});u8.default=iE;var cE=R3(wD()),fE=R3(Uu());function R3(D){return D&&D.__esModule?D:{default:D}}var nE=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,rE=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,dE=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,lE=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,pE={checkDMS:!1};function iE(D,u){if(cE.default(D),u=fE.default(u,pE),!D.includes(","))return!1;var F=D.split(",");if(F[0].startsWith("(")&&!F[1].endsWith(")")||F[1].endsWith(")")&&!F[0].startsWith("("))return!1;if(u.checkDMS)return dE.test(F[0])&&lE.test(F[1]);return nE.test(F[0])&&rE.test(F[1])}M2.exports=u8.default;M2.exports.default=u8.default});var b3=b((F8,X2)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=void 0;var sE=function D(u,F){return u.some(function($){return F===$})},KW=F8.default=sE;X2.exports=F8.default;X2.exports.default=F8.default});var P3=b((C8,Q2)=>{Object.defineProperty(C8,"__esModule",{value:!0});C8.default=C5;var aE=W2(Uu()),oE=W2(wD()),eE=W2(b3()),_3=D8();function W2(D){return D&&D.__esModule?D:{default:D}}function D5(D){var u=new RegExp("^[-+]?([0-9]+)?(\\".concat(_3.decimal[D.locale],"[0-9]{").concat(D.decimal_digits,"})").concat(D.force_decimal?"":"?","$"));return u}var u5={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},F5=["","-","+"];function C5(D,u){if(oE.default(D),u=aE.default(u,u5),u.locale in _3.decimal)return!eE.default(F5,D.replace(/ /g,""))&&D5(u).test(D);throw new Error("Invalid locale '".concat(u.locale,"'"))}Q2.exports=C8.default;Q2.exports.default=C8.default});var m3=b(($8,A2)=>{Object.defineProperty($8,"__esModule",{value:!0});$8.default=Y5;var E5=w5(wD());function w5(D){return D&&D.__esModule?D:{default:D}}var B5=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function Y5(D){return E5.default(D),B5.test(D)}A2.exports=$8.default;A2.exports.default=$8.default});var v3=b((E8,z2)=>{Object.defineProperty(E8,"__esModule",{value:!0});E8.default=M5;var Z5=K5(wD());function K5(D){return D&&D.__esModule?D:{default:D}}function M5(D){Z5.default(D);var u=D.replace(/[- ]+/g,""),F=0,$,E,w;for(var C=u.length-1;C>=0;C--){if($=u.substring(C,C+1),E=parseInt($,10),w)if(E*=2,E>=10)F+=E%10+1;else F+=E;else F+=E;w=!w}return!!(F%10===0?u:!1)}z2.exports=E8.default;z2.exports.default=E8.default});var f3=b((w8,G2)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=z5;var W5=c3(wD()),Q5=c3(v3());function c3(D){return D&&D.__esModule?D:{default:D}}var _u={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},A5=function(){var D=[];for(var u in _u)if(_u.hasOwnProperty(u))D.push(_u[u]);return D}();function z5(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W5.default(D);var F=u.provider,$=D.replace(/[- ]+/g,"");if(F&&F.toLowerCase()in _u){if(!_u[F.toLowerCase()].test($))return!1}else if(F&&!(F.toLowerCase()in _u))throw new Error("".concat(F," is not a valid credit card provider."));else if(!A5.some(function(E){return E.test($)}))return!1;return Q5.default(D)}G2.exports=w8.default;G2.exports.default=w8.default});var d3=b((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.default=U5;n3.locales=void 0;var q5=H5(wD()),q2=D8();function H5(D){return D&&D.__esModule?D:{default:D}}function U5(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};q5.default(D);var $=D,E=F.ignore;if(E)if(E instanceof RegExp)$=$.replace(E,"");else if(typeof E==="string")$=$.replace(new RegExp("[".concat(E.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(u in q2.alphanumeric)return q2.alphanumeric[u].test($);throw new Error("Invalid locale '".concat(u,"'"))}var MW=n3.locales=Object.keys(q2.alphanumeric)});var p3=b((B8,H2)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=T5;var V5=L5(wD());function L5(D){return D&&D.__esModule?D:{default:D}}var l3={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};function T5(D,u){V5.default(D);var F=D.replace(/\s/g,"").toUpperCase();return u.toUpperCase()in l3&&l3[u].test(F)}H2.exports=B8.default;H2.exports.default=B8.default});var O2=b((t3)=>{Object.defineProperty(t3,"__esModule",{value:!0});t3.default=S5;t3.locales=void 0;var I5=x5(wD());function x5(D){return D&&D.__esModule?D:{default:D}}var i3=/^\d{3}$/,nD=/^\d{4}$/,jD=/^\d{5}$/,U2=/^\d{6}$/,Pu={AD:/^AD\d{3}$/,AT:nD,AU:nD,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:nD,BG:nD,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:nD,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:jD,DK:nD,DO:jD,DZ:jD,EE:jD,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:jD,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:nD,ID:jD,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:i3,IT:jD,JP:/^\d{3}\-\d{4}$/,KE:jD,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:nD,LV:/^LV\-\d{4}$/,LK:jD,MG:i3,MX:jD,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:jD,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:nD,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:nD,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:U2,RU:U2,SA:jD,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:U2,SI:nD,SK:/^\d{3}\s?\d{2}$/,TH:jD,TN:nD,TW:/^\d{3}(\d{2})?$/,UA:jD,US:/^\d{5}(-\d{4})?$/,ZA:nD,ZM:jD},WW=t3.locales=Object.keys(Pu);function S5(D,u){if(I5.default(D),u in Pu)return Pu[u].test(D);else if(u==="any"){for(var F in Pu)if(Pu.hasOwnProperty(F)){var $=Pu[F];if($.test(D))return!0}return!1}throw new Error("Invalid locale '".concat(u,"'"))}});var V2=b((a3)=>{Object.defineProperty(a3,"__esModule",{value:!0});a3.default=R5;a3.locales=void 0;var y5=j5(wD());function j5(D){return D&&D.__esModule?D:{default:D}}var CD={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};CD["en-CA"]=CD["en-US"];CD["fr-CA"]=CD["en-CA"];CD["fr-BE"]=CD["nl-BE"];CD["zh-HK"]=CD["en-HK"];CD["zh-MO"]=CD["en-MO"];CD["ga-IE"]=CD["en-IE"];CD["fr-CH"]=CD["de-CH"];CD["it-CH"]=CD["fr-CH"];function R5(D,u,F){if(y5.default(D),F&&F.strictMode&&!D.startsWith("+"))return!1;if(Array.isArray(u))return u.some(function(w){if(CD.hasOwnProperty(w)){var C=CD[w];if(C.test(D))return!0}return!1});else if(u in CD)return CD[u].test(D);else if(!u||u==="any"){for(var $ in CD)if(CD.hasOwnProperty($)){var E=CD[$];if(E.test(D))return!0}return!1}throw new Error("Invalid locale '".concat(u,"'"))}var AW=a3.locales=Object.keys(CD)});var S2=b((I2,x2)=>{(function(D,u){typeof I2=="object"&&typeof x2!="undefined"?x2.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs=u()})(I2,function(){var D=1000,u=60000,F=3600000,$="millisecond",E="second",w="minute",C="hour",Z="day",M="week",W="month",X="quarter",q="year",L="date",U="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var T=["th","st","nd","rd"],O=R%100;return"["+R+(T[(O-20)%10]||T[O]||T[0])+"]"}},d=function(R,T,O){var h=String(R);return!h||h.length>=T?R:""+Array(T+1-h.length).join(O)+R},uD={s:d,z:function(R){var T=-R.utcOffset(),O=Math.abs(T),h=Math.floor(O/60),N=O%60;return(T<=0?"+":"-")+d(h,2,"0")+":"+d(N,2,"0")},m:function R(T,O){if(T.date()<O.date())return-R(O,T);var h=12*(O.year()-T.year())+(O.month()-T.month()),N=T.clone().add(h,W),g=O-N<0,_=T.clone().add(h+(g?-1:1),W);return+(-(h+(O-N)/(g?N-_:_-N))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:W,y:q,w:M,d:Z,D:L,h:C,m:w,s:E,ms:$,Q:X}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},FD="en",xD={};xD[FD]=n;var dD="$isDayjsObject",SD=function(R){return R instanceof UD||!(!R||!R[dD])},VD=function R(T,O,h){var N;if(!T)return FD;if(typeof T=="string"){var g=T.toLowerCase();xD[g]&&(N=g),O&&(xD[g]=O,N=g);var _=T.split("-");if(!N&&_.length>1)return R(_[0])}else{var v=T.name;xD[v]=T,N=v}return!h&&N&&(FD=N),N||!h&&FD},i=function(R,T){if(SD(R))return R.clone();var O=typeof T=="object"?T:{};return O.date=R,O.args=arguments,new UD(O)},m=uD;m.l=VD,m.i=SD,m.w=function(R,T){return i(R,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var UD=function(){function R(O){this.$L=VD(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[dD]=!0}var T=R.prototype;return T.parse=function(O){this.$d=function(h){var{date:N,utc:g}=h;if(N===null)return new Date(NaN);if(m.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var _=N.match(A);if(_){var v=_[2]-1||0,l=(_[7]||"0").substring(0,3);return g?new Date(Date.UTC(_[1],v,_[3]||1,_[4]||0,_[5]||0,_[6]||0,l)):new Date(_[1],v,_[3]||1,_[4]||0,_[5]||0,_[6]||0,l)}}return new Date(N)}(O),this.init()},T.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},T.$utils=function(){return m},T.isValid=function(){return this.$d.toString()!==U},T.isSame=function(O,h){var N=i(O);return this.startOf(h)<=N&&N<=this.endOf(h)},T.isAfter=function(O,h){return i(O)<this.startOf(h)},T.isBefore=function(O,h){return this.endOf(h)<i(O)},T.$g=function(O,h,N){return m.u(O)?this[h]:this.set(N,O)},T.unix=function(){return Math.floor(this.valueOf()/1000)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(O,h){var N=this,g=!!m.u(h)||h,_=m.p(O),v=function(XD,KD){var bD=m.w(N.$u?Date.UTC(N.$y,KD,XD):new Date(N.$y,KD,XD),N);return g?bD:bD.endOf(Z)},l=function(XD,KD){return m.w(N.toDate()[XD].apply(N.toDate("s"),(g?[0,0,0,0]:[23,59,59,999]).slice(KD)),N)},a=this.$W,JD=this.$M,TD=this.$D,Eu="set"+(this.$u?"UTC":"");switch(_){case q:return g?v(1,0):v(31,11);case W:return g?v(1,JD):v(0,JD+1);case M:var sD=this.$locale().weekStart||0,Xu=(a<sD?a+7:a)-sD;return v(g?TD-Xu:TD+(6-Xu),JD);case Z:case L:return l(Eu+"Hours",0);case C:return l(Eu+"Minutes",1);case w:return l(Eu+"Seconds",2);case E:return l(Eu+"Milliseconds",3);default:return this.clone()}},T.endOf=function(O){return this.startOf(O,!1)},T.$set=function(O,h){var N,g=m.p(O),_="set"+(this.$u?"UTC":""),v=(N={},N[Z]=_+"Date",N[L]=_+"Date",N[W]=_+"Month",N[q]=_+"FullYear",N[C]=_+"Hours",N[w]=_+"Minutes",N[E]=_+"Seconds",N[$]=_+"Milliseconds",N)[g],l=g===Z?this.$D+(h-this.$W):h;if(g===W||g===q){var a=this.clone().set(L,1);a.$d[v](l),a.init(),this.$d=a.set(L,Math.min(this.$D,a.daysInMonth())).$d}else v&&this.$d[v](l);return this.init(),this},T.set=function(O,h){return this.clone().$set(O,h)},T.get=function(O){return this[m.p(O)]()},T.add=function(O,h){var N,g=this;O=Number(O);var _=m.p(h),v=function(JD){var TD=i(g);return m.w(TD.date(TD.date()+Math.round(JD*O)),g)};if(_===W)return this.set(W,this.$M+O);if(_===q)return this.set(q,this.$y+O);if(_===Z)return v(1);if(_===M)return v(7);var l=(N={},N[w]=u,N[C]=F,N[E]=D,N)[_]||1,a=this.$d.getTime()+O*l;return m.w(a,this)},T.subtract=function(O,h){return this.add(-1*O,h)},T.format=function(O){var h=this,N=this.$locale();if(!this.isValid())return N.invalidDate||U;var g=O||"YYYY-MM-DDTHH:mm:ssZ",_=m.z(this),v=this.$H,l=this.$m,a=this.$M,JD=N.weekdays,TD=N.months,Eu=N.meridiem,sD=function(KD,bD,aD,wu){return KD&&(KD[bD]||KD(h,g))||aD[bD].slice(0,wu)},Xu=function(KD){return m.s(v%12||12,KD,"0")},XD=Eu||function(KD,bD,aD){var wu=KD<12?"AM":"PM";return aD?wu.toLowerCase():wu};return g.replace(P,function(KD,bD){return bD||function(aD){switch(aD){case"YY":return String(h.$y).slice(-2);case"YYYY":return m.s(h.$y,4,"0");case"M":return a+1;case"MM":return m.s(a+1,2,"0");case"MMM":return sD(N.monthsShort,a,TD,3);case"MMMM":return sD(TD,a);case"D":return h.$D;case"DD":return m.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return sD(N.weekdaysMin,h.$W,JD,2);case"ddd":return sD(N.weekdaysShort,h.$W,JD,3);case"dddd":return JD[h.$W];case"H":return String(v);case"HH":return m.s(v,2,"0");case"h":return Xu(1);case"hh":return Xu(2);case"a":return XD(v,l,!0);case"A":return XD(v,l,!1);case"m":return String(l);case"mm":return m.s(l,2,"0");case"s":return String(h.$s);case"ss":return m.s(h.$s,2,"0");case"SSS":return m.s(h.$ms,3,"0");case"Z":return _}return null}(KD)||_.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(O,h,N){var g,_=this,v=m.p(h),l=i(O),a=(l.utcOffset()-this.utcOffset())*u,JD=this-l,TD=function(){return m.m(_,l)};switch(v){case q:g=TD()/12;break;case W:g=TD();break;case X:g=TD()/3;break;case M:g=(JD-a)/604800000;break;case Z:g=(JD-a)/86400000;break;case C:g=JD/F;break;case w:g=JD/u;break;case E:g=JD/D;break;default:g=JD}return N?g:m.a(g)},T.daysInMonth=function(){return this.endOf(W).$D},T.$locale=function(){return xD[this.$L]},T.locale=function(O,h){if(!O)return this.$L;var N=this.clone(),g=VD(O,h,!0);return g&&(N.$L=g),N},T.clone=function(){return m.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},R}(),LD=UD.prototype;return i.prototype=LD,[["$ms",$],["$s",E],["$m",w],["$H",C],["$W",Z],["$M",W],["$y",q],["$D",L]].forEach(function(R){LD[R[1]]=function(T){return this.$g(T,R[0],R[1])}}),i.extend=function(R,T){return R.$i||(R(T,UD,i),R.$i=!0),i},i.locale=VD,i.isDayjs=SD,i.unix=function(R){return i(1000*R)},i.en=xD[FD],i.Ls=xD,i.p={},i})});var VF=b((h2,y2)=>{(function(D,u){typeof h2=="object"&&typeof y2!="undefined"?y2.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs_plugin_isSameOrAfter=u()})(h2,function(){return function(D,u){u.prototype.isSameOrAfter=function(F,$){return this.isSame(F,$)||this.isAfter(F,$)}}})});var LF=b((j2,R2)=>{(function(D,u){typeof j2=="object"&&typeof R2!="undefined"?R2.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs_plugin_isSameOrBefore=u()})(j2,function(){return function(D,u){u.prototype.isSameOrBefore=function(F,$){return this.isSame(F,$)||this.isBefore(F,$)}}})});var TF=b((k2,g2)=>{(function(D,u){typeof k2=="object"&&typeof g2!="undefined"?g2.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs_plugin_customParseFormat=u()})(k2,function(){var D={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},u=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,F=/\d/,$=/\d\d/,E=/\d\d?/,w=/\d*[^-_:/,()\s\d]+/,C={},Z=function(A){return(A=+A)+(A>68?1900:2000)},M=function(A){return function(P){this[A]=+P}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(A){(this.zone||(this.zone={})).offset=function(P){if(!P)return 0;if(P==="Z")return 0;var n=P.match(/([+-]|\d\d)/g),d=60*n[1]+(+n[2]||0);return d===0?0:n[0]==="+"?-d:d}(A)}],X=function(A){var P=C[A];return P&&(P.indexOf?P:P.s.concat(P.f))},q=function(A,P){var n,d=C.meridiem;if(d){for(var uD=1;uD<=24;uD+=1)if(A.indexOf(d(uD,0,P))>-1){n=uD>12;break}}else n=A===(P?"pm":"PM");return n},L={A:[w,function(A){this.afternoon=q(A,!1)}],a:[w,function(A){this.afternoon=q(A,!0)}],Q:[F,function(A){this.month=3*(A-1)+1}],S:[F,function(A){this.milliseconds=100*+A}],SS:[$,function(A){this.milliseconds=10*+A}],SSS:[/\d{3}/,function(A){this.milliseconds=+A}],s:[E,M("seconds")],ss:[E,M("seconds")],m:[E,M("minutes")],mm:[E,M("minutes")],H:[E,M("hours")],h:[E,M("hours")],HH:[E,M("hours")],hh:[E,M("hours")],D:[E,M("day")],DD:[$,M("day")],Do:[w,function(A){var P=C.ordinal,n=A.match(/\d+/);if(this.day=n[0],P)for(var d=1;d<=31;d+=1)P(d).replace(/\[|\]/g,"")===A&&(this.day=d)}],w:[E,M("week")],ww:[$,M("week")],M:[E,M("month")],MM:[$,M("month")],MMM:[w,function(A){var P=X("months"),n=(X("monthsShort")||P.map(function(d){return d.slice(0,3)})).indexOf(A)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[w,function(A){var P=X("months").indexOf(A)+1;if(P<1)throw new Error;this.month=P%12||P}],Y:[/[+-]?\d+/,M("year")],YY:[$,function(A){this.year=Z(A)}],YYYY:[/\d{4}/,M("year")],Z:W,ZZ:W};function U(A){var P,n;P=A,n=C&&C.formats;for(var d=(A=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,m,UD){var LD=UD&&UD.toUpperCase();return m||n[UD]||D[UD]||n[LD].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,T,O){return T||O.slice(1)})})).match(u),uD=d.length,FD=0;FD<uD;FD+=1){var xD=d[FD],dD=L[xD],SD=dD&&dD[0],VD=dD&&dD[1];d[FD]=VD?{regex:SD,parser:VD}:xD.replace(/^\[|\]$/g,"")}return function(i){for(var m={},UD=0,LD=0;UD<uD;UD+=1){var R=d[UD];if(typeof R=="string")LD+=R.length;else{var{regex:T,parser:O}=R,h=i.slice(LD),N=T.exec(h)[0];O.call(m,N),i=i.replace(N,"")}}return function(g){var _=g.afternoon;if(_!==void 0){var v=g.hours;_?v<12&&(g.hours+=12):v===12&&(g.hours=0),delete g.afternoon}}(m),m}}return function(A,P,n){n.p.customParseFormat=!0,A&&A.parseTwoDigitYear&&(Z=A.parseTwoDigitYear);var d=P.prototype,uD=d.parse;d.parse=function(FD){var{date:xD,utc:dD,args:SD}=FD;this.$u=dD;var VD=SD[1];if(typeof VD=="string"){var i=SD[2]===!0,m=SD[3]===!0,UD=i||m,LD=SD[2];m&&(LD=SD[2]),C=this.$locale(),!i&&LD&&(C=n.Ls[LD]),this.$d=function(h,N,g,_){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1000:1)*h);var v=U(N)(h),l=v.year,a=v.month,JD=v.day,TD=v.hours,Eu=v.minutes,sD=v.seconds,Xu=v.milliseconds,XD=v.zone,KD=v.week,bD=new Date,aD=JD||(l||a?1:bD.getDate()),wu=l||bD.getFullYear(),gu=0;l&&!a||(gu=a>0?a-1:bD.getMonth());var bu,ou=TD||0,eu=Eu||0,D0=sD||0,u0=Xu||0;return XD?new Date(Date.UTC(wu,gu,aD,ou,eu,D0,u0+60*XD.offset*1000)):g?new Date(Date.UTC(wu,gu,aD,ou,eu,D0,u0)):(bu=new Date(wu,gu,aD,ou,eu,D0,u0),KD&&(bu=_(bu).week(KD).toDate()),bu)}catch(k1){return new Date("")}}(xD,VD,dD,n),this.init(),LD&&LD!==!0&&(this.$L=this.locale(LD).$L),UD&&xD!=this.format(VD)&&(this.$d=new Date("")),C={}}else if(VD instanceof Array)for(var R=VD.length,T=1;T<=R;T+=1){SD[1]=VD[T-1];var O=n.apply(this,SD);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}T===R&&(this.$d=new Date(""))}else uD.call(this,FD)}}})});var NF=b((J8,P2)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=i5;var l5=p5(wD());function p5(D){return D&&D.__esModule?D:{default:D}}function i5(D){return l5.default(D),D.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")}P2.exports=J8.default;P2.exports.default=J8.default});var IF=b((Z8,m2)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=$w;var s5=a5(Uu());function a5(D){return D&&D.__esModule?D:{default:D}}var o5={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},e5=["icloud.com","me.com"],Dw=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],uw=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],Fw=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function Cw(D){if(D.length>1)return D;return""}function $w(D,u){u=s5.default(u,o5);var F=D.split("@"),$=F.pop(),E=F.join("@"),w=[E,$];if(w[1]=w[1].toLowerCase(),w[1]==="gmail.com"||w[1]==="googlemail.com"){if(u.gmail_remove_subaddress)w[0]=w[0].split("+")[0];if(u.gmail_remove_dots)w[0]=w[0].replace(/\.+/g,Cw);if(!w[0].length)return!1;if(u.all_lowercase||u.gmail_lowercase)w[0]=w[0].toLowerCase();w[1]=u.gmail_convert_googlemaildotcom?"gmail.com":w[1]}else if(e5.indexOf(w[1])>=0){if(u.icloud_remove_subaddress)w[0]=w[0].split("+")[0];if(!w[0].length)return!1;if(u.all_lowercase||u.icloud_lowercase)w[0]=w[0].toLowerCase()}else if(Dw.indexOf(w[1])>=0){if(u.outlookdotcom_remove_subaddress)w[0]=w[0].split("+")[0];if(!w[0].length)return!1;if(u.all_lowercase||u.outlookdotcom_lowercase)w[0]=w[0].toLowerCase()}else if(uw.indexOf(w[1])>=0){if(u.yahoo_remove_subaddress){var C=w[0].split("-");w[0]=C.length>1?C.slice(0,-1).join("-"):C[0]}if(!w[0].length)return!1;if(u.all_lowercase||u.yahoo_lowercase)w[0]=w[0].toLowerCase()}else if(Fw.indexOf(w[1])>=0){if(u.all_lowercase||u.yandex_lowercase)w[0]=w[0].toLowerCase();w[1]="yandex.ru"}else if(u.all_lowercase)w[0]=w[0].toLowerCase();return w.join("@")}m2.exports=Z8.default;m2.exports.default=Z8.default});function l2(D){return D!==null&&typeof D==="object"}function s2(D,u,F=".",$){if(!l2(u))return s2(D,{},F,$);let E=Object.assign({},u);for(let w in D){if(w==="__proto__"||w==="constructor")continue;let C=D[w];if(C===null||C===void 0)continue;if($&&$(E,w,C,F))continue;if(Array.isArray(C)&&Array.isArray(E[w]))E[w]=[...C,...E[w]];else if(l2(C)&&l2(E[w]))E[w]=s2(C,E[w],(F?`${F}.`:"")+w.toString(),$);else E[w]=C}return E}function XY(D){return(...u)=>u.reduce((F,$)=>s2(F,$,"",D),{})}function QY(D){return Object.prototype.toString.call(D)==="[object Object]"}function AY(D){if(!QY(D))return!1;if(!D.message&&!D.args)return!1;if(D.stack)return!1;return!0}class zD{constructor(D={}){let u=D.types||t2;this.options=WY({...D,defaults:{...D.defaults},level:i2(D.level,u),reporters:[...D.reporters||[]]},{types:t2,throttle:1000,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let F in u){let $={type:F,...this.options.defaults,...u[F]};this[F]=this._wrapLogFn($),this[F].raw=this._wrapLogFn($,!0)}if(this.options.mockFn)this.mockTypes();this._lastLog={}}get level(){return this.options.level}set level(D){this.options.level=i2(D,this.options.types,this.options.level)}prompt(D,u){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(D,u)}create(D){let u=new zD({...this.options,...D});if(this._mockFn)u.mockTypes(this._mockFn);return u}withDefaults(D){return this.create({...this.options,defaults:{...this.options.defaults,...D}})}withTag(D){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+D:D})}addReporter(D){return this.options.reporters.push(D),this}removeReporter(D){if(D){let u=this.options.reporters.indexOf(D);if(u>=0)return this.options.reporters.splice(u,1)}else this.options.reporters.splice(0);return this}setReporters(D){return this.options.reporters=Array.isArray(D)?D:[D],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let D in this.options.types){if(!console["__"+D])console["__"+D]=console[D];console[D]=this[D].raw}}restoreConsole(){for(let D in this.options.types)if(console["__"+D])console[D]=console["__"+D],delete console["__"+D]}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(D,u){if(!D)return;if(!D.__write)D.__write=D.write;D.write=(F)=>{this[u].raw(String(F).trim())}}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(D){if(!D)return;if(D.__write)D.write=D.__write,delete D.__write}pauseLogs(){p2=!0}resumeLogs(){p2=!1;let D=tC.splice(0);for(let u of D)u[0]._logFn(u[1],u[2])}mockTypes(D){let u=D||this.options.mockFn;if(this._mockFn=u,typeof u!=="function")return;for(let F in this.options.types)this[F]=u(F,this.options.types[F])||this[F],this[F].raw=this[F]}_wrapLogFn(D,u){return(...F)=>{if(p2){tC.push([this,D,F,u]);return}return this._logFn(D,F,u)}}_logFn(D,u,F){if((D.level||0)>this.level)return!1;let $={date:new Date,args:[],...D,level:i2(D.level,this.options.types)};if(!F&&u.length===1&&AY(u[0]))Object.assign($,u[0]);else $.args=[...u];if($.message)$.args.unshift($.message),delete $.message;if($.additional){if(!Array.isArray($.additional))$.additional=$.additional.split("\n");$.args.push("\n"+$.additional.join("\n")),delete $.additional}$.type=typeof $.type==="string"?$.type.toLowerCase():"log",$.tag=typeof $.tag==="string"?$.tag:"";let E=(C=!1)=>{let Z=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&Z>0){let M=[...this._lastLog.object.args];if(Z>1)M.push(`(repeated ${Z} times)`);this._log({...this._lastLog.object,args:M}),this._lastLog.count=1}if(C)this._lastLog.object=$,this._log($)};clearTimeout(this._lastLog.timeout);let w=this._lastLog.time&&$.date?$.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=$.date,w<this.options.throttle)try{let C=JSON.stringify([$.type,$.tag,$.args]),Z=this._lastLog.serialized===C;if(this._lastLog.serialized=C,Z){if(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin){this._lastLog.timeout=setTimeout(E,this.options.throttle);return}}}catch{}E(!0)}_log(D){for(let u of this.options.reporters)u.log(D,{options:this.options})}}function i2(D,u={},F=3){if(D===void 0)return F;if(typeof D==="number")return D;if(u[D]&&u[D].level!==void 0)return u[D].level;return F}function sC(D={}){return new zD(D)}var AD,t2,WY,p2=!1,tC;var z8=C0(()=>{AD={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},t2={silent:{level:-1},fatal:{level:AD.fatal},error:{level:AD.error},warn:{level:AD.warn},log:{level:AD.log},info:{level:AD.info},success:{level:AD.success},fail:{level:AD.fail},ready:{level:AD.info},start:{level:AD.info},box:{level:AD.info},debug:{level:AD.debug},trace:{level:AD.trace},verbose:{level:AD.verbose}};WY=XY();tC=[];zD.prototype.add=zD.prototype.addReporter;zD.prototype.remove=zD.prototype.removeReporter;zD.prototype.clear=zD.prototype.removeReporter;zD.prototype.withScope=zD.prototype.withTag;zD.prototype.mock=zD.prototype.mockTypes;zD.prototype.pause=zD.prototype.pauseLogs;zD.prototype.resume=zD.prototype.resumeLogs});import{formatWithOptions as zY}from"util";import{sep as GY}from"path";function o2(D){let u=process.cwd()+GY;return D.split("\n").splice(1).map(($)=>$.trim().replace("file://","").replace(u,""))}function qY(D,u){return(u.__write||u.write).call(u,D)}class G8{formatStack(D,u){return" "+o2(D).join("\n ")}formatArgs(D,u){let F=D.map(($)=>{if($&&typeof $.stack==="string")return $.message+"\n"+this.formatStack($.stack,u);return $});return zY(u,...F)}formatDate(D,u){return u.date?D.toLocaleTimeString():""}filterAndJoin(D){return D.filter(Boolean).join(" ")}formatLogObj(D,u){let F=this.formatArgs(D.args,u);if(D.type==="box")return"\n"+[a2(D.tag),D.title&&D.title,...F.split("\n")].filter(Boolean).map(($)=>" > "+$).join("\n")+"\n";return this.filterAndJoin([a2(D.type),a2(D.tag),F])}log(D,u){let F=this.formatLogObj(D,{columns:u.options.stdout.columns||0,...u.options.formatOptions});return qY(F+"\n",D.level<2?u.options.stderr||process.stderr:u.options.stdout||process.stdout)}}var a2=(D)=>D?`[${D}]`:"";var q8=()=>{};import*as H8 from"tty";function u9(D,u,F,$,E=u.slice(0,Math.max(0,D))+$,w=u.slice(Math.max(0,D+F.length)),C=w.indexOf(F)){return E+(C<0?w:u9(C,w,F,$))}function IY(D,u,F,$,E){return D<0?F+u+$:F+u9(D,u,$,E)+$}function xY(D,u,F=D,$=D.length+1){return(E)=>E||!(E===""||E===void 0)?IY((""+E).indexOf(u,$),E,D,u,F):""}function c(D,u,F){return xY(`\x1B[${D}m`,`\x1B[${u}m`,F)}function SY(D=NY){return D?aC:Object.fromEntries(Object.keys(aC).map((u)=>[u,String]))}function hY(D,u="reset"){return z[D]||z[u]}function lu(D){return D.replace(new RegExp(yY,"g"),"")}function F9(D,u={}){let F={...u,style:{...jY,...u.style}},$=D.split("\n"),E=[],w=hY(F.style.borderColor),C={...typeof F.style.borderStyle==="string"?oC[F.style.borderStyle]||oC.solid:F.style.borderStyle};if(w)for(let U in C)C[U]=w(C[U]);let Z=F.style.padding%2===0?F.style.padding:F.style.padding+1,M=$.length+Z,W=Math.max(...$.map((U)=>U.length))+Z,X=W+Z,q=F.style.marginLeft>0?" ".repeat(F.style.marginLeft):"";if(F.style.marginTop>0)E.push("".repeat(F.style.marginTop));if(F.title){let U=C.h.repeat(Math.floor((W-lu(F.title).length)/2)),A=C.h.repeat(W-lu(F.title).length-lu(U).length+Z);E.push(`${q}${C.tl}${U}${F.title}${A}${C.tr}`)}else E.push(`${q}${C.tl}${C.h.repeat(X)}${C.tr}`);let L=F.style.valign==="center"?Math.floor((M-$.length)/2):F.style.valign==="top"?M-$.length-Z:M-$.length;for(let U=0;U<M;U++)if(U<L||U>=L+$.length)E.push(`${q}${C.v}${" ".repeat(X)}${C.v}`);else{let A=$[U-L],P=" ".repeat(Z),n=" ".repeat(W-lu(A).length);E.push(`${q}${C.v}${P}${A}${n}${C.v}`)}if(E.push(`${q}${C.bl}${C.h.repeat(X)}${C.br}`),F.style.marginBottom>0)E.push("".repeat(F.style.marginBottom));return E.join("\n")}var Lu,eC,HY,UY,OY,VY,D9,LY,TY,NY,aC,z,yY,oC,jY;var U8=C0(()=>{({env:Lu={},argv:eC=[],platform:HY=""}=typeof process==="undefined"?{}:process),UY="NO_COLOR"in Lu||eC.includes("--no-color"),OY="FORCE_COLOR"in Lu||eC.includes("--color"),VY=HY==="win32",D9=Lu.TERM==="dumb",LY=H8&&H8.isatty&&H8.isatty(1)&&Lu.TERM&&!D9,TY="CI"in Lu&&(("GITHUB_ACTIONS"in Lu)||("GITLAB_CI"in Lu)||("CIRCLECI"in Lu)),NY=!UY&&(OY||VY&&!D9||LY||TY);aC={reset:c(0,0),bold:c(1,22,"\x1B[22m\x1B[1m"),dim:c(2,22,"\x1B[22m\x1B[2m"),italic:c(3,23),underline:c(4,24),inverse:c(7,27),hidden:c(8,28),strikethrough:c(9,29),black:c(30,39),red:c(31,39),green:c(32,39),yellow:c(33,39),blue:c(34,39),magenta:c(35,39),cyan:c(36,39),white:c(37,39),gray:c(90,39),bgBlack:c(40,49),bgRed:c(41,49),bgGreen:c(42,49),bgYellow:c(43,49),bgBlue:c(44,49),bgMagenta:c(45,49),bgCyan:c(46,49),bgWhite:c(47,49),blackBright:c(90,39),redBright:c(91,39),greenBright:c(92,39),yellowBright:c(93,39),blueBright:c(94,39),magentaBright:c(95,39),cyanBright:c(96,39),whiteBright:c(97,39),bgBlackBright:c(100,49),bgRedBright:c(101,49),bgGreenBright:c(102,49),bgYellowBright:c(103,49),bgBlueBright:c(104,49),bgMagentaBright:c(105,49),bgCyanBright:c(106,49),bgWhiteBright:c(107,49)};z=SY();yY=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");oC={solid:{tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502"},double:{tl:"\u2554",tr:"\u2557",bl:"\u255A",br:"\u255D",h:"\u2550",v:"\u2551"},doubleSingle:{tl:"\u2553",tr:"\u2556",bl:"\u2559",br:"\u255C",h:"\u2500",v:"\u2551"},doubleSingleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2551"},singleThick:{tl:"\u250F",tr:"\u2513",bl:"\u2517",br:"\u251B",h:"\u2501",v:"\u2503"},singleDouble:{tl:"\u2552",tr:"\u2555",bl:"\u2558",br:"\u255B",h:"\u2550",v:"\u2502"},singleDoubleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2550",v:"\u2502"},rounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502"}},jY={borderColor:"white",borderStyle:"rounded",valign:"center",padding:2,marginLeft:1,marginTop:1,marginBottom:1}});var U9={};c1(U9,{prompt:()=>AJ});import{stdin as RY,stdout as kY}from"process";import C9 from"readline";import{WriteStream as gY}from"tty";import bY from"tty";function nY({onlyFirst:D=!1}={}){let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}function W9(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(nY(),"")}function z0(D,u={}){if(typeof D!="string"||D.length===0||(u={ambiguousIsNarrow:!0,...u},D=W9(D),D.length===0))return 0;D=D.replace(lY()," ");let F=u.ambiguousIsNarrow?1:2,$=0;for(let E of D){let w=E.codePointAt(0);if(w<=31||w>=127&&w<=159||w>=768&&w<=879)continue;switch(dY.eastAsianWidth(E)){case"F":case"W":$+=2;break;case"A":$+=F;break;default:$+=1}}return $}function tY(){let D=new Map;for(let[u,F]of Object.entries(ED)){for(let[$,E]of Object.entries(F))ED[$]={open:`\x1B[${E[0]}m`,close:`\x1B[${E[1]}m`},F[$]=ED[$],D.set(E[0],E[1]);Object.defineProperty(ED,u,{value:F,enumerable:!1})}return Object.defineProperty(ED,"codes",{value:D,enumerable:!1}),ED.color.close="\x1B[39m",ED.bgColor.close="\x1B[49m",ED.color.ansi=$9(),ED.color.ansi256=E9(),ED.color.ansi16m=w9(),ED.bgColor.ansi=$9(D1),ED.bgColor.ansi256=E9(D1),ED.bgColor.ansi16m=w9(D1),Object.defineProperties(ED,{rgbToAnsi256:{value:(u,F,$)=>u===F&&F===$?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round($/255*5),enumerable:!1},hexToRgb:{value:(u)=>{let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[$]=F;$.length===3&&($=[...$].map((w)=>w+w).join(""));let E=Number.parseInt($,16);return[E>>16&255,E>>8&255,E&255]},enumerable:!1},hexToAnsi256:{value:(u)=>ED.rgbToAnsi256(...ED.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:(u)=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,$,E;if(u>=232)F=((u-232)*10+8)/255,$=F,E=F;else{u-=16;let Z=u%36;F=Math.floor(u/36)/5,$=Math.floor(Z/6)/5,E=Z%6/5}let w=Math.max(F,$,E)*2;if(w===0)return 30;let C=30+(Math.round(E)<<2|Math.round($)<<1|Math.round(F));return w===2&&(C+=60),C},enumerable:!1},rgbToAnsi:{value:(u,F,$)=>ED.ansi256ToAnsi(ED.rgbToAnsi256(u,F,$)),enumerable:!1},hexToAnsi:{value:(u)=>ED.ansi256ToAnsi(ED.hexToAnsi256(u)),enumerable:!1}}),ED}function J9(D,u,F){return String(D).normalize().replace(/\r\n/g,`
2
+ var t$=Object.create;var{getPrototypeOf:a$,defineProperty:f1,getOwnPropertyNames:s$}=Object;var o$=Object.prototype.hasOwnProperty;var l=(D,u,F)=>{F=D!=null?t$(a$(D)):{};let C=u||!D||!D.__esModule?f1(F,"default",{value:D,enumerable:!0}):F;for(let E of s$(D))if(!o$.call(C,E))f1(C,E,{get:()=>D[E],enumerable:!0});return C};var b=(D,u)=>()=>(u||D((u={exports:{}}).exports,u),u.exports);var c2=(D,u)=>{for(var F in u)f1(D,F,{get:u[F],enumerable:!0,configurable:!0,set:(C)=>u[F]=()=>C})};var e$=(D,u)=>()=>(D&&(u=D(D=0)),u);var fu=import.meta.require;var ED=b((R0,t1)=>{Object.defineProperty(R0,"__esModule",{value:!0});R0.default=K7;function p1(D){return p1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},p1(D)}function K7(D){var u=typeof D==="string"||D instanceof String;if(!u){var F=p1(D);if(D===null)F="null";else if(F==="object")F=D.constructor.name;throw new TypeError("Expected a string but received a ".concat(F))}}t1.exports=R0.default;t1.exports.default=R0.default});var k0=b((P0,s1)=>{Object.defineProperty(P0,"__esModule",{value:!0});P0.default=a1;var Q7=W7(ED());function W7(D){return D&&D.__esModule?D:{default:D}}var s2="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Vu="(".concat(s2,"[.]){3}").concat(s2),z7=new RegExp("^".concat(Vu,"$")),YD="(?:[0-9a-fA-F]{1,4})",A7=new RegExp("^("+"(?:".concat(YD,":){7}(?:").concat(YD,"|:)|")+"(?:".concat(YD,":){6}(?:").concat(Vu,"|:").concat(YD,"|:)|")+"(?:".concat(YD,":){5}(?::").concat(Vu,"|(:").concat(YD,"){1,2}|:)|")+"(?:".concat(YD,":){4}(?:(:").concat(YD,"){0,1}:").concat(Vu,"|(:").concat(YD,"){1,3}|:)|")+"(?:".concat(YD,":){3}(?:(:").concat(YD,"){0,2}:").concat(Vu,"|(:").concat(YD,"){1,4}|:)|")+"(?:".concat(YD,":){2}(?:(:").concat(YD,"){0,3}:").concat(Vu,"|(:").concat(YD,"){1,5}|:)|")+"(?:".concat(YD,":){1}(?:(:").concat(YD,"){0,4}:").concat(Vu,"|(:").concat(YD,"){1,6}|:)|")+"(?::((?::".concat(YD,"){0,5}:").concat(Vu,"|(?::").concat(YD,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function a1(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(Q7.default(D),u=String(u),!u)return a1(D,4)||a1(D,6);if(u==="4")return z7.test(D);if(u==="6")return A7.test(D);return!1}s1.exports=P0.default;s1.exports.default=P0.default});var Tu=b((b0,o1)=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.default=G7;function G7(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;for(var F in u)if(typeof D[F]==="undefined")D[F]=u[F];return D}o1.exports=b0.default;o1.exports.default=b0.default});var e2=b((c0,e1)=>{Object.defineProperty(c0,"__esModule",{value:!0});c0.default=h7;var U7=o2(ED()),O7=o2(Tu());function o2(D){return D&&D.__esModule?D:{default:D}}var V7=/[^A-Z0-9+\/=]/i,T7=/^[A-Z0-9_\-]*$/i,L7={urlSafe:!1};function h7(D,u){U7.default(D),u=O7.default(u,L7);var F=D.length;if(u.urlSafe)return T7.test(D);if(F%4!==0||V7.test(D))return!1;var C=D.indexOf("=");return C===-1||C===F-1||C===F-2&&D[F-1]==="="}e1.exports=c0.default;e1.exports.default=c0.default});var u3=b((m0,D8)=>{Object.defineProperty(m0,"__esModule",{value:!0});m0.default=S7;var I7=D3(ED()),y7=D3(e2());function D3(D){return D&&D.__esModule?D:{default:D}}function S7(D){I7.default(D);var u=D.split("."),F=u.length;if(F!==3)return!1;return u.reduce(function(C,E){return C&&y7.default(E,{urlSafe:!0})},!0)}D8.exports=m0.default;D8.exports.default=m0.default});var F8=b((_0,u8)=>{Object.defineProperty(_0,"__esModule",{value:!0});_0.default=k7;var j7=F3(ED()),R7=F3(Tu());function F3(D){return D&&D.__esModule?D:{default:D}}var P7={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function k7(D,u){if(j7.default(D),u=R7.default(u,P7),u.allow_trailing_dot&&D[D.length-1]===".")D=D.substring(0,D.length-1);if(u.allow_wildcard===!0&&D.indexOf("*.")===0)D=D.substring(2);var F=D.split("."),C=F[F.length-1];if(u.require_tld){if(F.length<2)return!1;if(!u.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(C))return!1;if(/\s/.test(C))return!1}if(!u.allow_numeric_tld&&/^\d+$/.test(C))return!1;return F.every(function(E){if(E.length>63&&!u.ignore_max_length)return!1;if(!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(E))return!1;if(/[\uff01-\uff5e]/.test(E))return!1;if(/^-|-$/.test(E))return!1;if(!u.allow_underscores&&/_/.test(E))return!1;return!0})}u8.exports=_0.default;u8.exports.default=_0.default});var w3=b((f0,C8)=>{Object.defineProperty(f0,"__esModule",{value:!0});f0.default=p7;var c7=v0(ED()),m7=v0(F8()),C3=v0(k0()),_7=v0(Tu());function v0(D){return D&&D.__esModule?D:{default:D}}function v7(D,u){return d7(D)||n7(D,u)||x7(D,u)||f7()}function f7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x7(D,u){if(!D)return;if(typeof D==="string")return $3(D,u);var F=Object.prototype.toString.call(D).slice(8,-1);if(F==="Object"&&D.constructor)F=D.constructor.name;if(F==="Map"||F==="Set")return Array.from(D);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return $3(D,u)}function $3(D,u){if(u==null||u>D.length)u=D.length;for(var F=0,C=new Array(u);F<u;F++)C[F]=D[F];return C}function n7(D,u){var F=D==null?null:typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(F!=null){var C,E,w,$,M=[],Z=!0,Q=!1;try{if(w=(F=F.call(D)).next,u===0){if(Object(F)!==F)return;Z=!1}else for(;!(Z=(C=w.call(F)).done)&&(M.push(C.value),M.length!==u);Z=!0);}catch(X){Q=!0,E=X}finally{try{if(!Z&&F.return!=null&&($=F.return(),Object($)!==$))return}finally{if(Q)throw E}}return M}}function d7(D){if(Array.isArray(D))return D}var r7={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},i7=/^\[([^\]]+)\](?::([0-9]+))?$/;function l7(D){return Object.prototype.toString.call(D)==="[object RegExp]"}function E3(D,u){for(var F=0;F<u.length;F++){var C=u[F];if(D===C||l7(C)&&C.test(D))return!0}return!1}function p7(D,u){if(c7.default(D),!D||/[\s<>]/.test(D))return!1;if(D.indexOf("mailto:")===0)return!1;if(u=_7.default(u,r7),u.validate_length&&D.length>=2083)return!1;if(!u.allow_fragments&&D.includes("#"))return!1;if(!u.allow_query_components&&(D.includes("?")||D.includes("&")))return!1;var F,C,E,w,$,M,Z,Q;if(Z=D.split("#"),D=Z.shift(),Z=D.split("?"),D=Z.shift(),Z=D.split("://"),Z.length>1){if(F=Z.shift().toLowerCase(),u.require_valid_protocol&&u.protocols.indexOf(F)===-1)return!1}else if(u.require_protocol)return!1;else if(D.slice(0,2)==="//"){if(!u.allow_protocol_relative_urls)return!1;Z[0]=D.slice(2)}if(D=Z.join("://"),D==="")return!1;if(Z=D.split("/"),D=Z.shift(),D===""&&!u.require_host)return!0;if(Z=D.split("@"),Z.length>1){if(u.disallow_auth)return!1;if(Z[0]==="")return!1;if(C=Z.shift(),C.indexOf(":")>=0&&C.split(":").length>2)return!1;var X=C.split(":"),A=v7(X,2),U=A[0],H=A[1];if(U===""&&H==="")return!1}w=Z.join("@"),M=null,Q=null;var W=w.match(i7);if(W)E="",Q=W[1],M=W[2]||null;else if(Z=w.split(":"),E=Z.shift(),Z.length)M=Z.join(":");if(M!==null&&M.length>0){if($=parseInt(M,10),!/^[0-9]+$/.test(M)||$<=0||$>65535)return!1}else if(u.require_port)return!1;if(u.host_whitelist)return E3(E,u.host_whitelist);if(E===""&&!u.require_host)return!0;if(!C3.default(E)&&!m7.default(E,u)&&(!Q||!C3.default(Q,6)))return!1;if(E=E||Q,u.host_blacklist&&E3(E,u.host_blacklist))return!1;return!0}C8.exports=f0.default;C8.exports.default=f0.default});var B3=b((x0,$8)=>{Object.defineProperty(x0,"__esModule",{value:!0});x0.default=e7;var a7=s7(ED());function s7(D){return D&&D.__esModule?D:{default:D}}var o7=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function e7(D){return a7.default(D),o7.test(D)}$8.exports=x0.default;$8.exports.default=x0.default});var M3=b((Y3)=>{Object.defineProperty(Y3,"__esModule",{value:!0});Y3.default=wE;Y3.locales=void 0;var uE=FE(ED());function FE(D){return D&&D.__esModule?D:{default:D}}var n0={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function CE(D){var u=D.filter(function(F){return!(F in n0)});if(u.length>0)return!1;return!0}function $E(D,u){var F=D.replace(/[\s\-]+/gi,"").toUpperCase(),C=F.slice(0,2).toUpperCase(),E=C in n0;if(u.whitelist){if(!CE(u.whitelist))return!1;var w=u.whitelist.includes(C);if(!w)return!1}if(u.blacklist){var $=u.blacklist.includes(C);if($)return!1}return E&&n0[C].test(F)}function EE(D){var u=D.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),F=u.slice(4)+u.slice(0,4),C=F.replace(/[A-Z]/g,function(w){return w.charCodeAt(0)-55}),E=C.match(/\d{1,7}/g).reduce(function(w,$){return Number(w+$)%97},"");return E===1}function wE(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return uE.default(D),$E(D,u)&&EE(D)}var aQ=Y3.locales=Object.keys(n0)});var Z3=b((d0,E8)=>{Object.defineProperty(d0,"__esModule",{value:!0});d0.default=ZE;var YE=JE(ED());function JE(D){return D&&D.__esModule?D:{default:D}}var ME={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function ZE(D,u){YE.default(D);var F=ME[![void 0,null].includes(u)?u:"all"];return!!F&&F.test(D)}E8.exports=d0.default;E8.exports.default=d0.default});var K3=b((r0,w8)=>{Object.defineProperty(r0,"__esModule",{value:!0});r0.default=zE;var XE=QE(ED());function QE(D){return D&&D.__esModule?D:{default:D}}var WE=/^[\x00-\x7F]+$/;function zE(D){return XE.default(D),WE.test(D)}w8.exports=r0.default;w8.exports.default=r0.default});var X3=b((i0,Y8)=>{Object.defineProperty(i0,"__esModule",{value:!0});i0.default=HE;var qE=GE(ED());function GE(D){return D&&D.__esModule?D:{default:D}}function B8(D){return B8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},B8(D)}function HE(D,u){qE.default(D);var F,C;if(B8(u)==="object")F=u.min||0,C=u.max;else F=arguments[1],C=arguments[2];var E=encodeURI(D).split(/%..|./).length-1;return E>=F&&(typeof C==="undefined"||E<=C)}Y8.exports=i0.default;Y8.exports.default=i0.default});var W3=b((l0,M8)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.default=PE;var OE=Y0(ED()),J8=Y0(X3()),VE=Y0(F8()),Q3=Y0(k0()),TE=Y0(Tu());function Y0(D){return D&&D.__esModule?D:{default:D}}var LE={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},hE=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,NE=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,IE=/^[a-z\d]+$/,yE=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,SE=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,gE=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,jE=254;function RE(D){var u=D.replace(/^"(.+)"$/,"$1");if(!u.trim())return!1;var F=/[\.";<>]/.test(u);if(F){if(u===D)return!1;var C=u.split('"').length===u.split("\\\"").length;if(!C)return!1}return!0}function PE(D,u){if(OE.default(D),u=TE.default(u,LE),u.require_display_name||u.allow_display_name){var F=D.match(hE);if(F){var C=F[1];if(D=D.replace(C,"").replace(/(^<|>$)/g,""),C.endsWith(" "))C=C.slice(0,-1);if(!RE(C))return!1}else if(u.require_display_name)return!1}if(!u.ignore_max_length&&D.length>jE)return!1;var E=D.split("@"),w=E.pop(),$=w.toLowerCase();if(u.host_blacklist.includes($))return!1;if(u.host_whitelist.length>0&&!u.host_whitelist.includes($))return!1;var M=E.join("@");if(u.domain_specific_validation&&($==="gmail.com"||$==="googlemail.com")){M=M.toLowerCase();var Z=M.split("+")[0];if(!J8.default(Z.replace(/\./g,""),{min:6,max:30}))return!1;var Q=Z.split(".");for(var X=0;X<Q.length;X++)if(!IE.test(Q[X]))return!1}if(u.ignore_max_length===!1&&(!J8.default(M,{max:64})||!J8.default(w,{max:254})))return!1;if(!VE.default(w,{require_tld:u.require_tld,ignore_max_length:u.ignore_max_length,allow_underscores:u.allow_underscores})){if(!u.allow_ip_domain)return!1;if(!Q3.default(w)){if(!w.startsWith("[")||!w.endsWith("]"))return!1;var A=w.slice(1,-1);if(A.length===0||!Q3.default(A))return!1}}if(M[0]==='"')return M=M.slice(1,M.length-1),u.allow_utf8_local_part?gE.test(M):yE.test(M);var U=u.allow_utf8_local_part?SE:NE,H=M.split(".");for(var W=0;W<H.length;W++)if(!U.test(H[W]))return!1;if(u.blacklisted_chars){if(M.search(new RegExp("[".concat(u.blacklisted_chars,"]+"),"g"))!==-1)return!1}return!0}M8.exports=l0.default;M8.exports.default=l0.default});var u1=b((O3)=>{Object.defineProperty(O3,"__esModule",{value:!0});O3.farsiLocales=O3.englishLocales=O3.dotDecimal=O3.decimal=O3.commaDecimal=O3.bengaliLocales=O3.arabicLocales=O3.alphanumeric=O3.alpha=void 0;var bD=O3.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZ\u00C7\u018F\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"bg-BG":/^[\u0410-\u042F]+$/i,"cs-CZ":/^[A-Z\u00C1\u010C\u010E\u00C9\u011A\u00CD\u0147\u00D3\u0158\u0160\u0164\u00DA\u016E\u00DD\u017D]+$/i,"da-DK":/^[A-Z\u00C6\u00D8\u00C5]+$/i,"de-DE":/^[A-Z\u00C4\u00D6\u00DC\u00DF]+$/i,"el-GR":/^[\u0391-\u03CE]+$/i,"es-ES":/^[A-Z\u00C1\u00C9\u00CD\u00D1\u00D3\u00DA\u00DC]+$/i,"fa-IR":/^[\u0627\u0628\u067E\u062A\u062B\u062C\u0686\u062D\u062E\u062F\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u06A9\u06AF\u0644\u0645\u0646\u0648\u0647\u06CC]+$/i,"fi-FI":/^[A-Z\u00C5\u00C4\u00D6]+$/i,"fr-FR":/^[A-Z\u00C0\u00C2\u00C6\u00C7\u00C9\u00C8\u00CA\u00CB\u00CF\u00CE\u00D4\u0152\u00D9\u00DB\u00DC\u0178]+$/i,"it-IT":/^[A-Z\u00C0\u00C9\u00C8\u00CC\u00CE\u00D3\u00D2\u00D9]+$/i,"ja-JP":/^[\u3041-\u3093\u30A1-\u30F6\uFF66-\uFF9F\u4E00-\u9FA0\u30FC\u30FB\u3002\u3001]+$/i,"nb-NO":/^[A-Z\u00C6\u00D8\u00C5]+$/i,"nl-NL":/^[A-Z\u00C1\u00C9\u00CB\u00CF\u00D3\u00D6\u00DC\u00DA]+$/i,"nn-NO":/^[A-Z\u00C6\u00D8\u00C5]+$/i,"hu-HU":/^[A-Z\u00C1\u00C9\u00CD\u00D3\u00D6\u0150\u00DA\u00DC\u0170]+$/i,"pl-PL":/^[A-Z\u0104\u0106\u0118\u015A\u0141\u0143\u00D3\u017B\u0179]+$/i,"pt-PT":/^[A-Z\u00C3\u00C1\u00C0\u00C2\u00C4\u00C7\u00C9\u00CA\u00CB\u00CD\u00CF\u00D5\u00D3\u00D4\u00D6\u00DA\u00DC]+$/i,"ru-RU":/^[\u0410-\u042F\u0401]+$/i,"kk-KZ":/^[\u0410-\u042F\u0401\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-Z\u010C\u0106\u0110\u0160\u017D]+$/i,"sk-SK":/^[A-Z\u00C1\u010C\u010E\u00C9\u00CD\u0147\u00D3\u0160\u0164\u00DA\u00DD\u017D\u0139\u0154\u013D\u00C4\u00D4]+$/i,"sr-RS@latin":/^[A-Z\u010C\u0106\u017D\u0160\u0110]+$/i,"sr-RS":/^[\u0410-\u042F\u0402\u0408\u0409\u040A\u040B\u040F]+$/i,"sv-SE":/^[A-Z\u00C5\u00C4\u00D6]+$/i,"th-TH":/^[\u0E01-\u0E50\s]+$/i,"tr-TR":/^[A-Z\u00C7\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"uk-UA":/^[\u0410-\u0429\u042C\u042E\u042F\u0404I\u0407\u0490\u0456]+$/i,"vi-VN":/^[A-Z\u00C0\u00C1\u1EA0\u1EA2\u00C3\u00C2\u1EA6\u1EA4\u1EAC\u1EA8\u1EAA\u0102\u1EB0\u1EAE\u1EB6\u1EB2\u1EB4\u0110\u00C8\u00C9\u1EB8\u1EBA\u1EBC\u00CA\u1EC0\u1EBE\u1EC6\u1EC2\u1EC4\u00CC\u00CD\u1ECA\u1EC8\u0128\u00D2\u00D3\u1ECC\u1ECE\u00D5\u00D4\u1ED2\u1ED0\u1ED8\u1ED4\u1ED6\u01A0\u1EDC\u1EDA\u1EE2\u1EDE\u1EE0\u00D9\u00DA\u1EE4\u1EE6\u0168\u01AF\u1EEA\u1EE8\u1EF0\u1EEC\u1EEE\u1EF2\u00DD\u1EF4\u1EF6\u1EF8]+$/i,"ko-KR":/^[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]*$/,"ku-IQ":/^[\u0626\u0627\u0628\u067E\u062A\u062C\u0686\u062D\u062E\u062F\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063A\u0641\u06A4\u0642\u06A9\u06AF\u0644\u06B5\u0645\u0646\u0648\u06C6\u06BE\u06D5\u06CC\u06CE\u064A\u0637\u0624\u062B\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,ar:/^[\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\u0670]+$/,he:/^[\u05D0-\u05EA]+$/,fa:/^['\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067E\u062A\u062B\u062C\u0686\u062D\u062E\u062F\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u06A9\u06AF\u0644\u0645\u0646\u0648\u0647\u0629\u06CC']+$/i,bn:/^['\u0980\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098A\u098B\u098C\u098F\u0990\u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099A\u099B\u099C\u099D\u099E\u099F\u09A0\u09A1\u09A2\u09A3\u09A4\u09A5\u09A6\u09A7\u09A8\u09AA\u09AB\u09AC\u09AD\u09AE\u09AF\u09B0\u09B2\u09B6\u09B7\u09B8\u09B9\u09BC\u09BD\u09BE\u09BF\u09C0\u09C1\u09C2\u09C3\u09C4\u09C7\u09C8\u09CB\u09CC\u09CD\u09CE\u09D7\u09DC\u09DD\u09DF\u09E0\u09E1\u09E2\u09E3\u09F0\u09F1\u09F2\u09F3\u09F4\u09F5\u09F6\u09F7\u09F8\u09F9\u09FA\u09FB']+$/,eo:/^[ABC\u0108D-G\u011CH\u0124IJ\u0134K-PRS\u015CTU\u016CVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/},cD=O3.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZ\u00C7\u018F\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"bg-BG":/^[0-9\u0410-\u042F]+$/i,"cs-CZ":/^[0-9A-Z\u00C1\u010C\u010E\u00C9\u011A\u00CD\u0147\u00D3\u0158\u0160\u0164\u00DA\u016E\u00DD\u017D]+$/i,"da-DK":/^[0-9A-Z\u00C6\u00D8\u00C5]+$/i,"de-DE":/^[0-9A-Z\u00C4\u00D6\u00DC\u00DF]+$/i,"el-GR":/^[0-9\u0391-\u03C9]+$/i,"es-ES":/^[0-9A-Z\u00C1\u00C9\u00CD\u00D1\u00D3\u00DA\u00DC]+$/i,"fi-FI":/^[0-9A-Z\u00C5\u00C4\u00D6]+$/i,"fr-FR":/^[0-9A-Z\u00C0\u00C2\u00C6\u00C7\u00C9\u00C8\u00CA\u00CB\u00CF\u00CE\u00D4\u0152\u00D9\u00DB\u00DC\u0178]+$/i,"it-IT":/^[0-9A-Z\u00C0\u00C9\u00C8\u00CC\u00CE\u00D3\u00D2\u00D9]+$/i,"ja-JP":/^[0-9\uFF10-\uFF19\u3041-\u3093\u30A1-\u30F6\uFF66-\uFF9F\u4E00-\u9FA0\u30FC\u30FB\u3002\u3001]+$/i,"hu-HU":/^[0-9A-Z\u00C1\u00C9\u00CD\u00D3\u00D6\u0150\u00DA\u00DC\u0170]+$/i,"nb-NO":/^[0-9A-Z\u00C6\u00D8\u00C5]+$/i,"nl-NL":/^[0-9A-Z\u00C1\u00C9\u00CB\u00CF\u00D3\u00D6\u00DC\u00DA]+$/i,"nn-NO":/^[0-9A-Z\u00C6\u00D8\u00C5]+$/i,"pl-PL":/^[0-9A-Z\u0104\u0106\u0118\u015A\u0141\u0143\u00D3\u017B\u0179]+$/i,"pt-PT":/^[0-9A-Z\u00C3\u00C1\u00C0\u00C2\u00C4\u00C7\u00C9\u00CA\u00CB\u00CD\u00CF\u00D5\u00D3\u00D4\u00D6\u00DA\u00DC]+$/i,"ru-RU":/^[0-9\u0410-\u042F\u0401]+$/i,"kk-KZ":/^[0-9\u0410-\u042F\u0401\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-Z\u010C\u0106\u0110\u0160\u017D]+$/i,"sk-SK":/^[0-9A-Z\u00C1\u010C\u010E\u00C9\u00CD\u0147\u00D3\u0160\u0164\u00DA\u00DD\u017D\u0139\u0154\u013D\u00C4\u00D4]+$/i,"sr-RS@latin":/^[0-9A-Z\u010C\u0106\u017D\u0160\u0110]+$/i,"sr-RS":/^[0-9\u0410-\u042F\u0402\u0408\u0409\u040A\u040B\u040F]+$/i,"sv-SE":/^[0-9A-Z\u00C5\u00C4\u00D6]+$/i,"th-TH":/^[\u0E01-\u0E59\s]+$/i,"tr-TR":/^[0-9A-Z\u00C7\u011E\u0130\u0131\u00D6\u015E\u00DC]+$/i,"uk-UA":/^[0-9\u0410-\u0429\u042C\u042E\u042F\u0404I\u0407\u0490\u0456]+$/i,"ko-KR":/^[0-9\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]*$/,"ku-IQ":/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0626\u0627\u0628\u067E\u062A\u062C\u0686\u062D\u062E\u062F\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063A\u0641\u06A4\u0642\u06A9\u06AF\u0644\u06B5\u0645\u0646\u0648\u06C6\u06BE\u06D5\u06CC\u06CE\u064A\u0637\u0624\u062B\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,"vi-VN":/^[0-9A-Z\u00C0\u00C1\u1EA0\u1EA2\u00C3\u00C2\u1EA6\u1EA4\u1EAC\u1EA8\u1EAA\u0102\u1EB0\u1EAE\u1EB6\u1EB2\u1EB4\u0110\u00C8\u00C9\u1EB8\u1EBA\u1EBC\u00CA\u1EC0\u1EBE\u1EC6\u1EC2\u1EC4\u00CC\u00CD\u1ECA\u1EC8\u0128\u00D2\u00D3\u1ECC\u1ECE\u00D5\u00D4\u1ED2\u1ED0\u1ED8\u1ED4\u1ED6\u01A0\u1EDC\u1EDA\u1EE2\u1EDE\u1EE0\u00D9\u00DA\u1EE4\u1EE6\u0168\u01AF\u1EEA\u1EE8\u1EF0\u1EEC\u1EEE\u1EF2\u00DD\u1EF4\u1EF6\u1EF8]+$/i,ar:/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\u0670]+$/,he:/^[0-9\u05D0-\u05EA]+$/,fa:/^['0-9\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067E\u062A\u062B\u062C\u0686\u062D\u062E\u062F\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u06A9\u06AF\u0644\u0645\u0646\u0648\u0647\u0629\u06CC\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9\u06F0']+$/i,bn:/^['\u0980\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098A\u098B\u098C\u098F\u0990\u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099A\u099B\u099C\u099D\u099E\u099F\u09A0\u09A1\u09A2\u09A3\u09A4\u09A5\u09A6\u09A7\u09A8\u09AA\u09AB\u09AC\u09AD\u09AE\u09AF\u09B0\u09B2\u09B6\u09B7\u09B8\u09B9\u09BC\u09BD\u09BE\u09BF\u09C0\u09C1\u09C2\u09C3\u09C4\u09C7\u09C8\u09CB\u09CC\u09CD\u09CE\u09D7\u09DC\u09DD\u09DF\u09E0\u09E1\u09E2\u09E3\u09E6\u09E7\u09E8\u09E9\u09EA\u09EB\u09EC\u09ED\u09EE\u09EF\u09F0\u09F1\u09F2\u09F3\u09F4\u09F5\u09F6\u09F7\u09F8\u09F9\u09FA\u09FB']+$/,eo:/^[0-9ABC\u0108D-G\u011CH\u0124IJ\u0134K-PRS\u015CTU\u016CVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/},yD=O3.decimal={"en-US":".",ar:"\u066B"},z3=O3.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"];for(p0=0;p0<z3.length;p0++)J0="en-".concat(z3[p0]),bD[J0]=bD["en-US"],cD[J0]=cD["en-US"],yD[J0]=yD["en-US"];var J0,p0,A3=O3.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];for(t0=0;t0<A3.length;t0++)M0="ar-".concat(A3[t0]),bD[M0]=bD.ar,cD[M0]=cD.ar,yD[M0]=yD.ar;var M0,t0,q3=O3.farsiLocales=["IR","AF"];for(s0=0;s0<q3.length;s0++)a0="fa-".concat(q3[s0]),cD[a0]=cD.fa,yD[a0]=yD.ar;var a0,s0,G3=O3.bengaliLocales=["BD","IN"];for(o0=0;o0<G3.length;o0++)Z0="bn-".concat(G3[o0]),bD[Z0]=bD.bn,cD[Z0]=cD.bn,yD[Z0]=yD["en-US"];var Z0,o0,H3=O3.dotDecimal=["ar-EG","ar-LB","ar-LY"],U3=O3.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];for(e0=0;e0<H3.length;e0++)yD[H3[e0]]=yD["en-US"];var e0;for(D1=0;D1<U3.length;D1++)yD[U3[D1]]=",";var D1;bD["fr-CA"]=bD["fr-FR"];cD["fr-CA"]=cD["fr-FR"];bD["pt-BR"]=bD["pt-PT"];cD["pt-BR"]=cD["pt-PT"];yD["pt-BR"]=yD["pt-PT"];bD["pl-Pl"]=bD["pl-PL"];cD["pl-Pl"]=cD["pl-PL"];yD["pl-Pl"]=yD["pl-PL"];bD["fa-AF"]=bD.fa});var h3=b((T3)=>{Object.defineProperty(T3,"__esModule",{value:!0});T3.default=iE;T3.locales=void 0;var dE=rE(ED()),Z8=u1();function rE(D){return D&&D.__esModule?D:{default:D}}function iE(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};dE.default(D);var C=D,E=F.ignore;if(E)if(E instanceof RegExp)C=C.replace(E,"");else if(typeof E==="string")C=C.replace(new RegExp("[".concat(E.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(u in Z8.alpha)return Z8.alpha[u].test(C);throw new Error("Invalid locale '".concat(u,"'"))}var eQ=T3.locales=Object.keys(Z8.alpha)});var I3=b((F1,K8)=>{Object.defineProperty(F1,"__esModule",{value:!0});F1.default=u5;var pE=N3(ED()),tE=N3(Tu());function N3(D){return D&&D.__esModule?D:{default:D}}var aE=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,sE=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,oE=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,eE=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,D5={checkDMS:!1};function u5(D,u){if(pE.default(D),u=tE.default(u,D5),!D.includes(","))return!1;var F=D.split(",");if(F[0].startsWith("(")&&!F[1].endsWith(")")||F[1].endsWith(")")&&!F[0].startsWith("("))return!1;if(u.checkDMS)return oE.test(F[0])&&eE.test(F[1]);return aE.test(F[0])&&sE.test(F[1])}K8.exports=F1.default;K8.exports.default=F1.default});var S3=b((C1,X8)=>{Object.defineProperty(C1,"__esModule",{value:!0});C1.default=void 0;var C5=function D(u,F){return u.some(function(C){return F===C})},uW=C1.default=C5;X8.exports=C1.default;X8.exports.default=C1.default});var j3=b(($1,W8)=>{Object.defineProperty($1,"__esModule",{value:!0});$1.default=M5;var $5=Q8(Tu()),E5=Q8(ED()),w5=Q8(S3()),g3=u1();function Q8(D){return D&&D.__esModule?D:{default:D}}function B5(D){var u=new RegExp("^[-+]?([0-9]+)?(\\".concat(g3.decimal[D.locale],"[0-9]{").concat(D.decimal_digits,"})").concat(D.force_decimal?"":"?","$"));return u}var Y5={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},J5=["","-","+"];function M5(D,u){if(E5.default(D),u=$5.default(u,Y5),u.locale in g3.decimal)return!w5.default(J5,D.replace(/ /g,""))&&B5(u).test(D);throw new Error("Invalid locale '".concat(u.locale,"'"))}W8.exports=$1.default;W8.exports.default=$1.default});var R3=b((E1,z8)=>{Object.defineProperty(E1,"__esModule",{value:!0});E1.default=W5;var K5=X5(ED());function X5(D){return D&&D.__esModule?D:{default:D}}var Q5=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function W5(D){return K5.default(D),Q5.test(D)}z8.exports=E1.default;z8.exports.default=E1.default});var P3=b((w1,A8)=>{Object.defineProperty(w1,"__esModule",{value:!0});w1.default=G5;var A5=q5(ED());function q5(D){return D&&D.__esModule?D:{default:D}}function G5(D){A5.default(D);var u=D.replace(/[- ]+/g,""),F=0,C,E,w;for(var $=u.length-1;$>=0;$--){if(C=u.substring($,$+1),E=parseInt(C,10),w)if(E*=2,E>=10)F+=E%10+1;else F+=E;else F+=E;w=!w}return!!(F%10===0?u:!1)}A8.exports=w1.default;A8.exports.default=w1.default});var b3=b((B1,q8)=>{Object.defineProperty(B1,"__esModule",{value:!0});B1.default=T5;var U5=k3(ED()),O5=k3(P3());function k3(D){return D&&D.__esModule?D:{default:D}}var xu={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},V5=function(){var D=[];for(var u in xu)if(xu.hasOwnProperty(u))D.push(xu[u]);return D}();function T5(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U5.default(D);var F=u.provider,C=D.replace(/[- ]+/g,"");if(F&&F.toLowerCase()in xu){if(!xu[F.toLowerCase()].test(C))return!1}else if(F&&!(F.toLowerCase()in xu))throw new Error("".concat(F," is not a valid credit card provider."));else if(!V5.some(function(E){return E.test(C)}))return!1;return O5.default(D)}q8.exports=B1.default;q8.exports.default=B1.default});var _3=b((c3)=>{Object.defineProperty(c3,"__esModule",{value:!0});c3.default=I5;c3.locales=void 0;var h5=N5(ED()),G8=u1();function N5(D){return D&&D.__esModule?D:{default:D}}function I5(D){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};h5.default(D);var C=D,E=F.ignore;if(E)if(E instanceof RegExp)C=C.replace(E,"");else if(typeof E==="string")C=C.replace(new RegExp("[".concat(E.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(u in G8.alphanumeric)return G8.alphanumeric[u].test(C);throw new Error("Invalid locale '".concat(u,"'"))}var FW=c3.locales=Object.keys(G8.alphanumeric)});var f3=b((Y1,H8)=>{Object.defineProperty(Y1,"__esModule",{value:!0});Y1.default=j5;var S5=g5(ED());function g5(D){return D&&D.__esModule?D:{default:D}}var v3={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};function j5(D,u){S5.default(D);var F=D.replace(/\s/g,"").toUpperCase();return u.toUpperCase()in v3&&v3[u].test(F)}H8.exports=Y1.default;H8.exports.default=Y1.default});var O8=b((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.default=b5;n3.locales=void 0;var P5=k5(ED());function k5(D){return D&&D.__esModule?D:{default:D}}var x3=/^\d{3}$/,xD=/^\d{4}$/,SD=/^\d{5}$/,U8=/^\d{6}$/,nu={AD:/^AD\d{3}$/,AT:xD,AU:xD,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:xD,BG:xD,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:xD,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:SD,DK:xD,DO:SD,DZ:SD,EE:SD,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:SD,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:xD,ID:SD,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:x3,IT:SD,JP:/^\d{3}\-\d{4}$/,KE:SD,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:xD,LV:/^LV\-\d{4}$/,LK:SD,MG:x3,MX:SD,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:SD,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:xD,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:xD,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:U8,RU:U8,SA:SD,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:U8,SI:xD,SK:/^\d{3}\s?\d{2}$/,TH:SD,TN:xD,TW:/^\d{3}(\d{2})?$/,UA:SD,US:/^\d{5}(-\d{4})?$/,ZA:xD,ZM:SD},$W=n3.locales=Object.keys(nu);function b5(D,u){if(P5.default(D),u in nu)return nu[u].test(D);else if(u==="any"){for(var F in nu)if(nu.hasOwnProperty(F)){var C=nu[F];if(C.test(D))return!0}return!1}throw new Error("Invalid locale '".concat(u,"'"))}});var V8=b((r3)=>{Object.defineProperty(r3,"__esModule",{value:!0});r3.default=v5;r3.locales=void 0;var m5=_5(ED());function _5(D){return D&&D.__esModule?D:{default:D}}var CD={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};CD["en-CA"]=CD["en-US"];CD["fr-CA"]=CD["en-CA"];CD["fr-BE"]=CD["nl-BE"];CD["zh-HK"]=CD["en-HK"];CD["zh-MO"]=CD["en-MO"];CD["ga-IE"]=CD["en-IE"];CD["fr-CH"]=CD["de-CH"];CD["it-CH"]=CD["fr-CH"];function v5(D,u,F){if(m5.default(D),F&&F.strictMode&&!D.startsWith("+"))return!1;if(Array.isArray(u))return u.some(function(w){if(CD.hasOwnProperty(w)){var $=CD[w];if($.test(D))return!0}return!1});else if(u in CD)return CD[u].test(D);else if(!u||u==="any"){for(var C in CD)if(CD.hasOwnProperty(C)){var E=CD[C];if(E.test(D))return!0}return!1}throw new Error("Invalid locale '".concat(u,"'"))}var wW=r3.locales=Object.keys(CD)});var y8=b((N8,I8)=>{(function(D,u){typeof N8=="object"&&typeof I8!="undefined"?I8.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs=u()})(N8,function(){var D=1000,u=60000,F=3600000,C="millisecond",E="second",w="minute",$="hour",M="day",Z="week",Q="month",X="quarter",A="year",U="date",H="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var L=["th","st","nd","rd"],V=P%100;return"["+P+(L[(V-20)%10]||L[V]||L[0])+"]"}},r=function(P,L,V){var g=String(P);return!g||g.length>=L?P:""+Array(L+1-g.length).join(V)+P},uD={s:r,z:function(P){var L=-P.utcOffset(),V=Math.abs(L),g=Math.floor(V/60),h=V%60;return(L<=0?"+":"-")+r(g,2,"0")+":"+r(h,2,"0")},m:function P(L,V){if(L.date()<V.date())return-P(V,L);var g=12*(V.year()-L.year())+(V.month()-L.month()),h=L.clone().add(g,Q),k=V-h<0,c=L.clone().add(g+(k?-1:1),Q);return+(-(g+(V-h)/(k?h-c:c-h))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:Q,y:A,w:Z,d:M,D:U,h:$,m:w,s:E,ms:C,Q:X}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},FD="en",hD={};hD[FD]=n;var rD="$isDayjsObject",ND=function(P){return P instanceof qD||!(!P||!P[rD])},UD=function P(L,V,g){var h;if(!L)return FD;if(typeof L=="string"){var k=L.toLowerCase();hD[k]&&(h=k),V&&(hD[k]=V,h=k);var c=L.split("-");if(!h&&c.length>1)return P(c[0])}else{var v=L.name;hD[v]=L,h=v}return!g&&h&&(FD=h),h||!g&&FD},p=function(P,L){if(ND(P))return P.clone();var V=typeof L=="object"?L:{};return V.date=P,V.args=arguments,new qD(V)},_=uD;_.l=UD,_.i=ND,_.w=function(P,L){return p(P,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var qD=function(){function P(V){this.$L=UD(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[rD]=!0}var L=P.prototype;return L.parse=function(V){this.$d=function(g){var{date:h,utc:k}=g;if(h===null)return new Date(NaN);if(_.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var c=h.match(W);if(c){var v=c[2]-1||0,i=(c[7]||"0").substring(0,3);return k?new Date(Date.UTC(c[1],v,c[3]||1,c[4]||0,c[5]||0,c[6]||0,i)):new Date(c[1],v,c[3]||1,c[4]||0,c[5]||0,c[6]||0,i)}}return new Date(h)}(V),this.init()},L.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},L.$utils=function(){return _},L.isValid=function(){return this.$d.toString()!==H},L.isSame=function(V,g){var h=p(V);return this.startOf(g)<=h&&h<=this.endOf(g)},L.isAfter=function(V,g){return p(V)<this.startOf(g)},L.isBefore=function(V,g){return this.endOf(g)<p(V)},L.$g=function(V,g,h){return _.u(V)?this[g]:this.set(h,V)},L.unix=function(){return Math.floor(this.valueOf()/1000)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(V,g){var h=this,k=!!_.u(g)||g,c=_.p(V),v=function(ZD,JD){var kD=_.w(h.$u?Date.UTC(h.$y,JD,ZD):new Date(h.$y,JD,ZD),h);return k?kD:kD.endOf(M)},i=function(ZD,JD){return _.w(h.toDate()[ZD].apply(h.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(JD)),h)},o=this.$W,BD=this.$M,VD=this.$D,Yu="set"+(this.$u?"UTC":"");switch(c){case A:return k?v(1,0):v(31,11);case Q:return k?v(1,BD):v(0,BD+1);case Z:var sD=this.$locale().weekStart||0,zu=(o<sD?o+7:o)-sD;return v(k?VD-zu:VD+(6-zu),BD);case M:case U:return i(Yu+"Hours",0);case $:return i(Yu+"Minutes",1);case w:return i(Yu+"Seconds",2);case E:return i(Yu+"Milliseconds",3);default:return this.clone()}},L.endOf=function(V){return this.startOf(V,!1)},L.$set=function(V,g){var h,k=_.p(V),c="set"+(this.$u?"UTC":""),v=(h={},h[M]=c+"Date",h[U]=c+"Date",h[Q]=c+"Month",h[A]=c+"FullYear",h[$]=c+"Hours",h[w]=c+"Minutes",h[E]=c+"Seconds",h[C]=c+"Milliseconds",h)[k],i=k===M?this.$D+(g-this.$W):g;if(k===Q||k===A){var o=this.clone().set(U,1);o.$d[v](i),o.init(),this.$d=o.set(U,Math.min(this.$D,o.daysInMonth())).$d}else v&&this.$d[v](i);return this.init(),this},L.set=function(V,g){return this.clone().$set(V,g)},L.get=function(V){return this[_.p(V)]()},L.add=function(V,g){var h,k=this;V=Number(V);var c=_.p(g),v=function(BD){var VD=p(k);return _.w(VD.date(VD.date()+Math.round(BD*V)),k)};if(c===Q)return this.set(Q,this.$M+V);if(c===A)return this.set(A,this.$y+V);if(c===M)return v(1);if(c===Z)return v(7);var i=(h={},h[w]=u,h[$]=F,h[E]=D,h)[c]||1,o=this.$d.getTime()+V*i;return _.w(o,this)},L.subtract=function(V,g){return this.add(-1*V,g)},L.format=function(V){var g=this,h=this.$locale();if(!this.isValid())return h.invalidDate||H;var k=V||"YYYY-MM-DDTHH:mm:ssZ",c=_.z(this),v=this.$H,i=this.$m,o=this.$M,BD=h.weekdays,VD=h.months,Yu=h.meridiem,sD=function(JD,kD,oD,Ju){return JD&&(JD[kD]||JD(g,k))||oD[kD].slice(0,Ju)},zu=function(JD){return _.s(v%12||12,JD,"0")},ZD=Yu||function(JD,kD,oD){var Ju=JD<12?"AM":"PM";return oD?Ju.toLowerCase():Ju};return k.replace(m,function(JD,kD){return kD||function(oD){switch(oD){case"YY":return String(g.$y).slice(-2);case"YYYY":return _.s(g.$y,4,"0");case"M":return o+1;case"MM":return _.s(o+1,2,"0");case"MMM":return sD(h.monthsShort,o,VD,3);case"MMMM":return sD(VD,o);case"D":return g.$D;case"DD":return _.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return sD(h.weekdaysMin,g.$W,BD,2);case"ddd":return sD(h.weekdaysShort,g.$W,BD,3);case"dddd":return BD[g.$W];case"H":return String(v);case"HH":return _.s(v,2,"0");case"h":return zu(1);case"hh":return zu(2);case"a":return ZD(v,i,!0);case"A":return ZD(v,i,!1);case"m":return String(i);case"mm":return _.s(i,2,"0");case"s":return String(g.$s);case"ss":return _.s(g.$s,2,"0");case"SSS":return _.s(g.$ms,3,"0");case"Z":return c}return null}(JD)||c.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(V,g,h){var k,c=this,v=_.p(g),i=p(V),o=(i.utcOffset()-this.utcOffset())*u,BD=this-i,VD=function(){return _.m(c,i)};switch(v){case A:k=VD()/12;break;case Q:k=VD();break;case X:k=VD()/3;break;case Z:k=(BD-o)/604800000;break;case M:k=(BD-o)/86400000;break;case $:k=BD/F;break;case w:k=BD/u;break;case E:k=BD/D;break;default:k=BD}return h?k:_.a(k)},L.daysInMonth=function(){return this.endOf(Q).$D},L.$locale=function(){return hD[this.$L]},L.locale=function(V,g){if(!V)return this.$L;var h=this.clone(),k=UD(V,g,!0);return k&&(h.$L=k),h},L.clone=function(){return _.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},P}(),OD=qD.prototype;return p.prototype=OD,[["$ms",C],["$s",E],["$m",w],["$H",$],["$W",M],["$M",Q],["$y",A],["$D",U]].forEach(function(P){OD[P[1]]=function(L){return this.$g(L,P[0],P[1])}}),p.extend=function(P,L){return P.$i||(P(L,qD,p),P.$i=!0),p},p.locale=UD,p.isDayjs=ND,p.unix=function(P){return p(1000*P)},p.en=hD[FD],p.Ls=hD,p.p={},p})});var qF=b((S8,g8)=>{(function(D,u){typeof S8=="object"&&typeof g8!="undefined"?g8.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs_plugin_isSameOrAfter=u()})(S8,function(){return function(D,u){u.prototype.isSameOrAfter=function(F,C){return this.isSame(F,C)||this.isAfter(F,C)}}})});var GF=b((j8,R8)=>{(function(D,u){typeof j8=="object"&&typeof R8!="undefined"?R8.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs_plugin_isSameOrBefore=u()})(j8,function(){return function(D,u){u.prototype.isSameOrBefore=function(F,C){return this.isSame(F,C)||this.isBefore(F,C)}}})});var HF=b((P8,k8)=>{(function(D,u){typeof P8=="object"&&typeof k8!="undefined"?k8.exports=u():typeof define=="function"&&define.amd?define(u):(D=typeof globalThis!="undefined"?globalThis:D||self).dayjs_plugin_customParseFormat=u()})(P8,function(){var D={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},u=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,F=/\d/,C=/\d\d/,E=/\d\d?/,w=/\d*[^-_:/,()\s\d]+/,$={},M=function(W){return(W=+W)+(W>68?1900:2000)},Z=function(W){return function(m){this[W]=+m}},Q=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(m){if(!m)return 0;if(m==="Z")return 0;var n=m.match(/([+-]|\d\d)/g),r=60*n[1]+(+n[2]||0);return r===0?0:n[0]==="+"?-r:r}(W)}],X=function(W){var m=$[W];return m&&(m.indexOf?m:m.s.concat(m.f))},A=function(W,m){var n,r=$.meridiem;if(r){for(var uD=1;uD<=24;uD+=1)if(W.indexOf(r(uD,0,m))>-1){n=uD>12;break}}else n=W===(m?"pm":"PM");return n},U={A:[w,function(W){this.afternoon=A(W,!1)}],a:[w,function(W){this.afternoon=A(W,!0)}],Q:[F,function(W){this.month=3*(W-1)+1}],S:[F,function(W){this.milliseconds=100*+W}],SS:[C,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[E,Z("seconds")],ss:[E,Z("seconds")],m:[E,Z("minutes")],mm:[E,Z("minutes")],H:[E,Z("hours")],h:[E,Z("hours")],HH:[E,Z("hours")],hh:[E,Z("hours")],D:[E,Z("day")],DD:[C,Z("day")],Do:[w,function(W){var m=$.ordinal,n=W.match(/\d+/);if(this.day=n[0],m)for(var r=1;r<=31;r+=1)m(r).replace(/\[|\]/g,"")===W&&(this.day=r)}],w:[E,Z("week")],ww:[C,Z("week")],M:[E,Z("month")],MM:[C,Z("month")],MMM:[w,function(W){var m=X("months"),n=(X("monthsShort")||m.map(function(r){return r.slice(0,3)})).indexOf(W)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[w,function(W){var m=X("months").indexOf(W)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,Z("year")],YY:[C,function(W){this.year=M(W)}],YYYY:[/\d{4}/,Z("year")],Z:Q,ZZ:Q};function H(W){var m,n;m=W,n=$&&$.formats;for(var r=(W=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,_,qD){var OD=qD&&qD.toUpperCase();return _||n[qD]||D[qD]||n[OD].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,L,V){return L||V.slice(1)})})).match(u),uD=r.length,FD=0;FD<uD;FD+=1){var hD=r[FD],rD=U[hD],ND=rD&&rD[0],UD=rD&&rD[1];r[FD]=UD?{regex:ND,parser:UD}:hD.replace(/^\[|\]$/g,"")}return function(p){for(var _={},qD=0,OD=0;qD<uD;qD+=1){var P=r[qD];if(typeof P=="string")OD+=P.length;else{var{regex:L,parser:V}=P,g=p.slice(OD),h=L.exec(g)[0];V.call(_,h),p=p.replace(h,"")}}return function(k){var c=k.afternoon;if(c!==void 0){var v=k.hours;c?v<12&&(k.hours+=12):v===12&&(k.hours=0),delete k.afternoon}}(_),_}}return function(W,m,n){n.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(M=W.parseTwoDigitYear);var r=m.prototype,uD=r.parse;r.parse=function(FD){var{date:hD,utc:rD,args:ND}=FD;this.$u=rD;var UD=ND[1];if(typeof UD=="string"){var p=ND[2]===!0,_=ND[3]===!0,qD=p||_,OD=ND[2];_&&(OD=ND[2]),$=this.$locale(),!p&&OD&&($=n.Ls[OD]),this.$d=function(g,h,k,c){try{if(["x","X"].indexOf(h)>-1)return new Date((h==="X"?1000:1)*g);var v=H(h)(g),i=v.year,o=v.month,BD=v.day,VD=v.hours,Yu=v.minutes,sD=v.seconds,zu=v.milliseconds,ZD=v.zone,JD=v.week,kD=new Date,oD=BD||(i||o?1:kD.getDate()),Ju=i||kD.getFullYear(),_u=0;i&&!o||(_u=o>0?o-1:kD.getMonth());var vu,u0=VD||0,F0=Yu||0,C0=sD||0,$0=zu||0;return ZD?new Date(Date.UTC(Ju,_u,oD,u0,F0,C0,$0+60*ZD.offset*1000)):k?new Date(Date.UTC(Ju,_u,oD,u0,F0,C0,$0)):(vu=new Date(Ju,_u,oD,u0,F0,C0,$0),JD&&(vu=c(vu).week(JD).toDate()),vu)}catch(S2){return new Date("")}}(hD,UD,rD,n),this.init(),OD&&OD!==!0&&(this.$L=this.locale(OD).$L),qD&&hD!=this.format(UD)&&(this.$d=new Date("")),$={}}else if(UD instanceof Array)for(var P=UD.length,L=1;L<=P;L+=1){ND[1]=UD[L-1];var V=n.apply(this,ND);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}L===P&&(this.$d=new Date(""))}else uD.call(this,FD)}}})});var UF=b((M1,m8)=>{Object.defineProperty(M1,"__esModule",{value:!0});M1.default=Fw;var Dw=uw(ED());function uw(D){return D&&D.__esModule?D:{default:D}}function Fw(D){return Dw.default(D),D.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")}m8.exports=M1.default;m8.exports.default=M1.default});var OF=b((Z1,_8)=>{Object.defineProperty(Z1,"__esModule",{value:!0});Z1.default=Kw;var $w=Ew(Tu());function Ew(D){return D&&D.__esModule?D:{default:D}}var ww={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},Bw=["icloud.com","me.com"],Yw=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],Jw=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],Mw=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function Zw(D){if(D.length>1)return D;return""}function Kw(D,u){u=$w.default(u,ww);var F=D.split("@"),C=F.pop(),E=F.join("@"),w=[E,C];if(w[1]=w[1].toLowerCase(),w[1]==="gmail.com"||w[1]==="googlemail.com"){if(u.gmail_remove_subaddress)w[0]=w[0].split("+")[0];if(u.gmail_remove_dots)w[0]=w[0].replace(/\.+/g,Zw);if(!w[0].length)return!1;if(u.all_lowercase||u.gmail_lowercase)w[0]=w[0].toLowerCase();w[1]=u.gmail_convert_googlemaildotcom?"gmail.com":w[1]}else if(Bw.indexOf(w[1])>=0){if(u.icloud_remove_subaddress)w[0]=w[0].split("+")[0];if(!w[0].length)return!1;if(u.all_lowercase||u.icloud_lowercase)w[0]=w[0].toLowerCase()}else if(Yw.indexOf(w[1])>=0){if(u.outlookdotcom_remove_subaddress)w[0]=w[0].split("+")[0];if(!w[0].length)return!1;if(u.all_lowercase||u.outlookdotcom_lowercase)w[0]=w[0].toLowerCase()}else if(Jw.indexOf(w[1])>=0){if(u.yahoo_remove_subaddress){var $=w[0].split("-");w[0]=$.length>1?$.slice(0,-1).join("-"):$[0]}if(!w[0].length)return!1;if(u.all_lowercase||u.yahoo_lowercase)w[0]=w[0].toLowerCase()}else if(Mw.indexOf(w[1])>=0){if(u.all_lowercase||u.yandex_lowercase)w[0]=w[0].toLowerCase();w[1]="yandex.ru"}else if(u.all_lowercase)w[0]=w[0].toLowerCase();return w.join("@")}_8.exports=Z1.default;_8.exports.default=Z1.default});var hC={};c2(hC,{prompt:()=>LC,kCancel:()=>TC});import $u,{stdin as iY,stdout as lY}from"process";import FC from"readline";import{WriteStream as pY}from"tty";function tY(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function aY(){if(CC)return D2;CC=1;let D="\x1B",u=`${D}[`,F="\x07",C={to($,M){if(!M)return`${u}${$+1}G`;return`${u}${M+1};${$+1}H`},move($,M){let Z="";if($<0)Z+=`${u}${-$}D`;else if($>0)Z+=`${u}${$}C`;if(M<0)Z+=`${u}${-M}A`;else if(M>0)Z+=`${u}${M}B`;return Z},up:($=1)=>`${u}${$}A`,down:($=1)=>`${u}${$}B`,forward:($=1)=>`${u}${$}C`,backward:($=1)=>`${u}${$}D`,nextLine:($=1)=>`${u}E`.repeat($),prevLine:($=1)=>`${u}F`.repeat($),left:`${u}G`,hide:`${u}?25l`,show:`${u}?25h`,save:`${D}7`,restore:`${D}8`},E={up:($=1)=>`${u}S`.repeat($),down:($=1)=>`${u}T`.repeat($)},w={screen:`${u}2J`,up:($=1)=>`${u}1J`.repeat($),down:($=1)=>`${u}J`.repeat($),line:`${u}2K`,lineEnd:`${u}K`,lineStart:`${u}1K`,lines($){let M="";for(let Z=0;Z<$;Z++)M+=this.line+(Z<$-1?C.up():"");if($)M+=C.left;return M}};return D2={cursor:C,scroll:E,erase:w,beep:F},D2}function sY(){if($C)return H1.exports;$C=1;let D=process||{},u=D.argv||[],F=D.env||{},C=!(!!F.NO_COLOR||u.includes("--no-color"))&&(!!F.FORCE_COLOR||u.includes("--color")||D.platform==="win32"||(D.stdout||{}).isTTY&&F.TERM!=="dumb"||!!F.CI),E=(M,Z,Q=M)=>(X)=>{let A=""+X,U=A.indexOf(Z,M.length);return~U?M+w(A,Z,Q,U)+Z:M+A+Z},w=(M,Z,Q,X)=>{let A="",U=0;do A+=M.substring(U,X)+Q,U=X+Z.length,X=M.indexOf(Z,U);while(~X);return A+M.substring(U)},$=(M=C)=>{let Z=M?E:()=>String;return{isColorSupported:M,reset:Z("\x1B[0m","\x1B[0m"),bold:Z("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:Z("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:Z("\x1B[3m","\x1B[23m"),underline:Z("\x1B[4m","\x1B[24m"),inverse:Z("\x1B[7m","\x1B[27m"),hidden:Z("\x1B[8m","\x1B[28m"),strikethrough:Z("\x1B[9m","\x1B[29m"),black:Z("\x1B[30m","\x1B[39m"),red:Z("\x1B[31m","\x1B[39m"),green:Z("\x1B[32m","\x1B[39m"),yellow:Z("\x1B[33m","\x1B[39m"),blue:Z("\x1B[34m","\x1B[39m"),magenta:Z("\x1B[35m","\x1B[39m"),cyan:Z("\x1B[36m","\x1B[39m"),white:Z("\x1B[37m","\x1B[39m"),gray:Z("\x1B[90m","\x1B[39m"),bgBlack:Z("\x1B[40m","\x1B[49m"),bgRed:Z("\x1B[41m","\x1B[49m"),bgGreen:Z("\x1B[42m","\x1B[49m"),bgYellow:Z("\x1B[43m","\x1B[49m"),bgBlue:Z("\x1B[44m","\x1B[49m"),bgMagenta:Z("\x1B[45m","\x1B[49m"),bgCyan:Z("\x1B[46m","\x1B[49m"),bgWhite:Z("\x1B[47m","\x1B[49m"),blackBright:Z("\x1B[90m","\x1B[39m"),redBright:Z("\x1B[91m","\x1B[39m"),greenBright:Z("\x1B[92m","\x1B[39m"),yellowBright:Z("\x1B[93m","\x1B[39m"),blueBright:Z("\x1B[94m","\x1B[39m"),magentaBright:Z("\x1B[95m","\x1B[39m"),cyanBright:Z("\x1B[96m","\x1B[39m"),whiteBright:Z("\x1B[97m","\x1B[39m"),bgBlackBright:Z("\x1B[100m","\x1B[49m"),bgRedBright:Z("\x1B[101m","\x1B[49m"),bgGreenBright:Z("\x1B[102m","\x1B[49m"),bgYellowBright:Z("\x1B[103m","\x1B[49m"),bgBlueBright:Z("\x1B[104m","\x1B[49m"),bgMagentaBright:Z("\x1B[105m","\x1B[49m"),bgCyanBright:Z("\x1B[106m","\x1B[49m"),bgWhiteBright:Z("\x1B[107m","\x1B[49m")}};return H1.exports=$(),H1.exports.createColors=$,H1.exports}function eY({onlyFirst:D=!1}={}){let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}function WC(D){if(typeof D!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(DJ,"")}function zC(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function G0(D,u={}){if(typeof D!="string"||D.length===0||(u={ambiguousIsNarrow:!0,...u},D=WC(D),D.length===0))return 0;D=D.replace($J()," ");let F=u.ambiguousIsNarrow?1:2,C=0;for(let E of D){let w=E.codePointAt(0);if(w<=31||w>=127&&w<=159||w>=768&&w<=879)continue;switch(FJ.eastAsianWidth(E)){case"F":case"W":C+=2;break;case"A":C+=F;break;default:C+=1}}return C}function BJ(){let D=new Map;for(let[u,F]of Object.entries($D)){for(let[C,E]of Object.entries(F))$D[C]={open:`\x1B[${E[0]}m`,close:`\x1B[${E[1]}m`},F[C]=$D[C],D.set(E[0],E[1]);Object.defineProperty($D,u,{value:F,enumerable:!1})}return Object.defineProperty($D,"codes",{value:D,enumerable:!1}),$D.color.close="\x1B[39m",$D.bgColor.close="\x1B[49m",$D.color.ansi=EC(),$D.color.ansi256=wC(),$D.color.ansi16m=BC(),$D.bgColor.ansi=EC(u2),$D.bgColor.ansi256=wC(u2),$D.bgColor.ansi16m=BC(u2),Object.defineProperties($D,{rgbToAnsi256:{value:(u,F,C)=>u===F&&F===C?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(C/255*5),enumerable:!1},hexToRgb:{value:(u)=>{let F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[C]=F;C.length===3&&(C=[...C].map((w)=>w+w).join(""));let E=Number.parseInt(C,16);return[E>>16&255,E>>8&255,E&255]},enumerable:!1},hexToAnsi256:{value:(u)=>$D.rgbToAnsi256(...$D.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:(u)=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,C,E;if(u>=232)F=((u-232)*10+8)/255,C=F,E=F;else{u-=16;let M=u%36;F=Math.floor(u/36)/5,C=Math.floor(M/6)/5,E=M%6/5}let w=Math.max(F,C,E)*2;if(w===0)return 30;let $=30+(Math.round(E)<<2|Math.round(C)<<1|Math.round(F));return w===2&&($+=60),$},enumerable:!1},rgbToAnsi:{value:(u,F,C)=>$D.ansi256ToAnsi($D.rgbToAnsi256(u,F,C)),enumerable:!1},hexToAnsi:{value:(u)=>$D.ansi256ToAnsi($D.hexToAnsi256(u)),enumerable:!1}}),$D}function MC(D,u,F){return String(D).normalize().replace(/\r\n/g,`
3
4
  `).split(`
4
- `).map(($)=>uJ($,u,F)).join(`
5
- `)}function FJ(D,u){if(D===u)return;let F=D.split(`
6
- `),$=u.split(`
7
- `),E=[];for(let w=0;w<Math.max(F.length,$.length);w++)F[w]!==$[w]&&E.push(w);return E}function O8(D,u){D.isTTY&&D.setRawMode(u)}class G0{constructor({render:D,input:u=RY,output:F=kY,...$},E=!0){this._track=!1,this._cursor=0,this.state="initial",this.error="",this.subscribers=new Map,this._prevFrame="",this.opts=$,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=E,this.input=u,this.output=F}prompt(){let D=new gY(0);return D._write=(u,F,$)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),$()},this.input.pipe(D),this.rl=C9.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50}),C9.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),O8(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((u,F)=>{this.once("submit",()=>{this.output.write(Fu.cursor.show),this.output.off("resize",this.render),O8(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(Fu.cursor.show),this.output.off("resize",this.render),O8(this.input,!1),u(CJ)})})}on(D,u){let F=this.subscribers.get(D)??[];F.push({cb:u}),this.subscribers.set(D,F)}once(D,u){let F=this.subscribers.get(D)??[];F.push({cb:u,once:!0}),this.subscribers.set(D,F)}emit(D,...u){let F=this.subscribers.get(D)??[],$=[];for(let E of F)E.cb(...u),E.once&&$.push(()=>F.splice(F.indexOf(E),1));for(let E of $)E()}unsubscribe(){this.subscribers.clear()}onKeypress(D,u){if(this.state==="error"&&(this.state="active"),u?.name&&!this._track&&Z9.has(u.name)&&this.emit("cursor",Z9.get(u.name)),u?.name&&$J.has(u.name)&&this.emit("cursor",u.name),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),D&&this.emit("key",D.toLowerCase()),u?.name==="return"){if(this.opts.validate){let F=this.opts.validate(this.value);F&&(this.error=F,this.state="error",this.rl.write(this.value))}this.state!=="error"&&(this.state="submit")}D===""&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
8
- `),O8(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=J9(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
9
- `).length-1;this.output.write(Fu.cursor.move(-999,D*-1))}render(){let D=J9(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(Fu.cursor.hide);else{let u=FJ(this._prevFrame,D);if(this.restoreCursor(),u&&u?.length===1){let F=u[0];this.output.write(Fu.cursor.move(0,F)),this.output.write(Fu.erase.lines(1));let $=D.split(`
10
- `);this.output.write($[F]),this._prevFrame=D,this.output.write(Fu.cursor.move(0,$.length-F-1));return}else if(u&&u?.length>1){let F=u[0];this.output.write(Fu.cursor.move(0,F)),this.output.write(Fu.erase.down());let $=D.split(`
11
- `).slice(F);this.output.write($.join(`
12
- `)),this._prevFrame=D;return}this.output.write(Fu.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}async function AJ(D,u={}){if(!u.type||u.type==="text")return await MJ({message:D,defaultValue:u.default,placeholder:u.placeholder,initialValue:u.initial});if(u.type==="confirm")return await XJ({message:D,initialValue:u.initial});if(u.type==="select")return await WJ({message:D,options:u.options.map((F)=>typeof F==="string"?{value:F,label:F}:F)});if(u.type==="multiselect")return await QJ({message:D,options:u.options.map((F)=>typeof F==="string"?{value:F,label:F}:F),required:u.required});throw new Error(`Unknown prompt type: ${u.type}`)}var F1="\x1B",YD,_Y="\x07",C1,PY,mY,Fu,B1,vY,cY,$D=(D,u,F=D)=>($)=>{let E=""+$,w=E.indexOf(u,D.length);return~w?D+M9(E,u,F,w)+u:D+E+u},M9=(D,u,F,$)=>{let E=D.substring(0,$)+F,w=D.substring($+u.length),C=w.indexOf(u);return~C?E+M9(w,u,F,C):E+w},X9=(D=cY)=>({isColorSupported:D,reset:D?(u)=>`\x1B[0m${u}\x1B[0m`:String,bold:D?$D("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:D?$D("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:D?$D("\x1B[3m","\x1B[23m"):String,underline:D?$D("\x1B[4m","\x1B[24m"):String,inverse:D?$D("\x1B[7m","\x1B[27m"):String,hidden:D?$D("\x1B[8m","\x1B[28m"):String,strikethrough:D?$D("\x1B[9m","\x1B[29m"):String,black:D?$D("\x1B[30m","\x1B[39m"):String,red:D?$D("\x1B[31m","\x1B[39m"):String,green:D?$D("\x1B[32m","\x1B[39m"):String,yellow:D?$D("\x1B[33m","\x1B[39m"):String,blue:D?$D("\x1B[34m","\x1B[39m"):String,magenta:D?$D("\x1B[35m","\x1B[39m"):String,cyan:D?$D("\x1B[36m","\x1B[39m"):String,white:D?$D("\x1B[37m","\x1B[39m"):String,gray:D?$D("\x1B[90m","\x1B[39m"):String,bgBlack:D?$D("\x1B[40m","\x1B[49m"):String,bgRed:D?$D("\x1B[41m","\x1B[49m"):String,bgGreen:D?$D("\x1B[42m","\x1B[49m"):String,bgYellow:D?$D("\x1B[43m","\x1B[49m"):String,bgBlue:D?$D("\x1B[44m","\x1B[49m"):String,bgMagenta:D?$D("\x1B[45m","\x1B[49m"):String,bgCyan:D?$D("\x1B[46m","\x1B[49m"):String,bgWhite:D?$D("\x1B[47m","\x1B[49m"):String}),fY,e2,$1,rY,dY,lY=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},D1=10,$9=(D=0)=>(u)=>`\x1B[${u+D}m`,E9=(D=0)=>(u)=>`\x1B[${38+D};5;${u}m`,w9=(D=0)=>(u,F,$)=>`\x1B[${38+D};2;${u};${F};${$}m`,ED,pY,iY,sY,V8,aY=39,Y1="\x07",Q9="[",oY="]",A9="m",J1,B9=(D)=>`${V8.values().next().value}${Q9}${D}${A9}`,Y9=(D)=>`${V8.values().next().value}${J1}${D}${Y1}`,eY=(D)=>D.split(" ").map((u)=>z0(u)),u1=(D,u,F)=>{let $=[...u],E=!1,w=!1,C=z0(W9(D[D.length-1]));for(let[Z,M]of $.entries()){let W=z0(M);if(C+W<=F?D[D.length-1]+=M:(D.push(M),C=0),V8.has(M)&&(E=!0,w=$.slice(Z+1).join("").startsWith(J1)),E){w?M===Y1&&(E=!1,w=!1):M===A9&&(E=!1);continue}C+=W,C===F&&Z<$.length-1&&(D.push(""),C=0)}!C&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())},DJ=(D)=>{let u=D.split(" "),F=u.length;for(;F>0&&!(z0(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},uJ=(D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let $="",E,w,C=eY(D),Z=[""];for(let[W,X]of D.split(" ").entries()){F.trim!==!1&&(Z[Z.length-1]=Z[Z.length-1].trimStart());let q=z0(Z[Z.length-1]);if(W!==0&&(q>=u&&(F.wordWrap===!1||F.trim===!1)&&(Z.push(""),q=0),(q>0||F.trim===!1)&&(Z[Z.length-1]+=" ",q++)),F.hard&&C[W]>u){let L=u-q,U=1+Math.floor((C[W]-L-1)/u);Math.floor((C[W]-1)/u)<U&&Z.push(""),u1(Z,X,u);continue}if(q+C[W]>u&&q>0&&C[W]>0){if(F.wordWrap===!1&&q<u){u1(Z,X,u);continue}Z.push("")}if(q+C[W]>u&&F.wordWrap===!1){u1(Z,X,u);continue}Z[Z.length-1]+=X}F.trim!==!1&&(Z=Z.map((W)=>DJ(W)));let M=[...Z.join(`
13
- `)];for(let[W,X]of M.entries()){if($+=X,V8.has(X)){let{groups:L}=new RegExp(`(?:\\${Q9}(?<code>\\d+)m|\\${J1}(?<uri>.*)${Y1})`).exec(M.slice(W).join(""))||{groups:{}};if(L.code!==void 0){let U=Number.parseFloat(L.code);E=U===aY?void 0:U}else L.uri!==void 0&&(w=L.uri.length===0?void 0:L.uri)}let q=sY.codes.get(Number(E));M[W+1]===`
14
- `?(w&&($+=Y9("")),E&&q&&($+=B9(q))):X===`
15
- `&&(E&&q&&($+=B9(E)),w&&($+=Y9(w)))}return $},CJ,Z9,$J,z9,G9,q9,H9,EJ,zu=(D,u)=>EJ?D:u,wJ,BJ,YJ,JJ,DD="",pu="",E1,w1,ZJ,K9,KJ,L8=(D)=>{switch(D){case"initial":case"active":return z.cyan(wJ);case"cancel":return z.red(BJ);case"error":return z.yellow(YJ);case"submit":return z.green(JJ)}},MJ=(D)=>{return new H9({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,render(){let u=`${z.gray(DD)}
16
- ${L8(this.state)} ${D.message}
17
- `,F=D.placeholder?z.inverse(D.placeholder[0])+z.dim(D.placeholder.slice(1)):z.inverse(z.hidden("_")),$=this.value?this.valueWithCursor:F;switch(this.state){case"error":return`${u.trim()}
18
- ${z.yellow(DD)} ${$}
19
- ${z.yellow(pu)} ${z.yellow(this.error)}
20
- `;case"submit":return`${u}${z.gray(DD)} ${z.dim(this.value||D.placeholder)}`;case"cancel":return`${u}${z.gray(DD)} ${z.strikethrough(z.dim(this.value??""))}${this.value?.trim()?"\n"+z.gray(DD):""}`;default:return`${u}${z.cyan(DD)} ${$}
21
- ${z.cyan(pu)}
22
- `}}}).prompt()},XJ=(D)=>{let u=D.active??"Yes",F=D.inactive??"No";return new z9({active:u,inactive:F,initialValue:D.initialValue??!0,render(){let $=`${z.gray(DD)}
23
- ${L8(this.state)} ${D.message}
24
- `,E=this.value?u:F;switch(this.state){case"submit":return`${$}${z.gray(DD)} ${z.dim(E)}`;case"cancel":return`${$}${z.gray(DD)} ${z.strikethrough(z.dim(E))}
25
- ${z.gray(DD)}`;default:return`${$}${z.cyan(DD)} ${this.value?`${z.green(E1)} ${u}`:`${z.dim(w1)} ${z.dim(u)}`} ${z.dim("/")} ${this.value?`${z.dim(w1)} ${z.dim(F)}`:`${z.green(E1)} ${F}`}
26
- ${z.cyan(pu)}
27
- `}}}).prompt()},WJ=(D)=>{let u=(F,$)=>{let E=F.label??String(F.value);switch($){case"active":return`${z.green(E1)} ${E} ${F.hint?z.dim(`(${F.hint})`):""}`;case"selected":return`${z.dim(E)}`;case"cancelled":return`${z.strikethrough(z.dim(E))}`}return`${z.dim(w1)} ${z.dim(E)}`};return new q9({options:D.options,initialValue:D.initialValue,render(){let F=`${z.gray(DD)}
28
- ${L8(this.state)} ${D.message}
29
- `;switch(this.state){case"submit":return`${F}${z.gray(DD)} ${u(this.options[this.cursor],"selected")}`;case"cancel":return`${F}${z.gray(DD)} ${u(this.options[this.cursor],"cancelled")}
30
- ${z.gray(DD)}`;default:return`${F}${z.cyan(DD)} ${this.options.map(($,E)=>u($,E===this.cursor?"active":"inactive")).join(`
31
- ${z.cyan(DD)} `)}
32
- ${z.cyan(pu)}
33
- `}}}).prompt()},QJ=(D)=>{let u=(F,$)=>{let E=F.label??String(F.value);switch($){case"active":return`${z.cyan(ZJ)} ${E} ${F.hint?z.dim(`(${F.hint})`):""}`;case"selected":return`${z.green(K9)} ${z.dim(E)}`;case"cancelled":return`${z.strikethrough(z.dim(E))}`;case"active-selected":return`${z.green(K9)} ${E} ${F.hint?z.dim(`(${F.hint})`):""}`;case"submitted":return`${z.dim(E)}`}return`${z.dim(KJ)} ${z.dim(E)}`};return new G9({options:D.options,initialValues:D.initialValues,required:D.required??!0,cursorAt:D.cursorAt,validate(F){if(this.required&&F.length===0)return`Please select at least one option.
34
- ${z.reset(z.dim(`Press ${z.gray(z.bgWhite(z.inverse(" space ")))} to select, ${z.gray(z.bgWhite(z.inverse(" enter ")))} to submit`))}`},render(){let F=`${z.gray(DD)}
35
- ${L8(this.state)} ${D.message}
36
- `;switch(this.state){case"submit":return`${F}${z.gray(DD)} ${this.options.filter(({value:$})=>this.value.includes($)).map(($)=>u($,"submitted")).join(z.dim(", "))||z.dim("none")}`;case"cancel":{let $=this.options.filter(({value:E})=>this.value.includes(E)).map((E)=>u(E,"cancelled")).join(z.dim(", "));return`${F}${z.gray(DD)} ${$.trim()?`${$}
37
- ${z.gray(DD)}`:""}`}case"error":{let $=this.error.split("\n").map((E,w)=>w===0?`${z.yellow(pu)} ${z.yellow(E)}`:` ${E}`).join("\n");return F+z.yellow(DD)+" "+this.options.map((E,w)=>{let C=this.value.includes(E.value),Z=w===this.cursor;if(Z&&C)return u(E,"active-selected");if(C)return u(E,"selected");return u(E,Z?"active":"inactive")}).join(`
38
- ${z.yellow(DD)} `)+"\n"+$+"\n"}default:return`${F}${z.cyan(DD)} ${this.options.map(($,E)=>{let w=this.value.includes($.value),C=E===this.cursor;if(C&&w)return u($,"active-selected");if(w)return u($,"selected");return u($,C?"active":"inactive")}).join(`
39
- ${z.cyan(DD)} `)}
40
- ${z.cyan(pu)}
41
- `}}}).prompt()};var O9=C0(()=>{M1();U8();z8();q8();YD=`${F1}[`,C1={to(D,u){if(!u)return`${YD}${D+1}G`;return`${YD}${u+1};${D+1}H`},move(D,u){let F="";if(D<0)F+=`${YD}${-D}D`;else if(D>0)F+=`${YD}${D}C`;if(u<0)F+=`${YD}${-u}A`;else if(u>0)F+=`${YD}${u}B`;return F},up:(D=1)=>`${YD}${D}A`,down:(D=1)=>`${YD}${D}B`,forward:(D=1)=>`${YD}${D}C`,backward:(D=1)=>`${YD}${D}D`,nextLine:(D=1)=>`${YD}E`.repeat(D),prevLine:(D=1)=>`${YD}F`.repeat(D),left:`${YD}G`,hide:`${YD}?25l`,show:`${YD}?25h`,save:`${F1}7`,restore:`${F1}8`},PY={up:(D=1)=>`${YD}S`.repeat(D),down:(D=1)=>`${YD}T`.repeat(D)},mY={screen:`${YD}2J`,up:(D=1)=>`${YD}1J`.repeat(D),down:(D=1)=>`${YD}J`.repeat(D),line:`${YD}2K`,lineEnd:`${YD}K`,lineStart:`${YD}1K`,lines(D){let u="";for(let F=0;F<D;F++)u+=this.line+(F<D-1?C1.up():"");if(D)u+=C1.left;return u}},Fu={cursor:C1,scroll:PY,erase:mY,beep:_Y},B1={exports:{}},vY=bY,cY=!(("NO_COLOR"in process.env)||process.argv.includes("--no-color"))&&(("FORCE_COLOR"in process.env)||process.argv.includes("--color")||process.platform==="win32"||vY.isatty(1)&&!0||("CI"in process.env));B1.exports=X9();B1.exports.createColors=X9;fY=B1.exports,e2=Z1(fY);$1={},rY={get exports(){return $1},set exports(D){$1=D}};(function(D){var u={};D.exports=u,u.eastAsianWidth=function($){var E=$.charCodeAt(0),w=$.length==2?$.charCodeAt(1):0,C=E;return 55296<=E&&E<=56319&&56320<=w&&w<=57343&&(E&=1023,w&=1023,C=E<<10|w,C+=65536),C==12288||65281<=C&&C<=65376||65504<=C&&C<=65510?"F":C==8361||65377<=C&&C<=65470||65474<=C&&C<=65479||65482<=C&&C<=65487||65490<=C&&C<=65495||65498<=C&&C<=65500||65512<=C&&C<=65518?"H":4352<=C&&C<=4447||4515<=C&&C<=4519||4602<=C&&C<=4607||9001<=C&&C<=9002||11904<=C&&C<=11929||11931<=C&&C<=12019||12032<=C&&C<=12245||12272<=C&&C<=12283||12289<=C&&C<=12350||12353<=C&&C<=12438||12441<=C&&C<=12543||12549<=C&&C<=12589||12593<=C&&C<=12686||12688<=C&&C<=12730||12736<=C&&C<=12771||12784<=C&&C<=12830||12832<=C&&C<=12871||12880<=C&&C<=13054||13056<=C&&C<=19903||19968<=C&&C<=42124||42128<=C&&C<=42182||43360<=C&&C<=43388||44032<=C&&C<=55203||55216<=C&&C<=55238||55243<=C&&C<=55291||63744<=C&&C<=64255||65040<=C&&C<=65049||65072<=C&&C<=65106||65108<=C&&C<=65126||65128<=C&&C<=65131||110592<=C&&C<=110593||127488<=C&&C<=127490||127504<=C&&C<=127546||127552<=C&&C<=127560||127568<=C&&C<=127569||131072<=C&&C<=194367||177984<=C&&C<=196605||196608<=C&&C<=262141?"W":32<=C&&C<=126||162<=C&&C<=163||165<=C&&C<=166||C==172||C==175||10214<=C&&C<=10221||10629<=C&&C<=10630?"Na":C==161||C==164||167<=C&&C<=168||C==170||173<=C&&C<=174||176<=C&&C<=180||182<=C&&C<=186||188<=C&&C<=191||C==198||C==208||215<=C&&C<=216||222<=C&&C<=225||C==230||232<=C&&C<=234||236<=C&&C<=237||C==240||242<=C&&C<=243||247<=C&&C<=250||C==252||C==254||C==257||C==273||C==275||C==283||294<=C&&C<=295||C==299||305<=C&&C<=307||C==312||319<=C&&C<=322||C==324||328<=C&&C<=331||C==333||338<=C&&C<=339||358<=C&&C<=359||C==363||C==462||C==464||C==466||C==468||C==470||C==472||C==474||C==476||C==593||C==609||C==708||C==711||713<=C&&C<=715||C==717||C==720||728<=C&&C<=731||C==733||C==735||768<=C&&C<=879||913<=C&&C<=929||931<=C&&C<=937||945<=C&&C<=961||963<=C&&C<=969||C==1025||1040<=C&&C<=1103||C==1105||C==8208||8211<=C&&C<=8214||8216<=C&&C<=8217||8220<=C&&C<=8221||8224<=C&&C<=8226||8228<=C&&C<=8231||C==8240||8242<=C&&C<=8243||C==8245||C==8251||C==8254||C==8308||C==8319||8321<=C&&C<=8324||C==8364||C==8451||C==8453||C==8457||C==8467||C==8470||8481<=C&&C<=8482||C==8486||C==8491||8531<=C&&C<=8532||8539<=C&&C<=8542||8544<=C&&C<=8555||8560<=C&&C<=8569||C==8585||8592<=C&&C<=8601||8632<=C&&C<=8633||C==8658||C==8660||C==8679||C==8704||8706<=C&&C<=8707||8711<=C&&C<=8712||C==8715||C==8719||C==8721||C==8725||C==8730||8733<=C&&C<=8736||C==8739||C==8741||8743<=C&&C<=8748||C==8750||8756<=C&&C<=8759||8764<=C&&C<=8765||C==8776||C==8780||C==8786||8800<=C&&C<=8801||8804<=C&&C<=8807||8810<=C&&C<=8811||8814<=C&&C<=8815||8834<=C&&C<=8835||8838<=C&&C<=8839||C==8853||C==8857||C==8869||C==8895||C==8978||9312<=C&&C<=9449||9451<=C&&C<=9547||9552<=C&&C<=9587||9600<=C&&C<=9615||9618<=C&&C<=9621||9632<=C&&C<=9633||9635<=C&&C<=9641||9650<=C&&C<=9651||9654<=C&&C<=9655||9660<=C&&C<=9661||9664<=C&&C<=9665||9670<=C&&C<=9672||C==9675||9678<=C&&C<=9681||9698<=C&&C<=9701||C==9711||9733<=C&&C<=9734||C==9737||9742<=C&&C<=9743||9748<=C&&C<=9749||C==9756||C==9758||C==9792||C==9794||9824<=C&&C<=9825||9827<=C&&C<=9829||9831<=C&&C<=9834||9836<=C&&C<=9837||C==9839||9886<=C&&C<=9887||9918<=C&&C<=9919||9924<=C&&C<=9933||9935<=C&&C<=9953||C==9955||9960<=C&&C<=9983||C==10045||C==10071||10102<=C&&C<=10111||11093<=C&&C<=11097||12872<=C&&C<=12879||57344<=C&&C<=63743||65024<=C&&C<=65039||C==65533||127232<=C&&C<=127242||127248<=C&&C<=127277||127280<=C&&C<=127337||127344<=C&&C<=127386||917760<=C&&C<=917999||983040<=C&&C<=1048573||1048576<=C&&C<=1114109?"A":"N"},u.characterLength=function($){var E=this.eastAsianWidth($);return E=="F"||E=="W"||E=="A"?2:1};function F($){return $.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function($){for(var E=F($),w=0,C=0;C<E.length;C++)w=w+this.characterLength(E[C]);return w},u.slice=function($,E,w){textLen=u.length($),E=E||0,w=w||1,E<0&&(E=textLen+E),w<0&&(w=textLen+w);for(var C="",Z=0,M=F($),W=0;W<M.length;W++){var X=M[W],q=u.length(X);if(Z>=E-(q==2?1:0))if(Z+q<=w)C+=X;else break;Z+=q}return C}})(rY);dY=$1;ED={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(ED.modifier);pY=Object.keys(ED.color),iY=Object.keys(ED.bgColor);[...pY];sY=tY(),V8=new Set(["\x1B","\x9B"]),J1=`${oY}8;;`;CJ=Symbol("clack:cancel");Z9=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),$J=new Set(["up","down","left","right","space","enter"]);z9=class z9 extends G0{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",(u)=>{this.output.write(Fu.cursor.move(0,-1)),this.value=u,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};G9=class G9 extends G0{constructor(D){super(D,!1),this.cursor=0,this.options=D.options,this.value=[...D.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:u})=>u===D.cursorAt),0),this.on("key",(u)=>{u==="a"&&this.toggleAll()}),this.on("cursor",(u)=>{switch(u){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let D=this.value.length===this.options.length;this.value=D?[]:this.options.map((u)=>u.value)}toggleValue(){let D=this.value.includes(this._value);this.value=D?this.value.filter((u)=>u!==this._value):[...this.value,this._value]}};q9=class q9 extends G0{constructor(D){super(D,!1),this.cursor=0,this.options=D.options,this.cursor=this.options.findIndex(({value:u})=>u===D.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",(u)=>{switch(u){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};H9=class H9 extends G0{constructor(D){super(D),this.valueWithCursor="",this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.valueWithCursor=this.value}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.value}${e2.inverse(e2.hidden("_"))}`;else{let u=this.value.slice(0,this.cursor),F=this.value.slice(this.cursor);this.valueWithCursor=`${u}${e2.inverse(F[0])}${F.slice(1)}`}})}get cursor(){return this._cursor}};EJ=K1(),wJ=zu("\u276F",">"),BJ=zu("\u25A0","x"),YJ=zu("\u25B2","x"),JJ=zu("\u2714","\u221A"),E1=zu("\u25CF",">"),w1=zu("\u25CB"," "),ZJ=zu("\u25FB","[\u2022]"),K9=zu("\u25FC","[+]"),KJ=zu("\u25FB","[ ]")});import Cu from"process";function GJ(D){for(let u of zJ){let F=u[1]||u[0];if(D[F])return{name:u[0].toLowerCase(),...u[2]}}if(D.SHELL&&D.SHELL==="/bin/jsh")return{name:"stackblitz",ci:!1};return{name:"",ci:!1}}function H0(D){return D?D!=="false":!1}function OJ({onlyFirst:D=!1}={}){let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}function LJ(D){if(typeof D!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(VJ,"")}function Z1(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function xJ(D,u){if(typeof D!=="string"||D.length===0)return 0;if(u={ambiguousIsNarrow:!0,countAnsiEscapeCodes:!1,...u},!u.countAnsiEscapeCodes)D=LJ(D);if(D.length===0)return 0;let F=u.ambiguousIsNarrow?1:2,$=0;for(let{segment:E}of new Intl.Segmenter().segment(D)){let w=E.codePointAt(0);if(w<=31||w>=127&&w<=159)continue;if(w>=768&&w<=879)continue;if(IJ().test(E)){$+=2;continue}switch(NJ.eastAsianWidth(E)){case"F":case"W":{$+=2;break}case"A":{$+=F;break}default:$+=1}}return $}function K1(){if(Cu.platform!=="win32")return Cu.env.TERM!=="linux";return Boolean(Cu.env.CI)||Boolean(Cu.env.WT_SESSION)||Boolean(Cu.env.TERMINUS_SUBLIME)||Cu.env.ConEmuTask==="{cmd::Cmder}"||Cu.env.TERM_PROGRAM==="Terminus-Sublime"||Cu.env.TERM_PROGRAM==="vscode"||Cu.env.TERM==="xterm-256color"||Cu.env.TERM==="alacritty"||Cu.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}function L9(D){if(!Intl.Segmenter)return lu(D).length;return xJ(D)}function T8(D){return D.replace(/`([^`]+)`/gm,(u,F)=>z.cyan(F)).replace(/\s+_([^_]+)_\s+/gm,(u,F)=>` ${z.underline(F)} `)}function jJ(D="white"){return z[D]||z.white}function RJ(D="bgWhite"){return z[`bg${D[0].toUpperCase()}${D.slice(1)}`]||z.bgWhite}function I8(D={}){let u=kJ();if(process.env.CONSOLA_LEVEL)u=Number.parseInt(process.env.CONSOLA_LEVEL)??u;return sC({level:u,defaults:{level:u},stdout:process.stdout,stderr:process.stderr,prompt:(...$)=>Promise.resolve().then(() => (O9(),U9)).then((E)=>E.prompt(...$)),reporters:D.reporters||[D.fancy??!(N9||X1)?new x9:new G8],...D})}function kJ(){if(UJ)return AD.debug;if(X1)return AD.warn;return AD.info}var zJ,N8,q0,T9,qJ,N9,HJ,UJ,X1,VJ,I9,TJ,NJ,IJ=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},SJ,hJ,yJ,Zu=(D,u)=>yJ?D:u,V9,x9,W1;var M1=C0(()=>{z8();q8();U8();zJ=[["APPVEYOR"],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"]];N8=typeof process!=="undefined"?process:{},q0=N8.env||{},T9=GJ(q0),qJ=typeof process!=="undefined"&&process.env&&"development"||"";N8.platform;T9.name;N9=H0(q0.CI)||T9.ci!==!1,HJ=H0(N8.stdout&&N8.stdout.isTTY),UJ=H0(q0.DEBUG),X1=qJ==="test"||H0(q0.TEST);H0(q0.MINIMAL);VJ=OJ();I9={exports:{}};(function(D){var u={};D.exports=u,u.eastAsianWidth=function($){var E=$.charCodeAt(0),w=$.length==2?$.charCodeAt(1):0,C=E;if(55296<=E&&E<=56319&&(56320<=w&&w<=57343))E&=1023,w&=1023,C=E<<10|w,C+=65536;if(C==12288||65281<=C&&C<=65376||65504<=C&&C<=65510)return"F";if(C==8361||65377<=C&&C<=65470||65474<=C&&C<=65479||65482<=C&&C<=65487||65490<=C&&C<=65495||65498<=C&&C<=65500||65512<=C&&C<=65518)return"H";if(4352<=C&&C<=4447||4515<=C&&C<=4519||4602<=C&&C<=4607||9001<=C&&C<=9002||11904<=C&&C<=11929||11931<=C&&C<=12019||12032<=C&&C<=12245||12272<=C&&C<=12283||12289<=C&&C<=12350||12353<=C&&C<=12438||12441<=C&&C<=12543||12549<=C&&C<=12589||12593<=C&&C<=12686||12688<=C&&C<=12730||12736<=C&&C<=12771||12784<=C&&C<=12830||12832<=C&&C<=12871||12880<=C&&C<=13054||13056<=C&&C<=19903||19968<=C&&C<=42124||42128<=C&&C<=42182||43360<=C&&C<=43388||44032<=C&&C<=55203||55216<=C&&C<=55238||55243<=C&&C<=55291||63744<=C&&C<=64255||65040<=C&&C<=65049||65072<=C&&C<=65106||65108<=C&&C<=65126||65128<=C&&C<=65131||110592<=C&&C<=110593||127488<=C&&C<=127490||127504<=C&&C<=127546||127552<=C&&C<=127560||127568<=C&&C<=127569||131072<=C&&C<=194367||177984<=C&&C<=196605||196608<=C&&C<=262141)return"W";if(32<=C&&C<=126||162<=C&&C<=163||165<=C&&C<=166||C==172||C==175||10214<=C&&C<=10221||10629<=C&&C<=10630)return"Na";if(C==161||C==164||167<=C&&C<=168||C==170||173<=C&&C<=174||176<=C&&C<=180||182<=C&&C<=186||188<=C&&C<=191||C==198||C==208||215<=C&&C<=216||222<=C&&C<=225||C==230||232<=C&&C<=234||236<=C&&C<=237||C==240||242<=C&&C<=243||247<=C&&C<=250||C==252||C==254||C==257||C==273||C==275||C==283||294<=C&&C<=295||C==299||305<=C&&C<=307||C==312||319<=C&&C<=322||C==324||328<=C&&C<=331||C==333||338<=C&&C<=339||358<=C&&C<=359||C==363||C==462||C==464||C==466||C==468||C==470||C==472||C==474||C==476||C==593||C==609||C==708||C==711||713<=C&&C<=715||C==717||C==720||728<=C&&C<=731||C==733||C==735||768<=C&&C<=879||913<=C&&C<=929||931<=C&&C<=937||945<=C&&C<=961||963<=C&&C<=969||C==1025||1040<=C&&C<=1103||C==1105||C==8208||8211<=C&&C<=8214||8216<=C&&C<=8217||8220<=C&&C<=8221||8224<=C&&C<=8226||8228<=C&&C<=8231||C==8240||8242<=C&&C<=8243||C==8245||C==8251||C==8254||C==8308||C==8319||8321<=C&&C<=8324||C==8364||C==8451||C==8453||C==8457||C==8467||C==8470||8481<=C&&C<=8482||C==8486||C==8491||8531<=C&&C<=8532||8539<=C&&C<=8542||8544<=C&&C<=8555||8560<=C&&C<=8569||C==8585||8592<=C&&C<=8601||8632<=C&&C<=8633||C==8658||C==8660||C==8679||C==8704||8706<=C&&C<=8707||8711<=C&&C<=8712||C==8715||C==8719||C==8721||C==8725||C==8730||8733<=C&&C<=8736||C==8739||C==8741||8743<=C&&C<=8748||C==8750||8756<=C&&C<=8759||8764<=C&&C<=8765||C==8776||C==8780||C==8786||8800<=C&&C<=8801||8804<=C&&C<=8807||8810<=C&&C<=8811||8814<=C&&C<=8815||8834<=C&&C<=8835||8838<=C&&C<=8839||C==8853||C==8857||C==8869||C==8895||C==8978||9312<=C&&C<=9449||9451<=C&&C<=9547||9552<=C&&C<=9587||9600<=C&&C<=9615||9618<=C&&C<=9621||9632<=C&&C<=9633||9635<=C&&C<=9641||9650<=C&&C<=9651||9654<=C&&C<=9655||9660<=C&&C<=9661||9664<=C&&C<=9665||9670<=C&&C<=9672||C==9675||9678<=C&&C<=9681||9698<=C&&C<=9701||C==9711||9733<=C&&C<=9734||C==9737||9742<=C&&C<=9743||9748<=C&&C<=9749||C==9756||C==9758||C==9792||C==9794||9824<=C&&C<=9825||9827<=C&&C<=9829||9831<=C&&C<=9834||9836<=C&&C<=9837||C==9839||9886<=C&&C<=9887||9918<=C&&C<=9919||9924<=C&&C<=9933||9935<=C&&C<=9953||C==9955||9960<=C&&C<=9983||C==10045||C==10071||10102<=C&&C<=10111||11093<=C&&C<=11097||12872<=C&&C<=12879||57344<=C&&C<=63743||65024<=C&&C<=65039||C==65533||127232<=C&&C<=127242||127248<=C&&C<=127277||127280<=C&&C<=127337||127344<=C&&C<=127386||917760<=C&&C<=917999||983040<=C&&C<=1048573||1048576<=C&&C<=1114109)return"A";return"N"},u.characterLength=function($){var E=this.eastAsianWidth($);if(E=="F"||E=="W"||E=="A")return 2;else return 1};function F($){return $.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function($){var E=F($),w=0;for(var C=0;C<E.length;C++)w=w+this.characterLength(E[C]);return w},u.slice=function($,E,w){if(textLen=u.length($),E=E?E:0,w=w?w:1,E<0)E=textLen+E;if(w<0)w=textLen+w;var C="",Z=0,M=F($);for(var W=0;W<M.length;W++){var X=M[W],q=u.length(X);if(Z>=E-(q==2?1:0))if(Z+q<=w)C+=X;else break;Z+=q}return C}})(I9);TJ=I9.exports,NJ=Z1(TJ);SJ={info:"cyan",fail:"red",success:"green",ready:"green",start:"magenta"},hJ={0:"red",1:"yellow"},yJ=K1(),V9={error:Zu("\u2716","\xD7"),fatal:Zu("\u2716","\xD7"),ready:Zu("\u2714","\u221A"),warn:Zu("\u26A0","\u203C"),info:Zu("\u2139","i"),success:Zu("\u2714","\u221A"),debug:Zu("\u2699","D"),trace:Zu("\u2192","\u2192"),fail:Zu("\u2716","\xD7"),start:Zu("\u25D0","o"),log:""};x9=class x9 extends G8{formatStack(D){return"\n"+o2(D).map((u)=>" "+u.replace(/^at +/,(F)=>z.gray(F)).replace(/\((.+)\)/,(F,$)=>`(${z.cyan($)})`)).join("\n")}formatType(D,u,F){let $=SJ[D.type]||hJ[D.level]||"gray";if(u)return RJ($)(z.black(` ${D.type.toUpperCase()} `));let E=typeof V9[D.type]==="string"?V9[D.type]:D.icon||D.type;return E?jJ($)(E):""}formatLogObj(D,u){let[F,...$]=this.formatArgs(D.args,u).split("\n");if(D.type==="box")return F9(T8(F+($.length>0?"\n"+$.join("\n"):"")),{title:D.title?T8(D.title):void 0,style:D.style});let E=this.formatDate(D.date,u),w=E&&z.gray(E),C=D.badge??D.level<2,Z=this.formatType(D,C,u),M=D.tag?z.gray(D.tag):"",W,X=this.filterAndJoin([Z,T8(F)]),q=this.filterAndJoin(u.columns?[M,w]:[M]),L=(u.columns||0)-L9(X)-L9(q)-2;if(W=L>0&&(u.columns||0)>=80?X+" ".repeat(L)+q:(q?`${z.gray(`[${q}]`)} `:"")+X,W+=T8($.length>0?"\n"+$.join("\n"):""),D.type==="trace"){let U=new Error("Trace: "+D.message);W+=this.formatStack(U.stack||"")}return C?"\n"+W+"\n":W}};W1=I8()});var R9=b((j9)=>{Object.defineProperty(j9,"__esModule",{value:!0});var S9=import.meta.require("buffer"),yu={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};j9.ERRORS=yu;function _J(D){if(!S9.Buffer.isEncoding(D))throw new Error(yu.INVALID_ENCODING)}j9.checkEncoding=_J;function h9(D){return typeof D==="number"&&isFinite(D)&&cJ(D)}j9.isFiniteInteger=h9;function y9(D,u){if(typeof D==="number"){if(!h9(D)||D<0)throw new Error(u?yu.INVALID_OFFSET:yu.INVALID_LENGTH)}else throw new Error(u?yu.INVALID_OFFSET_NON_NUMBER:yu.INVALID_LENGTH_NON_NUMBER)}function PJ(D){y9(D,!1)}j9.checkLengthValue=PJ;function mJ(D){y9(D,!0)}j9.checkOffsetValue=mJ;function vJ(D,u){if(D<0||D>u.length)throw new Error(yu.INVALID_TARGET_OFFSET)}j9.checkTargetOffset=vJ;function cJ(D){return typeof D==="number"&&isFinite(D)&&Math.floor(D)===D}function fJ(D){if(typeof BigInt==="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof S9.Buffer.prototype[D]==="undefined")throw new Error(`Platform does not support Buffer.prototype.${D}.`)}j9.bigIntAndBufferInt64Check=fJ});var b9=b((g9)=>{Object.defineProperty(g9,"__esModule",{value:!0});var f=R9(),k9=4096,sJ="utf8";class Q1{constructor(D){if(this.length=0,this._encoding=sJ,this._writeOffset=0,this._readOffset=0,Q1.isSmartBufferOptions(D)){if(D.encoding)f.checkEncoding(D.encoding),this._encoding=D.encoding;if(D.size)if(f.isFiniteInteger(D.size)&&D.size>0)this._buff=Buffer.allocUnsafe(D.size);else throw new Error(f.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(D.buff)if(Buffer.isBuffer(D.buff))this._buff=D.buff,this.length=D.buff.length;else throw new Error(f.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(k9)}else{if(typeof D!=="undefined")throw new Error(f.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(k9)}}static fromSize(D,u){return new this({size:D,encoding:u})}static fromBuffer(D,u){return new this({buff:D,encoding:u})}static fromOptions(D){return new this(D)}static isSmartBufferOptions(D){let u=D;return u&&(u.encoding!==void 0||u.size!==void 0||u.buff!==void 0)}readInt8(D){return this._readNumberValue(Buffer.prototype.readInt8,1,D)}readInt16BE(D){return this._readNumberValue(Buffer.prototype.readInt16BE,2,D)}readInt16LE(D){return this._readNumberValue(Buffer.prototype.readInt16LE,2,D)}readInt32BE(D){return this._readNumberValue(Buffer.prototype.readInt32BE,4,D)}readInt32LE(D){return this._readNumberValue(Buffer.prototype.readInt32LE,4,D)}readBigInt64BE(D){return f.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,D)}readBigInt64LE(D){return f.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,D)}writeInt8(D,u){return this._writeNumberValue(Buffer.prototype.writeInt8,1,D,u),this}insertInt8(D,u){return this._insertNumberValue(Buffer.prototype.writeInt8,1,D,u)}writeInt16BE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,D,u)}insertInt16BE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,D,u)}writeInt16LE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,D,u)}insertInt16LE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,D,u)}writeInt32BE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,D,u)}insertInt32BE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,D,u)}writeInt32LE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,D,u)}insertInt32LE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,D,u)}writeBigInt64BE(D,u){return f.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,D,u)}insertBigInt64BE(D,u){return f.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,D,u)}writeBigInt64LE(D,u){return f.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,D,u)}insertBigInt64LE(D,u){return f.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,D,u)}readUInt8(D){return this._readNumberValue(Buffer.prototype.readUInt8,1,D)}readUInt16BE(D){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,D)}readUInt16LE(D){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,D)}readUInt32BE(D){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,D)}readUInt32LE(D){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,D)}readBigUInt64BE(D){return f.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,D)}readBigUInt64LE(D){return f.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,D)}writeUInt8(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,D,u)}insertUInt8(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,D,u)}writeUInt16BE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,D,u)}insertUInt16BE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,D,u)}writeUInt16LE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,D,u)}insertUInt16LE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,D,u)}writeUInt32BE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,D,u)}insertUInt32BE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,D,u)}writeUInt32LE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,D,u)}insertUInt32LE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,D,u)}writeBigUInt64BE(D,u){return f.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,D,u)}insertBigUInt64BE(D,u){return f.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,D,u)}writeBigUInt64LE(D,u){return f.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,D,u)}insertBigUInt64LE(D,u){return f.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,D,u)}readFloatBE(D){return this._readNumberValue(Buffer.prototype.readFloatBE,4,D)}readFloatLE(D){return this._readNumberValue(Buffer.prototype.readFloatLE,4,D)}writeFloatBE(D,u){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,D,u)}insertFloatBE(D,u){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,D,u)}writeFloatLE(D,u){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,D,u)}insertFloatLE(D,u){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,D,u)}readDoubleBE(D){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,D)}readDoubleLE(D){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,D)}writeDoubleBE(D,u){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,D,u)}insertDoubleBE(D,u){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,D,u)}writeDoubleLE(D,u){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,D,u)}insertDoubleLE(D,u){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,D,u)}readString(D,u){let F;if(typeof D==="number")f.checkLengthValue(D),F=Math.min(D,this.length-this._readOffset);else u=D,F=this.length-this._readOffset;if(typeof u!=="undefined")f.checkEncoding(u);let $=this._buff.slice(this._readOffset,this._readOffset+F).toString(u||this._encoding);return this._readOffset+=F,$}insertString(D,u,F){return f.checkOffsetValue(u),this._handleString(D,!0,u,F)}writeString(D,u,F){return this._handleString(D,!1,u,F)}readStringNT(D){if(typeof D!=="undefined")f.checkEncoding(D);let u=this.length;for(let $=this._readOffset;$<this.length;$++)if(this._buff[$]===0){u=$;break}let F=this._buff.slice(this._readOffset,u);return this._readOffset=u+1,F.toString(D||this._encoding)}insertStringNT(D,u,F){return f.checkOffsetValue(u),this.insertString(D,u,F),this.insertUInt8(0,u+D.length),this}writeStringNT(D,u,F){return this.writeString(D,u,F),this.writeUInt8(0,typeof u==="number"?u+D.length:this.writeOffset),this}readBuffer(D){if(typeof D!=="undefined")f.checkLengthValue(D);let u=typeof D==="number"?D:this.length,F=Math.min(this.length,this._readOffset+u),$=this._buff.slice(this._readOffset,F);return this._readOffset=F,$}insertBuffer(D,u){return f.checkOffsetValue(u),this._handleBuffer(D,!0,u)}writeBuffer(D,u){return this._handleBuffer(D,!1,u)}readBufferNT(){let D=this.length;for(let F=this._readOffset;F<this.length;F++)if(this._buff[F]===0){D=F;break}let u=this._buff.slice(this._readOffset,D);return this._readOffset=D+1,u}insertBufferNT(D,u){return f.checkOffsetValue(u),this.insertBuffer(D,u),this.insertUInt8(0,u+D.length),this}writeBufferNT(D,u){if(typeof u!=="undefined")f.checkOffsetValue(u);return this.writeBuffer(D,u),this.writeUInt8(0,typeof u==="number"?u+D.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(D){f.checkOffsetValue(D),f.checkTargetOffset(D,this),this._readOffset=D}get writeOffset(){return this._writeOffset}set writeOffset(D){f.checkOffsetValue(D),f.checkTargetOffset(D,this),this._writeOffset=D}get encoding(){return this._encoding}set encoding(D){f.checkEncoding(D),this._encoding=D}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(D){let u=typeof D==="string"?D:this._encoding;return f.checkEncoding(u),this._buff.toString(u,0,this.length)}destroy(){return this.clear(),this}_handleString(D,u,F,$){let E=this._writeOffset,w=this._encoding;if(typeof F==="number")E=F;else if(typeof F==="string")f.checkEncoding(F),w=F;if(typeof $==="string")f.checkEncoding($),w=$;let C=Buffer.byteLength(D,w);if(u)this.ensureInsertable(C,E);else this._ensureWriteable(C,E);if(this._buff.write(D,E,C,w),u)this._writeOffset+=C;else if(typeof F==="number")this._writeOffset=Math.max(this._writeOffset,E+C);else this._writeOffset+=C;return this}_handleBuffer(D,u,F){let $=typeof F==="number"?F:this._writeOffset;if(u)this.ensureInsertable(D.length,$);else this._ensureWriteable(D.length,$);if(D.copy(this._buff,$),u)this._writeOffset+=D.length;else if(typeof F==="number")this._writeOffset=Math.max(this._writeOffset,$+D.length);else this._writeOffset+=D.length;return this}ensureReadable(D,u){let F=this._readOffset;if(typeof u!=="undefined")f.checkOffsetValue(u),F=u;if(F<0||F+D>this.length)throw new Error(f.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(D,u){if(f.checkOffsetValue(u),this._ensureCapacity(this.length+D),u<this.length)this._buff.copy(this._buff,u+D,u,this._buff.length);if(u+D>this.length)this.length=u+D;else this.length+=D}_ensureWriteable(D,u){let F=typeof u==="number"?u:this._writeOffset;if(this._ensureCapacity(F+D),F+D>this.length)this.length=F+D}_ensureCapacity(D){let u=this._buff.length;if(D>u){let F=this._buff,$=u*3/2+1;if($<D)$=D;this._buff=Buffer.allocUnsafe($),F.copy(this._buff,0,0,u)}}_readNumberValue(D,u,F){this.ensureReadable(u,F);let $=D.call(this._buff,typeof F==="number"?F:this._readOffset);if(typeof F==="undefined")this._readOffset+=u;return $}_insertNumberValue(D,u,F,$){return f.checkOffsetValue($),this.ensureInsertable(u,$),D.call(this._buff,F,$),this._writeOffset+=u,this}_writeNumberValue(D,u,F,$){if(typeof $==="number"){if($<0)throw new Error(f.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);f.checkOffsetValue($)}let E=typeof $==="number"?$:this._writeOffset;if(this._ensureWriteable(u,E),D.call(this._buff,F,E),typeof $==="number")this._writeOffset=Math.max(this._writeOffset,E+u);else this._writeOffset+=u;return this}}g9.SmartBuffer=Q1});var A1=b((n9)=>{Object.defineProperty(n9,"__esModule",{value:!0});n9.SOCKS5_NO_ACCEPTABLE_AUTH=n9.SOCKS5_CUSTOM_AUTH_END=n9.SOCKS5_CUSTOM_AUTH_START=n9.SOCKS_INCOMING_PACKET_SIZES=n9.SocksClientState=n9.Socks5Response=n9.Socks5HostType=n9.Socks5Auth=n9.Socks4Response=n9.SocksCommand=n9.ERRORS=n9.DEFAULT_TIMEOUT=void 0;var oJ=30000;n9.DEFAULT_TIMEOUT=oJ;var eJ={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};n9.ERRORS=eJ;var DZ={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:(D)=>D+7,Socks4Response:8};n9.SOCKS_INCOMING_PACKET_SIZES=DZ;var _9;(function(D){D[D.connect=1]="connect",D[D.bind=2]="bind",D[D.associate=3]="associate"})(_9||(n9.SocksCommand=_9={}));var P9;(function(D){D[D.Granted=90]="Granted",D[D.Failed=91]="Failed",D[D.Rejected=92]="Rejected",D[D.RejectedIdent=93]="RejectedIdent"})(P9||(n9.Socks4Response=P9={}));var m9;(function(D){D[D.NoAuth=0]="NoAuth",D[D.GSSApi=1]="GSSApi",D[D.UserPass=2]="UserPass"})(m9||(n9.Socks5Auth=m9={}));var uZ=128;n9.SOCKS5_CUSTOM_AUTH_START=uZ;var FZ=254;n9.SOCKS5_CUSTOM_AUTH_END=FZ;var CZ=255;n9.SOCKS5_NO_ACCEPTABLE_AUTH=CZ;var v9;(function(D){D[D.Granted=0]="Granted",D[D.Failure=1]="Failure",D[D.NotAllowed=2]="NotAllowed",D[D.NetworkUnreachable=3]="NetworkUnreachable",D[D.HostUnreachable=4]="HostUnreachable",D[D.ConnectionRefused=5]="ConnectionRefused",D[D.TTLExpired=6]="TTLExpired",D[D.CommandNotSupported=7]="CommandNotSupported",D[D.AddressNotSupported=8]="AddressNotSupported"})(v9||(n9.Socks5Response=v9={}));var c9;(function(D){D[D.IPv4=1]="IPv4",D[D.Hostname=3]="Hostname",D[D.IPv6=4]="IPv6"})(c9||(n9.Socks5HostType=c9={}));var f9;(function(D){D[D.Created=0]="Created",D[D.Connecting=1]="Connecting",D[D.Connected=2]="Connected",D[D.SentInitialHandshake=3]="SentInitialHandshake",D[D.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",D[D.SentAuthentication=5]="SentAuthentication",D[D.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",D[D.SentFinalHandshake=7]="SentFinalHandshake",D[D.ReceivedFinalResponse=8]="ReceivedFinalResponse",D[D.BoundWaitingForConnection=9]="BoundWaitingForConnection",D[D.Established=10]="Established",D[D.Disconnected=11]="Disconnected",D[D.Error=99]="Error"})(f9||(n9.SocksClientState=f9={}))});var z1=b((l9)=>{Object.defineProperty(l9,"__esModule",{value:!0});l9.shuffleArray=l9.SocksClientError=void 0;class d9 extends Error{constructor(D,u){super(D);this.options=u}}l9.SocksClientError=d9;function QZ(D){for(let u=D.length-1;u>0;u--){let F=Math.floor(Math.random()*(u+1));[D[u],D[F]]=[D[F],D[u]]}}l9.shuffleArray=QZ});var G1=b((i9)=>{Object.defineProperty(i9,"__esModule",{value:!0});i9.isCorrect=i9.isInSubnet=void 0;function zZ(D){if(this.subnetMask<D.subnetMask)return!1;if(this.mask(D.subnetMask)===D.mask())return!0;return!1}i9.isInSubnet=zZ;function GZ(D){return function(){if(this.addressMinusSuffix!==this.correctForm())return!1;if(this.subnetMask===D&&!this.parsedSubnet)return!0;return this.parsedSubnet===String(this.subnetMask)}}i9.isCorrect=GZ});var q1=b((s9)=>{Object.defineProperty(s9,"__esModule",{value:!0});s9.RE_SUBNET_STRING=s9.RE_ADDRESS=s9.GROUPS=s9.BITS=void 0;s9.BITS=32;s9.GROUPS=4;s9.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;s9.RE_SUBNET_STRING=/\/\d{1,2}$/});var S8=b((e9)=>{Object.defineProperty(e9,"__esModule",{value:!0});e9.AddressError=void 0;class o9 extends Error{constructor(D,u){super(D);if(this.name="AddressError",u!==null)this.parseMessage=u}}e9.AddressError=o9});var H1=b((h8,u4)=>{(function(){var D,u=244837814094590,F=(u&16777215)==15715070;function $(B,Y,J){if(B!=null)if(typeof B=="number")this.fromNumber(B,Y,J);else if(Y==null&&typeof B!="string")this.fromString(B,256);else this.fromString(B,Y)}function E(){return new $(null)}function w(B,Y,J,K,Q,G){while(--G>=0){var I=Y*this[B++]+J[K]+Q;Q=Math.floor(I/67108864),J[K++]=I&67108863}return Q}function C(B,Y,J,K,Q,G){var I=Y&32767,S=Y>>15;while(--G>=0){var o=this[B]&32767,QD=this[B++]>>15,lD=S*o+QD*I;o=I*o+((lD&32767)<<15)+J[K]+(Q&1073741823),Q=(o>>>30)+(lD>>>15)+S*QD+(Q>>>30),J[K++]=o&1073741823}return Q}function Z(B,Y,J,K,Q,G){var I=Y&16383,S=Y>>14;while(--G>=0){var o=this[B]&16383,QD=this[B++]>>14,lD=S*o+QD*I;o=I*o+((lD&16383)<<14)+J[K]+Q,Q=(o>>28)+(lD>>14)+S*QD,J[K++]=o&268435455}return Q}var M=typeof navigator!=="undefined";if(M&&F&&navigator.appName=="Microsoft Internet Explorer")$.prototype.am=C,D=30;else if(M&&F&&navigator.appName!="Netscape")$.prototype.am=w,D=26;else $.prototype.am=Z,D=28;$.prototype.DB=D,$.prototype.DM=(1<<D)-1,$.prototype.DV=1<<D;var W=52;$.prototype.FV=Math.pow(2,W),$.prototype.F1=W-D,$.prototype.F2=2*D-W;var X="0123456789abcdefghijklmnopqrstuvwxyz",q=new Array,L,U;L="0".charCodeAt(0);for(U=0;U<=9;++U)q[L++]=U;L="a".charCodeAt(0);for(U=10;U<36;++U)q[L++]=U;L="A".charCodeAt(0);for(U=10;U<36;++U)q[L++]=U;function A(B){return X.charAt(B)}function P(B,Y){var J=q[B.charCodeAt(Y)];return J==null?-1:J}function n(B){for(var Y=this.t-1;Y>=0;--Y)B[Y]=this[Y];B.t=this.t,B.s=this.s}function d(B){if(this.t=1,this.s=B<0?-1:0,B>0)this[0]=B;else if(B<-1)this[0]=B+this.DV;else this.t=0}function uD(B){var Y=E();return Y.fromInt(B),Y}function FD(B,Y){var J;if(Y==16)J=4;else if(Y==8)J=3;else if(Y==256)J=8;else if(Y==2)J=1;else if(Y==32)J=5;else if(Y==4)J=2;else{this.fromRadix(B,Y);return}this.t=0,this.s=0;var K=B.length,Q=!1,G=0;while(--K>=0){var I=J==8?B[K]&255:P(B,K);if(I<0){if(B.charAt(K)=="-")Q=!0;continue}if(Q=!1,G==0)this[this.t++]=I;else if(G+J>this.DB)this[this.t-1]|=(I&(1<<this.DB-G)-1)<<G,this[this.t++]=I>>this.DB-G;else this[this.t-1]|=I<<G;if(G+=J,G>=this.DB)G-=this.DB}if(J==8&&(B[0]&128)!=0){if(this.s=-1,G>0)this[this.t-1]|=(1<<this.DB-G)-1<<G}if(this.clamp(),Q)$.ZERO.subTo(this,this)}function xD(){var B=this.s&this.DM;while(this.t>0&&this[this.t-1]==B)--this.t}function dD(B){if(this.s<0)return"-"+this.negate().toString(B);var Y;if(B==16)Y=4;else if(B==8)Y=3;else if(B==2)Y=1;else if(B==32)Y=5;else if(B==4)Y=2;else return this.toRadix(B);var J=(1<<Y)-1,K,Q=!1,G="",I=this.t,S=this.DB-I*this.DB%Y;if(I-- >0){if(S<this.DB&&(K=this[I]>>S)>0)Q=!0,G=A(K);while(I>=0){if(S<Y)K=(this[I]&(1<<S)-1)<<Y-S,K|=this[--I]>>(S+=this.DB-Y);else if(K=this[I]>>(S-=Y)&J,S<=0)S+=this.DB,--I;if(K>0)Q=!0;if(Q)G+=A(K)}}return Q?G:"0"}function SD(){var B=E();return $.ZERO.subTo(this,B),B}function VD(){return this.s<0?this.negate():this}function i(B){var Y=this.s-B.s;if(Y!=0)return Y;var J=this.t;if(Y=J-B.t,Y!=0)return this.s<0?-Y:Y;while(--J>=0)if((Y=this[J]-B[J])!=0)return Y;return 0}function m(B){var Y=1,J;if((J=B>>>16)!=0)B=J,Y+=16;if((J=B>>8)!=0)B=J,Y+=8;if((J=B>>4)!=0)B=J,Y+=4;if((J=B>>2)!=0)B=J,Y+=2;if((J=B>>1)!=0)B=J,Y+=1;return Y}function UD(){if(this.t<=0)return 0;return this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)}function LD(B,Y){var J;for(J=this.t-1;J>=0;--J)Y[J+B]=this[J];for(J=B-1;J>=0;--J)Y[J]=0;Y.t=this.t+B,Y.s=this.s}function R(B,Y){for(var J=B;J<this.t;++J)Y[J-B]=this[J];Y.t=Math.max(this.t-B,0),Y.s=this.s}function T(B,Y){var J=B%this.DB,K=this.DB-J,Q=(1<<K)-1,G=Math.floor(B/this.DB),I=this.s<<J&this.DM,S;for(S=this.t-1;S>=0;--S)Y[S+G+1]=this[S]>>K|I,I=(this[S]&Q)<<J;for(S=G-1;S>=0;--S)Y[S]=0;Y[G]=I,Y.t=this.t+G+1,Y.s=this.s,Y.clamp()}function O(B,Y){Y.s=this.s;var J=Math.floor(B/this.DB);if(J>=this.t){Y.t=0;return}var K=B%this.DB,Q=this.DB-K,G=(1<<K)-1;Y[0]=this[J]>>K;for(var I=J+1;I<this.t;++I)Y[I-J-1]|=(this[I]&G)<<Q,Y[I-J]=this[I]>>K;if(K>0)Y[this.t-J-1]|=(this.s&G)<<Q;Y.t=this.t-J,Y.clamp()}function h(B,Y){var J=0,K=0,Q=Math.min(B.t,this.t);while(J<Q)K+=this[J]-B[J],Y[J++]=K&this.DM,K>>=this.DB;if(B.t<this.t){K-=B.s;while(J<this.t)K+=this[J],Y[J++]=K&this.DM,K>>=this.DB;K+=this.s}else{K+=this.s;while(J<B.t)K-=B[J],Y[J++]=K&this.DM,K>>=this.DB;K-=B.s}if(Y.s=K<0?-1:0,K<-1)Y[J++]=this.DV+K;else if(K>0)Y[J++]=K;Y.t=J,Y.clamp()}function N(B,Y){var J=this.abs(),K=B.abs(),Q=J.t;Y.t=Q+K.t;while(--Q>=0)Y[Q]=0;for(Q=0;Q<K.t;++Q)Y[Q+J.t]=J.am(0,K[Q],Y,Q,0,J.t);if(Y.s=0,Y.clamp(),this.s!=B.s)$.ZERO.subTo(Y,Y)}function g(B){var Y=this.abs(),J=B.t=2*Y.t;while(--J>=0)B[J]=0;for(J=0;J<Y.t-1;++J){var K=Y.am(J,Y[J],B,2*J,0,1);if((B[J+Y.t]+=Y.am(J+1,2*Y[J],B,2*J+1,K,Y.t-J-1))>=Y.DV)B[J+Y.t]-=Y.DV,B[J+Y.t+1]=1}if(B.t>0)B[B.t-1]+=Y.am(J,Y[J],B,2*J,0,1);B.s=0,B.clamp()}function _(B,Y,J){var K=B.abs();if(K.t<=0)return;var Q=this.abs();if(Q.t<K.t){if(Y!=null)Y.fromInt(0);if(J!=null)this.copyTo(J);return}if(J==null)J=E();var G=E(),I=this.s,S=B.s,o=this.DB-m(K[K.t-1]);if(o>0)K.lShiftTo(o,G),Q.lShiftTo(o,J);else K.copyTo(G),Q.copyTo(J);var QD=G.t,lD=G[QD-1];if(lD==0)return;var fD=lD*(1<<this.F1)+(QD>1?G[QD-2]>>this.F2:0),Wu=this.FV/fD,N0=(1<<this.F1)/fD,eD=1<<this.F2,Du=J.t,I0=Du-QD,qu=Y==null?E():Y;if(G.dlShiftTo(I0,qu),J.compareTo(qu)>=0)J[J.t++]=1,J.subTo(qu,J);$.ONE.dlShiftTo(QD,qu),qu.subTo(G,G);while(G.t<QD)G[G.t++]=0;while(--I0>=0){var c8=J[--Du]==lD?this.DM:Math.floor(J[Du]*Wu+(J[Du-1]+eD)*N0);if((J[Du]+=G.am(0,c8,J,I0,0,QD))<c8){G.dlShiftTo(I0,qu),J.subTo(qu,J);while(J[Du]<--c8)J.subTo(qu,J)}}if(Y!=null){if(J.drShiftTo(QD,Y),I!=S)$.ZERO.subTo(Y,Y)}if(J.t=QD,J.clamp(),o>0)J.rShiftTo(o,J);if(I<0)$.ZERO.subTo(J,J)}function v(B){var Y=E();if(this.abs().divRemTo(B,null,Y),this.s<0&&Y.compareTo($.ZERO)>0)B.subTo(Y,Y);return Y}function l(B){this.m=B}function a(B){if(B.s<0||B.compareTo(this.m)>=0)return B.mod(this.m);else return B}function JD(B){return B}function TD(B){B.divRemTo(this.m,null,B)}function Eu(B,Y,J){B.multiplyTo(Y,J),this.reduce(J)}function sD(B,Y){B.squareTo(Y),this.reduce(Y)}l.prototype.convert=a,l.prototype.revert=JD,l.prototype.reduce=TD,l.prototype.mulTo=Eu,l.prototype.sqrTo=sD;function Xu(){if(this.t<1)return 0;var B=this[0];if((B&1)==0)return 0;var Y=B&3;return Y=Y*(2-(B&15)*Y)&15,Y=Y*(2-(B&255)*Y)&255,Y=Y*(2-((B&65535)*Y&65535))&65535,Y=Y*(2-B*Y%this.DV)%this.DV,Y>0?this.DV-Y:-Y}function XD(B){this.m=B,this.mp=B.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<B.DB-15)-1,this.mt2=2*B.t}function KD(B){var Y=E();if(B.abs().dlShiftTo(this.m.t,Y),Y.divRemTo(this.m,null,Y),B.s<0&&Y.compareTo($.ZERO)>0)this.m.subTo(Y,Y);return Y}function bD(B){var Y=E();return B.copyTo(Y),this.reduce(Y),Y}function aD(B){while(B.t<=this.mt2)B[B.t++]=0;for(var Y=0;Y<this.m.t;++Y){var J=B[Y]&32767,K=J*this.mpl+((J*this.mph+(B[Y]>>15)*this.mpl&this.um)<<15)&B.DM;J=Y+this.m.t,B[J]+=this.m.am(0,K,B,Y,0,this.m.t);while(B[J]>=B.DV)B[J]-=B.DV,B[++J]++}if(B.clamp(),B.drShiftTo(this.m.t,B),B.compareTo(this.m)>=0)B.subTo(this.m,B)}function wu(B,Y){B.squareTo(Y),this.reduce(Y)}function gu(B,Y,J){B.multiplyTo(Y,J),this.reduce(J)}XD.prototype.convert=KD,XD.prototype.revert=bD,XD.prototype.reduce=aD,XD.prototype.mulTo=gu,XD.prototype.sqrTo=wu;function bu(){return(this.t>0?this[0]&1:this.s)==0}function ou(B,Y){if(B>4294967295||B<1)return $.ONE;var J=E(),K=E(),Q=Y.convert(this),G=m(B)-1;Q.copyTo(J);while(--G>=0)if(Y.sqrTo(J,K),(B&1<<G)>0)Y.mulTo(K,Q,J);else{var I=J;J=K,K=I}return Y.revert(J)}function eu(B,Y){var J;if(B<256||Y.isEven())J=new l(Y);else J=new XD(Y);return this.exp(B,J)}$.prototype.copyTo=n,$.prototype.fromInt=d,$.prototype.fromString=FD,$.prototype.clamp=xD,$.prototype.dlShiftTo=LD,$.prototype.drShiftTo=R,$.prototype.lShiftTo=T,$.prototype.rShiftTo=O,$.prototype.subTo=h,$.prototype.multiplyTo=N,$.prototype.squareTo=g,$.prototype.divRemTo=_,$.prototype.invDigit=Xu,$.prototype.isEven=bu,$.prototype.exp=ou,$.prototype.toString=dD,$.prototype.negate=SD,$.prototype.abs=VD,$.prototype.compareTo=i,$.prototype.bitLength=UD,$.prototype.mod=v,$.prototype.modPowInt=eu,$.ZERO=uD(0),$.ONE=uD(1);function D0(){var B=E();return this.copyTo(B),B}function u0(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function k1(){return this.t==0?this.s:this[0]<<24>>24}function b4(){return this.t==0?this.s:this[0]<<16>>16}function _4(B){return Math.floor(Math.LN2*this.DB/Math.log(B))}function P4(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function m4(B){if(B==null)B=10;if(this.signum()==0||B<2||B>36)return"0";var Y=this.chunkSize(B),J=Math.pow(B,Y),K=uD(J),Q=E(),G=E(),I="";this.divRemTo(K,Q,G);while(Q.signum()>0)I=(J+G.intValue()).toString(B).substr(1)+I,Q.divRemTo(K,Q,G);return G.intValue().toString(B)+I}function v4(B,Y){if(this.fromInt(0),Y==null)Y=10;var J=this.chunkSize(Y),K=Math.pow(Y,J),Q=!1,G=0,I=0;for(var S=0;S<B.length;++S){var o=P(B,S);if(o<0){if(B.charAt(S)=="-"&&this.signum()==0)Q=!0;continue}if(I=Y*I+o,++G>=J)this.dMultiply(K),this.dAddOffset(I,0),G=0,I=0}if(G>0)this.dMultiply(Math.pow(Y,G)),this.dAddOffset(I,0);if(Q)$.ZERO.subTo(this,this)}function c4(B,Y,J){if(typeof Y=="number")if(B<2)this.fromInt(1);else{if(this.fromNumber(B,J),!this.testBit(B-1))this.bitwiseTo($.ONE.shiftLeft(B-1),_8,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(Y))if(this.dAddOffset(2,0),this.bitLength()>B)this.subTo($.ONE.shiftLeft(B-1),this)}else{var K=new Array,Q=B&7;if(K.length=(B>>3)+1,Y.nextBytes(K),Q>0)K[0]&=(1<<Q)-1;else K[0]=0;this.fromString(K,256)}}function f4(){var B=this.t,Y=new Array;Y[0]=this.s;var J=this.DB-B*this.DB%8,K,Q=0;if(B-- >0){if(J<this.DB&&(K=this[B]>>J)!=(this.s&this.DM)>>J)Y[Q++]=K|this.s<<this.DB-J;while(B>=0){if(J<8)K=(this[B]&(1<<J)-1)<<8-J,K|=this[--B]>>(J+=this.DB-8);else if(K=this[B]>>(J-=8)&255,J<=0)J+=this.DB,--B;if((K&128)!=0)K|=-256;if(Q==0&&(this.s&128)!=(K&128))++Q;if(Q>0||K!=this.s)Y[Q++]=K}}return Y}function n4(B){return this.compareTo(B)==0}function r4(B){return this.compareTo(B)<0?this:B}function d4(B){return this.compareTo(B)>0?this:B}function l4(B,Y,J){var K,Q,G=Math.min(B.t,this.t);for(K=0;K<G;++K)J[K]=Y(this[K],B[K]);if(B.t<this.t){Q=B.s&this.DM;for(K=G;K<this.t;++K)J[K]=Y(this[K],Q);J.t=this.t}else{Q=this.s&this.DM;for(K=G;K<B.t;++K)J[K]=Y(Q,B[K]);J.t=B.t}J.s=Y(this.s,B.s),J.clamp()}function p4(B,Y){return B&Y}function i4(B){var Y=E();return this.bitwiseTo(B,p4,Y),Y}function _8(B,Y){return B|Y}function t4(B){var Y=E();return this.bitwiseTo(B,_8,Y),Y}function g1(B,Y){return B^Y}function s4(B){var Y=E();return this.bitwiseTo(B,g1,Y),Y}function b1(B,Y){return B&~Y}function a4(B){var Y=E();return this.bitwiseTo(B,b1,Y),Y}function o4(){var B=E();for(var Y=0;Y<this.t;++Y)B[Y]=this.DM&~this[Y];return B.t=this.t,B.s=~this.s,B}function e4(B){var Y=E();if(B<0)this.rShiftTo(-B,Y);else this.lShiftTo(B,Y);return Y}function D$(B){var Y=E();if(B<0)this.lShiftTo(-B,Y);else this.rShiftTo(B,Y);return Y}function u$(B){if(B==0)return-1;var Y=0;if((B&65535)==0)B>>=16,Y+=16;if((B&255)==0)B>>=8,Y+=8;if((B&15)==0)B>>=4,Y+=4;if((B&3)==0)B>>=2,Y+=2;if((B&1)==0)++Y;return Y}function F$(){for(var B=0;B<this.t;++B)if(this[B]!=0)return B*this.DB+u$(this[B]);if(this.s<0)return this.t*this.DB;return-1}function C$(B){var Y=0;while(B!=0)B&=B-1,++Y;return Y}function $$(){var B=0,Y=this.s&this.DM;for(var J=0;J<this.t;++J)B+=C$(this[J]^Y);return B}function E$(B){var Y=Math.floor(B/this.DB);if(Y>=this.t)return this.s!=0;return(this[Y]&1<<B%this.DB)!=0}function w$(B,Y){var J=$.ONE.shiftLeft(B);return this.bitwiseTo(J,Y,J),J}function B$(B){return this.changeBit(B,_8)}function Y$(B){return this.changeBit(B,b1)}function J$(B){return this.changeBit(B,g1)}function Z$(B,Y){var J=0,K=0,Q=Math.min(B.t,this.t);while(J<Q)K+=this[J]+B[J],Y[J++]=K&this.DM,K>>=this.DB;if(B.t<this.t){K+=B.s;while(J<this.t)K+=this[J],Y[J++]=K&this.DM,K>>=this.DB;K+=this.s}else{K+=this.s;while(J<B.t)K+=B[J],Y[J++]=K&this.DM,K>>=this.DB;K+=B.s}if(Y.s=K<0?-1:0,K>0)Y[J++]=K;else if(K<-1)Y[J++]=this.DV+K;Y.t=J,Y.clamp()}function K$(B){var Y=E();return this.addTo(B,Y),Y}function M$(B){var Y=E();return this.subTo(B,Y),Y}function X$(B){var Y=E();return this.multiplyTo(B,Y),Y}function W$(){var B=E();return this.squareTo(B),B}function Q$(B){var Y=E();return this.divRemTo(B,Y,null),Y}function A$(B){var Y=E();return this.divRemTo(B,null,Y),Y}function z$(B){var Y=E(),J=E();return this.divRemTo(B,Y,J),new Array(Y,J)}function G$(B){this[this.t]=this.am(0,B-1,this,0,0,this.t),++this.t,this.clamp()}function q$(B,Y){if(B==0)return;while(this.t<=Y)this[this.t++]=0;this[Y]+=B;while(this[Y]>=this.DV){if(this[Y]-=this.DV,++Y>=this.t)this[this.t++]=0;++this[Y]}}function F0(){}function _1(B){return B}function H$(B,Y,J){B.multiplyTo(Y,J)}function U$(B,Y){B.squareTo(Y)}F0.prototype.convert=_1,F0.prototype.revert=_1,F0.prototype.mulTo=H$,F0.prototype.sqrTo=U$;function O$(B){return this.exp(B,new F0)}function V$(B,Y,J){var K=Math.min(this.t+B.t,Y);J.s=0,J.t=K;while(K>0)J[--K]=0;var Q;for(Q=J.t-this.t;K<Q;++K)J[K+this.t]=this.am(0,B[K],J,K,0,this.t);for(Q=Math.min(B.t,Y);K<Q;++K)this.am(0,B[K],J,K,0,Y-K);J.clamp()}function L$(B,Y,J){--Y;var K=J.t=this.t+B.t-Y;J.s=0;while(--K>=0)J[K]=0;for(K=Math.max(Y-this.t,0);K<B.t;++K)J[this.t+K-Y]=this.am(Y-K,B[K],J,0,0,this.t+K-Y);J.clamp(),J.drShiftTo(1,J)}function Nu(B){this.r2=E(),this.q3=E(),$.ONE.dlShiftTo(2*B.t,this.r2),this.mu=this.r2.divide(B),this.m=B}function T$(B){if(B.s<0||B.t>2*this.m.t)return B.mod(this.m);else if(B.compareTo(this.m)<0)return B;else{var Y=E();return B.copyTo(Y),this.reduce(Y),Y}}function N$(B){return B}function I$(B){if(B.drShiftTo(this.m.t-1,this.r2),B.t>this.m.t+1)B.t=this.m.t+1,B.clamp();this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(B.compareTo(this.r2)<0)B.dAddOffset(1,this.m.t+1);B.subTo(this.r2,B);while(B.compareTo(this.m)>=0)B.subTo(this.m,B)}function x$(B,Y){B.squareTo(Y),this.reduce(Y)}function S$(B,Y,J){B.multiplyTo(Y,J),this.reduce(J)}Nu.prototype.convert=T$,Nu.prototype.revert=N$,Nu.prototype.reduce=I$,Nu.prototype.mulTo=S$,Nu.prototype.sqrTo=x$;function h$(B,Y){var J=B.bitLength(),K,Q=uD(1),G;if(J<=0)return Q;else if(J<18)K=1;else if(J<48)K=3;else if(J<144)K=4;else if(J<768)K=5;else K=6;if(J<8)G=new l(Y);else if(Y.isEven())G=new Nu(Y);else G=new XD(Y);var I=new Array,S=3,o=K-1,QD=(1<<K)-1;if(I[1]=G.convert(this),K>1){var lD=E();G.sqrTo(I[1],lD);while(S<=QD)I[S]=E(),G.mulTo(lD,I[S-2],I[S]),S+=2}var fD=B.t-1,Wu,N0=!0,eD=E(),Du;J=m(B[fD])-1;while(fD>=0){if(J>=o)Wu=B[fD]>>J-o&QD;else if(Wu=(B[fD]&(1<<J+1)-1)<<o-J,fD>0)Wu|=B[fD-1]>>this.DB+J-o;S=K;while((Wu&1)==0)Wu>>=1,--S;if((J-=S)<0)J+=this.DB,--fD;if(N0)I[Wu].copyTo(Q),N0=!1;else{while(S>1)G.sqrTo(Q,eD),G.sqrTo(eD,Q),S-=2;if(S>0)G.sqrTo(Q,eD);else Du=Q,Q=eD,eD=Du;G.mulTo(eD,I[Wu],Q)}while(fD>=0&&(B[fD]&1<<J)==0)if(G.sqrTo(Q,eD),Du=Q,Q=eD,eD=Du,--J<0)J=this.DB-1,--fD}return G.revert(Q)}function y$(B){var Y=this.s<0?this.negate():this.clone(),J=B.s<0?B.negate():B.clone();if(Y.compareTo(J)<0){var K=Y;Y=J,J=K}var Q=Y.getLowestSetBit(),G=J.getLowestSetBit();if(G<0)return Y;if(Q<G)G=Q;if(G>0)Y.rShiftTo(G,Y),J.rShiftTo(G,J);while(Y.signum()>0){if((Q=Y.getLowestSetBit())>0)Y.rShiftTo(Q,Y);if((Q=J.getLowestSetBit())>0)J.rShiftTo(Q,J);if(Y.compareTo(J)>=0)Y.subTo(J,Y),Y.rShiftTo(1,Y);else J.subTo(Y,J),J.rShiftTo(1,J)}if(G>0)J.lShiftTo(G,J);return J}function j$(B){if(B<=0)return 0;var Y=this.DV%B,J=this.s<0?B-1:0;if(this.t>0)if(Y==0)J=this[0]%B;else for(var K=this.t-1;K>=0;--K)J=(Y*J+this[K])%B;return J}function R$(B){var Y=B.isEven();if(this.isEven()&&Y||B.signum()==0)return $.ZERO;var J=B.clone(),K=this.clone(),Q=uD(1),G=uD(0),I=uD(0),S=uD(1);while(J.signum()!=0){while(J.isEven()){if(J.rShiftTo(1,J),Y){if(!Q.isEven()||!G.isEven())Q.addTo(this,Q),G.subTo(B,G);Q.rShiftTo(1,Q)}else if(!G.isEven())G.subTo(B,G);G.rShiftTo(1,G)}while(K.isEven()){if(K.rShiftTo(1,K),Y){if(!I.isEven()||!S.isEven())I.addTo(this,I),S.subTo(B,S);I.rShiftTo(1,I)}else if(!S.isEven())S.subTo(B,S);S.rShiftTo(1,S)}if(J.compareTo(K)>=0){if(J.subTo(K,J),Y)Q.subTo(I,Q);G.subTo(S,G)}else{if(K.subTo(J,K),Y)I.subTo(Q,I);S.subTo(G,S)}}if(K.compareTo($.ONE)!=0)return $.ZERO;if(S.compareTo(B)>=0)return S.subtract(B);if(S.signum()<0)S.addTo(B,S);else return S;if(S.signum()<0)return S.add(B);else return S}var hD=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],k$=67108864/hD[hD.length-1];function g$(B){var Y,J=this.abs();if(J.t==1&&J[0]<=hD[hD.length-1]){for(Y=0;Y<hD.length;++Y)if(J[0]==hD[Y])return!0;return!1}if(J.isEven())return!1;Y=1;while(Y<hD.length){var K=hD[Y],Q=Y+1;while(Q<hD.length&&K<k$)K*=hD[Q++];K=J.modInt(K);while(Y<Q)if(K%hD[Y++]==0)return!1}return J.millerRabin(B)}function b$(B){var Y=this.subtract($.ONE),J=Y.getLowestSetBit();if(J<=0)return!1;var K=Y.shiftRight(J);if(B=B+1>>1,B>hD.length)B=hD.length;var Q=E();for(var G=0;G<B;++G){Q.fromInt(hD[Math.floor(Math.random()*hD.length)]);var I=Q.modPow(K,this);if(I.compareTo($.ONE)!=0&&I.compareTo(Y)!=0){var S=1;while(S++<J&&I.compareTo(Y)!=0)if(I=I.modPowInt(2,this),I.compareTo($.ONE)==0)return!1;if(I.compareTo(Y)!=0)return!1}}return!0}$.prototype.chunkSize=_4,$.prototype.toRadix=m4,$.prototype.fromRadix=v4,$.prototype.fromNumber=c4,$.prototype.bitwiseTo=l4,$.prototype.changeBit=w$,$.prototype.addTo=Z$,$.prototype.dMultiply=G$,$.prototype.dAddOffset=q$,$.prototype.multiplyLowerTo=V$,$.prototype.multiplyUpperTo=L$,$.prototype.modInt=j$,$.prototype.millerRabin=b$,$.prototype.clone=D0,$.prototype.intValue=u0,$.prototype.byteValue=k1,$.prototype.shortValue=b4,$.prototype.signum=P4,$.prototype.toByteArray=f4,$.prototype.equals=n4,$.prototype.min=r4,$.prototype.max=d4,$.prototype.and=i4,$.prototype.or=t4,$.prototype.xor=s4,$.prototype.andNot=a4,$.prototype.not=o4,$.prototype.shiftLeft=e4,$.prototype.shiftRight=D$,$.prototype.getLowestSetBit=F$,$.prototype.bitCount=$$,$.prototype.testBit=E$,$.prototype.setBit=B$,$.prototype.clearBit=Y$,$.prototype.flipBit=J$,$.prototype.add=K$,$.prototype.subtract=M$,$.prototype.multiply=X$,$.prototype.divide=Q$,$.prototype.remainder=A$,$.prototype.divideAndRemainder=z$,$.prototype.modPow=h$,$.prototype.modInverse=R$,$.prototype.pow=O$,$.prototype.gcd=y$,$.prototype.isProbablePrime=g$,$.prototype.square=W$,$.prototype.Barrett=Nu;var T0,cD,WD;function _$(B){if(cD[WD++]^=B&255,cD[WD++]^=B>>8&255,cD[WD++]^=B>>16&255,cD[WD++]^=B>>24&255,WD>=v8)WD-=v8}function P1(){_$(new Date().getTime())}if(cD==null){cD=new Array,WD=0;var oD;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var m1=new Uint8Array(32);window.crypto.getRandomValues(m1);for(oD=0;oD<32;++oD)cD[WD++]=m1[oD]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var v1=window.crypto.random(32);for(oD=0;oD<v1.length;++oD)cD[WD++]=v1.charCodeAt(oD)&255}}while(WD<v8)oD=Math.floor(65536*Math.random()),cD[WD++]=oD>>>8,cD[WD++]=oD&255;WD=0,P1()}function P$(){if(T0==null){P1(),T0=f$(),T0.init(cD);for(WD=0;WD<cD.length;++WD)cD[WD]=0;WD=0}return T0.next()}function m$(B){var Y;for(Y=0;Y<B.length;++Y)B[Y]=P$()}function P8(){}P8.prototype.nextBytes=m$;function m8(){this.i=0,this.j=0,this.S=new Array}function v$(B){var Y,J,K;for(Y=0;Y<256;++Y)this.S[Y]=Y;J=0;for(Y=0;Y<256;++Y)J=J+this.S[Y]+B[Y%B.length]&255,K=this.S[Y],this.S[Y]=this.S[J],this.S[J]=K;this.i=0,this.j=0}function c$(){var B;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,B=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=B,this.S[B+this.S[this.i]&255]}m8.prototype.init=v$,m8.prototype.next=c$;function f$(){return new m8}var v8=256;if(typeof h8!=="undefined")h8=u4.exports={default:$,BigInteger:$,SecureRandom:P8};else this.jsbn={BigInteger:$,SecureRandom:P8}}).call(h8)});var V0=b((F4)=>{(function(){var D={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(C){return $(w(C),arguments)}function F(C,Z){return u.apply(null,[C].concat(Z||[]))}function $(C,Z){var M=1,W=C.length,X,q="",L,U,A,P,n,d,uD,FD;for(L=0;L<W;L++)if(typeof C[L]==="string")q+=C[L];else if(typeof C[L]==="object"){if(A=C[L],A.keys){X=Z[M];for(U=0;U<A.keys.length;U++){if(X==null)throw new Error(u('[sprintf] Cannot access property "%s" of undefined value "%s"',A.keys[U],A.keys[U-1]));X=X[A.keys[U]]}}else if(A.param_no)X=Z[A.param_no];else X=Z[M++];if(D.not_type.test(A.type)&&D.not_primitive.test(A.type)&&X instanceof Function)X=X();if(D.numeric_arg.test(A.type)&&(typeof X!=="number"&&isNaN(X)))throw new TypeError(u("[sprintf] expecting number but found %T",X));if(D.number.test(A.type))uD=X>=0;switch(A.type){case"b":X=parseInt(X,10).toString(2);break;case"c":X=String.fromCharCode(parseInt(X,10));break;case"d":case"i":X=parseInt(X,10);break;case"j":X=JSON.stringify(X,null,A.width?parseInt(A.width):0);break;case"e":X=A.precision?parseFloat(X).toExponential(A.precision):parseFloat(X).toExponential();break;case"f":X=A.precision?parseFloat(X).toFixed(A.precision):parseFloat(X);break;case"g":X=A.precision?String(Number(X.toPrecision(A.precision))):parseFloat(X);break;case"o":X=(parseInt(X,10)>>>0).toString(8);break;case"s":X=String(X),X=A.precision?X.substring(0,A.precision):X;break;case"t":X=String(!!X),X=A.precision?X.substring(0,A.precision):X;break;case"T":X=Object.prototype.toString.call(X).slice(8,-1).toLowerCase(),X=A.precision?X.substring(0,A.precision):X;break;case"u":X=parseInt(X,10)>>>0;break;case"v":X=X.valueOf(),X=A.precision?X.substring(0,A.precision):X;break;case"x":X=(parseInt(X,10)>>>0).toString(16);break;case"X":X=(parseInt(X,10)>>>0).toString(16).toUpperCase();break}if(D.json.test(A.type))q+=X;else{if(D.number.test(A.type)&&(!uD||A.sign))FD=uD?"+":"-",X=X.toString().replace(D.sign,"");else FD="";n=A.pad_char?A.pad_char==="0"?"0":A.pad_char.charAt(1):" ",d=A.width-(FD+X).length,P=A.width?d>0?n.repeat(d):"":"",q+=A.align?FD+X+P:n==="0"?FD+P+X:P+FD+X}}return q}var E=Object.create(null);function w(C){if(E[C])return E[C];var Z=C,M,W=[],X=0;while(Z){if((M=D.text.exec(Z))!==null)W.push(M[0]);else if((M=D.modulo.exec(Z))!==null)W.push("%");else if((M=D.placeholder.exec(Z))!==null){if(M[2]){X|=1;var q=[],L=M[2],U=[];if((U=D.key.exec(L))!==null){q.push(U[1]);while((L=L.substring(U[0].length))!=="")if((U=D.key_access.exec(L))!==null)q.push(U[1]);else if((U=D.index_access.exec(L))!==null)q.push(U[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key")}else throw new SyntaxError("[sprintf] failed to parse named argument key");M[2]=q}else X|=2;if(X===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");W.push({placeholder:M[0],param_no:M[1],keys:M[2],sign:M[3],pad_char:M[4],align:M[5],width:M[6],precision:M[7],type:M[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");Z=Z.substring(M[0].length)}return E[C]=W}if(typeof F4!=="undefined")F4.sprintf=u,F4.vsprintf=F;if(typeof window!=="undefined"){if(window.sprintf=u,window.vsprintf=F,typeof define==="function"&&define.amd)define(function(){return{sprintf:u,vsprintf:F}})}})()});var U1=b((Ku)=>{var VZ=Ku&&Ku.__createBinding||(Object.create?function(D,u,F,$){if($===void 0)$=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,$,E)}:function(D,u,F,$){if($===void 0)$=F;D[$]=u[F]}),LZ=Ku&&Ku.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),E4=Ku&&Ku.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))VZ(u,D,F)}return LZ(u,D),u};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Address4=void 0;var C4=E4(G1()),$u=E4(q1()),$4=S8(),L0=H1(),iu=V0();class tD{constructor(D){this.groups=$u.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=C4.isCorrect($u.BITS),this.isInSubnet=C4.isInSubnet,this.address=D;let u=$u.RE_SUBNET_STRING.exec(D);if(u){if(this.parsedSubnet=u[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>$u.BITS)throw new $4.AddressError("Invalid subnet mask.");D=D.replace($u.RE_SUBNET_STRING,"")}this.addressMinusSuffix=D,this.parsedAddress=this.parse(D)}static isValid(D){try{return new tD(D),!0}catch(u){return!1}}parse(D){let u=D.split(".");if(!D.match($u.RE_ADDRESS))throw new $4.AddressError("Invalid IPv4 address.");return u}correctForm(){return this.parsedAddress.map((D)=>parseInt(D,10)).join(".")}static fromHex(D){let u=D.replace(/:/g,"").padStart(8,"0"),F=[],$;for($=0;$<8;$+=2){let E=u.slice($,$+2);F.push(parseInt(E,16))}return new tD(F.join("."))}static fromInteger(D){return tD.fromHex(D.toString(16))}static fromArpa(D){let F=D.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join(".");return new tD(F)}toHex(){return this.parsedAddress.map((D)=>iu.sprintf("%02x",parseInt(D,10))).join(":")}toArray(){return this.parsedAddress.map((D)=>parseInt(D,10))}toGroup6(){let D=[],u;for(u=0;u<$u.GROUPS;u+=2){let F=iu.sprintf("%02x%02x",parseInt(this.parsedAddress[u],10),parseInt(this.parsedAddress[u+1],10));D.push(iu.sprintf("%x",parseInt(F,16)))}return D.join(":")}bigInteger(){return new L0.BigInteger(this.parsedAddress.map((D)=>iu.sprintf("%02x",parseInt(D,10))).join(""),16)}_startAddress(){return new L0.BigInteger(this.mask()+"0".repeat($u.BITS-this.subnetMask),2)}startAddress(){return tD.fromBigInteger(this._startAddress())}startAddressExclusive(){let D=new L0.BigInteger("1");return tD.fromBigInteger(this._startAddress().add(D))}_endAddress(){return new L0.BigInteger(this.mask()+"1".repeat($u.BITS-this.subnetMask),2)}endAddress(){return tD.fromBigInteger(this._endAddress())}endAddressExclusive(){let D=new L0.BigInteger("1");return tD.fromBigInteger(this._endAddress().subtract(D))}static fromBigInteger(D){return tD.fromInteger(parseInt(D.toString(),10))}mask(D){if(D===void 0)D=this.subnetMask;return this.getBitsBase2(0,D)}getBitsBase2(D,u){return this.binaryZeroPad().slice(D,u)}reverseForm(D){if(!D)D={};let u=this.correctForm().split(".").reverse().join(".");if(D.omitSuffix)return u;return iu.sprintf("%s.in-addr.arpa.",u)}isMulticast(){return this.isInSubnet(new tD("224.0.0.0/4"))}binaryZeroPad(){return this.bigInteger().toString(2).padStart($u.BITS,"0")}groupForV6(){let D=this.parsedAddress;return this.address.replace($u.RE_ADDRESS,iu.sprintf('<span class="hover-group group-v4 group-6">%s</span>.<span class="hover-group group-v4 group-7">%s</span>',D.slice(0,2).join("."),D.slice(2,4).join(".")))}}Ku.Address4=tD});var O1=b((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.RE_URL_WITH_PORT=w4.RE_URL=w4.RE_ZONE_STRING=w4.RE_SUBNET_STRING=w4.RE_BAD_ADDRESS=w4.RE_BAD_CHARACTERS=w4.TYPES=w4.SCOPES=w4.GROUPS=w4.BITS=void 0;w4.BITS=128;w4.GROUPS=8;w4.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"};w4.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"};w4.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi;w4.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;w4.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/;w4.RE_ZONE_STRING=/%.*$/;w4.RE_URL=new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/);w4.RE_URL_WITH_PORT=new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/)});var V1=b((K4)=>{Object.defineProperty(K4,"__esModule",{value:!0});K4.simpleGroup=K4.spanLeadingZeroes=K4.spanAll=K4.spanAllZeroes=void 0;var Y4=V0();function J4(D){return D.replace(/(0+)/g,'<span class="zero">$1</span>')}K4.spanAllZeroes=J4;function kZ(D,u=0){return D.split("").map(($,E)=>Y4.sprintf('<span class="digit value-%s position-%d">%s</span>',$,E+u,J4($))).join("")}K4.spanAll=kZ;function Z4(D){return D.replace(/^(0+)/,'<span class="zero">$1</span>')}function gZ(D){return D.split(":").map((F)=>Z4(F)).join(":")}K4.spanLeadingZeroes=gZ;function bZ(D,u=0){return D.split(":").map(($,E)=>{if(/group-v4/.test($))return $;return Y4.sprintf('<span class="hover-group group-%d">%s</span>',E+u,Z4($))})}K4.simpleGroup=bZ});var X4=b((GD)=>{var vZ=GD&&GD.__createBinding||(Object.create?function(D,u,F,$){if($===void 0)$=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,$,E)}:function(D,u,F,$){if($===void 0)$=F;D[$]=u[F]}),cZ=GD&&GD.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),fZ=GD&&GD.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))vZ(u,D,F)}return cZ(u,D),u};Object.defineProperty(GD,"__esModule",{value:!0});GD.possibleElisions=GD.simpleRegularExpression=GD.ADDRESS_BOUNDARY=GD.padGroup=GD.groupPossibilities=void 0;var nZ=fZ(O1()),tu=V0();function j8(D){return tu.sprintf("(%s)",D.join("|"))}GD.groupPossibilities=j8;function y8(D){if(D.length<4)return tu.sprintf("0{0,%d}%s",4-D.length,D);return D}GD.padGroup=y8;GD.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function rZ(D){let u=[];D.forEach(($,E)=>{if(parseInt($,16)===0)u.push(E)});let F=u.map(($)=>D.map((E,w)=>{if(w===$){let C=w===0||w===nZ.GROUPS-1?":":"";return j8([y8(E),C])}return y8(E)}).join(":"));return F.push(D.map(y8).join(":")),j8(F)}GD.simpleRegularExpression=rZ;function dZ(D,u,F){let $=u?"":":",E=F?"":":",w=[];if(!u&&!F)w.push("::");if(u&&F)w.push("");if(F&&!u||!F&&u)w.push(":");w.push(tu.sprintf("%s(:0{1,4}){1,%d}",$,D-1)),w.push(tu.sprintf("(0{1,4}:){1,%d}%s",D-1,E)),w.push(tu.sprintf("(0{1,4}:){%d}0{1,4}",D-1));for(let C=1;C<D-1;C++)for(let Z=1;Z<D-C;Z++)w.push(tu.sprintf("(0{1,4}:){%d}:(0{1,4}:){%d}0{1,4}",Z,D-Z-C-1));return j8(w)}GD.possibleElisions=dZ});var z4=b((Mu)=>{var lZ=Mu&&Mu.__createBinding||(Object.create?function(D,u,F,$){if($===void 0)$=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,$,E)}:function(D,u,F,$){if($===void 0)$=F;D[$]=u[F]}),pZ=Mu&&Mu.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),k8=Mu&&Mu.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))lZ(u,D,F)}return pZ(u,D),u};Object.defineProperty(Mu,"__esModule",{value:!0});Mu.Address6=void 0;var W4=k8(G1()),L1=k8(q1()),s=k8(O1()),T1=k8(V1()),ju=U1(),Ru=X4(),Gu=S8(),RD=H1(),kD=V0();function R8(D){if(!D)throw new Error("Assertion failed.")}function iZ(D){let u=/(\d+)(\d{3})/;while(u.test(D))D=D.replace(u,"$1,$2");return D}function tZ(D){return D=D.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2'),D=D.replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2'),D}function sZ(D,u){let F=[],$=[],E;for(E=0;E<D.length;E++)if(E<u[0])F.push(D[E]);else if(E>u[1])$.push(D[E]);return F.concat(["compact"]).concat($)}function Q4(D){return kD.sprintf("%04x",parseInt(D,16))}function A4(D){return D&255}class qD{constructor(D,u){if(this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=W4.isInSubnet,this.isCorrect=W4.isCorrect(s.BITS),u===void 0)this.groups=s.GROUPS;else this.groups=u;this.address=D;let F=s.RE_SUBNET_STRING.exec(D);if(F){if(this.parsedSubnet=F[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>s.BITS)throw new Gu.AddressError("Invalid subnet mask.");D=D.replace(s.RE_SUBNET_STRING,"")}else if(/\//.test(D))throw new Gu.AddressError("Invalid subnet mask.");let $=s.RE_ZONE_STRING.exec(D);if($)this.zone=$[0],D=D.replace(s.RE_ZONE_STRING,"");this.addressMinusSuffix=D,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(D){try{return new qD(D),!0}catch(u){return!1}}static fromBigInteger(D){let u=D.toString(16).padStart(32,"0"),F=[],$;for($=0;$<s.GROUPS;$++)F.push(u.slice($*4,($+1)*4));return new qD(F.join(":"))}static fromURL(D){let u,F=null,$;if(D.indexOf("[")!==-1&&D.indexOf("]:")!==-1){if($=s.RE_URL_WITH_PORT.exec(D),$===null)return{error:"failed to parse address with port",address:null,port:null};u=$[1],F=$[2]}else if(D.indexOf("/")!==-1){if(D=D.replace(/^[a-z0-9]+:\/\//,""),$=s.RE_URL.exec(D),$===null)return{error:"failed to parse address from URL",address:null,port:null};u=$[1]}else u=D;if(F){if(F=parseInt(F,10),F<0||F>65536)F=null}else F=null;return{address:new qD(u),port:F}}static fromAddress4(D){let u=new ju.Address4(D),F=s.BITS-(L1.BITS-u.subnetMask);return new qD(`::ffff:${u.correctForm()}/${F}`)}static fromArpa(D){let u=D.replace(/(\.ip6\.arpa)?\.$/,""),F=7;if(u.length!==63)throw new Gu.AddressError("Invalid 'ip6.arpa' form.");let $=u.split(".").reverse();for(let E=F;E>0;E--){let w=E*4;$.splice(w,0,":")}return u=$.join(""),new qD(u)}microsoftTranscription(){return kD.sprintf("%s.ipv6-literal.net",this.correctForm().replace(/:/g,"-"))}mask(D=this.subnetMask){return this.getBitsBase2(0,D)}possibleSubnets(D=128){let u=s.BITS-this.subnetMask,F=Math.abs(D-s.BITS),$=u-F;if($<0)return"0";return iZ(new RD.BigInteger("2",10).pow($).toString(10))}_startAddress(){return new RD.BigInteger(this.mask()+"0".repeat(s.BITS-this.subnetMask),2)}startAddress(){return qD.fromBigInteger(this._startAddress())}startAddressExclusive(){let D=new RD.BigInteger("1");return qD.fromBigInteger(this._startAddress().add(D))}_endAddress(){return new RD.BigInteger(this.mask()+"1".repeat(s.BITS-this.subnetMask),2)}endAddress(){return qD.fromBigInteger(this._endAddress())}endAddressExclusive(){let D=new RD.BigInteger("1");return qD.fromBigInteger(this._endAddress().subtract(D))}getScope(){let D=s.SCOPES[this.getBits(12,16).intValue()];if(this.getType()==="Global unicast"&&D!=="Link local")D="Global";return D||"Unknown"}getType(){for(let D of Object.keys(s.TYPES))if(this.isInSubnet(new qD(D)))return s.TYPES[D];return"Global unicast"}getBits(D,u){return new RD.BigInteger(this.getBitsBase2(D,u),2)}getBitsBase2(D,u){return this.binaryZeroPad().slice(D,u)}getBitsBase16(D,u){let F=u-D;if(F%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(D,u).toString(16).padStart(F/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,s.BITS)}reverseForm(D){if(!D)D={};let u=Math.floor(this.subnetMask/4),F=this.canonicalForm().replace(/:/g,"").split("").slice(0,u).reverse().join(".");if(u>0){if(D.omitSuffix)return F;return kD.sprintf("%s.ip6.arpa.",F)}if(D.omitSuffix)return"";return"ip6.arpa."}correctForm(){let D,u=[],F=0,$=[];for(D=0;D<this.parsedAddress.length;D++){let C=parseInt(this.parsedAddress[D],16);if(C===0)F++;if(C!==0&&F>0){if(F>1)$.push([D-F,D-1]);F=0}}if(F>1)$.push([this.parsedAddress.length-F,this.parsedAddress.length-1]);let E=$.map((C)=>C[1]-C[0]+1);if($.length>0){let C=E.indexOf(Math.max(...E));u=sZ(this.parsedAddress,$[C])}else u=this.parsedAddress;for(D=0;D<u.length;D++)if(u[D]!=="compact")u[D]=parseInt(u[D],16).toString(16);let w=u.join(":");return w=w.replace(/^compact$/,"::"),w=w.replace(/^compact|compact$/,":"),w=w.replace(/compact/,""),w}binaryZeroPad(){return this.bigInteger().toString(2).padStart(s.BITS,"0")}parse4in6(D){let u=D.split(":"),$=u.slice(-1)[0].match(L1.RE_ADDRESS);if($){this.parsedAddress4=$[0],this.address4=new ju.Address4(this.parsedAddress4);for(let E=0;E<this.address4.groups;E++)if(/^0[0-9]+/.test(this.address4.parsedAddress[E]))throw new Gu.AddressError("IPv4 addresses can't have leading zeroes.",D.replace(L1.RE_ADDRESS,this.address4.parsedAddress.map(tZ).join(".")));this.v4=!0,u[u.length-1]=this.address4.toGroup6(),D=u.join(":")}return D}parse(D){D=this.parse4in6(D);let u=D.match(s.RE_BAD_CHARACTERS);if(u)throw new Gu.AddressError(kD.sprintf("Bad character%s detected in address: %s",u.length>1?"s":"",u.join("")),D.replace(s.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));let F=D.match(s.RE_BAD_ADDRESS);if(F)throw new Gu.AddressError(kD.sprintf("Address failed regex: %s",F.join("")),D.replace(s.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let $=[],E=D.split("::");if(E.length===2){let w=E[0].split(":"),C=E[1].split(":");if(w.length===1&&w[0]==="")w=[];if(C.length===1&&C[0]==="")C=[];let Z=this.groups-(w.length+C.length);if(!Z)throw new Gu.AddressError("Error parsing groups");this.elidedGroups=Z,this.elisionBegin=w.length,this.elisionEnd=w.length+this.elidedGroups,$=$.concat(w);for(let M=0;M<Z;M++)$.push("0");$=$.concat(C)}else if(E.length===1)$=D.split(":"),this.elidedGroups=0;else throw new Gu.AddressError("Too many :: groups found");if($=$.map((w)=>kD.sprintf("%x",parseInt(w,16))),$.length!==this.groups)throw new Gu.AddressError("Incorrect number of groups found");return $}canonicalForm(){return this.parsedAddress.map(Q4).join(":")}decimal(){return this.parsedAddress.map((D)=>kD.sprintf("%05d",parseInt(D,16))).join(":")}bigInteger(){return new RD.BigInteger(this.parsedAddress.map(Q4).join(""),16)}to4(){let D=this.binaryZeroPad().split("");return ju.Address4.fromHex(new RD.BigInteger(D.slice(96,128).join(""),2).toString(16))}to4in6(){let D=this.to4(),F=new qD(this.parsedAddress.slice(0,6).join(":"),6).correctForm(),$="";if(!/:$/.test(F))$=":";return F+$+D.address}inspectTeredo(){let D=this.getBitsBase16(0,32),u=this.getBits(80,96).xor(new RD.BigInteger("ffff",16)).toString(),F=ju.Address4.fromHex(this.getBitsBase16(32,64)),$=ju.Address4.fromHex(this.getBits(96,128).xor(new RD.BigInteger("ffffffff",16)).toString(16)),E=this.getBits(64,80),w=this.getBitsBase2(64,80),C=E.testBit(15),Z=E.testBit(14),M=E.testBit(8),W=E.testBit(9),X=new RD.BigInteger(w.slice(2,6)+w.slice(8,16),2).toString(10);return{prefix:kD.sprintf("%s:%s",D.slice(0,4),D.slice(4,8)),server4:F.address,client4:$.address,flags:w,coneNat:C,microsoft:{reserved:Z,universalLocal:W,groupIndividual:M,nonce:X},udpPort:u}}inspect6to4(){let D=this.getBitsBase16(0,16),u=ju.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:kD.sprintf("%s",D.slice(0,4)),gateway:u.address}}to6to4(){if(!this.is4())return null;let D=["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":");return new qD(D)}toByteArray(){let D=this.bigInteger().toByteArray();if(D.length===17&&D[0]===0)return D.slice(1);return D}toUnsignedByteArray(){return this.toByteArray().map(A4)}static fromByteArray(D){return this.fromUnsignedByteArray(D.map(A4))}static fromUnsignedByteArray(D){let u=new RD.BigInteger("256",10),F=new RD.BigInteger("0",10),$=new RD.BigInteger("1",10);for(let E=D.length-1;E>=0;E--)F=F.add($.multiply(new RD.BigInteger(D[E].toString(10),10))),$=$.multiply(u);return qD.fromBigInteger(F)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){if(this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000")return!0;return!1}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new qD("2001::/32"))}is6to4(){return this.isInSubnet(new qD("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(D){if(D===void 0)D="";else D=kD.sprintf(":%s",D);return kD.sprintf("http://[%s]%s/",this.correctForm(),D)}link(D){if(!D)D={};if(D.className===void 0)D.className="";if(D.prefix===void 0)D.prefix="/#address=";if(D.v4===void 0)D.v4=!1;let u=this.correctForm;if(D.v4)u=this.to4in6;if(D.className)return kD.sprintf('<a href="%1$s%2$s" class="%3$s">%2$s</a>',D.prefix,u.call(this),D.className);return kD.sprintf('<a href="%1$s%2$s">%2$s</a>',D.prefix,u.call(this))}group(){if(this.elidedGroups===0)return T1.simpleGroup(this.address).join(":");R8(typeof this.elidedGroups==="number"),R8(typeof this.elisionBegin==="number");let D=[],[u,F]=this.address.split("::");if(u.length)D.push(...T1.simpleGroup(u));else D.push("");let $=["hover-group"];for(let E=this.elisionBegin;E<this.elisionBegin+this.elidedGroups;E++)$.push(kD.sprintf("group-%d",E));if(D.push(kD.sprintf('<span class="%s"></span>',$.join(" "))),F.length)D.push(...T1.simpleGroup(F,this.elisionEnd));else D.push("");if(this.is4())R8(this.address4 instanceof ju.Address4),D.pop(),D.push(this.address4.groupForV6());return D.join(":")}regularExpressionString(D=!1){let u=[],F=new qD(this.correctForm());if(F.elidedGroups===0)u.push(Ru.simpleRegularExpression(F.parsedAddress));else if(F.elidedGroups===s.GROUPS)u.push(Ru.possibleElisions(s.GROUPS));else{let $=F.address.split("::");if($[0].length)u.push(Ru.simpleRegularExpression($[0].split(":")));if(R8(typeof F.elidedGroups==="number"),u.push(Ru.possibleElisions(F.elidedGroups,$[0].length!==0,$[1].length!==0)),$[1].length)u.push(Ru.simpleRegularExpression($[1].split(":")));u=[u.join(":")]}if(!D)u=["(?=^|",Ru.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...u,")(?=[^\\w\\:]|",Ru.ADDRESS_BOUNDARY,"|$)"];return u.join("")}regularExpression(D=!1){return new RegExp(this.regularExpressionString(D),"i")}}Mu.Address6=qD});var N1=b((ID)=>{var aZ=ID&&ID.__createBinding||(Object.create?function(D,u,F,$){if($===void 0)$=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,$,E)}:function(D,u,F,$){if($===void 0)$=F;D[$]=u[F]}),oZ=ID&&ID.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),eZ=ID&&ID.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))aZ(u,D,F)}return oZ(u,D),u};Object.defineProperty(ID,"__esModule",{value:!0});ID.v6=ID.AddressError=ID.Address6=ID.Address4=void 0;var DK=U1();Object.defineProperty(ID,"Address4",{enumerable:!0,get:function(){return DK.Address4}});var uK=z4();Object.defineProperty(ID,"Address6",{enumerable:!0,get:function(){return uK.Address6}});var FK=S8();Object.defineProperty(ID,"AddressError",{enumerable:!0,get:function(){return FK.AddressError}});var CK=eZ(V1());ID.v6={helpers:CK}});var T4=b((V4)=>{Object.defineProperty(V4,"__esModule",{value:!0});V4.ipToBuffer=V4.int32ToIpv4=V4.ipv4ToInt32=V4.validateSocksClientChainOptions=V4.validateSocksClientOptions=void 0;var gD=z1(),HD=A1(),$K=import.meta.require("stream"),I1=N1(),G4=import.meta.require("net");function EK(D,u=["connect","bind","associate"]){if(!HD.SocksCommand[D.command])throw new gD.SocksClientError(HD.ERRORS.InvalidSocksCommand,D);if(u.indexOf(D.command)===-1)throw new gD.SocksClientError(HD.ERRORS.InvalidSocksCommandForOperation,D);if(!H4(D.destination))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsDestination,D);if(!U4(D.proxy))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsProxy,D);if(q4(D.proxy,D),D.timeout&&!O4(D.timeout))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsTimeout,D);if(D.existing_socket&&!(D.existing_socket instanceof $K.Duplex))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsExistingSocket,D)}V4.validateSocksClientOptions=EK;function wK(D){if(D.command!=="connect")throw new gD.SocksClientError(HD.ERRORS.InvalidSocksCommandChain,D);if(!H4(D.destination))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsDestination,D);if(!(D.proxies&&Array.isArray(D.proxies)&&D.proxies.length>=2))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsProxiesLength,D);if(D.proxies.forEach((u)=>{if(!U4(u))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsProxy,D);q4(u,D)}),D.timeout&&!O4(D.timeout))throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsTimeout,D)}V4.validateSocksClientChainOptions=wK;function q4(D,u){if(D.custom_auth_method!==void 0){if(D.custom_auth_method<HD.SOCKS5_CUSTOM_AUTH_START||D.custom_auth_method>HD.SOCKS5_CUSTOM_AUTH_END)throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsCustomAuthRange,u);if(D.custom_auth_request_handler===void 0||typeof D.custom_auth_request_handler!=="function")throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,u);if(D.custom_auth_response_size===void 0)throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,u);if(D.custom_auth_response_handler===void 0||typeof D.custom_auth_response_handler!=="function")throw new gD.SocksClientError(HD.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,u)}}function H4(D){return D&&typeof D.host==="string"&&typeof D.port==="number"&&D.port>=0&&D.port<=65535}function U4(D){return D&&(typeof D.host==="string"||typeof D.ipaddress==="string")&&typeof D.port==="number"&&D.port>=0&&D.port<=65535&&(D.type===4||D.type===5)}function O4(D){return typeof D==="number"&&D>0}function BK(D){return new I1.Address4(D).toArray().reduce((F,$)=>(F<<8)+$,0)}V4.ipv4ToInt32=BK;function YK(D){let u=D>>>24&255,F=D>>>16&255,$=D>>>8&255,E=D&255;return[u,F,$,E].join(".")}V4.int32ToIpv4=YK;function JK(D){if(G4.isIPv4(D)){let u=new I1.Address4(D);return Buffer.from(u.toArray())}else if(G4.isIPv6(D)){let u=new I1.Address6(D);return Buffer.from(u.canonicalForm().split(":").map((F)=>F.padStart(4,"0")).join(""),"hex")}else throw new Error("Invalid IP address format")}V4.ipToBuffer=JK});var S4=b((I4)=>{Object.defineProperty(I4,"__esModule",{value:!0});I4.ReceiveBuffer=void 0;class N4{constructor(D=4096){this.buffer=Buffer.allocUnsafe(D),this.offset=0,this.originalSize=D}get length(){return this.offset}append(D){if(!Buffer.isBuffer(D))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+D.length>=this.buffer.length){let u=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+D.length)),u.copy(this.buffer)}return D.copy(this.buffer,this.offset),this.offset+=D.length}peek(D){if(D>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,D)}get(D){if(D>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");let u=Buffer.allocUnsafe(D);return this.buffer.slice(0,D).copy(u),this.buffer.copyWithin(0,D,D+this.offset-D),this.offset-=D,u}}I4.ReceiveBuffer=N4});var h4=b((Tu)=>{var su=Tu&&Tu.__awaiter||function(D,u,F,$){function E(w){return w instanceof F?w:new F(function(C){C(w)})}return new(F||(F=Promise))(function(w,C){function Z(X){try{W($.next(X))}catch(q){C(q)}}function M(X){try{W($.throw(X))}catch(q){C(q)}}function W(X){X.done?w(X.value):E(X.value).then(Z,M)}W(($=$.apply(D,u||[])).next())})};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.SocksClientError=Tu.SocksClient=void 0;var WK=import.meta.require("events"),au=import.meta.require("net"),vD=b9(),H=A1(),rD=T4(),QK=S4(),S1=z1();Object.defineProperty(Tu,"SocksClientError",{enumerable:!0,get:function(){return S1.SocksClientError}});var x1=N1();class g8 extends WK.EventEmitter{constructor(D){super();this.options=Object.assign({},D),rD.validateSocksClientOptions(D),this.setState(H.SocksClientState.Created)}static createConnection(D,u){return new Promise((F,$)=>{try{rD.validateSocksClientOptions(D,["connect"])}catch(w){if(typeof u==="function")return u(w),F(w);else return $(w)}let E=new g8(D);E.connect(D.existing_socket),E.once("established",(w)=>{if(E.removeAllListeners(),typeof u==="function")u(null,w),F(w);else F(w)}),E.once("error",(w)=>{if(E.removeAllListeners(),typeof u==="function")u(w),F(w);else $(w)})})}static createConnectionChain(D,u){return new Promise((F,$)=>su(this,void 0,void 0,function*(){try{rD.validateSocksClientChainOptions(D)}catch(E){if(typeof u==="function")return u(E),F(E);else return $(E)}if(D.randomizeChain)S1.shuffleArray(D.proxies);try{let E;for(let w=0;w<D.proxies.length;w++){let C=D.proxies[w],Z=w===D.proxies.length-1?D.destination:{host:D.proxies[w+1].host||D.proxies[w+1].ipaddress,port:D.proxies[w+1].port},M=yield g8.createConnection({command:"connect",proxy:C,destination:Z,existing_socket:E});E=E||M.socket}if(typeof u==="function")u(null,{socket:E}),F({socket:E});else F({socket:E})}catch(E){if(typeof u==="function")u(E),F(E);else $(E)}}))}static createUDPFrame(D){let u=new vD.SmartBuffer;if(u.writeUInt16BE(0),u.writeUInt8(D.frameNumber||0),au.isIPv4(D.remoteHost.host))u.writeUInt8(H.Socks5HostType.IPv4),u.writeUInt32BE(rD.ipv4ToInt32(D.remoteHost.host));else if(au.isIPv6(D.remoteHost.host))u.writeUInt8(H.Socks5HostType.IPv6),u.writeBuffer(rD.ipToBuffer(D.remoteHost.host));else u.writeUInt8(H.Socks5HostType.Hostname),u.writeUInt8(Buffer.byteLength(D.remoteHost.host)),u.writeString(D.remoteHost.host);return u.writeUInt16BE(D.remoteHost.port),u.writeBuffer(D.data),u.toBuffer()}static parseUDPFrame(D){let u=vD.SmartBuffer.fromBuffer(D);u.readOffset=2;let F=u.readUInt8(),$=u.readUInt8(),E;if($===H.Socks5HostType.IPv4)E=rD.int32ToIpv4(u.readUInt32BE());else if($===H.Socks5HostType.IPv6)E=x1.Address6.fromByteArray(Array.from(u.readBuffer(16))).canonicalForm();else E=u.readString(u.readUInt8());let w=u.readUInt16BE();return{frameNumber:F,remoteHost:{host:E,port:w},data:u.readBuffer()}}setState(D){if(this.state!==H.SocksClientState.Error)this.state=D}connect(D){this.onDataReceived=(F)=>this.onDataReceivedHandler(F),this.onClose=()=>this.onCloseHandler(),this.onError=(F)=>this.onErrorHandler(F),this.onConnect=()=>this.onConnectHandler();let u=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||H.DEFAULT_TIMEOUT);if(u.unref&&typeof u.unref==="function")u.unref();if(D)this.socket=D;else this.socket=new au.Socket;if(this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(H.SocksClientState.Connecting),this.receiveBuffer=new QK.ReceiveBuffer,D)this.socket.emit("connect");else if(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null)this.socket.setNoDelay(!!this.options.set_tcp_nodelay);this.prependOnceListener("established",(F)=>{setImmediate(()=>{if(this.receiveBuffer.length>0){let $=this.receiveBuffer.get(this.receiveBuffer.length);F.socket.emit("data",$)}F.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==H.SocksClientState.Established&&this.state!==H.SocksClientState.BoundWaitingForConnection)this.closeSocket(H.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){if(this.setState(H.SocksClientState.Connected),this.options.proxy.type===4)this.sendSocks4InitialHandshake();else this.sendSocks5InitialHandshake();this.setState(H.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(D){this.receiveBuffer.append(D),this.processData()}processData(){while(this.state!==H.SocksClientState.Established&&this.state!==H.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize)if(this.state===H.SocksClientState.SentInitialHandshake)if(this.options.proxy.type===4)this.handleSocks4FinalHandshakeResponse();else this.handleInitialSocks5HandshakeResponse();else if(this.state===H.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===H.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===H.SocksClientState.BoundWaitingForConnection)if(this.options.proxy.type===4)this.handleSocks4IncomingConnectionResponse();else this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(H.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(H.ERRORS.SocketClosed)}onErrorHandler(D){this.closeSocket(D.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(D){if(this.state!==H.SocksClientState.Error)this.setState(H.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new S1.SocksClientError(D,this.options))}sendSocks4InitialHandshake(){let D=this.options.proxy.userId||"",u=new vD.SmartBuffer;if(u.writeUInt8(4),u.writeUInt8(H.SocksCommand[this.options.command]),u.writeUInt16BE(this.options.destination.port),au.isIPv4(this.options.destination.host))u.writeBuffer(rD.ipToBuffer(this.options.destination.host)),u.writeStringNT(D);else u.writeUInt8(0),u.writeUInt8(0),u.writeUInt8(0),u.writeUInt8(1),u.writeStringNT(D),u.writeStringNT(this.options.destination.host);this.nextRequiredPacketBufferSize=H.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(u.toBuffer())}handleSocks4FinalHandshakeResponse(){let D=this.receiveBuffer.get(8);if(D[1]!==H.Socks4Response.Granted)this.closeSocket(`${H.ERRORS.Socks4ProxyRejectedConnection} - (${H.Socks4Response[D[1]]})`);else if(H.SocksCommand[this.options.command]===H.SocksCommand.bind){let u=vD.SmartBuffer.fromBuffer(D);u.readOffset=2;let F={port:u.readUInt16BE(),host:rD.int32ToIpv4(u.readUInt32BE())};if(F.host==="0.0.0.0")F.host=this.options.proxy.ipaddress;this.setState(H.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:F,socket:this.socket})}else this.setState(H.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){let D=this.receiveBuffer.get(8);if(D[1]!==H.Socks4Response.Granted)this.closeSocket(`${H.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${H.Socks4Response[D[1]]})`);else{let u=vD.SmartBuffer.fromBuffer(D);u.readOffset=2;let F={port:u.readUInt16BE(),host:rD.int32ToIpv4(u.readUInt32BE())};this.setState(H.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket})}}sendSocks5InitialHandshake(){let D=new vD.SmartBuffer,u=[H.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password)u.push(H.Socks5Auth.UserPass);if(this.options.proxy.custom_auth_method!==void 0)u.push(this.options.proxy.custom_auth_method);D.writeUInt8(5),D.writeUInt8(u.length);for(let F of u)D.writeUInt8(F);this.nextRequiredPacketBufferSize=H.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(D.toBuffer()),this.setState(H.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){let D=this.receiveBuffer.get(2);if(D[0]!==5)this.closeSocket(H.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);else if(D[1]===H.SOCKS5_NO_ACCEPTABLE_AUTH)this.closeSocket(H.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);else if(D[1]===H.Socks5Auth.NoAuth)this.socks5ChosenAuthType=H.Socks5Auth.NoAuth,this.sendSocks5CommandRequest();else if(D[1]===H.Socks5Auth.UserPass)this.socks5ChosenAuthType=H.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication();else if(D[1]===this.options.proxy.custom_auth_method)this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication();else this.closeSocket(H.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){let D=this.options.proxy.userId||"",u=this.options.proxy.password||"",F=new vD.SmartBuffer;F.writeUInt8(1),F.writeUInt8(Buffer.byteLength(D)),F.writeString(D),F.writeUInt8(Buffer.byteLength(u)),F.writeString(u),this.nextRequiredPacketBufferSize=H.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(F.toBuffer()),this.setState(H.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return su(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(H.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(D){return su(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(D)})}handleSocks5AuthenticationNoAuthHandshakeResponse(D){return su(this,void 0,void 0,function*(){return D[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(D){return su(this,void 0,void 0,function*(){return D[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return su(this,void 0,void 0,function*(){this.setState(H.SocksClientState.ReceivedAuthenticationResponse);let D=!1;if(this.socks5ChosenAuthType===H.Socks5Auth.NoAuth)D=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===H.Socks5Auth.UserPass)D=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method)D=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));if(!D)this.closeSocket(H.ERRORS.Socks5AuthenticationFailed);else this.sendSocks5CommandRequest()})}sendSocks5CommandRequest(){let D=new vD.SmartBuffer;if(D.writeUInt8(5),D.writeUInt8(H.SocksCommand[this.options.command]),D.writeUInt8(0),au.isIPv4(this.options.destination.host))D.writeUInt8(H.Socks5HostType.IPv4),D.writeBuffer(rD.ipToBuffer(this.options.destination.host));else if(au.isIPv6(this.options.destination.host))D.writeUInt8(H.Socks5HostType.IPv6),D.writeBuffer(rD.ipToBuffer(this.options.destination.host));else D.writeUInt8(H.Socks5HostType.Hostname),D.writeUInt8(this.options.destination.host.length),D.writeString(this.options.destination.host);D.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(D.toBuffer()),this.setState(H.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){let D=this.receiveBuffer.peek(5);if(D[0]!==5||D[1]!==H.Socks5Response.Granted)this.closeSocket(`${H.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${H.Socks5Response[D[1]]}`);else{let u=D[3],F,$;if(u===H.Socks5HostType.IPv4){let E=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}if($=vD.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:rD.int32ToIpv4($.readUInt32BE()),port:$.readUInt16BE()},F.host==="0.0.0.0")F.host=this.options.proxy.ipaddress}else if(u===H.Socks5HostType.Hostname){let E=D[4],w=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(E);if(this.receiveBuffer.length<w){this.nextRequiredPacketBufferSize=w;return}$=vD.SmartBuffer.fromBuffer(this.receiveBuffer.get(w).slice(5)),F={host:$.readString(E),port:$.readUInt16BE()}}else if(u===H.Socks5HostType.IPv6){let E=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}$=vD.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:x1.Address6.fromByteArray(Array.from($.readBuffer(16))).canonicalForm(),port:$.readUInt16BE()}}if(this.setState(H.SocksClientState.ReceivedFinalResponse),H.SocksCommand[this.options.command]===H.SocksCommand.connect)this.setState(H.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket});else if(H.SocksCommand[this.options.command]===H.SocksCommand.bind)this.setState(H.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:F,socket:this.socket});else if(H.SocksCommand[this.options.command]===H.SocksCommand.associate)this.setState(H.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket})}}handleSocks5IncomingConnectionResponse(){let D=this.receiveBuffer.peek(5);if(D[0]!==5||D[1]!==H.Socks5Response.Granted)this.closeSocket(`${H.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${H.Socks5Response[D[1]]}`);else{let u=D[3],F,$;if(u===H.Socks5HostType.IPv4){let E=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}if($=vD.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:rD.int32ToIpv4($.readUInt32BE()),port:$.readUInt16BE()},F.host==="0.0.0.0")F.host=this.options.proxy.ipaddress}else if(u===H.Socks5HostType.Hostname){let E=D[4],w=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(E);if(this.receiveBuffer.length<w){this.nextRequiredPacketBufferSize=w;return}$=vD.SmartBuffer.fromBuffer(this.receiveBuffer.get(w).slice(5)),F={host:$.readString(E),port:$.readUInt16BE()}}else if(u===H.Socks5HostType.IPv6){let E=H.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}$=vD.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:x1.Address6.fromByteArray(Array.from($.readBuffer(16))).canonicalForm(),port:$.readUInt16BE()}}this.setState(H.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}Tu.SocksClient=g8});var h1=b((ku)=>{var AK=ku&&ku.__createBinding||(Object.create?function(D,u,F,$){if($===void 0)$=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,$,E)}:function(D,u,F,$){if($===void 0)$=F;D[$]=u[F]}),zK=ku&&ku.__exportStar||function(D,u){for(var F in D)if(F!=="default"&&!Object.prototype.hasOwnProperty.call(u,F))AK(u,D,F)};Object.defineProperty(ku,"__esModule",{value:!0});zK(h4(),ku)});import GK from"net";import x8 from"process";import{buddyOptions as gJ,stripAnsi as U0}from"@stacksjs/cli";import{access as uY,appendFile as cC,mkdir as fC}from"fs/promises";import{dirname as FY}from"path";import CY from"process";import{italic as vC,stripAnsi as $Y}from"@stacksjs/cli";var BD={};c1(BD,{ui:()=>oB,team:()=>aB,storage:()=>sB,services:()=>tB,security:()=>lB,searchEngine:()=>iB,saas:()=>pB,queue:()=>dB,ports:()=>rB,payment:()=>nB,overrides:()=>r2,notification:()=>fB,logging:()=>cB,localUrl:()=>DB,library:()=>vB,hashing:()=>mB,git:()=>PB,errors:()=>_B,email:()=>bB,docs:()=>gB,dns:()=>kB,determineAppEnv:()=>eB,defineUi:()=>TB,defineStorage:()=>LB,defineStacksConfig:()=>uB,defineSms:()=>VB,defineServices:()=>OB,defineSecurity:()=>UB,defineSearchEngine:()=>HB,defineQueue:()=>qB,definePayment:()=>GB,defineNotification:()=>zB,defineModel:()=>NB,defineLibrary:()=>AB,defineJob:()=>BB,defineHashing:()=>QB,defineGit:()=>WB,defineEvents:()=>IB,defineEmailConfig:()=>MB,defineEmail:()=>XB,defineDns:()=>KB,defineDependencies:()=>ZB,defineDatabase:()=>JB,defineCronJob:()=>YB,defineCli:()=>wB,defineChat:()=>EB,defineCdn:()=>$B,defineCache:()=>CB,defineApp:()=>FB,defaults:()=>r8,database:()=>RB,config:()=>t,cloud:()=>yB,cli:()=>jB,cache:()=>hB,app:()=>hu,analytics:()=>SB,ai:()=>xB});import{basename as IK,delimiter as xK,dirname as r1,extname as SK,isAbsolute as hK,join as yK,normalize as jK,parse as RK,relative as p$,resolve as f1,sep as kK,toNamespacedPath as gK}from"path";import n1 from"process";import{runCommandSync as PK}from"@stacksjs/cli";function d1(D){return x0(`database/${D||""}`)}function i$(D){return x0(`app/${D||""}`)}function l1(D){return i$(`Commands/${D||""}`)}function n8(D){return S0(`logs/${D||""}`)}function x0(D="",u){let F=n1.cwd();while(F.includes("storage"))F=f1(F,"..");let $=f1(F,D);if(u?.relative)return p$(n1.cwd(),$);return $}function S0(D){return x0(`storage/${D||""}`)}var s$={ai:{deploy:!1,models:["amazon.titan-embed-text-v1","amazon.titan-text-express-v1","amazon.titan-embed-image-v1","amazon.titan-image-generator-v1","anthropic.claude-v1","anthropic.claude-v2","anthropic.claude-v2:1","anthropic.claude-instant-v1","meta.llama2-13b-chat-v1","meta.llama2-70b-chat-v1"]},analytics:{driver:void 0},app:{name:"Stacks",description:"A Stacks application.",env:"local",url:"stacks.localhost",debug:!0,key:"",timezone:"UTC",locale:"en",fallbackLocale:"en",cipher:"AES-256-CBC",docMode:!1,redirectUrls:[],maintenanceMode:!1},cli:{name:"My Custom CLI",command:"my-custom-cli",description:"Stacks is a full-stack framework for TypeScript.",source:l1(),deploy:!1},cache:{driver:"redis",prefix:"stx",ttl:3600,drivers:{redis:{connection:"default",host:"localhost",port:6379,username:"",password:""}}},cloud:{type:"serverless",driver:"aws",storage:{},environments:["production","staging","development"],firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0},cdn:{allowedMethods:"GET_HEAD",cachedMethods:"GET_HEAD",minTtl:0,defaultTtl:86400,maxTtl:31536000,compress:!0,priceClass:"PriceClass_All",originShieldRegion:"us-east-1",cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:2}},fileSystem:!1},database:{default:"sqlite",connections:{sqlite:{database:d1("stacks.sqlite"),prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"},dns:{driver:"aws",a:[],aaaa:[],cname:[],mx:[],txt:[]},docs:{lang:"en-US",title:"Stacks",description:"Rapid application, cloud & library framework.",lastUpdated:!0,deploy:!1,themeConfig:{editLink:{pattern:"https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",text:"Edit this page on GitHub"},footer:{message:"Released under the MIT License.",copyright:"Copyright \xA9 2024-present Stacks.js, Inc."}}},email:{from:{name:"Stacks",address:"no-reply@stacksjs.org"},mailboxes:[],server:{scan:!0}},errors:{messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}},git:{hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:"Write a SHORT, IMPERATIVE tense description of the change:\n",body:'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',breaking:'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:"List any ISSUES by this change. E.g.: #31, #34:\n",confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]},hashing:{driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,time:1}},library:{name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}},logging:{logsPath:"storage/logs/stacks.log",deploymentsPath:"storage/logs/deployments.log"},notification:{default:"email"},payment:{driver:"stripe"},ports:{frontend:3000,backend:3001,admin:3002,library:3003,desktop:3004,email:3005,docs:3006,inspect:3007,api:3008,systemTray:3009,database:3010},queue:{default:"sync",connections:{sync:{driver:"sync"},database:{driver:"database",table:"jobs",queue:"default",retry_after:90},redis:{driver:"redis",connection:"default",queue:"default",retry_after:90},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}},saas:{plans:[{productName:"Stacks Hobby",description:"All the Stacks features.",pricing:[{key:"stacks_hobby_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_hobby_yearly",price:37900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Pro",description:"All the Stacks features, including being able to invite team members.",pricing:[{key:"stacks_pro_monthly",price:5900,interval:"month",currency:"usd"},{key:"stacks_pro_yearly",price:57900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}}],webhook:{endpoint:"/webhooks/stripe",secret:""},currencies:["usd"],coupons:[{code:"SUMMER2024",amountOff:500,duration:"once"}],products:[{name:"Stacks Pro",description:"All the Stacks features.",images:["url_to_image"]}]},searchEngine:{driver:"opensearch"},security:{firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0}},services:{aws:{accountId:"",appId:"",apiKey:"",region:"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}},storage:{driver:"s3"},team:{name:"Stacks",members:{"Chris Breuer":"chris@stacksjs.org"}},ui:{shortcuts:[["btn","inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}}}},r8=s$;var p1={default:"meta.llama2-70b-chat-v1",models:["amazon.titan-text-express-v1","amazon.titan-text-lite-v1","meta.llama2-70b-chat-v1"],deploy:!0};var i1={driver:"fathom",drivers:{googleAnalytics:{trackingId:"UA-XXXXXXXXX-X"},fathom:{siteId:"WOLZMJDL"}}};import sw from"process";var a$=new Set([".","!","?"]),lK=new Set([...a$,":",'"',"\'","\u201D"]);var d8=[],l8=[],s1={},$0={},E0={};function a1(D){return typeof D==="string"?new RegExp(`^${D}\$`,"i"):D}function h0(D,u){if(D===u)return u;if(D===D.toLowerCase())return u.toLowerCase();if(D===D.toUpperCase())return u.toUpperCase();if(D[0]===D[0].toUpperCase())return u.charAt(0).toUpperCase()+u.slice(1).toLowerCase();return u.toLowerCase()}function o$(D,...u){return D.replace(/\$(\d{1,2})/g,(F,$)=>u[Number($)]||"")}function e$(D,u){return D.replace(u[0],(...F)=>{let $=o$(u[1],...F);if(F[0]==="")return h0(D[F[F.length-2]-1],$);return h0(F[0],$)})}function o1(D,u,F){if(!D.length||s1[D])return u;for(let $=F.length-1;$>=0;$--){let E=F[$];if(E[0].test(u))return e$(u,E)}return u}function e1(D,u,F){return($)=>{let E=$.toLowerCase();if(u[E])return h0($,E);if(D[E])return h0($,D[E]);return o1(E,$,F)}}function D3(D,u,F){return($)=>{let E=$.toLowerCase();if(u[E])return!0;if(D[E])return!1;return o1(E,E,F)===E}}var ND=(D,u={})=>{let{count:F=2,inclusive:$=!1}=u;if(typeof D!=="string")throw new TypeError("Word must be a string");let E=F===1?ND.singular(D):ND.plural(D);return $?`${F} ${E}`:E};ND.plural=e1(E0,$0,d8);ND.isPlural=D3(E0,$0,d8);ND.singular=e1($0,E0,l8);ND.isSingular=D3($0,E0,l8);ND.addPluralRule=(D,u)=>{d8.push([a1(D),u])};ND.addSingularRule=(D,u)=>{l8.push([a1(D),u])};ND.addUncountableRule=(D)=>{if(typeof D==="string"){s1[D.toLowerCase()]=!0;return}ND.addPluralRule(D,"$0"),ND.addSingularRule(D,"$0")};ND.addIrregularRule=(D,u)=>{let F=u.toLowerCase(),$=D.toLowerCase();E0[$]=F,$0[F]=$};[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["my","our"],["its","their"],["his","their"],["her","their"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"],["canvas","canvases"]].forEach(([D,u])=>ND.addIrregularRule(D,u));[[/s?$/i,"s"],[/[^\x20-\x7F]$/,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(([D,u])=>ND.addPluralRule(D,u));[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|\W|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i,"$1ie"],[/\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(([D,u])=>ND.addSingularRule(D,u));["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\u00E9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(ND.addUncountableRule);var oK=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),eK=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function u3(D){return typeof D==="string"}var V={required:"The {{ field }} field must be defined",string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",mobile:"The {{ field }} field must be a valid mobile phone number",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",regex:"The {{ field }} field format is invalid",ascii:"The {{ field }} field must only contain ASCII characters",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",hexCode:"The {{ field }} field must be a valid hex color code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number","number.in":"The selected {{ field }} is not in {{ values }}",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must be an integer",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}","date.afterOrSameAs":"The {{ field }} field must be a date after or same as {{ otherField }}","date.beforeField":"The {{ field }} field must be a date before {{ otherField }}","date.beforeOrSameAs":"The {{ field }} field must be a date before or same as {{ otherField }}","date.weekend":"The {{ field }} field is not a weekend","date.weekday":"The {{ field }} field is not a weekday"},F3={"":"data"};var $7=Object.defineProperty,y0=(D,u)=>{for(var F in u)$7(D,F,{get:u[F],enumerable:!0})};function p8(D,u,F,$,E){for(u=u.split?u.split("."):u,$=0;$<u.length;$++)D=D?D[u[$]]:E;return D===E?F:D}var DF=p(k0(),1),uF=p(B3(),1),FF=p(M3(),1),CF=p(X3(),1),$F=p(A3(),1),EF=p(z3(),1),wF=p(G3(),1),BF=p(U3(),1),YF=p(j3(),1),JF=p(k3(),1),ZF=p(P3(),1),KF=p(m3(),1),MF=p(f3(),1),XF=p(d3(),1),WF=p(p3(),1),QF=p(O2(),1),AF=p(V2(),1),zF=p(V2(),1),GF=p(O2(),1),Z0=class{#D;#u;constructor(D,u){this.#D=D,this.#u=u||{}}#F(D,u){if(!D.includes("{{"))return D;return D.replace(/(\\)?{{(.*?)}}/g,(F,$,E)=>{let w=E.trim().split("."),C=u;while(w.length){if(C===null||typeof C!=="object")return;let Z=w.shift();C=Object.hasOwn(C,Z)?C[Z]:void 0}return C})}getMessage(D,u,F,$){let E=this.#u[F.name]||F.name,w=this.#D[`${F.getFieldPath()}.${u}`];if(w)return this.#F(w,{field:E,...$});let C=this.#D[`${F.wildCardPath}.${u}`];if(C)return this.#F(C,{field:E,...$});let Z=this.#D[u];if(Z)return this.#F(Z,{field:E,...$});return this.#F(D,{field:E,...$})}toJSON(){return{messages:this.#D,fields:this.#u}}},Y8={};y0(Y8,{E_VALIDATION_ERROR:()=>e3});var L2=class extends Error{constructor(D,u){super("Validation failure",u);this.messages=D;let F=this.constructor;Error.captureStackTrace(this,F)}status=422;code="E_VALIDATION_ERROR";get[Symbol.toStringTag](){return this.constructor.name}toString(){return`${this.name} [${this.code}]: ${this.message}`}},e3=L2,T2=class{hasErrors=!1;errors=[];report(D,u,F,$){let E={message:D,rule:u,field:F.getFieldPath()};if($)E.meta=$;if(F.isArrayMember)E.index=F.name;this.hasErrors=!0,this.errors.push(E)}createError(){return new e3(this.errors)}},g5=["1",1,"true",!0,"on"],b5=["0",0,"false",!1],k={exists(D){return D!==null&&D!==void 0},isMissing(D){return!this.exists(D)},isTrue(D){return g5.includes(D)},isFalse(D){return b5.includes(D)},isString(D){return typeof D==="string"},isObject(D){return!!(D&&typeof D==="object"&&!Array.isArray(D))},hasKeys(D,u){for(let F of u)if(F in D===!1)return!1;return!0},isArray(D){return Array.isArray(D)},isNumeric(D){return!Number.isNaN(Number(D))},asNumber(D){return D===null?Number.NaN:Number(D)},asBoolean(D){if(this.isTrue(D))return!0;if(this.isFalse(D))return!1;return null},isEmail:BF.default.default,isURL:FF.default.default,isAlpha:YF.default.default,isAlphaNumeric:XF.default.default,isIP:DF.default.default,isUUID:EF.default.default,isAscii:wF.default.default,isCreditCard:MF.default.default,isIBAN:$F.default.default,isJWT:uF.default.default,isLatLong:JF.default.default,isMobilePhone:AF.default.default,isPassportNumber:WF.default.default,isPostalCode:QF.default.default,isSlug:CF.default.default,isDecimal:ZF.default.default,mobileLocales:zF.locales,postalCountryCodes:GF.locales,passportCountryCodes:["AM","AR","AT","AU","AZ","BE","BG","BR","BY","CA","CH","CY","CZ","DE","DK","DZ","ES","FI","FR","GB","GR","HR","HU","IE","IN","ID","IR","IS","IT","JM","JP","KR","KZ","LI","LT","LU","LV","LY","MT","MZ","MY","MX","NL","NZ","PH","PK","PL","PT","RO","RU","SE","SL","SK","TH","TR","UA","US"],isHexColor:(D)=>{if(!D.startsWith("#"))return!1;return KF.default.default(D)},isActiveURL:async(D)=>{let{resolve4:u,resolve6:F}=await import("dns/promises");try{let{hostname:$}=new URL(D);if((await F($)).length)return!0;else return(await u($)).length>0}catch{return!1}},isDistinct:(D,u)=>{let F=new Set;if(!u){for(let E of D)if(k.exists(E))if(F.has(E))return!1;else F.add(E);return!0}let $=Array.isArray(u)?u:[u];for(let E of D)if(k.isObject(E)&&k.hasKeys(E,$)){let w=$.map((C)=>E[C]).join("_");if(F.has(w))return!1;else F.add(w)}return!0},getNestedValue(D,u){if(D.indexOf(".")>-1)return p8(u.data,D);return u.parent[D]}};var mu=class{static macro(D,u){this.prototype[D]=u}static getter(D,u,F=!1){Object.defineProperty(this.prototype,D,{get(){let $=u.call(this);if(F)Object.defineProperty(this,D,{configurable:!1,enumerable:!1,value:$,writable:!1});return $},configurable:!0,enumerable:!1})}};var _5=/[\p{Lu}]/u,P5=/[\p{Ll}]/u,qF=/^[\p{Lu}](?![\p{Lu}])/gu,OF=/([\p{Alpha}\p{N}_]|$)/u,N2=/[_.\- ]+/,m5=new RegExp("^"+N2.source),HF=new RegExp(N2.source+OF.source,"gu"),UF=new RegExp("\\d+"+OF.source,"gu"),v5=(D,u,F,$)=>{let E=!1,w=!1,C=!1,Z=!1;for(let M=0;M<D.length;M++){let W=D[M];if(Z=M>2?D[M-3]==="-":!0,E&&_5.test(W))D=D.slice(0,M)+"-"+D.slice(M),E=!1,C=w,w=!0,M++;else if(w&&C&&P5.test(W)&&(!Z||$))D=D.slice(0,M-1)+"-"+D.slice(M-1),C=w,w=!1,E=!0;else E=u(W)===W&&F(W)!==W,C=w,w=F(W)===W&&u(W)!==W}return D},c5=(D,u)=>{return qF.lastIndex=0,D.replaceAll(qF,(F)=>u(F))},f5=(D,u)=>{return HF.lastIndex=0,UF.lastIndex=0,D.replaceAll(UF,(F,$,E)=>["_","-"].includes(D.charAt(E+F.length))?F:u(F)).replaceAll(HF,(F,$)=>u($))};function OD(D,u){if(!(typeof D==="string"||Array.isArray(D)))throw new TypeError("Expected the input to be `string | string[]`");if(u={pascalCase:!1,preserveConsecutiveUppercase:!1,...u},Array.isArray(D))D=D.map((w)=>w.trim()).filter((w)=>w.length).join("-");else D=D.trim();if(D.length===0)return"";let F=u.locale===!1?(w)=>w.toLowerCase():(w)=>w.toLocaleLowerCase(u.locale),$=u.locale===!1?(w)=>w.toUpperCase():(w)=>w.toLocaleUpperCase(u.locale);if(D.length===1){if(N2.test(D))return"";return u.pascalCase?$(D):F(D)}if(D!==F(D))D=v5(D,F,$,u.preserveConsecutiveUppercase);if(D=D.replace(m5,""),D=u.preserveConsecutiveUppercase?c5(D,F):F(D),u.pascalCase)D=$(D.charAt(0))+D.slice(1);return f5(D,$)}var DC=p(S2(),1),e=p(S2(),1),uC=p(VF(),1),FC=p(LF(),1),CC=p(TF(),1);var b2=(D,u)=>u.some((F)=>F instanceof RegExp?F.test(D):F===D),n5=new Set(["https:","http:","file:"]),r5=(D)=>{try{let{protocol:u}=new URL(D);return u.endsWith(":")&&!u.includes(".")&&!n5.has(u)}catch{return!1}},d5=(D,{stripHash:u})=>{let F=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(D);if(!F)throw new Error(`Invalid URL: ${D}`);let{type:$,data:E,hash:w}=F.groups,C=$.split(";");w=u?"":w;let Z=!1;if(C[C.length-1]==="base64")C.pop(),Z=!0;let M=C.shift()?.toLowerCase()??"",X=[...C.map((q)=>{let[L,U=""]=q.split("=").map((A)=>A.trim());if(L==="charset"){if(U=U.toLowerCase(),U==="us-ascii")return""}return`${L}${U?`=${U}`:""}`}).filter(Boolean)];if(Z)X.push("base64");if(X.length>0||M&&M!=="text/plain")X.unshift(M);return`data:${X.join(";")},${Z?E.trim():E}${w?`#${w}`:""}`};function _2(D,u){if(u={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...u},typeof u.defaultProtocol==="string"&&!u.defaultProtocol.endsWith(":"))u.defaultProtocol=`${u.defaultProtocol}:`;if(D=D.trim(),/^data:/i.test(D))return d5(D,u);if(r5(D))return D;let F=D.startsWith("//");if(!(!F&&/^\.*\//.test(D)))D=D.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,u.defaultProtocol);let E=new URL(D);if(u.forceHttp&&u.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(u.forceHttp&&E.protocol==="https:")E.protocol="http:";if(u.forceHttps&&E.protocol==="http:")E.protocol="https:";if(u.stripAuthentication)E.username="",E.password="";if(u.stripHash)E.hash="";else if(u.stripTextFragment)E.hash=E.hash.replace(/#?:~:text.*?$/i,"");if(E.pathname){let C=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,Z=0,M="";for(;;){let X=C.exec(E.pathname);if(!X)break;let q=X[0],L=X.index,U=E.pathname.slice(Z,L);M+=U.replace(/\/{2,}/g,"/"),M+=q,Z=L+q.length}let W=E.pathname.slice(Z,E.pathname.length);M+=W.replace(/\/{2,}/g,"/"),E.pathname=M}if(E.pathname)try{E.pathname=decodeURI(E.pathname)}catch{}if(u.removeDirectoryIndex===!0)u.removeDirectoryIndex=[/^index\.[a-z]+$/];if(Array.isArray(u.removeDirectoryIndex)&&u.removeDirectoryIndex.length>0){let C=E.pathname.split("/"),Z=C[C.length-1];if(b2(Z,u.removeDirectoryIndex))C=C.slice(0,-1),E.pathname=C.slice(1).join("/")+"/"}if(E.hostname){if(E.hostname=E.hostname.replace(/\.$/,""),u.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(E.hostname))E.hostname=E.hostname.replace(/^www\./,"")}if(Array.isArray(u.removeQueryParameters)){for(let C of[...E.searchParams.keys()])if(b2(C,u.removeQueryParameters))E.searchParams.delete(C)}if(!Array.isArray(u.keepQueryParameters)&&u.removeQueryParameters===!0)E.search="";if(Array.isArray(u.keepQueryParameters)&&u.keepQueryParameters.length>0){for(let C of[...E.searchParams.keys()])if(!b2(C,u.keepQueryParameters))E.searchParams.delete(C)}if(u.sortQueryParameters){E.searchParams.sort();try{E.search=decodeURIComponent(E.search)}catch{}}if(u.removeTrailingSlash)E.pathname=E.pathname.replace(/\/$/,"");if(u.removeExplicitPort&&E.port)E.port="";let w=D;if(D=E.toString(),!u.removeSingleSlash&&E.pathname==="/"&&!w.endsWith("/")&&E.hash==="")D=D.replace(/\/$/,"");if((u.removeTrailingSlash||E.pathname==="/")&&E.hash===""&&u.removeSingleSlash)D=D.replace(/\/$/,"");if(F&&!u.normalizeProtocol)D=D.replace(/^http:\/\//,"//");if(u.stripProtocol)D=D.replace(/^(?:https?:)?\/\//,"");return D}var ZC=p(NF(),1),KC=p(IF(),1);var ww=class D{#D="";newLine="\n";writeStatement(u){this.#D=`${this.#D}${this.newLine}${u}`}child(){return new D}toString(){return this.#D}flush(){this.#D=""}};function Bw({parseFnRefId:D,variableName:u,wildCardPath:F,isArrayMember:$,valueExpression:E,parentExpression:w,fieldNameExpression:C,parentValueExpression:Z}){let M=D?`refs['${D}'](${E}, {
5
+ `).map((C)=>XJ(C,u,F)).join(`
6
+ `)}function HC(D,u){if(typeof D=="string")return O1.aliases.get(D)===u;for(let F of D)if(F!==void 0&&HC(F,u))return!0;return!1}function WJ(D,u){if(D===u)return;let F=D.split(`
7
+ `),C=u.split(`
8
+ `),E=[];for(let w=0;w<Math.max(F.length,C.length);w++)F[w]!==C[w]&&E.push(w);return E}function U1(D,u){let F=D;F.isTTY&&F.setRawMode(u)}class H0{constructor(D,u=!0){nD(this,"input"),nD(this,"output"),nD(this,"_abortSignal"),nD(this,"rl"),nD(this,"opts"),nD(this,"_render"),nD(this,"_track",!1),nD(this,"_prevFrame",""),nD(this,"_subscribers",new Map),nD(this,"_cursor",0),nD(this,"state","initial"),nD(this,"error",""),nD(this,"value");let{input:F=iY,output:C=lY,render:E,signal:w,...$}=D;this.opts=$,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=E.bind(this),this._track=u,this._abortSignal=w,this.input=F,this.output=C}unsubscribe(){this._subscribers.clear()}setSubscriber(D,u){let F=this._subscribers.get(D)??[];F.push(u),this._subscribers.set(D,F)}on(D,u){this.setSubscriber(D,{cb:u})}once(D,u){this.setSubscriber(D,{cb:u,once:!0})}emit(D,...u){let F=this._subscribers.get(D)??[],C=[];for(let E of F)E.cb(...u),E.once&&C.push(()=>F.splice(F.indexOf(E),1));for(let E of C)E()}prompt(){return new Promise((D,u)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(ZC);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let F=new pY(0);F._write=(C,E,w)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),w()},this.input.pipe(F),this.rl=FC.createInterface({input:this.input,output:F,tabSize:2,prompt:"",escapeCodeTimeout:50}),FC.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),U1(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(Eu.cursor.show),this.output.off("resize",this.render),U1(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(Eu.cursor.show),this.output.off("resize",this.render),U1(this.input,!1),D(ZC)})})}onKeypress(D,u){if(this.state==="error"&&(this.state="active"),u?.name&&(!this._track&&O1.aliases.has(u.name)&&this.emit("cursor",O1.aliases.get(u.name)),O1.actions.has(u.name)&&this.emit("cursor",u.name)),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),D==="\t"&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),u?.name==="return"){if(this.opts.validate){let F=this.opts.validate(this.value);F&&(this.error=F instanceof Error?F.message:F,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}HC([D,u?.name,u?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
9
+ `),U1(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=MC(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
10
+ `).length-1;this.output.write(Eu.cursor.move(-999,D*-1))}render(){let D=MC(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(Eu.cursor.hide);else{let u=WJ(this._prevFrame,D);if(this.restoreCursor(),u&&u?.length===1){let F=u[0];this.output.write(Eu.cursor.move(0,F)),this.output.write(Eu.erase.lines(1));let C=D.split(`
11
+ `);this.output.write(C[F]),this._prevFrame=D,this.output.write(Eu.cursor.move(0,C.length-F-1));return}if(u&&u?.length>1){let F=u[0];this.output.write(Eu.cursor.move(0,F)),this.output.write(Eu.erase.down());let C=D.split(`
12
+ `).slice(F);this.output.write(C.join(`
13
+ `)),this._prevFrame=D;return}this.output.write(Eu.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}function VJ(){return $u.platform!=="win32"?$u.env.TERM!=="linux":!!$u.env.CI||!!$u.env.WT_SESSION||!!$u.env.TERMINUS_SUBLIME||$u.env.ConEmuTask==="{cmd::Cmder}"||$u.env.TERM_PROGRAM==="Terminus-Sublime"||$u.env.TERM_PROGRAM==="vscode"||$u.env.TERM==="xterm-256color"||$u.env.TERM==="alacritty"||$u.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}async function LC(D,u={}){let F=(C)=>{if(typeof C!=="symbol"||C.toString()!=="Symbol(clack:cancel)")return C;switch(u.cancel){case"reject":{let E=new Error("Prompt cancelled.");if(E.name="ConsolaPromptCancelledError",Error.captureStackTrace)Error.captureStackTrace(E,LC);throw E}case"undefined":return;case"null":return null;case"symbol":return TC;default:case"default":return u.default??u.initial}};if(!u.type||u.type==="text")return await gJ({message:D,defaultValue:u.default,placeholder:u.placeholder,initialValue:u.initial}).then(F);if(u.type==="confirm")return await jJ({message:D,initialValue:u.initial}).then(F);if(u.type==="select")return await RJ({message:D,options:u.options.map((C)=>typeof C==="string"?{value:C,label:C}:C),initialValue:u.initial}).then(F);if(u.type==="multiselect")return await PJ({message:D,options:u.options.map((C)=>typeof C==="string"?{value:C,label:C}:C),required:u.required,initialValues:u.initial}).then(F);throw new Error(`Unknown prompt type: ${u.type}`)}var D2,CC,Eu,H1,$C,oY,O,DJ,AC,uJ,FJ,CJ=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},$J,u2=10,EC=(D=0)=>(u)=>`\x1B[${u+D}m`,wC=(D=0)=>(u)=>`\x1B[${38+D};5;${u}m`,BC=(D=0)=>(u,F,C)=>`\x1B[${38+D};2;${u};${F};${C}m`,$D,EJ,wJ,YJ,V1,JJ=39,w2="\x07",qC="[",MJ="]",GC="m",B2,YC=(D)=>`${V1.values().next().value}${qC}${D}${GC}`,JC=(D)=>`${V1.values().next().value}${B2}${D}${w2}`,ZJ=(D)=>D.split(" ").map((u)=>G0(u)),F2=(D,u,F)=>{let C=[...u],E=!1,w=!1,$=G0(WC(D[D.length-1]));for(let[M,Z]of C.entries()){let Q=G0(Z);if($+Q<=F?D[D.length-1]+=Z:(D.push(Z),$=0),V1.has(Z)&&(E=!0,w=C.slice(M+1).join("").startsWith(B2)),E){w?Z===w2&&(E=!1,w=!1):Z===GC&&(E=!1);continue}$+=Q,$===F&&M<C.length-1&&(D.push(""),$=0)}!$&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())},KJ=(D)=>{let u=D.split(" "),F=u.length;for(;F>0&&!(G0(u[F-1])>0);)F--;return F===u.length?D:u.slice(0,F).join(" ")+u.slice(F).join("")},XJ=(D,u,F={})=>{if(F.trim!==!1&&D.trim()==="")return"";let C="",E,w,$=ZJ(D),M=[""];for(let[Q,X]of D.split(" ").entries()){F.trim!==!1&&(M[M.length-1]=M[M.length-1].trimStart());let A=G0(M[M.length-1]);if(Q!==0&&(A>=u&&(F.wordWrap===!1||F.trim===!1)&&(M.push(""),A=0),(A>0||F.trim===!1)&&(M[M.length-1]+=" ",A++)),F.hard&&$[Q]>u){let U=u-A,H=1+Math.floor(($[Q]-U-1)/u);Math.floor(($[Q]-1)/u)<H&&M.push(""),F2(M,X,u);continue}if(A+$[Q]>u&&A>0&&$[Q]>0){if(F.wordWrap===!1&&A<u){F2(M,X,u);continue}M.push("")}if(A+$[Q]>u&&F.wordWrap===!1){F2(M,X,u);continue}M[M.length-1]+=X}F.trim!==!1&&(M=M.map((Q)=>KJ(Q)));let Z=[...M.join(`
14
+ `)];for(let[Q,X]of Z.entries()){if(C+=X,V1.has(X)){let{groups:U}=new RegExp(`(?:\\${qC}(?<code>\\d+)m|\\${B2}(?<uri>.*)${w2})`).exec(Z.slice(Q).join(""))||{groups:{}};if(U.code!==void 0){let H=Number.parseFloat(U.code);E=H===JJ?void 0:H}else U.uri!==void 0&&(w=U.uri.length===0?void 0:U.uri)}let A=YJ.codes.get(Number(E));Z[Q+1]===`
15
+ `?(w&&(C+=JC("")),E&&A&&(C+=YC(A))):X===`
16
+ `&&(E&&A&&(C+=YC(E)),w&&(C+=JC(w)))}return C},QJ,O1,ZC,zJ,AJ=(D,u,F)=>(u in D)?zJ(D,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[u]=F,nD=(D,u,F)=>(AJ(D,typeof u!="symbol"?u+"":u,F),F),UC,qJ,GJ=(D,u,F)=>(u in D)?qJ(D,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[u]=F,KC=(D,u,F)=>(GJ(D,typeof u!="symbol"?u+"":u,F),F),HJ,UJ,OJ=(D,u,F)=>(u in D)?UJ(D,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[u]=F,XC=(D,u,F)=>(OJ(D,typeof u!="symbol"?u+"":u,F),F),OC,VC,TJ,wu=(D,u)=>TJ?D:u,LJ,hJ,NJ,IJ,DD,au,C2,$2,yJ,QC,SJ,T1=(D)=>{switch(D){case"initial":case"active":return O.cyan(LJ);case"cancel":return O.red(hJ);case"error":return O.yellow(NJ);case"submit":return O.green(IJ)}},E2=(D)=>{let{cursor:u,options:F,style:C}=D,E=D.maxItems??Number.POSITIVE_INFINITY,w=Math.max(process.stdout.rows-4,0),$=Math.min(w,Math.max(E,5)),M=0;u>=M+$-3?M=Math.max(Math.min(u-$+3,F.length-$),0):u<M+2&&(M=Math.max(u-2,0));let Z=$<F.length&&M>0,Q=$<F.length&&M+$<F.length;return F.slice(M,M+$).map((X,A,U)=>{let H=A===0&&Z,W=A===U.length-1&&Q;return H||W?O.dim("..."):C(X,A+M===u)})},gJ=(D)=>new VC({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,render(){let u=`${O.gray(DD)}
17
+ ${T1(this.state)} ${D.message}
18
+ `,F=D.placeholder?O.inverse(D.placeholder[0])+O.dim(D.placeholder.slice(1)):O.inverse(O.hidden("_")),C=this.value?this.valueWithCursor:F;switch(this.state){case"error":return`${u.trim()}
19
+ ${O.yellow(DD)} ${C}
20
+ ${O.yellow(au)} ${O.yellow(this.error)}
21
+ `;case"submit":return`${u}${O.gray(DD)} ${O.dim(this.value||D.placeholder)}`;case"cancel":return`${u}${O.gray(DD)} ${O.strikethrough(O.dim(this.value??""))}${this.value?.trim()?`
22
+ ${O.gray(DD)}`:""}`;default:return`${u}${O.cyan(DD)} ${C}
23
+ ${O.cyan(au)}
24
+ `}}}).prompt(),jJ=(D)=>{let u=D.active??"Yes",F=D.inactive??"No";return new UC({active:u,inactive:F,initialValue:D.initialValue??!0,render(){let C=`${O.gray(DD)}
25
+ ${T1(this.state)} ${D.message}
26
+ `,E=this.value?u:F;switch(this.state){case"submit":return`${C}${O.gray(DD)} ${O.dim(E)}`;case"cancel":return`${C}${O.gray(DD)} ${O.strikethrough(O.dim(E))}
27
+ ${O.gray(DD)}`;default:return`${C}${O.cyan(DD)} ${this.value?`${O.green(C2)} ${u}`:`${O.dim($2)} ${O.dim(u)}`} ${O.dim("/")} ${this.value?`${O.dim($2)} ${O.dim(F)}`:`${O.green(C2)} ${F}`}
28
+ ${O.cyan(au)}
29
+ `}}}).prompt()},RJ=(D)=>{let u=(F,C)=>{let E=F.label??String(F.value);switch(C){case"selected":return`${O.dim(E)}`;case"active":return`${O.green(C2)} ${E} ${F.hint?O.dim(`(${F.hint})`):""}`;case"cancelled":return`${O.strikethrough(O.dim(E))}`;default:return`${O.dim($2)} ${O.dim(E)}`}};return new OC({options:D.options,initialValue:D.initialValue,render(){let F=`${O.gray(DD)}
30
+ ${T1(this.state)} ${D.message}
31
+ `;switch(this.state){case"submit":return`${F}${O.gray(DD)} ${u(this.options[this.cursor],"selected")}`;case"cancel":return`${F}${O.gray(DD)} ${u(this.options[this.cursor],"cancelled")}
32
+ ${O.gray(DD)}`;default:return`${F}${O.cyan(DD)} ${E2({cursor:this.cursor,options:this.options,maxItems:D.maxItems,style:(C,E)=>u(C,E?"active":"inactive")}).join(`
33
+ ${O.cyan(DD)} `)}
34
+ ${O.cyan(au)}
35
+ `}}}).prompt()},PJ=(D)=>{let u=(F,C)=>{let E=F.label??String(F.value);return C==="active"?`${O.cyan(yJ)} ${E} ${F.hint?O.dim(`(${F.hint})`):""}`:C==="selected"?`${O.green(QC)} ${O.dim(E)}`:C==="cancelled"?`${O.strikethrough(O.dim(E))}`:C==="active-selected"?`${O.green(QC)} ${E} ${F.hint?O.dim(`(${F.hint})`):""}`:C==="submitted"?`${O.dim(E)}`:`${O.dim(SJ)} ${O.dim(E)}`};return new HJ({options:D.options,initialValues:D.initialValues,required:D.required??!0,cursorAt:D.cursorAt,validate(F){if(this.required&&F.length===0)return`Please select at least one option.
36
+ ${O.reset(O.dim(`Press ${O.gray(O.bgWhite(O.inverse(" space ")))} to select, ${O.gray(O.bgWhite(O.inverse(" enter ")))} to submit`))}`},render(){let F=`${O.gray(DD)}
37
+ ${T1(this.state)} ${D.message}
38
+ `,C=(E,w)=>{let $=this.value.includes(E.value);return w&&$?u(E,"active-selected"):$?u(E,"selected"):u(E,w?"active":"inactive")};switch(this.state){case"submit":return`${F}${O.gray(DD)} ${this.options.filter(({value:E})=>this.value.includes(E)).map((E)=>u(E,"submitted")).join(O.dim(", "))||O.dim("none")}`;case"cancel":{let E=this.options.filter(({value:w})=>this.value.includes(w)).map((w)=>u(w,"cancelled")).join(O.dim(", "));return`${F}${O.gray(DD)} ${E.trim()?`${E}
39
+ ${O.gray(DD)}`:""}`}case"error":{let E=this.error.split(`
40
+ `).map((w,$)=>$===0?`${O.yellow(au)} ${O.yellow(w)}`:` ${w}`).join(`
41
+ `);return`${F+O.yellow(DD)} ${E2({options:this.options,cursor:this.cursor,maxItems:D.maxItems,style:C}).join(`
42
+ ${O.yellow(DD)} `)}
43
+ ${E}
44
+ `}default:return`${F}${O.cyan(DD)} ${E2({options:this.options,cursor:this.cursor,maxItems:D.maxItems,style:C}).join(`
45
+ ${O.cyan(DD)} `)}
46
+ ${O.cyan(au)}
47
+ `}}}).prompt()},TC;var NC=e$(()=>{Eu=aY(),H1={exports:{}};oY=sY(),O=tY(oY);DJ=eY();AC={exports:{}};(function(D){var u={};D.exports=u,u.eastAsianWidth=function(C){var E=C.charCodeAt(0),w=C.length==2?C.charCodeAt(1):0,$=E;return 55296<=E&&E<=56319&&56320<=w&&w<=57343&&(E&=1023,w&=1023,$=E<<10|w,$+=65536),$==12288||65281<=$&&$<=65376||65504<=$&&$<=65510?"F":$==8361||65377<=$&&$<=65470||65474<=$&&$<=65479||65482<=$&&$<=65487||65490<=$&&$<=65495||65498<=$&&$<=65500||65512<=$&&$<=65518?"H":4352<=$&&$<=4447||4515<=$&&$<=4519||4602<=$&&$<=4607||9001<=$&&$<=9002||11904<=$&&$<=11929||11931<=$&&$<=12019||12032<=$&&$<=12245||12272<=$&&$<=12283||12289<=$&&$<=12350||12353<=$&&$<=12438||12441<=$&&$<=12543||12549<=$&&$<=12589||12593<=$&&$<=12686||12688<=$&&$<=12730||12736<=$&&$<=12771||12784<=$&&$<=12830||12832<=$&&$<=12871||12880<=$&&$<=13054||13056<=$&&$<=19903||19968<=$&&$<=42124||42128<=$&&$<=42182||43360<=$&&$<=43388||44032<=$&&$<=55203||55216<=$&&$<=55238||55243<=$&&$<=55291||63744<=$&&$<=64255||65040<=$&&$<=65049||65072<=$&&$<=65106||65108<=$&&$<=65126||65128<=$&&$<=65131||110592<=$&&$<=110593||127488<=$&&$<=127490||127504<=$&&$<=127546||127552<=$&&$<=127560||127568<=$&&$<=127569||131072<=$&&$<=194367||177984<=$&&$<=196605||196608<=$&&$<=262141?"W":32<=$&&$<=126||162<=$&&$<=163||165<=$&&$<=166||$==172||$==175||10214<=$&&$<=10221||10629<=$&&$<=10630?"Na":$==161||$==164||167<=$&&$<=168||$==170||173<=$&&$<=174||176<=$&&$<=180||182<=$&&$<=186||188<=$&&$<=191||$==198||$==208||215<=$&&$<=216||222<=$&&$<=225||$==230||232<=$&&$<=234||236<=$&&$<=237||$==240||242<=$&&$<=243||247<=$&&$<=250||$==252||$==254||$==257||$==273||$==275||$==283||294<=$&&$<=295||$==299||305<=$&&$<=307||$==312||319<=$&&$<=322||$==324||328<=$&&$<=331||$==333||338<=$&&$<=339||358<=$&&$<=359||$==363||$==462||$==464||$==466||$==468||$==470||$==472||$==474||$==476||$==593||$==609||$==708||$==711||713<=$&&$<=715||$==717||$==720||728<=$&&$<=731||$==733||$==735||768<=$&&$<=879||913<=$&&$<=929||931<=$&&$<=937||945<=$&&$<=961||963<=$&&$<=969||$==1025||1040<=$&&$<=1103||$==1105||$==8208||8211<=$&&$<=8214||8216<=$&&$<=8217||8220<=$&&$<=8221||8224<=$&&$<=8226||8228<=$&&$<=8231||$==8240||8242<=$&&$<=8243||$==8245||$==8251||$==8254||$==8308||$==8319||8321<=$&&$<=8324||$==8364||$==8451||$==8453||$==8457||$==8467||$==8470||8481<=$&&$<=8482||$==8486||$==8491||8531<=$&&$<=8532||8539<=$&&$<=8542||8544<=$&&$<=8555||8560<=$&&$<=8569||$==8585||8592<=$&&$<=8601||8632<=$&&$<=8633||$==8658||$==8660||$==8679||$==8704||8706<=$&&$<=8707||8711<=$&&$<=8712||$==8715||$==8719||$==8721||$==8725||$==8730||8733<=$&&$<=8736||$==8739||$==8741||8743<=$&&$<=8748||$==8750||8756<=$&&$<=8759||8764<=$&&$<=8765||$==8776||$==8780||$==8786||8800<=$&&$<=8801||8804<=$&&$<=8807||8810<=$&&$<=8811||8814<=$&&$<=8815||8834<=$&&$<=8835||8838<=$&&$<=8839||$==8853||$==8857||$==8869||$==8895||$==8978||9312<=$&&$<=9449||9451<=$&&$<=9547||9552<=$&&$<=9587||9600<=$&&$<=9615||9618<=$&&$<=9621||9632<=$&&$<=9633||9635<=$&&$<=9641||9650<=$&&$<=9651||9654<=$&&$<=9655||9660<=$&&$<=9661||9664<=$&&$<=9665||9670<=$&&$<=9672||$==9675||9678<=$&&$<=9681||9698<=$&&$<=9701||$==9711||9733<=$&&$<=9734||$==9737||9742<=$&&$<=9743||9748<=$&&$<=9749||$==9756||$==9758||$==9792||$==9794||9824<=$&&$<=9825||9827<=$&&$<=9829||9831<=$&&$<=9834||9836<=$&&$<=9837||$==9839||9886<=$&&$<=9887||9918<=$&&$<=9919||9924<=$&&$<=9933||9935<=$&&$<=9953||$==9955||9960<=$&&$<=9983||$==10045||$==10071||10102<=$&&$<=10111||11093<=$&&$<=11097||12872<=$&&$<=12879||57344<=$&&$<=63743||65024<=$&&$<=65039||$==65533||127232<=$&&$<=127242||127248<=$&&$<=127277||127280<=$&&$<=127337||127344<=$&&$<=127386||917760<=$&&$<=917999||983040<=$&&$<=1048573||1048576<=$&&$<=1114109?"A":"N"},u.characterLength=function(C){var E=this.eastAsianWidth(C);return E=="F"||E=="W"||E=="A"?2:1};function F(C){return C.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(C){for(var E=F(C),w=0,$=0;$<E.length;$++)w=w+this.characterLength(E[$]);return w},u.slice=function(C,E,w){textLen=u.length(C),E=E||0,w=w||1,E<0&&(E=textLen+E),w<0&&(w=textLen+w);for(var $="",M=0,Z=F(C),Q=0;Q<Z.length;Q++){var X=Z[Q],A=u.length(X);if(M>=E-(A==2?1:0))if(M+A<=w)$+=X;else break;M+=A}return $}})(AC);uJ=AC.exports,FJ=zC(uJ),$J=zC(CJ);$D={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys($D.modifier);EJ=Object.keys($D.color),wJ=Object.keys($D.bgColor);[...EJ];YJ=BJ(),V1=new Set(["\x1B","\x9B"]),B2=`${MJ}8;;`;QJ=["up","down","left","right","space","enter","cancel"],O1={actions:new Set(QJ),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};globalThis.process.platform.startsWith("win");ZC=Symbol("clack:cancel");zJ=Object.defineProperty;UC=class UC extends H0{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",(u)=>{this.output.write(Eu.cursor.move(0,-1)),this.value=u,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};qJ=Object.defineProperty,HJ=class extends H0{constructor(D){super(D,!1),KC(this,"options"),KC(this,"cursor",0),this.options=D.options,this.value=[...D.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:u})=>u===D.cursorAt),0),this.on("key",(u)=>{u==="a"&&this.toggleAll()}),this.on("cursor",(u)=>{switch(u){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let D=this.value.length===this.options.length;this.value=D?[]:this.options.map((u)=>u.value)}toggleValue(){let D=this.value.includes(this._value);this.value=D?this.value.filter((u)=>u!==this._value):[...this.value,this._value]}},UJ=Object.defineProperty;OC=class OC extends H0{constructor(D){super(D,!1),XC(this,"options"),XC(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:u})=>u===D.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",(u)=>{switch(u){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};VC=class VC extends H0{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let D=this.value.slice(0,this.cursor),[u,...F]=this.value.slice(this.cursor);return`${D}${O.inverse(u)}${F.join("")}`}get cursor(){return this._cursor}constructor(D){super(D),this.on("finalize",()=>{this.value||(this.value=D.defaultValue)})}};TJ=VJ(),LJ=wu("\u276F",">"),hJ=wu("\u25A0","x"),NJ=wu("\u25B2","x"),IJ=wu("\u2714","\u221A"),DD=wu(""),au=wu(""),C2=wu("\u25CF",">"),$2=wu("\u25CB"," "),yJ=wu("\u25FB","[\u2022]"),QC=wu("\u25FC","[+]"),SJ=wu("\u25FB","[ ]"),TC=Symbol.for("cancel")});var _C=b((mC)=>{Object.defineProperty(mC,"__esModule",{value:!0});var kC=fu("buffer"),ku={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};mC.ERRORS=ku;function UM(D){if(!kC.Buffer.isEncoding(D))throw new Error(ku.INVALID_ENCODING)}mC.checkEncoding=UM;function bC(D){return typeof D==="number"&&isFinite(D)&&LM(D)}mC.isFiniteInteger=bC;function cC(D,u){if(typeof D==="number"){if(!bC(D)||D<0)throw new Error(u?ku.INVALID_OFFSET:ku.INVALID_LENGTH)}else throw new Error(u?ku.INVALID_OFFSET_NON_NUMBER:ku.INVALID_LENGTH_NON_NUMBER)}function OM(D){cC(D,!1)}mC.checkLengthValue=OM;function VM(D){cC(D,!0)}mC.checkOffsetValue=VM;function TM(D,u){if(D<0||D>u.length)throw new Error(ku.INVALID_TARGET_OFFSET)}mC.checkTargetOffset=TM;function LM(D){return typeof D==="number"&&isFinite(D)&&Math.floor(D)===D}function hM(D){if(typeof BigInt==="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof kC.Buffer.prototype[D]==="undefined")throw new Error(`Platform does not support Buffer.prototype.${D}.`)}mC.bigIntAndBufferInt64Check=hM});var xC=b((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});var x=_C(),vC=4096,PM="utf8";class Z2{constructor(D){if(this.length=0,this._encoding=PM,this._writeOffset=0,this._readOffset=0,Z2.isSmartBufferOptions(D)){if(D.encoding)x.checkEncoding(D.encoding),this._encoding=D.encoding;if(D.size)if(x.isFiniteInteger(D.size)&&D.size>0)this._buff=Buffer.allocUnsafe(D.size);else throw new Error(x.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(D.buff)if(Buffer.isBuffer(D.buff))this._buff=D.buff,this.length=D.buff.length;else throw new Error(x.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(vC)}else{if(typeof D!=="undefined")throw new Error(x.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(vC)}}static fromSize(D,u){return new this({size:D,encoding:u})}static fromBuffer(D,u){return new this({buff:D,encoding:u})}static fromOptions(D){return new this(D)}static isSmartBufferOptions(D){let u=D;return u&&(u.encoding!==void 0||u.size!==void 0||u.buff!==void 0)}readInt8(D){return this._readNumberValue(Buffer.prototype.readInt8,1,D)}readInt16BE(D){return this._readNumberValue(Buffer.prototype.readInt16BE,2,D)}readInt16LE(D){return this._readNumberValue(Buffer.prototype.readInt16LE,2,D)}readInt32BE(D){return this._readNumberValue(Buffer.prototype.readInt32BE,4,D)}readInt32LE(D){return this._readNumberValue(Buffer.prototype.readInt32LE,4,D)}readBigInt64BE(D){return x.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,D)}readBigInt64LE(D){return x.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,D)}writeInt8(D,u){return this._writeNumberValue(Buffer.prototype.writeInt8,1,D,u),this}insertInt8(D,u){return this._insertNumberValue(Buffer.prototype.writeInt8,1,D,u)}writeInt16BE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,D,u)}insertInt16BE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,D,u)}writeInt16LE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,D,u)}insertInt16LE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,D,u)}writeInt32BE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,D,u)}insertInt32BE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,D,u)}writeInt32LE(D,u){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,D,u)}insertInt32LE(D,u){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,D,u)}writeBigInt64BE(D,u){return x.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,D,u)}insertBigInt64BE(D,u){return x.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,D,u)}writeBigInt64LE(D,u){return x.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,D,u)}insertBigInt64LE(D,u){return x.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,D,u)}readUInt8(D){return this._readNumberValue(Buffer.prototype.readUInt8,1,D)}readUInt16BE(D){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,D)}readUInt16LE(D){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,D)}readUInt32BE(D){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,D)}readUInt32LE(D){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,D)}readBigUInt64BE(D){return x.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,D)}readBigUInt64LE(D){return x.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,D)}writeUInt8(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,D,u)}insertUInt8(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,D,u)}writeUInt16BE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,D,u)}insertUInt16BE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,D,u)}writeUInt16LE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,D,u)}insertUInt16LE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,D,u)}writeUInt32BE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,D,u)}insertUInt32BE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,D,u)}writeUInt32LE(D,u){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,D,u)}insertUInt32LE(D,u){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,D,u)}writeBigUInt64BE(D,u){return x.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,D,u)}insertBigUInt64BE(D,u){return x.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,D,u)}writeBigUInt64LE(D,u){return x.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,D,u)}insertBigUInt64LE(D,u){return x.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,D,u)}readFloatBE(D){return this._readNumberValue(Buffer.prototype.readFloatBE,4,D)}readFloatLE(D){return this._readNumberValue(Buffer.prototype.readFloatLE,4,D)}writeFloatBE(D,u){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,D,u)}insertFloatBE(D,u){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,D,u)}writeFloatLE(D,u){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,D,u)}insertFloatLE(D,u){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,D,u)}readDoubleBE(D){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,D)}readDoubleLE(D){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,D)}writeDoubleBE(D,u){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,D,u)}insertDoubleBE(D,u){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,D,u)}writeDoubleLE(D,u){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,D,u)}insertDoubleLE(D,u){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,D,u)}readString(D,u){let F;if(typeof D==="number")x.checkLengthValue(D),F=Math.min(D,this.length-this._readOffset);else u=D,F=this.length-this._readOffset;if(typeof u!=="undefined")x.checkEncoding(u);let C=this._buff.slice(this._readOffset,this._readOffset+F).toString(u||this._encoding);return this._readOffset+=F,C}insertString(D,u,F){return x.checkOffsetValue(u),this._handleString(D,!0,u,F)}writeString(D,u,F){return this._handleString(D,!1,u,F)}readStringNT(D){if(typeof D!=="undefined")x.checkEncoding(D);let u=this.length;for(let C=this._readOffset;C<this.length;C++)if(this._buff[C]===0){u=C;break}let F=this._buff.slice(this._readOffset,u);return this._readOffset=u+1,F.toString(D||this._encoding)}insertStringNT(D,u,F){return x.checkOffsetValue(u),this.insertString(D,u,F),this.insertUInt8(0,u+D.length),this}writeStringNT(D,u,F){return this.writeString(D,u,F),this.writeUInt8(0,typeof u==="number"?u+D.length:this.writeOffset),this}readBuffer(D){if(typeof D!=="undefined")x.checkLengthValue(D);let u=typeof D==="number"?D:this.length,F=Math.min(this.length,this._readOffset+u),C=this._buff.slice(this._readOffset,F);return this._readOffset=F,C}insertBuffer(D,u){return x.checkOffsetValue(u),this._handleBuffer(D,!0,u)}writeBuffer(D,u){return this._handleBuffer(D,!1,u)}readBufferNT(){let D=this.length;for(let F=this._readOffset;F<this.length;F++)if(this._buff[F]===0){D=F;break}let u=this._buff.slice(this._readOffset,D);return this._readOffset=D+1,u}insertBufferNT(D,u){return x.checkOffsetValue(u),this.insertBuffer(D,u),this.insertUInt8(0,u+D.length),this}writeBufferNT(D,u){if(typeof u!=="undefined")x.checkOffsetValue(u);return this.writeBuffer(D,u),this.writeUInt8(0,typeof u==="number"?u+D.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(D){x.checkOffsetValue(D),x.checkTargetOffset(D,this),this._readOffset=D}get writeOffset(){return this._writeOffset}set writeOffset(D){x.checkOffsetValue(D),x.checkTargetOffset(D,this),this._writeOffset=D}get encoding(){return this._encoding}set encoding(D){x.checkEncoding(D),this._encoding=D}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(D){let u=typeof D==="string"?D:this._encoding;return x.checkEncoding(u),this._buff.toString(u,0,this.length)}destroy(){return this.clear(),this}_handleString(D,u,F,C){let E=this._writeOffset,w=this._encoding;if(typeof F==="number")E=F;else if(typeof F==="string")x.checkEncoding(F),w=F;if(typeof C==="string")x.checkEncoding(C),w=C;let $=Buffer.byteLength(D,w);if(u)this.ensureInsertable($,E);else this._ensureWriteable($,E);if(this._buff.write(D,E,$,w),u)this._writeOffset+=$;else if(typeof F==="number")this._writeOffset=Math.max(this._writeOffset,E+$);else this._writeOffset+=$;return this}_handleBuffer(D,u,F){let C=typeof F==="number"?F:this._writeOffset;if(u)this.ensureInsertable(D.length,C);else this._ensureWriteable(D.length,C);if(D.copy(this._buff,C),u)this._writeOffset+=D.length;else if(typeof F==="number")this._writeOffset=Math.max(this._writeOffset,C+D.length);else this._writeOffset+=D.length;return this}ensureReadable(D,u){let F=this._readOffset;if(typeof u!=="undefined")x.checkOffsetValue(u),F=u;if(F<0||F+D>this.length)throw new Error(x.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(D,u){if(x.checkOffsetValue(u),this._ensureCapacity(this.length+D),u<this.length)this._buff.copy(this._buff,u+D,u,this._buff.length);if(u+D>this.length)this.length=u+D;else this.length+=D}_ensureWriteable(D,u){let F=typeof u==="number"?u:this._writeOffset;if(this._ensureCapacity(F+D),F+D>this.length)this.length=F+D}_ensureCapacity(D){let u=this._buff.length;if(D>u){let F=this._buff,C=u*3/2+1;if(C<D)C=D;this._buff=Buffer.allocUnsafe(C),F.copy(this._buff,0,0,u)}}_readNumberValue(D,u,F){this.ensureReadable(u,F);let C=D.call(this._buff,typeof F==="number"?F:this._readOffset);if(typeof F==="undefined")this._readOffset+=u;return C}_insertNumberValue(D,u,F,C){return x.checkOffsetValue(C),this.ensureInsertable(u,C),D.call(this._buff,F,C),this._writeOffset+=u,this}_writeNumberValue(D,u,F,C){if(typeof C==="number"){if(C<0)throw new Error(x.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);x.checkOffsetValue(C)}let E=typeof C==="number"?C:this._writeOffset;if(this._ensureWriteable(u,E),D.call(this._buff,F,E),typeof C==="number")this._writeOffset=Math.max(this._writeOffset,E+u);else this._writeOffset+=u;return this}}fC.SmartBuffer=Z2});var K2=b((tC)=>{Object.defineProperty(tC,"__esModule",{value:!0});tC.SOCKS5_NO_ACCEPTABLE_AUTH=tC.SOCKS5_CUSTOM_AUTH_END=tC.SOCKS5_CUSTOM_AUTH_START=tC.SOCKS_INCOMING_PACKET_SIZES=tC.SocksClientState=tC.Socks5Response=tC.Socks5HostType=tC.Socks5Auth=tC.Socks4Response=tC.SocksCommand=tC.ERRORS=tC.DEFAULT_TIMEOUT=void 0;var bM=30000;tC.DEFAULT_TIMEOUT=bM;var cM={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};tC.ERRORS=cM;var mM={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:(D)=>D+7,Socks4Response:8};tC.SOCKS_INCOMING_PACKET_SIZES=mM;var nC;(function(D){D[D.connect=1]="connect",D[D.bind=2]="bind",D[D.associate=3]="associate"})(nC||(tC.SocksCommand=nC={}));var dC;(function(D){D[D.Granted=90]="Granted",D[D.Failed=91]="Failed",D[D.Rejected=92]="Rejected",D[D.RejectedIdent=93]="RejectedIdent"})(dC||(tC.Socks4Response=dC={}));var rC;(function(D){D[D.NoAuth=0]="NoAuth",D[D.GSSApi=1]="GSSApi",D[D.UserPass=2]="UserPass"})(rC||(tC.Socks5Auth=rC={}));var _M=128;tC.SOCKS5_CUSTOM_AUTH_START=_M;var vM=254;tC.SOCKS5_CUSTOM_AUTH_END=vM;var fM=255;tC.SOCKS5_NO_ACCEPTABLE_AUTH=fM;var iC;(function(D){D[D.Granted=0]="Granted",D[D.Failure=1]="Failure",D[D.NotAllowed=2]="NotAllowed",D[D.NetworkUnreachable=3]="NetworkUnreachable",D[D.HostUnreachable=4]="HostUnreachable",D[D.ConnectionRefused=5]="ConnectionRefused",D[D.TTLExpired=6]="TTLExpired",D[D.CommandNotSupported=7]="CommandNotSupported",D[D.AddressNotSupported=8]="AddressNotSupported"})(iC||(tC.Socks5Response=iC={}));var lC;(function(D){D[D.IPv4=1]="IPv4",D[D.Hostname=3]="Hostname",D[D.IPv6=4]="IPv6"})(lC||(tC.Socks5HostType=lC={}));var pC;(function(D){D[D.Created=0]="Created",D[D.Connecting=1]="Connecting",D[D.Connected=2]="Connected",D[D.SentInitialHandshake=3]="SentInitialHandshake",D[D.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",D[D.SentAuthentication=5]="SentAuthentication",D[D.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",D[D.SentFinalHandshake=7]="SentFinalHandshake",D[D.ReceivedFinalResponse=8]="ReceivedFinalResponse",D[D.BoundWaitingForConnection=9]="BoundWaitingForConnection",D[D.Established=10]="Established",D[D.Disconnected=11]="Disconnected",D[D.Error=99]="Error"})(pC||(tC.SocksClientState=pC={}))});var X2=b((oC)=>{Object.defineProperty(oC,"__esModule",{value:!0});oC.shuffleArray=oC.SocksClientError=void 0;class sC extends Error{constructor(D,u){super(D);this.options=u}}oC.SocksClientError=sC;function eM(D){for(let u=D.length-1;u>0;u--){let F=Math.floor(Math.random()*(u+1));[D[u],D[F]]=[D[F],D[u]]}}oC.shuffleArray=eM});var Q2=b((D4)=>{Object.defineProperty(D4,"__esModule",{value:!0});D4.isCorrect=D4.isInSubnet=void 0;function uZ(D){if(this.subnetMask<D.subnetMask)return!1;if(this.mask(D.subnetMask)===D.mask())return!0;return!1}D4.isInSubnet=uZ;function FZ(D){return function(){if(this.addressMinusSuffix!==this.correctForm())return!1;if(this.subnetMask===D&&!this.parsedSubnet)return!0;return this.parsedSubnet===String(this.subnetMask)}}D4.isCorrect=FZ});var W2=b((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.RE_SUBNET_STRING=F4.RE_ADDRESS=F4.GROUPS=F4.BITS=void 0;F4.BITS=32;F4.GROUPS=4;F4.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;F4.RE_SUBNET_STRING=/\/\d{1,2}$/});var I1=b((E4)=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.AddressError=void 0;class $4 extends Error{constructor(D,u){super(D);if(this.name="AddressError",u!==null)this.parseMessage=u}}E4.AddressError=$4});var z2=b((y1,B4)=>{(function(){var D,u=244837814094590,F=(u&16777215)==15715070;function C(B,Y,J){if(B!=null)if(typeof B=="number")this.fromNumber(B,Y,J);else if(Y==null&&typeof B!="string")this.fromString(B,256);else this.fromString(B,Y)}function E(){return new C(null)}function w(B,Y,J,K,z,q){while(--q>=0){var I=Y*this[B++]+J[K]+z;z=Math.floor(I/67108864),J[K++]=I&67108863}return z}function $(B,Y,J,K,z,q){var I=Y&32767,y=Y>>15;while(--q>=0){var e=this[B]&32767,XD=this[B++]>>15,iD=y*e+XD*I;e=I*e+((iD&32767)<<15)+J[K]+(z&1073741823),z=(e>>>30)+(iD>>>15)+y*XD+(z>>>30),J[K++]=e&1073741823}return z}function M(B,Y,J,K,z,q){var I=Y&16383,y=Y>>14;while(--q>=0){var e=this[B]&16383,XD=this[B++]>>14,iD=y*e+XD*I;e=I*e+((iD&16383)<<14)+J[K]+z,z=(e>>28)+(iD>>14)+y*XD,J[K++]=e&268435455}return z}var Z=typeof navigator!=="undefined";if(Z&&F&&navigator.appName=="Microsoft Internet Explorer")C.prototype.am=$,D=30;else if(Z&&F&&navigator.appName!="Netscape")C.prototype.am=w,D=26;else C.prototype.am=M,D=28;C.prototype.DB=D,C.prototype.DM=(1<<D)-1,C.prototype.DV=1<<D;var Q=52;C.prototype.FV=Math.pow(2,Q),C.prototype.F1=Q-D,C.prototype.F2=2*D-Q;var X="0123456789abcdefghijklmnopqrstuvwxyz",A=new Array,U,H;U=48;for(H=0;H<=9;++H)A[U++]=H;U=97;for(H=10;H<36;++H)A[U++]=H;U=65;for(H=10;H<36;++H)A[U++]=H;function W(B){return X.charAt(B)}function m(B,Y){var J=A[B.charCodeAt(Y)];return J==null?-1:J}function n(B){for(var Y=this.t-1;Y>=0;--Y)B[Y]=this[Y];B.t=this.t,B.s=this.s}function r(B){if(this.t=1,this.s=B<0?-1:0,B>0)this[0]=B;else if(B<-1)this[0]=B+this.DV;else this.t=0}function uD(B){var Y=E();return Y.fromInt(B),Y}function FD(B,Y){var J;if(Y==16)J=4;else if(Y==8)J=3;else if(Y==256)J=8;else if(Y==2)J=1;else if(Y==32)J=5;else if(Y==4)J=2;else{this.fromRadix(B,Y);return}this.t=0,this.s=0;var K=B.length,z=!1,q=0;while(--K>=0){var I=J==8?B[K]&255:m(B,K);if(I<0){if(B.charAt(K)=="-")z=!0;continue}if(z=!1,q==0)this[this.t++]=I;else if(q+J>this.DB)this[this.t-1]|=(I&(1<<this.DB-q)-1)<<q,this[this.t++]=I>>this.DB-q;else this[this.t-1]|=I<<q;if(q+=J,q>=this.DB)q-=this.DB}if(J==8&&(B[0]&128)!=0){if(this.s=-1,q>0)this[this.t-1]|=(1<<this.DB-q)-1<<q}if(this.clamp(),z)C.ZERO.subTo(this,this)}function hD(){var B=this.s&this.DM;while(this.t>0&&this[this.t-1]==B)--this.t}function rD(B){if(this.s<0)return"-"+this.negate().toString(B);var Y;if(B==16)Y=4;else if(B==8)Y=3;else if(B==2)Y=1;else if(B==32)Y=5;else if(B==4)Y=2;else return this.toRadix(B);var J=(1<<Y)-1,K,z=!1,q="",I=this.t,y=this.DB-I*this.DB%Y;if(I-- >0){if(y<this.DB&&(K=this[I]>>y)>0)z=!0,q=W(K);while(I>=0){if(y<Y)K=(this[I]&(1<<y)-1)<<Y-y,K|=this[--I]>>(y+=this.DB-Y);else if(K=this[I]>>(y-=Y)&J,y<=0)y+=this.DB,--I;if(K>0)z=!0;if(z)q+=W(K)}}return z?q:"0"}function ND(){var B=E();return C.ZERO.subTo(this,B),B}function UD(){return this.s<0?this.negate():this}function p(B){var Y=this.s-B.s;if(Y!=0)return Y;var J=this.t;if(Y=J-B.t,Y!=0)return this.s<0?-Y:Y;while(--J>=0)if((Y=this[J]-B[J])!=0)return Y;return 0}function _(B){var Y=1,J;if((J=B>>>16)!=0)B=J,Y+=16;if((J=B>>8)!=0)B=J,Y+=8;if((J=B>>4)!=0)B=J,Y+=4;if((J=B>>2)!=0)B=J,Y+=2;if((J=B>>1)!=0)B=J,Y+=1;return Y}function qD(){if(this.t<=0)return 0;return this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)}function OD(B,Y){var J;for(J=this.t-1;J>=0;--J)Y[J+B]=this[J];for(J=B-1;J>=0;--J)Y[J]=0;Y.t=this.t+B,Y.s=this.s}function P(B,Y){for(var J=B;J<this.t;++J)Y[J-B]=this[J];Y.t=Math.max(this.t-B,0),Y.s=this.s}function L(B,Y){var J=B%this.DB,K=this.DB-J,z=(1<<K)-1,q=Math.floor(B/this.DB),I=this.s<<J&this.DM,y;for(y=this.t-1;y>=0;--y)Y[y+q+1]=this[y]>>K|I,I=(this[y]&z)<<J;for(y=q-1;y>=0;--y)Y[y]=0;Y[q]=I,Y.t=this.t+q+1,Y.s=this.s,Y.clamp()}function V(B,Y){Y.s=this.s;var J=Math.floor(B/this.DB);if(J>=this.t){Y.t=0;return}var K=B%this.DB,z=this.DB-K,q=(1<<K)-1;Y[0]=this[J]>>K;for(var I=J+1;I<this.t;++I)Y[I-J-1]|=(this[I]&q)<<z,Y[I-J]=this[I]>>K;if(K>0)Y[this.t-J-1]|=(this.s&q)<<z;Y.t=this.t-J,Y.clamp()}function g(B,Y){var J=0,K=0,z=Math.min(B.t,this.t);while(J<z)K+=this[J]-B[J],Y[J++]=K&this.DM,K>>=this.DB;if(B.t<this.t){K-=B.s;while(J<this.t)K+=this[J],Y[J++]=K&this.DM,K>>=this.DB;K+=this.s}else{K+=this.s;while(J<B.t)K-=B[J],Y[J++]=K&this.DM,K>>=this.DB;K-=B.s}if(Y.s=K<0?-1:0,K<-1)Y[J++]=this.DV+K;else if(K>0)Y[J++]=K;Y.t=J,Y.clamp()}function h(B,Y){var J=this.abs(),K=B.abs(),z=J.t;Y.t=z+K.t;while(--z>=0)Y[z]=0;for(z=0;z<K.t;++z)Y[z+J.t]=J.am(0,K[z],Y,z,0,J.t);if(Y.s=0,Y.clamp(),this.s!=B.s)C.ZERO.subTo(Y,Y)}function k(B){var Y=this.abs(),J=B.t=2*Y.t;while(--J>=0)B[J]=0;for(J=0;J<Y.t-1;++J){var K=Y.am(J,Y[J],B,2*J,0,1);if((B[J+Y.t]+=Y.am(J+1,2*Y[J],B,2*J+1,K,Y.t-J-1))>=Y.DV)B[J+Y.t]-=Y.DV,B[J+Y.t+1]=1}if(B.t>0)B[B.t-1]+=Y.am(J,Y[J],B,2*J,0,1);B.s=0,B.clamp()}function c(B,Y,J){var K=B.abs();if(K.t<=0)return;var z=this.abs();if(z.t<K.t){if(Y!=null)Y.fromInt(0);if(J!=null)this.copyTo(J);return}if(J==null)J=E();var q=E(),I=this.s,y=B.s,e=this.DB-_(K[K.t-1]);if(e>0)K.lShiftTo(e,q),z.lShiftTo(e,J);else K.copyTo(q),z.copyTo(J);var XD=q.t,iD=q[XD-1];if(iD==0)return;var fD=iD*(1<<this.F1)+(XD>1?q[XD-2]>>this.F2:0),Au=this.FV/fD,N0=(1<<this.F1)/fD,Du=1<<this.F2,uu=J.t,I0=uu-XD,Ou=Y==null?E():Y;if(q.dlShiftTo(I0,Ou),J.compareTo(Ou)>=0)J[J.t++]=1,J.subTo(Ou,J);C.ONE.dlShiftTo(XD,Ou),Ou.subTo(q,q);while(q.t<XD)q[q.t++]=0;while(--I0>=0){var v1=J[--uu]==iD?this.DM:Math.floor(J[uu]*Au+(J[uu-1]+Du)*N0);if((J[uu]+=q.am(0,v1,J,I0,0,XD))<v1){q.dlShiftTo(I0,Ou),J.subTo(Ou,J);while(J[uu]<--v1)J.subTo(Ou,J)}}if(Y!=null){if(J.drShiftTo(XD,Y),I!=y)C.ZERO.subTo(Y,Y)}if(J.t=XD,J.clamp(),e>0)J.rShiftTo(e,J);if(I<0)C.ZERO.subTo(J,J)}function v(B){var Y=E();if(this.abs().divRemTo(B,null,Y),this.s<0&&Y.compareTo(C.ZERO)>0)B.subTo(Y,Y);return Y}function i(B){this.m=B}function o(B){if(B.s<0||B.compareTo(this.m)>=0)return B.mod(this.m);else return B}function BD(B){return B}function VD(B){B.divRemTo(this.m,null,B)}function Yu(B,Y,J){B.multiplyTo(Y,J),this.reduce(J)}function sD(B,Y){B.squareTo(Y),this.reduce(Y)}i.prototype.convert=o,i.prototype.revert=BD,i.prototype.reduce=VD,i.prototype.mulTo=Yu,i.prototype.sqrTo=sD;function zu(){if(this.t<1)return 0;var B=this[0];if((B&1)==0)return 0;var Y=B&3;return Y=Y*(2-(B&15)*Y)&15,Y=Y*(2-(B&255)*Y)&255,Y=Y*(2-((B&65535)*Y&65535))&65535,Y=Y*(2-B*Y%this.DV)%this.DV,Y>0?this.DV-Y:-Y}function ZD(B){this.m=B,this.mp=B.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<B.DB-15)-1,this.mt2=2*B.t}function JD(B){var Y=E();if(B.abs().dlShiftTo(this.m.t,Y),Y.divRemTo(this.m,null,Y),B.s<0&&Y.compareTo(C.ZERO)>0)this.m.subTo(Y,Y);return Y}function kD(B){var Y=E();return B.copyTo(Y),this.reduce(Y),Y}function oD(B){while(B.t<=this.mt2)B[B.t++]=0;for(var Y=0;Y<this.m.t;++Y){var J=B[Y]&32767,K=J*this.mpl+((J*this.mph+(B[Y]>>15)*this.mpl&this.um)<<15)&B.DM;J=Y+this.m.t,B[J]+=this.m.am(0,K,B,Y,0,this.m.t);while(B[J]>=B.DV)B[J]-=B.DV,B[++J]++}if(B.clamp(),B.drShiftTo(this.m.t,B),B.compareTo(this.m)>=0)B.subTo(this.m,B)}function Ju(B,Y){B.squareTo(Y),this.reduce(Y)}function _u(B,Y,J){B.multiplyTo(Y,J),this.reduce(J)}ZD.prototype.convert=JD,ZD.prototype.revert=kD,ZD.prototype.reduce=oD,ZD.prototype.mulTo=_u,ZD.prototype.sqrTo=Ju;function vu(){return(this.t>0?this[0]&1:this.s)==0}function u0(B,Y){if(B>4294967295||B<1)return C.ONE;var J=E(),K=E(),z=Y.convert(this),q=_(B)-1;z.copyTo(J);while(--q>=0)if(Y.sqrTo(J,K),(B&1<<q)>0)Y.mulTo(K,z,J);else{var I=J;J=K,K=I}return Y.revert(J)}function F0(B,Y){var J;if(B<256||Y.isEven())J=new i(Y);else J=new ZD(Y);return this.exp(B,J)}C.prototype.copyTo=n,C.prototype.fromInt=r,C.prototype.fromString=FD,C.prototype.clamp=hD,C.prototype.dlShiftTo=OD,C.prototype.drShiftTo=P,C.prototype.lShiftTo=L,C.prototype.rShiftTo=V,C.prototype.subTo=g,C.prototype.multiplyTo=h,C.prototype.squareTo=k,C.prototype.divRemTo=c,C.prototype.invDigit=zu,C.prototype.isEven=vu,C.prototype.exp=u0,C.prototype.toString=rD,C.prototype.negate=ND,C.prototype.abs=UD,C.prototype.compareTo=p,C.prototype.bitLength=qD,C.prototype.mod=v,C.prototype.modPowInt=F0,C.ZERO=uD(0),C.ONE=uD(1);function C0(){var B=E();return this.copyTo(B),B}function $0(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function S2(){return this.t==0?this.s:this[0]<<24>>24}function x4(){return this.t==0?this.s:this[0]<<16>>16}function n4(B){return Math.floor(Math.LN2*this.DB/Math.log(B))}function d4(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function r4(B){if(B==null)B=10;if(this.signum()==0||B<2||B>36)return"0";var Y=this.chunkSize(B),J=Math.pow(B,Y),K=uD(J),z=E(),q=E(),I="";this.divRemTo(K,z,q);while(z.signum()>0)I=(J+q.intValue()).toString(B).substr(1)+I,z.divRemTo(K,z,q);return q.intValue().toString(B)+I}function i4(B,Y){if(this.fromInt(0),Y==null)Y=10;var J=this.chunkSize(Y),K=Math.pow(Y,J),z=!1,q=0,I=0;for(var y=0;y<B.length;++y){var e=m(B,y);if(e<0){if(B.charAt(y)=="-"&&this.signum()==0)z=!0;continue}if(I=Y*I+e,++q>=J)this.dMultiply(K),this.dAddOffset(I,0),q=0,I=0}if(q>0)this.dMultiply(Math.pow(Y,q)),this.dAddOffset(I,0);if(z)C.ZERO.subTo(this,this)}function l4(B,Y,J){if(typeof Y=="number")if(B<2)this.fromInt(1);else{if(this.fromNumber(B,J),!this.testBit(B-1))this.bitwiseTo(C.ONE.shiftLeft(B-1),b1,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(Y))if(this.dAddOffset(2,0),this.bitLength()>B)this.subTo(C.ONE.shiftLeft(B-1),this)}else{var K=new Array,z=B&7;if(K.length=(B>>3)+1,Y.nextBytes(K),z>0)K[0]&=(1<<z)-1;else K[0]=0;this.fromString(K,256)}}function p4(){var B=this.t,Y=new Array;Y[0]=this.s;var J=this.DB-B*this.DB%8,K,z=0;if(B-- >0){if(J<this.DB&&(K=this[B]>>J)!=(this.s&this.DM)>>J)Y[z++]=K|this.s<<this.DB-J;while(B>=0){if(J<8)K=(this[B]&(1<<J)-1)<<8-J,K|=this[--B]>>(J+=this.DB-8);else if(K=this[B]>>(J-=8)&255,J<=0)J+=this.DB,--B;if((K&128)!=0)K|=-256;if(z==0&&(this.s&128)!=(K&128))++z;if(z>0||K!=this.s)Y[z++]=K}}return Y}function t4(B){return this.compareTo(B)==0}function a4(B){return this.compareTo(B)<0?this:B}function s4(B){return this.compareTo(B)>0?this:B}function o4(B,Y,J){var K,z,q=Math.min(B.t,this.t);for(K=0;K<q;++K)J[K]=Y(this[K],B[K]);if(B.t<this.t){z=B.s&this.DM;for(K=q;K<this.t;++K)J[K]=Y(this[K],z);J.t=this.t}else{z=this.s&this.DM;for(K=q;K<B.t;++K)J[K]=Y(z,B[K]);J.t=B.t}J.s=Y(this.s,B.s),J.clamp()}function e4(B,Y){return B&Y}function D$(B){var Y=E();return this.bitwiseTo(B,e4,Y),Y}function b1(B,Y){return B|Y}function u$(B){var Y=E();return this.bitwiseTo(B,b1,Y),Y}function g2(B,Y){return B^Y}function F$(B){var Y=E();return this.bitwiseTo(B,g2,Y),Y}function j2(B,Y){return B&~Y}function C$(B){var Y=E();return this.bitwiseTo(B,j2,Y),Y}function $$(){var B=E();for(var Y=0;Y<this.t;++Y)B[Y]=this.DM&~this[Y];return B.t=this.t,B.s=~this.s,B}function E$(B){var Y=E();if(B<0)this.rShiftTo(-B,Y);else this.lShiftTo(B,Y);return Y}function w$(B){var Y=E();if(B<0)this.lShiftTo(-B,Y);else this.rShiftTo(B,Y);return Y}function B$(B){if(B==0)return-1;var Y=0;if((B&65535)==0)B>>=16,Y+=16;if((B&255)==0)B>>=8,Y+=8;if((B&15)==0)B>>=4,Y+=4;if((B&3)==0)B>>=2,Y+=2;if((B&1)==0)++Y;return Y}function Y$(){for(var B=0;B<this.t;++B)if(this[B]!=0)return B*this.DB+B$(this[B]);if(this.s<0)return this.t*this.DB;return-1}function J$(B){var Y=0;while(B!=0)B&=B-1,++Y;return Y}function M$(){var B=0,Y=this.s&this.DM;for(var J=0;J<this.t;++J)B+=J$(this[J]^Y);return B}function Z$(B){var Y=Math.floor(B/this.DB);if(Y>=this.t)return this.s!=0;return(this[Y]&1<<B%this.DB)!=0}function K$(B,Y){var J=C.ONE.shiftLeft(B);return this.bitwiseTo(J,Y,J),J}function X$(B){return this.changeBit(B,b1)}function Q$(B){return this.changeBit(B,j2)}function W$(B){return this.changeBit(B,g2)}function z$(B,Y){var J=0,K=0,z=Math.min(B.t,this.t);while(J<z)K+=this[J]+B[J],Y[J++]=K&this.DM,K>>=this.DB;if(B.t<this.t){K+=B.s;while(J<this.t)K+=this[J],Y[J++]=K&this.DM,K>>=this.DB;K+=this.s}else{K+=this.s;while(J<B.t)K+=B[J],Y[J++]=K&this.DM,K>>=this.DB;K+=B.s}if(Y.s=K<0?-1:0,K>0)Y[J++]=K;else if(K<-1)Y[J++]=this.DV+K;Y.t=J,Y.clamp()}function A$(B){var Y=E();return this.addTo(B,Y),Y}function q$(B){var Y=E();return this.subTo(B,Y),Y}function G$(B){var Y=E();return this.multiplyTo(B,Y),Y}function H$(){var B=E();return this.squareTo(B),B}function U$(B){var Y=E();return this.divRemTo(B,Y,null),Y}function O$(B){var Y=E();return this.divRemTo(B,null,Y),Y}function V$(B){var Y=E(),J=E();return this.divRemTo(B,Y,J),new Array(Y,J)}function T$(B){this[this.t]=this.am(0,B-1,this,0,0,this.t),++this.t,this.clamp()}function L$(B,Y){if(B==0)return;while(this.t<=Y)this[this.t++]=0;this[Y]+=B;while(this[Y]>=this.DV){if(this[Y]-=this.DV,++Y>=this.t)this[this.t++]=0;++this[Y]}}function E0(){}function R2(B){return B}function h$(B,Y,J){B.multiplyTo(Y,J)}function N$(B,Y){B.squareTo(Y)}E0.prototype.convert=R2,E0.prototype.revert=R2,E0.prototype.mulTo=h$,E0.prototype.sqrTo=N$;function I$(B){return this.exp(B,new E0)}function y$(B,Y,J){var K=Math.min(this.t+B.t,Y);J.s=0,J.t=K;while(K>0)J[--K]=0;var z;for(z=J.t-this.t;K<z;++K)J[K+this.t]=this.am(0,B[K],J,K,0,this.t);for(z=Math.min(B.t,Y);K<z;++K)this.am(0,B[K],J,K,0,Y-K);J.clamp()}function S$(B,Y,J){--Y;var K=J.t=this.t+B.t-Y;J.s=0;while(--K>=0)J[K]=0;for(K=Math.max(Y-this.t,0);K<B.t;++K)J[this.t+K-Y]=this.am(Y-K,B[K],J,0,0,this.t+K-Y);J.clamp(),J.drShiftTo(1,J)}function Su(B){this.r2=E(),this.q3=E(),C.ONE.dlShiftTo(2*B.t,this.r2),this.mu=this.r2.divide(B),this.m=B}function g$(B){if(B.s<0||B.t>2*this.m.t)return B.mod(this.m);else if(B.compareTo(this.m)<0)return B;else{var Y=E();return B.copyTo(Y),this.reduce(Y),Y}}function j$(B){return B}function R$(B){if(B.drShiftTo(this.m.t-1,this.r2),B.t>this.m.t+1)B.t=this.m.t+1,B.clamp();this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(B.compareTo(this.r2)<0)B.dAddOffset(1,this.m.t+1);B.subTo(this.r2,B);while(B.compareTo(this.m)>=0)B.subTo(this.m,B)}function P$(B,Y){B.squareTo(Y),this.reduce(Y)}function k$(B,Y,J){B.multiplyTo(Y,J),this.reduce(J)}Su.prototype.convert=g$,Su.prototype.revert=j$,Su.prototype.reduce=R$,Su.prototype.mulTo=k$,Su.prototype.sqrTo=P$;function b$(B,Y){var J=B.bitLength(),K,z=uD(1),q;if(J<=0)return z;else if(J<18)K=1;else if(J<48)K=3;else if(J<144)K=4;else if(J<768)K=5;else K=6;if(J<8)q=new i(Y);else if(Y.isEven())q=new Su(Y);else q=new ZD(Y);var I=new Array,y=3,e=K-1,XD=(1<<K)-1;if(I[1]=q.convert(this),K>1){var iD=E();q.sqrTo(I[1],iD);while(y<=XD)I[y]=E(),q.mulTo(iD,I[y-2],I[y]),y+=2}var fD=B.t-1,Au,N0=!0,Du=E(),uu;J=_(B[fD])-1;while(fD>=0){if(J>=e)Au=B[fD]>>J-e&XD;else if(Au=(B[fD]&(1<<J+1)-1)<<e-J,fD>0)Au|=B[fD-1]>>this.DB+J-e;y=K;while((Au&1)==0)Au>>=1,--y;if((J-=y)<0)J+=this.DB,--fD;if(N0)I[Au].copyTo(z),N0=!1;else{while(y>1)q.sqrTo(z,Du),q.sqrTo(Du,z),y-=2;if(y>0)q.sqrTo(z,Du);else uu=z,z=Du,Du=uu;q.mulTo(Du,I[Au],z)}while(fD>=0&&(B[fD]&1<<J)==0)if(q.sqrTo(z,Du),uu=z,z=Du,Du=uu,--J<0)J=this.DB-1,--fD}return q.revert(z)}function c$(B){var Y=this.s<0?this.negate():this.clone(),J=B.s<0?B.negate():B.clone();if(Y.compareTo(J)<0){var K=Y;Y=J,J=K}var z=Y.getLowestSetBit(),q=J.getLowestSetBit();if(q<0)return Y;if(z<q)q=z;if(q>0)Y.rShiftTo(q,Y),J.rShiftTo(q,J);while(Y.signum()>0){if((z=Y.getLowestSetBit())>0)Y.rShiftTo(z,Y);if((z=J.getLowestSetBit())>0)J.rShiftTo(z,J);if(Y.compareTo(J)>=0)Y.subTo(J,Y),Y.rShiftTo(1,Y);else J.subTo(Y,J),J.rShiftTo(1,J)}if(q>0)J.lShiftTo(q,J);return J}function m$(B){if(B<=0)return 0;var Y=this.DV%B,J=this.s<0?B-1:0;if(this.t>0)if(Y==0)J=this[0]%B;else for(var K=this.t-1;K>=0;--K)J=(Y*J+this[K])%B;return J}function _$(B){var Y=B.isEven();if(this.isEven()&&Y||B.signum()==0)return C.ZERO;var J=B.clone(),K=this.clone(),z=uD(1),q=uD(0),I=uD(0),y=uD(1);while(J.signum()!=0){while(J.isEven()){if(J.rShiftTo(1,J),Y){if(!z.isEven()||!q.isEven())z.addTo(this,z),q.subTo(B,q);z.rShiftTo(1,z)}else if(!q.isEven())q.subTo(B,q);q.rShiftTo(1,q)}while(K.isEven()){if(K.rShiftTo(1,K),Y){if(!I.isEven()||!y.isEven())I.addTo(this,I),y.subTo(B,y);I.rShiftTo(1,I)}else if(!y.isEven())y.subTo(B,y);y.rShiftTo(1,y)}if(J.compareTo(K)>=0){if(J.subTo(K,J),Y)z.subTo(I,z);q.subTo(y,q)}else{if(K.subTo(J,K),Y)I.subTo(z,I);y.subTo(q,y)}}if(K.compareTo(C.ONE)!=0)return C.ZERO;if(y.compareTo(B)>=0)return y.subtract(B);if(y.signum()<0)y.addTo(B,y);else return y;if(y.signum()<0)return y.add(B);else return y}var ID=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],v$=67108864/ID[ID.length-1];function f$(B){var Y,J=this.abs();if(J.t==1&&J[0]<=ID[ID.length-1]){for(Y=0;Y<ID.length;++Y)if(J[0]==ID[Y])return!0;return!1}if(J.isEven())return!1;Y=1;while(Y<ID.length){var K=ID[Y],z=Y+1;while(z<ID.length&&K<v$)K*=ID[z++];K=J.modInt(K);while(Y<z)if(K%ID[Y++]==0)return!1}return J.millerRabin(B)}function x$(B){var Y=this.subtract(C.ONE),J=Y.getLowestSetBit();if(J<=0)return!1;var K=Y.shiftRight(J);if(B=B+1>>1,B>ID.length)B=ID.length;var z=E();for(var q=0;q<B;++q){z.fromInt(ID[Math.floor(Math.random()*ID.length)]);var I=z.modPow(K,this);if(I.compareTo(C.ONE)!=0&&I.compareTo(Y)!=0){var y=1;while(y++<J&&I.compareTo(Y)!=0)if(I=I.modPowInt(2,this),I.compareTo(C.ONE)==0)return!1;if(I.compareTo(Y)!=0)return!1}}return!0}C.prototype.chunkSize=n4,C.prototype.toRadix=r4,C.prototype.fromRadix=i4,C.prototype.fromNumber=l4,C.prototype.bitwiseTo=o4,C.prototype.changeBit=K$,C.prototype.addTo=z$,C.prototype.dMultiply=T$,C.prototype.dAddOffset=L$,C.prototype.multiplyLowerTo=y$,C.prototype.multiplyUpperTo=S$,C.prototype.modInt=m$,C.prototype.millerRabin=x$,C.prototype.clone=C0,C.prototype.intValue=$0,C.prototype.byteValue=S2,C.prototype.shortValue=x4,C.prototype.signum=d4,C.prototype.toByteArray=p4,C.prototype.equals=t4,C.prototype.min=a4,C.prototype.max=s4,C.prototype.and=D$,C.prototype.or=u$,C.prototype.xor=F$,C.prototype.andNot=C$,C.prototype.not=$$,C.prototype.shiftLeft=E$,C.prototype.shiftRight=w$,C.prototype.getLowestSetBit=Y$,C.prototype.bitCount=M$,C.prototype.testBit=Z$,C.prototype.setBit=X$,C.prototype.clearBit=Q$,C.prototype.flipBit=W$,C.prototype.add=A$,C.prototype.subtract=q$,C.prototype.multiply=G$,C.prototype.divide=U$,C.prototype.remainder=O$,C.prototype.divideAndRemainder=V$,C.prototype.modPow=b$,C.prototype.modInverse=_$,C.prototype.pow=I$,C.prototype.gcd=c$,C.prototype.isProbablePrime=f$,C.prototype.square=H$,C.prototype.Barrett=Su;var h0,vD,KD;function n$(B){if(vD[KD++]^=B&255,vD[KD++]^=B>>8&255,vD[KD++]^=B>>16&255,vD[KD++]^=B>>24&255,KD>=_1)KD-=_1}function P2(){n$(new Date().getTime())}if(vD==null){vD=new Array,KD=0;var eD;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var k2=new Uint8Array(32);window.crypto.getRandomValues(k2);for(eD=0;eD<32;++eD)vD[KD++]=k2[eD]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var b2=window.crypto.random(32);for(eD=0;eD<b2.length;++eD)vD[KD++]=b2.charCodeAt(eD)&255}}while(KD<_1)eD=Math.floor(65536*Math.random()),vD[KD++]=eD>>>8,vD[KD++]=eD&255;KD=0,P2()}function d$(){if(h0==null){P2(),h0=p$(),h0.init(vD);for(KD=0;KD<vD.length;++KD)vD[KD]=0;KD=0}return h0.next()}function r$(B){var Y;for(Y=0;Y<B.length;++Y)B[Y]=d$()}function c1(){}c1.prototype.nextBytes=r$;function m1(){this.i=0,this.j=0,this.S=new Array}function i$(B){var Y,J,K;for(Y=0;Y<256;++Y)this.S[Y]=Y;J=0;for(Y=0;Y<256;++Y)J=J+this.S[Y]+B[Y%B.length]&255,K=this.S[Y],this.S[Y]=this.S[J],this.S[J]=K;this.i=0,this.j=0}function l$(){var B;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,B=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=B,this.S[B+this.S[this.i]&255]}m1.prototype.init=i$,m1.prototype.next=l$;function p$(){return new m1}var _1=256;if(typeof y1!=="undefined")y1=B4.exports={default:C,BigInteger:C,SecureRandom:c1};else this.jsbn={BigInteger:C,SecureRandom:c1}}).call(y1)});var T0=b((Y4)=>{(function(){var D={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u($){return C(w($),arguments)}function F($,M){return u.apply(null,[$].concat(M||[]))}function C($,M){var Z=1,Q=$.length,X,A="",U,H,W,m,n,r,uD,FD;for(U=0;U<Q;U++)if(typeof $[U]==="string")A+=$[U];else if(typeof $[U]==="object"){if(W=$[U],W.keys){X=M[Z];for(H=0;H<W.keys.length;H++){if(X==null)throw new Error(u('[sprintf] Cannot access property "%s" of undefined value "%s"',W.keys[H],W.keys[H-1]));X=X[W.keys[H]]}}else if(W.param_no)X=M[W.param_no];else X=M[Z++];if(D.not_type.test(W.type)&&D.not_primitive.test(W.type)&&X instanceof Function)X=X();if(D.numeric_arg.test(W.type)&&(typeof X!=="number"&&isNaN(X)))throw new TypeError(u("[sprintf] expecting number but found %T",X));if(D.number.test(W.type))uD=X>=0;switch(W.type){case"b":X=parseInt(X,10).toString(2);break;case"c":X=String.fromCharCode(parseInt(X,10));break;case"d":case"i":X=parseInt(X,10);break;case"j":X=JSON.stringify(X,null,W.width?parseInt(W.width):0);break;case"e":X=W.precision?parseFloat(X).toExponential(W.precision):parseFloat(X).toExponential();break;case"f":X=W.precision?parseFloat(X).toFixed(W.precision):parseFloat(X);break;case"g":X=W.precision?String(Number(X.toPrecision(W.precision))):parseFloat(X);break;case"o":X=(parseInt(X,10)>>>0).toString(8);break;case"s":X=String(X),X=W.precision?X.substring(0,W.precision):X;break;case"t":X=String(!!X),X=W.precision?X.substring(0,W.precision):X;break;case"T":X=Object.prototype.toString.call(X).slice(8,-1).toLowerCase(),X=W.precision?X.substring(0,W.precision):X;break;case"u":X=parseInt(X,10)>>>0;break;case"v":X=X.valueOf(),X=W.precision?X.substring(0,W.precision):X;break;case"x":X=(parseInt(X,10)>>>0).toString(16);break;case"X":X=(parseInt(X,10)>>>0).toString(16).toUpperCase();break}if(D.json.test(W.type))A+=X;else{if(D.number.test(W.type)&&(!uD||W.sign))FD=uD?"+":"-",X=X.toString().replace(D.sign,"");else FD="";n=W.pad_char?W.pad_char==="0"?"0":W.pad_char.charAt(1):" ",r=W.width-(FD+X).length,m=W.width?r>0?n.repeat(r):"":"",A+=W.align?FD+X+m:n==="0"?FD+m+X:m+FD+X}}return A}var E=Object.create(null);function w($){if(E[$])return E[$];var M=$,Z,Q=[],X=0;while(M){if((Z=D.text.exec(M))!==null)Q.push(Z[0]);else if((Z=D.modulo.exec(M))!==null)Q.push("%");else if((Z=D.placeholder.exec(M))!==null){if(Z[2]){X|=1;var A=[],U=Z[2],H=[];if((H=D.key.exec(U))!==null){A.push(H[1]);while((U=U.substring(H[0].length))!=="")if((H=D.key_access.exec(U))!==null)A.push(H[1]);else if((H=D.index_access.exec(U))!==null)A.push(H[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key")}else throw new SyntaxError("[sprintf] failed to parse named argument key");Z[2]=A}else X|=2;if(X===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");Q.push({placeholder:Z[0],param_no:Z[1],keys:Z[2],sign:Z[3],pad_char:Z[4],align:Z[5],width:Z[6],precision:Z[7],type:Z[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");M=M.substring(Z[0].length)}return E[$]=Q}if(typeof Y4!=="undefined")Y4.sprintf=u,Y4.vsprintf=F;if(typeof window!=="undefined"){if(window.sprintf=u,window.vsprintf=F,typeof define==="function"&&define.amd)define(function(){return{sprintf:u,vsprintf:F}})}})()});var A2=b((Qu)=>{var BZ=Qu&&Qu.__createBinding||(Object.create?function(D,u,F,C){if(C===void 0)C=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,C,E)}:function(D,u,F,C){if(C===void 0)C=F;D[C]=u[F]}),YZ=Qu&&Qu.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),Z4=Qu&&Qu.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))BZ(u,D,F)}return YZ(u,D),u};Object.defineProperty(Qu,"__esModule",{value:!0});Qu.Address4=void 0;var J4=Z4(Q2()),Bu=Z4(W2()),M4=I1(),L0=z2(),su=T0();class aD{constructor(D){this.groups=Bu.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=J4.isCorrect(Bu.BITS),this.isInSubnet=J4.isInSubnet,this.address=D;let u=Bu.RE_SUBNET_STRING.exec(D);if(u){if(this.parsedSubnet=u[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>Bu.BITS)throw new M4.AddressError("Invalid subnet mask.");D=D.replace(Bu.RE_SUBNET_STRING,"")}this.addressMinusSuffix=D,this.parsedAddress=this.parse(D)}static isValid(D){try{return new aD(D),!0}catch(u){return!1}}parse(D){let u=D.split(".");if(!D.match(Bu.RE_ADDRESS))throw new M4.AddressError("Invalid IPv4 address.");return u}correctForm(){return this.parsedAddress.map((D)=>parseInt(D,10)).join(".")}static fromHex(D){let u=D.replace(/:/g,"").padStart(8,"0"),F=[],C;for(C=0;C<8;C+=2){let E=u.slice(C,C+2);F.push(parseInt(E,16))}return new aD(F.join("."))}static fromInteger(D){return aD.fromHex(D.toString(16))}static fromArpa(D){let F=D.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join(".");return new aD(F)}toHex(){return this.parsedAddress.map((D)=>su.sprintf("%02x",parseInt(D,10))).join(":")}toArray(){return this.parsedAddress.map((D)=>parseInt(D,10))}toGroup6(){let D=[],u;for(u=0;u<Bu.GROUPS;u+=2){let F=su.sprintf("%02x%02x",parseInt(this.parsedAddress[u],10),parseInt(this.parsedAddress[u+1],10));D.push(su.sprintf("%x",parseInt(F,16)))}return D.join(":")}bigInteger(){return new L0.BigInteger(this.parsedAddress.map((D)=>su.sprintf("%02x",parseInt(D,10))).join(""),16)}_startAddress(){return new L0.BigInteger(this.mask()+"0".repeat(Bu.BITS-this.subnetMask),2)}startAddress(){return aD.fromBigInteger(this._startAddress())}startAddressExclusive(){let D=new L0.BigInteger("1");return aD.fromBigInteger(this._startAddress().add(D))}_endAddress(){return new L0.BigInteger(this.mask()+"1".repeat(Bu.BITS-this.subnetMask),2)}endAddress(){return aD.fromBigInteger(this._endAddress())}endAddressExclusive(){let D=new L0.BigInteger("1");return aD.fromBigInteger(this._endAddress().subtract(D))}static fromBigInteger(D){return aD.fromInteger(parseInt(D.toString(),10))}mask(D){if(D===void 0)D=this.subnetMask;return this.getBitsBase2(0,D)}getBitsBase2(D,u){return this.binaryZeroPad().slice(D,u)}reverseForm(D){if(!D)D={};let u=this.correctForm().split(".").reverse().join(".");if(D.omitSuffix)return u;return su.sprintf("%s.in-addr.arpa.",u)}isMulticast(){return this.isInSubnet(new aD("224.0.0.0/4"))}binaryZeroPad(){return this.bigInteger().toString(2).padStart(Bu.BITS,"0")}groupForV6(){let D=this.parsedAddress;return this.address.replace(Bu.RE_ADDRESS,su.sprintf('<span class="hover-group group-v4 group-6">%s</span>.<span class="hover-group group-v4 group-7">%s</span>',D.slice(0,2).join("."),D.slice(2,4).join(".")))}}Qu.Address4=aD});var q2=b((K4)=>{Object.defineProperty(K4,"__esModule",{value:!0});K4.RE_URL_WITH_PORT=K4.RE_URL=K4.RE_ZONE_STRING=K4.RE_SUBNET_STRING=K4.RE_BAD_ADDRESS=K4.RE_BAD_CHARACTERS=K4.TYPES=K4.SCOPES=K4.GROUPS=K4.BITS=void 0;K4.BITS=128;K4.GROUPS=8;K4.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"};K4.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"};K4.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi;K4.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;K4.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/;K4.RE_ZONE_STRING=/%.*$/;K4.RE_URL=new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/);K4.RE_URL_WITH_PORT=new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/)});var G2=b((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.simpleGroup=A4.spanLeadingZeroes=A4.spanAll=A4.spanAllZeroes=void 0;var Q4=T0();function W4(D){return D.replace(/(0+)/g,'<span class="zero">$1</span>')}A4.spanAllZeroes=W4;function qZ(D,u=0){return D.split("").map((C,E)=>Q4.sprintf('<span class="digit value-%s position-%d">%s</span>',C,E+u,W4(C))).join("")}A4.spanAll=qZ;function z4(D){return D.replace(/^(0+)/,'<span class="zero">$1</span>')}function GZ(D){return D.split(":").map((F)=>z4(F)).join(":")}A4.spanLeadingZeroes=GZ;function HZ(D,u=0){return D.split(":").map((C,E)=>{if(/group-v4/.test(C))return C;return Q4.sprintf('<span class="hover-group group-%d">%s</span>',E+u,z4(C))})}A4.simpleGroup=HZ});var G4=b((WD)=>{var TZ=WD&&WD.__createBinding||(Object.create?function(D,u,F,C){if(C===void 0)C=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,C,E)}:function(D,u,F,C){if(C===void 0)C=F;D[C]=u[F]}),LZ=WD&&WD.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),hZ=WD&&WD.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))TZ(u,D,F)}return LZ(u,D),u};Object.defineProperty(WD,"__esModule",{value:!0});WD.possibleElisions=WD.simpleRegularExpression=WD.ADDRESS_BOUNDARY=WD.padGroup=WD.groupPossibilities=void 0;var NZ=hZ(q2()),ou=T0();function g1(D){return ou.sprintf("(%s)",D.join("|"))}WD.groupPossibilities=g1;function S1(D){if(D.length<4)return ou.sprintf("0{0,%d}%s",4-D.length,D);return D}WD.padGroup=S1;WD.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function IZ(D){let u=[];D.forEach((C,E)=>{if(parseInt(C,16)===0)u.push(E)});let F=u.map((C)=>D.map((E,w)=>{if(w===C){let $=w===0||w===NZ.GROUPS-1?":":"";return g1([S1(E),$])}return S1(E)}).join(":"));return F.push(D.map(S1).join(":")),g1(F)}WD.simpleRegularExpression=IZ;function yZ(D,u,F){let C=u?"":":",E=F?"":":",w=[];if(!u&&!F)w.push("::");if(u&&F)w.push("");if(F&&!u||!F&&u)w.push(":");w.push(ou.sprintf("%s(:0{1,4}){1,%d}",C,D-1)),w.push(ou.sprintf("(0{1,4}:){1,%d}%s",D-1,E)),w.push(ou.sprintf("(0{1,4}:){%d}0{1,4}",D-1));for(let $=1;$<D-1;$++)for(let M=1;M<D-$;M++)w.push(ou.sprintf("(0{1,4}:){%d}:(0{1,4}:){%d}0{1,4}",M,D-M-$-1));return g1(w)}WD.possibleElisions=yZ});var V4=b((Wu)=>{var SZ=Wu&&Wu.__createBinding||(Object.create?function(D,u,F,C){if(C===void 0)C=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,C,E)}:function(D,u,F,C){if(C===void 0)C=F;D[C]=u[F]}),gZ=Wu&&Wu.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),R1=Wu&&Wu.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))SZ(u,D,F)}return gZ(u,D),u};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Address6=void 0;var H4=R1(Q2()),H2=R1(W2()),s=R1(q2()),U2=R1(G2()),bu=A2(),cu=G4(),Uu=I1(),jD=z2(),RD=T0();function j1(D){if(!D)throw new Error("Assertion failed.")}function jZ(D){let u=/(\d+)(\d{3})/;while(u.test(D))D=D.replace(u,"$1,$2");return D}function RZ(D){return D=D.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2'),D=D.replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2'),D}function PZ(D,u){let F=[],C=[],E;for(E=0;E<D.length;E++)if(E<u[0])F.push(D[E]);else if(E>u[1])C.push(D[E]);return F.concat(["compact"]).concat(C)}function U4(D){return RD.sprintf("%04x",parseInt(D,16))}function O4(D){return D&255}class zD{constructor(D,u){if(this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=H4.isInSubnet,this.isCorrect=H4.isCorrect(s.BITS),u===void 0)this.groups=s.GROUPS;else this.groups=u;this.address=D;let F=s.RE_SUBNET_STRING.exec(D);if(F){if(this.parsedSubnet=F[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>s.BITS)throw new Uu.AddressError("Invalid subnet mask.");D=D.replace(s.RE_SUBNET_STRING,"")}else if(/\//.test(D))throw new Uu.AddressError("Invalid subnet mask.");let C=s.RE_ZONE_STRING.exec(D);if(C)this.zone=C[0],D=D.replace(s.RE_ZONE_STRING,"");this.addressMinusSuffix=D,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(D){try{return new zD(D),!0}catch(u){return!1}}static fromBigInteger(D){let u=D.toString(16).padStart(32,"0"),F=[],C;for(C=0;C<s.GROUPS;C++)F.push(u.slice(C*4,(C+1)*4));return new zD(F.join(":"))}static fromURL(D){let u,F=null,C;if(D.indexOf("[")!==-1&&D.indexOf("]:")!==-1){if(C=s.RE_URL_WITH_PORT.exec(D),C===null)return{error:"failed to parse address with port",address:null,port:null};u=C[1],F=C[2]}else if(D.indexOf("/")!==-1){if(D=D.replace(/^[a-z0-9]+:\/\//,""),C=s.RE_URL.exec(D),C===null)return{error:"failed to parse address from URL",address:null,port:null};u=C[1]}else u=D;if(F){if(F=parseInt(F,10),F<0||F>65536)F=null}else F=null;return{address:new zD(u),port:F}}static fromAddress4(D){let u=new bu.Address4(D),F=s.BITS-(H2.BITS-u.subnetMask);return new zD(`::ffff:${u.correctForm()}/${F}`)}static fromArpa(D){let u=D.replace(/(\.ip6\.arpa)?\.$/,""),F=7;if(u.length!==63)throw new Uu.AddressError("Invalid 'ip6.arpa' form.");let C=u.split(".").reverse();for(let E=F;E>0;E--){let w=E*4;C.splice(w,0,":")}return u=C.join(""),new zD(u)}microsoftTranscription(){return RD.sprintf("%s.ipv6-literal.net",this.correctForm().replace(/:/g,"-"))}mask(D=this.subnetMask){return this.getBitsBase2(0,D)}possibleSubnets(D=128){let u=s.BITS-this.subnetMask,F=Math.abs(D-s.BITS),C=u-F;if(C<0)return"0";return jZ(new jD.BigInteger("2",10).pow(C).toString(10))}_startAddress(){return new jD.BigInteger(this.mask()+"0".repeat(s.BITS-this.subnetMask),2)}startAddress(){return zD.fromBigInteger(this._startAddress())}startAddressExclusive(){let D=new jD.BigInteger("1");return zD.fromBigInteger(this._startAddress().add(D))}_endAddress(){return new jD.BigInteger(this.mask()+"1".repeat(s.BITS-this.subnetMask),2)}endAddress(){return zD.fromBigInteger(this._endAddress())}endAddressExclusive(){let D=new jD.BigInteger("1");return zD.fromBigInteger(this._endAddress().subtract(D))}getScope(){let D=s.SCOPES[this.getBits(12,16).intValue()];if(this.getType()==="Global unicast"&&D!=="Link local")D="Global";return D||"Unknown"}getType(){for(let D of Object.keys(s.TYPES))if(this.isInSubnet(new zD(D)))return s.TYPES[D];return"Global unicast"}getBits(D,u){return new jD.BigInteger(this.getBitsBase2(D,u),2)}getBitsBase2(D,u){return this.binaryZeroPad().slice(D,u)}getBitsBase16(D,u){let F=u-D;if(F%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(D,u).toString(16).padStart(F/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,s.BITS)}reverseForm(D){if(!D)D={};let u=Math.floor(this.subnetMask/4),F=this.canonicalForm().replace(/:/g,"").split("").slice(0,u).reverse().join(".");if(u>0){if(D.omitSuffix)return F;return RD.sprintf("%s.ip6.arpa.",F)}if(D.omitSuffix)return"";return"ip6.arpa."}correctForm(){let D,u=[],F=0,C=[];for(D=0;D<this.parsedAddress.length;D++){let $=parseInt(this.parsedAddress[D],16);if($===0)F++;if($!==0&&F>0){if(F>1)C.push([D-F,D-1]);F=0}}if(F>1)C.push([this.parsedAddress.length-F,this.parsedAddress.length-1]);let E=C.map(($)=>$[1]-$[0]+1);if(C.length>0){let $=E.indexOf(Math.max(...E));u=PZ(this.parsedAddress,C[$])}else u=this.parsedAddress;for(D=0;D<u.length;D++)if(u[D]!=="compact")u[D]=parseInt(u[D],16).toString(16);let w=u.join(":");return w=w.replace(/^compact$/,"::"),w=w.replace(/^compact|compact$/,":"),w=w.replace(/compact/,""),w}binaryZeroPad(){return this.bigInteger().toString(2).padStart(s.BITS,"0")}parse4in6(D){let u=D.split(":"),C=u.slice(-1)[0].match(H2.RE_ADDRESS);if(C){this.parsedAddress4=C[0],this.address4=new bu.Address4(this.parsedAddress4);for(let E=0;E<this.address4.groups;E++)if(/^0[0-9]+/.test(this.address4.parsedAddress[E]))throw new Uu.AddressError("IPv4 addresses can't have leading zeroes.",D.replace(H2.RE_ADDRESS,this.address4.parsedAddress.map(RZ).join(".")));this.v4=!0,u[u.length-1]=this.address4.toGroup6(),D=u.join(":")}return D}parse(D){D=this.parse4in6(D);let u=D.match(s.RE_BAD_CHARACTERS);if(u)throw new Uu.AddressError(RD.sprintf("Bad character%s detected in address: %s",u.length>1?"s":"",u.join("")),D.replace(s.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));let F=D.match(s.RE_BAD_ADDRESS);if(F)throw new Uu.AddressError(RD.sprintf("Address failed regex: %s",F.join("")),D.replace(s.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let C=[],E=D.split("::");if(E.length===2){let w=E[0].split(":"),$=E[1].split(":");if(w.length===1&&w[0]==="")w=[];if($.length===1&&$[0]==="")$=[];let M=this.groups-(w.length+$.length);if(!M)throw new Uu.AddressError("Error parsing groups");this.elidedGroups=M,this.elisionBegin=w.length,this.elisionEnd=w.length+this.elidedGroups,C=C.concat(w);for(let Z=0;Z<M;Z++)C.push("0");C=C.concat($)}else if(E.length===1)C=D.split(":"),this.elidedGroups=0;else throw new Uu.AddressError("Too many :: groups found");if(C=C.map((w)=>RD.sprintf("%x",parseInt(w,16))),C.length!==this.groups)throw new Uu.AddressError("Incorrect number of groups found");return C}canonicalForm(){return this.parsedAddress.map(U4).join(":")}decimal(){return this.parsedAddress.map((D)=>RD.sprintf("%05d",parseInt(D,16))).join(":")}bigInteger(){return new jD.BigInteger(this.parsedAddress.map(U4).join(""),16)}to4(){let D=this.binaryZeroPad().split("");return bu.Address4.fromHex(new jD.BigInteger(D.slice(96,128).join(""),2).toString(16))}to4in6(){let D=this.to4(),F=new zD(this.parsedAddress.slice(0,6).join(":"),6).correctForm(),C="";if(!/:$/.test(F))C=":";return F+C+D.address}inspectTeredo(){let D=this.getBitsBase16(0,32),u=this.getBits(80,96).xor(new jD.BigInteger("ffff",16)).toString(),F=bu.Address4.fromHex(this.getBitsBase16(32,64)),C=bu.Address4.fromHex(this.getBits(96,128).xor(new jD.BigInteger("ffffffff",16)).toString(16)),E=this.getBits(64,80),w=this.getBitsBase2(64,80),$=E.testBit(15),M=E.testBit(14),Z=E.testBit(8),Q=E.testBit(9),X=new jD.BigInteger(w.slice(2,6)+w.slice(8,16),2).toString(10);return{prefix:RD.sprintf("%s:%s",D.slice(0,4),D.slice(4,8)),server4:F.address,client4:C.address,flags:w,coneNat:$,microsoft:{reserved:M,universalLocal:Q,groupIndividual:Z,nonce:X},udpPort:u}}inspect6to4(){let D=this.getBitsBase16(0,16),u=bu.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:RD.sprintf("%s",D.slice(0,4)),gateway:u.address}}to6to4(){if(!this.is4())return null;let D=["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":");return new zD(D)}toByteArray(){let D=this.bigInteger().toByteArray();if(D.length===17&&D[0]===0)return D.slice(1);return D}toUnsignedByteArray(){return this.toByteArray().map(O4)}static fromByteArray(D){return this.fromUnsignedByteArray(D.map(O4))}static fromUnsignedByteArray(D){let u=new jD.BigInteger("256",10),F=new jD.BigInteger("0",10),C=new jD.BigInteger("1",10);for(let E=D.length-1;E>=0;E--)F=F.add(C.multiply(new jD.BigInteger(D[E].toString(10),10))),C=C.multiply(u);return zD.fromBigInteger(F)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){if(this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000")return!0;return!1}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new zD("2001::/32"))}is6to4(){return this.isInSubnet(new zD("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(D){if(D===void 0)D="";else D=RD.sprintf(":%s",D);return RD.sprintf("http://[%s]%s/",this.correctForm(),D)}link(D){if(!D)D={};if(D.className===void 0)D.className="";if(D.prefix===void 0)D.prefix="/#address=";if(D.v4===void 0)D.v4=!1;let u=this.correctForm;if(D.v4)u=this.to4in6;if(D.className)return RD.sprintf('<a href="%1$s%2$s" class="%3$s">%2$s</a>',D.prefix,u.call(this),D.className);return RD.sprintf('<a href="%1$s%2$s">%2$s</a>',D.prefix,u.call(this))}group(){if(this.elidedGroups===0)return U2.simpleGroup(this.address).join(":");j1(typeof this.elidedGroups==="number"),j1(typeof this.elisionBegin==="number");let D=[],[u,F]=this.address.split("::");if(u.length)D.push(...U2.simpleGroup(u));else D.push("");let C=["hover-group"];for(let E=this.elisionBegin;E<this.elisionBegin+this.elidedGroups;E++)C.push(RD.sprintf("group-%d",E));if(D.push(RD.sprintf('<span class="%s"></span>',C.join(" "))),F.length)D.push(...U2.simpleGroup(F,this.elisionEnd));else D.push("");if(this.is4())j1(this.address4 instanceof bu.Address4),D.pop(),D.push(this.address4.groupForV6());return D.join(":")}regularExpressionString(D=!1){let u=[],F=new zD(this.correctForm());if(F.elidedGroups===0)u.push(cu.simpleRegularExpression(F.parsedAddress));else if(F.elidedGroups===s.GROUPS)u.push(cu.possibleElisions(s.GROUPS));else{let C=F.address.split("::");if(C[0].length)u.push(cu.simpleRegularExpression(C[0].split(":")));if(j1(typeof F.elidedGroups==="number"),u.push(cu.possibleElisions(F.elidedGroups,C[0].length!==0,C[1].length!==0)),C[1].length)u.push(cu.simpleRegularExpression(C[1].split(":")));u=[u.join(":")]}if(!D)u=["(?=^|",cu.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...u,")(?=[^\\w\\:]|",cu.ADDRESS_BOUNDARY,"|$)"];return u.join("")}regularExpression(D=!1){return new RegExp(this.regularExpressionString(D),"i")}}Wu.Address6=zD});var O2=b((LD)=>{var kZ=LD&&LD.__createBinding||(Object.create?function(D,u,F,C){if(C===void 0)C=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,C,E)}:function(D,u,F,C){if(C===void 0)C=F;D[C]=u[F]}),bZ=LD&&LD.__setModuleDefault||(Object.create?function(D,u){Object.defineProperty(D,"default",{enumerable:!0,value:u})}:function(D,u){D.default=u}),cZ=LD&&LD.__importStar||function(D){if(D&&D.__esModule)return D;var u={};if(D!=null){for(var F in D)if(F!=="default"&&Object.prototype.hasOwnProperty.call(D,F))kZ(u,D,F)}return bZ(u,D),u};Object.defineProperty(LD,"__esModule",{value:!0});LD.v6=LD.AddressError=LD.Address6=LD.Address4=void 0;var mZ=A2();Object.defineProperty(LD,"Address4",{enumerable:!0,get:function(){return mZ.Address4}});var _Z=V4();Object.defineProperty(LD,"Address6",{enumerable:!0,get:function(){return _Z.Address6}});var vZ=I1();Object.defineProperty(LD,"AddressError",{enumerable:!0,get:function(){return vZ.AddressError}});var fZ=cZ(G2());LD.v6={helpers:fZ}});var g4=b((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.ipToBuffer=y4.int32ToIpv4=y4.ipv4ToInt32=y4.validateSocksClientChainOptions=y4.validateSocksClientOptions=void 0;var PD=X2(),AD=K2(),xZ=fu("stream"),V2=O2(),T4=fu("net");function nZ(D,u=["connect","bind","associate"]){if(!AD.SocksCommand[D.command])throw new PD.SocksClientError(AD.ERRORS.InvalidSocksCommand,D);if(u.indexOf(D.command)===-1)throw new PD.SocksClientError(AD.ERRORS.InvalidSocksCommandForOperation,D);if(!h4(D.destination))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsDestination,D);if(!N4(D.proxy))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsProxy,D);if(L4(D.proxy,D),D.timeout&&!I4(D.timeout))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsTimeout,D);if(D.existing_socket&&!(D.existing_socket instanceof xZ.Duplex))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsExistingSocket,D)}y4.validateSocksClientOptions=nZ;function dZ(D){if(D.command!=="connect")throw new PD.SocksClientError(AD.ERRORS.InvalidSocksCommandChain,D);if(!h4(D.destination))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsDestination,D);if(!(D.proxies&&Array.isArray(D.proxies)&&D.proxies.length>=2))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsProxiesLength,D);if(D.proxies.forEach((u)=>{if(!N4(u))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsProxy,D);L4(u,D)}),D.timeout&&!I4(D.timeout))throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsTimeout,D)}y4.validateSocksClientChainOptions=dZ;function L4(D,u){if(D.custom_auth_method!==void 0){if(D.custom_auth_method<AD.SOCKS5_CUSTOM_AUTH_START||D.custom_auth_method>AD.SOCKS5_CUSTOM_AUTH_END)throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsCustomAuthRange,u);if(D.custom_auth_request_handler===void 0||typeof D.custom_auth_request_handler!=="function")throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,u);if(D.custom_auth_response_size===void 0)throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,u);if(D.custom_auth_response_handler===void 0||typeof D.custom_auth_response_handler!=="function")throw new PD.SocksClientError(AD.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,u)}}function h4(D){return D&&typeof D.host==="string"&&typeof D.port==="number"&&D.port>=0&&D.port<=65535}function N4(D){return D&&(typeof D.host==="string"||typeof D.ipaddress==="string")&&typeof D.port==="number"&&D.port>=0&&D.port<=65535&&(D.type===4||D.type===5)}function I4(D){return typeof D==="number"&&D>0}function rZ(D){return new V2.Address4(D).toArray().reduce((F,C)=>(F<<8)+C,0)}y4.ipv4ToInt32=rZ;function iZ(D){let u=D>>>24&255,F=D>>>16&255,C=D>>>8&255,E=D&255;return[u,F,C,E].join(".")}y4.int32ToIpv4=iZ;function lZ(D){if(T4.isIPv4(D)){let u=new V2.Address4(D);return Buffer.from(u.toArray())}else if(T4.isIPv6(D)){let u=new V2.Address6(D);return Buffer.from(u.canonicalForm().split(":").map((F)=>F.padStart(4,"0")).join(""),"hex")}else throw new Error("Invalid IP address format")}y4.ipToBuffer=lZ});var k4=b((R4)=>{Object.defineProperty(R4,"__esModule",{value:!0});R4.ReceiveBuffer=void 0;class j4{constructor(D=4096){this.buffer=Buffer.allocUnsafe(D),this.offset=0,this.originalSize=D}get length(){return this.offset}append(D){if(!Buffer.isBuffer(D))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+D.length>=this.buffer.length){let u=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+D.length)),u.copy(this.buffer)}return D.copy(this.buffer,this.offset),this.offset+=D.length}peek(D){if(D>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,D)}get(D){if(D>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");let u=Buffer.allocUnsafe(D);return this.buffer.slice(0,D).copy(u),this.buffer.copyWithin(0,D,D+this.offset-D),this.offset-=D,u}}R4.ReceiveBuffer=j4});var b4=b((yu)=>{var eu=yu&&yu.__awaiter||function(D,u,F,C){function E(w){return w instanceof F?w:new F(function($){$(w)})}return new(F||(F=Promise))(function(w,$){function M(X){try{Q(C.next(X))}catch(A){$(A)}}function Z(X){try{Q(C.throw(X))}catch(A){$(A)}}function Q(X){X.done?w(X.value):E(X.value).then(M,Z)}Q((C=C.apply(D,u||[])).next())})};Object.defineProperty(yu,"__esModule",{value:!0});yu.SocksClientError=yu.SocksClient=void 0;var oZ=fu("events"),D0=fu("net"),_D=xC(),G=K2(),dD=g4(),eZ=k4(),L2=X2();Object.defineProperty(yu,"SocksClientError",{enumerable:!0,get:function(){return L2.SocksClientError}});var T2=O2();class P1 extends oZ.EventEmitter{constructor(D){super();this.options=Object.assign({},D),dD.validateSocksClientOptions(D),this.setState(G.SocksClientState.Created)}static createConnection(D,u){return new Promise((F,C)=>{try{dD.validateSocksClientOptions(D,["connect"])}catch(w){if(typeof u==="function")return u(w),F(w);else return C(w)}let E=new P1(D);E.connect(D.existing_socket),E.once("established",(w)=>{if(E.removeAllListeners(),typeof u==="function")u(null,w),F(w);else F(w)}),E.once("error",(w)=>{if(E.removeAllListeners(),typeof u==="function")u(w),F(w);else C(w)})})}static createConnectionChain(D,u){return new Promise((F,C)=>eu(this,void 0,void 0,function*(){try{dD.validateSocksClientChainOptions(D)}catch(E){if(typeof u==="function")return u(E),F(E);else return C(E)}if(D.randomizeChain)L2.shuffleArray(D.proxies);try{let E;for(let w=0;w<D.proxies.length;w++){let $=D.proxies[w],M=w===D.proxies.length-1?D.destination:{host:D.proxies[w+1].host||D.proxies[w+1].ipaddress,port:D.proxies[w+1].port},Z=yield P1.createConnection({command:"connect",proxy:$,destination:M,existing_socket:E});E=E||Z.socket}if(typeof u==="function")u(null,{socket:E}),F({socket:E});else F({socket:E})}catch(E){if(typeof u==="function")u(E),F(E);else C(E)}}))}static createUDPFrame(D){let u=new _D.SmartBuffer;if(u.writeUInt16BE(0),u.writeUInt8(D.frameNumber||0),D0.isIPv4(D.remoteHost.host))u.writeUInt8(G.Socks5HostType.IPv4),u.writeUInt32BE(dD.ipv4ToInt32(D.remoteHost.host));else if(D0.isIPv6(D.remoteHost.host))u.writeUInt8(G.Socks5HostType.IPv6),u.writeBuffer(dD.ipToBuffer(D.remoteHost.host));else u.writeUInt8(G.Socks5HostType.Hostname),u.writeUInt8(Buffer.byteLength(D.remoteHost.host)),u.writeString(D.remoteHost.host);return u.writeUInt16BE(D.remoteHost.port),u.writeBuffer(D.data),u.toBuffer()}static parseUDPFrame(D){let u=_D.SmartBuffer.fromBuffer(D);u.readOffset=2;let F=u.readUInt8(),C=u.readUInt8(),E;if(C===G.Socks5HostType.IPv4)E=dD.int32ToIpv4(u.readUInt32BE());else if(C===G.Socks5HostType.IPv6)E=T2.Address6.fromByteArray(Array.from(u.readBuffer(16))).canonicalForm();else E=u.readString(u.readUInt8());let w=u.readUInt16BE();return{frameNumber:F,remoteHost:{host:E,port:w},data:u.readBuffer()}}setState(D){if(this.state!==G.SocksClientState.Error)this.state=D}connect(D){this.onDataReceived=(F)=>this.onDataReceivedHandler(F),this.onClose=()=>this.onCloseHandler(),this.onError=(F)=>this.onErrorHandler(F),this.onConnect=()=>this.onConnectHandler();let u=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||G.DEFAULT_TIMEOUT);if(u.unref&&typeof u.unref==="function")u.unref();if(D)this.socket=D;else this.socket=new D0.Socket;if(this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(G.SocksClientState.Connecting),this.receiveBuffer=new eZ.ReceiveBuffer,D)this.socket.emit("connect");else if(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null)this.socket.setNoDelay(!!this.options.set_tcp_nodelay);this.prependOnceListener("established",(F)=>{setImmediate(()=>{if(this.receiveBuffer.length>0){let C=this.receiveBuffer.get(this.receiveBuffer.length);F.socket.emit("data",C)}F.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==G.SocksClientState.Established&&this.state!==G.SocksClientState.BoundWaitingForConnection)this.closeSocket(G.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){if(this.setState(G.SocksClientState.Connected),this.options.proxy.type===4)this.sendSocks4InitialHandshake();else this.sendSocks5InitialHandshake();this.setState(G.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(D){this.receiveBuffer.append(D),this.processData()}processData(){while(this.state!==G.SocksClientState.Established&&this.state!==G.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize)if(this.state===G.SocksClientState.SentInitialHandshake)if(this.options.proxy.type===4)this.handleSocks4FinalHandshakeResponse();else this.handleInitialSocks5HandshakeResponse();else if(this.state===G.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===G.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===G.SocksClientState.BoundWaitingForConnection)if(this.options.proxy.type===4)this.handleSocks4IncomingConnectionResponse();else this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(G.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(G.ERRORS.SocketClosed)}onErrorHandler(D){this.closeSocket(D.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(D){if(this.state!==G.SocksClientState.Error)this.setState(G.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new L2.SocksClientError(D,this.options))}sendSocks4InitialHandshake(){let D=this.options.proxy.userId||"",u=new _D.SmartBuffer;if(u.writeUInt8(4),u.writeUInt8(G.SocksCommand[this.options.command]),u.writeUInt16BE(this.options.destination.port),D0.isIPv4(this.options.destination.host))u.writeBuffer(dD.ipToBuffer(this.options.destination.host)),u.writeStringNT(D);else u.writeUInt8(0),u.writeUInt8(0),u.writeUInt8(0),u.writeUInt8(1),u.writeStringNT(D),u.writeStringNT(this.options.destination.host);this.nextRequiredPacketBufferSize=G.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(u.toBuffer())}handleSocks4FinalHandshakeResponse(){let D=this.receiveBuffer.get(8);if(D[1]!==G.Socks4Response.Granted)this.closeSocket(`${G.ERRORS.Socks4ProxyRejectedConnection} - (${G.Socks4Response[D[1]]})`);else if(G.SocksCommand[this.options.command]===G.SocksCommand.bind){let u=_D.SmartBuffer.fromBuffer(D);u.readOffset=2;let F={port:u.readUInt16BE(),host:dD.int32ToIpv4(u.readUInt32BE())};if(F.host==="0.0.0.0")F.host=this.options.proxy.ipaddress;this.setState(G.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:F,socket:this.socket})}else this.setState(G.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){let D=this.receiveBuffer.get(8);if(D[1]!==G.Socks4Response.Granted)this.closeSocket(`${G.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${G.Socks4Response[D[1]]})`);else{let u=_D.SmartBuffer.fromBuffer(D);u.readOffset=2;let F={port:u.readUInt16BE(),host:dD.int32ToIpv4(u.readUInt32BE())};this.setState(G.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket})}}sendSocks5InitialHandshake(){let D=new _D.SmartBuffer,u=[G.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password)u.push(G.Socks5Auth.UserPass);if(this.options.proxy.custom_auth_method!==void 0)u.push(this.options.proxy.custom_auth_method);D.writeUInt8(5),D.writeUInt8(u.length);for(let F of u)D.writeUInt8(F);this.nextRequiredPacketBufferSize=G.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(D.toBuffer()),this.setState(G.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){let D=this.receiveBuffer.get(2);if(D[0]!==5)this.closeSocket(G.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);else if(D[1]===G.SOCKS5_NO_ACCEPTABLE_AUTH)this.closeSocket(G.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);else if(D[1]===G.Socks5Auth.NoAuth)this.socks5ChosenAuthType=G.Socks5Auth.NoAuth,this.sendSocks5CommandRequest();else if(D[1]===G.Socks5Auth.UserPass)this.socks5ChosenAuthType=G.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication();else if(D[1]===this.options.proxy.custom_auth_method)this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication();else this.closeSocket(G.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){let D=this.options.proxy.userId||"",u=this.options.proxy.password||"",F=new _D.SmartBuffer;F.writeUInt8(1),F.writeUInt8(Buffer.byteLength(D)),F.writeString(D),F.writeUInt8(Buffer.byteLength(u)),F.writeString(u),this.nextRequiredPacketBufferSize=G.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(F.toBuffer()),this.setState(G.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return eu(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(G.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(D){return eu(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(D)})}handleSocks5AuthenticationNoAuthHandshakeResponse(D){return eu(this,void 0,void 0,function*(){return D[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(D){return eu(this,void 0,void 0,function*(){return D[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return eu(this,void 0,void 0,function*(){this.setState(G.SocksClientState.ReceivedAuthenticationResponse);let D=!1;if(this.socks5ChosenAuthType===G.Socks5Auth.NoAuth)D=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===G.Socks5Auth.UserPass)D=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method)D=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));if(!D)this.closeSocket(G.ERRORS.Socks5AuthenticationFailed);else this.sendSocks5CommandRequest()})}sendSocks5CommandRequest(){let D=new _D.SmartBuffer;if(D.writeUInt8(5),D.writeUInt8(G.SocksCommand[this.options.command]),D.writeUInt8(0),D0.isIPv4(this.options.destination.host))D.writeUInt8(G.Socks5HostType.IPv4),D.writeBuffer(dD.ipToBuffer(this.options.destination.host));else if(D0.isIPv6(this.options.destination.host))D.writeUInt8(G.Socks5HostType.IPv6),D.writeBuffer(dD.ipToBuffer(this.options.destination.host));else D.writeUInt8(G.Socks5HostType.Hostname),D.writeUInt8(this.options.destination.host.length),D.writeString(this.options.destination.host);D.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(D.toBuffer()),this.setState(G.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){let D=this.receiveBuffer.peek(5);if(D[0]!==5||D[1]!==G.Socks5Response.Granted)this.closeSocket(`${G.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${G.Socks5Response[D[1]]}`);else{let u=D[3],F,C;if(u===G.Socks5HostType.IPv4){let E=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}if(C=_D.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:dD.int32ToIpv4(C.readUInt32BE()),port:C.readUInt16BE()},F.host==="0.0.0.0")F.host=this.options.proxy.ipaddress}else if(u===G.Socks5HostType.Hostname){let E=D[4],w=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(E);if(this.receiveBuffer.length<w){this.nextRequiredPacketBufferSize=w;return}C=_D.SmartBuffer.fromBuffer(this.receiveBuffer.get(w).slice(5)),F={host:C.readString(E),port:C.readUInt16BE()}}else if(u===G.Socks5HostType.IPv6){let E=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}C=_D.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:T2.Address6.fromByteArray(Array.from(C.readBuffer(16))).canonicalForm(),port:C.readUInt16BE()}}if(this.setState(G.SocksClientState.ReceivedFinalResponse),G.SocksCommand[this.options.command]===G.SocksCommand.connect)this.setState(G.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket});else if(G.SocksCommand[this.options.command]===G.SocksCommand.bind)this.setState(G.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:F,socket:this.socket});else if(G.SocksCommand[this.options.command]===G.SocksCommand.associate)this.setState(G.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket})}}handleSocks5IncomingConnectionResponse(){let D=this.receiveBuffer.peek(5);if(D[0]!==5||D[1]!==G.Socks5Response.Granted)this.closeSocket(`${G.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${G.Socks5Response[D[1]]}`);else{let u=D[3],F,C;if(u===G.Socks5HostType.IPv4){let E=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}if(C=_D.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:dD.int32ToIpv4(C.readUInt32BE()),port:C.readUInt16BE()},F.host==="0.0.0.0")F.host=this.options.proxy.ipaddress}else if(u===G.Socks5HostType.Hostname){let E=D[4],w=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(E);if(this.receiveBuffer.length<w){this.nextRequiredPacketBufferSize=w;return}C=_D.SmartBuffer.fromBuffer(this.receiveBuffer.get(w).slice(5)),F={host:C.readString(E),port:C.readUInt16BE()}}else if(u===G.Socks5HostType.IPv6){let E=G.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<E){this.nextRequiredPacketBufferSize=E;return}C=_D.SmartBuffer.fromBuffer(this.receiveBuffer.get(E).slice(4)),F={host:T2.Address6.fromByteArray(Array.from(C.readBuffer(16))).canonicalForm(),port:C.readUInt16BE()}}this.setState(G.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:F,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}yu.SocksClient=P1});var h2=b((mu)=>{var DK=mu&&mu.__createBinding||(Object.create?function(D,u,F,C){if(C===void 0)C=F;var E=Object.getOwnPropertyDescriptor(u,F);if(!E||("get"in E?!u.__esModule:E.writable||E.configurable))E={enumerable:!0,get:function(){return u[F]}};Object.defineProperty(D,C,E)}:function(D,u,F,C){if(C===void 0)C=F;D[C]=u[F]}),uK=mu&&mu.__exportStar||function(D,u){for(var F in D)if(F!=="default"&&!Object.prototype.hasOwnProperty.call(u,F))DK(u,D,F)};Object.defineProperty(mu,"__esModule",{value:!0});uK(b4(),mu)});import FK from"net";import N1 from"process";import{buddyOptions as GM,stripAnsi as O0}from"@stacksjs/cli";import{access as WY,appendFile as _6,mkdir as v6}from"fs/promises";import{dirname as zY}from"path";import AY from"process";import{italic as m6,stripAnsi as qY}from"@stacksjs/cli";var wD={};c2(wD,{ui:()=>KY,team:()=>ZY,storage:()=>MY,services:()=>JY,security:()=>wY,searchEngine:()=>YY,saas:()=>BY,queue:()=>EY,ports:()=>$Y,payment:()=>CY,overrides:()=>r8,notification:()=>FY,logging:()=>uY,localUrl:()=>QB,library:()=>DY,hashing:()=>eB,git:()=>oB,errors:()=>sB,email:()=>aB,docs:()=>tB,dns:()=>pB,determineAppEnv:()=>XY,defineUi:()=>_B,defineStorage:()=>mB,defineStacksConfig:()=>WB,defineSms:()=>cB,defineServices:()=>bB,defineSecurity:()=>kB,defineSearchEngine:()=>PB,defineQueue:()=>RB,definePayment:()=>jB,defineNotification:()=>gB,defineModel:()=>vB,defineLibrary:()=>SB,defineJob:()=>UB,defineHashing:()=>yB,defineGit:()=>IB,defineEvents:()=>fB,defineEmailConfig:()=>hB,defineEmail:()=>NB,defineDns:()=>LB,defineDependencies:()=>TB,defineDatabase:()=>VB,defineCronJob:()=>OB,defineCli:()=>HB,defineChat:()=>GB,defineCdn:()=>qB,defineCache:()=>AB,defineApp:()=>zB,defaults:()=>d1,database:()=>lB,config:()=>t,cloud:()=>rB,cli:()=>iB,cache:()=>dB,app:()=>ju,analytics:()=>nB,ai:()=>xB});import{basename as ZK,delimiter as KK,dirname as _2,extname as XK,isAbsolute as QK,join as WK,normalize as zK,parse as AK,relative as v2,resolve as m2,sep as qK,toNamespacedPath as GK}from"path";import x1 from"process";import{runCommandSync as OK}from"@stacksjs/cli";function f2(D){return y0(`database/${D||""}`)}function D7(D,u){let F=y0(`app/${D||""}`);if(u?.relative)return v2(u.cwd||x1.cwd(),F);return F}function x2(D){return D7(`Commands/${D||""}`)}function n1(D){return S0(`logs/${D||""}`)}function y0(D="",u){let F=x1.cwd();while(F.includes("storage"))F=m2(F,"..");let C=m2(F,D);if(u?.relative)return v2(x1.cwd(),C);return C}function S0(D){return y0(`storage/${D||""}`)}var F7={ai:{deploy:!1,models:["amazon.titan-embed-text-v1","amazon.titan-text-express-v1","amazon.titan-embed-image-v1","amazon.titan-image-generator-v1","anthropic.claude-v1","anthropic.claude-v2","anthropic.claude-v2:1","anthropic.claude-instant-v1","meta.llama2-13b-chat-v1","meta.llama2-70b-chat-v1"]},analytics:{driver:void 0},app:{name:"Stacks",description:"A Stacks application.",env:"local",url:"stacks.localhost",debug:!0,key:"",timezone:"UTC",locale:"en",fallbackLocale:"en",cipher:"AES-256-CBC",docMode:!1,redirectUrls:[],maintenanceMode:!1},cli:{name:"My Custom CLI",command:"my-custom-cli",description:"Stacks is a full-stack framework for TypeScript.",source:x2(),deploy:!1},cache:{driver:"redis",prefix:"stx",ttl:3600,drivers:{redis:{connection:"default",host:"localhost",port:6379,username:"",password:""}}},cloud:{type:"serverless",driver:"aws",storage:{},environments:["production","staging","development"],firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0},cdn:{allowedMethods:"GET_HEAD",cachedMethods:"GET_HEAD",minTtl:0,defaultTtl:86400,maxTtl:31536000,compress:!0,priceClass:"PriceClass_All",originShieldRegion:"us-east-1",cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:2}},fileSystem:!1},database:{default:"sqlite",connections:{sqlite:{database:f2("stacks.sqlite"),prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"},dns:{driver:"aws",a:[],aaaa:[],cname:[],mx:[],txt:[]},docs:{lang:"en-US",title:"Stacks",description:"Rapid application, cloud & library framework.",lastUpdated:!0,deploy:!1,themeConfig:{editLink:{pattern:"https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",text:"Edit this page on GitHub"},footer:{message:"Released under the MIT License.",copyright:"Copyright \xA9 2024-present Stacks.js, Inc."}}},email:{from:{name:"Stacks",address:"no-reply@stacksjs.org"},mailboxes:[],server:{scan:!0}},errors:{messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}},git:{hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:`Write a SHORT, IMPERATIVE tense description of the change:
48
+ `,body:`Provide a LONGER description of the change (optional). Use "|" to break new line:
49
+ `,breaking:`List any BREAKING CHANGES (optional). Use "|" to break new line:
50
+ `,footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:`List any ISSUES by this change. E.g.: #31, #34:
51
+ `,confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]},hashing:{driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,time:1}},library:{name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}},logging:{logsPath:"storage/logs/stacks.log",deploymentsPath:"storage/logs/deployments.log"},notification:{default:"email"},payment:{driver:"stripe"},ports:{frontend:3000,backend:3001,admin:3002,library:3003,desktop:3004,email:3005,docs:3006,inspect:3007,api:3008,systemTray:3009,database:3010},queue:{default:"sync",connections:{sync:{driver:"sync"},database:{driver:"database",table:"jobs",queue:"default",retry_after:90},redis:{driver:"redis",connection:"default",queue:"default",retry_after:90},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}},saas:{plans:[{productName:"Stacks Hobby",description:"All the Stacks features.",pricing:[{key:"stacks_hobby_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_hobby_yearly",price:37900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Pro",description:"All the Stacks features, including being able to invite team members.",pricing:[{key:"stacks_pro_monthly",price:5900,interval:"month",currency:"usd"},{key:"stacks_pro_yearly",price:57900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}}],webhook:{endpoint:"/webhooks/stripe",secret:""},currencies:["usd"],coupons:[{code:"SUMMER2024",amountOff:500,duration:"once"}],products:[{name:"Stacks Pro",description:"All the Stacks features.",images:["url_to_image"]}]},searchEngine:{driver:"opensearch"},security:{firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0}},services:{aws:{accountId:"",appId:"",apiKey:"",region:"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}},storage:{driver:"s3"},team:{name:"Stacks",members:{"Chris Breuer":"chris@stacksjs.org"}},ui:{shortcuts:[["btn","inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["hugeicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}}}},d1=F7;var n2={default:"meta.llama2-70b-chat-v1",models:["amazon.titan-text-express-v1","amazon.titan-text-lite-v1","meta.llama2-70b-chat-v1"],deploy:!0};var d2={driver:"fathom",drivers:{googleAnalytics:{trackingId:"UA-XXXXXXXXX-X"},fathom:{siteId:"WOLZMJDL"}}};import MB from"process";var C7=new Set([".","!","?"]),SK=new Set([...C7,":",'"',"'","\u201D"]);var r1=[],i1=[],r2={},w0={},B0={};function i2(D){return typeof D==="string"?new RegExp(`^${D}$`,"i"):D}function g0(D,u){if(D===u)return u;if(D===D.toLowerCase())return u.toLowerCase();if(D===D.toUpperCase())return u.toUpperCase();if(D[0]===D[0].toUpperCase())return u.charAt(0).toUpperCase()+u.slice(1).toLowerCase();return u.toLowerCase()}function E7(D,...u){return D.replace(/\$(\d{1,2})/g,(F,C)=>u[Number(C)]||"")}function w7(D,u){return D.replace(u[0],(...F)=>{let C=E7(u[1],...F);if(F[0]==="")return g0(D[F[F.length-2]-1],C);return g0(F[0],C)})}function l2(D,u,F){if(!D.length||r2[D])return u;for(let C=F.length-1;C>=0;C--){let E=F[C];if(E[0].test(u))return w7(u,E)}return u}function p2(D,u,F){return(C)=>{let E=C.toLowerCase();if(u[E])return g0(C,E);if(D[E])return g0(C,D[E]);return l2(E,C,F)}}function t2(D,u,F){return(C)=>{let E=C.toLowerCase();if(u[E])return!0;if(D[E])return!1;return l2(E,E,F)===E}}var TD=(D,u={})=>{let{count:F=2,inclusive:C=!1}=u;if(typeof D!=="string")throw new TypeError("Word must be a string");let E=F===1?TD.singular(D):TD.plural(D);return C?`${F} ${E}`:E};TD.plural=p2(B0,w0,r1);TD.isPlural=t2(B0,w0,r1);TD.singular=p2(w0,B0,i1);TD.isSingular=t2(w0,B0,i1);TD.addPluralRule=(D,u)=>{r1.push([i2(D),u])};TD.addSingularRule=(D,u)=>{i1.push([i2(D),u])};TD.addUncountableRule=(D)=>{if(typeof D==="string"){r2[D.toLowerCase()]=!0;return}TD.addPluralRule(D,"$0"),TD.addSingularRule(D,"$0")};TD.addIrregularRule=(D,u)=>{let F=u.toLowerCase(),C=D.toLowerCase();B0[C]=F,w0[F]=C};[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["my","our"],["its","their"],["his","their"],["her","their"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"],["canvas","canvases"]].forEach(([D,u])=>TD.addIrregularRule(D,u));[[/s?$/i,"s"],[/[^\x20-\x7F]$/,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(([D,u])=>TD.addPluralRule(D,u));[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|\W|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i,"$1ie"],[/\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(([D,u])=>TD.addSingularRule(D,u));["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\u00E9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(TD.addUncountableRule);var cK=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E\'","\u0538":"Y\'","\u0539":"T\'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C\'","\u053F":"K","\u0540":"H","\u0541":"D\'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R\'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P\'","\u0554":"Q\'","\u0555":"O\'\'","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"\'","\u2019":"\'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}'),mK=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function a2(D){return typeof D==="string"}var Z7=Object.defineProperty,j0=(D,u)=>{for(var F in u)Z7(D,F,{get:u[F],enumerable:!0})};function l1(D,u,F,C,E){for(u=u.split?u.split("."):u,C=0;C<u.length;C++)D=D?D[u[C]]:E;return D===E?F:D}var p3=l(k0(),1),t3=l(u3(),1),a3=l(w3(),1),s3=l(B3(),1),o3=l(M3(),1),e3=l(Z3(),1),DF=l(K3(),1),uF=l(W3(),1),FF=l(h3(),1),CF=l(I3(),1),$F=l(j3(),1),EF=l(R3(),1),wF=l(b3(),1),BF=l(_3(),1),YF=l(f3(),1),JF=l(O8(),1),MF=l(V8(),1),ZF=l(V8(),1),KF=l(O8(),1),K0=class{#D;#u;constructor(D,u){this.#D=D,this.#u=u||{}}#F(D,u){if(!D.includes("{{"))return D;return D.replace(/(\\)?{{(.*?)}}/g,(F,C,E)=>{let w=E.trim().split("."),$=u;while(w.length){if($===null||typeof $!=="object")return;let M=w.shift();$=Object.hasOwn($,M)?$[M]:void 0}return $})}getMessage(D,u,F,C){let E=this.#u[F.name]||F.name,w=this.#D[`${F.getFieldPath()}.${u}`];if(w)return this.#F(w,{field:E,...C});let $=this.#D[`${F.wildCardPath}.${u}`];if($)return this.#F($,{field:E,...C});let M=this.#D[u];if(M)return this.#F(M,{field:E,...C});return this.#F(D,{field:E,...C})}toJSON(){return{messages:this.#D,fields:this.#u}}},J1={};j0(J1,{E_VALIDATION_ERROR:()=>l3});var T8=class extends Error{constructor(D,u){super("Validation failure",u);this.messages=D;let F=this.constructor;if("captureStackTrace"in Error)Error.captureStackTrace(this,F)}status=422;code="E_VALIDATION_ERROR";get[Symbol.toStringTag](){return this.constructor.name}toString(){return`${this.name} [${this.code}]: ${this.message}`}},l3=T8,L8=class{hasErrors=!1;errors=[];report(D,u,F,C){let E={message:D,rule:u,field:F.getFieldPath()};if(C)E.meta=C;if(F.isArrayMember)E.index=F.name;this.hasErrors=!0,this.errors.push(E)}createError(){return new l3(this.errors)}},x5=["1",1,"true",!0,"on"],n5=["0",0,"false",!1],d5=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,S={exists(D){return D!==null&&D!==void 0},isMissing(D){return!this.exists(D)},isTrue(D){return x5.includes(D)},isFalse(D){return n5.includes(D)},isString(D){return typeof D==="string"},isObject(D){return!!(D&&typeof D==="object"&&!Array.isArray(D))},hasKeys(D,u){for(let F of u)if(F in D===!1)return!1;return!0},isArray(D){return Array.isArray(D)},isNumeric(D){return!Number.isNaN(Number(D))},asNumber(D){return D===null?Number.NaN:Number(D)},asBoolean(D){if(this.isTrue(D))return!0;if(this.isFalse(D))return!1;return null},isEmail:uF.default.default,isURL:a3.default.default,isAlpha:FF.default.default,isAlphaNumeric:BF.default.default,isIP:p3.default.default,isUUID:e3.default.default,isAscii:DF.default.default,isCreditCard:wF.default.default,isIBAN:o3.default.default,isJWT:t3.default.default,isLatLong:CF.default.default,isMobilePhone:MF.default.default,isPassportNumber:YF.default.default,isPostalCode:JF.default.default,isSlug:s3.default.default,isDecimal:$F.default.default,mobileLocales:ZF.locales,postalCountryCodes:KF.locales,passportCountryCodes:["AM","AR","AT","AU","AZ","BE","BG","BR","BY","CA","CH","CY","CZ","DE","DK","DZ","ES","FI","FR","GB","GR","HR","HU","IE","IN","ID","IR","IS","IT","JM","JP","KR","KZ","LI","LT","LU","LV","LY","MT","MZ","MY","MX","NL","NZ","PH","PK","PL","PT","RO","RU","SE","SL","SK","TH","TR","UA","US"],isULID(D){if(typeof D!=="string")return!1;if(D[0]>"7")return!1;return d5.test(D)},isHexColor:(D)=>{if(!D.startsWith("#"))return!1;return EF.default.default(D)},isActiveURL:async(D)=>{let{resolve4:u,resolve6:F}=await import("dns/promises");try{let{hostname:C}=new URL(D);if((await F(C)).length)return!0;else return(await u(C)).length>0}catch{return!1}},isDistinct:(D,u)=>{let F=new Set;if(!u){for(let E of D)if(S.exists(E))if(F.has(E))return!1;else F.add(E);return!0}let C=Array.isArray(u)?u:[u];for(let E of D)if(S.isObject(E)&&S.hasKeys(E,C)){let w=C.map(($)=>E[$]).join("_");if(F.has(w))return!1;else F.add(w)}return!0},getNestedValue(D,u){if(D.indexOf(".")>-1)return l1(u.data,D);return u.parent[D]}};var T={required:"The {{ field }} field must be defined",string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",mobile:"The {{ field }} field must be a valid mobile phone number",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",regex:"The {{ field }} field format is invalid",ascii:"The {{ field }} field must only contain ASCII characters",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ulid:"The {{ field }} field must be a valid ULID",hexCode:"The {{ field }} field must be a valid hex color code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number","number.in":"The selected {{ field }} is not in {{ values }}",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must be an integer",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}","date.afterOrSameAs":"The {{ field }} field must be a date after or same as {{ otherField }}","date.beforeField":"The {{ field }} field must be a date before {{ otherField }}","date.beforeOrSameAs":"The {{ field }} field must be a date before or same as {{ otherField }}","date.weekend":"The {{ field }} field is not a weekend","date.weekday":"The {{ field }} field is not a weekday"},XF={"":"data"};var du=class{static macro(D,u){this.prototype[D]=u}static getter(D,u,F=!1){Object.defineProperty(this.prototype,D,{get(){let C=u.call(this);if(F)Object.defineProperty(this,D,{configurable:!1,enumerable:!1,value:C,writable:!1});return C},configurable:!0,enumerable:!1})}};var r5=/[\p{Lu}]/u,i5=/[\p{Ll}]/u,QF=/^[\p{Lu}](?![\p{Lu}])/gu,AF=/([\p{Alpha}\p{N}_]|$)/u,h8=/[_.\- ]+/,l5=new RegExp("^"+h8.source),WF=new RegExp(h8.source+AF.source,"gu"),zF=new RegExp("\\d+"+AF.source,"gu"),p5=(D,u,F,C)=>{let E=!1,w=!1,$=!1,M=!1;for(let Z=0;Z<D.length;Z++){let Q=D[Z];if(M=Z>2?D[Z-3]==="-":!0,E&&r5.test(Q))D=D.slice(0,Z)+"-"+D.slice(Z),E=!1,$=w,w=!0,Z++;else if(w&&$&&i5.test(Q)&&(!M||C))D=D.slice(0,Z-1)+"-"+D.slice(Z-1),$=w,w=!1,E=!0;else E=u(Q)===Q&&F(Q)!==Q,$=w,w=F(Q)===Q&&u(Q)!==Q}return D},t5=(D,u)=>{return QF.lastIndex=0,D.replaceAll(QF,(F)=>u(F))},a5=(D,u)=>{return WF.lastIndex=0,zF.lastIndex=0,D.replaceAll(zF,(F,C,E)=>["_","-"].includes(D.charAt(E+F.length))?F:u(F)).replaceAll(WF,(F,C)=>u(C))};function GD(D,u){if(!(typeof D==="string"||Array.isArray(D)))throw new TypeError("Expected the input to be `string | string[]`");if(u={pascalCase:!1,preserveConsecutiveUppercase:!1,...u},Array.isArray(D))D=D.map((w)=>w.trim()).filter((w)=>w.length).join("-");else D=D.trim();if(D.length===0)return"";let F=u.locale===!1?(w)=>w.toLowerCase():(w)=>w.toLocaleLowerCase(u.locale),C=u.locale===!1?(w)=>w.toUpperCase():(w)=>w.toLocaleUpperCase(u.locale);if(D.length===1){if(h8.test(D))return"";return u.pascalCase?C(D):F(D)}if(D!==F(D))D=p5(D,F,C,u.preserveConsecutiveUppercase);if(D=D.replace(l5,""),D=u.preserveConsecutiveUppercase?t5(D,F):F(D),u.pascalCase)D=C(D.charAt(0))+D.slice(1);return a5(D,C)}var s9=l(y8(),1),a=l(y8(),1),o9=l(qF(),1),e9=l(GF(),1),D6=l(HF(),1);var b8=(D,u)=>u.some((F)=>F instanceof RegExp?F.test(D):F===D),s5=new Set(["https:","http:","file:"]),o5=(D)=>{try{let{protocol:u}=new URL(D);return u.endsWith(":")&&!u.includes(".")&&!s5.has(u)}catch{return!1}},e5=(D,{stripHash:u})=>{let F=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(D);if(!F)throw new Error(`Invalid URL: ${D}`);let{type:C,data:E,hash:w}=F.groups,$=C.split(";");w=u?"":w;let M=!1;if($[$.length-1]==="base64")$.pop(),M=!0;let Z=$.shift()?.toLowerCase()??"",X=[...$.map((A)=>{let[U,H=""]=A.split("=").map((W)=>W.trim());if(U==="charset"){if(H=H.toLowerCase(),H==="us-ascii")return""}return`${U}${H?`=${H}`:""}`}).filter(Boolean)];if(M)X.push("base64");if(X.length>0||Z&&Z!=="text/plain")X.unshift(Z);return`data:${X.join(";")},${M?E.trim():E}${w?`#${w}`:""}`};function c8(D,u){if(u={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...u},typeof u.defaultProtocol==="string"&&!u.defaultProtocol.endsWith(":"))u.defaultProtocol=`${u.defaultProtocol}:`;if(D=D.trim(),/^data:/i.test(D))return e5(D,u);if(o5(D))return D;let F=D.startsWith("//");if(!(!F&&/^\.*\//.test(D)))D=D.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,u.defaultProtocol);let E=new URL(D);if(u.forceHttp&&u.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(u.forceHttp&&E.protocol==="https:")E.protocol="http:";if(u.forceHttps&&E.protocol==="http:")E.protocol="https:";if(u.stripAuthentication)E.username="",E.password="";if(u.stripHash)E.hash="";else if(u.stripTextFragment)E.hash=E.hash.replace(/#?:~:text.*?$/i,"");if(E.pathname){let $=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,M=0,Z="";for(;;){let X=$.exec(E.pathname);if(!X)break;let A=X[0],U=X.index,H=E.pathname.slice(M,U);Z+=H.replace(/\/{2,}/g,"/"),Z+=A,M=U+A.length}let Q=E.pathname.slice(M,E.pathname.length);Z+=Q.replace(/\/{2,}/g,"/"),E.pathname=Z}if(E.pathname)try{E.pathname=decodeURI(E.pathname)}catch{}if(u.removeDirectoryIndex===!0)u.removeDirectoryIndex=[/^index\.[a-z]+$/];if(Array.isArray(u.removeDirectoryIndex)&&u.removeDirectoryIndex.length>0){let $=E.pathname.split("/"),M=$[$.length-1];if(b8(M,u.removeDirectoryIndex))$=$.slice(0,-1),E.pathname=$.slice(1).join("/")+"/"}if(E.hostname){if(E.hostname=E.hostname.replace(/\.$/,""),u.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(E.hostname))E.hostname=E.hostname.replace(/^www\./,"")}if(Array.isArray(u.removeQueryParameters)){for(let $ of[...E.searchParams.keys()])if(b8($,u.removeQueryParameters))E.searchParams.delete($)}if(!Array.isArray(u.keepQueryParameters)&&u.removeQueryParameters===!0)E.search="";if(Array.isArray(u.keepQueryParameters)&&u.keepQueryParameters.length>0){for(let $ of[...E.searchParams.keys()])if(!b8($,u.keepQueryParameters))E.searchParams.delete($)}if(u.sortQueryParameters){E.searchParams.sort();try{E.search=decodeURIComponent(E.search)}catch{}}if(u.removeTrailingSlash)E.pathname=E.pathname.replace(/\/$/,"");if(u.removeExplicitPort&&E.port)E.port="";let w=D;if(D=E.toString(),!u.removeSingleSlash&&E.pathname==="/"&&!w.endsWith("/")&&E.hash==="")D=D.replace(/\/$/,"");if((u.removeTrailingSlash||E.pathname==="/")&&E.hash===""&&u.removeSingleSlash)D=D.replace(/\/$/,"");if(F&&!u.normalizeProtocol)D=D.replace(/^http:\/\//,"//");if(u.stripProtocol)D=D.replace(/^(?:https?:)?\/\//,"");return D}var B6=l(UF(),1),Y6=l(OF(),1);var Qw=class D{#D="";newLine=`
52
+ `;writeStatement(u){this.#D=`${this.#D}${this.newLine}${u}`}child(){return new D}toString(){return this.#D}flush(){this.#D=""}};function Ww({parseFnRefId:D,variableName:u,wildCardPath:F,isArrayMember:C,valueExpression:E,parentExpression:w,fieldNameExpression:$,parentValueExpression:M}){let Z=D?`refs['${D}'](${E}, {
42
53
  data: root,
43
54
  meta: meta,
44
- parent: ${Z}
45
- })`:E,W="";if(w==="root"||w==="root_item")W=C;else if(C!=="''")W=`${w}.getFieldPath() + '.' + ${C}`;return`const ${u} = defineValue(${M}, {
55
+ parent: ${M}
56
+ })`:E,Q="";if(w==="root"||w==="root_item")Q=$;else if($!=="''")Q=`${w}.getFieldPath() + '.' + ${$}`;return`const ${u} = defineValue(${Z}, {
46
57
  data: root,
47
58
  meta: meta,
48
- name: ${C},
59
+ name: ${$},
49
60
  wildCardPath: '${F}',
50
61
  getFieldPath() {
51
- return ${W};
62
+ return ${Q};
52
63
  },
53
64
  mutate: defineValue,
54
65
  report: report,
55
66
  isValid: true,
56
- parent: ${Z},
57
- isArrayMember: ${$},
58
- });`}var vu=class{#D;#u;field;constructor(D,u,F,$){if(this.#u=$,this.#D=D,this.#u)this.field=this.#u;else u.variablesCounter++,this.field=u.createFieldFor(D,F)}defineField(D){if(!this.#u)D.writeStatement(Bw({fieldNameExpression:this.field.fieldNameExpression,isArrayMember:this.field.isArrayMember,parentExpression:this.field.parentExpression,parentValueExpression:this.field.parentValueExpression,valueExpression:this.field.valueExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath,parseFnRefId:"parseFnId"in this.#D?this.#D.parseFnId:void 0}))}};function xF({variableName:D,guardedCodeSnippet:u}){return`if (ensureIsArray(${D})) {
67
+ parent: ${M},
68
+ isArrayMember: ${C},
69
+ });`}var ru=class{#D;#u;field;constructor(D,u,F,C){if(this.#u=C,this.#D=D,this.#u)this.field=this.#u;else u.variablesCounter++,this.field=u.createFieldFor(D,F)}defineField(D){if(!this.#u)D.writeStatement(Ww({fieldNameExpression:this.field.fieldNameExpression,isArrayMember:this.field.isArrayMember,parentExpression:this.field.parentExpression,parentValueExpression:this.field.parentValueExpression,valueExpression:this.field.valueExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath,parseFnRefId:"parseFnId"in this.#D?this.#D.parseFnId:void 0}))}};function VF({variableName:D,guardedCodeSnippet:u}){return`if (${D}_is_array) {
59
70
  ${u}
60
- }`}function K8({variableName:D,bail:u,guardedCodeSnippet:F}){if(!u)return F;return`if (${D}.isValid) {
71
+ }`}function K1({variableName:D,bail:u,guardedCodeSnippet:F}){if(!u)return F;return`if (${D}.isValid) {
61
72
  ${F}
62
- }`}function K0({allowNull:D,conditional:u,variableName:F,outputExpression:$,transformFnRefId:E}){if(!D)return"";return`${u||"if"}(${F}.value === null) {
63
- ${$} = ${E?`refs['${E}'](null, ${F});`:"null;"}
64
- }`}function Yw(D,u){let[F,$]=D;if(F&&$)return`if (${F} && ${$}) {
73
+ }`}function X0({allowNull:D,conditional:u,variableName:F,outputExpression:C,transformFnRefId:E}){if(!D)return"";return`${u||"if"}(${F}.value === null) {
74
+ ${C} = ${E?`refs['${E}'](null, ${F});`:"null;"}
75
+ }`}function zw(D,u){let[F,C]=D;if(F&&C)return`if (${F} && ${C}) {
65
76
  ${u}
66
77
  }`;if(F)return`if (${F}) {
67
78
  ${u}
68
- }`;if($)return`if (${$}) {
79
+ }`;if(C)return`if (${C}) {
69
80
  ${u}
70
- }`;return u}function Jw({isAsync:D,implicit:u,ruleFnId:F},$,E,w){let C=`refs['${F}']`,Z=`${C}.validator(${$}.value, ${C}.options, ${$});`,M=E?`${$}.isValid`:"",W=u||w?"":`${$}.isDefined`;return Yw([M,W],D?`await ${Z}`:`${Z}`)}function M0({bail:D,validations:u,variableName:F,dropMissingCheck:$}){return`${u.map((E)=>Jw(E,F,D,$)).join("\n")}`}function SF({variableName:D,outputExpression:u,outputValueExpression:F}){return`const ${D}_out = ${F};
71
- ${u} = ${D}_out;`}function X0({allowNull:D,isOptional:u,variableName:F}){if(u===!1)if(D===!1)return`ensureExists(${F});`;else return`ensureIsDefined(${F});`;return""}var Zw=class extends vu{#D;#u;#F;constructor(D,u,F,$,E){super(D,F,$,E);this.#D=D,this.#u=u,this.#F=F}#C(){let D=this.#u.child(),u={type:"tuple",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath};return this.#D.properties.forEach((F)=>{this.#F.compileNode(F,D,u)}),D.toString()}compile(){this.defineField(this.#u),this.#u.writeStatement(X0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName}));let D=K8({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${SF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:this.#D.allowUnknownProperties?`copyProperties(${this.field.variableName}.value)`:"[]"})}${this.#C()}`}),u=xF({variableName:this.field.variableName,guardedCodeSnippet:`${M0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!0})}${this.#u.newLine}${D}`});this.#u.writeStatement(`${u}${this.#u.newLine}${K0({allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,variableName:this.field.variableName,conditional:"else if"})}`)}};function Kw({variableName:D,loopCodeSnippet:u,startingIndex:F}){return F=F||0,`const ${D}_items_size = ${D}.value.length;
81
+ }`;return u}function Aw({isAsync:D,implicit:u,ruleFnId:F},C,E,w,$){let M=`refs['${F}']`,Z=`${M}.validator(${C}.value, ${M}.options, ${C});`;$=$||`${C}.isDefined`;let Q=E?`${C}.isValid`:"";return zw([Q,u||w?"":$],D?`await ${Z}`:`${Z}`)}function Q0({bail:D,validations:u,variableName:F,dropMissingCheck:C,existenceCheckExpression:E}){return`${u.map((w)=>Aw(w,F,D,C,E)).join(`
82
+ `)}`}function TF({variableName:D,outputExpression:u,outputValueExpression:F}){return`const ${D}_out = ${F};
83
+ ${u} = ${D}_out;`}function W0({allowNull:D,isOptional:u,variableName:F}){if(u===!1)if(D===!1)return`ensureExists(${F});`;else return`ensureIsDefined(${F});`;return""}function LF({variableName:D}){return`const ${D}_is_array = ensureIsArray(${D});`}var qw=class extends ru{#D;#u;#F;constructor(D,u,F,C,E){super(D,F,C,E);this.#D=D,this.#u=u,this.#F=F}#C(){let D=this.#u.child(),u={type:"tuple",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath};return this.#D.properties.forEach((F)=>{this.#F.compileNode(F,D,u)}),D.toString()}compile(){this.defineField(this.#u),this.#u.writeStatement(W0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName})),this.#u.writeStatement(LF({variableName:this.field.variableName})),this.#u.writeStatement(Q0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!1,existenceCheckExpression:`${this.field.variableName}_is_array`}));let D=VF({variableName:this.field.variableName,guardedCodeSnippet:`${this.#u.newLine}${K1({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${TF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:this.#D.allowUnknownProperties?`copyProperties(${this.field.variableName}.value)`:"[]"})}${this.#u.newLine}${this.#C()}`})}`});this.#u.writeStatement(`${D}${this.#u.newLine}${X0({allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,variableName:this.field.variableName,conditional:"else if"})}`)}};function Gw({variableName:D,loopCodeSnippet:u,startingIndex:F}){return F=F||0,`const ${D}_items_size = ${D}.value.length;
72
84
  for (let ${D}_i = ${F}; ${D}_i < ${D}_items_size; ${D}_i++) {
73
85
  ${u}
74
- }`}var Mw=class extends vu{#D;#u;#F;constructor(D,u,F,$,E){super(D,F,$,E);this.#D=D,this.#u=u,this.#F=F}#C(){let D=this.#u.child();this.#F.compileNode(this.#D.each,D,{type:"array",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath});let u=this.#u.child();return u.writeStatement(Kw({variableName:this.field.variableName,startingIndex:0,loopCodeSnippet:D.toString()})),D.flush(),u.toString()}compile(){this.defineField(this.#u),this.#u.writeStatement(X0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName}));let D=K8({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${SF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:"[]"})}${this.#u.newLine}${this.#C()}`}),u=xF({variableName:this.field.variableName,guardedCodeSnippet:`${M0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!0})}${this.#u.newLine}${D}`});this.#u.writeStatement(`${u}${this.#u.newLine}${K0({allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,variableName:this.field.variableName,conditional:"else if"})}`)}};function Xw({parseFnRefId:D,variableName:u}){if(D)return`${u}.value = refs['${D}'](${u}.value);`;return""}function hF({variableName:D,conditionalFnRefId:u}){return`else {
86
+ }`}var Hw=class extends ru{#D;#u;#F;constructor(D,u,F,C,E){super(D,F,C,E);this.#D=D,this.#u=u,this.#F=F}#C(){let D=this.#u.child();this.#F.compileNode(this.#D.each,D,{type:"array",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath});let u=this.#u.child();return u.writeStatement(Gw({variableName:this.field.variableName,startingIndex:0,loopCodeSnippet:D.toString()})),D.flush(),u.toString()}compile(){this.defineField(this.#u),this.#u.writeStatement(W0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName})),this.#u.writeStatement(LF({variableName:this.field.variableName})),this.#u.writeStatement(Q0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!1,existenceCheckExpression:`${this.field.variableName}_is_array`}));let D=VF({variableName:this.field.variableName,guardedCodeSnippet:`${this.#u.newLine}${K1({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${TF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:"[]"})}${this.#u.newLine}${this.#C()}`})}`});this.#u.writeStatement(`${D}${this.#u.newLine}${X0({allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,variableName:this.field.variableName,conditional:"else if"})}`)}};function Uw({parseFnRefId:D,variableName:u}){if(D)return`${u}.value = refs['${D}'](${u}.value);`;return""}function hF({variableName:D,conditionalFnRefId:u}){return`else {
75
87
  refs['${u}'](${D}.value, ${D});
76
- }`}function yF({conditional:D,variableName:u,conditionalFnRefId:F,guardedCodeSnippet:$}){return`${D}(refs['${F}'](${u}.value, ${u})) {
77
- ${$}
78
- }`}var Ww=class extends vu{#D;#u;#F;#C;constructor(D,u,F,$,E){super(D,F,$,E);this.#u=D,this.#F=u,this.#C=$,this.#D=F}#$(){let D=this.#F.child();if(this.#u.conditions.forEach((u,F)=>{let $=this.#F.child();if("parseFnId"in u.schema)$.writeStatement(Xw({parseFnRefId:u.schema.parseFnId,variableName:this.field.variableName}));this.#D.compileNode(u.schema,$,this.#C,this.field),D.writeStatement(yF({conditional:F===0?"if":"else if",variableName:this.field.variableName,conditionalFnRefId:u.conditionalFnRefId,guardedCodeSnippet:$.toString()})),$.flush()}),this.#u.elseConditionalFnRefId&&this.#u.conditions.length)D.writeStatement(hF({variableName:this.field.variableName,conditionalFnRefId:this.#u.elseConditionalFnRefId}));return D.toString()}compile(){this.defineField(this.#F),this.#F.writeStatement(this.#$())}};function Qw({variableName:D,loopCodeSnippet:u}){return`const ${D}_keys = Object.keys(${D}.value);
88
+ }`}function NF({conditional:D,variableName:u,conditionalFnRefId:F,guardedCodeSnippet:C}){return`${D}(refs['${F}'](${u}.value, ${u})) {
89
+ ${C}
90
+ }`}var Ow=class extends ru{#D;#u;#F;#C;constructor(D,u,F,C,E){super(D,F,C,E);this.#u=D,this.#F=u,this.#C=C,this.#D=F}#$(){let D=this.#F.child();if(this.#u.conditions.forEach((u,F)=>{let C=this.#F.child();if("parseFnId"in u.schema)C.writeStatement(Uw({parseFnRefId:u.schema.parseFnId,variableName:this.field.variableName}));this.#D.compileNode(u.schema,C,this.#C,this.field),D.writeStatement(NF({conditional:F===0?"if":"else if",variableName:this.field.variableName,conditionalFnRefId:u.conditionalFnRefId,guardedCodeSnippet:C.toString()})),C.flush()}),this.#u.elseConditionalFnRefId&&this.#u.conditions.length)D.writeStatement(hF({variableName:this.field.variableName,conditionalFnRefId:this.#u.elseConditionalFnRefId}));return D.toString()}compile(){this.defineField(this.#F),this.#F.writeStatement(this.#$())}};function Vw({variableName:D,loopCodeSnippet:u}){return`const ${D}_keys = Object.keys(${D}.value);
79
91
  const ${D}_keys_size = ${D}_keys.length;
80
92
  for (let ${D}_key_i = 0; ${D}_key_i < ${D}_keys_size; ${D}_key_i++) {
81
93
  const ${D}_i = ${D}_keys[${D}_key_i];
82
94
  ${u}
83
- }`}function jF({variableName:D,guardedCodeSnippet:u}){return`if (ensureIsObject(${D})) {
95
+ }`}function IF({variableName:D,guardedCodeSnippet:u}){return`if (${D}_is_object) {
84
96
  ${u}
85
- }`}function RF({variableName:D,outputExpression:u,outputValueExpression:F}){return`const ${D}_out = ${F};
86
- ${u} = ${D}_out;`}var Aw=class extends vu{#D;#u;#F;constructor(D,u,F,$,E){super(D,F,$,E);this.#D=D,this.#u=u,this.#F=F}#C(){let D=this.#u.child(),u=this.#u.child();return this.#F.compileNode(this.#D.each,u,{type:"record",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath}),D.writeStatement(Qw({variableName:this.field.variableName,loopCodeSnippet:u.toString()})),u.flush(),D.toString()}compile(){this.defineField(this.#u),this.#u.writeStatement(X0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName}));let D=K8({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${RF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:"{}"})}${this.#C()}`}),u=jF({variableName:this.field.variableName,guardedCodeSnippet:`${M0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!0})}${this.#u.newLine}${D}`});this.#u.writeStatement(`${u}${this.#u.newLine}${K0({allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,variableName:this.field.variableName,conditional:"else if"})}`)}};function zw(D){return`[${D.map((u)=>`"${u}"`).join(", ")}]`}function Gw({variableName:D,fieldsToIgnore:u,allowUnknownProperties:F}){if(!F)return"";let $=zw(u);return`moveProperties(${D}.value, ${D}_out, ${$});`}var qw=class extends vu{#D;#u;#F;constructor(D,u,F,$,E){super(D,F,$,E);this.#D=D,this.#u=u,this.#F=F}#C(D){let u=D.properties.map(($)=>$.fieldName),F=D.groups.flatMap(($)=>this.#$($));return u.concat(F)}#$(D){return D.conditions.flatMap((u)=>{return this.#C(u.schema)})}#E(){let D=this.#u.child(),u={type:"object",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath};return this.#D.properties.forEach((F)=>this.#F.compileNode(F,D,u)),D.toString()}#w(){let D=this.#u.child(),u={type:"object",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath};return this.#D.groups.forEach((F)=>this.#B(F,D,u)),D.toString()}#B(D,u,F){if(D.conditions.forEach(($,E)=>{let w=u.child();$.schema.properties.forEach((C)=>{this.#F.compileNode(C,w,F)}),$.schema.groups.forEach((C)=>{this.#B(C,w,F)}),u.writeStatement(yF({variableName:this.field.variableName,conditional:E===0?"if":"else if",conditionalFnRefId:$.conditionalFnRefId,guardedCodeSnippet:w.toString()}))}),D.elseConditionalFnRefId&&D.conditions.length)u.writeStatement(hF({variableName:this.field.variableName,conditionalFnRefId:D.elseConditionalFnRefId}))}compile(){this.defineField(this.#u),this.#u.writeStatement(X0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName}));let D=K8({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${RF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:"{}"})}${this.#u.newLine}${this.#E()}${this.#u.newLine}${this.#w()}${this.#u.newLine}${Gw({variableName:this.field.variableName,allowUnknownProperties:this.#D.allowUnknownProperties,fieldsToIgnore:this.#D.allowUnknownProperties?this.#C(this.#D):[]})}`}),u=jF({variableName:this.field.variableName,guardedCodeSnippet:`${M0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!0})}${D}`});this.#u.writeStatement(`${u}${this.#u.newLine}${K0({variableName:this.field.variableName,allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,conditional:"else if"})}`)}};function Hw(D){return{parentExpression:D.variableName,parentValueExpression:D.variableName,fieldNameExpression:"''",fieldPathExpression:"''",wildCardPath:"",variableName:`${D.variableName}_item`,valueExpression:"root",outputExpression:D.outputExpression,isArrayMember:!1}}function Uw({variableName:D,outputExpression:u,transformFnRefId:F}){let $=F?`refs['${F}'](${D}.value, ${D})`:`${D}.value`;return`if (${D}.isDefined && ${D}.isValid) {
87
- ${u} = ${$};
88
- }`}var Ow=class extends vu{#D;#u;constructor(D,u,F,$,E){super(D,F,$,E);this.#D=D,this.#u=u}compile(){this.defineField(this.#u),this.#u.writeStatement(X0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName})),this.#u.writeStatement(M0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!1})),this.#u.writeStatement(`${Uw({variableName:this.field.variableName,outputExpression:this.field.outputExpression,transformFnRefId:this.#D.transformFnId})}${this.#u.newLine}${K0({variableName:this.field.variableName,allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,transformFnRefId:this.#D.transformFnId,conditional:"else if"})}`)}};function Vw(D){let u=D.wildCardPath!==""?`${D.wildCardPath}.*`:"*";return{parentExpression:D.variableName,parentValueExpression:`${D.variableName}.value`,fieldNameExpression:`${D.variableName}_i`,fieldPathExpression:u,wildCardPath:u,variableName:`${D.variableName}_item`,valueExpression:`${D.variableName}.value[${D.variableName}_i]`,outputExpression:`${D.variableName}_out[${D.variableName}_i]`,isArrayMember:!0}}function Lw(D,u){let F=u.wildCardPath!==""?`${u.wildCardPath}.${D.fieldName}`:D.fieldName;return{parentExpression:u.variableName,parentValueExpression:`${u.variableName}.value`,fieldNameExpression:`${D.fieldName}`,fieldPathExpression:F,wildCardPath:F,variableName:`${u.variableName}_item_${D.fieldName}`,valueExpression:`${u.variableName}.value[${D.fieldName}]`,outputExpression:`${u.variableName}_out[${D.propertyName}]`,isArrayMember:!0}}function Tw(){return`if(errorReporter.hasErrors) {
97
+ }`}function yF({variableName:D,outputExpression:u,outputValueExpression:F}){return`const ${D}_out = ${F};
98
+ ${u} = ${D}_out;`}function SF({variableName:D}){return`const ${D}_is_object = ensureIsObject(${D});`}var Tw=class extends ru{#D;#u;#F;constructor(D,u,F,C,E){super(D,F,C,E);this.#D=D,this.#u=u,this.#F=F}#C(){let D=this.#u.child(),u=this.#u.child();return this.#F.compileNode(this.#D.each,u,{type:"record",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath}),D.writeStatement(Vw({variableName:this.field.variableName,loopCodeSnippet:u.toString()})),u.flush(),D.toString()}compile(){this.defineField(this.#u),this.#u.writeStatement(W0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName})),this.#u.writeStatement(SF({variableName:this.field.variableName})),this.#u.writeStatement(Q0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!1,existenceCheckExpression:`${this.field.variableName}_is_object`}));let D=K1({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${yF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:"{}"})}${this.#C()}`}),u=IF({variableName:this.field.variableName,guardedCodeSnippet:`${this.#u.newLine}${D}`});this.#u.writeStatement(`${u}${this.#u.newLine}${X0({allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,variableName:this.field.variableName,conditional:"else if"})}`)}};function Lw(D){return`[${D.map((u)=>`"${u}"`).join(", ")}]`}function hw({variableName:D,fieldsToIgnore:u,allowUnknownProperties:F}){if(!F)return"";let C=Lw(u);return`moveProperties(${D}.value, ${D}_out, ${C});`}var Nw=class extends ru{#D;#u;#F;constructor(D,u,F,C,E){super(D,F,C,E);this.#D=D,this.#u=u,this.#F=F}#C(D){let u=D.properties.map((C)=>C.fieldName),F=D.groups.flatMap((C)=>this.#$(C));return u.concat(F)}#$(D){return D.conditions.flatMap((u)=>{return this.#C(u.schema)})}#E(){let D=this.#u.child(),u={type:"object",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath};return this.#D.properties.forEach((F)=>this.#F.compileNode(F,D,u)),D.toString()}#w(){let D=this.#u.child(),u={type:"object",fieldPathExpression:this.field.fieldPathExpression,outputExpression:this.field.outputExpression,variableName:this.field.variableName,wildCardPath:this.field.wildCardPath};return this.#D.groups.forEach((F)=>this.#B(F,D,u)),D.toString()}#B(D,u,F){if(D.conditions.forEach((C,E)=>{let w=u.child();C.schema.properties.forEach(($)=>{this.#F.compileNode($,w,F)}),C.schema.groups.forEach(($)=>{this.#B($,w,F)}),u.writeStatement(NF({variableName:this.field.variableName,conditional:E===0?"if":"else if",conditionalFnRefId:C.conditionalFnRefId,guardedCodeSnippet:w.toString()}))}),D.elseConditionalFnRefId&&D.conditions.length)u.writeStatement(hF({variableName:this.field.variableName,conditionalFnRefId:D.elseConditionalFnRefId}))}compile(){this.defineField(this.#u),this.#u.writeStatement(W0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName})),this.#u.writeStatement(SF({variableName:this.field.variableName})),this.#u.writeStatement(Q0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!1,existenceCheckExpression:`${this.field.variableName}_is_object`}));let D=K1({variableName:this.field.variableName,bail:this.#D.bail,guardedCodeSnippet:`${yF({variableName:this.field.variableName,outputExpression:this.field.outputExpression,outputValueExpression:"{}"})}${this.#u.newLine}${this.#E()}${this.#u.newLine}${this.#w()}${this.#u.newLine}${hw({variableName:this.field.variableName,allowUnknownProperties:this.#D.allowUnknownProperties,fieldsToIgnore:this.#D.allowUnknownProperties?this.#C(this.#D):[]})}`}),u=IF({variableName:this.field.variableName,guardedCodeSnippet:`${D}`});this.#u.writeStatement(`${u}${this.#u.newLine}${X0({variableName:this.field.variableName,allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,conditional:"else if"})}`)}};function Iw(D){return{parentExpression:D.variableName,parentValueExpression:D.variableName,fieldNameExpression:"''",fieldPathExpression:"''",wildCardPath:"",variableName:`${D.variableName}_item`,valueExpression:"root",outputExpression:D.outputExpression,isArrayMember:!1}}function yw({variableName:D,outputExpression:u,transformFnRefId:F}){let C=F?`refs['${F}'](${D}.value, ${D})`:`${D}.value`;return`if (${D}.isDefined && ${D}.isValid) {
99
+ ${u} = ${C};
100
+ }`}var Sw=class extends ru{#D;#u;constructor(D,u,F,C,E){super(D,F,C,E);this.#D=D,this.#u=u}compile(){this.defineField(this.#u),this.#u.writeStatement(W0({allowNull:this.#D.allowNull,isOptional:this.#D.isOptional,variableName:this.field.variableName})),this.#u.writeStatement(Q0({variableName:this.field.variableName,validations:this.#D.validations,bail:this.#D.bail,dropMissingCheck:!1})),this.#u.writeStatement(`${yw({variableName:this.field.variableName,outputExpression:this.field.outputExpression,transformFnRefId:this.#D.transformFnId})}${this.#u.newLine}${X0({variableName:this.field.variableName,allowNull:this.#D.allowNull,outputExpression:this.field.outputExpression,transformFnRefId:this.#D.transformFnId,conditional:"else if"})}`)}};function gw(D){let u=D.wildCardPath!==""?`${D.wildCardPath}.*`:"*";return{parentExpression:D.variableName,parentValueExpression:`${D.variableName}.value`,fieldNameExpression:`${D.variableName}_i`,fieldPathExpression:u,wildCardPath:u,variableName:`${D.variableName}_item`,valueExpression:`${D.variableName}.value[${D.variableName}_i]`,outputExpression:`${D.variableName}_out[${D.variableName}_i]`,isArrayMember:!0}}function jw(D,u){let F=u.wildCardPath!==""?`${u.wildCardPath}.${D.fieldName}`:D.fieldName;return{parentExpression:u.variableName,parentValueExpression:`${u.variableName}.value`,fieldNameExpression:`${D.fieldName}`,fieldPathExpression:F,wildCardPath:F,variableName:`${u.variableName}_item_${D.fieldName}`,valueExpression:`${u.variableName}.value[${D.fieldName}]`,outputExpression:`${u.variableName}_out[${D.propertyName}]`,isArrayMember:!0}}function Rw(){return`if(errorReporter.hasErrors) {
89
101
  throw errorReporter.createError();
90
- }`}function Nw(D,u,F){let $=F.wildCardPath!==""?`${F.wildCardPath}.${D.fieldName}`:D.fieldName;return{parentExpression:F.variableName,parentValueExpression:`${F.variableName}.value`,fieldNameExpression:`'${D.fieldName}'`,fieldPathExpression:$,wildCardPath:$,variableName:`${D.propertyName}_${u}`,valueExpression:`${F.variableName}.value['${D.fieldName}']`,outputExpression:`${F.variableName}_out['${D.propertyName}']`,isArrayMember:!1}}function Iw(D){let u=D.wildCardPath!==""?`${D.wildCardPath}.*`:"*";return{parentExpression:D.variableName,parentValueExpression:`${D.variableName}.value`,fieldNameExpression:`${D.variableName}_i`,fieldPathExpression:u,wildCardPath:u,variableName:`${D.variableName}_item`,valueExpression:`${D.variableName}.value[${D.variableName}_i]`,outputExpression:`${D.variableName}_out[${D.variableName}_i]`,isArrayMember:!1}}function xw(D){return`function report(message, rule, field, args) {
102
+ }`}var Pw=/\d/,kw=/[A-Za-z0-9]+/;function bw(D=""){if(Pw.test(D))return;return D!==D.toLowerCase()}function cw(D){return D?D[0].toUpperCase()+D.slice(1):""}function mw(D){return D?D[0].toLowerCase()+D.slice(1):""}function _w(D){let u=[];if(!D||typeof D!=="string")return u;let F="",C,E;for(let w of D){let $=!kw.test(w);if($===!0){u.push(F),F="",C=void 0;continue}let M=bw(w);if(E===!1){if(C===!1&&M===!0){u.push(F),F=w,C=M;continue}if(C===!0&&M===!1&&F.length>1){let Z=F.at(-1);u.push(F.slice(0,Math.max(0,F.length-1))),F=Z+w,C=M;continue}}F+=w,C=M,E=$}return u.push(F),u}function vw(D){let u=_w(D).map((F)=>cw(F.toLowerCase())).join("");return/^[0-9]+/.test(u)?`var_${u}`:mw(u)}function fw(D,u,F){let C=F.wildCardPath!==""?`${F.wildCardPath}.${D.fieldName}`:D.fieldName;return{parentExpression:F.variableName,parentValueExpression:`${F.variableName}.value`,fieldNameExpression:`'${D.fieldName}'`,fieldPathExpression:C,wildCardPath:C,variableName:`${vw(D.propertyName)}_${u}`,valueExpression:`${F.variableName}.value['${D.fieldName}']`,outputExpression:`${F.variableName}_out['${D.propertyName}']`,isArrayMember:!1}}function xw(D){let u=D.wildCardPath!==""?`${D.wildCardPath}.*`:"*";return{parentExpression:D.variableName,parentValueExpression:`${D.variableName}.value`,fieldNameExpression:`${D.variableName}_i`,fieldPathExpression:u,wildCardPath:u,variableName:`${D.variableName}_item`,valueExpression:`${D.variableName}.value[${D.variableName}_i]`,outputExpression:`${D.variableName}_out[${D.variableName}_i]`,isArrayMember:!1}}function nw(D){return`function report(message, rule, field, args) {
91
103
  field.isValid = false;
92
104
  errorReporter.report(messagesProvider.getMessage(message, rule, field, args), rule, field, args);
93
105
  };
@@ -156,6 +168,41 @@ function moveProperties(source, destination, ignoreKeys) {
156
168
  destination[key] = copyProperties(value)
157
169
  }
158
170
  }
159
- };`}function Sw(D){return`const REQUIRED = '${D.required}';
171
+ };`}function dw(D){return`const REQUIRED = '${D.required}';
160
172
  const NOT_AN_OBJECT = '${D.object}';
161
- const NOT_AN_ARRAY = '${D.array}';`}var hw=Object.getPrototypeOf(async function(){}).constructor,kF=class{variablesCounter=0;#D;#u;#F=new ww;constructor(D,u){this.#D=D,this.#u=u||{convertEmptyStringsToNull:!1}}#C(){this.#F.writeStatement(Sw({required:"value is required",object:"value is not a valid object",array:"value is not a valid array",...this.#u.messages})),this.#F.writeStatement(xw(this.#u)),this.#F.writeStatement("let out;")}#$(){this.#F.writeStatement(Tw()),this.#F.writeStatement("return out;")}#E(){this.compileNode(this.#D.schema,this.#F,{type:"root",variableName:"root",outputExpression:"out",fieldPathExpression:"out",wildCardPath:""})}#w(){return new hw("root","meta","refs","messagesProvider","errorReporter",this.#F.toString())}createFieldFor(D,u){switch(u.type){case"array":return Vw(u);case"root":return Hw(u);case"object":return Nw(D,this.variablesCounter,u);case"tuple":return Lw(D,u);case"record":return Iw(u)}}compileNode(D,u,F,$){switch(D.type){case"literal":return new Ow(D,u,this,F,$).compile();case"array":return new Mw(D,u,this,F,$).compile();case"record":return new Aw(D,u,this,F,$).compile();case"object":return new qw(D,u,this,F,$).compile();case"tuple":return new Zw(D,u,this,F,$).compile();case"union":return new Ww(D,u,this,F,$).compile()}}compile(){this.#C(),this.#E(),this.#$();let D=this.#w();return this.variablesCounter=0,this.#F.flush(),D}};function gF(){let D=0,u={};return{toJSON(){return u},track(F){D++;let $=`ref://${D}`;return u[$]=F,$},trackValidation(F){return this.track(F)},trackParser(F){return this.track(F)},trackTransformer(F){return this.track(F)},trackConditional(F){return this.track(F)}}}function x(D,u){let F={validator:D,isAsync:u?.isAsync||D.constructor.name==="AsyncFunction",implicit:u?.implicit??!1};return function(...$){return{rule:F,options:$[0]}}}var o6={};y0(o6,{COTYPE:()=>Rw,IS_OF_TYPE:()=>pD,ITYPE:()=>yw,OTYPE:()=>jw,PARSE:()=>r,UNIQUE_NAME:()=>mD,VALIDATION:()=>xu});var mD=Symbol.for("schema_name"),pD=Symbol.for("is_of_type"),r=Symbol.for("parse"),yw=Symbol.for("opaque_input_type"),jw=Symbol.for("opaque_type"),Rw=Symbol.for("camelcase_opaque_type"),xu=Symbol.for("to_validation"),cu=x((D,u,F)=>{let $=u(F);if(!F.isDefined&&$)F.report(V.required,"required",F)},{implicit:!0}),X8=class extends mu{optional(D){return new gw(this,D)}nullable(){return new kw(this)}transform(D){return new bw(D,this)}},kw=class D extends X8{#D;constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[r](u,F,$){let E=this.#D[r](u,F,$);return E.allowNull=!0,E}},gw=class D extends X8{#D;validations;constructor(u,F){super();this.#D=u,this.validations=F||[]}cloneValidations(){return this.validations.map((u)=>{return{options:u.options,rule:u.rule}})}compileValidations(u){return this.validations.map((F)=>{return{ruleFnId:u.track({validator:F.rule.validator,options:F.options}),implicit:F.rule.implicit,isAsync:F.rule.isAsync}})}use(u){return this.validations.push(xu in u?u[xu]():u),this}requiredWhen(u,F,$){if(typeof u==="function")return this.use(cu(u));let E;switch(F){case"=":E=(w)=>w===$;break;case"!=":E=(w)=>w!==$;break;case"in":E=(w)=>$.includes(w);break;case"notIn":E=(w)=>!$.includes(w);break;case">":E=(w)=>w>$;break;case"<":E=(w)=>w<$;break;case">=":E=(w)=>w>=$;break;case"<=":E=(w)=>w<=$}return this.use(cu((w)=>{let C=k.getNestedValue(u,w);return E(C)}))}requiredIfExists(u){let F=Array.isArray(u)?u:[u];return this.use(cu(($)=>{return F.every((E)=>k.exists(k.getNestedValue(E,$)))}))}requiredIfAnyExists(u){return this.use(cu((F)=>{return u.some(($)=>k.exists(k.getNestedValue($,F)))}))}requiredIfMissing(u){let F=Array.isArray(u)?u:[u];return this.use(cu(($)=>{return F.every((E)=>k.isMissing(k.getNestedValue(E,$)))}))}requiredIfAnyMissing(u){return this.use(cu((F)=>{return u.some(($)=>k.isMissing(k.getNestedValue($,F)))}))}clone(){return new D(this.#D.clone(),this.cloneValidations())}[r](u,F,$){let E=this.#D[r](u,F,$);return E.isOptional=!0,E.validations=E.validations.concat(this.compileValidations(F)),E}},bw=class D extends X8{#D;#u;constructor(u,F){super();this.#u=u,this.#D=F}clone(){return new D(this.#u,this.#D.clone())}[r](u,F,$){let E=this.#D[r](u,F,$);return E.transformFnId=F.trackTransformer(this.#u),E}},Bu=class extends X8{options;validations;constructor(D,u){super();this.options={bail:!0,allowNull:!1,isOptional:!1,...D},this.validations=u||[]}cloneValidations(){return this.validations.map((D)=>{return{options:D.options,rule:D.rule}})}cloneOptions(){return{...this.options}}compileValidations(D){return this.validations.map((u)=>{return{ruleFnId:D.track({validator:u.rule.validator,options:u.options}),implicit:u.rule.implicit,isAsync:u.rule.isAsync}})}parse(D){return this.options.parse=D,this}use(D){return this.validations.push(xu in D?D[xu]():D),this}bail(D){return this.options.bail=D,this}[r](D,u,F){return{type:"literal",fieldName:D,propertyName:F.toCamelCase?OD(D):D,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,parseFnId:this.options.parse?u.trackParser(this.options.parse):void 0,validations:this.compileValidations(u)}}},e6=class D extends Bu{constructor(u,F){super(u,F)}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},M8=x((D,u,F)=>{let $=typeof u.choices==="function"?u.choices(F):u.choices;if(!$.includes(D))F.report(V.enum,"enum",F,{choices:$})}),fu=class D extends Bu{static rules={enum:M8};#D;getChoices(){return this.#D}constructor(u,F,$){super(F,$||[M8({choices:u})]);this.#D=u}clone(){return new D(this.#D,this.cloneOptions(),this.cloneValidations())}},Su=["YYYY-MM-DD","YYYY-MM-DD HH:mm:ss"];e.default.extend(CC.default);e.default.extend(uC.default);e.default.extend(FC.default);var _w=x((D,u,F)=>{if(typeof D!=="string"&&typeof D!=="number"){F.report(V.date,"date",F);return}let $=!1,E=u.formats||Su;if(Array.isArray(E))E=[...E],$=E.includes("x");else if(typeof E!=="string")E={...E},$=E.format==="x";let w=$?k.asNumber(D):D,C=$&&!Number.isNaN(w)?e.default(w):e.default(D,E,!0);if(!C.isValid()){F.report(V.date,"date",F);return}F.meta.$value=C,F.meta.$formats=E,F.mutate(C.toDate(),F)}),bF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=u.format||Su,w=F.meta.$value,C=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,Z=e.default(C,E,!0);if(!Z.isValid())throw new Error(`Invalid datetime value "${C}" value provided to the equals rule`);if(!w.isSame(Z,$))F.report(V["date.equals"],"date.equals",F,{expectedValue:C,compare:$})}),_F=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=u.format||Su,w=F.meta.$value,C=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,Z=C==="today"?e.default():C==="tomorrow"?e.default().add(1,"day"):e.default(C,E,!0);if(!Z.isValid())throw new Error(`Invalid datetime value "${C}" value provided to the after rule`);if(!w.isAfter(Z,$))F.report(V["date.after"],"date.after",F,{expectedValue:C,compare:$})}),PF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=u.format||Su,w=F.meta.$value,C=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,Z=C==="today"?e.default():C==="tomorrow"?e.default().add(1,"day"):e.default(C,E,!0);if(!Z.isValid())throw new Error(`Invalid datetime value "${C}" value provided to the afterOrEqual rule`);if(!w.isSameOrAfter(Z,$))F.report(V["date.afterOrEqual"],"date.afterOrEqual",F,{expectedValue:C,compare:$})}),mF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=u.format||Su,w=F.meta.$value,C=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,Z=C==="today"?e.default():C==="yesterday"?e.default().subtract(1,"day"):e.default(C,E,!0);if(!Z.isValid())throw new Error(`Invalid datetime value "${C}" value provided to the before rule`);if(!w.isBefore(Z,$))F.report(V["date.before"],"date.before",F,{expectedValue:C,compare:$})}),vF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=u.format||Su,w=F.meta.$value,C=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,Z=C==="today"?e.default():C==="yesterday"?e.default().subtract(1,"day"):e.default(C,E,!0);if(!Z.isValid())throw new Error(`Invalid datetime value "${C}" value provided to the beforeOrEqual rule`);if(!w.isSameOrBefore(Z,$))F.report(V["date.beforeOrEqual"],"date.beforeOrEqual",F,{expectedValue:C,compare:$})}),cF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,C=k.getNestedValue(u.otherField,F),Z=e.default(C,w,!0);if(!Z.isValid())return;if(!E.isSame(Z,$))F.report(V["date.sameAs"],"date.sameAs",F,{otherField:u.otherField,expectedValue:C,compare:$})}),fF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,C=k.getNestedValue(u.otherField,F),Z=e.default(C,w,!0);if(!Z.isValid())return;if(E.isSame(Z,$))F.report(V["date.notSameAs"],"date.notSameAs",F,{otherField:u.otherField,expectedValue:C,compare:$})}),nF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,C=k.getNestedValue(u.otherField,F),Z=e.default(C,w,!0);if(!Z.isValid())return;if(!E.isAfter(Z,$))F.report(V["date.afterField"],"date.afterField",F,{otherField:u.otherField,expectedValue:C,compare:$})}),rF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,C=k.getNestedValue(u.otherField,F),Z=e.default(C,w,!0);if(!Z.isValid())return;if(!E.isSameOrAfter(Z,$))F.report(V["date.afterOrSameAs"],"date.afterOrSameAs",F,{otherField:u.otherField,expectedValue:C,compare:$})}),dF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,C=k.getNestedValue(u.otherField,F),Z=e.default(C,w,!0);if(!Z.isValid())return;if(!E.isBefore(Z,$))F.report(V["date.beforeField"],"date.beforeField",F,{otherField:u.otherField,expectedValue:C,compare:$})}),lF=x((D,u,F)=>{if(!F.meta.$value)return;let $=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,C=k.getNestedValue(u.otherField,F),Z=e.default(C,w,!0);if(!Z.isValid())return;if(!E.isSameOrBefore(Z,$))F.report(V["date.beforeOrSameAs"],"date.beforeOrSameAs",F,{otherField:u.otherField,expectedValue:C,compare:$})}),pF=x((D,u,F)=>{if(!F.meta.$value)return;let E=F.meta.$value.day();if(E!==0&&E!==6)F.report(V["date.weekend"],"date.weekend",F)}),iF=x((D,u,F)=>{if(!F.meta.$value)return;let E=F.meta.$value.day();if(E===0||E===6)F.report(V["date.weekday"],"date.weekday",F)}),c2=class D extends Bu{static rules={equals:bF,after:_F,afterOrEqual:PF,before:mF,beforeOrEqual:vF,sameAs:cF,notSameAs:fF,afterField:nF,afterOrSameAs:rF,beforeField:dF,beforeOrSameAs:lF,weekend:pF,weekday:iF};[mD]="vine.date";[pD]=(u)=>{if(typeof u!=="string")return!1;return DC.default(u,this.options.formats||Su,!0).isValid()};constructor(u,F){super(u,F||[_w(u||{})])}equals(u,F){return this.use(bF({expectedValue:u,...F}))}after(u,F){return this.use(_F({expectedValue:u,...F}))}afterOrEqual(u,F){return this.use(PF({expectedValue:u,...F}))}before(u,F){return this.use(mF({expectedValue:u,...F}))}beforeOrEqual(u,F){return this.use(vF({expectedValue:u,...F}))}sameAs(u,F){return this.use(cF({otherField:u,...F}))}notSameAs(u,F){return this.use(fF({otherField:u,...F}))}afterField(u,F){return this.use(nF({otherField:u,...F}))}afterOrSameAs(u,F){return this.use(rF({otherField:u,...F}))}beforeField(u,F){return this.use(dF({otherField:u,...F}))}beforeOrSameAs(u,F){return this.use(lF({otherField:u,...F}))}weekend(){return this.use(pF())}weekday(){return this.use(iF())}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},$C=class D{#D;#u=(u,F)=>{F.report(V.union,"union",F)};constructor(u){this.#D=u}otherwise(u){return this.#u=u,this}clone(){let u=new D(this.#D);return u.otherwise(this.#u),u}[r](u,F,$){return{type:"union",fieldName:u,propertyName:$.toCamelCase?OD(u):u,elseConditionalFnRefId:F.trackConditional(this.#u),conditions:this.#D.map((E)=>E[r](u,F,$))}}},EC=class{#D;#u;constructor(D,u){this.#D=u,this.#u=D}[r](D,u,F){return{conditionalFnRefId:u.trackConditional(this.#u),schema:this.#D[r](D,u,F)}}};function f2(D){return new $C(D)}f2.if=function D(u,F){return new EC(u,F)};f2.else=function D(u){return new EC(()=>!0,u)};var W0=class extends mu{optional(){return new mw(this)}nullable(){return new Pw(this)}},Pw=class D extends W0{#D;constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[r](u,F,$){let E=this.#D[r](u,F,$);if(E.type!=="union")E.allowNull=!0;return E}},mw=class D extends W0{#D;constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[r](u,F,$){let E=this.#D[r](u,F,$);if(E.type!=="union")E.isOptional=!0;return E}},Q0=class extends W0{options;validations;constructor(D,u){super();this.options=D||{bail:!0,allowNull:!1,isOptional:!1},this.validations=u||[]}cloneValidations(){return this.validations.map((D)=>{return{options:D.options,rule:D.rule}})}cloneOptions(){return{...this.options}}compileValidations(D){return this.validations.map((u)=>{return{ruleFnId:D.track({validator:u.rule.validator,options:u.options}),implicit:u.rule.implicit,isAsync:u.rule.isAsync}})}parse(D){return this.options.parse=D,this}use(D){return this.validations.push(xu in D?D[xu]():D),this}bail(D){return this.options.bail=D,this}},wC=class D extends Q0{#D;#u=!1;[mD]="vine.array";[pD]=(u)=>{return Array.isArray(u)};constructor(u,F,$){super(F,$);this.#D=u}allowUnknownProperties(){return this.#u=!0,this}clone(){let u=new D(this.#D.map((F)=>F.clone()),this.cloneOptions(),this.cloneValidations());if(this.#u)u.allowUnknownProperties();return u}[r](u,F,$){return{type:"tuple",fieldName:u,propertyName:$.toCamelCase?OD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,allowUnknownProperties:this.#u,parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,validations:this.compileValidations(F),properties:this.#D.map((E,w)=>E[r](String(w),F,$))}}},tF=x((D,u,F)=>{if(!F.isValid)return;if(D.length<u.min)F.report(V["array.minLength"],"array.minLength",F,u)}),sF=x((D,u,F)=>{if(!F.isValid)return;if(D.length>u.max)F.report(V["array.maxLength"],"array.maxLength",F,u)}),aF=x((D,u,F)=>{if(!F.isValid)return;if(D.length!==u.size)F.report(V["array.fixedLength"],"array.fixedLength",F,u)}),oF=x((D,u,F)=>{if(!F.isValid)return;if(D.length<=0)F.report(V.notEmpty,"notEmpty",F)}),eF=x((D,u,F)=>{if(!F.isValid)return;if(!k.isDistinct(D,u.fields))F.report(V.distinct,"distinct",F,u)}),D6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(D.filter(($)=>k.exists($)&&$!==""),F)}),BC=class D extends Q0{static rules={compact:D6,notEmpty:oF,distinct:eF,minLength:tF,maxLength:sF,fixedLength:aF};#D;[mD]="vine.array";[pD]=(u)=>{return Array.isArray(u)};constructor(u,F,$){super(F,$);this.#D=u}minLength(u){return this.use(tF({min:u}))}maxLength(u){return this.use(sF({max:u}))}fixedLength(u){return this.use(aF({size:u}))}notEmpty(){return this.use(oF())}distinct(u){return this.use(eF({fields:u}))}compact(){return this.use(D6())}clone(){return new D(this.#D.clone(),this.cloneOptions(),this.cloneValidations())}[r](u,F,$){return{type:"array",fieldName:u,propertyName:$.toCamelCase?OD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,each:this.#D[r]("*",F,$),parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,validations:this.compileValidations(F)}}},vw=class D extends W0{#D;[mD]="types.object";[pD]=(u)=>{return u!==null&&typeof u==="object"&&!Array.isArray(u)};constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[r](u,F,$){return $.toCamelCase=!0,this.#D[r](u,F,$)}},YC=class D extends Q0{#D;#u=[];#F=!1;[mD]="vine.object";[pD]=(u)=>{return u!==null&&typeof u==="object"&&!Array.isArray(u)};constructor(u,F,$){super(F,$);this.#D=u}getProperties(){return Object.keys(this.#D).reduce((u,F)=>{return u[F]=this.#D[F].clone(),u},{})}allowUnknownProperties(){return this.#F=!0,this}merge(u){return this.#u.push(u),this}clone(){let u=new D(this.getProperties(),this.cloneOptions(),this.cloneValidations());if(this.#u.forEach((F)=>u.merge(F)),this.#F)u.allowUnknownProperties();return u}toCamelCase(){return new vw(this)}[r](u,F,$){return{type:"object",fieldName:u,propertyName:$.toCamelCase?OD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,allowUnknownProperties:this.#F,validations:this.compileValidations(F),properties:Object.keys(this.#D).map((E)=>{return this.#D[E][r](E,F,$)}),groups:this.#u.map((E)=>{return E[r](F,$)})}}},u6=x((D,u,F)=>{if(!F.isValid)return;if(Object.keys(D).length<u.min)F.report(V["record.minLength"],"record.minLength",F,u)}),F6=x((D,u,F)=>{if(!F.isValid)return;if(Object.keys(D).length>u.max)F.report(V["record.maxLength"],"record.maxLength",F,u)}),C6=x((D,u,F)=>{if(!F.isValid)return;if(Object.keys(D).length!==u.size)F.report(V["record.fixedLength"],"record.fixedLength",F,u)}),$6=x((D,u,F)=>{if(!F.isValid)return;u(Object.keys(D),F)}),JC=class D extends Q0{static rules={maxLength:F6,minLength:u6,fixedLength:C6,validateKeys:$6};#D;[mD]="vine.object";[pD]=(u)=>{return u!==null&&typeof u==="object"&&!Array.isArray(u)};constructor(u,F,$){super(F,$);this.#D=u}minLength(u){return this.use(u6({min:u}))}maxLength(u){return this.use(F6({max:u}))}fixedLength(u){return this.use(C6({size:u}))}validateKeys(...u){return this.use($6(...u))}clone(){return new D(this.#D.clone(),this.cloneOptions(),this.cloneValidations())}[r](u,F,$){return{type:"record",fieldName:u,propertyName:$.toCamelCase?OD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,each:this.#D[r]("*",F,$),parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,validations:this.compileValidations(F)}}},E6=x((D,u,F)=>{if(typeof D!=="string")F.report(V.string,"string",F)}),w6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isEmail(D,u))F.report(V.email,"email",F)}),B6=x((D,u,F)=>{if(!F.isValid)return;let $=u&&typeof u==="function"?u(F):u,E=$?.locale||"any";if(!k.isMobilePhone(D,E,$))F.report(V.mobile,"mobile",F)}),Y6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isIP(D,u?.version))F.report(V.ipAddress,"ipAddress",F)}),J6=x((D,u,F)=>{if(!F.isValid)return;if(!u.test(D))F.report(V.regex,"regex",F)}),Z6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isHexColor(D))F.report(V.hexCode,"hexCode",F)}),K6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isURL(D,u))F.report(V.url,"url",F)}),M6=x(async(D,u,F)=>{if(!F.isValid)return;if(!await k.isActiveURL(D))F.report(V.activeUrl,"activeUrl",F)}),X6=x((D,u,F)=>{if(!F.isValid)return;let $="a-zA-Z";if(u){if(u.allowSpaces)$+="\\s";if(u.allowDashes)$+="-";if(u.allowUnderscores)$+="_"}if(!new RegExp(`^[${$}]+\$`).test(D))F.report(V.alpha,"alpha",F)}),W6=x((D,u,F)=>{if(!F.isValid)return;let $="a-zA-Z0-9";if(u){if(u.allowSpaces)$+="\\s";if(u.allowDashes)$+="-";if(u.allowUnderscores)$+="_"}if(!new RegExp(`^[${$}]+\$`).test(D))F.report(V.alphaNumeric,"alphaNumeric",F)}),Q6=x((D,u,F)=>{if(!F.isValid)return;if(D.length<u.min)F.report(V.minLength,"minLength",F,u)}),A6=x((D,u,F)=>{if(!F.isValid)return;if(D.length>u.max)F.report(V.maxLength,"maxLength",F,u)}),z6=x((D,u,F)=>{if(!F.isValid)return;if(D.length!==u.size)F.report(V.fixedLength,"fixedLength",F,u)}),G6=x((D,u,F)=>{if(!F.isValid)return;if(!D.endsWith(u.substring))F.report(V.endsWith,"endsWith",F,u)}),q6=x((D,u,F)=>{if(!F.isValid)return;if(!D.startsWith(u.substring))F.report(V.startsWith,"startsWith",F,u)}),H6=x((D,u,F)=>{if(!F.isValid)return;if(k.getNestedValue(u.otherField,F)!==D){F.report(V.sameAs,"sameAs",F,u);return}}),U6=x((D,u,F)=>{if(!F.isValid)return;if(k.getNestedValue(u.otherField,F)===D){F.report(V.notSameAs,"notSameAs",F,u);return}}),O6=x((D,u,F)=>{if(!F.isValid)return;let $=u?.confirmationField||`${F.name}_confirmation`;if(F.parent[$]!==D){F.report(V.confirmed,"confirmed",F,{otherField:$});return}}),V6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(D.trim(),F)}),L6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(KC.default.default(D,u),F)}),T6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(D.toLocaleUpperCase(u),F)}),N6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(D.toLocaleLowerCase(u),F)}),I6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(OD(D),F)}),x6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(ZC.default.default(D),F)}),S6=x((D,u,F)=>{if(!F.isValid)return;F.mutate(_2(D,u),F)}),h6=x((D,u,F)=>{if(!F.isValid)return;if(!(typeof u.choices==="function"?u.choices(F):u.choices).includes(D)){F.report(V.in,"in",F,u);return}}),y6=x((D,u,F)=>{if(!F.isValid)return;if((typeof u.list==="function"?u.list(F):u.list).includes(D)){F.report(V.notIn,"notIn",F,u);return}}),j6=x((D,u,F)=>{if(!F.isValid)return;let $=u?typeof u==="function"?u(F)?.provider||[]:u.provider:[];if(!$.length){if(!k.isCreditCard(D))F.report(V.creditCard,"creditCard",F,{providersList:"credit"})}else if(!$.find((w)=>k.isCreditCard(D,{provider:w})))F.report(V.creditCard,"creditCard",F,{providers:$,providersList:$.join("/")})}),R6=x((D,u,F)=>{if(!F.isValid)return;let $=typeof u==="function"?u(F).countryCode:u.countryCode;if(!$.find((w)=>k.isPassportNumber(D,w)))F.report(V.passport,"passport",F,{countryCodes:$})}),k6=x((D,u,F)=>{if(!F.isValid)return;let $=u?typeof u==="function"?u(F)?.countryCode||[]:u.countryCode:[];if(!$.length){if(!k.isPostalCode(D,"any"))F.report(V.postalCode,"postalCode",F)}else if(!$.find((w)=>k.isPostalCode(D,w)))F.report(V.postalCode,"postalCode",F,{countryCodes:$})}),g6=x((D,u,F)=>{if(!F.isValid)return;if(!u||!u.version){if(!k.isUUID(D))F.report(V.uuid,"uuid",F)}else if(!u.version.find((E)=>k.isUUID(D,E)))F.report(V.uuid,"uuid",F,u)}),b6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isAscii(D))F.report(V.ascii,"ascii",F)}),_6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isIBAN(D))F.report(V.iban,"iban",F)}),P6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isJWT(D))F.report(V.jwt,"jwt",F)}),m6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isLatLong(D))F.report(V.coordinates,"coordinates",F)}),W8=class D extends Bu{static rules={in:h6,jwt:P6,url:K6,iban:_6,uuid:g6,trim:V6,email:w6,alpha:X6,ascii:b6,notIn:y6,regex:J6,escape:x6,sameAs:H6,mobile:B6,string:E6,hexCode:Z6,passport:R6,endsWith:G6,confirmed:O6,activeUrl:M6,minLength:Q6,notSameAs:U6,maxLength:A6,ipAddress:Y6,creditCard:j6,postalCode:k6,startsWith:q6,toUpperCase:T6,toLowerCase:N6,toCamelCase:I6,fixedLength:z6,coordinates:m6,normalizeUrl:S6,alphaNumeric:W6,normalizeEmail:L6};[mD]="vine.string";[pD]=(u)=>{return typeof u==="string"};constructor(u,F){super(u,F||[E6()])}url(...u){return this.use(K6(...u))}activeUrl(){return this.use(M6())}email(...u){return this.use(w6(...u))}mobile(...u){return this.use(B6(...u))}ipAddress(u){return this.use(Y6(u?{version:u}:void 0))}hexCode(){return this.use(Z6())}regex(u){return this.use(J6(u))}alpha(u){return this.use(X6(u))}alphaNumeric(u){return this.use(W6(u))}minLength(u){return this.use(Q6({min:u}))}maxLength(u){return this.use(A6({max:u}))}fixedLength(u){return this.use(z6({size:u}))}confirmed(u){return this.use(O6(u))}trim(){return this.use(V6())}normalizeEmail(u){return this.use(L6(u))}toUpperCase(){return this.use(T6())}toLowerCase(){return this.use(N6())}toCamelCase(){return this.use(I6())}escape(){return this.use(x6())}normalizeUrl(...u){return this.use(S6(...u))}startsWith(u){return this.use(q6({substring:u}))}endsWith(u){return this.use(G6({substring:u}))}sameAs(u){return this.use(H6({otherField:u}))}notSameAs(u){return this.use(U6({otherField:u}))}in(u){return this.use(h6({choices:u}))}notIn(u){return this.use(y6({list:u}))}creditCard(...u){return this.use(j6(...u))}passport(...u){return this.use(R6(...u))}postalCode(...u){return this.use(k6(...u))}uuid(...u){return this.use(g6(...u))}ascii(){return this.use(b6())}iban(){return this.use(_6())}jwt(){return this.use(P6())}coordinates(){return this.use(m6())}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},v6=x((D,u,F)=>{let $=u.strict?D:k.asNumber(D);if(typeof $!=="number"||Number.isNaN($)||$===Number.POSITIVE_INFINITY||$===Number.NEGATIVE_INFINITY){F.report(V.number,"number",F);return}F.mutate($,F)}),c6=x((D,u,F)=>{if(!F.isValid)return;if(D<u.min)F.report(V.min,"min",F,u)}),f6=x((D,u,F)=>{if(!F.isValid)return;if(D>u.max)F.report(V.max,"max",F,u)}),n6=x((D,u,F)=>{if(!F.isValid)return;if(D<u.min||D>u.max)F.report(V.range,"range",F,u)}),r6=x((D,u,F)=>{if(!F.isValid)return;if(D<0)F.report(V.positive,"positive",F)}),d6=x((D,u,F)=>{if(!F.isValid)return;if(D>=0)F.report(V.negative,"negative",F)}),l6=x((D,u,F)=>{if(!F.isValid)return;if(!k.isDecimal(String(D),{force_decimal:u.range[0]!==0,decimal_digits:u.range.join(",")}))F.report(V.decimal,"decimal",F,{digits:u.range.join("-")})}),p6=x((D,u,F)=>{if(!F.isValid)return;if(!Number.isInteger(D))F.report(V.withoutDecimals,"withoutDecimals",F)}),i6=x((D,u,F)=>{if(!F.isValid)return;if(!u.values.includes(D))F.report(V["number.in"],"in",F,u)}),nu=class D extends Bu{static rules={in:i6,max:f6,min:c6,range:n6,number:v6,decimal:l6,negative:d6,positive:r6,withoutDecimals:p6};[mD]="vine.number";[pD]=(u)=>{let F=k.asNumber(u);return!Number.isNaN(F)};constructor(u,F){super(u,F||[v6(u||{})])}min(u){return this.use(c6({min:u}))}max(u){return this.use(f6({max:u}))}range(u){return this.use(n6({min:u[0],max:u[1]}))}positive(){return this.use(r6())}negative(){return this.use(d6())}decimal(u){return this.use(l6({range:Array.isArray(u)?u:[u]}))}withoutDecimals(){return this.use(p6())}clone(){return new D(this.cloneOptions(),this.cloneValidations())}in(u){return this.use(i6({values:u}))}},t6=x((D,u,F)=>{let $=u.strict===!0?D:k.asBoolean(D);if(typeof $!=="boolean"){F.report(V.boolean,"boolean",F);return}F.mutate($,F)}),ru=class D extends Bu{static rules={boolean:t6};[mD]="vine.boolean";[pD]=(u)=>{return typeof(this.options.strict===!0?u:k.asBoolean(u))==="boolean"};constructor(u,F){super(u,F||[t6(u||{})])}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},s6=x((D,u,F)=>{let $=D;if(typeof u.expectedValue==="boolean")$=k.asBoolean(D);else if(typeof u.expectedValue==="number")$=k.asNumber(D);if($!==u.expectedValue){F.report(V.literal,"literal",F,u);return}F.mutate($,F)}),MC=class D extends Bu{static rules={equals:s6};#D;constructor(u,F,$){super(F,$||[s6({expectedValue:u})]);this.#D=u}clone(){return new D(this.#D,this.cloneOptions(),this.cloneValidations())}},cw=["on","1","yes","true",!0,1],a6=x((D,u,F)=>{if(!cw.includes(D))F.report(V.accepted,"accepted",F)}),XC=class D extends Bu{static rules={accepted:a6};constructor(u,F){super(u,F||[a6()])}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},fw=class D{#D;#u=(u,F)=>{F.report(V.unionGroup,"unionGroup",F)};constructor(u){this.#D=u}clone(){let u=new D(this.#D);return u.otherwise(this.#u),u}otherwise(u){return this.#u=u,this}[r](u,F){return{type:"group",elseConditionalFnRefId:u.trackConditional(this.#u),conditions:this.#D.map(($)=>$[r](u,F))}}},WC=class{#D;#u;constructor(D,u){this.#D=u,this.#u=D}[r](D,u){return{schema:{type:"sub_object",properties:Object.keys(this.#D).map((F)=>{return this.#D[F][r](F,D,u)}),groups:[]},conditionalFnRefId:D.trackConditional(this.#u)}}};function n2(D){return new fw(D)}n2.if=function D(u,F){return new WC(u,F)};n2.else=function D(u){return new WC(()=>!0,u)};var nw=class D extends Bu{static rules={enum:M8};#D;constructor(u,F,$){super(F,$||[M8({choices:Object.values(u)})]);this.#D=u}clone(){return new D(this.#D,this.cloneOptions(),this.cloneValidations())}},rw=class D{#D;#u=(u,F)=>{F.report(V.unionOfTypes,"unionOfTypes",F)};constructor(u){this.#D=u}otherwise(u){return this.#u=u,this}clone(){let u=new D(this.#D);return u.otherwise(this.#u),u}[r](u,F,$){return{type:"union",fieldName:u,propertyName:$.toCamelCase?OD(u):u,elseConditionalFnRefId:F.trackConditional(this.#u),conditions:this.#D.map((E)=>{return{conditionalFnRefId:F.trackConditional((w,C)=>{return E[pD](w,C)}),schema:E[r](u,F,$)}})}}},dw=class extends mu{group=n2;union=f2;string(){return new W8}boolean(D){return new ru(D)}accepted(){return new XC}number(D){return new nu(D)}date(D){return new c2(D)}literal(D){return new MC(D)}object(D){return new YC(D)}array(D){return new BC(D)}tuple(D){return new wC(D)}record(D){return new JC(D)}enum(D){if(Array.isArray(D)||typeof D==="function")return new fu(D);return new nw(D)}any(){return new e6}unionOfTypes(D){let u=new Set;return D.forEach((F)=>{if(!F[pD]||!F[mD])throw new Error(`Cannot use "${F.constructor.name}". The schema type is not compatible for use with "vine.unionOfTypes"`);if(u.has(F[mD]))throw new Error(`Cannot use duplicate schema "${F[mD]}". "vine.unionOfTypes" needs distinct schema types only`);u.add(F[mD])}),u.clear(),new rw(D)}},lw={required:V.required,array:V.array,object:V.object},v2=class{#D;messagesProvider;errorReporter;#u(D){let u=gF();return{compilerNode:{type:"root",schema:D[r]("",u,{toCamelCase:!1})},refs:u.toJSON()}}constructor(D,u){let{compilerNode:F,refs:$}=this.#u(D);this.#D={schema:F,refs:$};let E=u.metaDataValidator,w=new kF(F,{convertEmptyStringsToNull:u.convertEmptyStringsToNull,messages:lw}).compile();if(this.errorReporter=u.errorReporter,this.messagesProvider=u.messagesProvider,E)this.validate=(C,Z)=>{let M=Z??{},W=M.meta??{},X=M.errorReporter??this.errorReporter,q=M.messagesProvider??this.messagesProvider;return E(W),w(C,W,$,q,X())};else this.validate=(C,Z)=>{let M=Z??{},W=M.meta??{},X=M.errorReporter??this.errorReporter,q=M.messagesProvider??this.messagesProvider;return w(C,W,$,q,X())}}async tryValidate(D,...[u]){try{return[null,await this.validate(D,u)]}catch(F){if(F instanceof L2)return[F,null];throw F}}toJSON(){let{schema:D,refs:u}=this.#D;return{schema:structuredClone(D),refs:u}}},QC=class extends dw{messagesProvider=new Z0(V,F3);errorReporter=()=>new T2;convertEmptyStringsToNull=!1;helpers=k;createRule=x;compile(D){return new v2(D,{convertEmptyStringsToNull:this.convertEmptyStringsToNull,messagesProvider:this.messagesProvider,errorReporter:this.errorReporter})}withMetaData(D){return{compile:(u)=>{return new v2(u,{convertEmptyStringsToNull:this.convertEmptyStringsToNull,messagesProvider:this.messagesProvider,errorReporter:this.errorReporter,metaDataValidator:D})}}}validate(D){return this.compile(D.schema).validate(D.data,D)}tryValidate(D){return this.compile(D.schema).tryValidate(D.data,D)}},pw=new QC,y=pw;var AC={APP_NAME:y.string(),APP_ENV:y.enum(["local","dev","stage","prod"]),APP_KEY:y.string(),APP_URL:y.string(),PORT:y.number(),PORT_BACKEND:y.number(),PORT_ADMIN:y.number(),PORT_LIBRARY:y.number(),PORT_DESKTOP:y.number(),PORT_EMAIL:y.number(),PORT_DOCS:y.number(),PORT_INSPECT:y.number(),PORT_API:y.number(),PORT_SYSTEM_TRAY:y.number(),APP_MAINTENANCE:y.boolean(),DEBUG:y.boolean(),API_PREFIX:y.string(),DOCS_PREFIX:y.string(),DB_CONNECTION:y.enum(["mysql","sqlite","postgres"]),DB_HOST:y.string(),DB_PORT:y.number(),DB_DATABASE:y.string(),DB_USERNAME:y.string(),DB_PASSWORD:y.string(),AWS_ACCOUNT_ID:y.string(),AWS_ACCESS_KEY_ID:y.string(),AWS_SECRET_ACCESS_KEY:y.string(),AWS_DEFAULT_REGION:y.string(),AWS_DEFAULT_PASSWORD:y.string(),MAIL_MAILER:y.enum(["ses","sendmail","log","smtp"]),MAIL_HOST:y.string(),MAIL_PORT:y.number(),MAIL_USERNAME:y.string(),MAIL_PASSWORD:y.string(),MAIL_ENCRYPTION:y.string(),MAIL_FROM_NAME:y.string(),MAIL_FROM_ADDRESS:y.string(),SEARCH_ENGINE_DRIVER:y.enum(["meilisearch","algolia","typesense"]),MEILISEARCH_HOST:y.string(),MEILISEARCH_KEY:y.string(),FRONTEND_APP_ENV:y.enum(["development","staging","production"]),FRONTEND_APP_URL:y.string()};var iw={APP_ENV:["local","dev","development","staging","prod","production"],DB_CONNECTION:["mysql","sqlite","postgres","dynamodb"],MAIL_MAILER:["smtp","mailgun","ses","postmark","sendmail","log"],SEARCH_ENGINE_DRIVER:["opensearch"],FRONTEND_APP_ENV:["development","staging","production"]},tw=Object.entries(AC).reduce((D,[u,F])=>{let $;switch(typeof F){case"string":$=y.string();break;case"number":$=y.number();break;case"boolean":$=y.boolean();break;default:if(Array.isArray(F)){$=y.enum(F);break}if(typeof F==="object"){let w=Symbol.for("schema_name"),C=F[w];if(C==="vine.string"){$=y.string();break}if(C==="vine.number"){$=y.number();break}if(C==="vine.boolean"){$=y.boolean();break}if(!C){$=y.enum(iw.APP_ENV);break}console.error("Unknown env value type",typeof F)}throw new Error(`Invalid env value for ${u}`)}let E=u;return D[E]=$,D},{}),PQ=y.object(tw);var aw={get:(D,u)=>{let F=D[u];if(typeof F==="string"&&/^\d+$/.test(F)&&u!=="AWS_ACCOUNT_ID")return Number(F);if(typeof F==="string"&&/^true|false$/.test(F))return F==="true";if(F instanceof fu)return D[u];if(F instanceof ru)return!!D[u];if(F instanceof nu)return Number(D[u]);return F}};function ow(){return typeof Bun!=="undefined"?Bun.env:sw.env}var j=new Proxy(ow(),aw);var zC={name:j.APP_NAME??"Stacks",description:"Stacks is a full-stack framework for building modern web applications.",env:j.APP_ENV??"local",url:j.APP_URL??"stacks.localhost",redirectUrls:["stacksjs.com"],debug:j.DEBUG??!1,key:j.APP_KEY,maintenanceMode:j.APP_MAINTENANCE??!1,docMode:!1,timezone:"America/Los_Angeles",locale:"en",fallbackLocale:"en",cipher:"aes-256-cbc"};var GC={driver:"dynamodb",prefix:"stacks",ttl:3600,drivers:{dynamodb:{key:j.AWS_ACCESS_KEY_ID||"",secret:j.AWS_SECRET_ACCESS_KEY||"",region:j.AWS_DEFAULT_REGION||"us-east-1",table:"cache",endpoint:""},memcached:{persistent_id:"",sasl:["",""],options:{},servers:[{host:"127.0.0.1",port:11211,weight:100}]},redis:{connection:"cache",host:"127.0.0.1",port:6379,password:"",username:"stacks"}}};var qC={name:"My Custom CLI",command:"custom-cli",description:"This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",deploy:!0};var Q8={firewall:{enabled:!0,countryCodes:["RU","IR"],ipAddresses:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0,queryString:[],httpHeaders:[]}};var HC={sites:{root:"stacksjs.org",path:"dist",modals:{domain:"modals.stacksjs.org",path:"dist"},stepper:{domain:"stepper.stacksjs.org",path:"dist"},notification:{domain:"notification.stacksjs.org",path:"dist"},docs:{domain:"docs.stacksjs.org",path:"dist"},tlsx:{domain:"tlsx.stacksjs.org",path:"dist"},dtsx:{domain:"dtsx.stacksjs.org",path:"dist"},spreadsheet:{domain:"spreadsheet.stacksjs.org",path:"dist"}},infrastructure:{type:"serverless",driver:"aws",firewall:Q8.firewall,environments:["production","staging","development"],storage:{},api:{prefix:j.API_PREFIX||"api",description:"My awesome Stacks API",deploy:!0,memorySize:512,prewarm:10,timeout:30},cdn:{compress:!0,allowedMethods:"ALL",cachedMethods:"GET_HEAD",originShieldRegion:"us-east-1",minTtl:0,defaultTtl:86400,maxTtl:31536000,cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:1}},fileSystem:!0}};var UC={default:j.DB_CONNECTION||"sqlite",connections:{sqlite:{database:j.DB_DATABASE||"database/stacks.sqlite",prefix:""},dynamodb:{key:j.AWS_ACCESS_KEY_ID||"",secret:j.AWS_SECRET_ACCESS_KEY||"",region:j.AWS_DEFAULT_REGION||"us-east-1",prefix:j.DB_DATABASE||"stacks",endpoint:"http://localhost",port:j.DB_PORT||8000},mysql:{name:j.DB_DATABASE||"stacks",host:j.DB_HOST||"127.0.0.1",port:j.DB_PORT||3306,username:j.DB_USERNAME||"root",password:j.DB_PASSWORD||"",prefix:""},postgres:{name:j.DB_DATABASE||"stacks",host:j.DB_HOST||"127.0.0.1",port:j.DB_PORT||3306,username:j.DB_USERNAME||"",password:j.DB_PASSWORD||"",prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"};var OC={a:[{name:j.APP_URL||"",address:"10.0.0.1",ttl:300},{name:"www",address:"@",ttl:300}],aaaa:[],cname:[],mx:[],txt:[],nameservers:[]};var VC={from:{name:j.MAIL_FROM_NAME||"Stacks",address:j.MAIL_FROM_ADDRESS||"no-reply@stacksjs.org"},mailboxes:["chris@stacksjs.org","blake@stacksjs.org","glenn@stacksjs.org"],url:j.APP_URL||"http://localhost:3000",charset:"UTF-8",server:{scan:!0}};var LC={messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}};var TC={hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:"Write a SHORT, IMPERATIVE tense description of the change:\n",body:'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',breaking:'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:"List any ISSUES by this change. E.g.: #31, #34:\n",confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]};var NC={driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,threads:1,time:1}};var IC={name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",releaseable:!0,vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}};var xC={logsPath:S0("logs/stacks.log"),deploymentsPath:S0("logs/deployments.log")};var SC={default:"email"};var hC={driver:"stripe",stripe:{publishableKey:j.STRIPE_PUBLISHABLE_KEY||"",secretKey:j.STRIPE_SECRET_KEY||""}};var yC={frontend:j.PORT??3000,backend:j.PORT_BACKEND??3001,admin:j.PORT_ADMIN??3002,library:j.PORT_LIBRARY??3003,desktop:j.PORT_DESKTOP??3004,email:j.PORT_EMAIL??3005,docs:j.PORT_DOCS??3006,inspect:j.PORT_INSPECT??3007,api:j.PORT_API??3008,systemTray:j.PORT_SYSTEM_TRAY??3009,database:3010};var jC={default:"sync",connections:{sync:{driver:"sync"},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}};var RC={plans:[{productName:"Stacks Hobby",description:"All the Stacks features.",pricing:[{key:"stacks_hobby_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_hobby_yearly",price:37900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Pro",description:"All the Stacks features, including being able to invite team members.",pricing:[{key:"stacks_pro_monthly",price:5900,interval:"month",currency:"usd"},{key:"stacks_pro_yearly",price:57900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}}],webhook:{endpoint:"/webhooks/stripe",secret:""},currencies:["usd"],coupons:[{code:"SUMMER2024",amountOff:500,duration:"once"}],products:[{name:"Stacks Pro",description:"All the Stacks features.",images:["url_to_image"]}]};var kC={driver:"opensearch"};var gC={aws:{accountId:j.AWS_ACCOUNT_ID||"",appId:j.AWS_ACCESS_KEY_ID||"",apiKey:j.AWS_SECRET_ACCESS_KEY||"",region:j.AWS_DEFAULT_REGION||"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},lemonSqueezy:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}};var bC={driver:"s3"};var _C={name:"Stacks",members:{chris:"chris@stacksjs.org",blake:"blake@stacksjs.org",zoltan:"zoltan@stacksjs.org",freddy:"freddy@stacksjs.org",glenn:"glenn@stacksjs.org",dorell:"dorell@stacksjs.org",avery:"avery@stacksjs.org",adelino:"adelino@stacksjs.org"}};var PC={shortcuts:[["btn","inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}},theme:{colors:{veryCool:"#0000ff",brand:{primary:"hsl(var(--hue, 217) 78% 51%)"}}}};var ew={ai:p1,analytics:i1,app:zC,cache:GC,cli:qC,cloud:HC,database:UC,dns:OC,email:VC,errors:LC,git:TC,hashing:NC,library:IC,logging:xC,notification:SC,queue:jC,payment:hC,ports:yC,saas:RC,searchEngine:kC,security:Q8,services:gC,storage:bC,team:_C,ui:PC},r2=ew;async function mC(D){if(!D?.port)D={port:3000};return console.log("Creating local tunnel",D.port),"localTunnel"}async function Au(D){return await mC({port:D})}async function DB({domain:D=BD.app.url||"stacks",type:u="frontend",localhost:F=!1,https:$=void 0,network:E=void 0}={}){let w=D.replace(/\.[^.]+$/,".localhost");switch(u){case"frontend":if(E)return await Au(BD.ports?.frontend||3000);if(F)return`http://localhost:${BD.ports?.frontend}`;break;case"backend":if(E)return await Au(BD.ports?.backend||3001);if(F)return`http://localhost:${BD.ports?.backend}`;w=`api.${w}`;break;case"admin":if(E)return await Au(BD.ports?.admin||3002);if(F)return`http://localhost:${BD.ports?.admin}`;w=`admin.${w}`;break;case"library":if(E)return await Au(BD.ports?.library||3003);if(F)return`http://localhost:${BD.ports?.library}`;w=`libs.${w}`;break;case"email":if(E)return await Au(BD.ports?.email||3005);if(F)return`http://localhost:${BD.ports?.email}`;w=`email.${w}`;break;case"desktop":if(E)return await Au(BD.ports?.desktop||3004);if(F)return`http://localhost:${BD.ports?.desktop}`;w=`desktop.${w}`;break;case"docs":if(E)return await Au(BD.ports?.docs||3006);if(F)return`http://localhost:${BD.ports?.docs}`;w=`docs.${w}`;break;case"inspect":if(E)return await Au(BD.ports?.inspect||3007);if(F)return`http://localhost:${BD.ports?.inspect}`;w=`inspect.${w}`;break;default:if(F)return`http://localhost:${BD.ports?.frontend}`}if($)return`https://${w}`;return`http://${w}`}function uB(D){return D}function FB(D){return D}function CB(D){return D}function $B(D){return D}function EB(D){return D}function wB(D){return D}function BB(D){return D}function YB(D){return D}function JB(D){return D}function ZB(D){return D}function KB(D){return D}function MB(D){return D}function XB(D){return D}function WB(D){return D}function QB(D){return D}function AB(D){return D}function zB(D){return D}function GB(D){return D}function qB(D){return D}function HB(D){return D}function UB(D){return D}function OB(D){return D}function VB(D){return D}function LB(D){return D}function TB(D){return D}function NB(D){return D}function IB(D){return D}var t={...r8,...r2},xB=t.ai,SB=t.analytics,hu=t.app,hB=t.cache,yB=t.cloud,jB=t.cli,RB=t.database,kB=t.dns,gB=t.docs,bB=t.email,_B=t.errors,PB=t.git,mB=t.hashing,vB=t.library,cB=t.logging,fB=t.notification,nB=t.payment,rB=t.ports,dB=t.queue,lB=t.security,pB=t.saas,iB=t.searchEngine,tB=t.services,sB=t.storage,aB=t.team,oB=t.ui;function eB(){if(hu.env==="local")return"dev";if(hu.env==="development")return"dev";if(hu.env==="staging")return"stage";if(hu.env==="production")return"prod";if(!hu.env)throw new Error("Couldn\'t determine app environment");return hu.env}class d2{static isTestEnvironment=!1;static shouldExitProcess=!0;static handle(D,u){if(this.shouldExitProcess=u?.shouldExit!==!1,u?.silent!==!0)this.writeErrorToConsole(D);let F;if(u?.message)F=u.message;else if(D instanceof Error)F=D.message;else if(typeof D==="string")F=D;else F=JSON.stringify(D);let $=new Error(F);if(D instanceof Error)Object.assign($,D);return this.writeErrorToFile($).catch((E)=>console.error(E)),$}static handleError(D,u){return this.handle(D,u),D}static async writeErrorToFile(D){if(!(D instanceof Error)){console.error("Error is not an instance of Error:",D);return}let u=`[${new Date().toISOString()}] ${D.name}: ${D.message}\n`,F=n8("stacks.log")??n8("errors.log");try{await fC(r1(F),{recursive:!0}),await cC(F,u)}catch($){console.error("Failed to write to error file:",$)}}static writeErrorToConsole(D){console.error(D);let u=typeof D==="string"?D:D instanceof Error?D.message:JSON.stringify(D);if(u.includes("bunx --bun cdk destroy")||u===`Failed to execute command: ${vC("bunx --bun eslint . --fix")}`||u===`Failed to execute command: ${vC("bun storage/framework/core/actions/src/lint/fix.ts")}`){if(!this.isTestEnvironment)console.log("No need to worry. The edge function is currently being destroyed. Please run `buddy undeploy` shortly again, and continue doing so until it succeeds running."),console.log("Hoping to see you back soon!")}if(this.shouldExitProcess)CY.exit(1)}}function nC(D,u){let F;if(u3(D))F=D;else if(D instanceof Error)F=D.message;else if(u instanceof Error)F=u.message;else F=String(D);return Ou(`ERROR: ${$Y(F)}`),d2.handle(D,u)}async function Ou(D,u){let F=`[${new Date().toISOString()}] ${D}\n`;try{let $=u?.logFile??BD.logging.logsPath??"storage/logs/stacks.log";try{await uY($)}catch{await fC(FY($),{recursive:!0})}await cC($,F)}catch($){console.error("Failed to write to log file:",$)}}var EY={withStackTrace:!1},lC=(D,u,F=EY)=>{let $=u.isOk()?{type:"Ok",value:u.value}:{type:"Err",value:u.error},E=F.withStackTrace?new Error().stack:void 0;return{data:$,message:D,stack:E}};function du(D,u,F,$){function E(w){return w instanceof F?w:new F(function(C){C(w)})}return new(F||(F=Promise))(function(w,C){function Z(X){try{W($.next(X))}catch(q){C(q)}}function M(X){try{W($.throw(X))}catch(q){C(q)}}function W(X){X.done?w(X.value):E(X.value).then(Z,M)}W(($=$.apply(D,u||[])).next())})}function rC(D){var u=typeof Symbol==="function"&&Symbol.iterator,F=u&&D[u],$=0;if(F)return F.call(D);if(D&&typeof D.length==="number")return{next:function(){if(D&&$>=D.length)D=void 0;return{value:D&&D[$++],done:!D}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yu(D){return this instanceof Yu?(this.v=D,this):new Yu(D)}function dC(D,u,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=F.apply(D,u||[]),E,w=[];return E=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),Z("next"),Z("throw"),Z("return",C),E[Symbol.asyncIterator]=function(){return this},E;function C(U){return function(A){return Promise.resolve(A).then(U,q)}}function Z(U,A){if($[U]){if(E[U]=function(P){return new Promise(function(n,d){w.push([U,P,n,d])>1||M(U,P)})},A)E[U]=A(E[U])}}function M(U,A){try{W($[U](A))}catch(P){L(w[0][3],P)}}function W(U){U.value instanceof Yu?Promise.resolve(U.value.v).then(X,q):L(w[0][2],U)}function X(U){M("next",U)}function q(U){M("throw",U)}function L(U,A){if(U(A),w.shift(),w.length)M(w[0][0],w[0][1])}}function wY(D){var u,F;return u={},$("next"),$("throw",function(E){throw E}),$("return"),u[Symbol.iterator]=function(){return this},u;function $(E,w){u[E]=D[E]?function(C){return(F=!F)?{value:Yu(D[E](C)),done:!1}:w?w(C):C}:w}}function BY(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=D[Symbol.asyncIterator],F;return u?u.call(D):(D=typeof rC==="function"?rC(D):D[Symbol.iterator](),F={},$("next"),$("throw"),$("return"),F[Symbol.asyncIterator]=function(){return this},F);function $(w){F[w]=D[w]&&function(C){return new Promise(function(Z,M){C=D[w](C),E(Z,M,C.done,C.value)})}}function E(w,C,Z,M){Promise.resolve(M).then(function(W){w({value:W,done:Z})},C)}}class MD{constructor(D){this._promise=D}static fromSafePromise(D){let u=D.then((F)=>new uu(F));return new MD(u)}static fromPromise(D,u){let F=D.then(($)=>new uu($)).catch(($)=>new iD(u($)));return new MD(F)}static fromThrowable(D,u){return(...F)=>{return new MD((()=>du(this,void 0,void 0,function*(){try{return new uu(yield D(...F))}catch($){return new iD(u?u($):$)}}))())}}static combine(D){return ZY(D)}static combineWithAllErrors(D){return KY(D)}map(D){return new MD(this._promise.then((u)=>du(this,void 0,void 0,function*(){if(u.isErr())return new iD(u.error);return new uu(yield D(u.value))})))}andThrough(D){return new MD(this._promise.then((u)=>du(this,void 0,void 0,function*(){if(u.isErr())return new iD(u.error);let F=yield D(u.value);if(F.isErr())return new iD(F.error);return new uu(u.value)})))}andTee(D){return new MD(this._promise.then((u)=>du(this,void 0,void 0,function*(){if(u.isErr())return new iD(u.error);try{yield D(u.value)}catch(F){}return new uu(u.value)})))}mapErr(D){return new MD(this._promise.then((u)=>du(this,void 0,void 0,function*(){if(u.isOk())return new uu(u.value);return new iD(yield D(u.error))})))}andThen(D){return new MD(this._promise.then((u)=>{if(u.isErr())return new iD(u.error);let F=D(u.value);return F instanceof MD?F._promise:F}))}orElse(D){return new MD(this._promise.then((u)=>du(this,void 0,void 0,function*(){if(u.isErr())return D(u.error);return new uu(u.value)})))}match(D,u){return this._promise.then((F)=>F.match(D,u))}unwrapOr(D){return this._promise.then((u)=>u.unwrapOr(D))}safeUnwrap(){return dC(this,arguments,function*D(){return yield Yu(yield Yu(yield*wY(BY(yield Yu(this._promise.then((u)=>u.safeUnwrap()))))))})}then(D,u){return this._promise.then(D,u)}[Symbol.asyncIterator](){return dC(this,arguments,function*D(){let u=yield Yu(this._promise);if(u.isErr())yield yield Yu(A0(u.error));return yield Yu(u.value)})}}var A0=(D)=>new MD(Promise.resolve(new iD(D))),YY=MD.fromPromise,JY=MD.fromSafePromise,qz=MD.fromThrowable,pC=(D)=>{let u=Vu([]);for(let F of D)if(F.isErr()){u=Ju(F.error);break}else u.map(($)=>$.push(F.value));return u},ZY=(D)=>MD.fromSafePromise(Promise.all(D)).andThen(pC),iC=(D)=>{let u=Vu([]);for(let F of D)if(F.isErr()&&u.isErr())u.error.push(F.error);else if(F.isErr()&&u.isOk())u=Ju([F.error]);else if(F.isOk()&&u.isOk())u.value.push(F.value);return u},KY=(D)=>MD.fromSafePromise(Promise.all(D)).andThen(iC),A8;(function(D){function u(E,w){return(...C)=>{try{let Z=E(...C);return Vu(Z)}catch(Z){return Ju(w?w(Z):Z)}}}D.fromThrowable=u;function F(E){return pC(E)}D.combine=F;function $(E){return iC(E)}D.combineWithAllErrors=$})(A8||(A8={}));var Vu=(D)=>new uu(D);function Ju(D){return new iD(D)}class uu{constructor(D){this.value=D}isOk(){return!0}isErr(){return!this.isOk()}map(D){return Vu(D(this.value))}mapErr(D){return Vu(this.value)}andThen(D){return D(this.value)}andThrough(D){return D(this.value).map((u)=>this.value)}andTee(D){try{D(this.value)}catch(u){}return Vu(this.value)}orElse(D){return Vu(this.value)}asyncAndThen(D){return D(this.value)}asyncAndThrough(D){return D(this.value).map(()=>this.value)}asyncMap(D){return MD.fromSafePromise(D(this.value))}unwrapOr(D){return this.value}match(D,u){return D(this.value)}safeUnwrap(){let D=this.value;return function*(){return D}()}_unsafeUnwrap(D){return this.value}_unsafeUnwrapErr(D){throw lC("Called `_unsafeUnwrapErr` on an Ok",this,D)}*[Symbol.iterator](){return this.value}}class iD{constructor(D){this.error=D}isOk(){return!1}isErr(){return!this.isOk()}map(D){return Ju(this.error)}mapErr(D){return Ju(D(this.error))}andThrough(D){return Ju(this.error)}andTee(D){return Ju(this.error)}andThen(D){return Ju(this.error)}orElse(D){return D(this.error)}asyncAndThen(D){return A0(this.error)}asyncAndThrough(D){return A0(this.error)}asyncMap(D){return A0(this.error)}unwrapOr(D){return D}match(D,u){return u(this.error)}safeUnwrap(){let D=this.error;return function*(){throw yield Ju(D),new Error("Do not use this generator out of `safeTry`")}()}_unsafeUnwrap(D){throw lC("Called `_unsafeUnwrap` on an Err",this,D)}_unsafeUnwrapErr(D){return this.error}*[Symbol.iterator](){let D=this;return yield D,D}}var MY=A8.fromThrowable;M1();z8();q8();U8();function bJ(){let D=/--verbose(?!\s*=\s*false|\s+false)(?:\s+|=true)?(?:$|\s)/,u=gJ();if(D.test(u))return 4;return 3}var O0={...I8({level:bJ()}),warning:(D)=>console.warn(D),dump:(...D)=>console.log(...D),dd:(...D)=>{console.log(...D),x8.exit(1)},echo:(D)=>console.log(D)};var Qu={info:async(D,u)=>{if(u?.styled===!1)console.log(D);else O0.info(D);await Ou(`INFO: ${U0(D)}`)},success:async(D,u)=>{if(u?.styled===!1)console.log(D);else O0.success(D);await Ou(`SUCCESS: ${U0(D)}`)},warn:async(D,u)=>{if(u?.styled===!1)console.log(D);else O0.warn(D);await Ou(`WARN: ${U0(D)}`)},warning:async(D,u)=>{if(u?.styled===!1)console.log(D);else O0.warn(D);await Ou(`WARN: ${U0(D)}`)},error:async(D,u)=>{nC(D,u)},debug:async(...D)=>{let F=`DEBUG: ${D.map(($)=>typeof $==="object"?JSON.stringify($,null,2):$).join(" ")}`;if(x8.env.APP_ENV==="production"||x8.env.APP_ENV==="prod")return Ou(F);O0.debug(F),await Ou(U0(F))},dump:(...D)=>D.forEach((u)=>console.log(u)),dd:(...D)=>{D.forEach((u)=>console.log(u)),x8.exit(1)},echo:(...D)=>console.log(...D)};var g4=p(h1(),1);import qK from"node-fetch";var y4="https://www.iana.org/whois?q=",j4={"whois.denic.de":"-T dn,ace","whois.nic.fr":"-V Md5.2"},y1={"br.com":"whois.centralnic.net","cn.com":"whois.centralnic.net","de.com":"whois.centralnic.net","eu.com":"whois.centralnic.net","gb.com":"whois.centralnic.net","gb.net":"whois.centralnic.net","gr.com":"whois.centralnic.net","hu.com":"whois.centralnic.net","in.net":"whois.centralnic.net","no.com":"whois.centralnic.net","qc.com":"whois.centralnic.net","ru.com":"whois.centralnic.net","sa.com":"whois.centralnic.net","se.com":"whois.centralnic.net","se.net":"whois.centralnic.net","uk.com":"whois.centralnic.net","uk.net":"whois.centralnic.net","us.com":"whois.centralnic.net","uy.com":"whois.centralnic.net","za.com":"whois.centralnic.net","jpn.com":"whois.centralnic.ne","web.com":"whois.centralnic.ne",com:"whois.verisign-grs.com","za.net":"whois.za.net",net:"whois.verisign-grs.com","eu.org":"whois.eu.org","za.org":"whois.za.org",org:"whois.pir.org","llyw.cymru":"whois.nic.llyw.cymru","gov.scot":"whois.nic.gov.scot","gov.wales":"whois.nic.gov.wales",edu:"whois.educause.edu",gov:"whois.dotgov.gov",int:"whois.iana.org","e164.arpa":"whois.ripe.net",arpa:"whois.iana.org",aero:"whois.aero",asia:"whois.nic.asia",biz:"whois.nic.biz",cat:"whois.nic.cat",coop:"whois.nic.coop",info:"whois.afilias.net",jobs:"whois.nic.jobs",mobi:"whois.afilias.net",museum:"whois.nic.museum",name:"whois.nic.name",post:"whois.dotpostregistry.net",pro:"whois.nic.pro",tel:"whois.nic.tel",travel:"whois.nic.travel",xxx:"whois.nic.xxx",ac:"whois.nic.ac",ae:"whois.aeda.net.ae",af:"whois.nic.af",ag:"whois.nic.ag",ai:"whois.nic.ai",am:"whois.amnic.net",ar:"whois.nic.ar",as:"whois.nic.as","priv.at":"whois.nic.priv.at",at:"whois.nic.at",au:"whois.auda.org.au",aw:"whois.nic.aw",ax:"whois.ax",be:"whois.dns.be",bf:"whois.registre.bf",bg:"whois.register.bg",bh:"whois.nic.bh",bi:"whois1.nic.bi",bj:"whois.nic.bj",bm:"whois.afilias-srs.net",bn:"whois.bnnic.bn",bo:"whois.nic.bo",br:"whois.registro.br",by:"whois.cctld.by",bw:"whois.nic.net.bw",bz:"whois.afilias-grs.info","co.ca":"whois.co.ca",ca:"whois.cira.ca",cc:"ccwhois.verisign-grs.com",cd:"whois.nic.cd",ch:"whois.nic.ch",ci:"whois.nic.ci",cl:"whois.nic.cl",cm:"whois.netcom.cm","edu.cn":"whois.edu.cn",cn:"whois.cnnic.cn","uk.co":"whois.uk.co",co:"whois.nic.co",cr:"whois.nic.cr",cx:"whois.nic.cx",cz:"whois.nic.cz",de:"whois.denic.de",dk:"whois.dk-hostmaster.dk",dm:"whois.dmdomains.dm",do:"whois.nic.do",dz:"whois.nic.dz",ec:"whois.nic.ec",ee:"whois.tld.ee",eu:"whois.eu",fi:"whois.fi",fj:"www.whois.fj",fm:"whois.nic.fm",fo:"whois.nic.fo",fr:"whois.nic.fr",gd:"whois.nic.gd",ge:"whois.nic.ge",gf:"whois.mediaserv.net",gg:"whois.gg",gh:"whois.nic.gh",gi:"whois2.afilias-grs.net",gl:"whois.nic.gl",gp:"whois.nic.gp",gq:"whois.dominio.gq",gs:"whois.nic.gs",gy:"whois.registry.gy",hk:"whois.hkirc.hk",hm:"whois.registry.hm",hn:"whois.nic.hn",hr:"whois.dns.hr",ht:"whois.nic.ht",hu:"whois.nic.hu",id:"whois.id",ie:"whois.weare.ie",il:"whois.isoc.org.il",im:"whois.nic.im",in:"whois.registry.in",io:"whois.nic.io",iq:"whois.cmc.iq",ir:"whois.nic.ir",is:"whois.isnic.is",it:"whois.nic.it",je:"whois.je",jp:"whois.jprs.jp",ke:"whois.kenic.or.ke",kg:"whois.kg",ki:"whois.nic.ki",kn:"whois.nic.kn",kr:"whois.kr",kw:"whois.nic.kw",ky:"whois.kyregistry.ky",kz:"whois.nic.kz",la:"whois.nic.la",lb:"whois.lbdr.org.lb",lc:"whois2.afilias-grs.net",li:"whois.nic.li",lk:"whois.nic.lk",ls:"whois.nic.ls",lt:"whois.domreg.lt",lu:"whois.dns.lu",lv:"whois.nic.lv",ly:"whois.nic.ly",ma:"whois.registre.ma",md:"whois.nic.md",me:"whois.nic.me",mg:"whois.nic.mg",mk:"whois.marnet.mk",ml:"whois.dot.ml",mm:"whois.registry.gov.mm",mn:"whois.nic.mn",mq:"whois.mediaserv.net",mr:"whois.nic.mr",ms:"whois.nic.ms",mt:"whois.nic.org.mt",mu:"whois.nic.mu",mw:"whois.nic.mw",mx:"whois.mx",my:"whois.mynic.my",mz:"whois.nic.mz",na:"whois.na-nic.com.na",nc:"whois.nc",nf:"whois.nic.nf",ng:"whois.nic.net.ng",nl:"whois.domain-registry.nl",no:"whois.norid.no",nu:"whois.iis.nu",nz:"whois.irs.net.nz",om:"whois.registry.om",pe:"kero.yachay.pe",pf:"whois.registry.pf",pk:"whois.pknic.net.pk","co.pl":"whois.co.pl",pl:"whois.dns.pl",pm:"whois.nic.pm",pr:"whois.afilias-srs.net",ps:"whois.pnina.ps",pt:"whois.dns.pt",pw:"whois.nic.pw",qa:"whois.registry.qa",re:"whois.nic.re",ro:"whois.rotld.ro",rs:"whois.rnids.rs","ac.ru":"whois.free.net","edu.ru":"whois.informika.ru","com.ru":"whois.flexireg.net","msk.ru":"whois.flexireg.net","net.ru":"whois.nic.net.ru","nov.ru":"whois.flexireg.net","org.ru":"whois.nic.net.ru","pp.ru":"whois.nic.net.ru","spb.ru":"whois.flexireg.net",ru:"whois.tcinet.ru",rw:"whois.ricta.org.rw",sa:"whois.nic.net.sa",sb:"whois.nic.net.sb",sc:"whois2.afilias-grs.net",sd:"whois.sdnic.sd",se:"whois.iis.se",sg:"whois.sgnic.sg",sh:"whois.nic.sh",si:"whois.register.si",sk:"whois.sk-nic.sk",sl:"whois.nic.sl",sm:"whois.nic.sm",sn:"whois.nic.sn",so:"whois.nic.so",ss:"whois.nic.ss",st:"whois.nic.st","msk.su":"whois.flexireg.net","nov.su":"whois.flexireg.net","spb.su":"whois.flexireg.net",su:"whois.tcinet.ru",sx:"whois.sx",sy:"whois.tld.sy",tc:"whois.nic.tc",td:"whois.nic.td",tf:"whois.nic.tf",tg:"whois.nic.tg",th:"whois.thnic.co.th",tk:"whois.dot.tk",tl:"whois.nic.tl",tm:"whois.nic.tm",tn:"whois.ati.tn",to:"whois.tonic.to",tr:"whois.trabis.gov.tr",tv:"whois.nic.tv",tw:"whois.twnic.net.tw",tz:"whois.tznic.or.tz","biz.ua":"whois.biz.ua","co.ua":"whois.co.ua","pp.ua":"whois.pp.ua",ua:"whois.ua",ug:"whois.co.ug","ac.uk":"whois.nic.ac.uk","gov.uk":"whois.gov.uk",uk:"whois.nic.uk","fed.us":"whois.nic.gov",us:"whois.nic.us",uy:"whois.nic.org.uy",uz:"whois.cctld.uz",vc:"whois2.afilias-grs.net",ve:"whois.nic.ve",vg:"whois.nic.vg",vu:"whois.dnrs.vu",wf:"whois.nic.wf",ws:"whois.website.ws",yt:"whois.nic.yt","ac.za":"whois.ac.za","co.za":"whois.registry.net.za","gov.za":"whois.gov.za","net.za":"net-whois.registry.net.za","org.za":"org-whois.registry.net.za","web.za":"web-whois.registry.net.za",zm:"whois.zicta.zm","xn--2scrj9c":"whois.registry.in","xn--3e0b707e":"whois.kr","xn--3hcrj9c":"whois.registry.in","xn--45br5cyl":"whois.registry.in","xn--45brj9c":"whois.registry.in","xn--4dbrk0ce":"whois.isoc.org.il","xn--80ao21a":"whois.nic.kz","xn--90a3ac":"whois.rnids.rs","xn--90ae":"whois.imena.bg","xn--90ais":"whois.cctld.by","xn--clchc0ea0b2g2a9gcd":"whois.sgnic.sg","xn--d1alf":"whois.marnet.mk","xn--e1a4c":"whois.eu","xn--fiqs8s":"cwhois.cnnic.cn","xn--fiqz9s":"cwhois.cnnic.cn","xn--fpcrj9c3d":"whois.registry.in","xn--fzc2c9e2c":"whois.nic.lk","xn--gecrj9c":"whois.registry.in","xn--h2breg3eve":"whois.registry.in","xn--h2brj9c8c":"whois.registry.in","xn--h2brj9c":"whois.registry.in","xn--j1amh":"whois.dotukr.com","xn--j6w193g":"whois.hkirc.hk","xn--kprw13d":"whois.twnic.net.tw","xn--kpry57d":"whois.twnic.net.tw","xn--lgbbat1ad8j":"whois.nic.dz","xn--mgb9awbf":"whois.registry.om","xn--mgba3a4f16a":"whois.nic.ir","xn--mgbaam7a8h":"whois.aeda.net.ae","xn--mgbah1a3hjkrd":"whois.nic.mr","xn--mgbbh1a71e":"whois.registry.in","xn--mgbbh1a":"whois.registry.in","xn--mgberp4a5d4ar":"whois.nic.net.sa","xn--mgbgu82a":"whois.registry.in","xn--mgbtx2b":"whois.cmc.iq","xn--mgbx4cd0ab":"whois.mynic.my","xn--node":"whois.itdc.ge","xn--o3cw4h":"whois.thnic.co.th","xn--ogbpf8fl":"whois.tld.sy","xn--p1ai":"whois.tcinet.ru","xn--pgbs0dh":"whois.ati.tn","xn--q7ce6a":"whois.nic.la","xn--qxa6a":"whois.eu","xn--rvc1e0am3e":"whois.registry.in","xn--s9brj9c":"whois.registry.in","xn--wgbh1c":"whois.dotmasr.eg","xn--wgbl6a":"whois.registry.qa","xn--xkc2al3hye2a":"whois.nic.lk","xn--xkc2dl3a5ee0h":"whois.registry.in","xn--y9a3aq":"whois.amnic.net","xn--yfro4i67o":"whois.sgnic.sg","xn--ygbi2ammx":"whois.pnina.ps"};var R4;((F)=>{F[F.SOCKS4=0]="SOCKS4";F[F.SOCKS5=1]="SOCKS5"})(R4||={});function j1(D){if(Array.isArray(D))return D.slice();if(typeof D==="object"&&D!==null){let u={};for(let F in D)if(Object.prototype.hasOwnProperty.call(D,F))u[F]=j1(D[F]);return u}return D}var LK=p(h1(),1);async function HK(D){let u=y4+D;try{let F=await qK(u);if(F.ok){let E=(await F.text()).match(/whois:\s+(\S+)/);if(E?.[1])return E[1]}}catch(F){console.error("Error in getting WhoIs server data from IANA",F)}return""}function UK(D){if(D==="com")return"whois.verisign-grs.com";return y1[D]}function k4(D){let u=D.split(".");for(let F=u.length-1;F>0;F--){let $=u.slice(F).join(".");if(y1[$])return $}return u[u.length-1]}function OK(D){return j4[D]}class b8{static iterParse(D,u){let F="",$=null,E="";for(let w=0;w<D.length;w++){let C=D[w];if(C==="\n"||E===":"&&C===" "){if(F.trim()in u)$=F.trim();else if($!==null){let Z=F.trim();if(Z!==""){let M=u[$];if(Array.isArray(M))M.push(Z);else u[$]=Z;$=null}}F=""}else if(C!==":")F=F+C;if(E=C,F==="Record maintained by"||F===">>>")break}return u}static parseData(D,u){if(!u)u={"Domain Name":"","Creation Date":"","Updated Date":"","Registry Expiry Date":"","Domain Status":[],Registrar:""};return u=b8.iterParse(D,u),u}}async function VK(D,u,F,$,E,w){let C=new TextDecoder(E),Z=new TextEncoder;if(!w){let W=new GK.Socket;return new Promise((X,q)=>{try{W.connect({port:$,host:F},()=>{if(u!=="")W.write(Z.encode(`${u} ${D}\r\n`));else W.write(Z.encode(`${D}\r\n`))}),W.on("data",(L)=>{X(C.decode(L))}),W.on("error",(L)=>{q(L)})}catch(L){q(L)}})}let M={proxy:{host:w.ip,port:w.port,type:w.type===1?5:4},command:"connect",destination:{host:F,port:$}};if(w.username&&w.password)M.proxy.userId=w.username,M.proxy.password=w.password;return new Promise((W,X)=>{g4.SocksClient.createConnection(M,(q,L)=>{if(q)X(q);else{if(!L)X(new Error("No socket info received!"));if(u!=="")L?.socket.write(Z.encode(`${u} ${D}\r\n`));else L?.socket.write(Z.encode(`${D}\r\n`));L?.socket.on("data",(U)=>{W(C.decode(U))}),L?.socket.resume()}})})}async function R1(D,u=!1,F=null){let $,E=43,w="",C,Z="utf-8";if(!F)$=k4(D),C=null;else $=F.tld?F.tld:k4(D),Z=F.encoding?F.encoding:"utf-8",C=F.proxy?F.proxy:null,w=F.server?F.server:"",E=F.serverPort?F.serverPort:43;if(w===""){let X=UK($);if(!X){if(Qu.debug(`No WhoIs server found for TLD: ${$}! Attempting IANA WhoIs database for server!`),X=await HK($),!X)return Qu.debug("WhoIs server could not be found!"),{_raw:"",parsedData:null};Qu.debug(`WhoIs sever found for ${$}: ${w}`)}w=X}let W=OK(w)||"";try{Qu.debug(`Attempting WHOIS lookup for ${D} on server ${w}`);let X=await VK(D,W,w,E,Z,C);if(Qu.debug("Raw WHOIS data received:",X),!u){let L=b8.parseData(X,null);return{_raw:X,parsedData:L}}let q=null;if(F?.parseData)q=j1(F.parseData);try{let L=b8.parseData(X,q);return{_raw:X,parsedData:L}}catch(L){return console.error("Error in parsing WhoIs data!",L),{_raw:X,parsedData:null}}}catch(X){return Qu.debug(`Error in WHOIS lookup for ${D} on server ${w}`,X),{_raw:"",parsedData:null}}}function yG(D,u=null){return Qu.debug(`Lookup called for ${D}`),R1(D,!0,u)}async function jG(D,u=!1,F=1,$=!1,E=null){let w=[];if(u){if(F>D.length)F=D.length;for(let C=0;C<D.length;C+=F){let Z=D.slice(C,C+F);w=await Promise.all(Z.map(async(M)=>{return await R1(M,$,E)}))}}else for(let C=0;C<D.length;C++){let Z=await R1(D[C],$,E);w.push(Z)}return w}var export_SocksClient=LK.SocksClient;export{R1 as whois,VK as tcpWhois,yG as lookup,UK as getWhoIsServer,k4 as getTLD,OK as getParameters,HK as findWhoIsServer,jG as batchWhois,b8 as WhoIsParser,export_SocksClient as SocksClient,y1 as SERVERS,R4 as ProxyType,j4 as PARAMETERS,y4 as IANA_CHK_URL};
173
+ const NOT_AN_ARRAY = '${D.array}';`}var rw=Object.getPrototypeOf(async function(){}).constructor,v8=class{variablesCounter=0;#D;#u;#F=new Qw;constructor(D,u){this.#D=D,this.#u=u||{convertEmptyStringsToNull:!1}}#C(){this.#F.writeStatement(dw({required:"value is required",object:"value is not a valid object",array:"value is not a valid array",...this.#u.messages})),this.#F.writeStatement(nw(this.#u)),this.#F.writeStatement("let out;")}#$(){this.#F.writeStatement(Rw()),this.#F.writeStatement("return out;")}#E(){this.compileNode(this.#D.schema,this.#F,{type:"root",variableName:"root",outputExpression:"out",fieldPathExpression:"out",wildCardPath:""})}#w(){return new rw("root","meta","refs","messagesProvider","errorReporter",this.#F.toString())}createFieldFor(D,u){switch(u.type){case"array":return gw(u);case"root":return Iw(u);case"object":return fw(D,this.variablesCounter,u);case"tuple":return jw(D,u);case"record":return xw(u)}}compileNode(D,u,F,C){switch(D.type){case"literal":return new Sw(D,u,this,F,C).compile();case"array":return new Hw(D,u,this,F,C).compile();case"record":return new Tw(D,u,this,F,C).compile();case"object":return new Nw(D,u,this,F,C).compile();case"tuple":return new qw(D,u,this,F,C).compile();case"union":return new Ow(D,u,this,F,C).compile()}}compile(){this.#C(),this.#E(),this.#$();let D=this.#w();return this.variablesCounter=0,this.#F.flush(),D}};function gF(){let D=0,u={};return{toJSON(){return u},track(F){D++;let C=`ref://${D}`;return u[C]=F,C},trackValidation(F){return this.track(F)},trackParser(F){return this.track(F)},trackTransformer(F){return this.track(F)},trackConditional(F){return this.track(F)}}}function N(D,u){let F={validator:D,isAsync:u?.isAsync||D.constructor.name==="AsyncFunction",implicit:u?.implicit??!1};return function(...C){return{rule:F,options:C[0]}}}var t9={};j0(t9,{COTYPE:()=>pw,IS_OF_TYPE:()=>pD,ITYPE:()=>iw,OTYPE:()=>lw,PARSE:()=>d,SUBTYPE:()=>Fu,UNIQUE_NAME:()=>mD,VALIDATION:()=>Gu});var mD=Symbol.for("schema_name"),pD=Symbol.for("is_of_type"),d=Symbol.for("parse"),iw=Symbol.for("opaque_input_type"),lw=Symbol.for("opaque_type"),pw=Symbol.for("camelcase_opaque_type"),Gu=Symbol.for("to_validation"),Fu=Symbol.for("subtype"),lD=N((D,u,F)=>{let C=u(F);if(!F.isDefined&&C)F.report(T.required,"required",F)},{implicit:!0}),Q1=class extends du{optional(D){return new aw(this,D)}nullable(){return new tw(this)}transform(D){return new sw(D,this)}},tw=class D extends Q1{#D;constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[d](u,F,C){let E=this.#D[d](u,F,C);return E.allowNull=!0,E}},aw=class D extends Q1{#D;validations;constructor(u,F){super();this.#D=u,this.validations=F||[]}cloneValidations(){return this.validations.map((u)=>{return{options:u.options,rule:u.rule}})}compileValidations(u){return this.validations.map((F)=>{return{ruleFnId:u.track({validator:F.rule.validator,options:F.options}),implicit:F.rule.implicit,isAsync:F.rule.isAsync}})}use(u){return this.validations.push(Gu in u?u[Gu]():u),this}requiredWhen(u,F,C){if(typeof u==="function")return this.use(lD(u));let E;switch(F){case"=":E=(w)=>w===C;break;case"!=":E=(w)=>w!==C;break;case"in":E=(w)=>C.includes(w);break;case"notIn":E=(w)=>!C.includes(w);break;case">":E=(w)=>w>C;break;case"<":E=(w)=>w<C;break;case">=":E=(w)=>w>=C;break;case"<=":E=(w)=>w<=C}return this.use(lD((w)=>{let $=S.getNestedValue(u,w);return E($)}))}requiredIfExists(u){let F=Array.isArray(u)?u:[u];return this.use(lD((C)=>{return F.every((E)=>S.exists(S.getNestedValue(E,C)))}))}requiredIfAnyExists(u){return this.use(lD((F)=>{return u.some((C)=>S.exists(S.getNestedValue(C,F)))}))}requiredIfMissing(u){let F=Array.isArray(u)?u:[u];return this.use(lD((C)=>{return F.every((E)=>S.isMissing(S.getNestedValue(E,C)))}))}requiredIfAnyMissing(u){return this.use(lD((F)=>{return u.some((C)=>S.isMissing(S.getNestedValue(C,F)))}))}clone(){return new D(this.#D.clone(),this.cloneValidations())}[d](u,F,C){let E=this.#D[d](u,F,C);return E.isOptional=!0,E.validations=E.validations.concat(this.compileValidations(F)),E}},sw=class D extends Q1{#D;#u;constructor(u,F){super();this.#u=u,this.#D=F}clone(){return new D(this.#u,this.#D.clone())}[d](u,F,C){let E=this.#D[d](u,F,C);return E.transformFnId=F.trackTransformer(this.#u),E}},Mu=class extends Q1{options;validations;constructor(D,u){super();this.options={bail:!0,allowNull:!1,isOptional:!1,...D},this.validations=u||[]}cloneValidations(){return this.validations.map((D)=>{return{options:D.options,rule:D.rule}})}cloneOptions(){return{...this.options}}compileValidations(D){return this.validations.map((u)=>{return{ruleFnId:D.track({validator:u.rule.validator,options:u.options}),implicit:u.rule.implicit,isAsync:u.rule.isAsync}})}parse(D){return this.options.parse=D,this}use(D){return this.validations.push(Gu in D?D[Gu]():D),this}bail(D){return this.options.bail=D,this}[d](D,u,F){return{type:"literal",subtype:this[Fu],fieldName:D,propertyName:F.toCamelCase?GD(D):D,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,parseFnId:this.options.parse?u.trackParser(this.options.parse):void 0,validations:this.compileValidations(u)}}},a9=class D extends Mu{constructor(u,F){super(u,F)}[Fu]="any";clone(){return new D(this.cloneOptions(),this.cloneValidations())}},X1=N((D,u,F)=>{let C=typeof u.choices==="function"?u.choices(F):u.choices;if(!C.includes(D))F.report(T.enum,"enum",F,{choices:C})}),iu=class D extends Mu{static rules={enum:X1};#D;[Fu]="enum";getChoices(){return this.#D}constructor(u,F,C){super(F,C||[X1({choices:u})]);this.#D=u}clone(){return new D(this.#D,this.cloneOptions(),this.cloneValidations())}},gu=["YYYY-MM-DD","YYYY-MM-DD HH:mm:ss"];a.default.extend(D6.default);a.default.extend(o9.default);a.default.extend(e9.default);var ow=N((D,u,F)=>{if(typeof D!=="string"&&typeof D!=="number"){F.report(T.date,"date",F);return}let C=!1,E=!1,w=u.formats||gu;if(Array.isArray(w))w=[...w],C=w.includes("x"),E=w.includes("iso8601");else if(typeof w!=="string")w={...w},C=w.format==="x",E=w.format==="iso";let $=C?S.asNumber(D):D,M;if(C&&!Number.isNaN($))M=a.default($);else M=a.default(D,w,!0);if(!M.isValid()&&E)M=a.default(D);if(!M.isValid()){F.report(T.date,"date",F);return}F.meta.$value=M,F.meta.$formats=w,F.mutate(M.toDate(),F)}),jF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=u.format||gu,w=F.meta.$value,$=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,M=a.default($,E,!0);if(!M.isValid())throw new Error(`Invalid datetime value "${$}" provided to the equals rule`);if(!w.isSame(M,C))F.report(T["date.equals"],"date.equals",F,{expectedValue:$,compare:C})}),RF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=u.format||gu,w=F.meta.$value,$=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,M=$==="today"?a.default():$==="tomorrow"?a.default().add(1,"day"):a.default($,E,!0);if(!M.isValid())throw new Error(`Invalid datetime value "${$}" provided to the after rule`);if(!w.isAfter(M,C))F.report(T["date.after"],"date.after",F,{expectedValue:$,compare:C})}),PF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=u.format||gu,w=F.meta.$value,$=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,M=$==="today"?a.default():$==="tomorrow"?a.default().add(1,"day"):a.default($,E,!0);if(!M.isValid())throw new Error(`Invalid datetime value "${$}" provided to the afterOrEqual rule`);if(!w.isSameOrAfter(M,C))F.report(T["date.afterOrEqual"],"date.afterOrEqual",F,{expectedValue:$,compare:C})}),kF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=u.format||gu,w=F.meta.$value,$=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,M=$==="today"?a.default():$==="yesterday"?a.default().subtract(1,"day"):a.default($,E,!0);if(!M.isValid())throw new Error(`Invalid datetime value "${$}" provided to the before rule`);if(!w.isBefore(M,C))F.report(T["date.before"],"date.before",F,{expectedValue:$,compare:C})}),bF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=u.format||gu,w=F.meta.$value,$=typeof u.expectedValue==="function"?u.expectedValue(F):u.expectedValue,M=$==="today"?a.default():$==="yesterday"?a.default().subtract(1,"day"):a.default($,E,!0);if(!M.isValid())throw new Error(`Invalid datetime value "${$}" provided to the beforeOrEqual rule`);if(!w.isSameOrBefore(M,C))F.report(T["date.beforeOrEqual"],"date.beforeOrEqual",F,{expectedValue:$,compare:C})}),cF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,$=S.getNestedValue(u.otherField,F),M=a.default($,w,!0);if(!M.isValid())return;if(!E.isSame(M,C))F.report(T["date.sameAs"],"date.sameAs",F,{otherField:u.otherField,expectedValue:$,compare:C})}),mF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,$=S.getNestedValue(u.otherField,F),M=a.default($,w,!0);if(!M.isValid())return;if(E.isSame(M,C))F.report(T["date.notSameAs"],"date.notSameAs",F,{otherField:u.otherField,expectedValue:$,compare:C})}),_F=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,$=S.getNestedValue(u.otherField,F),M=a.default($,w,!0);if(!M.isValid())return;if(!E.isAfter(M,C))F.report(T["date.afterField"],"date.afterField",F,{otherField:u.otherField,expectedValue:$,compare:C})}),vF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,$=S.getNestedValue(u.otherField,F),M=a.default($,w,!0);if(!M.isValid())return;if(!E.isSameOrAfter(M,C))F.report(T["date.afterOrSameAs"],"date.afterOrSameAs",F,{otherField:u.otherField,expectedValue:$,compare:C})}),fF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,$=S.getNestedValue(u.otherField,F),M=a.default($,w,!0);if(!M.isValid())return;if(!E.isBefore(M,C))F.report(T["date.beforeField"],"date.beforeField",F,{otherField:u.otherField,expectedValue:$,compare:C})}),xF=N((D,u,F)=>{if(!F.meta.$value)return;let C=u.compare||"day",E=F.meta.$value,w=u.format||F.meta.$formats,$=S.getNestedValue(u.otherField,F),M=a.default($,w,!0);if(!M.isValid())return;if(!E.isSameOrBefore(M,C))F.report(T["date.beforeOrSameAs"],"date.beforeOrSameAs",F,{otherField:u.otherField,expectedValue:$,compare:C})}),nF=N((D,u,F)=>{if(!F.meta.$value)return;let E=F.meta.$value.day();if(E!==0&&E!==6)F.report(T["date.weekend"],"date.weekend",F)}),dF=N((D,u,F)=>{if(!F.meta.$value)return;let E=F.meta.$value.day();if(E===0||E===6)F.report(T["date.weekday"],"date.weekday",F)}),x8=class D extends Mu{static rules={equals:jF,after:RF,afterOrEqual:PF,before:kF,beforeOrEqual:bF,sameAs:cF,notSameAs:mF,afterField:_F,afterOrSameAs:vF,beforeField:fF,beforeOrSameAs:xF,weekend:nF,weekday:dF};[mD]="vine.date";[Fu]="date";[pD]=(u)=>{if(typeof u!=="string")return!1;return s9.default(u,this.options.formats||gu,!0).isValid()};constructor(u,F){super(u,F||[ow(u||{})])}equals(u,F){return this.use(jF({expectedValue:u,...F}))}after(u,F){return this.use(RF({expectedValue:u,...F}))}afterOrEqual(u,F){return this.use(PF({expectedValue:u,...F}))}before(u,F){return this.use(kF({expectedValue:u,...F}))}beforeOrEqual(u,F){return this.use(bF({expectedValue:u,...F}))}sameAs(u,F){return this.use(cF({otherField:u,...F}))}notSameAs(u,F){return this.use(mF({otherField:u,...F}))}afterField(u,F){return this.use(_F({otherField:u,...F}))}afterOrSameAs(u,F){return this.use(vF({otherField:u,...F}))}beforeField(u,F){return this.use(fF({otherField:u,...F}))}beforeOrSameAs(u,F){return this.use(xF({otherField:u,...F}))}weekend(){return this.use(nF())}weekday(){return this.use(dF())}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},u6=class D{#D;#u=(u,F)=>{F.report(T.union,"union",F)};constructor(u){this.#D=u}otherwise(u){return this.#u=u,this}clone(){let u=new D(this.#D);return u.otherwise(this.#u),u}[d](u,F,C){return{type:"union",fieldName:u,propertyName:C.toCamelCase?GD(u):u,elseConditionalFnRefId:F.trackConditional(this.#u),conditions:this.#D.map((E)=>E[d](u,F,C))}}},F6=class{#D;#u;constructor(D,u){this.#D=u,this.#u=D}[d](D,u,F){return{conditionalFnRefId:u.trackConditional(this.#u),schema:this.#D[d](D,u,F)}}};function n8(D){return new u6(D)}n8.if=function D(u,F){return new F6(u,F)};n8.else=function D(u){return new F6(()=>!0,u)};var z0=class extends du{optional(){return new DB(this)}nullable(){return new ew(this)}},ew=class D extends z0{#D;constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[d](u,F,C){let E=this.#D[d](u,F,C);if(E.type!=="union")E.allowNull=!0;return E}},DB=class D extends z0{#D;validations;constructor(u,F){super();this.#D=u,this.validations=F||[]}cloneValidations(){return this.validations.map((u)=>{return{options:u.options,rule:u.rule}})}compileValidations(u){return this.validations.map((F)=>{return{ruleFnId:u.track({validator:F.rule.validator,options:F.options}),implicit:F.rule.implicit,isAsync:F.rule.isAsync}})}use(u){return this.validations.push(Gu in u?u[Gu]():u),this}requiredWhen(u,F,C){if(typeof u==="function")return this.use(lD(u));let E;switch(F){case"=":E=(w)=>w===C;break;case"!=":E=(w)=>w!==C;break;case"in":E=(w)=>C.includes(w);break;case"notIn":E=(w)=>!C.includes(w);break;case">":E=(w)=>w>C;break;case"<":E=(w)=>w<C;break;case">=":E=(w)=>w>=C;break;case"<=":E=(w)=>w<=C}return this.use(lD((w)=>{let $=S.getNestedValue(u,w);return E($)}))}requiredIfExists(u){let F=Array.isArray(u)?u:[u];return this.use(lD((C)=>{return F.every((E)=>{return S.exists(S.getNestedValue(E,C))})}))}requiredIfAnyExists(u){return this.use(lD((F)=>{return u.some((C)=>S.exists(S.getNestedValue(C,F)))}))}requiredIfMissing(u){let F=Array.isArray(u)?u:[u];return this.use(lD((C)=>{return F.every((E)=>S.isMissing(S.getNestedValue(E,C)))}))}requiredIfAnyMissing(u){return this.use(lD((F)=>{return u.some((C)=>S.isMissing(S.getNestedValue(C,F)))}))}clone(){return new D(this.#D.clone(),this.cloneValidations())}[d](u,F,C){let E=this.#D[d](u,F,C);if(E.type!=="union")E.isOptional=!0,E.validations=E.validations.concat(this.compileValidations(F));return E}},A0=class extends z0{options;validations;constructor(D,u){super();this.options=D||{bail:!0,allowNull:!1,isOptional:!1},this.validations=u||[]}cloneValidations(){return this.validations.map((D)=>{return{options:D.options,rule:D.rule}})}cloneOptions(){return{...this.options}}compileValidations(D){return this.validations.map((u)=>{return{ruleFnId:D.track({validator:u.rule.validator,options:u.options}),implicit:u.rule.implicit,isAsync:u.rule.isAsync}})}parse(D){return this.options.parse=D,this}use(D){return this.validations.push(Gu in D?D[Gu]():D),this}bail(D){return this.options.bail=D,this}},C6=class D extends A0{#D;#u=!1;[mD]="vine.array";[pD]=(u)=>{return Array.isArray(u)};constructor(u,F,C){super(F,C);this.#D=u}allowUnknownProperties(){return this.#u=!0,this}clone(){let u=new D(this.#D.map((F)=>F.clone()),this.cloneOptions(),this.cloneValidations());if(this.#u)u.allowUnknownProperties();return u}[d](u,F,C){return{type:"tuple",fieldName:u,propertyName:C.toCamelCase?GD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,allowUnknownProperties:this.#u,parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,validations:this.compileValidations(F),properties:this.#D.map((E,w)=>E[d](String(w),F,C))}}},rF=N((D,u,F)=>{if(!F.isValid)return;if(D.length<u.min)F.report(T["array.minLength"],"array.minLength",F,u)}),iF=N((D,u,F)=>{if(!F.isValid)return;if(D.length>u.max)F.report(T["array.maxLength"],"array.maxLength",F,u)}),lF=N((D,u,F)=>{if(!F.isValid)return;if(D.length!==u.size)F.report(T["array.fixedLength"],"array.fixedLength",F,u)}),pF=N((D,u,F)=>{if(!F.isValid)return;if(D.length<=0)F.report(T.notEmpty,"notEmpty",F)}),tF=N((D,u,F)=>{if(!F.isValid)return;if(!S.isDistinct(D,u.fields))F.report(T.distinct,"distinct",F,u)}),aF=N((D,u,F)=>{if(!F.isValid)return;F.mutate(D.filter((C)=>S.exists(C)&&C!==""),F)}),$6=class D extends A0{static rules={compact:aF,notEmpty:pF,distinct:tF,minLength:rF,maxLength:iF,fixedLength:lF};#D;[mD]="vine.array";[pD]=(u)=>{return Array.isArray(u)};constructor(u,F,C){super(F,C);this.#D=u}minLength(u){return this.use(rF({min:u}))}maxLength(u){return this.use(iF({max:u}))}fixedLength(u){return this.use(lF({size:u}))}notEmpty(){return this.use(pF())}distinct(u){return this.use(tF({fields:u}))}compact(){return this.use(aF())}clone(){return new D(this.#D.clone(),this.cloneOptions(),this.cloneValidations())}[d](u,F,C){return{type:"array",fieldName:u,propertyName:C.toCamelCase?GD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,each:this.#D[d]("*",F,C),parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,validations:this.compileValidations(F)}}},uB=class D extends z0{#D;[mD]="types.object";[pD]=(u)=>{return u!==null&&typeof u==="object"&&!Array.isArray(u)};constructor(u){super();this.#D=u}clone(){return new D(this.#D.clone())}[d](u,F,C){return C.toCamelCase=!0,this.#D[d](u,F,C)}},E6=class D extends A0{#D;#u=[];#F=!1;[mD]="vine.object";[pD]=(u)=>{return u!==null&&typeof u==="object"&&!Array.isArray(u)};constructor(u,F,C){if(!u)throw new Error('Missing properties for "vine.object". Use an empty object if you do not want to validate any specific fields');super(F,C);this.#D=u}getProperties(){return Object.keys(this.#D).reduce((u,F)=>{return u[F]=this.#D[F].clone(),u},{})}allowUnknownProperties(){return this.#F=!0,this}merge(u){return this.#u.push(u),this}clone(){let u=new D(this.getProperties(),this.cloneOptions(),this.cloneValidations());if(this.#u.forEach((F)=>u.merge(F)),this.#F)u.allowUnknownProperties();return u}toCamelCase(){return new uB(this)}[d](u,F,C){return{type:"object",fieldName:u,propertyName:C.toCamelCase?GD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,allowUnknownProperties:this.#F,validations:this.compileValidations(F),properties:Object.keys(this.#D).map((E)=>{return this.#D[E][d](E,F,C)}),groups:this.#u.map((E)=>{return E[d](F,C)})}}},sF=N((D,u,F)=>{if(!F.isValid)return;if(Object.keys(D).length<u.min)F.report(T["record.minLength"],"record.minLength",F,u)}),oF=N((D,u,F)=>{if(!F.isValid)return;if(Object.keys(D).length>u.max)F.report(T["record.maxLength"],"record.maxLength",F,u)}),eF=N((D,u,F)=>{if(!F.isValid)return;if(Object.keys(D).length!==u.size)F.report(T["record.fixedLength"],"record.fixedLength",F,u)}),D9=N((D,u,F)=>{if(!F.isValid)return;u(Object.keys(D),F)}),w6=class D extends A0{static rules={maxLength:oF,minLength:sF,fixedLength:eF,validateKeys:D9};#D;[mD]="vine.object";[pD]=(u)=>{return u!==null&&typeof u==="object"&&!Array.isArray(u)};constructor(u,F,C){super(F,C);this.#D=u}minLength(u){return this.use(sF({min:u}))}maxLength(u){return this.use(oF({max:u}))}fixedLength(u){return this.use(eF({size:u}))}validateKeys(...u){return this.use(D9(...u))}clone(){return new D(this.#D.clone(),this.cloneOptions(),this.cloneValidations())}[d](u,F,C){return{type:"record",fieldName:u,propertyName:C.toCamelCase?GD(u):u,bail:this.options.bail,allowNull:this.options.allowNull,isOptional:this.options.isOptional,each:this.#D[d]("*",F,C),parseFnId:this.options.parse?F.trackParser(this.options.parse):void 0,validations:this.compileValidations(F)}}},u9=N((D,u,F)=>{if(typeof D!=="string")F.report(T.string,"string",F)}),F9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isEmail(D,u))F.report(T.email,"email",F)}),C9=N((D,u,F)=>{if(!F.isValid)return;let C=u&&typeof u==="function"?u(F):u,E=C?.locale||"any";if(!S.isMobilePhone(D,E,C))F.report(T.mobile,"mobile",F)}),$9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isIP(D,u?.version))F.report(T.ipAddress,"ipAddress",F)}),E9=N((D,u,F)=>{if(!F.isValid)return;if(!u.test(D))F.report(T.regex,"regex",F)}),w9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isHexColor(D))F.report(T.hexCode,"hexCode",F)}),B9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isURL(D,u))F.report(T.url,"url",F)}),Y9=N(async(D,u,F)=>{if(!F.isValid)return;if(!await S.isActiveURL(D))F.report(T.activeUrl,"activeUrl",F)}),J9=N((D,u,F)=>{if(!F.isValid)return;let C="a-zA-Z";if(u){if(u.allowSpaces)C+="\\s";if(u.allowDashes)C+="-";if(u.allowUnderscores)C+="_"}if(!new RegExp(`^[${C}]+$`).test(D))F.report(T.alpha,"alpha",F)}),M9=N((D,u,F)=>{if(!F.isValid)return;let C="a-zA-Z0-9";if(u){if(u.allowSpaces)C+="\\s";if(u.allowDashes)C+="-";if(u.allowUnderscores)C+="_"}if(!new RegExp(`^[${C}]+$`).test(D))F.report(T.alphaNumeric,"alphaNumeric",F)}),Z9=N((D,u,F)=>{if(!F.isValid)return;if(D.length<u.min)F.report(T.minLength,"minLength",F,u)}),K9=N((D,u,F)=>{if(!F.isValid)return;if(D.length>u.max)F.report(T.maxLength,"maxLength",F,u)}),X9=N((D,u,F)=>{if(!F.isValid)return;if(D.length!==u.size)F.report(T.fixedLength,"fixedLength",F,u)}),Q9=N((D,u,F)=>{if(!F.isValid)return;if(!D.endsWith(u.substring))F.report(T.endsWith,"endsWith",F,u)}),W9=N((D,u,F)=>{if(!F.isValid)return;if(!D.startsWith(u.substring))F.report(T.startsWith,"startsWith",F,u)}),z9=N((D,u,F)=>{if(!F.isValid)return;if(S.getNestedValue(u.otherField,F)!==D){F.report(T.sameAs,"sameAs",F,u);return}}),A9=N((D,u,F)=>{if(!F.isValid)return;if(S.getNestedValue(u.otherField,F)===D){F.report(T.notSameAs,"notSameAs",F,u);return}}),q9=N((D,u,F)=>{if(!F.isValid)return;let C=u?.confirmationField||`${F.name}_confirmation`;if(F.parent[C]!==D){F.report(T.confirmed,"confirmed",F,{otherField:C});return}}),G9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(D.trim(),F)}),H9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(Y6.default.default(D,u),F)}),U9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(D.toLocaleUpperCase(u),F)}),O9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(D.toLocaleLowerCase(u),F)}),V9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(GD(D),F)}),T9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(B6.default.default(D),F)}),L9=N((D,u,F)=>{if(!F.isValid)return;F.mutate(c8(D,u),F)}),h9=N((D,u,F)=>{if(!F.isValid)return;if(!(typeof u.choices==="function"?u.choices(F):u.choices).includes(D)){F.report(T.in,"in",F,u);return}}),N9=N((D,u,F)=>{if(!F.isValid)return;if((typeof u.list==="function"?u.list(F):u.list).includes(D)){F.report(T.notIn,"notIn",F,u);return}}),I9=N((D,u,F)=>{if(!F.isValid)return;let C=u?typeof u==="function"?u(F)?.provider||[]:u.provider:[];if(!C.length){if(!S.isCreditCard(D))F.report(T.creditCard,"creditCard",F,{providersList:"credit"})}else if(!C.find((w)=>S.isCreditCard(D,{provider:w})))F.report(T.creditCard,"creditCard",F,{providers:C,providersList:C.join("/")})}),y9=N((D,u,F)=>{if(!F.isValid)return;let C=typeof u==="function"?u(F).countryCode:u.countryCode;if(!C.find((w)=>S.isPassportNumber(D,w)))F.report(T.passport,"passport",F,{countryCodes:C})}),S9=N((D,u,F)=>{if(!F.isValid)return;let C=u?typeof u==="function"?u(F)?.countryCode||[]:u.countryCode:[];if(!C.length){if(!S.isPostalCode(D,"any"))F.report(T.postalCode,"postalCode",F)}else if(!C.find((w)=>S.isPostalCode(D,w)))F.report(T.postalCode,"postalCode",F,{countryCodes:C})}),g9=N((D,u,F)=>{if(!F.isValid)return;if(!u||!u.version){if(!S.isUUID(D))F.report(T.uuid,"uuid",F)}else if(!u.version.find((E)=>S.isUUID(D,E)))F.report(T.uuid,"uuid",F,u)}),j9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isULID(D))F.report(T.ulid,"ulid",F)}),R9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isAscii(D))F.report(T.ascii,"ascii",F)}),P9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isIBAN(D))F.report(T.iban,"iban",F)}),k9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isJWT(D))F.report(T.jwt,"jwt",F)}),b9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isLatLong(D))F.report(T.coordinates,"coordinates",F)}),W1=class D extends Mu{static rules={in:h9,jwt:k9,url:B9,iban:P9,uuid:g9,ulid:j9,trim:G9,email:F9,alpha:J9,ascii:R9,notIn:N9,regex:E9,escape:T9,sameAs:z9,mobile:C9,string:u9,hexCode:w9,passport:y9,endsWith:Q9,confirmed:q9,activeUrl:Y9,minLength:Z9,notSameAs:A9,maxLength:K9,ipAddress:$9,creditCard:I9,postalCode:S9,startsWith:W9,toUpperCase:U9,toLowerCase:O9,toCamelCase:V9,fixedLength:X9,coordinates:b9,normalizeUrl:L9,alphaNumeric:M9,normalizeEmail:H9};[Fu]="string";[mD]="vine.string";[pD]=(u)=>{return typeof u==="string"};constructor(u,F){super(u,F||[u9()])}url(...u){return this.use(B9(...u))}activeUrl(){return this.use(Y9())}email(...u){return this.use(F9(...u))}mobile(...u){return this.use(C9(...u))}ipAddress(u){return this.use($9(u?{version:u}:void 0))}hexCode(){return this.use(w9())}regex(u){return this.use(E9(u))}alpha(u){return this.use(J9(u))}alphaNumeric(u){return this.use(M9(u))}minLength(u){return this.use(Z9({min:u}))}maxLength(u){return this.use(K9({max:u}))}fixedLength(u){return this.use(X9({size:u}))}confirmed(u){return this.use(q9(u))}trim(){return this.use(G9())}normalizeEmail(u){return this.use(H9(u))}toUpperCase(){return this.use(U9())}toLowerCase(){return this.use(O9())}toCamelCase(){return this.use(V9())}escape(){return this.use(T9())}normalizeUrl(...u){return this.use(L9(...u))}startsWith(u){return this.use(W9({substring:u}))}endsWith(u){return this.use(Q9({substring:u}))}sameAs(u){return this.use(z9({otherField:u}))}notSameAs(u){return this.use(A9({otherField:u}))}in(u){return this.use(h9({choices:u}))}notIn(u){return this.use(N9({list:u}))}creditCard(...u){return this.use(I9(...u))}passport(...u){return this.use(y9(...u))}postalCode(...u){return this.use(S9(...u))}uuid(...u){return this.use(g9(...u))}ulid(){return this.use(j9())}ascii(){return this.use(R9())}iban(){return this.use(P9())}jwt(){return this.use(k9())}coordinates(){return this.use(b9())}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},c9=N((D,u,F)=>{let C=u.strict?D:S.asNumber(D);if(typeof C!=="number"||Number.isNaN(C)||C===Number.POSITIVE_INFINITY||C===Number.NEGATIVE_INFINITY){F.report(T.number,"number",F);return}F.mutate(C,F)}),m9=N((D,u,F)=>{if(!F.isValid)return;if(D<u.min)F.report(T.min,"min",F,u)}),_9=N((D,u,F)=>{if(!F.isValid)return;if(D>u.max)F.report(T.max,"max",F,u)}),v9=N((D,u,F)=>{if(!F.isValid)return;if(D<u.min||D>u.max)F.report(T.range,"range",F,u)}),f9=N((D,u,F)=>{if(!F.isValid)return;if(D<0)F.report(T.positive,"positive",F)}),x9=N((D,u,F)=>{if(!F.isValid)return;if(D>=0)F.report(T.negative,"negative",F)}),n9=N((D,u,F)=>{if(!F.isValid)return;if(!S.isDecimal(String(D),{force_decimal:u.range[0]!==0,decimal_digits:u.range.join(",")}))F.report(T.decimal,"decimal",F,{digits:u.range.join("-")})}),d9=N((D,u,F)=>{if(!F.isValid)return;if(!Number.isInteger(D))F.report(T.withoutDecimals,"withoutDecimals",F)}),r9=N((D,u,F)=>{if(!F.isValid)return;if(!u.values.includes(D))F.report(T["number.in"],"in",F,u)}),lu=class D extends Mu{static rules={in:r9,max:_9,min:m9,range:v9,number:c9,decimal:n9,negative:x9,positive:f9,withoutDecimals:d9};[Fu]="number";[mD]="vine.number";[pD]=(u)=>{let F=S.asNumber(u);return!Number.isNaN(F)};constructor(u,F){super(u,F||[c9(u||{})])}min(u){return this.use(m9({min:u}))}max(u){return this.use(_9({max:u}))}range(u){return this.use(v9({min:u[0],max:u[1]}))}positive(){return this.use(f9())}negative(){return this.use(x9())}decimal(u){return this.use(n9({range:Array.isArray(u)?u:[u]}))}withoutDecimals(){return this.use(d9())}clone(){return new D(this.cloneOptions(),this.cloneValidations())}in(u){return this.use(r9({values:u}))}},i9=N((D,u,F)=>{let C=u.strict===!0?D:S.asBoolean(D);if(typeof C!=="boolean"){F.report(T.boolean,"boolean",F);return}F.mutate(C,F)}),pu=class D extends Mu{static rules={boolean:i9};[Fu]="boolean";[mD]="vine.boolean";[pD]=(u)=>{return typeof(this.options.strict===!0?u:S.asBoolean(u))==="boolean"};constructor(u,F){super(u,F||[i9(u||{})])}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},l9=N((D,u,F)=>{let C=D;if(typeof u.expectedValue==="boolean")C=S.asBoolean(D);else if(typeof u.expectedValue==="number")C=S.asNumber(D);if(C!==u.expectedValue){F.report(T.literal,"literal",F,u);return}F.mutate(C,F)}),J6=class D extends Mu{static rules={equals:l9};#D;[Fu]="literal";constructor(u,F,C){super(F,C||[l9({expectedValue:u})]);this.#D=u}clone(){return new D(this.#D,this.cloneOptions(),this.cloneValidations())}},FB=["on","1","yes","true",!0,1],p9=N((D,u,F)=>{if(!FB.includes(D))F.report(T.accepted,"accepted",F)}),M6=class D extends Mu{static rules={accepted:p9};[Fu]="checkbox";constructor(u,F){super(u,F||[p9()])}clone(){return new D(this.cloneOptions(),this.cloneValidations())}},CB=class D{#D;#u=(u,F)=>{F.report(T.unionGroup,"unionGroup",F)};constructor(u){this.#D=u}clone(){let u=new D(this.#D);return u.otherwise(this.#u),u}otherwise(u){return this.#u=u,this}[d](u,F){return{type:"group",elseConditionalFnRefId:u.trackConditional(this.#u),conditions:this.#D.map((C)=>C[d](u,F))}}},Z6=class{#D;#u;constructor(D,u){this.#D=u,this.#u=D}[d](D,u){return{schema:{type:"sub_object",properties:Object.keys(this.#D).map((F)=>{return this.#D[F][d](F,D,u)}),groups:[]},conditionalFnRefId:D.trackConditional(this.#u)}}};function d8(D){return new CB(D)}d8.if=function D(u,F){return new Z6(u,F)};d8.else=function D(u){return new Z6(()=>!0,u)};var K6=class D extends Mu{static rules={enum:X1};#D;[Fu]="enum";constructor(u,F,C){super(F,C||[X1({choices:Object.values(u)})]);this.#D=u}clone(){return new D(this.#D,this.cloneOptions(),this.cloneValidations())}},$B=class D{#D;#u=(u,F)=>{F.report(T.unionOfTypes,"unionOfTypes",F)};constructor(u){this.#D=u}otherwise(u){return this.#u=u,this}clone(){let u=new D(this.#D);return u.otherwise(this.#u),u}[d](u,F,C){return{type:"union",fieldName:u,propertyName:C.toCamelCase?GD(u):u,elseConditionalFnRefId:F.trackConditional(this.#u),conditions:this.#D.map((E)=>{return{conditionalFnRefId:F.trackConditional((w,$)=>{return E[pD](w,$)}),schema:E[d](u,F,C)}})}}},EB=class extends du{group=d8;union=n8;string(){return new W1}boolean(D){return new pu(D)}accepted(){return new M6}number(D){return new lu(D)}date(D){return new x8(D)}literal(D){return new J6(D)}object(D){return new E6(D)}array(D){return new $6(D)}tuple(D){return new C6(D)}record(D){return new w6(D)}enum(D){if(Array.isArray(D)||typeof D==="function")return new iu(D);return new K6(D)}any(){return new a9}unionOfTypes(D){let u=new Set;return D.forEach((F)=>{if(!F[pD]||!F[mD])throw new Error(`Cannot use "${F.constructor.name}". The schema type is not compatible for use with "vine.unionOfTypes"`);if(u.has(F[mD]))throw new Error(`Cannot use duplicate schema "${F[mD]}". "vine.unionOfTypes" needs distinct schema types only`);u.add(F[mD])}),u.clear(),new $B(D)}},wB={required:T.required,array:T.array,object:T.object},f8=class{#D;messagesProvider;errorReporter;#u(D){let u=gF();return{compilerNode:{type:"root",schema:D[d]("",u,{toCamelCase:!1})},refs:u.toJSON()}}constructor(D,u){let{compilerNode:F,refs:C}=this.#u(D);this.#D={schema:F,refs:C};let E=u.metaDataValidator,w=new v8(F,{convertEmptyStringsToNull:u.convertEmptyStringsToNull,messages:wB}).compile();if(this.errorReporter=u.errorReporter,this.messagesProvider=u.messagesProvider,E)this.validate=($,M)=>{let Z=M??{},Q=Z.meta??{},X=Z.errorReporter??this.errorReporter,A=Z.messagesProvider??this.messagesProvider;return E(Q),w($,Q,C,A,X())};else this.validate=($,M)=>{let Z=M??{},Q=Z.meta??{},X=Z.errorReporter??this.errorReporter,A=Z.messagesProvider??this.messagesProvider;return w($,Q,C,A,X())}}async tryValidate(D,...[u]){try{return[null,await this.validate(D,u)]}catch(F){if(F instanceof T8)return[F,null];throw F}}toJSON(){let{schema:D,refs:u}=this.#D;return{schema:structuredClone(D),refs:u}}},X6=class extends EB{messagesProvider=new K0(T,XF);errorReporter=()=>new L8;convertEmptyStringsToNull=!1;helpers=S;createRule=N;compile(D){return new f8(D,{convertEmptyStringsToNull:this.convertEmptyStringsToNull,messagesProvider:this.messagesProvider,errorReporter:this.errorReporter})}withMetaData(D){return{compile:(u)=>{return new f8(u,{convertEmptyStringsToNull:this.convertEmptyStringsToNull,messagesProvider:this.messagesProvider,errorReporter:this.errorReporter,metaDataValidator:D})}}}validate(D){return this.compile(D.schema).validate(D.data,D)}tryValidate(D){return this.compile(D.schema).tryValidate(D.data,D)}},BB=new X6,j=BB;var Q6={APP_NAME:j.string(),APP_ENV:j.enum(["local","dev","stage","prod"]),APP_KEY:j.string(),APP_URL:j.string(),PORT:j.number(),PORT_BACKEND:j.number(),PORT_ADMIN:j.number(),PORT_LIBRARY:j.number(),PORT_DESKTOP:j.number(),PORT_EMAIL:j.number(),PORT_DOCS:j.number(),PORT_INSPECT:j.number(),PORT_API:j.number(),PORT_SYSTEM_TRAY:j.number(),APP_MAINTENANCE:j.boolean(),DEBUG:j.boolean(),API_PREFIX:j.string(),DOCS_PREFIX:j.string(),DB_CONNECTION:j.enum(["mysql","sqlite","postgres"]),DB_HOST:j.string(),DB_PORT:j.number(),DB_DATABASE:j.string(),DB_USERNAME:j.string(),DB_PASSWORD:j.string(),AWS_ACCOUNT_ID:j.string(),AWS_ACCESS_KEY_ID:j.string(),AWS_SECRET_ACCESS_KEY:j.string(),AWS_DEFAULT_REGION:j.string(),AWS_DEFAULT_PASSWORD:j.string(),MAIL_MAILER:j.enum(["ses","sendmail","log","smtp"]),MAIL_HOST:j.string(),MAIL_PORT:j.number(),MAIL_USERNAME:j.string(),MAIL_PASSWORD:j.string(),MAIL_ENCRYPTION:j.string(),MAIL_FROM_NAME:j.string(),MAIL_FROM_ADDRESS:j.string(),SEARCH_ENGINE_DRIVER:j.enum(["meilisearch","algolia","typesense"]),MEILISEARCH_HOST:j.string(),MEILISEARCH_KEY:j.string(),FRONTEND_APP_ENV:j.enum(["development","staging","production"]),FRONTEND_APP_URL:j.string()};var YB={APP_ENV:["local","dev","development","staging","prod","production"],DB_CONNECTION:["mysql","sqlite","postgres","dynamodb"],MAIL_MAILER:["smtp","mailgun","ses","postmark","sendmail","log"],SEARCH_ENGINE_DRIVER:["opensearch"],FRONTEND_APP_ENV:["development","staging","production"]},JB=Object.entries(Q6).reduce((D,[u,F])=>{let C;switch(typeof F){case"string":C=j.string();break;case"number":C=j.number();break;case"boolean":C=j.boolean();break;default:if(Array.isArray(F)){C=j.enum(F);break}if(typeof F==="object"){let w=Symbol.for("schema_name"),$=F[w];if($==="vine.string"){C=j.string();break}if($==="vine.number"){C=j.number();break}if($==="vine.boolean"){C=j.boolean();break}if(!$){C=j.enum(YB.APP_ENV);break}console.error("Unknown env value type",typeof F)}throw new Error(`Invalid env value for ${u}`)}let E=u;return D[E]=C,D},{}),gz=j.object(JB);var ZB={get:(D,u)=>{let F=D[u];if(typeof F==="string"&&/^\d+$/.test(F)&&u!=="AWS_ACCOUNT_ID")return Number(F);if(typeof F==="string"&&/^true|false$/.test(F))return F==="true";if(F instanceof iu)return D[u];if(F instanceof pu)return!!D[u];if(F instanceof lu)return Number(D[u]);return F}};function KB(){return typeof Bun!=="undefined"?Bun.env:MB.env}var R=new Proxy(KB(),ZB);var W6={name:R.APP_NAME??"Stacks",description:"Stacks is a full-stack framework for building modern web applications.",env:R.APP_ENV??"local",url:R.APP_URL??"stacks.localhost",redirectUrls:["stacksjs.com"],debug:R.DEBUG??!1,key:R.APP_KEY,maintenanceMode:R.APP_MAINTENANCE??!1,docMode:!1,timezone:"America/Los_Angeles",locale:"en",fallbackLocale:"en",cipher:"aes-256-cbc"};var z6={driver:"dynamodb",prefix:"stacks",ttl:3600,drivers:{dynamodb:{key:R.AWS_ACCESS_KEY_ID||"",secret:R.AWS_SECRET_ACCESS_KEY||"",region:R.AWS_DEFAULT_REGION||"us-east-1",table:"cache",endpoint:""},memcached:{persistent_id:"",sasl:["",""],options:{},servers:[{host:"127.0.0.1",port:11211,weight:100}]},redis:{connection:"cache",host:"127.0.0.1",port:6379,password:"",username:"stacks"}}};var A6={name:"My Custom CLI",command:"custom-cli",description:"This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",deploy:!0};var z1={firewall:{enabled:!0,countryCodes:["RU","IR"],ipAddresses:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0,queryString:[],httpHeaders:[]}};var q6={sites:{root:"stacksjs.org",path:"dist",modals:{domain:"modals.stacksjs.org",path:"dist"},stepper:{domain:"stepper.stacksjs.org",path:"dist"},notification:{domain:"notification.stacksjs.org",path:"dist"},docs:{domain:"docs.stacksjs.org",path:"dist"},tlsx:{domain:"tlsx.stacksjs.org",path:"dist"},dtsx:{domain:"dtsx.stacksjs.org",path:"dist"},spreadsheet:{domain:"spreadsheet.stacksjs.org",path:"dist"}},infrastructure:{type:"serverless",driver:"aws",firewall:z1.firewall,environments:["production","staging","development"],storage:{},api:{prefix:R.API_PREFIX||"api",description:"My awesome Stacks API",deploy:!0,memorySize:512,prewarm:10,timeout:30},cdn:{compress:!0,allowedMethods:"ALL",cachedMethods:"GET_HEAD",originShieldRegion:"us-east-1",minTtl:0,defaultTtl:86400,maxTtl:31536000,cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:1}},fileSystem:!0}};var G6={default:R.DB_CONNECTION||"sqlite",connections:{sqlite:{database:R.DB_DATABASE||"database/stacks.sqlite",prefix:""},dynamodb:{key:R.AWS_ACCESS_KEY_ID||"",secret:R.AWS_SECRET_ACCESS_KEY||"",region:R.AWS_DEFAULT_REGION||"us-east-1",prefix:R.DB_DATABASE||"stacks",endpoint:"http://localhost",port:R.DB_PORT||8000},mysql:{name:R.DB_DATABASE||"stacks",host:R.DB_HOST||"127.0.0.1",port:R.DB_PORT||3306,username:R.DB_USERNAME||"root",password:R.DB_PASSWORD||"",prefix:""},postgres:{name:R.DB_DATABASE||"stacks",host:R.DB_HOST||"127.0.0.1",port:R.DB_PORT||3306,username:R.DB_USERNAME||"",password:R.DB_PASSWORD||"",prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"};var H6={a:[{name:R.APP_URL||"",address:"10.0.0.1",ttl:300},{name:"www",address:"@",ttl:300}],aaaa:[],cname:[],mx:[],txt:[],nameservers:[]};var U6={from:{name:R.MAIL_FROM_NAME||"Stacks",address:R.MAIL_FROM_ADDRESS||"no-reply@stacksjs.org"},mailboxes:["chris@stacksjs.org","blake@stacksjs.org","glenn@stacksjs.org"],url:R.APP_URL||"http://localhost:3000",charset:"UTF-8",server:{scan:!0}};var O6={messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}};var V6={hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:`Write a SHORT, IMPERATIVE tense description of the change:
174
+ `,body:`Provide a LONGER description of the change (optional). Use "|" to break new line:
175
+ `,breaking:`List any BREAKING CHANGES (optional). Use "|" to break new line:
176
+ `,footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:`List any ISSUES by this change. E.g.: #31, #34:
177
+ `,confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]};var T6={driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,threads:1,time:1}};var L6={name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",releaseable:!0,vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}};var h6={logsPath:S0("logs/stacks.log"),deploymentsPath:S0("logs/deployments.log")};var N6={default:"email"};var I6={driver:"stripe",stripe:{publishableKey:R.STRIPE_PUBLISHABLE_KEY||"",secretKey:R.STRIPE_SECRET_KEY||""}};var y6={frontend:R.PORT??3000,backend:R.PORT_BACKEND??3001,admin:R.PORT_ADMIN??3002,library:R.PORT_LIBRARY??3003,desktop:R.PORT_DESKTOP??3004,email:R.PORT_EMAIL??3005,docs:R.PORT_DOCS??3006,inspect:R.PORT_INSPECT??3007,api:R.PORT_API??3008,systemTray:R.PORT_SYSTEM_TRAY??3009,database:3010};var S6={default:"sync",connections:{sync:{driver:"sync"},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}};var g6={plans:[{productName:"Stacks Hobby",description:"All the Stacks features.",pricing:[{key:"stacks_hobby_early_monthly",price:1900,interval:"month",currency:"usd"},{key:"stacks_hobby_launch_monthly",price:2900,interval:"month",currency:"usd"},{key:"stacks_hobby_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_hobby_yearly",price:37900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Pro",description:"All the Stacks features, including being able to invite team members.",pricing:[{key:"stacks_pro_early_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_pro_monthly",price:5900,interval:"month",currency:"usd"},{key:"stacks_pro_yearly",price:57900,interval:"year",currency:"usd"},{key:"stacks_pro_early_yearly",price:39000,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Lifetime",description:"One-time lifetime access to all Stacks features.",pricing:[{key:"stacks_hobby_early_lifetime",price:17900,currency:"usd"},{key:"stacks_hobby_launch_lifetime",price:27900,currency:"usd"},{key:"stacks_hobby_lifetime",price:47900,currency:"usd"},{key:"stacks_pro_early_lifetime",price:27900,currency:"usd"},{key:"stacks_pro_launch_lifetime",price:37900,currency:"usd"},{key:"stacks_pro_lifetime",price:74900,currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}}],webhook:{endpoint:"your-webhook-endpoint",secret:"your-webhook-secret"},currencies:["usd"],coupons:[],products:[{name:"Stacks Hobby",description:"All the Stacks features.",images:["image-url"]},{name:"Stacks Pro",description:"All the Stacks features, including team invites.",images:["image-url"]},{name:"Stacks Lifetime",description:"Lifetime access to Stacks features.",images:["image-url"]}]};var j6={driver:"opensearch"};var R6={aws:{accountId:R.AWS_ACCOUNT_ID||"",appId:R.AWS_ACCESS_KEY_ID||"",apiKey:R.AWS_SECRET_ACCESS_KEY||"",region:R.AWS_DEFAULT_REGION||"us-east-1"},hetzner:{appId:"",apiKey:""},digitalOcean:{appId:"",apiKey:""},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},lemonSqueezy:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}};var P6={driver:"s3"};var k6={name:"Stacks",members:{chris:"chris@stacksjs.org",blake:"blake@stacksjs.org",zoltan:"zoltan@stacksjs.org",freddy:"freddy@stacksjs.org",glenn:"glenn@stacksjs.org",dorell:"dorell@stacksjs.org",avery:"avery@stacksjs.org",adelino:"adelino@stacksjs.org",germaine:"germaine@stacksjs.org",harley:"harley@stacksjs.org",michael:"michael@stacksjs.org"}};var b6={shortcuts:[["btn","inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}},theme:{colors:{veryCool:"#0000ff",brand:{primary:"hsl(var(--hue, 217) 78% 51%)"}}}};var XB={ai:n2,analytics:d2,app:W6,cache:z6,cli:A6,cloud:q6,database:G6,dns:H6,email:U6,errors:O6,git:V6,hashing:T6,library:L6,logging:h6,notification:N6,queue:S6,payment:I6,ports:y6,saas:g6,searchEngine:j6,security:z1,services:R6,storage:P6,team:k6,ui:b6},r8=XB;async function c6(D){if(!D?.port)D={port:3000};return console.log("Creating local tunnel",D.port),"localTunnel"}async function Hu(D){return await c6({port:D})}async function QB({domain:D=wD.app.url||"stacks",type:u="frontend",localhost:F=!1,https:C=void 0,network:E=void 0}={}){let w=D.replace(/\.[^.]+$/,".localhost");switch(u){case"frontend":if(E)return await Hu(wD.ports?.frontend||3000);if(F)return`http://localhost:${wD.ports?.frontend}`;break;case"backend":if(E)return await Hu(wD.ports?.backend||3001);if(F)return`http://localhost:${wD.ports?.backend}`;w=`api.${w}`;break;case"admin":if(E)return await Hu(wD.ports?.admin||3002);if(F)return`http://localhost:${wD.ports?.admin}`;w=`admin.${w}`;break;case"library":if(E)return await Hu(wD.ports?.library||3003);if(F)return`http://localhost:${wD.ports?.library}`;w=`libs.${w}`;break;case"email":if(E)return await Hu(wD.ports?.email||3005);if(F)return`http://localhost:${wD.ports?.email}`;w=`email.${w}`;break;case"desktop":if(E)return await Hu(wD.ports?.desktop||3004);if(F)return`http://localhost:${wD.ports?.desktop}`;w=`desktop.${w}`;break;case"docs":if(E)return await Hu(wD.ports?.docs||3006);if(F)return`http://localhost:${wD.ports?.docs}`;w=`docs.${w}`;break;case"inspect":if(E)return await Hu(wD.ports?.inspect||3007);if(F)return`http://localhost:${wD.ports?.inspect}`;w=`inspect.${w}`;break;default:if(F)return`http://localhost:${wD.ports?.frontend}`}if(C)return`https://${w}`;return`http://${w}`}function WB(D){return D}function zB(D){return D}function AB(D){return D}function qB(D){return D}function GB(D){return D}function HB(D){return D}function UB(D){return D}function OB(D){return D}function VB(D){return D}function TB(D){return D}function LB(D){return D}function hB(D){return D}function NB(D){return D}function IB(D){return D}function yB(D){return D}function SB(D){return D}function gB(D){return D}function jB(D){return D}function RB(D){return D}function PB(D){return D}function kB(D){return D}function bB(D){return D}function cB(D){return D}function mB(D){return D}function _B(D){return D}function vB(D){return D}function fB(D){return D}var t={...d1,...r8},xB=t.ai,nB=t.analytics,ju=t.app,dB=t.cache,rB=t.cloud,iB=t.cli,lB=t.database,pB=t.dns,tB=t.docs,aB=t.email,sB=t.errors,oB=t.git,eB=t.hashing,DY=t.library,uY=t.logging,FY=t.notification,CY=t.payment,$Y=t.ports,EY=t.queue,wY=t.security,BY=t.saas,YY=t.searchEngine,JY=t.services,MY=t.storage,ZY=t.team,KY=t.ui;function XY(){if(ju.env==="local")return"dev";if(ju.env==="development")return"dev";if(ju.env==="staging")return"stage";if(ju.env==="production")return"prod";if(!ju.env)throw new Error("Couldn't determine app environment");return ju.env}class i8{static isTestEnvironment=!1;static shouldExitProcess=!0;static handle(D,u){if(this.shouldExitProcess=u?.shouldExit!==!1,u?.silent!==!0)this.writeErrorToConsole(D);let F;if(u?.message)F=u.message;else if(D instanceof Error)F=D.message;else if(typeof D==="string")F=D;else F=JSON.stringify(D);let C=new Error(F);if(D instanceof Error)Object.assign(C,D);return this.writeErrorToFile(C).catch((E)=>console.error(E)),C}static handleError(D,u){return this.handle(D,u),D}static async writeErrorToFile(D){if(!(D instanceof Error)){console.error("Error is not an instance of Error:",D);return}let u=`[${new Date().toISOString()}] ${D.name}: ${D.message}
178
+ `,F=n1("stacks.log")??n1("errors.log");try{await v6(_2(F),{recursive:!0}),await _6(F,u)}catch(C){console.error("Failed to write to error file:",C)}}static writeErrorToConsole(D){console.error(D);let u=typeof D==="string"?D:D instanceof Error?D.message:JSON.stringify(D);if(u.includes("bunx --bun cdk destroy")||u===`Failed to execute command: ${m6("bunx --bun eslint . --fix")}`||u===`Failed to execute command: ${m6("bun storage/framework/core/actions/src/lint/fix.ts")}`){if(!this.isTestEnvironment)console.log("No need to worry. The edge function is currently being destroyed. Please run `buddy undeploy` shortly again, and continue doing so until it succeeds running."),console.log("Hoping to see you back soon!")}if(this.shouldExitProcess)AY.exit(1)}}function f6(D,u){let F;if(a2(D))F=D;else if(D instanceof Error)F=D.message;else if(u instanceof Error)F=u.message;else F=String(D);return Lu(`ERROR: ${qY(F)}`),i8.handle(D,u)}async function Lu(D,u){let F=`[${new Date().toISOString()}] ${D}
179
+ `;try{let C=u?.logFile??wD.logging.logsPath??"storage/logs/stacks.log";try{await WY(C)}catch{await v6(zY(C),{recursive:!0})}await _6(C,F)}catch(C){console.error("Failed to write to log file:",C)}}var GY={withStackTrace:!1},d6=(D,u,F=GY)=>{let C=u.isOk()?{type:"Ok",value:u.value}:{type:"Err",value:u.error},E=F.withStackTrace?new Error().stack:void 0;return{data:C,message:D,stack:E}};function tu(D,u,F,C){function E(w){return w instanceof F?w:new F(function($){$(w)})}return new(F||(F=Promise))(function(w,$){function M(X){try{Q(C.next(X))}catch(A){$(A)}}function Z(X){try{Q(C.throw(X))}catch(A){$(A)}}function Q(X){X.done?w(X.value):E(X.value).then(M,Z)}Q((C=C.apply(D,u||[])).next())})}function x6(D){var u=typeof Symbol==="function"&&Symbol.iterator,F=u&&D[u],C=0;if(F)return F.call(D);if(D&&typeof D.length==="number")return{next:function(){if(D&&C>=D.length)D=void 0;return{value:D&&D[C++],done:!D}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zu(D){return this instanceof Zu?(this.v=D,this):new Zu(D)}function n6(D,u,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C=F.apply(D,u||[]),E,w=[];return E=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),M("next"),M("throw"),M("return",$),E[Symbol.asyncIterator]=function(){return this},E;function $(H){return function(W){return Promise.resolve(W).then(H,A)}}function M(H,W){if(C[H]){if(E[H]=function(m){return new Promise(function(n,r){w.push([H,m,n,r])>1||Z(H,m)})},W)E[H]=W(E[H])}}function Z(H,W){try{Q(C[H](W))}catch(m){U(w[0][3],m)}}function Q(H){H.value instanceof Zu?Promise.resolve(H.value.v).then(X,A):U(w[0][2],H)}function X(H){Z("next",H)}function A(H){Z("throw",H)}function U(H,W){if(H(W),w.shift(),w.length)Z(w[0][0],w[0][1])}}function HY(D){var u,F;return u={},C("next"),C("throw",function(E){throw E}),C("return"),u[Symbol.iterator]=function(){return this},u;function C(E,w){u[E]=D[E]?function($){return(F=!F)?{value:Zu(D[E]($)),done:!1}:w?w($):$}:w}}function UY(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=D[Symbol.asyncIterator],F;return u?u.call(D):(D=typeof x6==="function"?x6(D):D[Symbol.iterator](),F={},C("next"),C("throw"),C("return"),F[Symbol.asyncIterator]=function(){return this},F);function C(w){F[w]=D[w]&&function($){return new Promise(function(M,Z){$=D[w]($),E(M,Z,$.done,$.value)})}}function E(w,$,M,Z){Promise.resolve(Z).then(function(Q){w({value:Q,done:M})},$)}}class MD{constructor(D){this._promise=D}static fromSafePromise(D){let u=D.then((F)=>new Cu(F));return new MD(u)}static fromPromise(D,u){let F=D.then((C)=>new Cu(C)).catch((C)=>new tD(u(C)));return new MD(F)}static fromThrowable(D,u){return(...F)=>{return new MD((()=>tu(this,void 0,void 0,function*(){try{return new Cu(yield D(...F))}catch(C){return new tD(u?u(C):C)}}))())}}static combine(D){return TY(D)}static combineWithAllErrors(D){return LY(D)}map(D){return new MD(this._promise.then((u)=>tu(this,void 0,void 0,function*(){if(u.isErr())return new tD(u.error);return new Cu(yield D(u.value))})))}andThrough(D){return new MD(this._promise.then((u)=>tu(this,void 0,void 0,function*(){if(u.isErr())return new tD(u.error);let F=yield D(u.value);if(F.isErr())return new tD(F.error);return new Cu(u.value)})))}andTee(D){return new MD(this._promise.then((u)=>tu(this,void 0,void 0,function*(){if(u.isErr())return new tD(u.error);try{yield D(u.value)}catch(F){}return new Cu(u.value)})))}mapErr(D){return new MD(this._promise.then((u)=>tu(this,void 0,void 0,function*(){if(u.isOk())return new Cu(u.value);return new tD(yield D(u.error))})))}andThen(D){return new MD(this._promise.then((u)=>{if(u.isErr())return new tD(u.error);let F=D(u.value);return F instanceof MD?F._promise:F}))}orElse(D){return new MD(this._promise.then((u)=>tu(this,void 0,void 0,function*(){if(u.isErr())return D(u.error);return new Cu(u.value)})))}match(D,u){return this._promise.then((F)=>F.match(D,u))}unwrapOr(D){return this._promise.then((u)=>u.unwrapOr(D))}safeUnwrap(){return n6(this,arguments,function*D(){return yield Zu(yield Zu(yield*HY(UY(yield Zu(this._promise.then((u)=>u.safeUnwrap()))))))})}then(D,u){return this._promise.then(D,u)}[Symbol.asyncIterator](){return n6(this,arguments,function*D(){let u=yield Zu(this._promise);if(u.isErr())yield yield Zu(q0(u.error));return yield Zu(u.value)})}}var q0=(D)=>new MD(Promise.resolve(new tD(D))),OY=MD.fromPromise,VY=MD.fromSafePromise,Xq=MD.fromThrowable,r6=(D)=>{let u=hu([]);for(let F of D)if(F.isErr()){u=Ku(F.error);break}else u.map((C)=>C.push(F.value));return u},TY=(D)=>MD.fromSafePromise(Promise.all(D)).andThen(r6),i6=(D)=>{let u=hu([]);for(let F of D)if(F.isErr()&&u.isErr())u.error.push(F.error);else if(F.isErr()&&u.isOk())u=Ku([F.error]);else if(F.isOk()&&u.isOk())u.value.push(F.value);return u},LY=(D)=>MD.fromSafePromise(Promise.all(D)).andThen(i6),A1;(function(D){function u(E,w){return(...$)=>{try{let M=E(...$);return hu(M)}catch(M){return Ku(w?w(M):M)}}}D.fromThrowable=u;function F(E){return r6(E)}D.combine=F;function C(E){return i6(E)}D.combineWithAllErrors=C})(A1||(A1={}));var hu=(D)=>new Cu(D);function Ku(D){return new tD(D)}class Cu{constructor(D){this.value=D}isOk(){return!0}isErr(){return!this.isOk()}map(D){return hu(D(this.value))}mapErr(D){return hu(this.value)}andThen(D){return D(this.value)}andThrough(D){return D(this.value).map((u)=>this.value)}andTee(D){try{D(this.value)}catch(u){}return hu(this.value)}orElse(D){return hu(this.value)}asyncAndThen(D){return D(this.value)}asyncAndThrough(D){return D(this.value).map(()=>this.value)}asyncMap(D){return MD.fromSafePromise(D(this.value))}unwrapOr(D){return this.value}match(D,u){return D(this.value)}safeUnwrap(){let D=this.value;return function*(){return D}()}_unsafeUnwrap(D){return this.value}_unsafeUnwrapErr(D){throw d6("Called `_unsafeUnwrapErr` on an Ok",this,D)}*[Symbol.iterator](){return this.value}}class tD{constructor(D){this.error=D}isOk(){return!1}isErr(){return!this.isOk()}map(D){return Ku(this.error)}mapErr(D){return Ku(D(this.error))}andThrough(D){return Ku(this.error)}andTee(D){return Ku(this.error)}andThen(D){return Ku(this.error)}orElse(D){return D(this.error)}asyncAndThen(D){return q0(this.error)}asyncAndThrough(D){return q0(this.error)}asyncMap(D){return q0(this.error)}unwrapOr(D){return D}match(D,u){return u(this.error)}safeUnwrap(){let D=this.error;return function*(){throw yield Ku(D),new Error("Do not use this generator out of `safeTry`")}()}_unsafeUnwrap(D){throw d6("Called `_unsafeUnwrap` on an Err",this,D)}_unsafeUnwrapErr(D){return this.error}*[Symbol.iterator](){let D=this;return yield D,D}}var hY=A1.fromThrowable;var HD={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},a8={silent:{level:-1},fatal:{level:HD.fatal},error:{level:HD.error},warn:{level:HD.warn},log:{level:HD.log},info:{level:HD.info},success:{level:HD.success},fail:{level:HD.fail},ready:{level:HD.info},start:{level:HD.info},box:{level:HD.info},debug:{level:HD.debug},trace:{level:HD.trace},verbose:{level:HD.verbose}};function l8(D){if(D===null||typeof D!=="object")return!1;let u=Object.getPrototypeOf(D);if(u!==null&&u!==Object.prototype&&Object.getPrototypeOf(u)!==null)return!1;if(Symbol.iterator in D)return!1;if(Symbol.toStringTag in D)return Object.prototype.toString.call(D)==="[object Module]";return!0}function s8(D,u,F=".",C){if(!l8(u))return s8(D,{},F,C);let E=Object.assign({},u);for(let w in D){if(w==="__proto__"||w==="constructor")continue;let $=D[w];if($===null||$===void 0)continue;if(C&&C(E,w,$,F))continue;if(Array.isArray($)&&Array.isArray(E[w]))E[w]=[...$,...E[w]];else if(l8($)&&l8(E[w]))E[w]=s8($,E[w],(F?`${F}.`:"")+w.toString(),C);else E[w]=$}return E}function NY(D){return(...u)=>u.reduce((F,C)=>s8(F,C,"",D),{})}var IY=NY();function yY(D){return Object.prototype.toString.call(D)==="[object Object]"}function SY(D){if(!yY(D))return!1;if(!D.message&&!D.args)return!1;if(D.stack)return!1;return!0}var p8=!1,l6=[];class QD{options;_lastLog;_mockFn;constructor(D={}){let u=D.types||a8;this.options=IY({...D,defaults:{...D.defaults},level:t8(D.level,u),reporters:[...D.reporters||[]]},{types:a8,throttle:1000,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let F in u){let C={type:F,...this.options.defaults,...u[F]};this[F]=this._wrapLogFn(C),this[F].raw=this._wrapLogFn(C,!0)}if(this.options.mockFn)this.mockTypes();this._lastLog={}}get level(){return this.options.level}set level(D){this.options.level=t8(D,this.options.types,this.options.level)}prompt(D,u){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(D,u)}create(D){let u=new QD({...this.options,...D});if(this._mockFn)u.mockTypes(this._mockFn);return u}withDefaults(D){return this.create({...this.options,defaults:{...this.options.defaults,...D}})}withTag(D){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+D:D})}addReporter(D){return this.options.reporters.push(D),this}removeReporter(D){if(D){let u=this.options.reporters.indexOf(D);if(u!==-1)return this.options.reporters.splice(u,1)}else this.options.reporters.splice(0);return this}setReporters(D){return this.options.reporters=Array.isArray(D)?D:[D],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let D in this.options.types){if(!console["__"+D])console["__"+D]=console[D];console[D]=this[D].raw}}restoreConsole(){for(let D in this.options.types)if(console["__"+D])console[D]=console["__"+D],delete console["__"+D]}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(D,u){if(!D)return;if(!D.__write)D.__write=D.write;D.write=(F)=>{this[u].raw(String(F).trim())}}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(D){if(!D)return;if(D.__write)D.write=D.__write,delete D.__write}pauseLogs(){p8=!0}resumeLogs(){p8=!1;let D=l6.splice(0);for(let u of D)u[0]._logFn(u[1],u[2])}mockTypes(D){let u=D||this.options.mockFn;if(this._mockFn=u,typeof u!=="function")return;for(let F in this.options.types)this[F]=u(F,this.options.types[F])||this[F],this[F].raw=this[F]}_wrapLogFn(D,u){return(...F)=>{if(p8){l6.push([this,D,F,u]);return}return this._logFn(D,F,u)}}_logFn(D,u,F){if((D.level||0)>this.level)return!1;let C={date:new Date,args:[],...D,level:t8(D.level,this.options.types)};if(!F&&u.length===1&&SY(u[0]))Object.assign(C,u[0]);else C.args=[...u];if(C.message)C.args.unshift(C.message),delete C.message;if(C.additional){if(!Array.isArray(C.additional))C.additional=C.additional.split(`
180
+ `);C.args.push(`
181
+ `+C.additional.join(`
182
+ `)),delete C.additional}C.type=typeof C.type==="string"?C.type.toLowerCase():"log",C.tag=typeof C.tag==="string"?C.tag:"";let E=($=!1)=>{let M=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&M>0){let Z=[...this._lastLog.object.args];if(M>1)Z.push(`(repeated ${M} times)`);this._log({...this._lastLog.object,args:Z}),this._lastLog.count=1}if($)this._lastLog.object=C,this._log(C)};clearTimeout(this._lastLog.timeout);let w=this._lastLog.time&&C.date?C.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=C.date,w<this.options.throttle)try{let $=JSON.stringify([C.type,C.tag,C.args]),M=this._lastLog.serialized===$;if(this._lastLog.serialized=$,M){if(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin){this._lastLog.timeout=setTimeout(E,this.options.throttle);return}}}catch{}E(!0)}_log(D){for(let u of this.options.reporters)u.log(D,{options:this.options})}}function t8(D,u={},F=3){if(D===void 0)return F;if(typeof D==="number")return D;if(u[D]&&u[D].level!==void 0)return u[D].level;return F}QD.prototype.add=QD.prototype.addReporter;QD.prototype.remove=QD.prototype.removeReporter;QD.prototype.clear=QD.prototype.removeReporter;QD.prototype.withScope=QD.prototype.withTag;QD.prototype.mock=QD.prototype.mockTypes;QD.prototype.pause=QD.prototype.pauseLogs;QD.prototype.resume=QD.prototype.resumeLogs;function p6(D={}){return new QD(D)}import{formatWithOptions as t6}from"util";import{sep as gY}from"path";function e8(D){let u=process.cwd()+gY;return D.split(`
183
+ `).splice(1).map((C)=>C.trim().replace("file://","").replace(u,""))}function jY(D,u){return(u.__write||u.write).call(u,D)}var o8=(D)=>D?`[${D}]`:"";class q1{formatStack(D,u){let F=" ".repeat((u?.errorLevel||0)+1);return F+e8(D).join(`
184
+ ${F}`)}formatError(D,u){let F=D.message??t6(u,D),C=D.stack?this.formatStack(D.stack,u):"",E=u?.errorLevel||0,w=E>0?`${" ".repeat(E)}[cause]: `:"",$=D.cause?`
185
+
186
+ `+this.formatError(D.cause,{...u,errorLevel:E+1}):"";return w+F+`
187
+ `+C+$}formatArgs(D,u){let F=D.map((C)=>{if(C&&typeof C.stack==="string")return this.formatError(C,u);return C});return t6(u,...F)}formatDate(D,u){return u.date?D.toLocaleTimeString():""}filterAndJoin(D){return D.filter(Boolean).join(" ")}formatLogObj(D,u){let F=this.formatArgs(D.args,u);if(D.type==="box")return`
188
+ `+[o8(D.tag),D.title&&D.title,...F.split(`
189
+ `)].filter(Boolean).map((C)=>" > "+C).join(`
190
+ `)+`
191
+ `;return this.filterAndJoin([o8(D.type),o8(D.tag),F])}log(D,u){let F=this.formatLogObj(D,{columns:u.options.stdout.columns||0,...u.options.formatOptions});return jY(F+`
192
+ `,D.level<2?u.options.stderr||process.stderr:u.options.stdout||process.stdout)}}import IC from"process";import*as G1 from"tty";var{env:Nu={},argv:o6=[],platform:RY=""}=typeof process==="undefined"?{}:process,PY="NO_COLOR"in Nu||o6.includes("--no-color"),kY="FORCE_COLOR"in Nu||o6.includes("--color"),bY=RY==="win32",e6=Nu.TERM==="dumb",cY=G1&&G1.isatty&&G1.isatty(1)&&Nu.TERM&&!e6,mY="CI"in Nu&&(("GITHUB_ACTIONS"in Nu)||("GITLAB_CI"in Nu)||("CIRCLECI"in Nu)),_Y=!PY&&(kY||bY&&!e6||cY||mY);function DC(D,u,F,C,E=u.slice(0,Math.max(0,D))+C,w=u.slice(Math.max(0,D+F.length)),$=w.indexOf(F)){return E+($<0?w:DC($,w,F,C))}function vY(D,u,F,C,E){return D<0?F+u+C:F+DC(D,u,C,E)+C}function fY(D,u,F=D,C=D.length+1){return(E)=>E||!(E===""||E===void 0)?vY((""+E).indexOf(u,C),E,D,u,F):""}function f(D,u,F){return fY(`\x1B[${D}m`,`\x1B[${u}m`,F)}var a6={reset:f(0,0),bold:f(1,22,"\x1B[22m\x1B[1m"),dim:f(2,22,"\x1B[22m\x1B[2m"),italic:f(3,23),underline:f(4,24),inverse:f(7,27),hidden:f(8,28),strikethrough:f(9,29),black:f(30,39),red:f(31,39),green:f(32,39),yellow:f(33,39),blue:f(34,39),magenta:f(35,39),cyan:f(36,39),white:f(37,39),gray:f(90,39),bgBlack:f(40,49),bgRed:f(41,49),bgGreen:f(42,49),bgYellow:f(43,49),bgBlue:f(44,49),bgMagenta:f(45,49),bgCyan:f(46,49),bgWhite:f(47,49),blackBright:f(90,39),redBright:f(91,39),greenBright:f(92,39),yellowBright:f(93,39),blueBright:f(94,39),magentaBright:f(95,39),cyanBright:f(96,39),whiteBright:f(97,39),bgBlackBright:f(100,49),bgRedBright:f(101,49),bgGreenBright:f(102,49),bgYellowBright:f(103,49),bgBlueBright:f(104,49),bgMagentaBright:f(105,49),bgCyanBright:f(106,49),bgWhiteBright:f(107,49)};function xY(D=_Y){return D?a6:Object.fromEntries(Object.keys(a6).map((u)=>[u,String]))}var gD=xY();function nY(D,u="reset"){return gD[D]||gD[u]}var dY=[String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`,String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");function Ru(D){return D.replace(new RegExp(dY,"g"),"")}var s6={solid:{tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502"},double:{tl:"\u2554",tr:"\u2557",bl:"\u255A",br:"\u255D",h:"\u2550",v:"\u2551"},doubleSingle:{tl:"\u2553",tr:"\u2556",bl:"\u2559",br:"\u255C",h:"\u2500",v:"\u2551"},doubleSingleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2551"},singleThick:{tl:"\u250F",tr:"\u2513",bl:"\u2517",br:"\u251B",h:"\u2501",v:"\u2503"},singleDouble:{tl:"\u2552",tr:"\u2555",bl:"\u2558",br:"\u255B",h:"\u2550",v:"\u2502"},singleDoubleRounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2550",v:"\u2502"},rounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502"}},rY={borderColor:"white",borderStyle:"rounded",valign:"center",padding:2,marginLeft:1,marginTop:1,marginBottom:1};function uC(D,u={}){let F={...u,style:{...rY,...u.style}},C=D.split(`
193
+ `),E=[],w=nY(F.style.borderColor),$={...typeof F.style.borderStyle==="string"?s6[F.style.borderStyle]||s6.solid:F.style.borderStyle};if(w)for(let H in $)$[H]=w($[H]);let M=F.style.padding%2===0?F.style.padding:F.style.padding+1,Z=C.length+M,Q=Math.max(...C.map((H)=>Ru(H).length))+M,X=Q+M,A=F.style.marginLeft>0?" ".repeat(F.style.marginLeft):"";if(F.style.marginTop>0)E.push("".repeat(F.style.marginTop));if(F.title){let H=w?w(F.title):F.title,W=$.h.repeat(Math.floor((Q-Ru(F.title).length)/2)),m=$.h.repeat(Q-Ru(F.title).length-Ru(W).length+M);E.push(`${A}${$.tl}${W}${H}${m}${$.tr}`)}else E.push(`${A}${$.tl}${$.h.repeat(X)}${$.tr}`);let U=F.style.valign==="center"?Math.floor((Z-C.length)/2):F.style.valign==="top"?Z-C.length-M:Z-C.length;for(let H=0;H<Z;H++)if(H<U||H>=U+C.length)E.push(`${A}${$.v}${" ".repeat(X)}${$.v}`);else{let W=C[H-U],m=" ".repeat(M),n=" ".repeat(Q-Ru(W).length);E.push(`${A}${$.v}${m}${W}${n}${$.v}`)}if(E.push(`${A}${$.bl}${$.h.repeat(X)}${$.br}`),F.style.marginBottom>0)E.push("".repeat(F.style.marginBottom));return E.join(`
194
+ `)}var h1=Object.create(null),U0=(D)=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(D?h1:globalThis),Iu=new Proxy(h1,{get(D,u){return U0()[u]??h1[u]},has(D,u){let F=U0();return u in F||u in h1},set(D,u,F){let C=U0(!0);return C[u]=F,!0},deleteProperty(D,u){if(!u)return!1;let F=U0(!0);return delete F[u],!0},ownKeys(){let D=U0(!0);return Object.keys(D)}}),kJ=typeof process<"u"&&process.env&&"development"||"",bJ=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function cJ(){if(globalThis.process?.env)for(let D of bJ){let u=D[1]||D[0];if(globalThis.process?.env[u])return{name:D[0].toLowerCase(),...D[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var jC=cJ();jC.name;function Pu(D){return D?D!=="false":!1}var mJ=globalThis.process?.platform||"",Y2=Pu(Iu.CI)||jC.ci!==!1,RC=Pu(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),_J=Pu(Iu.DEBUG),J2=kJ==="test"||Pu(Iu.TEST);Pu(Iu.MINIMAL);var vJ=/^win/i.test(mJ);!Pu(Iu.NO_COLOR)&&(Pu(Iu.FORCE_COLOR)||(RC||vJ)&&Iu.TERM);var fJ=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(fJ?.split(".")[0]);var xJ=globalThis.process||Object.create(null),yC={versions:{}};new Proxy(xJ,{get(D,u){if(u==="env")return Iu;if(u in D)return D[u];if(u in yC)return yC[u]}});var nJ=globalThis.process?.release?.name==="node",dJ=!!globalThis.Bun||!!globalThis.process?.versions?.bun,rJ=!!globalThis.Deno,iJ=!!globalThis.fastly,lJ=!!globalThis.Netlify,pJ=!!globalThis.EdgeRuntime,tJ=globalThis.navigator?.userAgent==="Cloudflare-Workers",aJ=[[lJ,"netlify"],[pJ,"edge-light"],[tJ,"workerd"],[iJ,"fastly"],[rJ,"deno"],[dJ,"bun"],[nJ,"node"]];function sJ(){let D=aJ.find((u)=>u[0]);if(D)return{name:D[1]}}var oJ=sJ();oJ?.name;function eJ({onlyFirst:D=!1}={}){let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}var DM=eJ();function uM(D){if(typeof D!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(DM,"")}function FM(D){return D===161||D===164||D===167||D===168||D===170||D===173||D===174||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||D===198||D===208||D===215||D===216||D>=222&&D<=225||D===230||D>=232&&D<=234||D===236||D===237||D===240||D===242||D===243||D>=247&&D<=250||D===252||D===254||D===257||D===273||D===275||D===283||D===294||D===295||D===299||D>=305&&D<=307||D===312||D>=319&&D<=322||D===324||D>=328&&D<=331||D===333||D===338||D===339||D===358||D===359||D===363||D===462||D===464||D===466||D===468||D===470||D===472||D===474||D===476||D===593||D===609||D===708||D===711||D>=713&&D<=715||D===717||D===720||D>=728&&D<=731||D===733||D===735||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||D===1025||D>=1040&&D<=1103||D===1105||D===8208||D>=8211&&D<=8214||D===8216||D===8217||D===8220||D===8221||D>=8224&&D<=8226||D>=8228&&D<=8231||D===8240||D===8242||D===8243||D===8245||D===8251||D===8254||D===8308||D===8319||D>=8321&&D<=8324||D===8364||D===8451||D===8453||D===8457||D===8467||D===8470||D===8481||D===8482||D===8486||D===8491||D===8531||D===8532||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||D===8585||D>=8592&&D<=8601||D===8632||D===8633||D===8658||D===8660||D===8679||D===8704||D===8706||D===8707||D===8711||D===8712||D===8715||D===8719||D===8721||D===8725||D===8730||D>=8733&&D<=8736||D===8739||D===8741||D>=8743&&D<=8748||D===8750||D>=8756&&D<=8759||D===8764||D===8765||D===8776||D===8780||D===8786||D===8800||D===8801||D>=8804&&D<=8807||D===8810||D===8811||D===8814||D===8815||D===8834||D===8835||D===8838||D===8839||D===8853||D===8857||D===8869||D===8895||D===8978||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||D===9632||D===9633||D>=9635&&D<=9641||D===9650||D===9651||D===9654||D===9655||D===9660||D===9661||D===9664||D===9665||D>=9670&&D<=9672||D===9675||D>=9678&&D<=9681||D>=9698&&D<=9701||D===9711||D===9733||D===9734||D===9737||D===9742||D===9743||D===9756||D===9758||D===9792||D===9794||D===9824||D===9825||D>=9827&&D<=9829||D>=9831&&D<=9834||D===9836||D===9837||D===9839||D===9886||D===9887||D===9919||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||D===9955||D===9960||D===9961||D>=9963&&D<=9969||D===9972||D>=9974&&D<=9977||D===9979||D===9980||D===9982||D===9983||D===10045||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||D===65533||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||D===127375||D===127376||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}function CM(D){return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510}function $M(D){return D>=4352&&D<=4447||D===8986||D===8987||D===9001||D===9002||D>=9193&&D<=9196||D===9200||D===9203||D===9725||D===9726||D===9748||D===9749||D>=9776&&D<=9783||D>=9800&&D<=9811||D===9855||D>=9866&&D<=9871||D===9875||D===9889||D===9898||D===9899||D===9917||D===9918||D===9924||D===9925||D===9934||D===9940||D===9962||D===9970||D===9971||D===9973||D===9978||D===9981||D===9989||D===9994||D===9995||D===10024||D===10060||D===10062||D>=10067&&D<=10069||D===10071||D>=10133&&D<=10135||D===10160||D===10175||D===11035||D===11036||D===11088||D===11093||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||D===94192||D===94193||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101631&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||D===110589||D===110590||D>=110592&&D<=110882||D===110898||D>=110928&&D<=110930||D===110933||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||D===126980||D===127183||D===127374||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D===127568||D===127569||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||D===127988||D>=127992&&D<=128062||D===128064||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||D===128378||D===128405||D===128406||D===128420||D>=128507&&D<=128591||D>=128640&&D<=128709||D===128716||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||D===128747||D===128748||D>=128756&&D<=128764||D>=128992&&D<=129003||D===129008||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129673||D>=129679&&D<=129734||D>=129742&&D<=129756||D>=129759&&D<=129769||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}function EM(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}function wM(D,{ambiguousAsWide:u=!1}={}){if(EM(D),CM(D)||$M(D)||u&&FM(D))return 2;return 1}var BM=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},YM=globalThis.Intl?.Segmenter?new Intl.Segmenter:{segment:(D)=>D.split("")},JM=/^\p{Default_Ignorable_Code_Point}$/u;function MM(D,u={}){if(typeof D!=="string"||D.length===0)return 0;let{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:C=!1}=u;if(!C)D=uM(D);if(D.length===0)return 0;let E=0,w={ambiguousAsWide:!F};for(let{segment:$}of YM.segment(D)){let M=$.codePointAt(0);if(M<=31||M>=127&&M<=159)continue;if(M>=8203&&M<=8207||M===65279)continue;if(M>=768&&M<=879||M>=6832&&M<=6911||M>=7616&&M<=7679||M>=8400&&M<=8447||M>=65056&&M<=65071)continue;if(M>=55296&&M<=57343)continue;if(M>=65024&&M<=65039)continue;if(JM.test($))continue;if(BM().test($)){E+=2;continue}E+=wM(M,w)}return E}function ZM(){let{env:D}=IC,{TERM:u,TERM_PROGRAM:F}=D;if(IC.platform!=="win32")return u!=="linux";return Boolean(D.WT_SESSION)||Boolean(D.TERMINUS_SUBLIME)||D.ConEmuTask==="{cmd::Cmder}"||F==="Terminus-Sublime"||F==="vscode"||u==="xterm-256color"||u==="alacritty"||u==="rxvt-unicode"||u==="rxvt-unicode-256color"||D.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var KM={info:"cyan",fail:"red",success:"green",ready:"green",start:"magenta"},XM={0:"red",1:"yellow"},QM=ZM(),Xu=(D,u)=>QM?D:u,SC={error:Xu("\u2716","\xD7"),fatal:Xu("\u2716","\xD7"),ready:Xu("\u2714","\u221A"),warn:Xu("\u26A0","\u203C"),info:Xu("\u2139","i"),success:Xu("\u2714","\u221A"),debug:Xu("\u2699","D"),trace:Xu("\u2192","\u2192"),fail:Xu("\u2716","\xD7"),start:Xu("\u25D0","o"),log:""};function gC(D){if(typeof Intl!=="object"||!Intl.Segmenter)return Ru(D).length;return MM(D)}class PC extends q1{formatStack(D,u){let F=" ".repeat((u?.errorLevel||0)+1);return`
195
+ ${F}`+e8(D).map((C)=>" "+C.replace(/^at +/,(E)=>gD.gray(E)).replace(/\((.+)\)/,(E,w)=>`(${gD.cyan(w)})`)).join(`
196
+ ${F}`)}formatType(D,u,F){let C=KM[D.type]||XM[D.level]||"gray";if(u)return zM(C)(gD.black(` ${D.type.toUpperCase()} `));let E=typeof SC[D.type]==="string"?SC[D.type]:D.icon||D.type;return E?WM(C)(E):""}formatLogObj(D,u){let[F,...C]=this.formatArgs(D.args,u).split(`
197
+ `);if(D.type==="box")return uC(L1(F+(C.length>0?`
198
+ `+C.join(`
199
+ `):"")),{title:D.title?L1(D.title):void 0,style:D.style});let E=this.formatDate(D.date,u),w=E&&gD.gray(E),$=D.badge??D.level<2,M=this.formatType(D,$,u),Z=D.tag?gD.gray(D.tag):"",Q,X=this.filterAndJoin([M,L1(F)]),A=this.filterAndJoin(u.columns?[Z,w]:[Z]),U=(u.columns||0)-gC(X)-gC(A)-2;if(Q=U>0&&(u.columns||0)>=80?X+" ".repeat(U)+A:(A?`${gD.gray(`[${A}]`)} `:"")+X,Q+=L1(C.length>0?`
200
+ `+C.join(`
201
+ `):""),D.type==="trace"){let H=new Error("Trace: "+D.message);Q+=this.formatStack(H.stack||"")}return $?`
202
+ `+Q+`
203
+ `:Q}}function L1(D){return D.replace(/`([^`]+)`/gm,(u,F)=>gD.cyan(F)).replace(/\s+_([^_]+)_\s+/gm,(u,F)=>` ${gD.underline(F)} `)}function WM(D="white"){return gD[D]||gD.white}function zM(D="bgWhite"){return gD[`bg${D[0].toUpperCase()}${D.slice(1)}`]||gD.bgWhite}function M2(D={}){let u=AM();if(process.env.CONSOLA_LEVEL)u=Number.parseInt(process.env.CONSOLA_LEVEL)??u;return p6({level:u,defaults:{level:u},stdout:process.stdout,stderr:process.stderr,prompt:(...C)=>Promise.resolve().then(() => (NC(),hC)).then((E)=>E.prompt(...C)),reporters:D.reporters||[D.fancy??!(Y2||J2)?new PC:new q1],...D})}function AM(){if(_J)return HD.debug;if(J2)return HD.warn;return HD.info}var qM=M2();function HM(){let D=/--verbose(?!\s*=\s*false|\s+false)(?:\s+|=true)?(?:$|\s)/,u=GM();if(D.test(u))return 4;return 3}var V0={...M2({level:HM()}),warning:(D)=>console.warn(D),dump:(...D)=>console.log(...D),dd:(...D)=>{console.log(...D),N1.exit(1)},echo:(D)=>console.log(D)};var qu={info:async(D,u)=>{if(u?.styled===!1)console.log(D);else V0.info(D);await Lu(`INFO: ${O0(D)}`)},success:async(D,u)=>{if(u?.styled===!1)console.log(D);else V0.success(D);await Lu(`SUCCESS: ${O0(D)}`)},warn:async(D,u)=>{if(u?.styled===!1)console.log(D);else V0.warn(D);await Lu(`WARN: ${O0(D)}`)},warning:async(D,u)=>{if(u?.styled===!1)console.log(D);else V0.warn(D);await Lu(`WARN: ${O0(D)}`)},error:async(D,u)=>{f6(D,u)},debug:async(...D)=>{let F=`DEBUG: ${D.map((C)=>typeof C==="object"?JSON.stringify(C,null,2):C).join(" ")}`;if(N1.env.APP_ENV==="production"||N1.env.APP_ENV==="prod")return Lu(F);V0.debug(F),await Lu(O0(F))},dump:(...D)=>D.forEach((u)=>console.log(u)),dd:(...D)=>{D.forEach((u)=>console.log(u)),N1.exit(1)},echo:(...D)=>console.log(...D)};var f4=l(h2(),1);import CK from"node-fetch";var c4="https://www.iana.org/whois?q=",m4={"whois.denic.de":"-T dn,ace","whois.nic.fr":"-V Md5.2"},N2={"br.com":"whois.centralnic.net","cn.com":"whois.centralnic.net","de.com":"whois.centralnic.net","eu.com":"whois.centralnic.net","gb.com":"whois.centralnic.net","gb.net":"whois.centralnic.net","gr.com":"whois.centralnic.net","hu.com":"whois.centralnic.net","in.net":"whois.centralnic.net","no.com":"whois.centralnic.net","qc.com":"whois.centralnic.net","ru.com":"whois.centralnic.net","sa.com":"whois.centralnic.net","se.com":"whois.centralnic.net","se.net":"whois.centralnic.net","uk.com":"whois.centralnic.net","uk.net":"whois.centralnic.net","us.com":"whois.centralnic.net","uy.com":"whois.centralnic.net","za.com":"whois.centralnic.net","jpn.com":"whois.centralnic.ne","web.com":"whois.centralnic.ne",com:"whois.verisign-grs.com","za.net":"whois.za.net",net:"whois.verisign-grs.com","eu.org":"whois.eu.org","za.org":"whois.za.org",org:"whois.pir.org","llyw.cymru":"whois.nic.llyw.cymru","gov.scot":"whois.nic.gov.scot","gov.wales":"whois.nic.gov.wales",edu:"whois.educause.edu",gov:"whois.dotgov.gov",int:"whois.iana.org","e164.arpa":"whois.ripe.net",arpa:"whois.iana.org",aero:"whois.aero",asia:"whois.nic.asia",biz:"whois.nic.biz",cat:"whois.nic.cat",coop:"whois.nic.coop",info:"whois.afilias.net",jobs:"whois.nic.jobs",mobi:"whois.afilias.net",museum:"whois.nic.museum",name:"whois.nic.name",post:"whois.dotpostregistry.net",pro:"whois.nic.pro",tel:"whois.nic.tel",travel:"whois.nic.travel",xxx:"whois.nic.xxx",ac:"whois.nic.ac",ae:"whois.aeda.net.ae",af:"whois.nic.af",ag:"whois.nic.ag",ai:"whois.nic.ai",am:"whois.amnic.net",ar:"whois.nic.ar",as:"whois.nic.as","priv.at":"whois.nic.priv.at",at:"whois.nic.at",au:"whois.auda.org.au",aw:"whois.nic.aw",ax:"whois.ax",be:"whois.dns.be",bf:"whois.registre.bf",bg:"whois.register.bg",bh:"whois.nic.bh",bi:"whois1.nic.bi",bj:"whois.nic.bj",bm:"whois.afilias-srs.net",bn:"whois.bnnic.bn",bo:"whois.nic.bo",br:"whois.registro.br",by:"whois.cctld.by",bw:"whois.nic.net.bw",bz:"whois.afilias-grs.info","co.ca":"whois.co.ca",ca:"whois.cira.ca",cc:"ccwhois.verisign-grs.com",cd:"whois.nic.cd",ch:"whois.nic.ch",ci:"whois.nic.ci",cl:"whois.nic.cl",cm:"whois.netcom.cm","edu.cn":"whois.edu.cn",cn:"whois.cnnic.cn","uk.co":"whois.uk.co",co:"whois.nic.co",cr:"whois.nic.cr",cx:"whois.nic.cx",cz:"whois.nic.cz",de:"whois.denic.de",dk:"whois.dk-hostmaster.dk",dm:"whois.dmdomains.dm",do:"whois.nic.do",dz:"whois.nic.dz",ec:"whois.nic.ec",ee:"whois.tld.ee",eu:"whois.eu",fi:"whois.fi",fj:"www.whois.fj",fm:"whois.nic.fm",fo:"whois.nic.fo",fr:"whois.nic.fr",gd:"whois.nic.gd",ge:"whois.nic.ge",gf:"whois.mediaserv.net",gg:"whois.gg",gh:"whois.nic.gh",gi:"whois2.afilias-grs.net",gl:"whois.nic.gl",gp:"whois.nic.gp",gq:"whois.dominio.gq",gs:"whois.nic.gs",gy:"whois.registry.gy",hk:"whois.hkirc.hk",hm:"whois.registry.hm",hn:"whois.nic.hn",hr:"whois.dns.hr",ht:"whois.nic.ht",hu:"whois.nic.hu",id:"whois.id",ie:"whois.weare.ie",il:"whois.isoc.org.il",im:"whois.nic.im",in:"whois.registry.in",io:"whois.nic.io",iq:"whois.cmc.iq",ir:"whois.nic.ir",is:"whois.isnic.is",it:"whois.nic.it",je:"whois.je",jp:"whois.jprs.jp",ke:"whois.kenic.or.ke",kg:"whois.kg",ki:"whois.nic.ki",kn:"whois.nic.kn",kr:"whois.kr",kw:"whois.nic.kw",ky:"whois.kyregistry.ky",kz:"whois.nic.kz",la:"whois.nic.la",lb:"whois.lbdr.org.lb",lc:"whois2.afilias-grs.net",li:"whois.nic.li",lk:"whois.nic.lk",ls:"whois.nic.ls",lt:"whois.domreg.lt",lu:"whois.dns.lu",lv:"whois.nic.lv",ly:"whois.nic.ly",ma:"whois.registre.ma",md:"whois.nic.md",me:"whois.nic.me",mg:"whois.nic.mg",mk:"whois.marnet.mk",ml:"whois.dot.ml",mm:"whois.registry.gov.mm",mn:"whois.nic.mn",mq:"whois.mediaserv.net",mr:"whois.nic.mr",ms:"whois.nic.ms",mt:"whois.nic.org.mt",mu:"whois.nic.mu",mw:"whois.nic.mw",mx:"whois.mx",my:"whois.mynic.my",mz:"whois.nic.mz",na:"whois.na-nic.com.na",nc:"whois.nc",nf:"whois.nic.nf",ng:"whois.nic.net.ng",nl:"whois.domain-registry.nl",no:"whois.norid.no",nu:"whois.iis.nu",nz:"whois.irs.net.nz",om:"whois.registry.om",pe:"kero.yachay.pe",pf:"whois.registry.pf",pk:"whois.pknic.net.pk","co.pl":"whois.co.pl",pl:"whois.dns.pl",pm:"whois.nic.pm",pr:"whois.afilias-srs.net",ps:"whois.pnina.ps",pt:"whois.dns.pt",pw:"whois.nic.pw",qa:"whois.registry.qa",re:"whois.nic.re",ro:"whois.rotld.ro",rs:"whois.rnids.rs","ac.ru":"whois.free.net","edu.ru":"whois.informika.ru","com.ru":"whois.flexireg.net","msk.ru":"whois.flexireg.net","net.ru":"whois.nic.net.ru","nov.ru":"whois.flexireg.net","org.ru":"whois.nic.net.ru","pp.ru":"whois.nic.net.ru","spb.ru":"whois.flexireg.net",ru:"whois.tcinet.ru",rw:"whois.ricta.org.rw",sa:"whois.nic.net.sa",sb:"whois.nic.net.sb",sc:"whois2.afilias-grs.net",sd:"whois.sdnic.sd",se:"whois.iis.se",sg:"whois.sgnic.sg",sh:"whois.nic.sh",si:"whois.register.si",sk:"whois.sk-nic.sk",sl:"whois.nic.sl",sm:"whois.nic.sm",sn:"whois.nic.sn",so:"whois.nic.so",ss:"whois.nic.ss",st:"whois.nic.st","msk.su":"whois.flexireg.net","nov.su":"whois.flexireg.net","spb.su":"whois.flexireg.net",su:"whois.tcinet.ru",sx:"whois.sx",sy:"whois.tld.sy",tc:"whois.nic.tc",td:"whois.nic.td",tf:"whois.nic.tf",tg:"whois.nic.tg",th:"whois.thnic.co.th",tk:"whois.dot.tk",tl:"whois.nic.tl",tm:"whois.nic.tm",tn:"whois.ati.tn",to:"whois.tonic.to",tr:"whois.trabis.gov.tr",tv:"whois.nic.tv",tw:"whois.twnic.net.tw",tz:"whois.tznic.or.tz","biz.ua":"whois.biz.ua","co.ua":"whois.co.ua","pp.ua":"whois.pp.ua",ua:"whois.ua",ug:"whois.co.ug","ac.uk":"whois.nic.ac.uk","gov.uk":"whois.gov.uk",uk:"whois.nic.uk","fed.us":"whois.nic.gov",us:"whois.nic.us",uy:"whois.nic.org.uy",uz:"whois.cctld.uz",vc:"whois2.afilias-grs.net",ve:"whois.nic.ve",vg:"whois.nic.vg",vu:"whois.dnrs.vu",wf:"whois.nic.wf",ws:"whois.website.ws",yt:"whois.nic.yt","ac.za":"whois.ac.za","co.za":"whois.registry.net.za","gov.za":"whois.gov.za","net.za":"net-whois.registry.net.za","org.za":"org-whois.registry.net.za","web.za":"web-whois.registry.net.za",zm:"whois.zicta.zm","xn--2scrj9c":"whois.registry.in","xn--3e0b707e":"whois.kr","xn--3hcrj9c":"whois.registry.in","xn--45br5cyl":"whois.registry.in","xn--45brj9c":"whois.registry.in","xn--4dbrk0ce":"whois.isoc.org.il","xn--80ao21a":"whois.nic.kz","xn--90a3ac":"whois.rnids.rs","xn--90ae":"whois.imena.bg","xn--90ais":"whois.cctld.by","xn--clchc0ea0b2g2a9gcd":"whois.sgnic.sg","xn--d1alf":"whois.marnet.mk","xn--e1a4c":"whois.eu","xn--fiqs8s":"cwhois.cnnic.cn","xn--fiqz9s":"cwhois.cnnic.cn","xn--fpcrj9c3d":"whois.registry.in","xn--fzc2c9e2c":"whois.nic.lk","xn--gecrj9c":"whois.registry.in","xn--h2breg3eve":"whois.registry.in","xn--h2brj9c8c":"whois.registry.in","xn--h2brj9c":"whois.registry.in","xn--j1amh":"whois.dotukr.com","xn--j6w193g":"whois.hkirc.hk","xn--kprw13d":"whois.twnic.net.tw","xn--kpry57d":"whois.twnic.net.tw","xn--lgbbat1ad8j":"whois.nic.dz","xn--mgb9awbf":"whois.registry.om","xn--mgba3a4f16a":"whois.nic.ir","xn--mgbaam7a8h":"whois.aeda.net.ae","xn--mgbah1a3hjkrd":"whois.nic.mr","xn--mgbbh1a71e":"whois.registry.in","xn--mgbbh1a":"whois.registry.in","xn--mgberp4a5d4ar":"whois.nic.net.sa","xn--mgbgu82a":"whois.registry.in","xn--mgbtx2b":"whois.cmc.iq","xn--mgbx4cd0ab":"whois.mynic.my","xn--node":"whois.itdc.ge","xn--o3cw4h":"whois.thnic.co.th","xn--ogbpf8fl":"whois.tld.sy","xn--p1ai":"whois.tcinet.ru","xn--pgbs0dh":"whois.ati.tn","xn--q7ce6a":"whois.nic.la","xn--qxa6a":"whois.eu","xn--rvc1e0am3e":"whois.registry.in","xn--s9brj9c":"whois.registry.in","xn--wgbh1c":"whois.dotmasr.eg","xn--wgbl6a":"whois.registry.qa","xn--xkc2al3hye2a":"whois.nic.lk","xn--xkc2dl3a5ee0h":"whois.registry.in","xn--y9a3aq":"whois.amnic.net","xn--yfro4i67o":"whois.sgnic.sg","xn--ygbi2ammx":"whois.pnina.ps"};var _4;((F)=>{F[F.SOCKS4=0]="SOCKS4";F[F.SOCKS5=1]="SOCKS5"})(_4||={});function I2(D){if(Array.isArray(D))return D.slice();if(typeof D==="object"&&D!==null){let u={};for(let F in D)if(Object.prototype.hasOwnProperty.call(D,F))u[F]=I2(D[F]);return u}return D}var YK=l(h2(),1);async function $K(D){let u=c4+D;try{let F=await CK(u);if(F.ok){let E=(await F.text()).match(/whois:\s+(\S+)/);if(E?.[1])return E[1]}}catch(F){console.error("Error in getting WhoIs server data from IANA",F)}return""}function EK(D){if(D==="com")return"whois.verisign-grs.com";return N2[D]}function v4(D){let u=D.split(".");for(let F=u.length-1;F>0;F--){let C=u.slice(F).join(".");if(N2[C])return C}return u[u.length-1]}function wK(D){return m4[D]}class k1{static iterParse(D,u){let F="",C=null,E="";for(let w=0;w<D.length;w++){let $=D[w];if($===`
204
+ `||E===":"&&$===" "){if(F.trim()in u)C=F.trim();else if(C!==null){let M=F.trim();if(M!==""){let Z=u[C];if(Array.isArray(Z))Z.push(M);else u[C]=M;C=null}}F=""}else if($!==":")F=F+$;if(E=$,F==="Record maintained by"||F===">>>")break}return u}static parseData(D,u){if(!u)u={"Domain Name":"","Creation Date":"","Updated Date":"","Registry Expiry Date":"","Domain Status":[],Registrar:""};return u=k1.iterParse(D,u),u}}async function BK(D,u,F,C,E,w){let $=new TextDecoder(E),M=new TextEncoder;if(!w){let Q=new FK.Socket;return new Promise((X,A)=>{try{Q.connect({port:C,host:F},()=>{if(u!=="")Q.write(M.encode(`${u} ${D}\r
205
+ `));else Q.write(M.encode(`${D}\r
206
+ `))}),Q.on("data",(U)=>{X($.decode(U))}),Q.on("error",(U)=>{A(U)})}catch(U){A(U)}})}let Z={proxy:{host:w.ip,port:w.port,type:w.type===1?5:4},command:"connect",destination:{host:F,port:C}};if(w.username&&w.password)Z.proxy.userId=w.username,Z.proxy.password=w.password;return new Promise((Q,X)=>{f4.SocksClient.createConnection(Z,(A,U)=>{if(A)X(A);else{if(!U)X(new Error("No socket info received!"));if(u!=="")U?.socket.write(M.encode(`${u} ${D}\r
207
+ `));else U?.socket.write(M.encode(`${D}\r
208
+ `));U?.socket.on("data",(H)=>{Q($.decode(H))}),U?.socket.resume()}})})}async function y2(D,u=!1,F=null){let C,E=43,w="",$,M="utf-8";if(!F)C=v4(D),$=null;else C=F.tld?F.tld:v4(D),M=F.encoding?F.encoding:"utf-8",$=F.proxy?F.proxy:null,w=F.server?F.server:"",E=F.serverPort?F.serverPort:43;if(w===""){let X=EK(C);if(!X){if(qu.debug(`No WhoIs server found for TLD: ${C}! Attempting IANA WhoIs database for server!`),X=await $K(C),!X)return qu.debug("WhoIs server could not be found!"),{_raw:"",parsedData:null};qu.debug(`WhoIs sever found for ${C}: ${w}`)}w=X}let Q=wK(w)||"";try{qu.debug(`Attempting WHOIS lookup for ${D} on server ${w}`);let X=await BK(D,Q,w,E,M,$);if(qu.debug("Raw WHOIS data received:",X),!u){let U=k1.parseData(X,null);return{_raw:X,parsedData:U}}let A=null;if(F?.parseData)A=I2(F.parseData);try{let U=k1.parseData(X,A);return{_raw:X,parsedData:U}}catch(U){return console.error("Error in parsing WhoIs data!",U),{_raw:X,parsedData:null}}}catch(X){return qu.debug(`Error in WHOIS lookup for ${D} on server ${w}`,X),{_raw:"",parsedData:null}}}function qG(D,u=null){return qu.debug(`Lookup called for ${D}`),y2(D,!0,u)}async function GG(D,u=!1,F=1,C=!1,E=null){let w=[];if(u){if(F>D.length)F=D.length;for(let $=0;$<D.length;$+=F){let M=D.slice($,$+F);w=await Promise.all(M.map(async(Z)=>{return await y2(Z,C,E)}))}}else for(let $=0;$<D.length;$++){let M=await y2(D[$],C,E);w.push(M)}return w}var export_SocksClient=YK.SocksClient;export{y2 as whois,BK as tcpWhois,qG as lookup,EK as getWhoIsServer,v4 as getTLD,wK as getParameters,$K as findWhoIsServer,GG as batchWhois,k1 as WhoIsParser,export_SocksClient as SocksClient,N2 as SERVERS,_4 as ProxyType,m4 as PARAMETERS,c4 as IANA_CHK_URL};