@nhtio/validation 1.20251028.0 → 1.20251029.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/index.cjs +2 -2
- package/index.cjs.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/package.json +3 -2
- package/private/patches/knex.d.ts +6 -0
- package/private/utils.d.ts +82 -2
package/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Obje
|
|
|
7
7
|
`))):str=ctx.stylize(`[Circular]`,`special`)),isUndefined$2(name$1)){if(array&&key.match(/^\d+$/))return str;name$1=JSON.stringify(``+key),name$1.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name$1=name$1.slice(1,-1),name$1=ctx.stylize(name$1,`name`)):(name$1=name$1.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),name$1=ctx.stylize(name$1,`string`))}return name$1+`: `+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf(`
|
|
8
8
|
`)>=0&&numLinesEst++,prev+cur.replace(/\u001b\[\d\d?m/g,``).length+1},0);return length>60?braces[0]+(base===``?``:base+`
|
|
9
9
|
`)+` `+output.join(`,
|
|
10
|
-
`)+` `+braces[1]:braces[0]+base+` `+output.join(`, `)+` `+braces[1]}exports.types=require_types();function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==`boolean`}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber$2(arg){return typeof arg==`number`}exports.isNumber=isNumber$2;function isString$2(arg){return typeof arg==`string`}exports.isString=isString$2;function isSymbol(arg){return typeof arg==`symbol`}exports.isSymbol=isSymbol;function isUndefined$2(arg){return arg===void 0}exports.isUndefined=isUndefined$2;function isRegExp(re$5){return isObject(re$5)&&objectToString(re$5)===`[object RegExp]`}exports.isRegExp=isRegExp,exports.types.isRegExp=isRegExp;function isObject(arg){return typeof arg==`object`&&!!arg}exports.isObject=isObject;function isDate$2(d){return isObject(d)&&objectToString(d)===`[object Date]`}exports.isDate=isDate$2,exports.types.isDate=isDate$2;function isError(e){return isObject(e)&&(objectToString(e)===`[object Error]`||e instanceof Error)}exports.isError=isError,exports.types.isNativeError=isError;function isFunction(arg){return typeof arg==`function`}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==`boolean`||typeof arg==`number`||typeof arg==`string`||typeof arg==`symbol`||arg===void 0}exports.isPrimitive=isPrimitive,exports.isBuffer=require_isBuffer();function objectToString(o){return Object.prototype.toString.call(o)}function pad(n$2){return n$2<10?`0`+n$2.toString(10):n$2.toString(10)}var months$2=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(`:`);return[d.getDate(),months$2[d.getMonth()],time].join(` `)}exports.log=function(){console.log(`%s - %s`,timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require_inherits(),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i$4=keys.length;i$4--;)origin[keys[i$4]]=add[keys[i$4]];return origin};function hasOwnProperty$2(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var kCustomPromisifiedSymbol=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;exports.promisify=function(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(kCustomPromisifiedSymbol&&original[kCustomPromisifiedSymbol]){var fn$1=original[kCustomPromisifiedSymbol];if(typeof fn$1!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),fn$1}function fn$1(){for(var promiseResolve,promiseReject,promise=new Promise(function(resolve,reject){promiseResolve=resolve,promiseReject=reject}),args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);args$1.push(function(err$1,value){err$1?promiseReject(err$1):promiseResolve(value)});try{original.apply(this,args$1)}catch(err$1){promiseReject(err$1)}return promise}return Object.setPrototypeOf(fn$1,Object.getPrototypeOf(original)),kCustomPromisifiedSymbol&&Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(fn$1,getOwnPropertyDescriptors(original))},exports.promisify.custom=kCustomPromisifiedSymbol;function callbackifyOnRejected(reason,cb){if(!reason){var newReason=Error(`Promise was rejected with a falsy value`);newReason.reason=reason,reason=newReason}return cb(reason)}function callbackify(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);function callbackified(){for(var args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);var maybeCb=args$1.pop();if(typeof maybeCb!=`function`)throw TypeError(`The last argument must be of type Function`);var self$1=this,cb=function(){return maybeCb.apply(self$1,arguments)};original.apply(this,args$1).then(function(ret){process$1.nextTick(cb.bind(null,null,ret))},function(rej){process$1.nextTick(callbackifyOnRejected.bind(null,rej,cb))})}return Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original)),Object.defineProperties(callbackified,getOwnPropertyDescriptors(original)),callbackified}exports.callbackify=callbackify});function analyzeEmail(email,options){return validateEmail(email,options)}function isEmailValid$1(email,options){return!validateEmail(email,options)}function validateEmail(email,options={}){if(typeof email!=`string`)throw Error(`Invalid input: email must be a string`);if(!email)return errorCode(`EMPTY_STRING`);let ascii$2=!NON_ASCII_RX.test(email);if(!ascii$2){if(options.allowUnicode===!1)return errorCode(`FORBIDDEN_UNICODE`);email=email.normalize(`NFC`)}let parts=email.split(`@`);if(parts.length!==2)return parts.length>2?errorCode(`MULTIPLE_AT_CHAR`):errorCode(`MISSING_AT_CHAR`);let[local,domain]=parts;if(!local)return errorCode(`EMPTY_LOCAL`);if(!options.ignoreLength){if(email.length>254)return errorCode(`ADDRESS_TOO_LONG`);if(ENCODER_IMPL.encode(local).length>64)return errorCode(`LOCAL_TOO_LONG`)}return validateLocal(local,ascii$2)||analyzeDomain(domain,options)}function validateLocal(local,ascii$2){let segments=local.split(`.`);for(let segment of segments){if(!segment.length)return errorCode(`EMPTY_LOCAL_SEGMENT`);if(ascii$2){if(!ATEXT_RX.test(segment))return errorCode(`INVALID_LOCAL_CHARS`);continue}for(let char of segment){if(ATEXT_RX.test(char))continue;let binary=toBinary(char);if(!ATOM_RX.test(binary))return errorCode(`INVALID_LOCAL_CHARS`)}}return null}function toBinary(char){return Array.from(ENCODER_IMPL.encode(char),v=>String.fromCharCode(v)).join(``)}var import_util,NON_ASCII_RX,ENCODER_IMPL,ATEXT_RX,ATOM_RX,init_email=__esmMin(()=>{import_util=__toESM(require_util()),init_domain(),NON_ASCII_RX=/[^\x00-\x7f]/,ENCODER_IMPL=new(import_util.TextEncoder||TextEncoder),ATEXT_RX=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,ATOM_RX=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`))});function generate$1(){let rfc3986$1={},hexDigit=`\\dA-Fa-f`,hexDigitOnly=`[`+hexDigit+`]`,unreserved=`\\w-\\.~`,subDelims=`!\\$&'\\(\\)\\*\\+,;=`,pctEncoded=`%`+hexDigit,pchar=unreserved+pctEncoded+subDelims+`:@`,pcharOnly=`[`+pchar+`]`,decOctect=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;rfc3986$1.ipv4address=`(?:`+decOctect+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let h16=hexDigitOnly+`{1,4}`,ls32=`(?:`+h16+`:[\\dA-Fa-f]{1,4}|`+rfc3986$1.ipv4address+`)`,IPv6SixHex=`(?:`+h16+`:){6}`+ls32,IPv6FiveHex=`::(?:`+h16+`:){5}`+ls32,IPv6FourHex=`(?:`+h16+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+ls32,IPv6ThreeHex=`(?:(?:`+h16+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+ls32,IPv6TwoHex=`(?:(?:`+h16+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+ls32,IPv6OneHex=`(?:(?:`+h16+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+ls32,IPv6NoneHex=`(?:(?:`+h16+`:){0,4}[\\dA-Fa-f]{1,4})?::`+ls32,IPv6NoneHex2=`(?:(?:`+h16+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,IPv6NoneHex3=`(?:(?:`+h16+`:){0,6}[\\dA-Fa-f]{1,4})?::`;rfc3986$1.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,rfc3986$1.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,rfc3986$1.ipv6address=`(?:`+IPv6SixHex+`|`+IPv6FiveHex+`|`+IPv6FourHex+`|`+IPv6ThreeHex+`|`+IPv6TwoHex+`|`+IPv6OneHex+`|`+IPv6NoneHex+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,rfc3986$1.ipvFuture=`v`+hexDigitOnly+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,rfc3986$1.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,rfc3986$1.schemeRegex=new RegExp(rfc3986$1.scheme);let userinfo=`[`+unreserved+pctEncoded+subDelims+`:]*`,IPLiteral=`\\[(?:`+rfc3986$1.ipv6address+`|`+rfc3986$1.ipvFuture+`)\\]`,regName=`[`+unreserved+pctEncoded+subDelims+`]{1,255}`,host=`(?:`+IPLiteral+`|`+rfc3986$1.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,port=`\\d*`,authority=`(?:`+userinfo+`@)?`+host+`(?::\\d*)?`,authorityCapture=`(?:`+userinfo+`@)?(`+host+`)(?::\\d*)?`,segment=pcharOnly+`*`,segmentNz=pcharOnly+`+`,segmentNzNc=`[`+unreserved+pctEncoded+subDelims+`@]+`,pathEmpty=``,pathAbEmpty=`(?:\\/`+segment+`)*`,pathAbsolute=`\\/(?:`+segmentNz+pathAbEmpty+`)?`,pathRootless=segmentNz+pathAbEmpty,pathNoScheme=segmentNzNc+pathAbEmpty,pathAbNoAuthority=`(?:\\/\\/\\/`+segment+pathAbEmpty+`)`;return rfc3986$1.hierPart=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`|`+pathAbNoAuthority+`)`,rfc3986$1.hierPartCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`)`,rfc3986$1.relativeRef=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.relativeRefCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.query=`[`+pchar+`\\/\\?]*(?=#|$)`,rfc3986$1.queryWithSquareBrackets=`[`+pchar+`\\[\\]\\/\\?]*(?=#|$)`,rfc3986$1.fragment=`[`+pchar+`\\/\\?]*`,rfc3986$1}function createRegex(options){let rfc=rfc3986,query=options.allowQuerySquareBrackets?rfc.queryWithSquareBrackets:rfc.query,suffix=`(?:\\?`+query+`)?(?:#`+rfc.fragment+`)?`,relative=options.domain?rfc.relativeRefCapture:rfc.relativeRef;if(options.relativeOnly)return wrap(relative+suffix);let customScheme=``;if(options.scheme){(0,import_assert.default)(options.scheme instanceof RegExp||typeof options.scheme==`string`||Array.isArray(options.scheme),`scheme must be a RegExp, String, or Array`);let schemes=[].concat(options.scheme);(0,import_assert.default)(schemes.length>=1,`scheme must have at least 1 scheme specified`);let selections=[];for(let i$4=0;i$4<schemes.length;++i$4){let scheme$1=schemes[i$4];(0,import_assert.default)(scheme$1 instanceof RegExp||typeof scheme$1==`string`,`scheme at position `+i$4+` must be a RegExp or String`),scheme$1 instanceof RegExp?selections.push(scheme$1.source.toString()):((0,import_assert.default)(rfc.schemeRegex.test(scheme$1),`scheme at position `+i$4+` must be a valid scheme`),selections.push((0,import_escapeRegex.default)(scheme$1)))}customScheme=selections.join(`|`)}let scheme=customScheme?`(?:`+customScheme+`)`:rfc.scheme,absolute=`(?:`+scheme+`:`+(options.domain?rfc.hierPartCapture:rfc.hierPart)+`)`,prefix=options.allowRelative?`(?:`+absolute+`|`+relative+`)`:absolute;return wrap(prefix+suffix,customScheme)}function wrap(raw,scheme=null){return raw=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${raw}`,{raw,regex:RegExp(`^${raw}$`),scheme}}function uriRegex$1(options={}){return options.scheme||options.allowRelative||options.relativeOnly||options.allowQuerySquareBrackets||options.domain?createRegex(options):genericUriRegex}var rfc3986,ipVersions,genericUriRegex,init_uri=__esmMin(()=>{init_lib(),rfc3986=generate$1(),ipVersions={v4Cidr:rfc3986.ipv4Cidr,v6Cidr:rfc3986.ipv6Cidr,ipv4:rfc3986.ipv4address,ipv6:rfc3986.ipv6address,ipvfuture:rfc3986.ipvFuture},genericUriRegex=createRegex({})});function ipRegex$1(options={}){let cidr=options.cidr||`optional`;(0,import_assert.default)([`required`,`optional`,`forbidden`].includes(cidr),`options.cidr must be one of required, optional, forbidden`),(0,import_assert.default)(options.version===void 0||typeof options.version==`string`||Array.isArray(options.version),`options.version must be a string or an array of string`);let versions=options.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(versions)||(versions=[versions]),(0,import_assert.default)(versions.length>=1,`options.version must have at least 1 version specified`);for(let version$3 of versions)(0,import_assert.default)(typeof version$3==`string`&&version$3===version$3.toLowerCase(),`Invalid options.version value`),(0,import_assert.default)([`ipv4`,`ipv6`,`ipvfuture`].includes(version$3),`options.version contains unknown version `+version$3+` - must be one of ipv4, ipv6, ipvfuture`);versions=Array.from(new Set(versions));let parts=versions.map(version$3=>{if(cidr===`forbidden`)return ipVersions[version$3];let cidrpart=`\\/${version$3===`ipv4`?ipVersions.v4Cidr:ipVersions.v6Cidr}`;return cidr===`required`?`${ipVersions[version$3]}${cidrpart}`:`${ipVersions[version$3]}(?:${cidrpart})?`}),raw=`(?:${parts.join(`|`)})`,regex=RegExp(`^${raw}$`);return{cidr,versions,regex,raw}}var init_ip=__esmMin(()=>{init_lib(),init_uri()});const HEX={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},UTF8={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]};function uriDecode(string){let percentPos=string.indexOf(`%`);if(percentPos===-1)return string;let decoded=``,last=0,codepoint=0,startOfOctets=percentPos,state=UTF8.accept;for(;percentPos>-1&&percentPos<string.length;){let high=resolveHex(string[percentPos+1],4),low=resolveHex(string[percentPos+2],0),byte=high|low,type=UTF8.data[byte];if(state=UTF8.data[256+state+type],codepoint=codepoint<<6|byte&UTF8.data[364+type],state===UTF8.accept){decoded+=string.slice(last,startOfOctets),decoded+=codepoint<=65535?String.fromCharCode(codepoint):String.fromCharCode(55232+(codepoint>>10),56320+(codepoint&1023)),codepoint=0,last=percentPos+3,percentPos=string.indexOf(`%`,last),startOfOctets=percentPos;continue}if(state===UTF8.reject||(percentPos+=3,percentPos>=string.length||string[percentPos]!==`%`))return null}return decoded+string.slice(last)}function resolveHex(char,shift){let i$4=HEX[char];return i$4===void 0?255:i$4<<shift}var esm_exports={};__export(esm_exports,{analyzeDomain:()=>analyzeDomain,analyzeEmail:()=>analyzeEmail,errorCodes:()=>errorCodes,ipRegex:()=>ipRegex$1,isDomainValid:()=>isDomainValid$1,isEmailValid:()=>isEmailValid$1,uriDecode:()=>uriDecode,uriRegex:()=>uriRegex$1,validateDomainOptions:()=>validateDomainOptions});var init_esm=__esmMin(()=>{init_domain(),init_email(),init_ip(),init_uri()}),require_tlds=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`)}),require_commonjs=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let tlds_js_1=require_tlds();exports.tlds=new Set(tlds_js_1.TLDS.map(tld=>tld.toLowerCase()))}),require_string=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$5,escapeRegex}=require_lib$4(),{isDomainValid,isEmailValid,ipRegex,uriRegex}=(init_esm(),__toCommonJS(esm_exports)),Tlds=require_commonjs(),Any$2=require_any(),Common$4=require_common(),internals$5={tlds:Tlds.tlds instanceof Set?{tlds:{allow:Tlds.tlds,deny:null}}:!1,base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:ipRegex({cidr:`forbidden`}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":`}`,"[":`]`,"(":`)`,"":``},guidVersions:{uuidv1:`1`,uuidv2:`2`,uuidv3:`3`,uuidv4:`4`,uuidv5:`5`,uuidv6:`6`,uuidv7:`7`,uuidv8:`8`},guidSeparators:new Set([void 0,!0,!1,`-`,`:`]),normalizationForms:[`NFC`,`NFD`,`NFKC`,`NFKD`]};module.exports=Any$2.extend({type:`string`,flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:`string`,method(value,{schema,state,prefs}){let normalize=schema.$_getRule(`normalize`);normalize&&(value=value.normalize(normalize.args.form));let casing=schema.$_getRule(`case`);casing&&(value=casing.args.direction===`upper`?value.toLocaleUpperCase():value.toLocaleLowerCase());let trim=schema.$_getRule(`trim`);if(trim&&trim.args.enabled&&(value=value.trim()),schema.$_terms.replacements)for(let replacement of schema.$_terms.replacements)value=value.replace(replacement.pattern,replacement.replacement);let hex=schema.$_getRule(`hex`);if(hex&&hex.args.options.byteAligned&&value.length%2!=0&&(value=`0${value}`),schema.$_getRule(`isoDate`)){let iso=internals$5.isoDate(value);iso&&(value=iso)}if(schema._flags.truncate){let rule=schema.$_getRule(`max`);if(rule){let limit=rule.args.limit;if(Common$4.isResolvable(limit)&&(limit=limit.resolve(value,state,prefs),!Common$4.limit(limit)))return{value,errors:schema.$_createError(`any.ref`,limit,{ref:rule.args.limit,arg:`limit`,reason:`must be a positive integer`},state,prefs)};value=value.slice(0,limit)}}return{value}}},validate(value,{schema,error}){if(typeof value!=`string`)return{value,errors:error(`string.base`)};if(value===``){let min$1=schema.$_getRule(`min`);return min$1&&min$1.args.limit===0?void 0:{value,errors:error(`string.empty`)}}},rules:{alphanum:{method(){return this.$_addRule(`alphanum`)},validate(value,helpers){return/^[a-zA-Z0-9]+$/.test(value)?value:helpers.error(`string.alphanum`)}},base64:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`,`urlSafe`]),options={urlSafe:!1,paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),assert$5(typeof options.urlSafe==`boolean`,`urlSafe must be boolean`),this.$_addRule({name:`base64`,args:{options}})},validate(value,helpers,{options}){let regex=internals$5.base64Regex[options.paddingRequired][options.urlSafe];return regex.test(value)?value:helpers.error(`string.base64`)}},case:{method(direction){return assert$5([`lower`,`upper`].includes(direction),`Invalid case:`,direction),this.$_addRule({name:`case`,args:{direction}})},validate(value,helpers,{direction}){return direction===`lower`&&value===value.toLocaleLowerCase()||direction===`upper`&&value===value.toLocaleUpperCase()?value:helpers.error(`string.${direction}case`)},convert:!0},creditCard:{method(){return this.$_addRule(`creditCard`)},validate(value,helpers){let i$4=value.length,sum=0,mul=1;for(;i$4--;){let char=value.charAt(i$4)*mul;sum+=char-(char>9)*9,mul^=3}return sum>0&&sum%10==0?value:helpers.error(`string.creditCard`)}},dataUri:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`]),options={paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),this.$_addRule({name:`dataUri`,args:{options}})},validate(value,helpers,{options}){let matches=value.match(internals$5.dataUriRegex);if(matches){if(!matches[2]||matches[2]!==`base64`)return value;let base64regex=internals$5.base64Regex[options.paddingRequired].false;if(base64regex.test(matches[3]))return value}return helpers.error(`string.dataUri`)}},domain:{method(options){options&&Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`allowUnderscore`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let address=internals$5.addressOptions(options);return this.$_addRule({name:`domain`,args:{options},address})},validate(value,helpers,args$1,{address}){return isDomainValid(value,address)?value:helpers.error(`string.domain`)}},email:{method(options={}){Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`ignoreLength`,`maxDomainSegments`,`minDomainSegments`,`multiple`,`separator`,`tlds`]),assert$5(options.multiple===void 0||typeof options.multiple==`boolean`,`multiple option must be an boolean`);let address=internals$5.addressOptions(options),regex=RegExp(`\\s*[${options.separator?escapeRegex(options.separator):`,`}]\\s*`);return this.$_addRule({name:`email`,args:{options},regex,address})},validate(value,helpers,{options},{regex,address}){let emails=options.multiple?value.split(regex):[value],invalids=[];for(let email of emails)isEmailValid(email,address)||invalids.push(email);return invalids.length?helpers.error(`string.email`,{value,invalids}):value}},guid:{alias:`uuid`,method(options={}){Common$4.assertOptions(options,[`version`,`separator`,`wrapper`]),assert$5(options.wrapper===void 0||typeof options.wrapper==`boolean`||typeof options.wrapper==`string`&&typeof internals$5.guidBrackets[options.wrapper]==`string`,`"wrapper" must be true, false, or one of "${Object.keys(internals$5.guidBrackets).filter(Boolean).join(`", "`)}"`);let versionNumbers=``;if(options.version){let versions=[].concat(options.version);assert$5(versions.length>=1,`version must have at least 1 valid version specified`);let set=new Set;for(let i$4=0;i$4<versions.length;++i$4){let version$3=versions[i$4];assert$5(typeof version$3==`string`,`version at position `+i$4+` must be a string`);let versionNumber=internals$5.guidVersions[version$3.toLowerCase()];assert$5(versionNumber,`version at position `+i$4+` must be one of `+Object.keys(internals$5.guidVersions).join(`, `)),assert$5(!set.has(versionNumber),`version at position `+i$4+` must not be a duplicate`),versionNumbers+=versionNumber,set.add(versionNumber)}}assert$5(internals$5.guidSeparators.has(options.separator),`separator must be one of true, false, "-", or ":"`);let separator=options.separator===void 0?`[:-]?`:options.separator===!0?`[:-]`:options.separator===!1?`[]?`:`\\${options.separator}`,wrapperStart,wrapperEnd;options.wrapper===void 0?(wrapperStart=`[\\[{\\(]?`,wrapperEnd=`[\\]}\\)]?`):options.wrapper===!0?(wrapperStart=`[\\[{\\(]`,wrapperEnd=`[\\]}\\)]`):options.wrapper===!1?(wrapperStart=``,wrapperEnd=``):(wrapperStart=escapeRegex(options.wrapper),wrapperEnd=escapeRegex(internals$5.guidBrackets[options.wrapper]));let regex=RegExp(`^(${wrapperStart})[0-9A-F]{8}(${separator})[0-9A-F]{4}\\2?[${versionNumbers||`0-9A-F`}][0-9A-F]{3}\\2?[${versionNumbers?`89AB`:`0-9A-F`}][0-9A-F]{3}\\2?[0-9A-F]{12}(${wrapperEnd})$`,`i`);return this.$_addRule({name:`guid`,args:{options},regex})},validate(value,helpers,args$1,{regex}){let results=regex.exec(value);if(!results)return helpers.error(`string.guid`);let open=results[1],close=results[results.length-1];return(open||close)&&internals$5.guidBrackets[open]!==close?helpers.error(`string.guid`):value}},hex:{method(options={}){return Common$4.assertOptions(options,[`byteAligned`,`prefix`]),options={byteAligned:!1,prefix:!1,...options},assert$5(typeof options.byteAligned==`boolean`,`byteAligned must be boolean`),assert$5(typeof options.prefix==`boolean`||options.prefix===`optional`,`prefix must be boolean or "optional"`),this.$_addRule({name:`hex`,args:{options}})},validate(value,helpers,{options}){let re$5=options.prefix===`optional`?internals$5.hexRegex.withOptionalPrefix:options.prefix===!0?internals$5.hexRegex.withPrefix:internals$5.hexRegex.withoutPrefix;return re$5.test(value)?options.byteAligned&&value.length%2!=0?helpers.error(`string.hexAlign`):value:helpers.error(`string.hex`)}},hostname:{method(){return this.$_addRule(`hostname`)},validate(value,helpers){return isDomainValid(value,{minDomainSegments:1})||internals$5.ipRegex.test(value)?value:helpers.error(`string.hostname`)}},insensitive:{method(){return this.$_setFlag(`insensitive`,!0)}},ip:{method(options={}){Common$4.assertOptions(options,[`cidr`,`version`]);let{cidr,versions,regex}=ipRegex(options),version$3=options.version?versions:void 0;return this.$_addRule({name:`ip`,args:{options:{cidr,version:version$3}},regex})},validate(value,helpers,{options},{regex}){return regex.test(value)?value:options.version?helpers.error(`string.ipVersion`,{value,cidr:options.cidr,version:options.version}):helpers.error(`string.ip`,{value,cidr:options.cidr})}},isoDate:{method(){return this.$_addRule(`isoDate`)},validate(value,{error}){return internals$5.isoDate(value)?value:error(`string.isoDate`)}},isoDuration:{method(){return this.$_addRule(`isoDuration`)},validate(value,helpers){return internals$5.isoDurationRegex.test(value)?value:helpers.error(`string.isoDuration`)}},length:{method(limit,encoding){return internals$5.length(this,`length`,limit,`=`,encoding)},validate(value,helpers,{limit,encoding},{name:name$1,operator,args:args$1}){let length=encoding?Buffer$1&&Buffer$1.byteLength(value,encoding):value.length;return Common$4.compare(length,limit,operator)?value:helpers.error(`string.`+name$1,{limit:args$1.limit,value,encoding})},args:[{name:`limit`,ref:!0,assert:Common$4.limit,message:`must be a positive integer`},`encoding`]},lowercase:{method(){return this.case(`lower`)}},max:{method(limit,encoding){return internals$5.length(this,`max`,limit,`<=`,encoding)},args:[`limit`,`encoding`]},min:{method(limit,encoding){return internals$5.length(this,`min`,limit,`>=`,encoding)},args:[`limit`,`encoding`]},normalize:{method(form=`NFC`){return assert$5(internals$5.normalizationForms.includes(form),`normalization form must be one of `+internals$5.normalizationForms.join(`, `)),this.$_addRule({name:`normalize`,args:{form}})},validate(value,{error},{form}){return value===value.normalize(form)?value:error(`string.normalize`,{value,form})},convert:!0},pattern:{alias:`regex`,method(regex,options={}){assert$5(regex instanceof RegExp,`regex must be a RegExp`),assert$5(!regex.flags.includes(`g`)&&!regex.flags.includes(`y`),`regex should not use global or sticky mode`),typeof options==`string`&&(options={name:options}),Common$4.assertOptions(options,[`invert`,`name`]);let errorCode$1=[`string.pattern`,options.invert?`.invert`:``,options.name?`.name`:`.base`].join(``);return this.$_addRule({name:`pattern`,args:{regex,options},errorCode:errorCode$1})},validate(value,helpers,{regex,options},{errorCode:errorCode$1}){let patternMatch=regex.test(value);return patternMatch^options.invert?value:helpers.error(errorCode$1,{name:options.name,regex,value})},args:[`regex`,`options`],multi:!0},replace:{method(pattern,replacement){typeof pattern==`string`&&(pattern=new RegExp(escapeRegex(pattern),`g`)),assert$5(pattern instanceof RegExp,`pattern must be a RegExp`),assert$5(typeof replacement==`string`,`replacement must be a String`);let obj=this.clone();return obj.$_terms.replacements||(obj.$_terms.replacements=[]),obj.$_terms.replacements.push({pattern,replacement}),obj}},token:{method(){return this.$_addRule(`token`)},validate(value,helpers){return/^\w+$/.test(value)?value:helpers.error(`string.token`)}},trim:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_addRule({name:`trim`,args:{enabled}})},validate(value,helpers,{enabled}){return!enabled||value===value.trim()?value:helpers.error(`string.trim`)},convert:!0},truncate:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_setFlag(`truncate`,enabled)}},uppercase:{method(){return this.case(`upper`)}},uri:{method(options={}){Common$4.assertOptions(options,[`allowRelative`,`allowQuerySquareBrackets`,`domain`,`relativeOnly`,`scheme`,`encodeUri`]),options.domain&&Common$4.assertOptions(options.domain,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let{regex,scheme}=uriRegex(options),domain=options.domain?internals$5.addressOptions(options.domain):null;return this.$_addRule({name:`uri`,args:{options},regex,domain,scheme})},validate(value,helpers,{options},{regex,domain,scheme}){if([`http:/`,`https:/`].includes(value))return helpers.error(`string.uri`);let match$2=regex.exec(value);if(!match$2&&helpers.prefs.convert&&options.encodeUri){let encoded=encodeURI(value);match$2=regex.exec(encoded),match$2&&(value=encoded)}if(match$2){let matched=match$2[1]||match$2[2];return domain&&(!options.allowRelative||matched)&&!isDomainValid(matched,domain)?helpers.error(`string.domain`,{value:matched}):value}return options.relativeOnly?helpers.error(`string.uriRelativeOnly`):options.scheme?helpers.error(`string.uriCustomScheme`,{scheme,value}):helpers.error(`string.uri`)}}},manifest:{build(obj,desc$1){if(desc$1.replacements)for(let{pattern,replacement}of desc$1.replacements)obj=obj.replace(pattern,replacement);return obj}},messages:{"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`}}),internals$5.addressOptions=function(options){if(!options)return internals$5.tlds||options;if(assert$5(options.minDomainSegments===void 0||Number.isSafeInteger(options.minDomainSegments)&&options.minDomainSegments>0,`minDomainSegments must be a positive integer`),assert$5(options.maxDomainSegments===void 0||Number.isSafeInteger(options.maxDomainSegments)&&options.maxDomainSegments>0,`maxDomainSegments must be a positive integer`),options.tlds===!1)return options;if(options.tlds===!0||options.tlds===void 0)return assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds);assert$5(typeof options.tlds==`object`,`tlds must be true, false, or an object`);let deny=options.tlds.deny;if(deny)return Array.isArray(deny)&&(options=Object.assign({},options,{tlds:{deny:new Set(deny)}})),assert$5(options.tlds.deny instanceof Set,`tlds.deny must be an array, Set, or boolean`),assert$5(!options.tlds.allow,`Cannot specify both tlds.allow and tlds.deny lists`),internals$5.validateTlds(options.tlds.deny,`tlds.deny`),options;let allow=options.tlds.allow;return allow?allow===!0?(assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds)):(Array.isArray(allow)&&(options=Object.assign({},options,{tlds:{allow:new Set(allow)}})),assert$5(options.tlds.allow instanceof Set,`tlds.allow must be an array, Set, or boolean`),internals$5.validateTlds(options.tlds.allow,`tlds.allow`),options):{...options,tlds:!1}},internals$5.validateTlds=function(set,source){for(let tld of set)assert$5(isDomainValid(tld,{minDomainSegments:1,maxDomainSegments:1}),`${source} must contain valid top level domain names`)},internals$5.isoDate=function(value){if(!Common$4.isIsoDate(value))return null;/.*T.*[+-]\d\d$/.test(value)&&(value+=`00`);let date=new Date(value);return isNaN(date.getTime())?null:date.toISOString()},internals$5.length=function(schema,name$1,limit,operator,encoding){return assert$5(!encoding||Buffer$1&&Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),schema.$_addRule({name:name$1,method:`length`,args:{limit,encoding},operator})}}),require_symbol=__commonJSMin((exports,module)=>{let{assert:assert$4}=require_lib$4(),Any$1=require_any(),internals$4={};internals$4.Map=class extends Map{slice(){return new internals$4.Map(this)}},module.exports=Any$1.extend({type:`symbol`,terms:{map:{init:new internals$4.Map}},coerce:{method(value,{schema,error}){let lookup$2=schema.$_terms.map.get(value);return lookup$2&&(value=lookup$2),!schema._flags.only||typeof value==`symbol`?{value}:{value,errors:error(`symbol.map`,{map:schema.$_terms.map})}}},validate(value,{error}){if(typeof value!=`symbol`)return{value,errors:error(`symbol.base`)}},rules:{map:{method(iterable){iterable&&!iterable[Symbol.iterator]&&typeof iterable==`object`&&(iterable=Object.entries(iterable)),assert$4(iterable&&iterable[Symbol.iterator],`Iterable must be an iterable or object`);let obj=this.clone(),symbols=[];for(let entry of iterable){assert$4(entry&&entry[Symbol.iterator],`Entry must be an iterable`);let[key,value]=entry;assert$4(typeof key!=`object`&&typeof key!=`function`&&typeof key!=`symbol`,`Key must not be of type object, function, or Symbol`),assert$4(typeof value==`symbol`,`Value must be a Symbol`),obj.$_terms.map.set(key,value),symbols.push(value)}return obj.valid(...symbols)}}},manifest:{build(obj,desc$1){return desc$1.map&&(obj=obj.map(desc$1.map)),obj}},messages:{"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`}})}),require_binary=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$3}=require_lib$4(),Any=require_any(),Common$3=require_common();module.exports=Any.extend({type:`binary`,coerce:{from:[`string`,`object`],method(value,{schema}){if(typeof value==`string`||value!==null&&value.type===`Buffer`)try{return{value:Buffer$1.from(value,schema._flags.encoding)}}catch{}}},validate(value,{error}){if(!Buffer$1.isBuffer(value))return{value,errors:error(`binary.base`)}},rules:{encoding:{method(encoding){return assert$3(Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),this.$_setFlag(`encoding`,encoding)}},length:{method(limit){return this.$_addRule({name:`length`,method:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$3.compare(value.length,limit,operator)?value:helpers.error(`binary.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$3.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}}},cast:{string:{from:value=>Buffer$1.isBuffer(value),to(value,helpers){return value.toString()}}},messages:{"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`}})}),require_lib=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$2,clone:clone$5}=require_lib$4(),Cache$1=require_cache(),Common$2=require_common(),Compile$1=require_compile(),Errors$1=require_errors(),Extend$1=require_extend(),Manifest$1=require_manifest(),Ref$1=require_ref(),Template$2=require_template(),Trace$1=require_trace(),Schemas$2,internals$3={types:{alternatives:require_alternatives(),any:require_any(),array:require_array(),boolean:require_boolean(),date:require_date(),function:require_function(),link:require_link(),number:require_number(),object:require_object(),string:require_string(),symbol:require_symbol()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};Buffer$1&&(internals$3.types.binary=require_binary()),internals$3.root=function(){let root={_types:new Set(Object.keys(internals$3.types))};for(let type of root._types)root[type]=function(...args$1){return assert$2(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`),internals$3.generate(this,internals$3.types[type],args$1)};for(let method of[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`])root[method]=function(...args$1){return this.any()[method](...args$1)};for(let alias in Object.assign(root,internals$3.methods),internals$3.aliases){let target=internals$3.aliases[alias];root[alias]=root[target]}return root.x=root.expression,Trace$1.setup&&Trace$1.setup(root),root},internals$3.methods={ValidationError:Errors$1.ValidationError,version:Common$2.version,cache:Cache$1.provider,assert(value,schema,...args$1){internals$3.assert(value,schema,!0,args$1)},attempt(value,schema,...args$1){return internals$3.assert(value,schema,!1,args$1)},build(desc$1){return assert$2(typeof Manifest$1.build==`function`,`Manifest functionality disabled`),Manifest$1.build(this,desc$1)},checkPreferences(prefs){Common$2.checkPreferences(prefs)},compile(schema,options){return Compile$1.compile(this,schema,options)},defaults(modifier){assert$2(typeof modifier==`function`,`modifier must be a function`);let joi=Object.assign({},this);for(let type of joi._types){let schema=modifier(joi[type]());assert$2(Common$2.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}return joi},expression(...args$1){return new Template$2(...args$1)},extend(...extensions){Common$2.verifyFlat(extensions,`extend`),Schemas$2||=require_schemas(),assert$2(extensions.length,`You need to provide at least one extension`),this.assert(extensions,Schemas$2.extensions);let joi=Object.assign({},this);joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,Schemas$2.extension);let expanded=internals$3.expandExtension(extension,joi);for(let item of expanded){assert$2(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=Extend$1.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}}return joi},isError:Errors$1.ValidationError.isError,isExpression:Template$2.isTemplate,isRef:Ref$1.isRef,isSchema:Common$2.isSchema,in(...args$1){return Ref$1.in(...args$1)},override:Common$2.symbols.override,ref(...args$1){return Ref$1.create(...args$1)},types(){let types$1={};for(let type of this._types)types$1[type]=this[type]();for(let target in internals$3.aliases)types$1[target]=this[target]();return types$1}},internals$3.assert=function(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,Common$2.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof Errors$1.ValidationError||(error=clone$5(error)),error.message=message?`${message} ${display}`:display,error},internals$3.generate=function(root,schema,args$1){return assert$2(root,`Must be invoked on a Joi instance.`),schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)},internals$3.expandExtension=function(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item=Object.assign({},extension);item.type=type,item.base=joi[type](),extended.push(item)}return extended},module.exports=internals$3.root()}),require_schemas=__commonJSMin(exports=>{let Joi$1=require_lib(),internals$2={};internals$2.wrap=Joi$1.string().min(1).max(2).allow(!1),exports.preferences=Joi$1.object({allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),context:Joi$1.object(),convert:Joi$1.boolean(),dateFormat:Joi$1.valid(`date`,`iso`,`string`,`time`,`utc`),debug:Joi$1.boolean(),errors:{escapeHtml:Joi$1.boolean(),label:Joi$1.valid(`path`,`key`,!1),language:[Joi$1.string(),Joi$1.object().ref()],render:Joi$1.boolean(),stack:Joi$1.boolean(),wrap:{label:internals$2.wrap,array:internals$2.wrap,string:internals$2.wrap}},externals:Joi$1.boolean(),messages:Joi$1.object(),noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:Joi$1.valid(`required`,`optional`,`forbidden`),skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()}).strict(),internals$2.nameRx=/^[a-zA-Z0-9]\w*$/,internals$2.rule=Joi$1.object({alias:Joi$1.array().items(Joi$1.string().pattern(internals$2.nameRx)).single(),args:Joi$1.array().items(Joi$1.string(),Joi$1.object({name:Joi$1.string().pattern(internals$2.nameRx).required(),ref:Joi$1.boolean(),assert:Joi$1.alternatives([Joi$1.function(),Joi$1.object().schema()]).conditional(`ref`,{is:!0,then:Joi$1.required()}),normalize:Joi$1.function(),message:Joi$1.string().when(`assert`,{is:Joi$1.function(),then:Joi$1.required()})})),convert:Joi$1.boolean(),manifest:Joi$1.boolean(),method:Joi$1.function().allow(!1),multi:Joi$1.boolean(),validate:Joi$1.function()}),exports.extension=Joi$1.object({type:Joi$1.alternatives([Joi$1.string(),Joi$1.object().regex()]).required(),args:Joi$1.function(),cast:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({from:Joi$1.function().maxArity(1).required(),to:Joi$1.function().minArity(1).maxArity(2).required()})),base:Joi$1.object().schema().when(`type`,{is:Joi$1.object().regex(),then:Joi$1.forbidden()}),coerce:[Joi$1.function().maxArity(3),Joi$1.object({method:Joi$1.function().maxArity(3).required(),from:Joi$1.array().items(Joi$1.string()).single()})],flags:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({setter:Joi$1.string(),default:Joi$1.any()})),manifest:{build:Joi$1.function().arity(2)},messages:[Joi$1.object(),Joi$1.string()],modifiers:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function().minArity(1).maxArity(2)),overrides:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function()),prepare:Joi$1.function().maxArity(3),rebuild:Joi$1.function().arity(1),rules:Joi$1.object().pattern(internals$2.nameRx,internals$2.rule),terms:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({init:Joi$1.array().allow(null).required(),manifest:Joi$1.object().pattern(/.+/,[Joi$1.valid(`schema`,`single`),Joi$1.object({mapped:Joi$1.object({from:Joi$1.string().required(),to:Joi$1.string().required()}).required()})])})),validate:Joi$1.function().maxArity(3)}).strict(),exports.extensions=Joi$1.array().items(Joi$1.object(),Joi$1.function().arity(1)).strict(),internals$2.desc={buffer:Joi$1.object({buffer:Joi$1.string()}),func:Joi$1.object({function:Joi$1.function().required(),options:{literal:!0}}),override:Joi$1.object({override:!0}),ref:Joi$1.object({ref:Joi$1.object({type:Joi$1.valid(`value`,`global`,`local`),path:Joi$1.array().required(),separator:Joi$1.string().length(1).allow(!1),ancestor:Joi$1.number().min(0).integer().allow(`root`),map:Joi$1.array().items(Joi$1.array().length(2)).min(1),adjust:Joi$1.function(),iterables:Joi$1.boolean(),in:Joi$1.boolean(),render:Joi$1.boolean()}).required()}),regex:Joi$1.object({regex:Joi$1.string().min(3)}),special:Joi$1.object({special:Joi$1.valid(`deep`).required()}),template:Joi$1.object({template:Joi$1.string().required(),options:Joi$1.object()}),value:Joi$1.object({value:Joi$1.alternatives([Joi$1.object(),Joi$1.array()]).required()})},internals$2.desc.entity=Joi$1.alternatives([Joi$1.array().items(Joi$1.link(`...`)),Joi$1.boolean(),Joi$1.function(),Joi$1.number(),Joi$1.string(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.special,internals$2.desc.template,internals$2.desc.value,Joi$1.link(`/`)]),internals$2.desc.values=Joi$1.array().items(null,Joi$1.boolean(),Joi$1.function(),Joi$1.number().allow(1/0,-1/0),Joi$1.string().allow(``),Joi$1.symbol(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.override,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.template,internals$2.desc.value),internals$2.desc.messages=Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template,Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template])]),exports.description=Joi$1.object({type:Joi$1.string().required(),flags:Joi$1.object({cast:Joi$1.string(),default:Joi$1.any(),description:Joi$1.string(),empty:Joi$1.link(`/`),failover:internals$2.desc.entity,id:Joi$1.string(),label:Joi$1.string(),only:!0,presence:[`optional`,`required`,`forbidden`],result:[`raw`,`strip`],strip:Joi$1.boolean(),unit:Joi$1.string()}).unknown(),preferences:{allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),convert:Joi$1.boolean(),dateFormat:[`date`,`iso`,`string`,`time`,`utc`],errors:{escapeHtml:Joi$1.boolean(),label:[`path`,`key`],language:[Joi$1.string(),internals$2.desc.ref],wrap:{label:internals$2.wrap,array:internals$2.wrap}},externals:Joi$1.boolean(),messages:internals$2.desc.messages,noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:[`required`,`optional`,`forbidden`],skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()},allow:internals$2.desc.values,invalid:internals$2.desc.values,rules:Joi$1.array().min(1).items({name:Joi$1.string().required(),args:Joi$1.object().min(1),keep:Joi$1.boolean(),message:[Joi$1.string(),internals$2.desc.messages],warn:Joi$1.boolean()}),keys:Joi$1.object().pattern(/.*/,Joi$1.link(`/`)),link:internals$2.desc.ref}).pattern(/^[a-z]\w*$/,Joi$1.any())}),require_common=__commonJSMin(exports=>{let{assert:Assert,AssertError}=require_lib$4(),Pkg=(init_package(),__toCommonJS(package_exports).default),Messages$1,Schemas$1,internals$1={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};exports.version=Pkg.version,exports.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:`iso`,errors:{escapeHtml:!1,label:`path`,language:null,render:!0,stack:!1,wrap:{label:`"`,array:`[]`}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:`optional`,skipFunctions:!1,stripUnknown:!1,warnings:!1},exports.symbols={any:Symbol.for(`@hapi/joi/schema`),arraySingle:Symbol(`arraySingle`),deepDefault:Symbol(`deepDefault`),errors:Symbol(`errors`),literal:Symbol(`literal`),override:Symbol(`override`),parent:Symbol(`parent`),prefs:Symbol(`prefs`),ref:Symbol(`ref`),template:Symbol(`template`),values:Symbol(`values`)},exports.assertOptions=function(options,keys,name$1=`Options`){Assert(options&&typeof options==`object`&&!Array.isArray(options),`Options must be of type object`);let unknownKeys=Object.keys(options).filter(k=>!keys.includes(k));Assert(unknownKeys.length===0,`${name$1} contain unknown keys: ${unknownKeys}`)},exports.checkPreferences=function(prefs){Schemas$1||=require_schemas();let result=Schemas$1.preferences.validate(prefs);if(result.error)throw new AssertError([result.error.details[0].message])},exports.compare=function(a,b,operator){switch(operator){case`=`:return a===b;case`>`:return a>b;case`<`:return a<b;case`>=`:return a>=b;case`<=`:return a<=b}},exports.default=function(value,defaultValue){return value===void 0?defaultValue:value},exports.isIsoDate=function(date){return internals$1.isoDate.test(date)},exports.isNumber=function(value){return typeof value==`number`&&!isNaN(value)},exports.isResolvable=function(obj){return obj?obj[exports.symbols.ref]||obj[exports.symbols.template]:!1},exports.isSchema=function(schema,options={}){let any=schema&&schema[exports.symbols.any];return any?(Assert(options.legacy||any.version===exports.version,`Cannot mix different versions of joi schemas`),!0):!1},exports.isValues=function(obj){return obj[exports.symbols.values]},exports.limit=function(value){return Number.isSafeInteger(value)&&value>=0},exports.preferences=function(target,source){Messages$1||=require_messages(),target||={},source||={};let merged=Object.assign({},target,source);return source.errors&&target.errors&&(merged.errors=Object.assign({},target.errors,source.errors),merged.errors.wrap=Object.assign({},target.errors.wrap,source.errors.wrap)),source.messages&&(merged.messages=Messages$1.compile(source.messages,target.messages)),delete merged[exports.symbols.prefs],merged},exports.tryWithPath=function(fn$1,key,options={}){try{return fn$1()}catch(err$1){throw err$1.path===void 0?err$1.path=key:err$1.path=key+`.`+err$1.path,options.append&&(err$1.message=`${err$1.message} (${err$1.path})`),err$1}},exports.validateArg=function(value,label,{assert:assert$30,message}){if(exports.isSchema(assert$30)){let result=assert$30.validate(value);return result.error?result.error.message:void 0}else if(!assert$30(value))return label?`${label} ${message}`:message},exports.verifyFlat=function(args$1,method){for(let arg of args$1)Assert(!Array.isArray(arg),`Method no longer accepts array arguments:`,method)}}),require_ref=__commonJSMin(exports=>{let{assert:assert$1,clone:clone$4,reach}=require_lib$4(),Common$1=require_common(),Template$1,internals={symbol:Symbol(`ref`),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:`.`,type:`value`}};exports.create=function(key,options={}){assert$1(typeof key==`string`,`Invalid reference key:`,key),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`prefix`,`render`,`separator`]),assert$1(!options.prefix||typeof options.prefix==`object`,`options.prefix must be of type object`);let ref=Object.assign({},internals.defaults,options);delete ref.prefix;let separator=ref.separator,context=internals.context(key,separator,options.prefix);if(ref.type=context.type,key=context.key,ref.type===`value`)if(context.root&&(assert$1(!separator||key[0]!==separator,`Cannot specify relative path with root prefix`),ref.ancestor=`root`,key||=null),separator&&separator===key)key=null,ref.ancestor=0;else if(ref.ancestor!==void 0)assert$1(!separator||!key||key[0]!==separator,`Cannot combine prefix with ancestor option`);else{let[ancestor,slice]=internals.ancestor(key,separator);slice&&(key=key.slice(slice),key===``&&(key=null)),ref.ancestor=ancestor}return ref.path=separator?key===null?[]:key.split(separator):[key],new internals.Ref(ref)},exports.in=function(key,options={}){return exports.create(key,{...options,in:!0})},exports.isRef=function(ref){return ref?!!ref[Common$1.symbols.ref]:!1},internals.Ref=class{constructor(options){assert$1(typeof options==`object`,`Invalid reference construction`),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`path`,`render`,`separator`,`type`,`depth`,`key`,`root`,`display`]),assert$1([!1,void 0].includes(options.separator)||typeof options.separator==`string`&&options.separator.length===1,`Invalid separator`),assert$1(!options.adjust||typeof options.adjust==`function`,`options.adjust must be a function`),assert$1(!options.map||Array.isArray(options.map),`options.map must be an array`),assert$1(!options.map||!options.adjust,`Cannot set both map and adjust options`),Object.assign(this,internals.defaults,options),assert$1(this.type===`value`||this.ancestor===void 0,`Non-value references cannot reference ancestors`),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(value,state,prefs,local,options={}){return assert$1(!this.in||options.in,`Invalid in() reference usage`),this.type===`global`?this._resolve(prefs.context,state,options):this.type===`local`?this._resolve(local,state,options):this.ancestor?this.ancestor===`root`?this._resolve(state.ancestors[state.ancestors.length-1],state,options):(assert$1(this.ancestor<=state.ancestors.length,`Invalid reference exceeds the schema root:`,this.display),this._resolve(state.ancestors[this.ancestor-1],state,options)):this._resolve(value,state,options)}_resolve(target,state,options){let resolved;if(this.type===`value`&&state.mainstay.shadow&&options.shadow!==!1&&(resolved=state.mainstay.shadow.get(this.absolute(state))),resolved===void 0&&(resolved=reach(target,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(resolved=this.adjust(resolved)),this.map){let mapped=this.map.get(resolved);mapped!==void 0&&(resolved=mapped)}return state.mainstay&&state.mainstay.tracer.resolve(state,this,resolved),resolved}toString(){return this.display}absolute(state){return[...state.path.slice(0,-this.ancestor),...this.path]}clone(){return new internals.Ref(this)}describe(){let ref={path:this.path};this.type!==`value`&&(ref.type=this.type),this.separator!==`.`&&(ref.separator=this.separator),this.type===`value`&&this.ancestor!==1&&(ref.ancestor=this.ancestor),this.map&&(ref.map=[...this.map]);for(let key of[`adjust`,`iterables`,`render`])this[key]!==null&&this[key]!==void 0&&(ref[key]=this[key]);return this.in!==!1&&(ref.in=!0),{ref}}updateDisplay(){let key=this.key===null?``:this.key;if(this.type!==`value`){this.display=`ref:${this.type}:${key}`;return}if(!this.separator){this.display=`ref:${key}`;return}if(!this.ancestor){this.display=`ref:${this.separator}${key}`;return}if(this.ancestor===`root`){this.display=`ref:root:${key}`;return}if(this.ancestor===1){this.display=`ref:${key||`..`}`;return}let lead=Array(this.ancestor+1).fill(this.separator).join(``);this.display=`ref:${lead}${key||``}`}},internals.Ref.prototype[Common$1.symbols.ref]=!0,exports.build=function(desc$1){return desc$1=Object.assign({},internals.defaults,desc$1),desc$1.type===`value`&&desc$1.ancestor===void 0&&(desc$1.ancestor=1),new internals.Ref(desc$1)},internals.context=function(key,separator,prefix={}){if(key=key.trim(),prefix){let globalp=prefix.global===void 0?`$`:prefix.global;if(globalp!==separator&&key.startsWith(globalp))return{key:key.slice(globalp.length),type:`global`};let local=prefix.local===void 0?`#`:prefix.local;if(local!==separator&&key.startsWith(local))return{key:key.slice(local.length),type:`local`};let root=prefix.root===void 0?`/`:prefix.root;if(root!==separator&&key.startsWith(root))return{key:key.slice(root.length),type:`value`,root:!0}}return{key,type:`value`}},internals.ancestor=function(key,separator){if(!separator||key[0]!==separator)return[1,0];if(key[1]!==separator)return[0,1];let i$4=2;for(;key[i$4]===separator;)++i$4;return[i$4-1,i$4]},exports.toSibling=0,exports.toParent=1,exports.Manager=class{constructor(){this.refs=[]}register(source,target){if(source){if(target=target===void 0?exports.toParent:target,Array.isArray(source)){for(let ref of source)this.register(ref,target);return}if(Common$1.isSchema(source)){for(let item of source._refs.refs)item.ancestor-target>=0&&this.refs.push({ancestor:item.ancestor-target,root:item.root});return}exports.isRef(source)&&source.type===`value`&&source.ancestor-target>=0&&this.refs.push({ancestor:source.ancestor-target,root:source.root}),Template$1||=require_template(),Template$1.isTemplate(source)&&this.register(source.refs(),target)}}get length(){return this.refs.length}clone(){let copy=new exports.Manager;return copy.refs=clone$4(this.refs),copy}reset(){this.refs=[]}roots(){return this.refs.filter(ref=>!ref.ancestor).map(ref=>ref.root)}}});init_lib();var import_ref=__toESM(require_ref()),import_cache=__toESM(require_cache()),import_trace=__toESM(require_trace()),import_common=__toESM(require_common()),import_errors=__toESM(require_errors()),import_extend=__toESM(require_extend()),import_compile=__toESM(require_compile()),import_schemas=__toESM(require_schemas()),import_manifest=__toESM(require_manifest()),import_template=__toESM(require_template()),import_any=__toESM(require_any()),import_date=__toESM(require_date()),import_link=__toESM(require_link()),import_array=__toESM(require_array()),import_number=__toESM(require_number()),import_object=__toESM(require_object()),import_string=__toESM(require_string()),import_symbol=__toESM(require_symbol()),import_binary=__toESM(require_binary()),import_boolean=__toESM(require_boolean()),import_function=__toESM(require_function()),import_alternatives=__toESM(require_alternatives()),RootFactory=class RootFactory{static types={alternatives:import_alternatives.default,any:import_any.default,array:import_array.default,boolean:import_boolean.default,date:import_date.default,function:import_function.default,link:import_link.default,number:import_number.default,object:import_object.default,string:import_string.default,symbol:import_symbol.default,binary:import_binary.default};static aliases={alt:`alternatives`,bool:`boolean`,func:`function`};static assertValue(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,import_common.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof import_errors.ValidationError||(error=(0,import_clone.default)(error)),error.message=message?`${message} ${display}`:display,error}static generate(root,schema,args$1){return(0,import_assert.default)(root,`Must be invoked on a Joi instance.`),schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)}static expandExtension(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item={...extension};item.type=type,item.base=joi[type](),extended.push(item)}return extended}static getMethods(){return{ValidationError:import_errors.ValidationError,version:import_common.version,cache:import_cache.provider,assert(value,schema,...args$1){RootFactory.assertValue(value,schema,!0,args$1)},attempt(value,schema,...args$1){return RootFactory.assertValue(value,schema,!1,args$1)},build(desc$1){return(0,import_assert.default)(typeof import_manifest.build==`function`,`Manifest functionality disabled`),import_manifest.build(this,desc$1)},checkPreferences(prefs){import_common.checkPreferences(prefs)},compile(schema,options){return import_compile.compile(this,schema,options)},defaults(modifier){(0,import_assert.default)(typeof modifier==`function`,`modifier must be a function`);let joi={...this};for(let type of joi._types){let schema=modifier(joi[type]());(0,import_assert.default)(import_common.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}return joi},expression(...args$1){return new import_template.default(...args$1)},extend(...extensions){import_common.verifyFlat(extensions,`extend`),(0,import_assert.default)(extensions.length,`You need to provide at least one extension`),this.assert(extensions,import_schemas.extensions);let joi={...this};joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,import_schemas.extension);let expanded=RootFactory.expandExtension(extension,joi);for(let item of expanded){(0,import_assert.default)(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=import_extend.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}}return joi},isError:import_errors.ValidationError.isError,isExpression:import_template.default.isTemplate,isRef:import_ref.isRef,isSchema:import_common.isSchema,in(...args$1){return import_ref.in(...args$1)},override:import_common.symbols.override,ref(...args$1){return import_ref.create(...args$1)},types(){let result={};for(let type of this._types)result[type]=this[type]();for(let target in RootFactory.aliases)result[target]=this[target]();return result}}}static create(options={}){let instance={_types:new Set(Object.keys(RootFactory.types))};for(let type of instance._types)instance[type]=function(...args$1){(0,import_assert.default)(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`);let schema=RootFactory.types[type];if(options.schemaTypeModifiers?.length)for(let modifier of options.schemaTypeModifiers)schema=modifier(schema,this,args$1);return RootFactory.generate(this,schema,args$1)};let shortcuts=[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`];if(options.shortcutsModifiers?.length)for(let modifier of options.shortcutsModifiers)shortcuts=modifier(shortcuts);for(let method of shortcuts)instance[method]=function(...args$1){return this.any()[method](...args$1)};Object.assign(instance,RootFactory.getMethods());for(let[alias,original]of Object.entries(RootFactory.aliases))instance[alias]=instance[original];return instance.x=instance.expression,import_trace.setup&&import_trace.setup(instance),instance}},import_messages=__toESM(require_messages());const knexMessages={"knex.unique":`The {{#label}} has already been taken`,"knex.exists":`The selected {{#label}} is invalid`,"knex.missingConnection":`Database connection not provided for {{#label}}`,"knex.invalidTable":`Invalid table for {{#label}}`,"knex.invalidColumn":`Invalid column for {{#label}}`,"knex.internal":`Database validation error on {{#label}}`},knexClientCache=new WeakMap,isReference=(obj,root)=>root.isRef(obj),resolveKnex=connection=>{let db=knex.default;if(typeof connection!=`function`&&!(typeof connection==`object`&&connection&&!Array.isArray(connection)))throw Error(`Invalid Knex connection or QueryClientContract instance`);if(typeof connection.getReadClient==`function`)return connection.getReadClient();if(typeof connection.ref==`function`)return connection;if(typeof connection==`object`&&connection&&`client`in connection&&`connection`in connection){let cached=knexClientCache.get(connection);if(cached)return cached;let config={client:connection.client,dialect:connection.dialect,connection:connection.connection,jsonbSupport:connection.jsonbSupport,version:connection.version,postProcessResponse:connection.postProcessResponse,wrapIdentifier:connection.wrapIdentifier,acquireConnectionTimeout:connection.acquireConnectionTimeout,useNullAsDefault:connection.useNullAsDefault,searchPath:connection.searchPath,fetchAsString:connection.fetchAsString,pool:connection.pool},conn=db(config);return knexClientCache.set(connection,conn),conn}throw Error(`Invalid Knex connection or QueryClientContract instance`)},resolveQueryBuilder=(connection,table)=>{let conn=resolveKnex(connection);return{client:conn,query:conn.table(table)}},getMergableMessages=schema=>{if(`_definition`in schema){let def=schema._definition;if(`messages`in def&&def.messages)return typeof def.messages==`string`?{}:def.messages}return{}};function setKnexConnection(connection){`keys`in this.$_terms&&this.$_terms.keys.forEach((item,index)=>{this.$_terms.keys[index].schema=setKnexConnection.call(item.schema,connection)});let toSet=this.$_knex||this.$_getFlag(`knexConnection`)||connection;return this.$_knex=toSet,this.$_setFlag(`knexConnection`,toSet)}function findKnexConnection(){if(this.$_knex)return this.$_knex;let connection=this.$_getFlag?.(`knexConnection`);if(connection)return connection;let current=this;for(;current&&`$_super`in current&¤t.$_super;)if(current=current.$_super,connection=current.$_getFlag?.(`knexConnection`),connection)return connection}const knex$1=(schema,root,args$1)=>{let prototype=Object.getPrototypeOf(schema),originalMessages=getMergableMessages(schema),mergedMessages=import_messages.merge(originalMessages,knexMessages);return prototype._definition.messages=mergedMessages,prototype.knex||=function(connection){return setKnexConnection.call(this,connection)},prototype.db||=function(connection){return setKnexConnection.call(this,connection)},prototype.uniqueInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},connection=findKnexConnection.call(this);return this.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let resolvedTable=isReference(table,root)?table.resolve(value,state,prefs):table,resolvedColumn=isReference(column,root)?column.resolve(value,state,prefs):column;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;try{let{client,query}=resolveQueryBuilder(connection,resolvedTable);if(query.select(resolvedColumn).limit(1),opts.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),opts.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await opts.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?error(`knex.unique`,{value,table:resolvedTable,column:resolvedColumn}):value}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`uniqueInDb`)},prototype.existsInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},connection=findKnexConnection.call(this);return this.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let resolvedTable=isReference(table,root)?table.resolve(value,state,prefs):table,resolvedColumn=isReference(column,root)?column.resolve(value,state,prefs):column;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;try{let{client,query}=resolveQueryBuilder(connection,resolvedTable);if(query.select(resolvedColumn).limit(1),opts.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),opts.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await opts.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?value:error(`knex.exists`,{value,table:resolvedTable,column:resolvedColumn})}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`existsInDb`)},RootFactory.generate(root,schema,args$1)};var De=t$5=>{throw TypeError(t$5)},Ne=(t$5,o,r)=>o.has(t$5)||De(`Cannot `+r),M=(t$5,o,r)=>(Ne(t$5,o,`read from private field`),r?r.call(t$5):o.get(t$5)),ee=(t$5,o,r)=>o.has(t$5)?De(`Cannot add the same private member more than once`):o instanceof WeakSet?o.add(t$5):o.set(t$5,r),X=(t$5,o,r,u)=>(Ne(t$5,o,`write to private field`),u?u.call(t$5,r):o.set(t$5,r),r),ne=(t$5,o,r)=>(Ne(t$5,o,`access private method`),r),LuxonError$1=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$1{constructor(o){super(`Invalid DateTime: ${o.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$1{constructor(o){super(`Invalid Interval: ${o.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$1{constructor(o){super(`Invalid Duration: ${o.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$1{},InvalidUnitError$1=class extends LuxonError$1{constructor(o){super(`Invalid unit ${o}`)}},InvalidArgumentError$1=class extends LuxonError$1{},ZoneIsAbstractError$1=class extends LuxonError$1{constructor(){super(`Zone is an abstract class`)}};const n$1=`numeric`,s$1=`short`,l$1=`long`,DATE_SHORT$1={year:n$1,month:n$1,day:n$1},DATE_MED$1={year:n$1,month:s$1,day:n$1},DATE_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1},DATE_FULL$1={year:n$1,month:l$1,day:n$1},DATE_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE$1={hour:n$1,minute:n$1},TIME_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},TIME_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE$1={hour:n$1,minute:n$1,hourCycle:`h23`},TIME_24_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:l$1},DATETIME_SHORT$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1,hour:n$1,minute:n$1},DATETIME_FULL$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},DATETIME_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};var Zone$1=class{get type(){throw new ZoneIsAbstractError$1}get name(){throw new ZoneIsAbstractError$1}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$1}offsetName(o,r){throw new ZoneIsAbstractError$1}formatOffset(o,r){throw new ZoneIsAbstractError$1}offset(o){throw new ZoneIsAbstractError$1}equals(o){throw new ZoneIsAbstractError$1}get isValid(){throw new ZoneIsAbstractError$1}};let singleton$1$1=null;var SystemZone$1=class SystemZone$1 extends Zone$1{static get instance(){return singleton$1$1===null&&(singleton$1$1=new SystemZone$1),singleton$1$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type===`system`}get isValid(){return!0}};const dtfCache$1=new Map;function makeDTF$1(t$5){let o=dtfCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:t$5,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache$1.set(t$5,o)),o}const typeToPos$1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$1(t$5,o){let r=t$5.format(o).replace(/\u200E/g,``),u=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,h,m,y,S,_,C,O]=u;return[y,h,m,S,_,C,O]}function partsOffset$1(t$5,o){let r=t$5.formatToParts(o),u=[];for(let h=0;h<r.length;h++){let{type:m,value:y}=r[h],S=typeToPos$1[m];m===`era`?u[S]=y:isUndefined$1(S)||(u[S]=parseInt(y,10))}return u}const ianaZoneCache$1=new Map;var IANAZone$1=class IANAZone$1 extends Zone$1{static create(o){let r=ianaZoneCache$1.get(o);return r===void 0&&ianaZoneCache$1.set(o,r=new IANAZone$1(o)),r}static resetCache(){ianaZoneCache$1.clear(),dtfCache$1.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=IANAZone$1.isValidZone(o)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u,this.name)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){if(!this.valid)return NaN;let r=new Date(o);if(isNaN(r))return NaN;let u=makeDTF$1(this.name),[h,m,y,S,_,C,O]=u.formatToParts?partsOffset$1(u,r):hackyOffset$1(u,r);S===`BC`&&(h=-Math.abs(h)+1);let R$1=objToLocalTS$1({year:h,month:m,day:y,hour:_===24?0:_,minute:C,second:O,millisecond:0}),U=+r,F=U%1e3;return U-=F>=0?F:1e3+F,(R$1-U)/(60*1e3)}equals(o){return o.type===`iana`&&o.name===this.name}get isValid(){return this.valid}};let intlLFCache$1={};function getCachedLF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlLFCache$1[r];return u||(u=new Intl.ListFormat(t$5,o),intlLFCache$1[r]=u),u}const intlDTCache$1=new Map;function getCachedDTF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlDTCache$1.get(r);return u===void 0&&(u=new Intl.DateTimeFormat(t$5,o),intlDTCache$1.set(r,u)),u}const intlNumCache$1=new Map;function getCachedINF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlNumCache$1.get(r);return u===void 0&&(u=new Intl.NumberFormat(t$5,o),intlNumCache$1.set(r,u)),u}const intlRelCache$1=new Map;function getCachedRTF$1(t$5,o={}){let{base:r,...u}=o,h=JSON.stringify([t$5,u]),m=intlRelCache$1.get(h);return m===void 0&&(m=new Intl.RelativeTimeFormat(t$5,o),intlRelCache$1.set(h,m)),m}let sysLocaleCache$1=null;function systemLocale$1(){return sysLocaleCache$1||(sysLocaleCache$1=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache$1)}const intlResolvedOptionsCache$1=new Map;function getCachedIntResolvedOptions$1(t$5){let o=intlResolvedOptionsCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(t$5).resolvedOptions(),intlResolvedOptionsCache$1.set(t$5,o)),o}const weekInfoCache$1=new Map;function getCachedWeekInfo$1(t$5){let o=weekInfoCache$1.get(t$5);if(!o){let r=new Intl.Locale(t$5);o=`getWeekInfo`in r?r.getWeekInfo():r.weekInfo,`minimalDays`in o||(o={...fallbackWeekSettings$1,...o}),weekInfoCache$1.set(t$5,o)}return o}function parseLocaleString$1(t$5){let o=t$5.indexOf(`-x-`);o!==-1&&(t$5=t$5.substring(0,o));let r=t$5.indexOf(`-u-`);if(r===-1)return[t$5];{let u,h;try{u=getCachedDTF$1(t$5).resolvedOptions(),h=t$5}catch{let _=t$5.substring(0,r);u=getCachedDTF$1(_).resolvedOptions(),h=_}let{numberingSystem:m,calendar:y}=u;return[h,m,y]}}function intlConfigString$1(t$5,o,r){return(r||o)&&(t$5.includes(`-u-`)||(t$5+=`-u`),r&&(t$5+=`-ca-${r}`),o&&(t$5+=`-nu-${o}`)),t$5}function mapMonths$1(t$5){let o=[];for(let r=1;r<=12;r++){let u=DateTime$1.utc(2009,r,1);o.push(t$5(u))}return o}function mapWeekdays$1(t$5){let o=[];for(let r=1;r<=7;r++){let u=DateTime$1.utc(2016,11,13+r);o.push(t$5(u))}return o}function listStuff$1(t$5,o,r,u){let h=t$5.listingMode();return h===`error`?null:h===`en`?r(o):u(o)}function supportsFastNumbers$1(t$5){return t$5.numberingSystem&&t$5.numberingSystem!==`latn`?!1:t$5.numberingSystem===`latn`||!t$5.locale||t$5.locale.startsWith(`en`)||getCachedIntResolvedOptions$1(t$5.locale).numberingSystem===`latn`}var PolyNumberFormatter$1=class{constructor(o,r,u){this.padTo=u.padTo||0,this.floor=u.floor||!1;let{padTo:h,floor:m,...y}=u;if(!r||Object.keys(y).length>0){let S={useGrouping:!1,...u};u.padTo>0&&(S.minimumIntegerDigits=u.padTo),this.inf=getCachedINF$1(o,S)}}format(o){if(this.inf){let r=this.floor?Math.floor(o):o;return this.inf.format(r)}else{let r=this.floor?Math.floor(o):roundTo$1(o,3);return padStart$1(r,this.padTo)}}},PolyDateFormatter$1=class{constructor(o,r,u){this.opts=u,this.originalZone=void 0;let h;if(this.opts.timeZone)this.dt=o;else if(o.zone.type===`fixed`){let y=-1*(o.offset/60),S=y>=0?`Etc/GMT+${y}`:`Etc/GMT${y}`;o.offset!==0&&IANAZone$1.create(S).valid?(h=S,this.dt=o):(h=`UTC`,this.dt=o.offset===0?o:o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone)}else o.zone.type===`system`?this.dt=o:o.zone.type===`iana`?(this.dt=o,h=o.zone.name):(h=`UTC`,this.dt=o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone);let m={...this.opts};m.timeZone=m.timeZone||h,this.dtf=getCachedDTF$1(r,m)}format(){return this.originalZone?this.formatToParts().map(({value:o})=>o).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let o=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?o.map(r=>{if(r.type===`timeZoneName`){let u=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:u}}else return r}):o}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(o,r,u){this.opts={style:`long`,...u},!r&&hasRelative$1()&&(this.rtf=getCachedRTF$1(o,u))}format(o,r){return this.rtf?this.rtf.format(o,r):formatRelativeTime$1(r,o,this.opts.numeric,this.opts.style!==`long`)}formatToParts(o,r){return this.rtf?this.rtf.formatToParts(o,r):[]}};const fallbackWeekSettings$1={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale$1=class Locale$1{static fromOpts(o){return Locale$1.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,r,u,h,m=!1){let y=o||Settings$1.defaultLocale,S=y||(m?`en-US`:systemLocale$1()),_=r||Settings$1.defaultNumberingSystem,C=u||Settings$1.defaultOutputCalendar,O=validateWeekSettings$1(h)||Settings$1.defaultWeekSettings;return new Locale$1(S,_,C,O,y)}static resetCache(){sysLocaleCache$1=null,intlDTCache$1.clear(),intlNumCache$1.clear(),intlRelCache$1.clear(),intlResolvedOptionsCache$1.clear(),weekInfoCache$1.clear()}static fromObject({locale:o,numberingSystem:r,outputCalendar:u,weekSettings:h}={}){return Locale$1.create(o,r,u,h)}constructor(o,r,u,h,m){let[y,S,_]=parseLocaleString$1(o);this.locale=y,this.numberingSystem=r||S||null,this.outputCalendar=u||_||null,this.weekSettings=h,this.intl=intlConfigString$1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=m,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers$1(this),this.fastNumbersCached}listingMode(){let o=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return o&&r?`en`:`intl`}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:Locale$1.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings$1(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,r=!1){return listStuff$1(this,o,months$1,()=>{let u=r?{month:o,day:`numeric`}:{month:o},h=r?`format`:`standalone`;return this.monthsCache[h][o]||(this.monthsCache[h][o]=mapMonths$1(m=>this.extract(m,u,`month`))),this.monthsCache[h][o]})}weekdays(o,r=!1){return listStuff$1(this,o,weekdays$1,()=>{let u=r?{weekday:o,year:`numeric`,month:`long`,day:`numeric`}:{weekday:o},h=r?`format`:`standalone`;return this.weekdaysCache[h][o]||(this.weekdaysCache[h][o]=mapWeekdays$1(m=>this.extract(m,u,`weekday`))),this.weekdaysCache[h][o]})}meridiems(){return listStuff$1(this,void 0,()=>meridiems$1,()=>{if(!this.meridiemCache){let o={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime$1.utc(2016,11,13,9),DateTime$1.utc(2016,11,13,19)].map(r=>this.extract(r,o,`dayperiod`))}return this.meridiemCache})}eras(o){return listStuff$1(this,o,eras$1,()=>{let r={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime$1.utc(-40,1,1),DateTime$1.utc(2017,1,1)].map(u=>this.extract(u,r,`era`))),this.eraCache[o]})}extract(o,r,u){let h=this.dtFormatter(o,r),m=h.formatToParts(),y=m.find(S=>S.type.toLowerCase()===u);return y?y.value:null}numberFormatter(o={}){return new PolyNumberFormatter$1(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,r={}){return new PolyDateFormatter$1(o,this.intl,r)}relFormatter(o={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF$1(this.intl,o)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions$1(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):fallbackWeekSettings$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton$2=null;var FixedOffsetZone$1=class FixedOffsetZone$1 extends Zone$1{static get utcInstance(){return singleton$2===null&&(singleton$2=new FixedOffsetZone$1(0)),singleton$2}static instance(o){return o===0?FixedOffsetZone$1.utcInstance:new FixedOffsetZone$1(o)}static parseSpecifier(o){if(o){let r=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone$1(signedOffset$1(r[1],r[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset$1(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset$1(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(o,r){return formatOffset$1(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type===`fixed`&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$1{constructor(o){super(),this.zoneName=o}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone$1(t$5,o){if(isUndefined$1(t$5)||t$5===null)return o;if(t$5 instanceof Zone$1)return t$5;if(isString$1(t$5)){let r=t$5.toLowerCase();return r===`default`?o:r===`local`||r===`system`?SystemZone$1.instance:r===`utc`||r===`gmt`?FixedOffsetZone$1.utcInstance:FixedOffsetZone$1.parseSpecifier(r)||IANAZone$1.create(t$5)}else return isNumber$1(t$5)?FixedOffsetZone$1.instance(t$5):typeof t$5==`object`&&`offset`in t$5&&typeof t$5.offset==`function`?t$5:new InvalidZone$1(t$5)}const numberingSystems$1={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16$1={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars$1=numberingSystems$1.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits$1(t$5){let o=parseInt(t$5,10);if(isNaN(o)){o=``;for(let r=0;r<t$5.length;r++){let u=t$5.charCodeAt(r);if(t$5[r].search(numberingSystems$1.hanidec)!==-1)o+=hanidecChars$1.indexOf(t$5[r]);else for(let h in numberingSystemsUTF16$1){let[m,y]=numberingSystemsUTF16$1[h];u>=m&&u<=y&&(o+=u-m)}}return parseInt(o,10)}else return o}const digitRegexCache$1=new Map;function resetDigitRegexCache$1(){digitRegexCache$1.clear()}function digitRegex$1({numberingSystem:t$5},o=``){let r=t$5||`latn`,u=digitRegexCache$1.get(r);u===void 0&&(u=new Map,digitRegexCache$1.set(r,u));let h=u.get(o);return h===void 0&&(h=RegExp(`${numberingSystems$1[r]}${o}`),u.set(o,h)),h}let now$1=()=>Date.now(),defaultZone$1=`system`,defaultLocale$1=null,defaultNumberingSystem$1=null,defaultOutputCalendar$1=null,twoDigitCutoffYear$1=60,throwOnInvalid$1,defaultWeekSettings$1=null;var Settings$1=class{static get now(){return now$1}static set now(o){now$1=o}static set defaultZone(o){defaultZone$1=o}static get defaultZone(){return normalizeZone$1(defaultZone$1,SystemZone$1.instance)}static get defaultLocale(){return defaultLocale$1}static set defaultLocale(o){defaultLocale$1=o}static get defaultNumberingSystem(){return defaultNumberingSystem$1}static set defaultNumberingSystem(o){defaultNumberingSystem$1=o}static get defaultOutputCalendar(){return defaultOutputCalendar$1}static set defaultOutputCalendar(o){defaultOutputCalendar$1=o}static get defaultWeekSettings(){return defaultWeekSettings$1}static set defaultWeekSettings(o){defaultWeekSettings$1=validateWeekSettings$1(o)}static get twoDigitCutoffYear(){return twoDigitCutoffYear$1}static set twoDigitCutoffYear(o){twoDigitCutoffYear$1=o%100}static get throwOnInvalid(){return throwOnInvalid$1}static set throwOnInvalid(o){throwOnInvalid$1=o}static resetCaches(){Locale$1.resetCache(),IANAZone$1.resetCache(),DateTime$1.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(o,r){this.reason=o,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder$1=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder$1=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(t$5,o){return new Invalid$1(`unit out of range`,`you specified ${o} (of type ${typeof o}) as a ${t$5}, which is invalid`)}function dayOfWeek$1(t$5,o,r){let u=new Date(Date.UTC(t$5,o-1,r));t$5<100&&t$5>=0&&u.setUTCFullYear(u.getUTCFullYear()-1900);let h=u.getUTCDay();return h===0?7:h}function computeOrdinal$1(t$5,o,r){return r+(isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1)[o-1]}function uncomputeOrdinal$1(t$5,o){let r=isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1,u=r.findIndex(m=>m<o),h=o-r[u];return{month:u+1,day:h}}function isoWeekdayToLocal$1(t$5,o){return(t$5-o+7)%7+1}function gregorianToWeek$1(t$5,o=4,r=1){let{year:u,month:h,day:m}=t$5,y=computeOrdinal$1(u,h,m),S=isoWeekdayToLocal$1(dayOfWeek$1(u,h,m),r),_=Math.floor((y-S+14-o)/7),C;return _<1?(C=u-1,_=weeksInWeekYear$1(C,o,r)):_>weeksInWeekYear$1(u,o,r)?(C=u+1,_=1):C=u,{weekYear:C,weekNumber:_,weekday:S,...timeObject$1(t$5)}}function weekToGregorian$1(t$5,o=4,r=1){let{weekYear:u,weekNumber:h,weekday:m}=t$5,y=isoWeekdayToLocal$1(dayOfWeek$1(u,1,o),r),S=daysInYear$1(u),_=h*7+m-y-7+o,C;_<1?(C=u-1,_+=daysInYear$1(C)):_>S?(C=u+1,_-=daysInYear$1(u)):C=u;let{month:O,day:I}=uncomputeOrdinal$1(C,_);return{year:C,month:O,day:I,...timeObject$1(t$5)}}function gregorianToOrdinal$1(t$5){let{year:o,month:r,day:u}=t$5,h=computeOrdinal$1(o,r,u);return{year:o,ordinal:h,...timeObject$1(t$5)}}function ordinalToGregorian$1(t$5){let{year:o,ordinal:r}=t$5,{month:u,day:h}=uncomputeOrdinal$1(o,r);return{year:o,month:u,day:h,...timeObject$1(t$5)}}function usesLocalWeekValues$1(t$5,o){if(!isUndefined$1(t$5.localWeekday)||!isUndefined$1(t$5.localWeekNumber)||!isUndefined$1(t$5.localWeekYear)){if(!isUndefined$1(t$5.weekday)||!isUndefined$1(t$5.weekNumber)||!isUndefined$1(t$5.weekYear))throw new ConflictingSpecificationError$1(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined$1(t$5.localWeekday)||(t$5.weekday=t$5.localWeekday),isUndefined$1(t$5.localWeekNumber)||(t$5.weekNumber=t$5.localWeekNumber),isUndefined$1(t$5.localWeekYear)||(t$5.weekYear=t$5.localWeekYear),delete t$5.localWeekday,delete t$5.localWeekNumber,delete t$5.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(t$5,o=4,r=1){let u=isInteger$1(t$5.weekYear),h=integerBetween$1(t$5.weekNumber,1,weeksInWeekYear$1(t$5.weekYear,o,r)),m=integerBetween$1(t$5.weekday,1,7);return u?h?m?!1:unitOutOfRange$1(`weekday`,t$5.weekday):unitOutOfRange$1(`week`,t$5.weekNumber):unitOutOfRange$1(`weekYear`,t$5.weekYear)}function hasInvalidOrdinalData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.ordinal,1,daysInYear$1(t$5.year));return o?r?!1:unitOutOfRange$1(`ordinal`,t$5.ordinal):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidGregorianData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.month,1,12),u=integerBetween$1(t$5.day,1,daysInMonth$1(t$5.year,t$5.month));return o?r?u?!1:unitOutOfRange$1(`day`,t$5.day):unitOutOfRange$1(`month`,t$5.month):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidTimeData$1(t$5){let{hour:o,minute:r,second:u,millisecond:h}=t$5,m=integerBetween$1(o,0,23)||o===24&&r===0&&u===0&&h===0,y=integerBetween$1(r,0,59),S=integerBetween$1(u,0,59),_=integerBetween$1(h,0,999);return m?y?S?_?!1:unitOutOfRange$1(`millisecond`,h):unitOutOfRange$1(`second`,u):unitOutOfRange$1(`minute`,r):unitOutOfRange$1(`hour`,o)}function isUndefined$1(t$5){return typeof t$5>`u`}function isNumber$1(t$5){return typeof t$5==`number`}function isInteger$1(t$5){return typeof t$5==`number`&&t$5%1==0}function isString$1(t$5){return typeof t$5==`string`}function isDate$1(t$5){return Object.prototype.toString.call(t$5)===`[object Date]`}function hasRelative$1(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(t$5){return Array.isArray(t$5)?t$5:[t$5]}function bestBy$1(t$5,o,r){if(t$5.length!==0)return t$5.reduce((u,h)=>{let m=[o(h),h];return u&&r(u[0],m[0])===u[0]?u:m},null)[1]}function pick$1(t$5,o){return o.reduce((r,u)=>(r[u]=t$5[u],r),{})}function hasOwnProperty$1(t$5,o){return Object.prototype.hasOwnProperty.call(t$5,o)}function validateWeekSettings$1(t$5){if(t$5==null)return null;if(typeof t$5!=`object`)throw new InvalidArgumentError$1(`Week settings must be an object`);if(!integerBetween$1(t$5.firstDay,1,7)||!integerBetween$1(t$5.minimalDays,1,7)||!Array.isArray(t$5.weekend)||t$5.weekend.some(o=>!integerBetween$1(o,1,7)))throw new InvalidArgumentError$1(`Invalid week settings`);return{firstDay:t$5.firstDay,minimalDays:t$5.minimalDays,weekend:Array.from(t$5.weekend)}}function integerBetween$1(t$5,o,r){return isInteger$1(t$5)&&t$5>=o&&t$5<=r}function floorMod$1(t$5,o){return t$5-o*Math.floor(t$5/o)}function padStart$1(t$5,o=2){let r=t$5<0,u;return u=r?`-`+(``+-t$5).padStart(o,`0`):(``+t$5).padStart(o,`0`),u}function parseInteger$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseInt(t$5,10)}function parseFloating$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseFloat(t$5)}function parseMillis$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``)){let o=parseFloat(`0.`+t$5)*1e3;return Math.floor(o)}}function roundTo$1(t$5,o,r=!1){let u=10**o;return(r?Math.trunc:Math.round)(t$5*u)/u}function isLeapYear$1(t$5){return t$5%4==0&&(t$5%100!=0||t$5%400==0)}function daysInYear$1(t$5){return isLeapYear$1(t$5)?366:365}function daysInMonth$1(t$5,o){let r=floorMod$1(o-1,12)+1,u=t$5+(o-r)/12;return r===2?isLeapYear$1(u)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS$1(t$5){let o=Date.UTC(t$5.year,t$5.month-1,t$5.day,t$5.hour,t$5.minute,t$5.second,t$5.millisecond);return t$5.year<100&&t$5.year>=0&&(o=new Date(o),o.setUTCFullYear(t$5.year,t$5.month-1,t$5.day)),+o}function firstWeekOffset$1(t$5,o,r){return-isoWeekdayToLocal$1(dayOfWeek$1(t$5,1,o),r)+o-1}function weeksInWeekYear$1(t$5,o=4,r=1){let u=firstWeekOffset$1(t$5,o,r),h=firstWeekOffset$1(t$5+1,o,r);return(daysInYear$1(t$5)-u+h)/7}function untruncateYear$1(t$5){return t$5>99?t$5:t$5>Settings$1.twoDigitCutoffYear?1900+t$5:2e3+t$5}function parseZoneInfo$1(t$5,o,r,u=null){let h=new Date(t$5),m={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};u&&(m.timeZone=u);let y={timeZoneName:o,...m},S=new Intl.DateTimeFormat(r,y).formatToParts(h).find(_=>_.type.toLowerCase()===`timezonename`);return S?S.value:null}function signedOffset$1(t$5,o){let r=parseInt(t$5,10);Number.isNaN(r)&&(r=0);let u=parseInt(o,10)||0,h=r<0||Object.is(r,-0)?-u:u;return r*60+h}function asNumber$1(t$5){let o=Number(t$5);if(typeof t$5==`boolean`||t$5===``||Number.isNaN(o))throw new InvalidArgumentError$1(`Invalid unit value ${t$5}`);return o}function normalizeObject$1(t$5,o){let r={};for(let u in t$5)if(hasOwnProperty$1(t$5,u)){let h=t$5[u];if(h==null)continue;r[o(u)]=asNumber$1(h)}return r}function formatOffset$1(t$5,o){let r=Math.trunc(Math.abs(t$5/60)),u=Math.trunc(Math.abs(t$5%60)),h=t$5>=0?`+`:`-`;switch(o){case`short`:return`${h}${padStart$1(r,2)}:${padStart$1(u,2)}`;case`narrow`:return`${h}${r}${u>0?`:${u}`:``}`;case`techie`:return`${h}${padStart$1(r,2)}${padStart$1(u,2)}`;default:throw RangeError(`Value format ${o} is out of range for property format`)}}function timeObject$1(t$5){return pick$1(t$5,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong$1=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort$1=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow$1=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months$1(t$5){switch(t$5){case`narrow`:return[...monthsNarrow$1];case`short`:return[...monthsShort$1];case`long`:return[...monthsLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong$1=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort$1=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow$1=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays$1(t$5){switch(t$5){case`narrow`:return[...weekdaysNarrow$1];case`short`:return[...weekdaysShort$1];case`long`:return[...weekdaysLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems$1=[`AM`,`PM`],erasLong$1=[`Before Christ`,`Anno Domini`],erasShort$1=[`BC`,`AD`],erasNarrow$1=[`B`,`A`];function eras$1(t$5){switch(t$5){case`narrow`:return[...erasNarrow$1];case`short`:return[...erasShort$1];case`long`:return[...erasLong$1];default:return null}}function meridiemForDateTime$1(t$5){return meridiems$1[t$5.hour<12?0:1]}function weekdayForDateTime$1(t$5,o){return weekdays$1(o)[t$5.weekday-1]}function monthForDateTime$1(t$5,o){return months$1(o)[t$5.month-1]}function eraForDateTime$1(t$5,o){return eras$1(o)[t$5.year<0?0:1]}function formatRelativeTime$1(t$5,o,r=`always`,u=!1){let h={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},m=[`hours`,`minutes`,`seconds`].indexOf(t$5)===-1;if(r===`auto`&&m){let I=t$5===`days`;switch(o){case 1:return I?`tomorrow`:`next ${h[t$5][0]}`;case-1:return I?`yesterday`:`last ${h[t$5][0]}`;case 0:return I?`today`:`this ${h[t$5][0]}`}}let y=Object.is(o,-0)||o<0,S=Math.abs(o),_=S===1,C=h[t$5],O=u?_?C[1]:C[2]||C[1]:_?h[t$5][0]:t$5;return y?`${S} ${O} ago`:`in ${S} ${O}`}function stringifyTokens$1(t$5,o){let r=``;for(let u of t$5)u.literal?r+=u.val:r+=o(u.val);return r}const macroTokenToFormatOpts$1={D:DATE_SHORT$1,DD:DATE_MED$1,DDD:DATE_FULL$1,DDDD:DATE_HUGE$1,t:TIME_SIMPLE$1,tt:TIME_WITH_SECONDS$1,ttt:TIME_WITH_SHORT_OFFSET$1,tttt:TIME_WITH_LONG_OFFSET$1,T:TIME_24_SIMPLE$1,TT:TIME_24_WITH_SECONDS$1,TTT:TIME_24_WITH_SHORT_OFFSET$1,TTTT:TIME_24_WITH_LONG_OFFSET$1,f:DATETIME_SHORT$1,ff:DATETIME_MED$1,fff:DATETIME_FULL$1,ffff:DATETIME_HUGE$1,F:DATETIME_SHORT_WITH_SECONDS$1,FF:DATETIME_MED_WITH_SECONDS$1,FFF:DATETIME_FULL_WITH_SECONDS$1,FFFF:DATETIME_HUGE_WITH_SECONDS$1};var Formatter$1=class Formatter$1{static create(o,r={}){return new Formatter$1(o,r)}static parseFormat(o){let r=null,u=``,h=!1,m=[];for(let y=0;y<o.length;y++){let S=o.charAt(y);S===`'`?(u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),r=null,u=``,h=!h):h||S===r?u+=S:(u.length>0&&m.push({literal:/^\s+$/.test(u),val:u}),u=S,r=S)}return u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),m}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts$1[o]}constructor(o,r){this.opts=r,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...r}).format()}dtFormatter(o,r={}){return this.loc.dtFormatter(o,{...this.opts,...r})}formatDateTime(o,r){return this.dtFormatter(o,r).format()}formatDateTimeParts(o,r){return this.dtFormatter(o,r).formatToParts()}formatInterval(o,r){return this.dtFormatter(o.start,r).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,r){return this.dtFormatter(o,r).resolvedOptions()}num(o,r=0){if(this.opts.forceSimple)return padStart$1(o,r);let u={...this.opts};return r>0&&(u.padTo=r),this.loc.numberFormatter(u).format(o)}formatDateTimeFromString(o,r){let u=this.loc.listingMode()===`en`,h=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,m=(U,F)=>this.loc.extract(o,U,F),y=U=>o.isOffsetFixed&&o.offset===0&&U.allowZ?`Z`:o.isValid?o.zone.formatOffset(o.ts,U.format):``,S=()=>u?meridiemForDateTime$1(o):m({hour:`numeric`,hourCycle:`h12`},`dayperiod`),_=(U,F)=>u?monthForDateTime$1(o,U):m(F?{month:U}:{month:U,day:`numeric`},`month`),C=(U,F)=>u?weekdayForDateTime$1(o,U):m(F?{weekday:U}:{weekday:U,month:`long`,day:`numeric`},`weekday`),O=U=>{let F=Formatter$1.macroTokenToFormatOpts(U);return F?this.formatWithSystemDefault(o,F):U},I=U=>u?eraForDateTime$1(o,U):m({era:U},`era`),R$1=U=>{switch(U){case`S`:return this.num(o.millisecond);case`u`:case`SSS`:return this.num(o.millisecond,3);case`s`:return this.num(o.second);case`ss`:return this.num(o.second,2);case`uu`:return this.num(Math.floor(o.millisecond/10),2);case`uuu`:return this.num(Math.floor(o.millisecond/100));case`m`:return this.num(o.minute);case`mm`:return this.num(o.minute,2);case`h`:return this.num(o.hour%12==0?12:o.hour%12);case`hh`:return this.num(o.hour%12==0?12:o.hour%12,2);case`H`:return this.num(o.hour);case`HH`:return this.num(o.hour,2);case`Z`:return y({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return y({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return y({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return o.zone.offsetName(o.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return o.zone.offsetName(o.ts,{format:`long`,locale:this.loc.locale});case`z`:return o.zoneName;case`a`:return S();case`d`:return h?m({day:`numeric`},`day`):this.num(o.day);case`dd`:return h?m({day:`2-digit`},`day`):this.num(o.day,2);case`c`:return this.num(o.weekday);case`ccc`:return C(`short`,!0);case`cccc`:return C(`long`,!0);case`ccccc`:return C(`narrow`,!0);case`E`:return this.num(o.weekday);case`EEE`:return C(`short`,!1);case`EEEE`:return C(`long`,!1);case`EEEEE`:return C(`narrow`,!1);case`L`:return h?m({month:`numeric`,day:`numeric`},`month`):this.num(o.month);case`LL`:return h?m({month:`2-digit`,day:`numeric`},`month`):this.num(o.month,2);case`LLL`:return _(`short`,!0);case`LLLL`:return _(`long`,!0);case`LLLLL`:return _(`narrow`,!0);case`M`:return h?m({month:`numeric`},`month`):this.num(o.month);case`MM`:return h?m({month:`2-digit`},`month`):this.num(o.month,2);case`MMM`:return _(`short`,!1);case`MMMM`:return _(`long`,!1);case`MMMMM`:return _(`narrow`,!1);case`y`:return h?m({year:`numeric`},`year`):this.num(o.year);case`yy`:return h?m({year:`2-digit`},`year`):this.num(o.year.toString().slice(-2),2);case`yyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,4);case`yyyyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,6);case`G`:return I(`short`);case`GG`:return I(`long`);case`GGGGG`:return I(`narrow`);case`kk`:return this.num(o.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(o.weekYear,4);case`W`:return this.num(o.weekNumber);case`WW`:return this.num(o.weekNumber,2);case`n`:return this.num(o.localWeekNumber);case`nn`:return this.num(o.localWeekNumber,2);case`ii`:return this.num(o.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(o.localWeekYear,4);case`o`:return this.num(o.ordinal);case`ooo`:return this.num(o.ordinal,3);case`q`:return this.num(o.quarter);case`qq`:return this.num(o.quarter,2);case`X`:return this.num(Math.floor(o.ts/1e3));case`x`:return this.num(o.ts);default:return O(U)}};return stringifyTokens$1(Formatter$1.parseFormat(r),R$1)}formatDurationFromString(o,r){let u=_=>{switch(_[0]){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:return`hour`;case`d`:return`day`;case`w`:return`week`;case`M`:return`month`;case`y`:return`year`;default:return null}},h=_=>C=>{let O=u(C);return O?this.num(_.get(O),C.length):C},m=Formatter$1.parseFormat(r),y=m.reduce((_,{literal:C,val:O})=>C?_:_.concat(O),[]),S=o.shiftTo(...y.map(u).filter(_=>_));return stringifyTokens$1(m,h(S))}};const ianaRegex$1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$1(...t$5){let o=t$5.reduce((r,u)=>r+u.source,``);return RegExp(`^${o}$`)}function combineExtractors$1(...t$5){return o=>t$5.reduce(([r,u,h],m)=>{let[y,S,_]=m(o,h);return[{...r,...y},S||u,_]},[{},null,1]).slice(0,2)}function parse$9(t$5,...o){if(t$5==null)return[null,null];for(let[r,u]of o){let h=r.exec(t$5);if(h)return u(h)}return[null,null]}function simpleParse$1(...t$5){return(o,r)=>{let u={},h;for(h=0;h<t$5.length;h++)u[t$5[h]]=parseInteger$1(o[r+h]);return[u,null,r+h]}}const offsetRegex$1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$1=`(?:${offsetRegex$1.source}?(?:\\[(${ianaRegex$1.source})\\])?)?`,isoTimeBaseRegex$1=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source}${isoExtendedZone$1}`),isoTimeExtensionRegex$1=RegExp(`(?:T${isoTimeRegex$1.source})?`),isoYmdRegex$1=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$1=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$1=/(\d{4})-?(\d{3})/,extractISOWeekData$1=simpleParse$1(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData$1=simpleParse$1(`year`,`ordinal`),sqlYmdRegex$1=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source} ?(?:${offsetRegex$1.source}|(${ianaRegex$1.source}))?`),sqlTimeExtensionRegex$1=RegExp(`(?: ${sqlTimeRegex$1.source})?`);function int$1(t$5,o,r){let u=t$5[o];return isUndefined$1(u)?r:parseInteger$1(u)}function extractISOYmd$1(t$5,o){return[{year:int$1(t$5,o),month:int$1(t$5,o+1,1),day:int$1(t$5,o+2,1)},null,o+3]}function extractISOTime$1(t$5,o){return[{hours:int$1(t$5,o,0),minutes:int$1(t$5,o+1,0),seconds:int$1(t$5,o+2,0),milliseconds:parseMillis$1(t$5[o+3])},null,o+4]}function extractISOOffset$1(t$5,o){let r=!t$5[o]&&!t$5[o+1],u=signedOffset$1(t$5[o+1],t$5[o+2]),h=r?null:FixedOffsetZone$1.instance(u);return[{},h,o+3]}function extractIANAZone$1(t$5,o){let r=t$5[o]?IANAZone$1.create(t$5[o]):null;return[{},r,o+1]}const isoTimeOnly$1=RegExp(`^T?${isoTimeBaseRegex$1.source}$`),isoDuration$1=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration$1(t$5){let[o,r,u,h,m,y,S,_,C]=t$5,O=o[0]===`-`,I=_&&_[0]===`-`,R$1=(U,F=!1)=>U!==void 0&&(F||U&&O)?-U:U;return[{years:R$1(parseFloating$1(r)),months:R$1(parseFloating$1(u)),weeks:R$1(parseFloating$1(h)),days:R$1(parseFloating$1(m)),hours:R$1(parseFloating$1(y)),minutes:R$1(parseFloating$1(S)),seconds:R$1(parseFloating$1(_),_===`-0`),milliseconds:R$1(parseMillis$1(C),I)}]}const obsOffsets$1={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings$1(t$5,o,r,u,h,m,y){let S={year:o.length===2?untruncateYear$1(parseInteger$1(o)):parseInteger$1(o),month:monthsShort$1.indexOf(r)+1,day:parseInteger$1(u),hour:parseInteger$1(h),minute:parseInteger$1(m)};return y&&(S.second=parseInteger$1(y)),t$5&&(S.weekday=t$5.length>3?weekdaysLong$1.indexOf(t$5)+1:weekdaysShort$1.indexOf(t$5)+1),S}const rfc2822$1=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822$1(t$5){let[,o,r,u,h,m,y,S,_,C,O,I]=t$5,R$1=fromStrings$1(o,h,u,r,m,y,S),U;return U=_?obsOffsets$1[_]:C?0:signedOffset$1(O,I),[R$1,new FixedOffsetZone$1(U)]}function preprocessRFC2822$1(t$5){return t$5.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850$1=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,h,u,r,m,y,S),FixedOffsetZone$1.utcInstance]}function extractASCII$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,S,r,u,h,m,y),FixedOffsetZone$1.utcInstance]}const isoYmdWithTimeExtensionRegex$1=combineRegexes$1(isoYmdRegex$1,isoTimeExtensionRegex$1),isoWeekWithTimeExtensionRegex$1=combineRegexes$1(isoWeekRegex$1,isoTimeExtensionRegex$1),isoOrdinalWithTimeExtensionRegex$1=combineRegexes$1(isoOrdinalRegex$1,isoTimeExtensionRegex$1),isoTimeCombinedRegex$1=combineRegexes$1(isoTimeRegex$1),extractISOYmdTimeAndOffset$1=combineExtractors$1(extractISOYmd$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOWeekTimeAndOffset$1=combineExtractors$1(extractISOWeekData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOOrdinalDateAndTime$1=combineExtractors$1(extractISOOrdinalData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOTimeAndOffset$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseISODate$1(t$5){return parse$9(t$5,[isoYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[isoWeekWithTimeExtensionRegex$1,extractISOWeekTimeAndOffset$1],[isoOrdinalWithTimeExtensionRegex$1,extractISOOrdinalDateAndTime$1],[isoTimeCombinedRegex$1,extractISOTimeAndOffset$1])}function parseRFC2822Date$1(t$5){return parse$9(preprocessRFC2822$1(t$5),[rfc2822$1,extractRFC2822$1])}function parseHTTPDate$1(t$5){return parse$9(t$5,[rfc1123$1,extractRFC1123Or850$1],[rfc850$1,extractRFC1123Or850$1],[ascii$1,extractASCII$1])}function parseISODuration$1(t$5){return parse$9(t$5,[isoDuration$1,extractISODuration$1])}const extractISOTimeOnly$1=combineExtractors$1(extractISOTime$1);function parseISOTimeOnly$1(t$5){return parse$9(t$5,[isoTimeOnly$1,extractISOTimeOnly$1])}const sqlYmdWithTimeExtensionRegex$1=combineRegexes$1(sqlYmdRegex$1,sqlTimeExtensionRegex$1),sqlTimeCombinedRegex$1=combineRegexes$1(sqlTimeRegex$1),extractISOTimeOffsetAndIANAZone$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseSQL$1(t$5){return parse$9(t$5,[sqlYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[sqlTimeCombinedRegex$1,extractISOTimeOffsetAndIANAZone$1])}const INVALID$2$2=`Invalid Duration`,lowOrderMatrix$1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix$1={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix$1},daysInYearAccurate$1=146097/400,daysInMonthAccurate$1=146097/4800,accurateMatrix$1={years:{quarters:4,months:12,weeks:daysInYearAccurate$1/7,days:daysInYearAccurate$1,hours:daysInYearAccurate$1*24,minutes:daysInYearAccurate$1*24*60,seconds:daysInYearAccurate$1*24*60*60,milliseconds:daysInYearAccurate$1*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate$1/28,days:daysInYearAccurate$1/4,hours:daysInYearAccurate$1*24/4,minutes:daysInYearAccurate$1*24*60/4,seconds:daysInYearAccurate$1*24*60*60/4,milliseconds:daysInYearAccurate$1*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate$1/7,days:daysInMonthAccurate$1,hours:daysInMonthAccurate$1*24,minutes:daysInMonthAccurate$1*24*60,seconds:daysInMonthAccurate$1*24*60*60,milliseconds:daysInMonthAccurate$1*24*60*60*1e3},...lowOrderMatrix$1},orderedUnits$1$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits$1=orderedUnits$1$1.slice(0).reverse();function clone$1$1(t$5,o,r=!1){let u={values:r?o.values:{...t$5.values,...o.values||{}},loc:t$5.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||t$5.conversionAccuracy,matrix:o.matrix||t$5.matrix};return new Duration$1(u)}function durationToMillis$1(t$5,o){let r=o.milliseconds??0;for(let u of reverseUnits$1.slice(1))o[u]&&(r+=o[u]*t$5[u].milliseconds);return r}function normalizeValues$1(t$5,o){let r=durationToMillis$1(t$5,o)<0?-1:1;orderedUnits$1$1.reduceRight((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]*r,y=t$5[h][u],S=Math.floor(m/y);o[h]+=S*r,o[u]-=S*y*r}return h},null),orderedUnits$1$1.reduce((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]%1;o[u]-=m,o[h]+=m*t$5[u][h]}return h},null)}function removeZeroes$1(t$5){let o={};for(let[r,u]of Object.entries(t$5))u!==0&&(o[r]=u);return o}var Duration$1=class Duration$1{constructor(o){let r=o.conversionAccuracy===`longterm`||!1,u=r?accurateMatrix$1:casualMatrix$1;o.matrix&&(u=o.matrix),this.values=o.values,this.loc=o.loc||Locale$1.create(),this.conversionAccuracy=r?`longterm`:`casual`,this.invalid=o.invalid||null,this.matrix=u,this.isLuxonDuration=!0}static fromMillis(o,r){return Duration$1.fromObject({milliseconds:o},r)}static fromObject(o,r={}){if(typeof o!=`object`||!o)throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${o===null?`null`:typeof o}`);return new Duration$1({values:normalizeObject$1(o,Duration$1.normalizeUnit),loc:Locale$1.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(o){if(isNumber$1(o))return Duration$1.fromMillis(o);if(Duration$1.isDuration(o))return o;if(typeof o==`object`)return Duration$1.fromObject(o);throw new InvalidArgumentError$1(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,r){let[u]=parseISODuration$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,r){let[u]=parseISOTimeOnly$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Duration is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(u);return new Duration$1({invalid:u})}static normalizeUnit(o){let r={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[o&&o.toLowerCase()];if(!r)throw new InvalidUnitError$1(o);return r}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,r={}){let u={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter$1.create(this.loc,u).formatDurationFromString(this,o):INVALID$2$2}toHuman(o={}){if(!this.isValid)return INVALID$2$2;let r=orderedUnits$1$1.map(u=>{let h=this.values[u];return isUndefined$1(h)?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...o,unit:u.slice(0,-1)}).format(h)}).filter(u=>u);return this.loc.listFormatter({type:`conjunction`,style:o.listStyle||`narrow`,...o}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o=`P`;return this.years!==0&&(o+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+`M`),this.weeks!==0&&(o+=this.weeks+`W`),this.days!==0&&(o+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+=`T`),this.hours!==0&&(o+=this.hours+`H`),this.minutes!==0&&(o+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+`S`),o===`P`&&(o+=`T0S`),o}toISOTime(o={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...o,includeOffset:!1},DateTime$1.fromMillis(r,{zone:`UTC`}).toISOTime(o))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o),u={};for(let h of orderedUnits$1$1)(hasOwnProperty$1(r.values,h)||hasOwnProperty$1(this.values,h))&&(u[h]=r.get(h)+this.get(h));return clone$1$1(this,{values:u},!0)}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return this.plus(r.negate())}mapUnits(o){if(!this.isValid)return this;let r={};for(let u of Object.keys(this.values))r[u]=asNumber$1(o(this.values[u],u));return clone$1$1(this,{values:r},!0)}get(o){return this[Duration$1.normalizeUnit(o)]}set(o){if(!this.isValid)return this;let r={...this.values,...normalizeObject$1(o,Duration$1.normalizeUnit)};return clone$1$1(this,{values:r})}reconfigure({locale:o,numberingSystem:r,conversionAccuracy:u,matrix:h}={}){let y={loc:this.loc.clone({locale:o,numberingSystem:r}),matrix:h,conversionAccuracy:u};return clone$1$1(this,y)}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;let o=this.toObject();return normalizeValues$1(this.matrix,o),clone$1$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;let o=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid||o.length===0)return this;o=o.map(y=>Duration$1.normalizeUnit(y));let r={},u={},h=this.toObject(),m;for(let y of orderedUnits$1$1)if(o.indexOf(y)>=0){m=y;let S=0;for(let C in u)S+=this.matrix[C][y]*u[C],u[C]=0;isNumber$1(h[y])&&(S+=h[y]);let _=Math.trunc(S);r[y]=_,u[y]=(S*1e3-_*1e3)/1e3}else isNumber$1(h[y])&&(u[y]=h[y]);for(let y in u)u[y]!==0&&(r[m]+=y===m?u[y]:u[y]/this.matrix[m][y]);return normalizeValues$1(this.matrix,r),clone$1$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let o={};for(let r of Object.keys(this.values))o[r]=this.values[r]===0?0:-this.values[r];return clone$1$1(this,{values:o},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function r(u,h){return u===void 0||u===0?h===void 0||h===0:u===h}for(let u of orderedUnits$1$1)if(!r(this.values[u],o.values[u]))return!1;return!0}};const INVALID$1$4=`Invalid Interval`;function validateStartEnd$1(t$5,o){return!t$5||!t$5.isValid?Interval$1.invalid(`missing or invalid start`):!o||!o.isValid?Interval$1.invalid(`missing or invalid end`):o<t$5?Interval$1.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${t$5.toISO()} and end=${o.toISO()}`):null}var Interval$1=class Interval$1{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Interval is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(u);return new Interval$1({invalid:u})}static fromDateTimes(o,r){let u=friendlyDateTime$1(o),h=friendlyDateTime$1(r),m=validateStartEnd$1(u,h);return m??new Interval$1({start:u,end:h})}static after(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h,h.plus(u))}static before(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h.minus(u),h)}static fromISO(o,r){let[u,h]=(o||``).split(`/`,2);if(u&&h){let m,y;try{m=DateTime$1.fromISO(u,r),y=m.isValid}catch{y=!1}let S,_;try{S=DateTime$1.fromISO(h,r),_=S.isValid}catch{_=!1}if(y&&_)return Interval$1.fromDateTimes(m,S);if(y){let C=Duration$1.fromISO(h,r);if(C.isValid)return Interval$1.after(m,C)}else if(_){let C=Duration$1.fromISO(u,r);if(C.isValid)return Interval$1.before(S,C)}}return Interval$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(o=`milliseconds`){return this.isValid?this.toDuration(o).get(o):NaN}count(o=`milliseconds`,r){if(!this.isValid)return NaN;let u=this.start.startOf(o,r),h;return h=r!=null&&r.useLocaleWeeks?this.end.reconfigure({locale:u.locale}):this.end,h=h.startOf(o,r),Math.floor(h.diff(u,o).get(o))+(h.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:r}={}){return this.isValid?Interval$1.fromDateTimes(o||this.s,r||this.e):this}splitAt(...o){if(!this.isValid)return[];let r=o.map(friendlyDateTime$1).filter(y=>this.contains(y)).sort((y,S)=>y.toMillis()-S.toMillis()),u=[],{s:h}=this,m=0;for(;h<this.e;){let y=r[m]||this.e,S=+y>+this.e?this.e:y;u.push(Interval$1.fromDateTimes(h,S)),h=S,m+=1}return u}splitBy(o){let r=Duration$1.fromDurationLike(o);if(!this.isValid||!r.isValid||r.as(`milliseconds`)===0)return[];let{s:u}=this,h=1,m,y=[];for(;u<this.e;){let S=this.start.plus(r.mapUnits(_=>_*h));m=+S>+this.e?this.e:S,y.push(Interval$1.fromDateTimes(u,m)),u=m,h+=1}return y}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;let r=this.s>o.s?this.s:o.s,u=this.e<o.e?this.e:o.e;return r>=u?null:Interval$1.fromDateTimes(r,u)}union(o){if(!this.isValid)return this;let r=this.s<o.s?this.s:o.s,u=this.e>o.e?this.e:o.e;return Interval$1.fromDateTimes(r,u)}static merge(o){let[r,u]=o.sort((h,m)=>h.s-m.s).reduce(([h,m],y)=>m?m.overlaps(y)||m.abutsStart(y)?[h,m.union(y)]:[h.concat([m]),y]:[h,y],[[],null]);return u&&r.push(u),r}static xor(o){let r=null,u=0,h=[],m=o.map(_=>[{time:_.s,type:`s`},{time:_.e,type:`e`}]),y=Array.prototype.concat(...m),S=y.sort((_,C)=>_.time-C.time);for(let _ of S)u+=_.type===`s`?1:-1,u===1?r=_.time:(r&&+r!=+_.time&&h.push(Interval$1.fromDateTimes(r,_.time)),r=null);return Interval$1.merge(h)}difference(...o){return Interval$1.xor([this].concat(o)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1$4}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.s.loc.clone(r),o).formatInterval(this):INVALID$1$4}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1$4}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1$4}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1$4}toFormat(o,{separator:r=` – `}={}){return this.isValid?`${this.s.toFormat(o)}${r}${this.e.toFormat(o)}`:INVALID$1$4}toDuration(o,r){return this.isValid?this.e.diff(this.s,o,r):Duration$1.invalid(this.invalidReason)}mapEndpoints(o){return Interval$1.fromDateTimes(o(this.s),o(this.e))}},Info$1=class{static hasDST(o=Settings$1.defaultZone){let r=DateTime$1.now().setZone(o).set({month:12});return!o.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(o){return IANAZone$1.isValidZone(o)}static normalizeZone(o){return normalizeZone$1(o,Settings$1.defaultZone)}static getStartOfWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getWeekendDays().slice()}static months(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o)}static monthsFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o,!0)}static weekdays(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o)}static weekdaysFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o,!0)}static meridiems({locale:o=null}={}){return Locale$1.create(o).meridiems()}static eras(o=`short`,{locale:r=null}={}){return Locale$1.create(r,null,`gregory`).eras(o)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(t$5,o){let r=h=>h.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),u=r(o)-r(t$5);return Math.floor(Duration$1.fromMillis(u).as(`days`))}function highOrderDiffs$1(t$5,o,r){let u=[[`years`,(_,C)=>C.year-_.year],[`quarters`,(_,C)=>C.quarter-_.quarter+(C.year-_.year)*4],[`months`,(_,C)=>C.month-_.month+(C.year-_.year)*12],[`weeks`,(_,C)=>{let O=dayDiff$1(_,C);return(O-O%7)/7}],[`days`,dayDiff$1]],h={},m=t$5,y,S;for(let[_,C]of u)r.indexOf(_)>=0&&(y=_,h[_]=C(t$5,o),S=m.plus(h),S>o?(h[_]--,t$5=m.plus(h),t$5>o&&(S=t$5,h[_]--,t$5=m.plus(h))):t$5=S);return[t$5,h,S,y]}function diff$3(t$5,o,r,u){let[h,m,y,S]=highOrderDiffs$1(t$5,o,r),_=o-h,C=r.filter(I=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(I)>=0);C.length===0&&(y<o&&(y=h.plus({[S]:1})),y!==h&&(m[S]=(m[S]||0)+_/(y-h)));let O=Duration$1.fromObject(m,u);return C.length>0?Duration$1.fromMillis(_,u).shiftTo(...C).plus(O):O}const MISSING_FTP$1=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit$1(t$5,o=r=>r){return{regex:t$5,deser:([r])=>o(parseDigits$1(r))}}const NBSP$1=`\xA0`,spaceOrNBSP$1=`[ ${NBSP$1}]`,spaceOrNBSPRegExp$1=new RegExp(spaceOrNBSP$1,`g`);function fixListRegex$1(t$5){return t$5.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp$1,spaceOrNBSP$1)}function stripInsensitivities$1(t$5){return t$5.replace(/\./g,``).replace(spaceOrNBSPRegExp$1,` `).toLowerCase()}function oneOf$1(t$5,o){return t$5===null?null:{regex:RegExp(t$5.map(fixListRegex$1).join(`|`)),deser:([r])=>t$5.findIndex(u=>stripInsensitivities$1(r)===stripInsensitivities$1(u))+o}}function offset$1(t$5,o){return{regex:t$5,deser:([,r,u])=>signedOffset$1(r,u),groups:o}}function simple$1(t$5){return{regex:t$5,deser:([o])=>o}}function escapeToken$1(t$5){return t$5.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken$1(t$5,o){let r=digitRegex$1(o),u=digitRegex$1(o,`{2}`),h=digitRegex$1(o,`{3}`),m=digitRegex$1(o,`{4}`),y=digitRegex$1(o,`{6}`),S=digitRegex$1(o,`{1,2}`),_=digitRegex$1(o,`{1,3}`),C=digitRegex$1(o,`{1,6}`),O=digitRegex$1(o,`{1,9}`),I=digitRegex$1(o,`{2,4}`),R$1=digitRegex$1(o,`{4,6}`),U=Y=>({regex:RegExp(escapeToken$1(Y.val)),deser:([K])=>K,literal:!0}),G=(Y=>{if(t$5.literal)return U(Y);switch(Y.val){case`G`:return oneOf$1(o.eras(`short`),0);case`GG`:return oneOf$1(o.eras(`long`),0);case`y`:return intUnit$1(C);case`yy`:return intUnit$1(I,untruncateYear$1);case`yyyy`:return intUnit$1(m);case`yyyyy`:return intUnit$1(R$1);case`yyyyyy`:return intUnit$1(y);case`M`:return intUnit$1(S);case`MM`:return intUnit$1(u);case`MMM`:return oneOf$1(o.months(`short`,!0),1);case`MMMM`:return oneOf$1(o.months(`long`,!0),1);case`L`:return intUnit$1(S);case`LL`:return intUnit$1(u);case`LLL`:return oneOf$1(o.months(`short`,!1),1);case`LLLL`:return oneOf$1(o.months(`long`,!1),1);case`d`:return intUnit$1(S);case`dd`:return intUnit$1(u);case`o`:return intUnit$1(_);case`ooo`:return intUnit$1(h);case`HH`:return intUnit$1(u);case`H`:return intUnit$1(S);case`hh`:return intUnit$1(u);case`h`:return intUnit$1(S);case`mm`:return intUnit$1(u);case`m`:return intUnit$1(S);case`q`:return intUnit$1(S);case`qq`:return intUnit$1(u);case`s`:return intUnit$1(S);case`ss`:return intUnit$1(u);case`S`:return intUnit$1(_);case`SSS`:return intUnit$1(h);case`u`:return simple$1(O);case`uu`:return simple$1(S);case`uuu`:return intUnit$1(r);case`a`:return oneOf$1(o.meridiems(),0);case`kkkk`:return intUnit$1(m);case`kk`:return intUnit$1(I,untruncateYear$1);case`W`:return intUnit$1(S);case`WW`:return intUnit$1(u);case`E`:case`c`:return intUnit$1(r);case`EEE`:return oneOf$1(o.weekdays(`short`,!1),1);case`EEEE`:return oneOf$1(o.weekdays(`long`,!1),1);case`ccc`:return oneOf$1(o.weekdays(`short`,!0),1);case`cccc`:return oneOf$1(o.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset$1(RegExp(`([+-]${S.source})(?::(${u.source}))?`),2);case`ZZZ`:return offset$1(RegExp(`([+-]${S.source})(${u.source})?`),2);case`z`:return simple$1(/[a-z_+-/]{1,256}?/i);case` `:return simple$1(/[^\S\n\r]/);default:return U(Y)}})(t$5)||{invalidReason:MISSING_FTP$1};return G.token=t$5,G}const partTypeStyleToTokenVal$1={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart$1(t$5,o,r){let{type:u,value:h}=t$5;if(u===`literal`){let _=/^\s+$/.test(h);return{literal:!_,val:_?` `:h}}let m=o[u],y=u;u===`hour`&&(y=o.hour12==null?o.hourCycle==null?r.hour12?`hour12`:`hour24`:o.hourCycle===`h11`||o.hourCycle===`h12`?`hour12`:`hour24`:o.hour12?`hour12`:`hour24`);let S=partTypeStyleToTokenVal$1[y];if(typeof S==`object`&&(S=S[m]),S)return{literal:!1,val:S}}function buildRegex$1(t$5){return[`^${t$5.map(r=>r.regex).reduce((r,u)=>`${r}(${u.source})`,``)}$`,t$5]}function match$1(t$5,o,r){let u=t$5.match(o);if(u){let h={},m=1;for(let y in r)if(hasOwnProperty$1(r,y)){let S=r[y],_=S.groups?S.groups+1:1;!S.literal&&S.token&&(h[S.token.val[0]]=S.deser(u.slice(m,m+_))),m+=_}return[u,h]}else return[u,{}]}function dateTimeFromMatches$1(t$5){let o=m=>{switch(m){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},r=null,u;return isUndefined$1(t$5.z)||(r=IANAZone$1.create(t$5.z)),isUndefined$1(t$5.Z)||(r||=new FixedOffsetZone$1(t$5.Z),u=t$5.Z),isUndefined$1(t$5.q)||(t$5.M=(t$5.q-1)*3+1),isUndefined$1(t$5.h)||(t$5.h<12&&t$5.a===1?t$5.h+=12:t$5.h===12&&t$5.a===0&&(t$5.h=0)),t$5.G===0&&t$5.y&&(t$5.y=-t$5.y),isUndefined$1(t$5.u)||(t$5.S=parseMillis$1(t$5.u)),[Object.keys(t$5).reduce((m,y)=>{let S=o(y);return S&&(m[S]=t$5[y]),m},{}),r,u]}let dummyDateTimeCache$1=null;function getDummyDateTime$1(){return dummyDateTimeCache$1||=DateTime$1.fromMillis(1555555555555),dummyDateTimeCache$1}function maybeExpandMacroToken$1(t$5,o){if(t$5.literal)return t$5;let r=Formatter$1.macroTokenToFormatOpts(t$5.val),u=formatOptsToTokens$1(r,o);return u==null||u.includes(void 0)?t$5:u}function expandMacroTokens$1(t$5,o){return Array.prototype.concat(...t$5.map(r=>maybeExpandMacroToken$1(r,o)))}var TokenParser$1=class{constructor(o,r){if(this.locale=o,this.format=r,this.tokens=expandMacroTokens$1(Formatter$1.parseFormat(r),o),this.units=this.tokens.map(u=>unitForToken$1(u,o)),this.disqualifyingUnit=this.units.find(u=>u.invalidReason),!this.disqualifyingUnit){let[u,h]=buildRegex$1(this.units);this.regex=RegExp(u,`i`),this.handlers=h}}explainFromTokens(o){if(this.isValid){let[r,u]=match$1(o,this.regex,this.handlers),[h,m,y]=u?dateTimeFromMatches$1(u):[null,null,void 0];if(hasOwnProperty$1(u,`a`)&&hasOwnProperty$1(u,`H`))throw new ConflictingSpecificationError$1(`Can't include meridiem when specifying 24-hour format`);return{input:o,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:u,result:h,zone:m,specificOffset:y}}else return{input:o,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens$1(t$5,o,r){return new TokenParser$1(t$5,r).explainFromTokens(o)}function parseFromTokens$1(t$5,o,r){let{result:u,zone:h,specificOffset:m,invalidReason:y}=explainFromTokens$1(t$5,o,r);return[u,h,m,y]}function formatOptsToTokens$1(t$5,o){if(!t$5)return null;let u=Formatter$1.create(o,t$5).dtFormatter(getDummyDateTime$1()),h=u.formatToParts(),m=u.resolvedOptions();return h.map(y=>tokenForPart$1(y,t$5,m))}const INVALID$5=`Invalid DateTime`,MAX_DATE$1=864e13;function unsupportedZone$1(t$5){return new Invalid$1(`unsupported zone`,`the zone "${t$5.name}" is not supported`)}function possiblyCachedWeekData$1(t$5){return t$5.weekData===null&&(t$5.weekData=gregorianToWeek$1(t$5.c)),t$5.weekData}function possiblyCachedLocalWeekData$1(t$5){return t$5.localWeekData===null&&(t$5.localWeekData=gregorianToWeek$1(t$5.c,t$5.loc.getMinDaysInFirstWeek(),t$5.loc.getStartOfWeek())),t$5.localWeekData}function clone$2(t$5,o){let r={ts:t$5.ts,zone:t$5.zone,c:t$5.c,o:t$5.o,loc:t$5.loc,invalid:t$5.invalid};return new DateTime$1({...r,...o,old:r})}function fixOffset$1(t$5,o,r){let u=t$5-o*60*1e3,h=r.offset(u);if(o===h)return[u,o];u-=(h-o)*60*1e3;let m=r.offset(u);return h===m?[u,h]:[t$5-Math.min(h,m)*60*1e3,Math.max(h,m)]}function tsToObj$1(t$5,o){t$5+=o*60*1e3;let r=new Date(t$5);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS$1(t$5,o,r){return fixOffset$1(objToLocalTS$1(t$5),o,r)}function adjustTime$1(t$5,o){let r=t$5.o,u=t$5.c.year+Math.trunc(o.years),h=t$5.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,m={...t$5.c,year:u,month:h,day:Math.min(t$5.c.day,daysInMonth$1(u,h))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},y=Duration$1.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as(`milliseconds`),S=objToLocalTS$1(m),[_,C]=fixOffset$1(S,r,t$5.zone);return y!==0&&(_+=y,C=t$5.zone.offset(_)),{ts:_,o:C}}function parseDataToDateTime$1(t$5,o,r,u,h,m){let{setZone:y,zone:S}=r;if(t$5&&Object.keys(t$5).length!==0||o){let _=o||S,C=DateTime$1.fromObject(t$5,{...r,zone:_,specificOffset:m});return y?C:C.setZone(S)}else return DateTime$1.invalid(new Invalid$1(`unparsable`,`the input "${h}" can't be parsed as ${u}`))}function toTechFormat$1(t$5,o,r=!0){return t$5.isValid?Formatter$1.create(Locale$1.create(`en-US`),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t$5,o):null}function toISODate$1(t$5,o){let r=t$5.c.year>9999||t$5.c.year<0,u=``;return r&&t$5.c.year>=0&&(u+=`+`),u+=padStart$1(t$5.c.year,r?6:4),o?(u+=`-`,u+=padStart$1(t$5.c.month),u+=`-`,u+=padStart$1(t$5.c.day)):(u+=padStart$1(t$5.c.month),u+=padStart$1(t$5.c.day)),u}function toISOTime$1(t$5,o,r,u,h,m){let y=padStart$1(t$5.c.hour);return o?(y+=`:`,y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=`:`)):y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=padStart$1(t$5.c.second),(t$5.c.millisecond!==0||!u)&&(y+=`.`,y+=padStart$1(t$5.c.millisecond,3))),h&&(t$5.isOffsetFixed&&t$5.offset===0&&!m?y+=`Z`:t$5.o<0?(y+=`-`,y+=padStart$1(Math.trunc(-t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(-t$5.o%60))):(y+=`+`,y+=padStart$1(Math.trunc(t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(t$5.o%60)))),m&&(y+=`[`+t$5.zone.ianaName+`]`),y}const defaultUnitValues$1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$2=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits$1=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits$1=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit$1(t$5){let o={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[t$5.toLowerCase()];if(!o)throw new InvalidUnitError$1(t$5);return o}function normalizeUnitWithLocalWeeks$1(t$5){switch(t$5.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit$1(t$5)}}function guessOffsetForZone$1(t$5){if(zoneOffsetTs$1===void 0&&(zoneOffsetTs$1=Settings$1.now()),t$5.type!==`iana`)return t$5.offset(zoneOffsetTs$1);let o=t$5.name,r=zoneOffsetGuessCache$1.get(o);return r===void 0&&(r=t$5.offset(zoneOffsetTs$1),zoneOffsetGuessCache$1.set(o,r)),r}function quickDT$1(t$5,o){let r=normalizeZone$1(o.zone,Settings$1.defaultZone);if(!r.isValid)return DateTime$1.invalid(unsupportedZone$1(r));let u=Locale$1.fromObject(o),h,m;if(isUndefined$1(t$5.year))h=Settings$1.now();else{for(let _ of orderedUnits$2)isUndefined$1(t$5[_])&&(t$5[_]=defaultUnitValues$1[_]);let y=hasInvalidGregorianData$1(t$5)||hasInvalidTimeData$1(t$5);if(y)return DateTime$1.invalid(y);let S=guessOffsetForZone$1(r);[h,m]=objToTS$1(t$5,S,r)}return new DateTime$1({ts:h,zone:r,loc:u,o:m})}function diffRelative$1(t$5,o,r){let u=isUndefined$1(r.round)?!0:r.round,h=(y,S)=>(y=roundTo$1(y,u||r.calendary?0:2,!0),o.loc.clone(r).relFormatter(r).format(y,S)),m=y=>r.calendary?o.hasSame(t$5,y)?0:o.startOf(y).diff(t$5.startOf(y),y).get(y):o.diff(t$5,y).get(y);if(r.unit)return h(m(r.unit),r.unit);for(let y of r.units){let S=m(y);if(Math.abs(S)>=1)return h(S,y)}return h(t$5>o?-0:0,r.units[r.units.length-1])}function lastOpts$1(t$5){let o={},r;return t$5.length>0&&typeof t$5[t$5.length-1]==`object`?(o=t$5[t$5.length-1],r=Array.from(t$5).slice(0,t$5.length-1)):r=Array.from(t$5),[o,r]}let zoneOffsetTs$1;const zoneOffsetGuessCache$1=new Map;var DateTime$1=class DateTime$1{constructor(o){let r=o.zone||Settings$1.defaultZone,u=o.invalid||(Number.isNaN(o.ts)?new Invalid$1(`invalid input`):null)||(r.isValid?null:unsupportedZone$1(r));this.ts=isUndefined$1(o.ts)?Settings$1.now():o.ts;let h=null,m=null;if(!u)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(r))[h,m]=[o.old.c,o.old.o];else{let S=isNumber$1(o.o)&&!o.old?o.o:r.offset(this.ts);h=tsToObj$1(this.ts,S),u=Number.isNaN(h.year)?new Invalid$1(`invalid input`):null,h=u?null:h,m=u?null:S}this._zone=r,this.loc=o.loc||Locale$1.create(),this.invalid=u,this.weekData=null,this.localWeekData=null,this.c=h,this.o=m,this.isLuxonDateTime=!0}static now(){return new DateTime$1({})}static local(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static utc(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return o.zone=FixedOffsetZone$1.utcInstance,quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static fromJSDate(o,r={}){let u=isDate$1(o)?o.valueOf():NaN;if(Number.isNaN(u))return DateTime$1.invalid(`invalid input`);let h=normalizeZone$1(r.zone,Settings$1.defaultZone);return h.isValid?new DateTime$1({ts:u,zone:h,loc:Locale$1.fromObject(r)}):DateTime$1.invalid(unsupportedZone$1(h))}static fromMillis(o,r={}){if(isNumber$1(o))return o<-MAX_DATE$1||o>MAX_DATE$1?DateTime$1.invalid(`Timestamp out of range`):new DateTime$1({ts:o,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,r={}){if(isNumber$1(o))return new DateTime$1({ts:o*1e3,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromSeconds requires a numerical input`)}static fromObject(o,r={}){o||={};let u=normalizeZone$1(r.zone,Settings$1.defaultZone);if(!u.isValid)return DateTime$1.invalid(unsupportedZone$1(u));let h=Locale$1.fromObject(r),m=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:y,startOfWeek:S}=usesLocalWeekValues$1(m,h),_=Settings$1.now(),C=isUndefined$1(r.specificOffset)?u.offset(_):r.specificOffset,O=!isUndefined$1(m.ordinal),I=!isUndefined$1(m.year),R$1=!isUndefined$1(m.month)||!isUndefined$1(m.day),U=I||R$1,F=m.weekYear||m.weekNumber;if((U||O)&&F)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(R$1&&O)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let G=F||m.weekday&&!U,Y,K,te$1=tsToObj$1(_,C);G?(Y=orderedWeekUnits$1,K=defaultWeekUnitValues$1,te$1=gregorianToWeek$1(te$1,y,S)):O?(Y=orderedOrdinalUnits$1,K=defaultOrdinalUnitValues$1,te$1=gregorianToOrdinal$1(te$1)):(Y=orderedUnits$2,K=defaultUnitValues$1);let de=!1;for(let re$5 of Y){let fe=m[re$5];isUndefined$1(fe)?de?m[re$5]=K[re$5]:m[re$5]=te$1[re$5]:de=!0}let me=G?hasInvalidWeekData$1(m,y,S):O?hasInvalidOrdinalData$1(m):hasInvalidGregorianData$1(m),q=me||hasInvalidTimeData$1(m);if(q)return DateTime$1.invalid(q);let ge=G?weekToGregorian$1(m,y,S):O?ordinalToGregorian$1(m):m,[ce,pe]=objToTS$1(ge,C,u),oe=new DateTime$1({ts:ce,zone:u,o:pe,loc:h});return m.weekday&&U&&o.weekday!==oe.weekday?DateTime$1.invalid(`mismatched weekday`,`you can't specify both a weekday of ${m.weekday} and a date of ${oe.toISO()}`):oe.isValid?oe:DateTime$1.invalid(oe.invalid)}static fromISO(o,r={}){let[u,h]=parseISODate$1(o);return parseDataToDateTime$1(u,h,r,`ISO 8601`,o)}static fromRFC2822(o,r={}){let[u,h]=parseRFC2822Date$1(o);return parseDataToDateTime$1(u,h,r,`RFC 2822`,o)}static fromHTTP(o,r={}){let[u,h]=parseHTTPDate$1(o);return parseDataToDateTime$1(u,h,r,`HTTP`,r)}static fromFormat(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormat requires an input string and a format`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0}),[S,_,C,O]=parseFromTokens$1(y,o,r);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r}`,o,C)}static fromString(o,r,u={}){return DateTime$1.fromFormat(o,r,u)}static fromSQL(o,r={}){let[u,h]=parseSQL$1(o);return parseDataToDateTime$1(u,h,r,`SQL`,o)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the DateTime is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(u);return new DateTime$1({invalid:u})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,r={}){let u=formatOptsToTokens$1(o,Locale$1.fromObject(r));return u?u.map(h=>h?h.val:null).join(``):null}static expandFormat(o,r={}){return expandMacroTokens$1(Formatter$1.parseFormat(o),Locale$1.fromObject(r)).map(h=>h.val).join(``)}static resetCache(){zoneOffsetTs$1=void 0,zoneOffsetGuessCache$1.clear()}get(o){return this[o]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let o=864e5,r=6e4,u=objToLocalTS$1(this.c),h=this.zone.offset(u-o),m=this.zone.offset(u+o),y=this.zone.offset(u-h*r),S=this.zone.offset(u-m*r);if(y===S)return[this];let _=u-y*r,C=u-S*r,O=tsToObj$1(_,y),I=tsToObj$1(C,S);return O.hour===I.hour&&O.minute===I.minute&&O.second===I.second&&O.millisecond===I.millisecond?[clone$2(this,{ts:_}),clone$2(this,{ts:C})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){let{locale:r,numberingSystem:u,calendar:h}=Formatter$1.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:r,numberingSystem:u,outputCalendar:h}}toUTC(o=0,r={}){return this.setZone(FixedOffsetZone$1.instance(o),r)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(o,{keepLocalTime:r=!1,keepCalendarTime:u=!1}={}){if(o=normalizeZone$1(o,Settings$1.defaultZone),o.equals(this.zone))return this;if(o.isValid){let h=this.ts;if(r||u){let m=o.offset(this.ts),y=this.toObject();[h]=objToTS$1(y,m,o)}return clone$2(this,{ts:h,zone:o})}else return DateTime$1.invalid(unsupportedZone$1(o))}reconfigure({locale:o,numberingSystem:r,outputCalendar:u}={}){let h=this.loc.clone({locale:o,numberingSystem:r,outputCalendar:u});return clone$2(this,{loc:h})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;let r=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:u,startOfWeek:h}=usesLocalWeekValues$1(r,this.loc),m=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),y=!isUndefined$1(r.ordinal),S=!isUndefined$1(r.year),_=!isUndefined$1(r.month)||!isUndefined$1(r.day),C=S||_,O=r.weekYear||r.weekNumber;if((C||y)&&O)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(_&&y)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let I;m?I=weekToGregorian$1({...gregorianToWeek$1(this.c,u,h),...r},u,h):isUndefined$1(r.ordinal)?(I={...this.toObject(),...r},isUndefined$1(r.day)&&(I.day=Math.min(daysInMonth$1(I.year,I.month),I.day))):I=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...r});let[R$1,U]=objToTS$1(I,this.o,this.zone);return clone$2(this,{ts:R$1,o:U})}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return clone$2(this,adjustTime$1(this,r))}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o).negate();return clone$2(this,adjustTime$1(this,r))}startOf(o,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let u={},h=Duration$1.normalizeUnit(o);switch(h){case`years`:u.month=1;case`quarters`:case`months`:u.day=1;case`weeks`:case`days`:u.hour=0;case`hours`:u.minute=0;case`minutes`:u.second=0;case`seconds`:u.millisecond=0;break}if(h===`weeks`)if(r){let m=this.loc.getStartOfWeek(),{weekday:y}=this;y<m&&(u.weekNumber=this.weekNumber-1),u.weekday=m}else u.weekday=1;if(h===`quarters`){let m=Math.ceil(this.month/3);u.month=(m-1)*3+1}return this.set(u)}endOf(o,r){return this.isValid?this.plus({[o]:1}).startOf(o,r).minus(1):this}toFormat(o,r={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,o):INVALID$5}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.loc.clone(r),o).formatDateTime(this):INVALID$5}toLocaleParts(o={}){return this.isValid?Formatter$1.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o=`extended`,suppressSeconds:r=!1,suppressMilliseconds:u=!1,includeOffset:h=!0,extendedZone:m=!1}={}){if(!this.isValid)return null;let y=o===`extended`,S=toISODate$1(this,y);return S+=`T`,S+=toISOTime$1(this,y,r,u,h,m),S}toISODate({format:o=`extended`}={}){return this.isValid?toISODate$1(this,o===`extended`):null}toISOWeekDate(){return toTechFormat$1(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:r=!1,includeOffset:u=!0,includePrefix:h=!1,extendedZone:m=!1,format:y=`extended`}={}){return this.isValid?(h?`T`:``)+toISOTime$1(this,y===`extended`,r,o,u,m):null}toRFC2822(){return toTechFormat$1(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat$1(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:r=!1,includeOffsetSpace:u=!0}={}){let h=`HH:mm:ss.SSS`;return(r||o)&&(u&&(h+=` `),r?h+=`z`:o&&(h+=`ZZ`)),toTechFormat$1(this,h,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID$5}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(o={}){if(!this.isValid)return{};let r={...this.c};return o.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,r=`milliseconds`,u={}){if(!this.isValid||!o.isValid)return Duration$1.invalid(`created by diffing an invalid DateTime`);let h={locale:this.locale,numberingSystem:this.numberingSystem,...u},m=maybeArray$1(r).map(Duration$1.normalizeUnit),y=o.valueOf()>this.valueOf(),S=y?this:o,_=y?o:this,C=diff$3(S,_,m,h);return y?C.negate():C}diffNow(o=`milliseconds`,r={}){return this.diff(DateTime$1.now(),o,r)}until(o){return this.isValid?Interval$1.fromDateTimes(this,o):this}hasSame(o,r,u){if(!this.isValid)return!1;let h=o.valueOf(),m=this.setZone(o.zone,{keepLocalTime:!0});return m.startOf(r,u)<=h&&h<=m.endOf(r,u)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;let r=o.base||DateTime$1.fromObject({},{zone:this.zone}),u=o.padding?this<r?-o.padding:o.padding:0,h=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],m=o.unit;return Array.isArray(o.unit)&&(h=o.unit,m=void 0),diffRelative$1(r,this.plus(u),{...o,numeric:`always`,units:h,unit:m})}toRelativeCalendar(o={}){return this.isValid?diffRelative$1(o.base||DateTime$1.fromObject({},{zone:this.zone}),this,{...o,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`min requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.min)}static max(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`max requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.max)}static fromFormatExplain(o,r,u={}){let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return explainFromTokens$1(y,o,r)}static fromStringExplain(o,r,u={}){return DateTime$1.fromFormatExplain(o,r,u)}static buildFormatParser(o,r={}){let{locale:u=null,numberingSystem:h=null}=r,m=Locale$1.fromOpts({locale:u,numberingSystem:h,defaultToEN:!0});return new TokenParser$1(m,o)}static fromFormatParser(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormatParser requires an input string and a format parser`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});if(!y.equals(r.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${y}, but the format parser was created for ${r.locale}`);let{result:S,zone:_,specificOffset:C,invalidReason:O}=r.explainFromTokens(o);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r.format}`,o,C)}static get DATE_SHORT(){return DATE_SHORT$1}static get DATE_MED(){return DATE_MED$1}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY$1}static get DATE_FULL(){return DATE_FULL$1}static get DATE_HUGE(){return DATE_HUGE$1}static get TIME_SIMPLE(){return TIME_SIMPLE$1}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS$1}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET$1}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET$1}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE$1}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS$1}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET$1}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET$1}static get DATETIME_SHORT(){return DATETIME_SHORT$1}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS$1}static get DATETIME_MED(){return DATETIME_MED$1}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS$1}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY$1}static get DATETIME_FULL(){return DATETIME_FULL$1}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS$1}static get DATETIME_HUGE(){return DATETIME_HUGE$1}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS$1}};function friendlyDateTime$1(t$5){if(DateTime$1.isDateTime(t$5))return t$5;if(t$5&&t$5.valueOf&&isNumber$1(t$5.valueOf()))return DateTime$1.fromJSDate(t$5);if(t$5&&typeof t$5==`object`)return DateTime$1.fromObject(t$5);throw new InvalidArgumentError$1(`Unknown datetime argument: ${t$5}, of type ${typeof t$5}`)}const countries=Object.freeze(new Map([[`AD`,`Andorra`],[`AE`,`United Arab Emirates`],[`AF`,`Afghanistan`],[`AG`,`Antigua and Barbuda`],[`AI`,`Anguilla`],[`AL`,`Albania`],[`AM`,`Armenia`],[`AO`,`Angola`],[`AQ`,`Antarctica`],[`AR`,`Argentina`],[`AS`,`American Samoa`],[`AT`,`Austria`],[`AU`,`Australia`],[`AW`,`Aruba`],[`AX`,`Aland Islands`],[`AZ`,`Azerbaijan`],[`BA`,`Bosnia and Herzegovina`],[`BB`,`Barbados`],[`BD`,`Bangladesh`],[`BE`,`Belgium`],[`BF`,`Burkina Faso`],[`BG`,`Bulgaria`],[`BH`,`Bahrain`],[`BI`,`Burundi`],[`BJ`,`Benin`],[`BL`,`Saint Barthelemy`],[`BM`,`Bermuda`],[`BN`,`Brunei`],[`BO`,`Bolivia`],[`BQ`,`Bonaire, Saint Eustatius and Saba`],[`BR`,`Brazil`],[`BS`,`Bahamas`],[`BT`,`Bhutan`],[`BV`,`Bouvet Island`],[`BW`,`Botswana`],[`BY`,`Belarus`],[`BZ`,`Belize`],[`CA`,`Canada`],[`CC`,`Cocos Islands`],[`CD`,`Democratic Republic of the Congo`],[`CF`,`Central African Republic`],[`CG`,`Republic of the Congo`],[`CH`,`Switzerland`],[`CI`,`Ivory Coast`],[`CK`,`Cook Islands`],[`CL`,`Chile`],[`CM`,`Cameroon`],[`CN`,`China`],[`CO`,`Colombia`],[`CR`,`Costa Rica`],[`CU`,`Cuba`],[`CV`,`Cape Verde`],[`CW`,`Curacao`],[`CX`,`Christmas Island`],[`CY`,`Cyprus`],[`CZ`,`Czech Republic`],[`DE`,`Germany`],[`DJ`,`Djibouti`],[`DK`,`Denmark`],[`DM`,`Dominica`],[`DO`,`Dominican Republic`],[`DZ`,`Algeria`],[`EC`,`Ecuador`],[`EE`,`Estonia`],[`EG`,`Egypt`],[`EH`,`Western Sahara`],[`ER`,`Eritrea`],[`ES`,`Spain`],[`ET`,`Ethiopia`],[`FI`,`Finland`],[`FJ`,`Fiji`],[`FK`,`Falkland Islands`],[`FM`,`Micronesia`],[`FO`,`Faroe Islands`],[`FR`,`France`],[`GA`,`Gabon`],[`GB`,`United Kingdom`],[`GD`,`Grenada`],[`GE`,`Georgia`],[`GF`,`French Guiana`],[`GG`,`Guernsey`],[`GH`,`Ghana`],[`GI`,`Gibraltar`],[`GL`,`Greenland`],[`GM`,`Gambia`],[`GN`,`Guinea`],[`GP`,`Guadeloupe`],[`GQ`,`Equatorial Guinea`],[`GR`,`Greece`],[`GS`,`South Georgia and the South Sandwich Islands`],[`GT`,`Guatemala`],[`GU`,`Guam`],[`GW`,`Guinea-Bissau`],[`GY`,`Guyana`],[`HK`,`Hong Kong`],[`HM`,`Heard Island and McDonald Islands`],[`HN`,`Honduras`],[`HR`,`Croatia`],[`HT`,`Haiti`],[`HU`,`Hungary`],[`ID`,`Indonesia`],[`IE`,`Ireland`],[`IL`,`Israel`],[`IM`,`Isle of Man`],[`IN`,`India`],[`IO`,`British Indian Ocean Territory`],[`IQ`,`Iraq`],[`IR`,`Iran`],[`IS`,`Iceland`],[`IT`,`Italy`],[`JE`,`Jersey`],[`JM`,`Jamaica`],[`JO`,`Jordan`],[`JP`,`Japan`],[`KE`,`Kenya`],[`KG`,`Kyrgyzstan`],[`KH`,`Cambodia`],[`KI`,`Kiribati`],[`KM`,`Comoros`],[`KN`,`Saint Kitts and Nevis`],[`KP`,`North Korea`],[`KR`,`South Korea`],[`KW`,`Kuwait`],[`KY`,`Cayman Islands`],[`KZ`,`Kazakhstan`],[`LA`,`Laos`],[`LB`,`Lebanon`],[`LC`,`Saint Lucia`],[`LI`,`Liechtenstein`],[`LK`,`Sri Lanka`],[`LR`,`Liberia`],[`LS`,`Lesotho`],[`LT`,`Lithuania`],[`LU`,`Luxembourg`],[`LV`,`Latvia`],[`LY`,`Libya`],[`MA`,`Morocco`],[`MC`,`Monaco`],[`MD`,`Moldova`],[`ME`,`Montenegro`],[`MF`,`Saint Martin`],[`MG`,`Madagascar`],[`MH`,`Marshall Islands`],[`MK`,`Macedonia`],[`ML`,`Mali`],[`MM`,`Myanmar`],[`MN`,`Mongolia`],[`MO`,`Macao`],[`MP`,`Northern Mariana Islands`],[`MQ`,`Martinique`],[`MR`,`Mauritania`],[`MS`,`Montserrat`],[`MT`,`Malta`],[`MU`,`Mauritius`],[`MV`,`Maldives`],[`MW`,`Malawi`],[`MX`,`Mexico`],[`MY`,`Malaysia`],[`MZ`,`Mozambique`],[`NA`,`Namibia`],[`NC`,`New Caledonia`],[`NE`,`Niger`],[`NF`,`Norfolk Island`],[`NG`,`Nigeria`],[`NI`,`Nicaragua`],[`NL`,`Netherlands`],[`NO`,`Norway`],[`NP`,`Nepal`],[`NR`,`Nauru`],[`NU`,`Niue`],[`NZ`,`New Zealand`],[`OM`,`Oman`],[`PA`,`Panama`],[`PE`,`Peru`],[`PF`,`French Polynesia`],[`PG`,`Papua New Guinea`],[`PH`,`Philippines`],[`PK`,`Pakistan`],[`PL`,`Poland`],[`PM`,`Saint Pierre and Miquelon`],[`PN`,`Pitcairn`],[`PR`,`Puerto Rico`],[`PS`,`Palestinian Territory`],[`PT`,`Portugal`],[`PW`,`Palau`],[`PY`,`Paraguay`],[`QA`,`Qatar`],[`RE`,`Reunion`],[`RO`,`Romania`],[`RS`,`Serbia`],[`RU`,`Russia`],[`RW`,`Rwanda`],[`SA`,`Saudi Arabia`],[`SB`,`Solomon Islands`],[`SC`,`Seychelles`],[`SD`,`Sudan`],[`SE`,`Sweden`],[`SG`,`Singapore`],[`SH`,`Saint Helena`],[`SI`,`Slovenia`],[`SJ`,`Svalbard and Jan Mayen`],[`SK`,`Slovakia`],[`SL`,`Sierra Leone`],[`SM`,`San Marino`],[`SN`,`Senegal`],[`SO`,`Somalia`],[`SR`,`Suriname`],[`SS`,`South Sudan`],[`ST`,`Sao Tome and Principe`],[`SV`,`El Salvador`],[`SX`,`Sint Maarten`],[`SY`,`Syria`],[`SZ`,`Swaziland`],[`TC`,`Turks and Caicos Islands`],[`TD`,`Chad`],[`TF`,`French Southern Territories`],[`TG`,`Togo`],[`TH`,`Thailand`],[`TJ`,`Tajikistan`],[`TK`,`Tokelau`],[`TL`,`East Timor`],[`TM`,`Turkmenistan`],[`TN`,`Tunisia`],[`TO`,`Tonga`],[`TR`,`Turkey`],[`TT`,`Trinidad and Tobago`],[`TV`,`Tuvalu`],[`TW`,`Taiwan`],[`TZ`,`Tanzania`],[`UA`,`Ukraine`],[`UG`,`Uganda`],[`UM`,`United States Minor Outlying Islands`],[`US`,`United States`],[`UY`,`Uruguay`],[`UZ`,`Uzbekistan`],[`VA`,`Vatican`],[`VC`,`Saint Vincent and the Grenadines`],[`VE`,`Venezuela`],[`VG`,`British Virgin Islands`],[`VI`,`U.S. Virgin Islands`],[`VN`,`Vietnam`],[`VU`,`Vanuatu`],[`WF`,`Wallis and Futuna`],[`WS`,`Samoa`],[`XK`,`Kosovo`],[`YE`,`Yemen`],[`YT`,`Mayotte`],[`ZA`,`South Africa`],[`ZM`,`Zambia`],[`ZW`,`Zimbabwe`]])),timezones=Object.freeze(new Map([[`AD`,`Europe/Andorra`],[`AE`,`Asia/Dubai`],[`AF`,`Asia/Kabul`],[`AG`,`America/Antigua`],[`AI`,`America/Anguilla`],[`AL`,`Europe/Tirane`],[`AM`,`Asia/Yerevan`],[`AO`,`Africa/Luanda`],[`AQ`,`Antarctica/Casey`],[`AR`,`America/Argentina/Buenos_Aires`],[`AS`,`Pacific/Pago_Pago`],[`AT`,`Europe/Vienna`],[`AU`,`Australia/Sydney`],[`AW`,`America/Aruba`],[`AX`,`Europe/Mariehamn`],[`AZ`,`Asia/Baku`],[`BA`,`Europe/Sarajevo`],[`BB`,`America/Barbados`],[`BD`,`Asia/Dhaka`],[`BE`,`Europe/Brussels`],[`BF`,`Africa/Ouagadougou`],[`BG`,`Europe/Sofia`],[`BH`,`Asia/Bahrain`],[`BI`,`Africa/Bujumbura`],[`BJ`,`Africa/Porto-Novo`],[`BL`,`America/St_Barthelemy`],[`BM`,`Atlantic/Bermuda`],[`BN`,`Asia/Brunei`],[`BO`,`America/La_Paz`],[`BQ`,`America/Kralendijk`],[`BR`,`America/Sao_Paulo`],[`BS`,`America/Nassau`],[`BT`,`Asia/Thimphu`],[`BW`,`Africa/Gaborone`],[`BY`,`Europe/Minsk`],[`BZ`,`America/Belize`],[`CA`,`America/Toronto`],[`CC`,`Indian/Cocos`],[`CD`,`Africa/Kinshasa`],[`CF`,`Africa/Bangui`],[`CG`,`Africa/Brazzaville`],[`CH`,`Europe/Zurich`],[`CI`,`Africa/Abidjan`],[`CK`,`Pacific/Rarotonga`],[`CL`,`America/Santiago`],[`CM`,`Africa/Douala`],[`CN`,`Asia/Shanghai`],[`CO`,`America/Bogota`],[`CR`,`America/Costa_Rica`],[`CU`,`America/Havana`],[`CV`,`Atlantic/Cape_Verde`],[`CW`,`America/Curacao`],[`CX`,`Indian/Christmas`],[`CY`,`Asia/Nicosia`],[`CZ`,`Europe/Prague`],[`DE`,`Europe/Berlin`],[`DJ`,`Africa/Djibouti`],[`DK`,`Europe/Copenhagen`],[`DM`,`America/Dominica`],[`DO`,`America/Santo_Domingo`],[`DZ`,`Africa/Algiers`],[`EC`,`America/Guayaquil`],[`EE`,`Europe/Tallinn`],[`EG`,`Africa/Cairo`],[`EH`,`Africa/El_Aaiun`],[`ER`,`Africa/Asmara`],[`ES`,`Europe/Madrid`],[`ET`,`Africa/Addis_Ababa`],[`FI`,`Europe/Helsinki`],[`FJ`,`Pacific/Fiji`],[`FK`,`Atlantic/Stanley`],[`FM`,`Pacific/Pohnpei`],[`FO`,`Atlantic/Faroe`],[`FR`,`Europe/Paris`],[`GA`,`Africa/Libreville`],[`GB`,`Europe/London`],[`GD`,`America/Grenada`],[`GE`,`Asia/Tbilisi`],[`GF`,`America/Cayenne`],[`GG`,`Europe/Guernsey`],[`GH`,`Africa/Accra`],[`GI`,`Europe/Gibraltar`],[`GL`,`America/Godthab`],[`GM`,`Africa/Banjul`],[`GN`,`Africa/Conakry`],[`GP`,`America/Guadeloupe`],[`GQ`,`Africa/Malabo`],[`GR`,`Europe/Athens`],[`GS`,`Atlantic/South_Georgia`],[`GT`,`America/Guatemala`],[`GU`,`Pacific/Guam`],[`GW`,`Africa/Bissau`],[`GY`,`America/Guyana`],[`HK`,`Asia/Hong_Kong`],[`HN`,`America/Tegucigalpa`],[`HR`,`Europe/Zagreb`],[`HT`,`America/Port-au-Prince`],[`HU`,`Europe/Budapest`],[`ID`,`Asia/Jakarta`],[`IE`,`Europe/Dublin`],[`IL`,`Asia/Jerusalem`],[`IM`,`Europe/Isle_of_Man`],[`IN`,`Asia/Kolkata`],[`IO`,`Indian/Chagos`],[`IQ`,`Asia/Baghdad`],[`IR`,`Asia/Tehran`],[`IS`,`Atlantic/Reykjavik`],[`IT`,`Europe/Rome`],[`JE`,`Europe/Jersey`],[`JM`,`America/Jamaica`],[`JO`,`Asia/Amman`],[`JP`,`Asia/Tokyo`],[`KE`,`Africa/Nairobi`],[`KG`,`Asia/Bishkek`],[`KH`,`Asia/Phnom_Penh`],[`KI`,`Pacific/Tarawa`],[`KM`,`Indian/Comoro`],[`KN`,`America/St_Kitts`],[`KP`,`Asia/Pyongyang`],[`KR`,`Asia/Seoul`],[`KW`,`Asia/Kuwait`],[`KY`,`America/Cayman`],[`KZ`,`Asia/Almaty`],[`LA`,`Asia/Vientiane`],[`LB`,`Asia/Beirut`],[`LC`,`America/St_Lucia`],[`LI`,`Europe/Vaduz`],[`LK`,`Asia/Colombo`],[`LR`,`Africa/Monrovia`],[`LS`,`Africa/Maseru`],[`LT`,`Europe/Vilnius`],[`LU`,`Europe/Luxembourg`],[`LV`,`Europe/Riga`],[`LY`,`Africa/Tripoli`],[`MA`,`Africa/Casablanca`],[`MC`,`Europe/Monaco`],[`MD`,`Europe/Chisinau`],[`ME`,`Europe/Podgorica`],[`MF`,`America/Marigot`],[`MG`,`Indian/Antananarivo`],[`MH`,`Pacific/Majuro`],[`MK`,`Europe/Skopje`],[`ML`,`Africa/Bamako`],[`MM`,`Asia/Yangon`],[`MN`,`Asia/Ulaanbaatar`],[`MO`,`Asia/Macau`],[`MP`,`Pacific/Saipan`],[`MQ`,`America/Martinique`],[`MR`,`Africa/Nouakchott`],[`MS`,`America/Montserrat`],[`MT`,`Europe/Malta`],[`MU`,`Indian/Mauritius`],[`MV`,`Indian/Maldives`],[`MW`,`Africa/Blantyre`],[`MX`,`America/Mexico_City`],[`MY`,`Asia/Kuala_Lumpur`],[`MZ`,`Africa/Maputo`],[`NA`,`Africa/Windhoek`],[`NC`,`Pacific/Noumea`],[`NE`,`Africa/Niamey`],[`NF`,`Pacific/Norfolk`],[`NG`,`Africa/Lagos`],[`NI`,`America/Managua`],[`NL`,`Europe/Amsterdam`],[`NO`,`Europe/Oslo`],[`NP`,`Asia/Kathmandu`],[`NR`,`Pacific/Nauru`],[`NU`,`Pacific/Niue`],[`NZ`,`Pacific/Auckland`],[`OM`,`Asia/Muscat`],[`PA`,`America/Panama`],[`PE`,`America/Lima`],[`PF`,`Pacific/Tahiti`],[`PG`,`Pacific/Port_Moresby`],[`PH`,`Asia/Manila`],[`PK`,`Asia/Karachi`],[`PL`,`Europe/Warsaw`],[`PM`,`America/Miquelon`],[`PN`,`Pacific/Pitcairn`],[`PR`,`America/Puerto_Rico`],[`PS`,`Asia/Gaza`],[`PT`,`Europe/Lisbon`],[`PW`,`Pacific/Palau`],[`PY`,`America/Asuncion`],[`QA`,`Asia/Qatar`],[`RE`,`Indian/Reunion`],[`RO`,`Europe/Bucharest`],[`RS`,`Europe/Belgrade`],[`RU`,`Europe/Moscow`],[`RW`,`Africa/Kigali`],[`SA`,`Asia/Riyadh`],[`SB`,`Pacific/Guadalcanal`],[`SC`,`Indian/Mahe`],[`SD`,`Africa/Khartoum`],[`SE`,`Europe/Stockholm`],[`SG`,`Asia/Singapore`],[`SH`,`Atlantic/St_Helena`],[`SI`,`Europe/Ljubljana`],[`SJ`,`Arctic/Longyearbyen`],[`SK`,`Europe/Bratislava`],[`SL`,`Africa/Freetown`],[`SM`,`Europe/San_Marino`],[`SN`,`Africa/Dakar`],[`SO`,`Africa/Mogadishu`],[`SR`,`America/Paramaribo`],[`SS`,`Africa/Juba`],[`ST`,`Africa/Sao_Tome`],[`SV`,`America/El_Salvador`],[`SX`,`America/Lower_Princes`],[`SY`,`Asia/Damascus`],[`SZ`,`Africa/Mbabane`],[`TC`,`America/Grand_Turk`],[`TD`,`Africa/Ndjamena`],[`TF`,`Indian/Kerguelen`],[`TG`,`Africa/Lome`],[`TH`,`Asia/Bangkok`],[`TJ`,`Asia/Dushanbe`],[`TK`,`Pacific/Fakaofo`],[`TL`,`Asia/Dili`],[`TM`,`Asia/Ashgabat`],[`TN`,`Africa/Tunis`],[`TO`,`Pacific/Tongatapu`],[`TR`,`Europe/Istanbul`],[`TT`,`America/Port_of_Spain`],[`TV`,`Pacific/Funafuti`],[`TW`,`Asia/Taipei`],[`TZ`,`Africa/Dar_es_Salaam`],[`UA`,`Europe/Kiev`],[`UG`,`Africa/Kampala`],[`UM`,`Pacific/Wake`],[`US`,`America/New_York`],[`UY`,`America/Montevideo`],[`UZ`,`Asia/Tashkent`],[`VA`,`Europe/Vatican`],[`VC`,`America/St_Vincent`],[`VE`,`America/Caracas`],[`VG`,`America/Tortola`],[`VI`,`America/St_Thomas`],[`VN`,`Asia/Ho_Chi_Minh`],[`VU`,`Pacific/Efate`],[`WF`,`Pacific/Wallis`],[`WS`,`Pacific/Apia`],[`YE`,`Asia/Aden`],[`YT`,`Indian/Mayotte`],[`ZA`,`Africa/Johannesburg`],[`ZM`,`Africa/Lusaka`],[`ZW`,`Africa/Harare`]])),getNumberOrUndefined=t$5=>{let o=Number(t$5);return Number.isNaN(o)?void 0:o},isos=Object.freeze(new Set([...countries.keys()]));function getCountriesWithSpecificTime(t$5,o,r){let u={minute:t$5};typeof o==`object`?u={...o}:o!==void 0&&(u.hourOfDay=o,r&&(u={...u,...r}));let h={year:getNumberOrUndefined(u.year),month:getNumberOrUndefined(u.monthOfYear),day:getNumberOrUndefined(u.dayOfMonth),hour:getNumberOrUndefined(u.hourOfDay),minute:getNumberOrUndefined(u.minute),second:0,millisecond:0},m=DateTime$1.fromObject(h),y=[],_=Object.keys(h).filter(C=>typeof h[C]<`u`&&![`second`,`millisecond`].includes(C));return timezones.forEach((C,O)=>{let I=DateTime$1.now().setZone(C);_.filter(U=>{let F=m.toObject()[U],G=I.toObject()[U];return F===G}).length===_.length&&y.push(O)}),y}const areaCodeMap={201:`US`,202:`US`,203:`US`,204:`CA`,205:`US`,206:`US`,207:`US`,208:`US`,209:`US`,210:`US`,212:`US`,213:`US`,214:`US`,215:`US`,216:`US`,217:`US`,218:`US`,219:`US`,220:`US`,223:`US`,224:`US`,225:`US`,226:`CA`,227:`US`,228:`US`,229:`US`,231:`US`,234:`US`,236:`CA`,239:`US`,240:`US`,242:`BS`,246:`BB`,248:`US`,249:`CA`,250:`CA`,251:`US`,252:`US`,253:`US`,254:`US`,256:`US`,260:`US`,262:`US`,263:`CA`,264:`AI`,267:`US`,268:`AG`,269:`US`,270:`US`,272:`US`,276:`US`,279:`US`,281:`US`,283:`US`,284:`VG`,289:`CA`,301:`US`,302:`US`,303:`US`,304:`US`,305:`US`,306:`CA`,307:`US`,308:`US`,309:`US`,310:`US`,312:`US`,313:`US`,314:`US`,315:`US`,316:`US`,317:`US`,318:`US`,319:`US`,320:`US`,321:`US`,323:`US`,325:`US`,326:`US`,329:`US`,330:`US`,331:`US`,332:`US`,334:`US`,336:`US`,337:`US`,339:`US`,340:`VI`,341:`US`,343:`CA`,345:`KY`,346:`US`,347:`US`,350:`US`,351:`US`,352:`US`,354:`CA`,360:`US`,361:`US`,364:`US`,365:`CA`,367:`CA`,368:`CA`,369:`US`,380:`US`,382:`CA`,385:`US`,386:`US`,401:`US`,402:`US`,403:`CA`,404:`US`,405:`US`,406:`US`,407:`US`,408:`US`,409:`US`,410:`US`,412:`US`,413:`US`,414:`US`,415:`US`,416:`CA`,417:`US`,418:`CA`,419:`US`,423:`US`,424:`US`,425:`US`,428:`CA`,430:`US`,431:`CA`,432:`US`,434:`US`,435:`US`,437:`CA`,438:`CA`,440:`US`,441:`BM`,442:`US`,443:`US`,445:`US`,447:`US`,448:`US`,450:`CA`,458:`US`,463:`US`,464:`US`,468:`CA`,469:`US`,470:`US`,473:`GD`,474:`CA`,475:`US`,478:`US`,479:`US`,480:`US`,484:`US`,500:`US`,501:`US`,502:`US`,503:`US`,504:`US`,505:`US`,506:`CA`,507:`US`,508:`US`,509:`US`,510:`US`,512:`US`,513:`US`,514:`CA`,515:`US`,516:`US`,517:`US`,518:`US`,519:`CA`,520:`US`,521:`US`,522:`US`,525:`US`,526:`US`,527:`US`,528:`US`,529:`US`,530:`US`,531:`US`,533:`US`,534:`US`,539:`US`,540:`US`,541:`US`,544:`US`,548:`CA`,551:`US`,557:`US`,559:`US`,561:`US`,562:`US`,563:`US`,564:`US`,566:`US`,567:`US`,570:`US`,571:`US`,572:`US`,573:`US`,574:`US`,575:`US`,577:`US`,579:`CA`,580:`US`,581:`CA`,582:`US`,584:`CA`,585:`US`,586:`US`,587:`CA`,588:`US`,600:`CA`,601:`US`,602:`US`,603:`US`,604:`CA`,605:`US`,606:`US`,607:`US`,608:`US`,609:`US`,610:`US`,612:`US`,613:`CA`,614:`US`,615:`US`,616:`US`,617:`US`,618:`US`,619:`US`,620:`US`,622:`CA`,623:`US`,626:`US`,628:`US`,629:`US`,630:`US`,631:`US`,636:`US`,639:`CA`,640:`US`,641:`US`,646:`US`,647:`CA`,649:`TC`,650:`US`,651:`US`,656:`US`,657:`US`,658:`JM`,659:`US`,660:`US`,661:`US`,662:`US`,664:`MS`,667:`US`,669:`US`,670:`MP`,671:`GU`,672:`CA`,678:`US`,680:`US`,681:`US`,682:`US`,683:`CA`,684:`AS`,689:`US`,701:`US`,702:`US`,703:`US`,704:`US`,705:`CA`,706:`US`,707:`US`,708:`US`,709:`CA`,712:`US`,713:`US`,714:`US`,715:`US`,716:`US`,717:`US`,718:`US`,719:`US`,720:`US`,721:`SX`,724:`US`,725:`US`,726:`US`,727:`US`,731:`US`,732:`US`,734:`US`,737:`US`,740:`US`,742:`CA`,743:`US`,747:`US`,753:`CA`,754:`US`,757:`US`,758:`LC`,760:`US`,762:`US`,763:`US`,765:`US`,767:`DM`,769:`US`,770:`US`,771:`US`,772:`US`,773:`US`,774:`US`,775:`US`,778:`CA`,779:`US`,780:`CA`,781:`US`,782:`CA`,784:`VC`,785:`US`,786:`US`,787:`PR`,800:`US`,801:`US`,802:`US`,803:`US`,804:`US`,805:`US`,806:`US`,807:`CA`,808:`US`,809:`DO`,810:`US`,812:`US`,813:`US`,814:`US`,815:`US`,816:`US`,817:`US`,818:`US`,819:`CA`,820:`US`,825:`CA`,826:`US`,828:`US`,829:`DO`,830:`US`,831:`US`,832:`US`,833:`US`,835:`US`,838:`US`,839:`US`,840:`US`,843:`US`,844:`US`,845:`US`,847:`US`,848:`US`,849:`DO`,850:`US`,854:`US`,855:`US`,856:`US`,857:`US`,858:`US`,859:`US`,860:`US`,862:`US`,863:`US`,864:`US`,865:`US`,866:`US`,867:`CA`,868:`TT`,869:`KN`,870:`US`,872:`US`,873:`CA`,876:`JM`,877:`US`,878:`US`,888:`US`,900:`US`,901:`US`,902:`CA`,903:`US`,904:`US`,905:`CA`,906:`US`,907:`US`,908:`US`,909:`US`,910:`US`,912:`US`,913:`US`,914:`US`,915:`US`,916:`US`,917:`US`,918:`US`,919:`US`,920:`US`,925:`US`,928:`US`,929:`US`,930:`US`,931:`US`,934:`US`,936:`US`,937:`US`,938:`US`,939:`PR`,940:`US`,941:`US`,943:`US`,945:`US`,947:`US`,948:`US`,949:`US`,951:`US`,952:`US`,954:`US`,956:`US`,959:`US`,970:`US`,971:`US`,972:`US`,973:`US`,978:`US`,979:`US`,980:`US`,984:`US`,985:`US`,986:`US`,989:`US`},nanpaCountries=[`US`,`CA`,`BS`,`BB`,`AI`,`AG`,`VG`,`VI`,`KY`,`BM`,`GD`,`TC`,`JM`,`MS`,`MP`,`GU`,`AS`,`SX`,`LC`,`DM`,`VC`,`PR`,`DO`,`TT`,`KN`];for(var commonjsGlobal=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},allCountries=[[`Afghanistan (افغانستان)`,`af`,`93`,`+..-..-...-....`],[`Åland Islands`,`ax`,`358`,``],[`Albania (Shqipëri)`,`al`,`355`,`+...(...)...-...`],[`Algeria (الجزائر)`,`dz`,`213`,`+...-..-...-....`],[`American Samoa`,`as`,`1684`,`+.(...)...-....`],[`Andorra`,`ad`,`376`,`+...-...-...`],[`Angola`,`ao`,`244`,`+...(...)...-...`],[`Anguilla`,`ai`,`1264`,`+.(...)...-....`],[`Antarctica`,`aq`,`672`,``],[`Antigua and Barbuda`,`ag`,`1268`,`+.(...)...-....`],[`Argentina`,`ar`,`54`,`+..(...)...-....`],[`Armenia (Հայաստան)`,`am`,`374`,`+...-..-...-...`],[`Aruba`,`aw`,`297`,`+...-...-....`],[`Australia`,`au`,`61`,`+.. ... ... ...`],[`Austria (Österreich)`,`at`,`43`,`+..(...)...-....`],[`Azerbaijan (Azərbaycan)`,`az`,`994`,`+...-..-...-..-..`],[`Bahamas`,`bs`,`1242`,`+.(...)...-....`],[`Bahrain (البحرين)`,`bh`,`973`,`+...-....-....`],[`Bangladesh (বাংলাদেশ)`,`bd`,`880`,`+...-..-...-...`],[`Barbados`,`bb`,`1246`,`+.(...)...-....`],[`Belarus (Беларусь)`,`by`,`375`,`+...(..)...-..-..`],[`Belgium (België)`,`be`,`32`,`+.. ... .. .. ..`],[`Belize`,`bz`,`501`,`+...-...-....`],[`Benin (Bénin)`,`bj`,`229`,`+...-..-..-....`],[`Bermuda`,`bm`,`1441`,`+.(...)...-....`],[`Bhutan (འབྲུག)`,`bt`,`975`,`+...-.-...-...`],[`Bolivia`,`bo`,`591`,`+...-.-...-....`],[`Bosnia and Herzegovina (Босна и Херцеговина)`,`ba`,`387`,`+...-..-....`],[`Botswana`,`bw`,`267`,`+...-..-...-...`],[`Bouvet Island`,`bv`,`47`,``],[`Brazil (Brasil)`,`br`,`55`,`+..-..-....-....`],[`British Indian Ocean Territory`,`io`,`246`,`+...-...-....`],[`British Virgin Islands`,`vg`,`1284`,`+.(...)...-....`],[`Brunei`,`bn`,`673`,`+...-...-....`],[`Bulgaria (България)`,`bg`,`359`,`+...(...)...-...`],[`Burkina Faso`,`bf`,`226`,`+...-..-..-....`],[`Burundi (Uburundi)`,`bi`,`257`,`+...-..-..-....`],[`Cambodia (កម្ពុជា)`,`kh`,`855`,`+...-..-...-...`],[`Cameroon (Cameroun)`,`cm`,`237`,`+...-....-....`],[`Canada`,`ca`,`1`,`+. (...) ...-....`,1,`204.236.249.250.289.306.343.365.387.403.416.418.431.437.438.450.506.514.519.548.579.581.587.604.613.639.647.672.705.709.742.778.780.782.807.819.825.867.873.902.905`.split(`.`)],[`Cape Verde (Kabu Verdi)`,`cv`,`238`,`+...(...)..-..`],[`Caribbean Netherlands`,`bq`,`599`,`+...-...-....`,1],[`Cayman Islands`,`ky`,`1345`,`+.(...)...-....`],[`Central African Republic (République centrafricaine)`,`cf`,`236`,`+...-..-..-....`],[`Chad (Tchad)`,`td`,`235`,`+...-..-..-..-..`],[`Chile`,`cl`,`56`,`+..-.-....-....`],[`China (中国)`,`cn`,`86`,`+.. ..-........`],[`Christmas Island`,`cx`,`61`,``],[`Cocos (Keeling) Islands`,`cc`,`61`,``],[`Colombia`,`co`,`57`,`+..(...)...-....`],[`Comoros (جزر القمر)`,`km`,`269`,`+...-..-.....`],[`Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)`,`cd`,`243`,`+...(...)...-...`],[`Congo (Republic) (Congo-Brazzaville)`,`cg`,`242`,`+...-..-...-....`],[`Cook Islands`,`ck`,`682`,`+...-..-...`],[`Costa Rica`,`cr`,`506`,`+... ....-....`],[`Côte d’Ivoire`,`ci`,`225`,`+...-..-...-...`],[`Croatia (Hrvatska)`,`hr`,`385`,`+...-..-...-...`],[`Cuba`,`cu`,`53`,`+..-.-...-....`],[`Curaçao`,`cw`,`599`,`+...-...-....`,0],[`Cyprus (Κύπρος)`,`cy`,`357`,`+...-..-...-...`],[`Czech Republic (Česká republika)`,`cz`,`420`,`+...(...)...-...`],[`Denmark (Danmark)`,`dk`,`45`,`+.. .. .. .. ..`],[`Djibouti`,`dj`,`253`,`+...-..-..-..-..`],[`Dominica`,`dm`,`1767`,`+.(...)...-....`],[`Dominican Republic (República Dominicana)`,`do`,`1`,`+.(...)...-....`,2,[`809`,`829`,`849`]],[`Ecuador`,`ec`,`593`,`+...-.-...-....`],[`Egypt (مصر)`,`eg`,`20`,`+..(...)...-....`],[`El Salvador`,`sv`,`503`,`+... ....-....`],[`Equatorial Guinea (Guinea Ecuatorial)`,`gq`,`240`,`+...-..-...-....`],[`Eritrea`,`er`,`291`,`+...-.-...-...`],[`Estonia (Eesti)`,`ee`,`372`,`+...-...-....`],[`Ethiopia`,`et`,`251`,`+...-..-...-....`],[`Falkland Islands (Islas Malvinas)`,`fk`,`500`,`+...-.....`],[`Faroe Islands (Føroyar)`,`fo`,`298`,`+...-...-...`],[`Fiji`,`fj`,`679`,`+...-..-.....`],[`Finland (Suomi)`,`fi`,`358`,`+... .. .... ....`],[`France`,`fr`,`33`,`+.. . .. .. .. ..`],[`French Guiana (Guyane française)`,`gf`,`594`,`+...-.....-....`],[`French Polynesia (Polynésie française)`,`pf`,`689`,`+...-..-..-..`],[`French Southern and Antarctic Lands`,`tf`,`262`,``],[`Gabon`,`ga`,`241`,`+...-.-..-..-..`],[`Gambia`,`gm`,`220`,`+...(...)..-..`],[`Georgia (საქართველო)`,`ge`,`995`,`+...(...)...-...`],[`Germany (Deutschland)`,`de`,`49`,`+.. ... .......`],[`Ghana (Gaana)`,`gh`,`233`,`+...(...)...-...`],[`Gibraltar`,`gi`,`350`,`+...-...-.....`],[`Greece (Ελλάδα)`,`gr`,`30`,`+..(...)...-....`],[`Greenland (Kalaallit Nunaat)`,`gl`,`299`,`+...-..-..-..`],[`Grenada`,`gd`,`1473`,`+.(...)...-....`],[`Guadeloupe`,`gp`,`590`,``,0],[`Guam`,`gu`,`1671`,`+.(...)...-....`],[`Guatemala`,`gt`,`502`,`+... ....-....`],[`Guernsey`,`gg`,`44`,``],[`Guinea (Guinée)`,`gn`,`224`,`+...-..-...-...`],[`Guinea-Bissau (Guiné Bissau)`,`gw`,`245`,`+...-.-......`],[`Guyana`,`gy`,`592`,`+...-...-....`],[`Haiti`,`ht`,`509`,`+... ....-....`],[`Heard Island and McDonald Islands`,`hm`,`672`,``],[`Honduras`,`hn`,`504`,`+...-....-....`],[`Hong Kong (香港)`,`hk`,`852`,`+... .... ....`],[`Hungary (Magyarország)`,`hu`,`36`,`+..(...)...-...`],[`Iceland (Ísland)`,`is`,`354`,`+... ... ....`],[`India (भारत)`,`in`,`91`,`+.. .....-.....`],[`Indonesia`,`id`,`62`,`+..-..-...-..`],[`Iran (ایران)`,`ir`,`98`,`+..(...)...-....`],[`Iraq (العراق)`,`iq`,`964`,`+...(...)...-....`],[`Ireland`,`ie`,`353`,`+... .. .......`],[`Isle of Man`,`im`,`44`,``],[`Israel (ישראל)`,`il`,`972`,`+...-.-...-....`],[`Italy (Italia)`,`it`,`39`,`+.. ... ......`,0],[`Jamaica`,`jm`,`1876`,`+.(...)...-....`],[`Japan (日本)`,`jp`,`81`,`+.. ... .. ....`],[`Jersey`,`je`,`44`,``],[`Jordan (الأردن)`,`jo`,`962`,`+...-.-....-....`],[`Kazakhstan (Казахстан)`,`kz`,`7`,`+. ... ...-..-..`,1],[`Kenya`,`ke`,`254`,`+...-...-......`],[`Kiribati`,`ki`,`686`,`+...-..-...`],[`Kosovo`,`xk`,`383`,``],[`Kuwait (الكويت)`,`kw`,`965`,`+...-....-....`],[`Kyrgyzstan (Кыргызстан)`,`kg`,`996`,`+...(...)...-...`],[`Laos (ລາວ)`,`la`,`856`,`+...-..-...-...`],[`Latvia (Latvija)`,`lv`,`371`,`+...-..-...-...`],[`Lebanon (لبنان)`,`lb`,`961`,`+...-.-...-...`],[`Lesotho`,`ls`,`266`,`+...-.-...-....`],[`Liberia`,`lr`,`231`,`+...-..-...-...`],[`Libya (ليبيا)`,`ly`,`218`,`+...-..-...-...`],[`Liechtenstein`,`li`,`423`,`+...(...)...-....`],[`Lithuania (Lietuva)`,`lt`,`370`,`+...(...)..-...`],[`Luxembourg`,`lu`,`352`,`+...(...)...-...`],[`Macau (澳門)`,`mo`,`853`,`+...-....-....`],[`Macedonia (FYROM) (Македонија)`,`mk`,`389`,`+...-..-...-...`],[`Madagascar (Madagasikara)`,`mg`,`261`,`+...-..-..-.....`],[`Malawi`,`mw`,`265`,`+...-.-....-....`],[`Malaysia`,`my`,`60`,`+.. ..-....-....`],[`Maldives`,`mv`,`960`,`+...-...-....`],[`Mali`,`ml`,`223`,`+...-..-..-....`],[`Malta`,`mt`,`356`,`+...-....-....`],[`Marshall Islands`,`mh`,`692`,`+...-...-....`],[`Martinique`,`mq`,`596`,`+...(...)..-..-..`],[`Mauritania (موريتانيا)`,`mr`,`222`,`+...-..-..-....`],[`Mauritius (Moris)`,`mu`,`230`,`+...-...-....`],[`Mayotte`,`yt`,`262`,``],[`Mexico (México)`,`mx`,`52`,`+..-..-..-....`],[`Micronesia`,`fm`,`691`,`+...-...-....`],[`Moldova (Republica Moldova)`,`md`,`373`,`+...-....-....`],[`Monaco`,`mc`,`377`,`+...-..-...-...`],[`Mongolia (Монгол)`,`mn`,`976`,`+...-..-..-....`],[`Montenegro (Crna Gora)`,`me`,`382`,`+...-..-...-...`],[`Montserrat`,`ms`,`1664`,`+.(...)...-....`],[`Morocco (المغرب)`,`ma`,`212`,`+...-..-....-...`],[`Mozambique (Moçambique)`,`mz`,`258`,`+...-..-...-...`],[`Myanmar (Burma) (မြန်မာ)`,`mm`,`95`,`+..-...-...`],[`Namibia (Namibië)`,`na`,`264`,`+...-..-...-....`],[`Nauru`,`nr`,`674`,`+...-...-....`],[`Nepal (नेपाल)`,`np`,`977`,`+...-..-...-...`],[`Netherlands (Nederland)`,`nl`,`31`,`+.. .. ........`],[`New Caledonia (Nouvelle-Calédonie)`,`nc`,`687`,`+...-..-....`],[`New Zealand`,`nz`,`64`,`+.. ...-...-....`],[`Nicaragua`,`ni`,`505`,`+...-....-....`],[`Niger (Nijar)`,`ne`,`227`,`+...-..-..-....`],[`Nigeria`,`ng`,`234`,`+...-..-...-..`],[`Niue`,`nu`,`683`,`+...-....`],[`Norfolk Island`,`nf`,`672`,`+...-...-...`],[`North Korea (조선 민주주의 인민 공화국)`,`kp`,`850`,`+...-...-...`],[`Northern Mariana Islands`,`mp`,`1670`,`+.(...)...-....`],[`Norway (Norge)`,`no`,`47`,`+.. ... .. ...`],[`Oman (عُمان)`,`om`,`968`,`+...-..-...-...`],[`Pakistan (پاکستان)`,`pk`,`92`,`+.. ...-.......`],[`Palau`,`pw`,`680`,`+...-...-....`],[`Palestine (فلسطين)`,`ps`,`970`,`+...-..-...-....`],[`Panama (Panamá)`,`pa`,`507`,`+...-...-....`],[`Papua New Guinea`,`pg`,`675`,`+...(...)..-...`],[`Paraguay`,`py`,`595`,`+...(...)...-...`],[`Peru (Perú)`,`pe`,`51`,`+..(...)...-...`],[`Philippines`,`ph`,`63`,`+.. ... ....`],[`Pitcairn Islands`,`pn`,`64`,``],[`Poland (Polska)`,`pl`,`48`,`+.. ...-...-...`],[`Portugal`,`pt`,`351`,`+...-..-...-....`],[`Puerto Rico`,`pr`,`1`,`+. (...) ...-....`,3,[`787`,`939`]],[`Qatar (قطر)`,`qa`,`974`,`+...-....-....`],[`Réunion (La Réunion)`,`re`,`262`,`+...-.....-....`],[`Romania (România)`,`ro`,`40`,`+..-..-...-....`],[`Russia (Россия)`,`ru`,`7`,`+. ... ...-..-..`,0],[`Rwanda`,`rw`,`250`,`+...(...)...-...`],[`Saint Barthélemy (Saint-Barthélemy)`,`bl`,`590`,``,1],[`Saint Helena`,`sh`,`290`],[`Saint Kitts and Nevis`,`kn`,`1869`,`+.(...)...-....`],[`Saint Lucia`,`lc`,`1758`,`+.(...)...-....`],[`Saint Martin (Saint-Martin (partie française))`,`mf`,`590`,``,2],[`Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)`,`pm`,`508`],[`Saint Vincent and the Grenadines`,`vc`,`1784`,`+.(...)...-....`],[`Samoa`,`ws`,`685`,`+...-..-....`],[`San Marino`,`sm`,`378`,`+...-....-......`],[`São Tomé and Príncipe (São Tomé e Príncipe)`,`st`,`239`,`+...-..-.....`],[`Saudi Arabia (المملكة العربية السعودية)`,`sa`,`966`,`+...-..-...-....`],[`Senegal (Sénégal)`,`sn`,`221`,`+...-..-...-....`],[`Serbia (Србија)`,`rs`,`381`,`+...-..-...-....`],[`Seychelles`,`sc`,`248`,`+...-.-...-...`],[`Sierra Leone`,`sl`,`232`,`+...-..-......`],[`Singapore`,`sg`,`65`,`+.. ....-....`],[`Sint Maarten`,`sx`,`1721`,`+.(...)...-....`],[`Slovakia (Slovensko)`,`sk`,`421`,`+...(...)...-...`],[`Slovenia (Slovenija)`,`si`,`386`,`+...-..-...-...`],[`Solomon Islands`,`sb`,`677`,`+...-.....`],[`Somalia (Soomaaliya)`,`so`,`252`,`+...-.-...-...`],[`South Africa`,`za`,`27`,`+..-..-...-....`],[`South Georgia and the South Sandwich Islands`,`gs`,`500`,``],[`South Korea (대한민국)`,`kr`,`82`,`+..-..-...-....`],[`South Sudan (جنوب السودان)`,`ss`,`211`,`+...-..-...-....`],[`Spain (España)`,`es`,`34`,`+.. ... ... ...`],[`Sri Lanka (ශ්රී ලංකාව)`,`lk`,`94`,`+..-..-...-....`],[`Sudan (السودان)`,`sd`,`249`,`+...-..-...-....`],[`Suriname`,`sr`,`597`,`+...-...-...`],[`Svalbard and Jan Mayen`,`sj`,`47`,``],[`Swaziland`,`sz`,`268`,`+...-..-..-....`],[`Sweden (Sverige)`,`se`,`46`,`+.. .. ... .. ..`],[`Switzerland (Schweiz)`,`ch`,`41`,`+.. .. ... .. ..`],[`Syria (سوريا)`,`sy`,`963`,`+...-..-....-...`],[`Taiwan (台灣)`,`tw`,`886`,`+...-....-....`],[`Tajikistan`,`tj`,`992`,`+...-..-...-....`],[`Tanzania`,`tz`,`255`,`+...-..-...-....`],[`Thailand (ไทย)`,`th`,`66`,`+..-..-...-...`],[`Timor-Leste`,`tl`,`670`,`+...-...-....`],[`Togo`,`tg`,`228`,`+...-..-...-...`],[`Tokelau`,`tk`,`690`,`+...-....`],[`Tonga`,`to`,`676`,`+...-.....`],[`Trinidad and Tobago`,`tt`,`1868`,`+.(...)...-....`],[`Tunisia (تونس)`,`tn`,`216`,`+...-..-...-...`],[`Turkey (Türkiye)`,`tr`,`90`,`+.. ... ... .. ..`],[`Turkmenistan`,`tm`,`993`,`+...-.-...-....`],[`Turks and Caicos Islands`,`tc`,`1649`,`+.(...)...-....`],[`Tuvalu`,`tv`,`688`,`+...-.....`],[`U.S. Virgin Islands`,`vi`,`1340`,`+.(...)...-....`],[`Uganda`,`ug`,`256`,`+...(...)...-...`],[`Ukraine (Україна)`,`ua`,`380`,`+...(..)...-..-..`],[`United Arab Emirates (الإمارات العربية المتحدة)`,`ae`,`971`,`+...-.-...-....`],[`United Kingdom`,`gb`,`44`,`+.. .... ......`],[`United States`,`us`,`1`,`+. (...) ...-....`,0],[`United States Minor Outlying Islands`,`um`,`1`,``,2],[`Uruguay`,`uy`,`598`,`+...-.-...-..-..`],[`Uzbekistan (Oʻzbekiston)`,`uz`,`998`,`+...-..-...-....`],[`Vanuatu`,`vu`,`678`,`+...-.....`],[`Vatican City (Città del Vaticano)`,`va`,`39`,`+.. .. .... ....`,1],[`Venezuela`,`ve`,`58`,`+..(...)...-....`],[`Vietnam (Việt Nam)`,`vn`,`84`,`+..-..-....-...`],[`Wallis and Futuna`,`wf`,`681`,`+...-..-....`],[`Western Sahara`,`eh`,`212`,`+...-..-....`],[`Yemen (اليمن)`,`ye`,`967`,`+...-.-...-...`],[`Zambia`,`zm`,`260`,`+...-..-...-....`],[`Zimbabwe`,`zw`,`263`,`+...-.-......`]],allCountryCodes={},iso2Lookup={},addCountryCode=function(t$5,o,r){o in allCountryCodes||(allCountryCodes[o]=[]);var u=r||0;allCountryCodes[o][u]=t$5},i$1=0;i$1<allCountries.length;i$1++){var c=allCountries[i$1];if(allCountries[i$1]={name:c[0],iso2:c[1],dialCode:c[2],priority:c[4]||0},c[3]&&(allCountries[i$1].format=c[3]),c[5]){allCountries[i$1].hasAreaCodes=!0;for(var j=0;j<c[5].length;j++){var dialCode=c[2]+c[5][j];addCountryCode(c[1],dialCode)}}iso2Lookup[allCountries[i$1].iso2]=i$1,addCountryCode(c[1],c[2],c[4])}var country_telephone_data={allCountries,iso2Lookup,allCountryCodes};function commonjsRequire(t$5){throw Error(`Could not dynamically require "`+t$5+`". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.`)}var libphonenumber={exports:{}};libphonenumber.exports,function(module$1,exports$1){(function(t$5){module$1.exports=t$5()})(function(){return function(){function t$5(o,r,u){function h(S,_){if(!r[S]){if(!o[S]){var C=typeof commonjsRequire==`function`&&commonjsRequire;if(!_&&C)return C(S,!0);if(m)return m(S,!0);var O=Error(`Cannot find module '`+S+`'`);throw O.code=`MODULE_NOT_FOUND`,O}var I=r[S]={exports:{}};o[S][0].call(I.exports,function(R$1){var U=o[S][1][R$1];return h(U||R$1)},I,I.exports,t$5,o,r,u)}return r[S].exports}for(var m=typeof commonjsRequire==`function`&&commonjsRequire,y=0;y<u.length;y++)h(u[y]);return h}return t$5}()({1:[function(require$1,module$2,exports$2){(function(global$1){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(t$5){return t$5.raw=t$5},$jscomp.createTemplateTagFirstArgWithRaw=function(t$5,o){return t$5.raw=o,t$5},$jscomp.arrayIteratorImpl=function(t$5){var o=0;return function(){return o<t$5.length?{done:!1,value:t$5[o++]}:{done:!0}}},$jscomp.arrayIterator=function(t$5){return{next:$jscomp.arrayIteratorImpl(t$5)}},$jscomp.makeIterator=function(t$5){var o=typeof Symbol<`u`&&Symbol.iterator&&t$5[Symbol.iterator];return o?o.call(t$5):$jscomp.arrayIterator(t$5)},$jscomp.arrayFromIterator=function(t$5){for(var o,r=[];!(o=t$5.next()).done;)r.push(o.value);return r},$jscomp.arrayFromIterable=function(t$5){return t$5 instanceof Array?t$5:$jscomp.arrayFromIterator($jscomp.makeIterator(t$5))},$jscomp.checkStringArgs=function(t$5,o,r){if(t$5==null)throw TypeError(`The 'this' value for String.prototype.`+r+` must not be null or undefined`);if(o instanceof RegExp)throw TypeError(`First argument to String.prototype.`+r+` must not be a regular expression`);return t$5+``},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties==`function`?Object.defineProperty:function(t$5,o,r){return t$5==Array.prototype||t$5==Object.prototype||(t$5[o]=r.value),t$5},$jscomp.getGlobal=function(t$5){t$5=[typeof globalThis==`object`&&globalThis,t$5,typeof window==`object`&&window,typeof self==`object`&&self,typeof global$1==`object`&&global$1];for(var o=0;o<t$5.length;++o){var r=t$5[o];if(r&&r.Math==Math)return r}throw Error(`Cannot find global object`)},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==`function`&&typeof Symbol(`x`)==`symbol`,$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX=`$jscp$`,$jscomp.polyfill=function(t$5,o,r,u){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t$5,o,r,u):$jscomp.polyfillUnisolated(t$5,o,r,u))},$jscomp.polyfillUnisolated=function(t$5,o,r,u){for(r=$jscomp.global,t$5=t$5.split(`.`),u=0;u<t$5.length-1;u++){var h=t$5[u];if(!(h in r))return;r=r[h]}t$5=t$5[t$5.length-1],u=r[t$5],o=o(u),o!=u&&o!=null&&$jscomp.defineProperty(r,t$5,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(t$5,o,r,u){var h=t$5.split(`.`);t$5=h.length===1,u=h[0],u=!t$5&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<h.length-1;m++){var y=h[m];if(!(y in u))return;u=u[y]}h=h[h.length-1],r=$jscomp.IS_SYMBOL_NATIVE&&r===`es6`?u[h]:null,o=o(r),o!=null&&(t$5?$jscomp.defineProperty($jscomp.polyfills,h,{configurable:!0,writable:!0,value:o}):o!==r&&($jscomp.propertyToPolyfillSymbol[h]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(h):$jscomp.POLYFILL_PREFIX+h,h=$jscomp.propertyToPolyfillSymbol[h],$jscomp.defineProperty(u,h,{configurable:!0,writable:!0,value:o})))},$jscomp.polyfill(`String.prototype.endsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`endsWith`);o+=``,r===void 0&&(r=u.length),r=Math.max(0,Math.min(r|0,u.length));for(var h=o.length;0<h&&0<r;)if(u[--r]!=o[--h])return!1;return 0>=h}},`es6`,`es3`),$jscomp.findInternal=function(t$5,o,r){t$5 instanceof String&&(t$5=String(t$5));for(var u=t$5.length,h=0;h<u;h++){var m=t$5[h];if(o.call(r,m,h,t$5))return{i:h,v:m}}return{i:-1,v:void 0}},$jscomp.polyfill(`Array.prototype.find`,function(t$5){return t$5||function(o,r){return $jscomp.findInternal(this,o,r).v}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.startsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`startsWith`);o+=``;var h=u.length,m=o.length;r=Math.max(0,Math.min(r|0,u.length));for(var y=0;y<m&&r<h;)if(u[r++]!=o[y++])return!1;return y>=m}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.repeat`,function(t$5){return t$5||function(o){var r=$jscomp.checkStringArgs(this,null,`repeat`);if(0>o||1342177279<o)throw RangeError(`Invalid count value`);o|=0;for(var u=``;o;)o&1&&(u+=r),(o>>>=1)&&(r+=r);return u}},`es6`,`es3`),$jscomp.initSymbol=function(){},$jscomp.polyfill(`Symbol`,function(t$5){if(t$5)return t$5;var o=function(h,m){this.$jscomp$symbol$id_=h,$jscomp.defineProperty(this,`description`,{configurable:!0,writable:!0,value:m})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var r=0,u=function(h){if(this instanceof u)throw TypeError(`Symbol is not a constructor`);return new o(`jscomp_symbol_`+(h||``)+`_`+ r++,h)};return u},`es6`,`es3`),$jscomp.polyfill(`Symbol.iterator`,function(t$5){if(t$5)return t$5;t$5=Symbol(`Symbol.iterator`);for(var o=`Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array`.split(` `),r=0;r<o.length;r++){var u=$jscomp.global[o[r]];typeof u==`function`&&typeof u.prototype[t$5]!=`function`&&$jscomp.defineProperty(u.prototype,t$5,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t$5},`es6`,`es3`),$jscomp.iteratorPrototype=function(t$5){return t$5={next:t$5},t$5[Symbol.iterator]=function(){return this},t$5},$jscomp.iteratorFromArray=function(t$5,o){t$5 instanceof String&&(t$5+=``);var r=0,u=!1,h={next:function(){if(!u&&r<t$5.length){var m=r++;return{value:o(m,t$5[m]),done:!1}}return u=!0,{done:!0,value:void 0}}};return h[Symbol.iterator]=function(){return h},h},$jscomp.polyfill(`Array.prototype.keys`,function(t$5){return t$5||function(){return $jscomp.iteratorFromArray(this,function(o){return o})}},`es6`,`es3`),$jscomp.polyfill(`Object.is`,function(t$5){return t$5||function(o,r){return o===r?o!==0||1/o==1/r:o!==o&&r!==r}},`es6`,`es3`),$jscomp.polyfill(`Array.prototype.includes`,function(t$5){return t$5||function(o,r){var u=this;u instanceof String&&(u=String(u));var h=u.length;for(r||=0,0>r&&(r=Math.max(r+h,0));r<h;r++){var m=u[r];if(m===o||Object.is(m,o))return!0}return!1}},`es7`,`es3`),$jscomp.polyfill(`String.prototype.includes`,function(t$5){return t$5||function(o,r){return $jscomp.checkStringArgs(this,o,`includes`).indexOf(o,r||0)!==-1}},`es6`,`es3`);var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(t$5,o,r,u){t$5=t$5.split(`.`),u||=goog.global,t$5[0]in u||typeof u.execScript>`u`||u.execScript(`var `+t$5[0]);for(var h;t$5.length&&(h=t$5.shift());)if(t$5.length||o===void 0)u=u[h]&&u[h]!==Object.prototype[h]?u[h]:u[h]={};else if(!r&&goog.isObject(o)&&goog.isObject(u[h]))for(var m in o)o.hasOwnProperty(m)&&(u[h][m]=o[m]);else u[h]=o},goog.define=function(t$5,o){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,u=goog.global.CLOSURE_DEFINES;r&&r.nodeType===void 0&&Object.prototype.hasOwnProperty.call(r,t$5)?o=r[t$5]:u&&u.nodeType===void 0&&Object.prototype.hasOwnProperty.call(u,t$5)&&(o=u[t$5])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE=`en`,goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t$5){if(goog.isInModuleLoader_())throw Error(`goog.provide cannot be used within a module.`);if(!COMPILED&&goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);goog.constructNamespace_(t$5)},goog.constructNamespace_=function(t$5,o,r){if(!COMPILED){delete goog.implicitNamespaces_[t$5];for(var u=t$5;(u=u.substring(0,u.lastIndexOf(`.`)))&&!goog.getObjectByName(u);)goog.implicitNamespaces_[u]=!0}goog.exportPath_(t$5,o,r)},goog.getScriptNonce=function(t$5){return t$5&&t$5!=goog.global?goog.getScriptNonce_(t$5.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(t$5){return(t$5=t$5.querySelector&&t$5.querySelector(`script[nonce]`))&&(t$5=t$5.nonce||t$5.getAttribute(`nonce`))&&goog.NONCE_PATTERN_.test(t$5)?t$5:``},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(t$5){if(typeof t$5!=`string`||!t$5||t$5.search(goog.VALID_MODULE_RE_)==-1)throw Error(`Invalid module identifier`);if(!goog.isInGoogModuleLoader_())throw Error(`Module `+t$5+` has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.`);if(goog.moduleLoaderState_.moduleName)throw Error(`goog.module may only be called once per module.`);if(goog.moduleLoaderState_.moduleName=t$5,!COMPILED){if(goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);delete goog.implicitNamespaces_[t$5]}},goog.module.get=function(t$5){return goog.module.getInternal_(t$5)},goog.module.getInternal_=function(t$5){if(!COMPILED){if(t$5 in goog.loadedModules_)return goog.loadedModules_[t$5].exports;if(!goog.implicitNamespaces_[t$5])return t$5=goog.getObjectByName(t$5),t$5??null}return null},goog.ModuleType={ES6:`es6`,GOOG:`goog`},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t$5=goog.global.$jscomp;return t$5&&typeof t$5.getCurrentModulePath==`function`?!!t$5.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error(`goog.module.declareLegacyNamespace must be called from within a goog.module`);if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error(`goog.module must be called prior to goog.module.declareLegacyNamespace.`);goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(t$5){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error(`goog.declareModuleId may only be called from within an ES6 module`);if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error(`goog.declareModuleId may only be called once per module.`);if(t$5 in goog.loadedModules_)throw Error(`Module with namespace "`+t$5+`" already exists.`)}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t$5;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!=`function`)throw Error(`Module with namespace "`+t$5+`" has been loaded incorrectly.`);o=o.require(o.getCurrentModulePath()),goog.loadedModules_[t$5]={exports:o,type:goog.ModuleType.ES6,moduleId:t$5}}},goog.setTestOnly=function(t$5){if(goog.DISALLOW_TEST_ONLY_CODE)throw t$5||=``,Error(`Importing test-only code into non-debug environment`+(t$5?`: `+t$5:`.`))},goog.forwardDeclare=function(t$5){},COMPILED||(goog.isProvided_=function(t$5){return t$5 in goog.loadedModules_||!goog.implicitNamespaces_[t$5]&&goog.getObjectByName(t$5)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(t$5,o){t$5=t$5.split(`.`),o||=goog.global;for(var r=0;r<t$5.length;r++)if(o=o[t$5[r]],o==null)return null;return o},goog.addDependency=function(t$5,o,r,u){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t$5,o,r,u)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(t$5){goog.global.console&&goog.global.console.error(t$5)},goog.require=function(t$5){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t$5),goog.isProvided_(t$5)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t$5)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t$5)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(t$5){return{}},goog.basePath=``,goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error(`unimplemented abstract method`)},goog.addSingletonGetter=function(t$5){t$5.instance_=void 0,t$5.getInstance=function(){return t$5.instance_?t$5.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t$5),t$5.instance_=new t$5)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE=`detect`,goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE=``,goog.TRANSPILER=`transpile.js`,goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval(`"use strict";let x = 1; function f() { return typeof x; };f() == "number";`)}catch{a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(t$5){return`(function(){`+t$5+`
|
|
10
|
+
`)+` `+braces[1]:braces[0]+base+` `+output.join(`, `)+` `+braces[1]}exports.types=require_types();function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==`boolean`}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber$2(arg){return typeof arg==`number`}exports.isNumber=isNumber$2;function isString$2(arg){return typeof arg==`string`}exports.isString=isString$2;function isSymbol(arg){return typeof arg==`symbol`}exports.isSymbol=isSymbol;function isUndefined$2(arg){return arg===void 0}exports.isUndefined=isUndefined$2;function isRegExp(re$5){return isObject(re$5)&&objectToString(re$5)===`[object RegExp]`}exports.isRegExp=isRegExp,exports.types.isRegExp=isRegExp;function isObject(arg){return typeof arg==`object`&&!!arg}exports.isObject=isObject;function isDate$2(d){return isObject(d)&&objectToString(d)===`[object Date]`}exports.isDate=isDate$2,exports.types.isDate=isDate$2;function isError(e){return isObject(e)&&(objectToString(e)===`[object Error]`||e instanceof Error)}exports.isError=isError,exports.types.isNativeError=isError;function isFunction(arg){return typeof arg==`function`}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==`boolean`||typeof arg==`number`||typeof arg==`string`||typeof arg==`symbol`||arg===void 0}exports.isPrimitive=isPrimitive,exports.isBuffer=require_isBuffer();function objectToString(o){return Object.prototype.toString.call(o)}function pad(n$2){return n$2<10?`0`+n$2.toString(10):n$2.toString(10)}var months$2=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(`:`);return[d.getDate(),months$2[d.getMonth()],time].join(` `)}exports.log=function(){console.log(`%s - %s`,timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require_inherits(),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i$4=keys.length;i$4--;)origin[keys[i$4]]=add[keys[i$4]];return origin};function hasOwnProperty$2(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var kCustomPromisifiedSymbol=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;exports.promisify=function(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(kCustomPromisifiedSymbol&&original[kCustomPromisifiedSymbol]){var fn$1=original[kCustomPromisifiedSymbol];if(typeof fn$1!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),fn$1}function fn$1(){for(var promiseResolve,promiseReject,promise=new Promise(function(resolve,reject){promiseResolve=resolve,promiseReject=reject}),args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);args$1.push(function(err$1,value){err$1?promiseReject(err$1):promiseResolve(value)});try{original.apply(this,args$1)}catch(err$1){promiseReject(err$1)}return promise}return Object.setPrototypeOf(fn$1,Object.getPrototypeOf(original)),kCustomPromisifiedSymbol&&Object.defineProperty(fn$1,kCustomPromisifiedSymbol,{value:fn$1,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(fn$1,getOwnPropertyDescriptors(original))},exports.promisify.custom=kCustomPromisifiedSymbol;function callbackifyOnRejected(reason,cb){if(!reason){var newReason=Error(`Promise was rejected with a falsy value`);newReason.reason=reason,reason=newReason}return cb(reason)}function callbackify(original){if(typeof original!=`function`)throw TypeError(`The "original" argument must be of type Function`);function callbackified(){for(var args$1=[],i$4=0;i$4<arguments.length;i$4++)args$1.push(arguments[i$4]);var maybeCb=args$1.pop();if(typeof maybeCb!=`function`)throw TypeError(`The last argument must be of type Function`);var self$1=this,cb=function(){return maybeCb.apply(self$1,arguments)};original.apply(this,args$1).then(function(ret){process$1.nextTick(cb.bind(null,null,ret))},function(rej){process$1.nextTick(callbackifyOnRejected.bind(null,rej,cb))})}return Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original)),Object.defineProperties(callbackified,getOwnPropertyDescriptors(original)),callbackified}exports.callbackify=callbackify});function analyzeEmail(email,options){return validateEmail(email,options)}function isEmailValid$1(email,options){return!validateEmail(email,options)}function validateEmail(email,options={}){if(typeof email!=`string`)throw Error(`Invalid input: email must be a string`);if(!email)return errorCode(`EMPTY_STRING`);let ascii$2=!NON_ASCII_RX.test(email);if(!ascii$2){if(options.allowUnicode===!1)return errorCode(`FORBIDDEN_UNICODE`);email=email.normalize(`NFC`)}let parts=email.split(`@`);if(parts.length!==2)return parts.length>2?errorCode(`MULTIPLE_AT_CHAR`):errorCode(`MISSING_AT_CHAR`);let[local,domain]=parts;if(!local)return errorCode(`EMPTY_LOCAL`);if(!options.ignoreLength){if(email.length>254)return errorCode(`ADDRESS_TOO_LONG`);if(ENCODER_IMPL.encode(local).length>64)return errorCode(`LOCAL_TOO_LONG`)}return validateLocal(local,ascii$2)||analyzeDomain(domain,options)}function validateLocal(local,ascii$2){let segments=local.split(`.`);for(let segment of segments){if(!segment.length)return errorCode(`EMPTY_LOCAL_SEGMENT`);if(ascii$2){if(!ATEXT_RX.test(segment))return errorCode(`INVALID_LOCAL_CHARS`);continue}for(let char of segment){if(ATEXT_RX.test(char))continue;let binary=toBinary(char);if(!ATOM_RX.test(binary))return errorCode(`INVALID_LOCAL_CHARS`)}}return null}function toBinary(char){return Array.from(ENCODER_IMPL.encode(char),v=>String.fromCharCode(v)).join(``)}var import_util,NON_ASCII_RX,ENCODER_IMPL,ATEXT_RX,ATOM_RX,init_email=__esmMin(()=>{import_util=__toESM(require_util()),init_domain(),NON_ASCII_RX=/[^\x00-\x7f]/,ENCODER_IMPL=new(import_util.TextEncoder||TextEncoder),ATEXT_RX=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,ATOM_RX=new RegExp([`(?:[\\xc2-\\xdf][\\x80-\\xbf])`,`(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})`,`(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})`].join(`|`))});function generate$1(){let rfc3986$1={},hexDigit=`\\dA-Fa-f`,hexDigitOnly=`[`+hexDigit+`]`,unreserved=`\\w-\\.~`,subDelims=`!\\$&'\\(\\)\\*\\+,;=`,pctEncoded=`%`+hexDigit,pchar=unreserved+pctEncoded+subDelims+`:@`,pcharOnly=`[`+pchar+`]`,decOctect=`(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;rfc3986$1.ipv4address=`(?:`+decOctect+`\\.){3}(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])`;let h16=hexDigitOnly+`{1,4}`,ls32=`(?:`+h16+`:[\\dA-Fa-f]{1,4}|`+rfc3986$1.ipv4address+`)`,IPv6SixHex=`(?:`+h16+`:){6}`+ls32,IPv6FiveHex=`::(?:`+h16+`:){5}`+ls32,IPv6FourHex=`(?:`+h16+`)?::(?:[\\dA-Fa-f]{1,4}:){4}`+ls32,IPv6ThreeHex=`(?:(?:`+h16+`:){0,1}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){3}`+ls32,IPv6TwoHex=`(?:(?:`+h16+`:){0,2}[\\dA-Fa-f]{1,4})?::(?:[\\dA-Fa-f]{1,4}:){2}`+ls32,IPv6OneHex=`(?:(?:`+h16+`:){0,3}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}:`+ls32,IPv6NoneHex=`(?:(?:`+h16+`:){0,4}[\\dA-Fa-f]{1,4})?::`+ls32,IPv6NoneHex2=`(?:(?:`+h16+`:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}`,IPv6NoneHex3=`(?:(?:`+h16+`:){0,6}[\\dA-Fa-f]{1,4})?::`;rfc3986$1.ipv4Cidr=`(?:\\d|[1-2]\\d|3[0-2])`,rfc3986$1.ipv6Cidr=`(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])`,rfc3986$1.ipv6address=`(?:`+IPv6SixHex+`|`+IPv6FiveHex+`|`+IPv6FourHex+`|`+IPv6ThreeHex+`|`+IPv6TwoHex+`|`+IPv6OneHex+`|`+IPv6NoneHex+`|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)`,rfc3986$1.ipvFuture=`v`+hexDigitOnly+`+\\.[\\w-\\.~!\\$&'\\(\\)\\*\\+,;=:]+`,rfc3986$1.scheme=`[a-zA-Z][a-zA-Z\\d+-\\.]*`,rfc3986$1.schemeRegex=new RegExp(rfc3986$1.scheme);let userinfo=`[`+unreserved+pctEncoded+subDelims+`:]*`,IPLiteral=`\\[(?:`+rfc3986$1.ipv6address+`|`+rfc3986$1.ipvFuture+`)\\]`,regName=`[`+unreserved+pctEncoded+subDelims+`]{1,255}`,host=`(?:`+IPLiteral+`|`+rfc3986$1.ipv4address+`|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})`,port=`\\d*`,authority=`(?:`+userinfo+`@)?`+host+`(?::\\d*)?`,authorityCapture=`(?:`+userinfo+`@)?(`+host+`)(?::\\d*)?`,segment=pcharOnly+`*`,segmentNz=pcharOnly+`+`,segmentNzNc=`[`+unreserved+pctEncoded+subDelims+`@]+`,pathEmpty=``,pathAbEmpty=`(?:\\/`+segment+`)*`,pathAbsolute=`\\/(?:`+segmentNz+pathAbEmpty+`)?`,pathRootless=segmentNz+pathAbEmpty,pathNoScheme=segmentNzNc+pathAbEmpty,pathAbNoAuthority=`(?:\\/\\/\\/`+segment+pathAbEmpty+`)`;return rfc3986$1.hierPart=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`|`+pathAbNoAuthority+`)`,rfc3986$1.hierPartCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathRootless+`)`,rfc3986$1.relativeRef=`(?:(?:\\/\\/`+authority+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.relativeRefCapture=`(?:(?:\\/\\/`+authorityCapture+pathAbEmpty+`)|`+pathAbsolute+`|`+pathNoScheme+`|)`,rfc3986$1.query=`[`+pchar+`\\/\\?]*(?=#|$)`,rfc3986$1.queryWithSquareBrackets=`[`+pchar+`\\[\\]\\/\\?]*(?=#|$)`,rfc3986$1.fragment=`[`+pchar+`\\/\\?]*`,rfc3986$1}function createRegex(options){let rfc=rfc3986,query=options.allowQuerySquareBrackets?rfc.queryWithSquareBrackets:rfc.query,suffix=`(?:\\?`+query+`)?(?:#`+rfc.fragment+`)?`,relative=options.domain?rfc.relativeRefCapture:rfc.relativeRef;if(options.relativeOnly)return wrap(relative+suffix);let customScheme=``;if(options.scheme){(0,import_assert.default)(options.scheme instanceof RegExp||typeof options.scheme==`string`||Array.isArray(options.scheme),`scheme must be a RegExp, String, or Array`);let schemes=[].concat(options.scheme);(0,import_assert.default)(schemes.length>=1,`scheme must have at least 1 scheme specified`);let selections=[];for(let i$4=0;i$4<schemes.length;++i$4){let scheme$1=schemes[i$4];(0,import_assert.default)(scheme$1 instanceof RegExp||typeof scheme$1==`string`,`scheme at position `+i$4+` must be a RegExp or String`),scheme$1 instanceof RegExp?selections.push(scheme$1.source.toString()):((0,import_assert.default)(rfc.schemeRegex.test(scheme$1),`scheme at position `+i$4+` must be a valid scheme`),selections.push((0,import_escapeRegex.default)(scheme$1)))}customScheme=selections.join(`|`)}let scheme=customScheme?`(?:`+customScheme+`)`:rfc.scheme,absolute=`(?:`+scheme+`:`+(options.domain?rfc.hierPartCapture:rfc.hierPart)+`)`,prefix=options.allowRelative?`(?:`+absolute+`|`+relative+`)`:absolute;return wrap(prefix+suffix,customScheme)}function wrap(raw,scheme=null){return raw=`(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${raw}`,{raw,regex:RegExp(`^${raw}$`),scheme}}function uriRegex$1(options={}){return options.scheme||options.allowRelative||options.relativeOnly||options.allowQuerySquareBrackets||options.domain?createRegex(options):genericUriRegex}var rfc3986,ipVersions,genericUriRegex,init_uri=__esmMin(()=>{init_lib(),rfc3986=generate$1(),ipVersions={v4Cidr:rfc3986.ipv4Cidr,v6Cidr:rfc3986.ipv6Cidr,ipv4:rfc3986.ipv4address,ipv6:rfc3986.ipv6address,ipvfuture:rfc3986.ipvFuture},genericUriRegex=createRegex({})});function ipRegex$1(options={}){let cidr=options.cidr||`optional`;(0,import_assert.default)([`required`,`optional`,`forbidden`].includes(cidr),`options.cidr must be one of required, optional, forbidden`),(0,import_assert.default)(options.version===void 0||typeof options.version==`string`||Array.isArray(options.version),`options.version must be a string or an array of string`);let versions=options.version||[`ipv4`,`ipv6`,`ipvfuture`];Array.isArray(versions)||(versions=[versions]),(0,import_assert.default)(versions.length>=1,`options.version must have at least 1 version specified`);for(let version$3 of versions)(0,import_assert.default)(typeof version$3==`string`&&version$3===version$3.toLowerCase(),`Invalid options.version value`),(0,import_assert.default)([`ipv4`,`ipv6`,`ipvfuture`].includes(version$3),`options.version contains unknown version `+version$3+` - must be one of ipv4, ipv6, ipvfuture`);versions=Array.from(new Set(versions));let parts=versions.map(version$3=>{if(cidr===`forbidden`)return ipVersions[version$3];let cidrpart=`\\/${version$3===`ipv4`?ipVersions.v4Cidr:ipVersions.v6Cidr}`;return cidr===`required`?`${ipVersions[version$3]}${cidrpart}`:`${ipVersions[version$3]}(?:${cidrpart})?`}),raw=`(?:${parts.join(`|`)})`,regex=RegExp(`^${raw}$`);return{cidr,versions,regex,raw}}var init_ip=__esmMin(()=>{init_lib(),init_uri()});const HEX={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},UTF8={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]};function uriDecode(string){let percentPos=string.indexOf(`%`);if(percentPos===-1)return string;let decoded=``,last=0,codepoint=0,startOfOctets=percentPos,state=UTF8.accept;for(;percentPos>-1&&percentPos<string.length;){let high=resolveHex(string[percentPos+1],4),low=resolveHex(string[percentPos+2],0),byte=high|low,type=UTF8.data[byte];if(state=UTF8.data[256+state+type],codepoint=codepoint<<6|byte&UTF8.data[364+type],state===UTF8.accept){decoded+=string.slice(last,startOfOctets),decoded+=codepoint<=65535?String.fromCharCode(codepoint):String.fromCharCode(55232+(codepoint>>10),56320+(codepoint&1023)),codepoint=0,last=percentPos+3,percentPos=string.indexOf(`%`,last),startOfOctets=percentPos;continue}if(state===UTF8.reject||(percentPos+=3,percentPos>=string.length||string[percentPos]!==`%`))return null}return decoded+string.slice(last)}function resolveHex(char,shift){let i$4=HEX[char];return i$4===void 0?255:i$4<<shift}var esm_exports={};__export(esm_exports,{analyzeDomain:()=>analyzeDomain,analyzeEmail:()=>analyzeEmail,errorCodes:()=>errorCodes,ipRegex:()=>ipRegex$1,isDomainValid:()=>isDomainValid$1,isEmailValid:()=>isEmailValid$1,uriDecode:()=>uriDecode,uriRegex:()=>uriRegex$1,validateDomainOptions:()=>validateDomainOptions});var init_esm=__esmMin(()=>{init_domain(),init_email(),init_ip(),init_uri()}),require_tlds=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`)}),require_commonjs=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let tlds_js_1=require_tlds();exports.tlds=new Set(tlds_js_1.TLDS.map(tld=>tld.toLowerCase()))}),require_string=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$5,escapeRegex}=require_lib$4(),{isDomainValid,isEmailValid,ipRegex,uriRegex}=(init_esm(),__toCommonJS(esm_exports)),Tlds=require_commonjs(),Any$2=require_any(),Common$4=require_common(),internals$5={tlds:Tlds.tlds instanceof Set?{tlds:{allow:Tlds.tlds,deny:null}}:!1,base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:ipRegex({cidr:`forbidden`}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":`}`,"[":`]`,"(":`)`,"":``},guidVersions:{uuidv1:`1`,uuidv2:`2`,uuidv3:`3`,uuidv4:`4`,uuidv5:`5`,uuidv6:`6`,uuidv7:`7`,uuidv8:`8`},guidSeparators:new Set([void 0,!0,!1,`-`,`:`]),normalizationForms:[`NFC`,`NFD`,`NFKC`,`NFKD`]};module.exports=Any$2.extend({type:`string`,flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:`string`,method(value,{schema,state,prefs}){let normalize=schema.$_getRule(`normalize`);normalize&&(value=value.normalize(normalize.args.form));let casing=schema.$_getRule(`case`);casing&&(value=casing.args.direction===`upper`?value.toLocaleUpperCase():value.toLocaleLowerCase());let trim=schema.$_getRule(`trim`);if(trim&&trim.args.enabled&&(value=value.trim()),schema.$_terms.replacements)for(let replacement of schema.$_terms.replacements)value=value.replace(replacement.pattern,replacement.replacement);let hex=schema.$_getRule(`hex`);if(hex&&hex.args.options.byteAligned&&value.length%2!=0&&(value=`0${value}`),schema.$_getRule(`isoDate`)){let iso=internals$5.isoDate(value);iso&&(value=iso)}if(schema._flags.truncate){let rule=schema.$_getRule(`max`);if(rule){let limit=rule.args.limit;if(Common$4.isResolvable(limit)&&(limit=limit.resolve(value,state,prefs),!Common$4.limit(limit)))return{value,errors:schema.$_createError(`any.ref`,limit,{ref:rule.args.limit,arg:`limit`,reason:`must be a positive integer`},state,prefs)};value=value.slice(0,limit)}}return{value}}},validate(value,{schema,error}){if(typeof value!=`string`)return{value,errors:error(`string.base`)};if(value===``){let min$1=schema.$_getRule(`min`);return min$1&&min$1.args.limit===0?void 0:{value,errors:error(`string.empty`)}}},rules:{alphanum:{method(){return this.$_addRule(`alphanum`)},validate(value,helpers){return/^[a-zA-Z0-9]+$/.test(value)?value:helpers.error(`string.alphanum`)}},base64:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`,`urlSafe`]),options={urlSafe:!1,paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),assert$5(typeof options.urlSafe==`boolean`,`urlSafe must be boolean`),this.$_addRule({name:`base64`,args:{options}})},validate(value,helpers,{options}){let regex=internals$5.base64Regex[options.paddingRequired][options.urlSafe];return regex.test(value)?value:helpers.error(`string.base64`)}},case:{method(direction){return assert$5([`lower`,`upper`].includes(direction),`Invalid case:`,direction),this.$_addRule({name:`case`,args:{direction}})},validate(value,helpers,{direction}){return direction===`lower`&&value===value.toLocaleLowerCase()||direction===`upper`&&value===value.toLocaleUpperCase()?value:helpers.error(`string.${direction}case`)},convert:!0},creditCard:{method(){return this.$_addRule(`creditCard`)},validate(value,helpers){let i$4=value.length,sum=0,mul=1;for(;i$4--;){let char=value.charAt(i$4)*mul;sum+=char-(char>9)*9,mul^=3}return sum>0&&sum%10==0?value:helpers.error(`string.creditCard`)}},dataUri:{method(options={}){return Common$4.assertOptions(options,[`paddingRequired`]),options={paddingRequired:!0,...options},assert$5(typeof options.paddingRequired==`boolean`,`paddingRequired must be boolean`),this.$_addRule({name:`dataUri`,args:{options}})},validate(value,helpers,{options}){let matches=value.match(internals$5.dataUriRegex);if(matches){if(!matches[2]||matches[2]!==`base64`)return value;let base64regex=internals$5.base64Regex[options.paddingRequired].false;if(base64regex.test(matches[3]))return value}return helpers.error(`string.dataUri`)}},domain:{method(options){options&&Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`allowUnderscore`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let address=internals$5.addressOptions(options);return this.$_addRule({name:`domain`,args:{options},address})},validate(value,helpers,args$1,{address}){return isDomainValid(value,address)?value:helpers.error(`string.domain`)}},email:{method(options={}){Common$4.assertOptions(options,[`allowFullyQualified`,`allowUnicode`,`ignoreLength`,`maxDomainSegments`,`minDomainSegments`,`multiple`,`separator`,`tlds`]),assert$5(options.multiple===void 0||typeof options.multiple==`boolean`,`multiple option must be an boolean`);let address=internals$5.addressOptions(options),regex=RegExp(`\\s*[${options.separator?escapeRegex(options.separator):`,`}]\\s*`);return this.$_addRule({name:`email`,args:{options},regex,address})},validate(value,helpers,{options},{regex,address}){let emails=options.multiple?value.split(regex):[value],invalids=[];for(let email of emails)isEmailValid(email,address)||invalids.push(email);return invalids.length?helpers.error(`string.email`,{value,invalids}):value}},guid:{alias:`uuid`,method(options={}){Common$4.assertOptions(options,[`version`,`separator`,`wrapper`]),assert$5(options.wrapper===void 0||typeof options.wrapper==`boolean`||typeof options.wrapper==`string`&&typeof internals$5.guidBrackets[options.wrapper]==`string`,`"wrapper" must be true, false, or one of "${Object.keys(internals$5.guidBrackets).filter(Boolean).join(`", "`)}"`);let versionNumbers=``;if(options.version){let versions=[].concat(options.version);assert$5(versions.length>=1,`version must have at least 1 valid version specified`);let set=new Set;for(let i$4=0;i$4<versions.length;++i$4){let version$3=versions[i$4];assert$5(typeof version$3==`string`,`version at position `+i$4+` must be a string`);let versionNumber=internals$5.guidVersions[version$3.toLowerCase()];assert$5(versionNumber,`version at position `+i$4+` must be one of `+Object.keys(internals$5.guidVersions).join(`, `)),assert$5(!set.has(versionNumber),`version at position `+i$4+` must not be a duplicate`),versionNumbers+=versionNumber,set.add(versionNumber)}}assert$5(internals$5.guidSeparators.has(options.separator),`separator must be one of true, false, "-", or ":"`);let separator=options.separator===void 0?`[:-]?`:options.separator===!0?`[:-]`:options.separator===!1?`[]?`:`\\${options.separator}`,wrapperStart,wrapperEnd;options.wrapper===void 0?(wrapperStart=`[\\[{\\(]?`,wrapperEnd=`[\\]}\\)]?`):options.wrapper===!0?(wrapperStart=`[\\[{\\(]`,wrapperEnd=`[\\]}\\)]`):options.wrapper===!1?(wrapperStart=``,wrapperEnd=``):(wrapperStart=escapeRegex(options.wrapper),wrapperEnd=escapeRegex(internals$5.guidBrackets[options.wrapper]));let regex=RegExp(`^(${wrapperStart})[0-9A-F]{8}(${separator})[0-9A-F]{4}\\2?[${versionNumbers||`0-9A-F`}][0-9A-F]{3}\\2?[${versionNumbers?`89AB`:`0-9A-F`}][0-9A-F]{3}\\2?[0-9A-F]{12}(${wrapperEnd})$`,`i`);return this.$_addRule({name:`guid`,args:{options},regex})},validate(value,helpers,args$1,{regex}){let results=regex.exec(value);if(!results)return helpers.error(`string.guid`);let open=results[1],close=results[results.length-1];return(open||close)&&internals$5.guidBrackets[open]!==close?helpers.error(`string.guid`):value}},hex:{method(options={}){return Common$4.assertOptions(options,[`byteAligned`,`prefix`]),options={byteAligned:!1,prefix:!1,...options},assert$5(typeof options.byteAligned==`boolean`,`byteAligned must be boolean`),assert$5(typeof options.prefix==`boolean`||options.prefix===`optional`,`prefix must be boolean or "optional"`),this.$_addRule({name:`hex`,args:{options}})},validate(value,helpers,{options}){let re$5=options.prefix===`optional`?internals$5.hexRegex.withOptionalPrefix:options.prefix===!0?internals$5.hexRegex.withPrefix:internals$5.hexRegex.withoutPrefix;return re$5.test(value)?options.byteAligned&&value.length%2!=0?helpers.error(`string.hexAlign`):value:helpers.error(`string.hex`)}},hostname:{method(){return this.$_addRule(`hostname`)},validate(value,helpers){return isDomainValid(value,{minDomainSegments:1})||internals$5.ipRegex.test(value)?value:helpers.error(`string.hostname`)}},insensitive:{method(){return this.$_setFlag(`insensitive`,!0)}},ip:{method(options={}){Common$4.assertOptions(options,[`cidr`,`version`]);let{cidr,versions,regex}=ipRegex(options),version$3=options.version?versions:void 0;return this.$_addRule({name:`ip`,args:{options:{cidr,version:version$3}},regex})},validate(value,helpers,{options},{regex}){return regex.test(value)?value:options.version?helpers.error(`string.ipVersion`,{value,cidr:options.cidr,version:options.version}):helpers.error(`string.ip`,{value,cidr:options.cidr})}},isoDate:{method(){return this.$_addRule(`isoDate`)},validate(value,{error}){return internals$5.isoDate(value)?value:error(`string.isoDate`)}},isoDuration:{method(){return this.$_addRule(`isoDuration`)},validate(value,helpers){return internals$5.isoDurationRegex.test(value)?value:helpers.error(`string.isoDuration`)}},length:{method(limit,encoding){return internals$5.length(this,`length`,limit,`=`,encoding)},validate(value,helpers,{limit,encoding},{name:name$1,operator,args:args$1}){let length=encoding?Buffer$1&&Buffer$1.byteLength(value,encoding):value.length;return Common$4.compare(length,limit,operator)?value:helpers.error(`string.`+name$1,{limit:args$1.limit,value,encoding})},args:[{name:`limit`,ref:!0,assert:Common$4.limit,message:`must be a positive integer`},`encoding`]},lowercase:{method(){return this.case(`lower`)}},max:{method(limit,encoding){return internals$5.length(this,`max`,limit,`<=`,encoding)},args:[`limit`,`encoding`]},min:{method(limit,encoding){return internals$5.length(this,`min`,limit,`>=`,encoding)},args:[`limit`,`encoding`]},normalize:{method(form=`NFC`){return assert$5(internals$5.normalizationForms.includes(form),`normalization form must be one of `+internals$5.normalizationForms.join(`, `)),this.$_addRule({name:`normalize`,args:{form}})},validate(value,{error},{form}){return value===value.normalize(form)?value:error(`string.normalize`,{value,form})},convert:!0},pattern:{alias:`regex`,method(regex,options={}){assert$5(regex instanceof RegExp,`regex must be a RegExp`),assert$5(!regex.flags.includes(`g`)&&!regex.flags.includes(`y`),`regex should not use global or sticky mode`),typeof options==`string`&&(options={name:options}),Common$4.assertOptions(options,[`invert`,`name`]);let errorCode$1=[`string.pattern`,options.invert?`.invert`:``,options.name?`.name`:`.base`].join(``);return this.$_addRule({name:`pattern`,args:{regex,options},errorCode:errorCode$1})},validate(value,helpers,{regex,options},{errorCode:errorCode$1}){let patternMatch=regex.test(value);return patternMatch^options.invert?value:helpers.error(errorCode$1,{name:options.name,regex,value})},args:[`regex`,`options`],multi:!0},replace:{method(pattern,replacement){typeof pattern==`string`&&(pattern=new RegExp(escapeRegex(pattern),`g`)),assert$5(pattern instanceof RegExp,`pattern must be a RegExp`),assert$5(typeof replacement==`string`,`replacement must be a String`);let obj=this.clone();return obj.$_terms.replacements||(obj.$_terms.replacements=[]),obj.$_terms.replacements.push({pattern,replacement}),obj}},token:{method(){return this.$_addRule(`token`)},validate(value,helpers){return/^\w+$/.test(value)?value:helpers.error(`string.token`)}},trim:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_addRule({name:`trim`,args:{enabled}})},validate(value,helpers,{enabled}){return!enabled||value===value.trim()?value:helpers.error(`string.trim`)},convert:!0},truncate:{method(enabled=!0){return assert$5(typeof enabled==`boolean`,`enabled must be a boolean`),this.$_setFlag(`truncate`,enabled)}},uppercase:{method(){return this.case(`upper`)}},uri:{method(options={}){Common$4.assertOptions(options,[`allowRelative`,`allowQuerySquareBrackets`,`domain`,`relativeOnly`,`scheme`,`encodeUri`]),options.domain&&Common$4.assertOptions(options.domain,[`allowFullyQualified`,`allowUnicode`,`maxDomainSegments`,`minDomainSegments`,`tlds`]);let{regex,scheme}=uriRegex(options),domain=options.domain?internals$5.addressOptions(options.domain):null;return this.$_addRule({name:`uri`,args:{options},regex,domain,scheme})},validate(value,helpers,{options},{regex,domain,scheme}){if([`http:/`,`https:/`].includes(value))return helpers.error(`string.uri`);let match$2=regex.exec(value);if(!match$2&&helpers.prefs.convert&&options.encodeUri){let encoded=encodeURI(value);match$2=regex.exec(encoded),match$2&&(value=encoded)}if(match$2){let matched=match$2[1]||match$2[2];return domain&&(!options.allowRelative||matched)&&!isDomainValid(matched,domain)?helpers.error(`string.domain`,{value:matched}):value}return options.relativeOnly?helpers.error(`string.uriRelativeOnly`):options.scheme?helpers.error(`string.uriCustomScheme`,{scheme,value}):helpers.error(`string.uri`)}}},manifest:{build(obj,desc$1){if(desc$1.replacements)for(let{pattern,replacement}of desc$1.replacements)obj=obj.replace(pattern,replacement);return obj}},messages:{"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`}}),internals$5.addressOptions=function(options){if(!options)return internals$5.tlds||options;if(assert$5(options.minDomainSegments===void 0||Number.isSafeInteger(options.minDomainSegments)&&options.minDomainSegments>0,`minDomainSegments must be a positive integer`),assert$5(options.maxDomainSegments===void 0||Number.isSafeInteger(options.maxDomainSegments)&&options.maxDomainSegments>0,`maxDomainSegments must be a positive integer`),options.tlds===!1)return options;if(options.tlds===!0||options.tlds===void 0)return assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds);assert$5(typeof options.tlds==`object`,`tlds must be true, false, or an object`);let deny=options.tlds.deny;if(deny)return Array.isArray(deny)&&(options=Object.assign({},options,{tlds:{deny:new Set(deny)}})),assert$5(options.tlds.deny instanceof Set,`tlds.deny must be an array, Set, or boolean`),assert$5(!options.tlds.allow,`Cannot specify both tlds.allow and tlds.deny lists`),internals$5.validateTlds(options.tlds.deny,`tlds.deny`),options;let allow=options.tlds.allow;return allow?allow===!0?(assert$5(internals$5.tlds,`Built-in TLD list disabled`),Object.assign({},options,internals$5.tlds)):(Array.isArray(allow)&&(options=Object.assign({},options,{tlds:{allow:new Set(allow)}})),assert$5(options.tlds.allow instanceof Set,`tlds.allow must be an array, Set, or boolean`),internals$5.validateTlds(options.tlds.allow,`tlds.allow`),options):{...options,tlds:!1}},internals$5.validateTlds=function(set,source){for(let tld of set)assert$5(isDomainValid(tld,{minDomainSegments:1,maxDomainSegments:1}),`${source} must contain valid top level domain names`)},internals$5.isoDate=function(value){if(!Common$4.isIsoDate(value))return null;/.*T.*[+-]\d\d$/.test(value)&&(value+=`00`);let date=new Date(value);return isNaN(date.getTime())?null:date.toISOString()},internals$5.length=function(schema,name$1,limit,operator,encoding){return assert$5(!encoding||Buffer$1&&Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),schema.$_addRule({name:name$1,method:`length`,args:{limit,encoding},operator})}}),require_symbol=__commonJSMin((exports,module)=>{let{assert:assert$4}=require_lib$4(),Any$1=require_any(),internals$4={};internals$4.Map=class extends Map{slice(){return new internals$4.Map(this)}},module.exports=Any$1.extend({type:`symbol`,terms:{map:{init:new internals$4.Map}},coerce:{method(value,{schema,error}){let lookup$2=schema.$_terms.map.get(value);return lookup$2&&(value=lookup$2),!schema._flags.only||typeof value==`symbol`?{value}:{value,errors:error(`symbol.map`,{map:schema.$_terms.map})}}},validate(value,{error}){if(typeof value!=`symbol`)return{value,errors:error(`symbol.base`)}},rules:{map:{method(iterable){iterable&&!iterable[Symbol.iterator]&&typeof iterable==`object`&&(iterable=Object.entries(iterable)),assert$4(iterable&&iterable[Symbol.iterator],`Iterable must be an iterable or object`);let obj=this.clone(),symbols=[];for(let entry of iterable){assert$4(entry&&entry[Symbol.iterator],`Entry must be an iterable`);let[key,value]=entry;assert$4(typeof key!=`object`&&typeof key!=`function`&&typeof key!=`symbol`,`Key must not be of type object, function, or Symbol`),assert$4(typeof value==`symbol`,`Value must be a Symbol`),obj.$_terms.map.set(key,value),symbols.push(value)}return obj.valid(...symbols)}}},manifest:{build(obj,desc$1){return desc$1.map&&(obj=obj.map(desc$1.map)),obj}},messages:{"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`}})}),require_binary=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$3}=require_lib$4(),Any=require_any(),Common$3=require_common();module.exports=Any.extend({type:`binary`,coerce:{from:[`string`,`object`],method(value,{schema}){if(typeof value==`string`||value!==null&&value.type===`Buffer`)try{return{value:Buffer$1.from(value,schema._flags.encoding)}}catch{}}},validate(value,{error}){if(!Buffer$1.isBuffer(value))return{value,errors:error(`binary.base`)}},rules:{encoding:{method(encoding){return assert$3(Buffer$1.isEncoding(encoding),`Invalid encoding:`,encoding),this.$_setFlag(`encoding`,encoding)}},length:{method(limit){return this.$_addRule({name:`length`,method:`length`,args:{limit},operator:`=`})},validate(value,helpers,{limit},{name:name$1,operator,args:args$1}){return Common$3.compare(value.length,limit,operator)?value:helpers.error(`binary.`+name$1,{limit:args$1.limit,value})},args:[{name:`limit`,ref:!0,assert:Common$3.limit,message:`must be a positive integer`}]},max:{method(limit){return this.$_addRule({name:`max`,method:`length`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`length`,args:{limit},operator:`>=`})}}},cast:{string:{from:value=>Buffer$1.isBuffer(value),to(value,helpers){return value.toString()}}},messages:{"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`}})}),require_lib=__commonJSMin((exports,module)=>{init_dist$1();let{assert:assert$2,clone:clone$5}=require_lib$4(),Cache$1=require_cache(),Common$2=require_common(),Compile$1=require_compile(),Errors$1=require_errors(),Extend$1=require_extend(),Manifest$1=require_manifest(),Ref$1=require_ref(),Template$2=require_template(),Trace$1=require_trace(),Schemas$2,internals$3={types:{alternatives:require_alternatives(),any:require_any(),array:require_array(),boolean:require_boolean(),date:require_date(),function:require_function(),link:require_link(),number:require_number(),object:require_object(),string:require_string(),symbol:require_symbol()},aliases:{alt:`alternatives`,bool:`boolean`,func:`function`}};Buffer$1&&(internals$3.types.binary=require_binary()),internals$3.root=function(){let root={_types:new Set(Object.keys(internals$3.types))};for(let type of root._types)root[type]=function(...args$1){return assert$2(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`),internals$3.generate(this,internals$3.types[type],args$1)};for(let method of[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`])root[method]=function(...args$1){return this.any()[method](...args$1)};for(let alias in Object.assign(root,internals$3.methods),internals$3.aliases){let target=internals$3.aliases[alias];root[alias]=root[target]}return root.x=root.expression,Trace$1.setup&&Trace$1.setup(root),root},internals$3.methods={ValidationError:Errors$1.ValidationError,version:Common$2.version,cache:Cache$1.provider,assert(value,schema,...args$1){internals$3.assert(value,schema,!0,args$1)},attempt(value,schema,...args$1){return internals$3.assert(value,schema,!1,args$1)},build(desc$1){return assert$2(typeof Manifest$1.build==`function`,`Manifest functionality disabled`),Manifest$1.build(this,desc$1)},checkPreferences(prefs){Common$2.checkPreferences(prefs)},compile(schema,options){return Compile$1.compile(this,schema,options)},defaults(modifier){assert$2(typeof modifier==`function`,`modifier must be a function`);let joi=Object.assign({},this);for(let type of joi._types){let schema=modifier(joi[type]());assert$2(Common$2.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}return joi},expression(...args$1){return new Template$2(...args$1)},extend(...extensions){Common$2.verifyFlat(extensions,`extend`),Schemas$2||=require_schemas(),assert$2(extensions.length,`You need to provide at least one extension`),this.assert(extensions,Schemas$2.extensions);let joi=Object.assign({},this);joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,Schemas$2.extension);let expanded=internals$3.expandExtension(extension,joi);for(let item of expanded){assert$2(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=Extend$1.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return internals$3.generate(this,schema,args$1)}}}return joi},isError:Errors$1.ValidationError.isError,isExpression:Template$2.isTemplate,isRef:Ref$1.isRef,isSchema:Common$2.isSchema,in(...args$1){return Ref$1.in(...args$1)},override:Common$2.symbols.override,ref(...args$1){return Ref$1.create(...args$1)},types(){let types$1={};for(let type of this._types)types$1[type]=this[type]();for(let target in internals$3.aliases)types$1[target]=this[target]();return types$1}},internals$3.assert=function(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,Common$2.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof Errors$1.ValidationError||(error=clone$5(error)),error.message=message?`${message} ${display}`:display,error},internals$3.generate=function(root,schema,args$1){return assert$2(root,`Must be invoked on a Joi instance.`),schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)},internals$3.expandExtension=function(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item=Object.assign({},extension);item.type=type,item.base=joi[type](),extended.push(item)}return extended},module.exports=internals$3.root()}),require_schemas=__commonJSMin(exports=>{let Joi$1=require_lib(),internals$2={};internals$2.wrap=Joi$1.string().min(1).max(2).allow(!1),exports.preferences=Joi$1.object({allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),context:Joi$1.object(),convert:Joi$1.boolean(),dateFormat:Joi$1.valid(`date`,`iso`,`string`,`time`,`utc`),debug:Joi$1.boolean(),errors:{escapeHtml:Joi$1.boolean(),label:Joi$1.valid(`path`,`key`,!1),language:[Joi$1.string(),Joi$1.object().ref()],render:Joi$1.boolean(),stack:Joi$1.boolean(),wrap:{label:internals$2.wrap,array:internals$2.wrap,string:internals$2.wrap}},externals:Joi$1.boolean(),messages:Joi$1.object(),noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:Joi$1.valid(`required`,`optional`,`forbidden`),skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()}).strict(),internals$2.nameRx=/^[a-zA-Z0-9]\w*$/,internals$2.rule=Joi$1.object({alias:Joi$1.array().items(Joi$1.string().pattern(internals$2.nameRx)).single(),args:Joi$1.array().items(Joi$1.string(),Joi$1.object({name:Joi$1.string().pattern(internals$2.nameRx).required(),ref:Joi$1.boolean(),assert:Joi$1.alternatives([Joi$1.function(),Joi$1.object().schema()]).conditional(`ref`,{is:!0,then:Joi$1.required()}),normalize:Joi$1.function(),message:Joi$1.string().when(`assert`,{is:Joi$1.function(),then:Joi$1.required()})})),convert:Joi$1.boolean(),manifest:Joi$1.boolean(),method:Joi$1.function().allow(!1),multi:Joi$1.boolean(),validate:Joi$1.function()}),exports.extension=Joi$1.object({type:Joi$1.alternatives([Joi$1.string(),Joi$1.object().regex()]).required(),args:Joi$1.function(),cast:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({from:Joi$1.function().maxArity(1).required(),to:Joi$1.function().minArity(1).maxArity(2).required()})),base:Joi$1.object().schema().when(`type`,{is:Joi$1.object().regex(),then:Joi$1.forbidden()}),coerce:[Joi$1.function().maxArity(3),Joi$1.object({method:Joi$1.function().maxArity(3).required(),from:Joi$1.array().items(Joi$1.string()).single()})],flags:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({setter:Joi$1.string(),default:Joi$1.any()})),manifest:{build:Joi$1.function().arity(2)},messages:[Joi$1.object(),Joi$1.string()],modifiers:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function().minArity(1).maxArity(2)),overrides:Joi$1.object().pattern(internals$2.nameRx,Joi$1.function()),prepare:Joi$1.function().maxArity(3),rebuild:Joi$1.function().arity(1),rules:Joi$1.object().pattern(internals$2.nameRx,internals$2.rule),terms:Joi$1.object().pattern(internals$2.nameRx,Joi$1.object({init:Joi$1.array().allow(null).required(),manifest:Joi$1.object().pattern(/.+/,[Joi$1.valid(`schema`,`single`),Joi$1.object({mapped:Joi$1.object({from:Joi$1.string().required(),to:Joi$1.string().required()}).required()})])})),validate:Joi$1.function().maxArity(3)}).strict(),exports.extensions=Joi$1.array().items(Joi$1.object(),Joi$1.function().arity(1)).strict(),internals$2.desc={buffer:Joi$1.object({buffer:Joi$1.string()}),func:Joi$1.object({function:Joi$1.function().required(),options:{literal:!0}}),override:Joi$1.object({override:!0}),ref:Joi$1.object({ref:Joi$1.object({type:Joi$1.valid(`value`,`global`,`local`),path:Joi$1.array().required(),separator:Joi$1.string().length(1).allow(!1),ancestor:Joi$1.number().min(0).integer().allow(`root`),map:Joi$1.array().items(Joi$1.array().length(2)).min(1),adjust:Joi$1.function(),iterables:Joi$1.boolean(),in:Joi$1.boolean(),render:Joi$1.boolean()}).required()}),regex:Joi$1.object({regex:Joi$1.string().min(3)}),special:Joi$1.object({special:Joi$1.valid(`deep`).required()}),template:Joi$1.object({template:Joi$1.string().required(),options:Joi$1.object()}),value:Joi$1.object({value:Joi$1.alternatives([Joi$1.object(),Joi$1.array()]).required()})},internals$2.desc.entity=Joi$1.alternatives([Joi$1.array().items(Joi$1.link(`...`)),Joi$1.boolean(),Joi$1.function(),Joi$1.number(),Joi$1.string(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.special,internals$2.desc.template,internals$2.desc.value,Joi$1.link(`/`)]),internals$2.desc.values=Joi$1.array().items(null,Joi$1.boolean(),Joi$1.function(),Joi$1.number().allow(1/0,-1/0),Joi$1.string().allow(``),Joi$1.symbol(),internals$2.desc.buffer,internals$2.desc.func,internals$2.desc.override,internals$2.desc.ref,internals$2.desc.regex,internals$2.desc.template,internals$2.desc.value),internals$2.desc.messages=Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template,Joi$1.object().pattern(/.+/,[Joi$1.string(),internals$2.desc.template])]),exports.description=Joi$1.object({type:Joi$1.string().required(),flags:Joi$1.object({cast:Joi$1.string(),default:Joi$1.any(),description:Joi$1.string(),empty:Joi$1.link(`/`),failover:internals$2.desc.entity,id:Joi$1.string(),label:Joi$1.string(),only:!0,presence:[`optional`,`required`,`forbidden`],result:[`raw`,`strip`],strip:Joi$1.boolean(),unit:Joi$1.string()}).unknown(),preferences:{allowUnknown:Joi$1.boolean(),abortEarly:Joi$1.boolean(),artifacts:Joi$1.boolean(),cache:Joi$1.boolean(),convert:Joi$1.boolean(),dateFormat:[`date`,`iso`,`string`,`time`,`utc`],errors:{escapeHtml:Joi$1.boolean(),label:[`path`,`key`],language:[Joi$1.string(),internals$2.desc.ref],wrap:{label:internals$2.wrap,array:internals$2.wrap}},externals:Joi$1.boolean(),messages:internals$2.desc.messages,noDefaults:Joi$1.boolean(),nonEnumerables:Joi$1.boolean(),presence:[`required`,`optional`,`forbidden`],skipFunctions:Joi$1.boolean(),stripUnknown:Joi$1.object({arrays:Joi$1.boolean(),objects:Joi$1.boolean()}).or(`arrays`,`objects`).allow(!0,!1),warnings:Joi$1.boolean()},allow:internals$2.desc.values,invalid:internals$2.desc.values,rules:Joi$1.array().min(1).items({name:Joi$1.string().required(),args:Joi$1.object().min(1),keep:Joi$1.boolean(),message:[Joi$1.string(),internals$2.desc.messages],warn:Joi$1.boolean()}),keys:Joi$1.object().pattern(/.*/,Joi$1.link(`/`)),link:internals$2.desc.ref}).pattern(/^[a-z]\w*$/,Joi$1.any())}),require_common=__commonJSMin(exports=>{let{assert:Assert,AssertError}=require_lib$4(),Pkg=(init_package(),__toCommonJS(package_exports).default),Messages$1,Schemas$1,internals$1={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};exports.version=Pkg.version,exports.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:`iso`,errors:{escapeHtml:!1,label:`path`,language:null,render:!0,stack:!1,wrap:{label:`"`,array:`[]`}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:`optional`,skipFunctions:!1,stripUnknown:!1,warnings:!1},exports.symbols={any:Symbol.for(`@hapi/joi/schema`),arraySingle:Symbol(`arraySingle`),deepDefault:Symbol(`deepDefault`),errors:Symbol(`errors`),literal:Symbol(`literal`),override:Symbol(`override`),parent:Symbol(`parent`),prefs:Symbol(`prefs`),ref:Symbol(`ref`),template:Symbol(`template`),values:Symbol(`values`)},exports.assertOptions=function(options,keys,name$1=`Options`){Assert(options&&typeof options==`object`&&!Array.isArray(options),`Options must be of type object`);let unknownKeys=Object.keys(options).filter(k=>!keys.includes(k));Assert(unknownKeys.length===0,`${name$1} contain unknown keys: ${unknownKeys}`)},exports.checkPreferences=function(prefs){Schemas$1||=require_schemas();let result=Schemas$1.preferences.validate(prefs);if(result.error)throw new AssertError([result.error.details[0].message])},exports.compare=function(a,b,operator){switch(operator){case`=`:return a===b;case`>`:return a>b;case`<`:return a<b;case`>=`:return a>=b;case`<=`:return a<=b}},exports.default=function(value,defaultValue){return value===void 0?defaultValue:value},exports.isIsoDate=function(date){return internals$1.isoDate.test(date)},exports.isNumber=function(value){return typeof value==`number`&&!isNaN(value)},exports.isResolvable=function(obj){return obj?obj[exports.symbols.ref]||obj[exports.symbols.template]:!1},exports.isSchema=function(schema,options={}){let any=schema&&schema[exports.symbols.any];return any?(Assert(options.legacy||any.version===exports.version,`Cannot mix different versions of joi schemas`),!0):!1},exports.isValues=function(obj){return obj[exports.symbols.values]},exports.limit=function(value){return Number.isSafeInteger(value)&&value>=0},exports.preferences=function(target,source){Messages$1||=require_messages(),target||={},source||={};let merged=Object.assign({},target,source);return source.errors&&target.errors&&(merged.errors=Object.assign({},target.errors,source.errors),merged.errors.wrap=Object.assign({},target.errors.wrap,source.errors.wrap)),source.messages&&(merged.messages=Messages$1.compile(source.messages,target.messages)),delete merged[exports.symbols.prefs],merged},exports.tryWithPath=function(fn$1,key,options={}){try{return fn$1()}catch(err$1){throw err$1.path===void 0?err$1.path=key:err$1.path=key+`.`+err$1.path,options.append&&(err$1.message=`${err$1.message} (${err$1.path})`),err$1}},exports.validateArg=function(value,label,{assert:assert$30,message}){if(exports.isSchema(assert$30)){let result=assert$30.validate(value);return result.error?result.error.message:void 0}else if(!assert$30(value))return label?`${label} ${message}`:message},exports.verifyFlat=function(args$1,method){for(let arg of args$1)Assert(!Array.isArray(arg),`Method no longer accepts array arguments:`,method)}}),require_ref=__commonJSMin(exports=>{let{assert:assert$1,clone:clone$4,reach}=require_lib$4(),Common$1=require_common(),Template$1,internals={symbol:Symbol(`ref`),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:`.`,type:`value`}};exports.create=function(key,options={}){assert$1(typeof key==`string`,`Invalid reference key:`,key),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`prefix`,`render`,`separator`]),assert$1(!options.prefix||typeof options.prefix==`object`,`options.prefix must be of type object`);let ref=Object.assign({},internals.defaults,options);delete ref.prefix;let separator=ref.separator,context=internals.context(key,separator,options.prefix);if(ref.type=context.type,key=context.key,ref.type===`value`)if(context.root&&(assert$1(!separator||key[0]!==separator,`Cannot specify relative path with root prefix`),ref.ancestor=`root`,key||=null),separator&&separator===key)key=null,ref.ancestor=0;else if(ref.ancestor!==void 0)assert$1(!separator||!key||key[0]!==separator,`Cannot combine prefix with ancestor option`);else{let[ancestor,slice]=internals.ancestor(key,separator);slice&&(key=key.slice(slice),key===``&&(key=null)),ref.ancestor=ancestor}return ref.path=separator?key===null?[]:key.split(separator):[key],new internals.Ref(ref)},exports.in=function(key,options={}){return exports.create(key,{...options,in:!0})},exports.isRef=function(ref){return ref?!!ref[Common$1.symbols.ref]:!1},internals.Ref=class{constructor(options){assert$1(typeof options==`object`,`Invalid reference construction`),Common$1.assertOptions(options,[`adjust`,`ancestor`,`in`,`iterables`,`map`,`path`,`render`,`separator`,`type`,`depth`,`key`,`root`,`display`]),assert$1([!1,void 0].includes(options.separator)||typeof options.separator==`string`&&options.separator.length===1,`Invalid separator`),assert$1(!options.adjust||typeof options.adjust==`function`,`options.adjust must be a function`),assert$1(!options.map||Array.isArray(options.map),`options.map must be an array`),assert$1(!options.map||!options.adjust,`Cannot set both map and adjust options`),Object.assign(this,internals.defaults,options),assert$1(this.type===`value`||this.ancestor===void 0,`Non-value references cannot reference ancestors`),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(value,state,prefs,local,options={}){return assert$1(!this.in||options.in,`Invalid in() reference usage`),this.type===`global`?this._resolve(prefs.context,state,options):this.type===`local`?this._resolve(local,state,options):this.ancestor?this.ancestor===`root`?this._resolve(state.ancestors[state.ancestors.length-1],state,options):(assert$1(this.ancestor<=state.ancestors.length,`Invalid reference exceeds the schema root:`,this.display),this._resolve(state.ancestors[this.ancestor-1],state,options)):this._resolve(value,state,options)}_resolve(target,state,options){let resolved;if(this.type===`value`&&state.mainstay.shadow&&options.shadow!==!1&&(resolved=state.mainstay.shadow.get(this.absolute(state))),resolved===void 0&&(resolved=reach(target,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(resolved=this.adjust(resolved)),this.map){let mapped=this.map.get(resolved);mapped!==void 0&&(resolved=mapped)}return state.mainstay&&state.mainstay.tracer.resolve(state,this,resolved),resolved}toString(){return this.display}absolute(state){return[...state.path.slice(0,-this.ancestor),...this.path]}clone(){return new internals.Ref(this)}describe(){let ref={path:this.path};this.type!==`value`&&(ref.type=this.type),this.separator!==`.`&&(ref.separator=this.separator),this.type===`value`&&this.ancestor!==1&&(ref.ancestor=this.ancestor),this.map&&(ref.map=[...this.map]);for(let key of[`adjust`,`iterables`,`render`])this[key]!==null&&this[key]!==void 0&&(ref[key]=this[key]);return this.in!==!1&&(ref.in=!0),{ref}}updateDisplay(){let key=this.key===null?``:this.key;if(this.type!==`value`){this.display=`ref:${this.type}:${key}`;return}if(!this.separator){this.display=`ref:${key}`;return}if(!this.ancestor){this.display=`ref:${this.separator}${key}`;return}if(this.ancestor===`root`){this.display=`ref:root:${key}`;return}if(this.ancestor===1){this.display=`ref:${key||`..`}`;return}let lead=Array(this.ancestor+1).fill(this.separator).join(``);this.display=`ref:${lead}${key||``}`}},internals.Ref.prototype[Common$1.symbols.ref]=!0,exports.build=function(desc$1){return desc$1=Object.assign({},internals.defaults,desc$1),desc$1.type===`value`&&desc$1.ancestor===void 0&&(desc$1.ancestor=1),new internals.Ref(desc$1)},internals.context=function(key,separator,prefix={}){if(key=key.trim(),prefix){let globalp=prefix.global===void 0?`$`:prefix.global;if(globalp!==separator&&key.startsWith(globalp))return{key:key.slice(globalp.length),type:`global`};let local=prefix.local===void 0?`#`:prefix.local;if(local!==separator&&key.startsWith(local))return{key:key.slice(local.length),type:`local`};let root=prefix.root===void 0?`/`:prefix.root;if(root!==separator&&key.startsWith(root))return{key:key.slice(root.length),type:`value`,root:!0}}return{key,type:`value`}},internals.ancestor=function(key,separator){if(!separator||key[0]!==separator)return[1,0];if(key[1]!==separator)return[0,1];let i$4=2;for(;key[i$4]===separator;)++i$4;return[i$4-1,i$4]},exports.toSibling=0,exports.toParent=1,exports.Manager=class{constructor(){this.refs=[]}register(source,target){if(source){if(target=target===void 0?exports.toParent:target,Array.isArray(source)){for(let ref of source)this.register(ref,target);return}if(Common$1.isSchema(source)){for(let item of source._refs.refs)item.ancestor-target>=0&&this.refs.push({ancestor:item.ancestor-target,root:item.root});return}exports.isRef(source)&&source.type===`value`&&source.ancestor-target>=0&&this.refs.push({ancestor:source.ancestor-target,root:source.root}),Template$1||=require_template(),Template$1.isTemplate(source)&&this.register(source.refs(),target)}}get length(){return this.refs.length}clone(){let copy=new exports.Manager;return copy.refs=clone$4(this.refs),copy}reset(){this.refs=[]}roots(){return this.refs.filter(ref=>!ref.ancestor).map(ref=>ref.root)}}});init_lib();var import_ref=__toESM(require_ref()),import_cache=__toESM(require_cache()),import_trace=__toESM(require_trace()),import_common=__toESM(require_common()),import_errors=__toESM(require_errors()),import_extend=__toESM(require_extend()),import_compile=__toESM(require_compile()),import_schemas=__toESM(require_schemas()),import_manifest=__toESM(require_manifest()),import_template=__toESM(require_template()),import_any=__toESM(require_any()),import_date=__toESM(require_date()),import_link=__toESM(require_link()),import_array=__toESM(require_array()),import_number=__toESM(require_number()),import_object=__toESM(require_object()),import_string=__toESM(require_string()),import_symbol=__toESM(require_symbol()),import_binary=__toESM(require_binary()),import_boolean=__toESM(require_boolean()),import_function=__toESM(require_function()),import_alternatives=__toESM(require_alternatives()),RootFactory=class RootFactory{static types={alternatives:import_alternatives.default,any:import_any.default,array:import_array.default,boolean:import_boolean.default,date:import_date.default,function:import_function.default,link:import_link.default,number:import_number.default,object:import_object.default,string:import_string.default,symbol:import_symbol.default,binary:import_binary.default};static aliases={alt:`alternatives`,bool:`boolean`,func:`function`};static assertValue(value,schema,annotate,args$1){let message=args$1[0]instanceof Error||typeof args$1[0]==`string`?args$1[0]:null,options=message===null?args$1[0]:args$1[1],result=schema.validate(value,import_common.preferences({errors:{stack:!0}},options||{})),error=result.error;if(!error)return result.value;if(message instanceof Error)throw message;let display=annotate&&typeof error.annotate==`function`?error.annotate():error.message;throw error instanceof import_errors.ValidationError||(error=(0,import_clone.default)(error)),error.message=message?`${message} ${display}`:display,error}static generate(root,schema,args$1){(0,import_assert.default)(root,`Must be invoked on a Joi instance.`);let cloned=schema.clone();return cloned.$_root=root,!cloned._definition.args||!args$1.length?cloned:cloned._definition.args(cloned,...args$1)}static expandExtension(extension,joi){if(typeof extension.type==`string`)return[extension];let extended=[];for(let type of joi._types)if(extension.type.test(type)){let item={...extension};item.type=type,item.base=joi[type](),extended.push(item)}return extended}static getMethods(){return{ValidationError:import_errors.ValidationError,version:import_common.version,cache:import_cache.provider,assert(value,schema,...args$1){RootFactory.assertValue(value,schema,!0,args$1)},attempt(value,schema,...args$1){return RootFactory.assertValue(value,schema,!1,args$1)},build(desc$1){return(0,import_assert.default)(typeof import_manifest.build==`function`,`Manifest functionality disabled`),import_manifest.build(this,desc$1)},checkPreferences(prefs){import_common.checkPreferences(prefs)},compile(schema,options){return import_compile.compile(this,schema,options)},defaults(modifier){(0,import_assert.default)(typeof modifier==`function`,`modifier must be a function`);let joi={...this};for(let type of joi._types){let schema=modifier(joi[type]());(0,import_assert.default)(import_common.isSchema(schema),`modifier must return a valid schema object`),joi[type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}return joi},expression(...args$1){return new import_template.default(...args$1)},extend(...extensions){import_common.verifyFlat(extensions,`extend`),(0,import_assert.default)(extensions.length,`You need to provide at least one extension`),this.assert(extensions,import_schemas.extensions);let joi={...this};joi._types=new Set(joi._types);for(let extension of extensions){typeof extension==`function`&&(extension=extension(joi)),this.assert(extension,import_schemas.extension);let expanded=RootFactory.expandExtension(extension,joi);for(let item of expanded){(0,import_assert.default)(joi[item.type]===void 0||joi._types.has(item.type),`Cannot override name`,item.type);let base=item.base||this.any(),schema=import_extend.type(base,item);joi._types.add(item.type),joi[item.type]=function(...args$1){return RootFactory.generate(this,schema,args$1)}}}return joi},isError:import_errors.ValidationError.isError,isExpression:import_template.default.isTemplate,isRef:import_ref.isRef,isSchema:import_common.isSchema,in(...args$1){return import_ref.in(...args$1)},override:import_common.symbols.override,ref(...args$1){return import_ref.create(...args$1)},types(){let result={};for(let type of this._types)result[type]=this[type]();for(let target in RootFactory.aliases)result[target]=this[target]();return result}}}static create(options={}){let instance={_types:new Set(Object.keys(RootFactory.types))};for(let type of instance._types)instance[type]=function(...args$1){(0,import_assert.default)(!args$1.length||[`alternatives`,`link`,`object`].includes(type),`The`,type,`type does not allow arguments`);let schema=RootFactory.types[type];if(options.schemaTypeModifiers?.length){for(let modifier of options.schemaTypeModifiers)schema=modifier(schema,this,args$1);if(type===`link`&&args$1.length&&schema.$_root)return schema}return RootFactory.generate(this,schema,args$1)};let shortcuts=[`allow`,`custom`,`disallow`,`equal`,`exist`,`forbidden`,`invalid`,`not`,`only`,`optional`,`options`,`prefs`,`preferences`,`required`,`strip`,`valid`,`when`];if(options.shortcutsModifiers?.length)for(let modifier of options.shortcutsModifiers)shortcuts=modifier(shortcuts);for(let method of shortcuts)instance[method]=function(...args$1){return this.any()[method](...args$1)};Object.assign(instance,RootFactory.getMethods());for(let[alias,original]of Object.entries(RootFactory.aliases))instance[alias]=instance[original];return instance.x=instance.expression,import_trace.setup&&import_trace.setup(instance),instance}},import_messages=__toESM(require_messages());const knexMessages={"knex.unique":`The {{#label}} has already been taken`,"knex.exists":`The selected {{#label}} is invalid`,"knex.missingConnection":`Database connection not provided for {{#label}}`,"knex.invalidTable":`Invalid table for {{#label}}`,"knex.invalidColumn":`Invalid column for {{#label}}`,"knex.internal":`Database validation error on {{#label}}`},knexClientCache=new WeakMap,isReference$1=(obj,root)=>root.isRef(obj),resolveKnex=connection=>{let db=knex.default;if(typeof connection!=`function`&&!(typeof connection==`object`&&connection&&!Array.isArray(connection)))throw Error(`Invalid Knex connection or QueryClientContract instance`);if(typeof connection.getReadClient==`function`)return connection.getReadClient();if(typeof connection.ref==`function`)return connection;if(typeof connection==`object`&&connection&&`client`in connection&&`connection`in connection){let cached=knexClientCache.get(connection);if(cached)return cached;let config={client:connection.client,dialect:connection.dialect,connection:connection.connection,jsonbSupport:connection.jsonbSupport,version:connection.version,postProcessResponse:connection.postProcessResponse,wrapIdentifier:connection.wrapIdentifier,acquireConnectionTimeout:connection.acquireConnectionTimeout,useNullAsDefault:connection.useNullAsDefault,searchPath:connection.searchPath,fetchAsString:connection.fetchAsString,pool:connection.pool},conn=db(config);return knexClientCache.set(connection,conn),conn}throw Error(`Invalid Knex connection or QueryClientContract instance`)},resolveQueryBuilder=(connection,table)=>{let conn=resolveKnex(connection);return{client:conn,query:conn.table(table)}},getMergableMessages=schema=>{if(`_definition`in schema){let def=schema._definition;if(`messages`in def&&def.messages)return typeof def.messages==`string`?{}:def.messages}return{}};function setKnexConnection(connection){this.$_terms!==void 0&&(`keys`in this.$_terms&&this.$_terms.keys!==null&&this.$_terms.keys.forEach((item,index)=>{this.$_terms.keys[index].schema=setKnexConnection.call(item.schema,connection)}),`matches`in this.$_terms&&this.$_terms.matches!==null&&(this.$_terms.matches=this.$_terms.matches.map(match$2=>({...match$2,schema:match$2.schema?setKnexConnection.call(match$2.schema,connection):void 0,switch:match$2.switch?match$2.switch.map(branch=>({is:branch.is?setKnexConnection.call(branch.is,connection):void 0,then:branch.then?setKnexConnection.call(branch.then,connection):void 0,else:branch.else?setKnexConnection.call(branch.else,connection):void 0})):void 0}))),`_exclusions`in this.$_terms&&this.$_terms._exclusions!==null&&(this.$_terms._exclusions=this.$_terms._exclusions.map(exclusion=>setKnexConnection.call(exclusion,connection))),`_inclusions`in this.$_terms&&this.$_terms._inclusions!==null&&(this.$_terms._inclusions=this.$_terms._inclusions.map(inclusion=>setKnexConnection.call(inclusion,connection))),`_requireds`in this.$_terms&&this.$_terms._requireds!==null&&(this.$_terms._requireds=this.$_terms._requireds.map(required=>setKnexConnection.call(required,connection))),`items`in this.$_terms&&this.$_terms.items!==null&&(this.$_terms.items=this.$_terms.items.map(item=>setKnexConnection.call(item,connection))));let toSet=this.$_knex||this.$_getFlag(`knexConnection`)||connection;return this.$_knex=toSet,this.$_setFlag(`knexConnection`,toSet)}function findKnexConnection(){if(this.$_knex)return this.$_knex;let connection=this.$_getFlag?.(`knexConnection`);if(connection)return connection;let current=this;for(;current&&`$_super`in current&¤t.$_super;)if(current=current.$_super,connection=current.$_getFlag?.(`knexConnection`),connection)return connection}const knex$1=(schema,root,args$1)=>{let prototype=Object.getPrototypeOf(schema),originalMessages=getMergableMessages(schema),mergedMessages=import_messages.merge(originalMessages,knexMessages);return prototype._definition.messages=mergedMessages,prototype._definition.flags.knexConnection={default:void 0,setter:`knex`},prototype._definition.flags.knexFunctionArgs={default:{},setter:`setKnexFunctionArgs`},prototype.setKnexFunctionArgs||=function(knexFunctionArgs){return this.$_setFlag(`knexFunctionArgs`,knexFunctionArgs)},prototype.setArgsForFnCall||=function(id,knexFunctionArgs){let currentArgs=this.$_getFlag(`knexFunctionArgs`)||{};return knexFunctionArgs={...currentArgs,[id]:knexFunctionArgs},this.$_setFlag(`knexFunctionArgs`,knexFunctionArgs)},prototype.getArgsForFnCall||=function(id){return this.$_getFlag(`knexFunctionArgs`)[id]},prototype.knex||=function(connection){return setKnexConnection.call(this,connection)},prototype.db||=function(connection){return setKnexConnection.call(this,connection)},prototype.uniqueInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},returnable=this.setArgsForFnCall(`uniqueInDb`,{table,column,options:opts}),connection=findKnexConnection.call(returnable);return returnable.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let{table:tableArg,column:columnArg,options:optsArg}=localSchema.getArgsForFnCall(`uniqueInDb`),resolvedTable=isReference$1(tableArg,localSchema.$_root)?tableArg.resolve(value,state,prefs):tableArg,resolvedColumn=isReference$1(columnArg,localSchema.$_root)?columnArg.resolve(value,state,prefs):columnArg;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;let{client,query}=resolveQueryBuilder(connection,resolvedTable);try{if(query.select(resolvedColumn).limit(1),optsArg.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),optsArg.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await optsArg.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?error(`knex.unique`,{value,table:resolvedTable,column:resolvedColumn}):value}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`uniqueInDb`)},prototype.existsInDb||=function(table,column,options){let opts={caseInsensitive:!1,filter:()=>{},...options},returnable=this.setArgsForFnCall(`existsInDb`,{table,column,options:opts}),connection=findKnexConnection.call(returnable);return returnable.external(async(value,helpers)=>{let{prefs,state,error,schema:localSchema}=helpers;if(!connection&&localSchema._flags&&(connection=localSchema._flags.knexConnection),!connection)return error(`knex.missingConnection`,{value});let{table:tableArg,column:columnArg,options:optsArg}=localSchema.getArgsForFnCall(`existsInDb`),resolvedTable=isReference$1(tableArg,localSchema.$_root)?tableArg.resolve(value,state,prefs):tableArg,resolvedColumn=isReference$1(columnArg,localSchema.$_root)?columnArg.resolve(value,state,prefs):columnArg;if(!resolvedTable||typeof resolvedTable!=`string`)return error(`knex.invalidTable`,{value,table:resolvedTable,column:resolvedColumn});if(!resolvedColumn||typeof resolvedColumn!=`string`)return error(`knex.invalidColumn`,{value,table:resolvedTable,column:resolvedColumn});if(value==null)return value;let{client,query}=resolveQueryBuilder(connection,resolvedTable);try{if(query.select(resolvedColumn).limit(1),optsArg.caseInsensitive?query.whereRaw(`lower(${resolvedColumn}) = ?`,[client.raw(`lower(?)`,[value])]):query.where(resolvedColumn,value),optsArg.filter){let{error:errorFn,warn:warnFn,message:messageFn,...safeHelpers}=helpers;await optsArg.filter(query,value,resolvedColumn,safeHelpers)}let row=await query.first();return row?value:error(`knex.exists`,{value,table:resolvedTable,column:resolvedColumn})}catch(err$1){return error(`knex.internal`,{value,table:resolvedTable,column:resolvedColumn,error:err$1})}},`existsInDb`)},RootFactory.generate(root,schema,args$1)};var De=t$5=>{throw TypeError(t$5)},Ne=(t$5,o,r)=>o.has(t$5)||De(`Cannot `+r),M=(t$5,o,r)=>(Ne(t$5,o,`read from private field`),r?r.call(t$5):o.get(t$5)),ee=(t$5,o,r)=>o.has(t$5)?De(`Cannot add the same private member more than once`):o instanceof WeakSet?o.add(t$5):o.set(t$5,r),X=(t$5,o,r,u)=>(Ne(t$5,o,`write to private field`),u?u.call(t$5,r):o.set(t$5,r),r),ne=(t$5,o,r)=>(Ne(t$5,o,`access private method`),r),LuxonError$1=class extends Error{},InvalidDateTimeError$1=class extends LuxonError$1{constructor(o){super(`Invalid DateTime: ${o.toMessage()}`)}},InvalidIntervalError$1=class extends LuxonError$1{constructor(o){super(`Invalid Interval: ${o.toMessage()}`)}},InvalidDurationError$1=class extends LuxonError$1{constructor(o){super(`Invalid Duration: ${o.toMessage()}`)}},ConflictingSpecificationError$1=class extends LuxonError$1{},InvalidUnitError$1=class extends LuxonError$1{constructor(o){super(`Invalid unit ${o}`)}},InvalidArgumentError$1=class extends LuxonError$1{},ZoneIsAbstractError$1=class extends LuxonError$1{constructor(){super(`Zone is an abstract class`)}};const n$1=`numeric`,s$1=`short`,l$1=`long`,DATE_SHORT$1={year:n$1,month:n$1,day:n$1},DATE_MED$1={year:n$1,month:s$1,day:n$1},DATE_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1},DATE_FULL$1={year:n$1,month:l$1,day:n$1},DATE_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1},TIME_SIMPLE$1={hour:n$1,minute:n$1},TIME_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1},TIME_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},TIME_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1},TIME_24_SIMPLE$1={hour:n$1,minute:n$1,hourCycle:`h23`},TIME_24_WITH_SECONDS$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:s$1},TIME_24_WITH_LONG_OFFSET$1={hour:n$1,minute:n$1,second:n$1,hourCycle:`h23`,timeZoneName:l$1},DATETIME_SHORT$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1},DATETIME_SHORT_WITH_SECONDS$1={year:n$1,month:n$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1},DATETIME_MED_WITH_SECONDS$1={year:n$1,month:s$1,day:n$1,hour:n$1,minute:n$1,second:n$1},DATETIME_MED_WITH_WEEKDAY$1={year:n$1,month:s$1,day:n$1,weekday:s$1,hour:n$1,minute:n$1},DATETIME_FULL$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,timeZoneName:s$1},DATETIME_FULL_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:s$1},DATETIME_HUGE$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS$1={year:n$1,month:l$1,day:n$1,weekday:l$1,hour:n$1,minute:n$1,second:n$1,timeZoneName:l$1};var Zone$1=class{get type(){throw new ZoneIsAbstractError$1}get name(){throw new ZoneIsAbstractError$1}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError$1}offsetName(o,r){throw new ZoneIsAbstractError$1}formatOffset(o,r){throw new ZoneIsAbstractError$1}offset(o){throw new ZoneIsAbstractError$1}equals(o){throw new ZoneIsAbstractError$1}get isValid(){throw new ZoneIsAbstractError$1}};let singleton$1$1=null;var SystemZone$1=class SystemZone$1 extends Zone$1{static get instance(){return singleton$1$1===null&&(singleton$1$1=new SystemZone$1),singleton$1$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){return-new Date(o).getTimezoneOffset()}equals(o){return o.type===`system`}get isValid(){return!0}};const dtfCache$1=new Map;function makeDTF$1(t$5){let o=dtfCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:t$5,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache$1.set(t$5,o)),o}const typeToPos$1={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset$1(t$5,o){let r=t$5.format(o).replace(/\u200E/g,``),u=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,h,m,y,S,_,C,O]=u;return[y,h,m,S,_,C,O]}function partsOffset$1(t$5,o){let r=t$5.formatToParts(o),u=[];for(let h=0;h<r.length;h++){let{type:m,value:y}=r[h],S=typeToPos$1[m];m===`era`?u[S]=y:isUndefined$1(S)||(u[S]=parseInt(y,10))}return u}const ianaZoneCache$1=new Map;var IANAZone$1=class IANAZone$1 extends Zone$1{static create(o){let r=ianaZoneCache$1.get(o);return r===void 0&&ianaZoneCache$1.set(o,r=new IANAZone$1(o)),r}static resetCache(){ianaZoneCache$1.clear(),dtfCache$1.clear()}static isValidSpecifier(o){return this.isValidZone(o)}static isValidZone(o){if(!o)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:o}).format(),!0}catch{return!1}}constructor(o){super(),this.zoneName=o,this.valid=IANAZone$1.isValidZone(o)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(o,{format:r,locale:u}){return parseZoneInfo$1(o,r,u,this.name)}formatOffset(o,r){return formatOffset$1(this.offset(o),r)}offset(o){if(!this.valid)return NaN;let r=new Date(o);if(isNaN(r))return NaN;let u=makeDTF$1(this.name),[h,m,y,S,_,C,O]=u.formatToParts?partsOffset$1(u,r):hackyOffset$1(u,r);S===`BC`&&(h=-Math.abs(h)+1);let R$1=objToLocalTS$1({year:h,month:m,day:y,hour:_===24?0:_,minute:C,second:O,millisecond:0}),U=+r,F=U%1e3;return U-=F>=0?F:1e3+F,(R$1-U)/(60*1e3)}equals(o){return o.type===`iana`&&o.name===this.name}get isValid(){return this.valid}};let intlLFCache$1={};function getCachedLF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlLFCache$1[r];return u||(u=new Intl.ListFormat(t$5,o),intlLFCache$1[r]=u),u}const intlDTCache$1=new Map;function getCachedDTF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlDTCache$1.get(r);return u===void 0&&(u=new Intl.DateTimeFormat(t$5,o),intlDTCache$1.set(r,u)),u}const intlNumCache$1=new Map;function getCachedINF$1(t$5,o={}){let r=JSON.stringify([t$5,o]),u=intlNumCache$1.get(r);return u===void 0&&(u=new Intl.NumberFormat(t$5,o),intlNumCache$1.set(r,u)),u}const intlRelCache$1=new Map;function getCachedRTF$1(t$5,o={}){let{base:r,...u}=o,h=JSON.stringify([t$5,u]),m=intlRelCache$1.get(h);return m===void 0&&(m=new Intl.RelativeTimeFormat(t$5,o),intlRelCache$1.set(h,m)),m}let sysLocaleCache$1=null;function systemLocale$1(){return sysLocaleCache$1||(sysLocaleCache$1=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache$1)}const intlResolvedOptionsCache$1=new Map;function getCachedIntResolvedOptions$1(t$5){let o=intlResolvedOptionsCache$1.get(t$5);return o===void 0&&(o=new Intl.DateTimeFormat(t$5).resolvedOptions(),intlResolvedOptionsCache$1.set(t$5,o)),o}const weekInfoCache$1=new Map;function getCachedWeekInfo$1(t$5){let o=weekInfoCache$1.get(t$5);if(!o){let r=new Intl.Locale(t$5);o=`getWeekInfo`in r?r.getWeekInfo():r.weekInfo,`minimalDays`in o||(o={...fallbackWeekSettings$1,...o}),weekInfoCache$1.set(t$5,o)}return o}function parseLocaleString$1(t$5){let o=t$5.indexOf(`-x-`);o!==-1&&(t$5=t$5.substring(0,o));let r=t$5.indexOf(`-u-`);if(r===-1)return[t$5];{let u,h;try{u=getCachedDTF$1(t$5).resolvedOptions(),h=t$5}catch{let _=t$5.substring(0,r);u=getCachedDTF$1(_).resolvedOptions(),h=_}let{numberingSystem:m,calendar:y}=u;return[h,m,y]}}function intlConfigString$1(t$5,o,r){return(r||o)&&(t$5.includes(`-u-`)||(t$5+=`-u`),r&&(t$5+=`-ca-${r}`),o&&(t$5+=`-nu-${o}`)),t$5}function mapMonths$1(t$5){let o=[];for(let r=1;r<=12;r++){let u=DateTime$1.utc(2009,r,1);o.push(t$5(u))}return o}function mapWeekdays$1(t$5){let o=[];for(let r=1;r<=7;r++){let u=DateTime$1.utc(2016,11,13+r);o.push(t$5(u))}return o}function listStuff$1(t$5,o,r,u){let h=t$5.listingMode();return h===`error`?null:h===`en`?r(o):u(o)}function supportsFastNumbers$1(t$5){return t$5.numberingSystem&&t$5.numberingSystem!==`latn`?!1:t$5.numberingSystem===`latn`||!t$5.locale||t$5.locale.startsWith(`en`)||getCachedIntResolvedOptions$1(t$5.locale).numberingSystem===`latn`}var PolyNumberFormatter$1=class{constructor(o,r,u){this.padTo=u.padTo||0,this.floor=u.floor||!1;let{padTo:h,floor:m,...y}=u;if(!r||Object.keys(y).length>0){let S={useGrouping:!1,...u};u.padTo>0&&(S.minimumIntegerDigits=u.padTo),this.inf=getCachedINF$1(o,S)}}format(o){if(this.inf){let r=this.floor?Math.floor(o):o;return this.inf.format(r)}else{let r=this.floor?Math.floor(o):roundTo$1(o,3);return padStart$1(r,this.padTo)}}},PolyDateFormatter$1=class{constructor(o,r,u){this.opts=u,this.originalZone=void 0;let h;if(this.opts.timeZone)this.dt=o;else if(o.zone.type===`fixed`){let y=-1*(o.offset/60),S=y>=0?`Etc/GMT+${y}`:`Etc/GMT${y}`;o.offset!==0&&IANAZone$1.create(S).valid?(h=S,this.dt=o):(h=`UTC`,this.dt=o.offset===0?o:o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone)}else o.zone.type===`system`?this.dt=o:o.zone.type===`iana`?(this.dt=o,h=o.zone.name):(h=`UTC`,this.dt=o.setZone(`UTC`).plus({minutes:o.offset}),this.originalZone=o.zone);let m={...this.opts};m.timeZone=m.timeZone||h,this.dtf=getCachedDTF$1(r,m)}format(){return this.originalZone?this.formatToParts().map(({value:o})=>o).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let o=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?o.map(r=>{if(r.type===`timeZoneName`){let u=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:u}}else return r}):o}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter$1=class{constructor(o,r,u){this.opts={style:`long`,...u},!r&&hasRelative$1()&&(this.rtf=getCachedRTF$1(o,u))}format(o,r){return this.rtf?this.rtf.format(o,r):formatRelativeTime$1(r,o,this.opts.numeric,this.opts.style!==`long`)}formatToParts(o,r){return this.rtf?this.rtf.formatToParts(o,r):[]}};const fallbackWeekSettings$1={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale$1=class Locale$1{static fromOpts(o){return Locale$1.create(o.locale,o.numberingSystem,o.outputCalendar,o.weekSettings,o.defaultToEN)}static create(o,r,u,h,m=!1){let y=o||Settings$1.defaultLocale,S=y||(m?`en-US`:systemLocale$1()),_=r||Settings$1.defaultNumberingSystem,C=u||Settings$1.defaultOutputCalendar,O=validateWeekSettings$1(h)||Settings$1.defaultWeekSettings;return new Locale$1(S,_,C,O,y)}static resetCache(){sysLocaleCache$1=null,intlDTCache$1.clear(),intlNumCache$1.clear(),intlRelCache$1.clear(),intlResolvedOptionsCache$1.clear(),weekInfoCache$1.clear()}static fromObject({locale:o,numberingSystem:r,outputCalendar:u,weekSettings:h}={}){return Locale$1.create(o,r,u,h)}constructor(o,r,u,h,m){let[y,S,_]=parseLocaleString$1(o);this.locale=y,this.numberingSystem=r||S||null,this.outputCalendar=u||_||null,this.weekSettings=h,this.intl=intlConfigString$1(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=m,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers$1(this),this.fastNumbersCached}listingMode(){let o=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return o&&r?`en`:`intl`}clone(o){return!o||Object.getOwnPropertyNames(o).length===0?this:Locale$1.create(o.locale||this.specifiedLocale,o.numberingSystem||this.numberingSystem,o.outputCalendar||this.outputCalendar,validateWeekSettings$1(o.weekSettings)||this.weekSettings,o.defaultToEN||!1)}redefaultToEN(o={}){return this.clone({...o,defaultToEN:!0})}redefaultToSystem(o={}){return this.clone({...o,defaultToEN:!1})}months(o,r=!1){return listStuff$1(this,o,months$1,()=>{let u=r?{month:o,day:`numeric`}:{month:o},h=r?`format`:`standalone`;return this.monthsCache[h][o]||(this.monthsCache[h][o]=mapMonths$1(m=>this.extract(m,u,`month`))),this.monthsCache[h][o]})}weekdays(o,r=!1){return listStuff$1(this,o,weekdays$1,()=>{let u=r?{weekday:o,year:`numeric`,month:`long`,day:`numeric`}:{weekday:o},h=r?`format`:`standalone`;return this.weekdaysCache[h][o]||(this.weekdaysCache[h][o]=mapWeekdays$1(m=>this.extract(m,u,`weekday`))),this.weekdaysCache[h][o]})}meridiems(){return listStuff$1(this,void 0,()=>meridiems$1,()=>{if(!this.meridiemCache){let o={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime$1.utc(2016,11,13,9),DateTime$1.utc(2016,11,13,19)].map(r=>this.extract(r,o,`dayperiod`))}return this.meridiemCache})}eras(o){return listStuff$1(this,o,eras$1,()=>{let r={era:o};return this.eraCache[o]||(this.eraCache[o]=[DateTime$1.utc(-40,1,1),DateTime$1.utc(2017,1,1)].map(u=>this.extract(u,r,`era`))),this.eraCache[o]})}extract(o,r,u){let h=this.dtFormatter(o,r),m=h.formatToParts(),y=m.find(S=>S.type.toLowerCase()===u);return y?y.value:null}numberFormatter(o={}){return new PolyNumberFormatter$1(this.intl,o.forceSimple||this.fastNumbers,o)}dtFormatter(o,r={}){return new PolyDateFormatter$1(o,this.intl,r)}relFormatter(o={}){return new PolyRelFormatter$1(this.intl,this.isEnglish(),o)}listFormatter(o={}){return getCachedLF$1(this.intl,o)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions$1(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo$1()?getCachedWeekInfo$1(this.locale):fallbackWeekSettings$1}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(o){return this.locale===o.locale&&this.numberingSystem===o.numberingSystem&&this.outputCalendar===o.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton$2=null;var FixedOffsetZone$1=class FixedOffsetZone$1 extends Zone$1{static get utcInstance(){return singleton$2===null&&(singleton$2=new FixedOffsetZone$1(0)),singleton$2}static instance(o){return o===0?FixedOffsetZone$1.utcInstance:new FixedOffsetZone$1(o)}static parseSpecifier(o){if(o){let r=o.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone$1(signedOffset$1(r[1],r[2]))}return null}constructor(o){super(),this.fixed=o}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset$1(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset$1(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(o,r){return formatOffset$1(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(o){return o.type===`fixed`&&o.fixed===this.fixed}get isValid(){return!0}},InvalidZone$1=class extends Zone$1{constructor(o){super(),this.zoneName=o}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone$1(t$5,o){if(isUndefined$1(t$5)||t$5===null)return o;if(t$5 instanceof Zone$1)return t$5;if(isString$1(t$5)){let r=t$5.toLowerCase();return r===`default`?o:r===`local`||r===`system`?SystemZone$1.instance:r===`utc`||r===`gmt`?FixedOffsetZone$1.utcInstance:FixedOffsetZone$1.parseSpecifier(r)||IANAZone$1.create(t$5)}else return isNumber$1(t$5)?FixedOffsetZone$1.instance(t$5):typeof t$5==`object`&&`offset`in t$5&&typeof t$5.offset==`function`?t$5:new InvalidZone$1(t$5)}const numberingSystems$1={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16$1={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars$1=numberingSystems$1.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits$1(t$5){let o=parseInt(t$5,10);if(isNaN(o)){o=``;for(let r=0;r<t$5.length;r++){let u=t$5.charCodeAt(r);if(t$5[r].search(numberingSystems$1.hanidec)!==-1)o+=hanidecChars$1.indexOf(t$5[r]);else for(let h in numberingSystemsUTF16$1){let[m,y]=numberingSystemsUTF16$1[h];u>=m&&u<=y&&(o+=u-m)}}return parseInt(o,10)}else return o}const digitRegexCache$1=new Map;function resetDigitRegexCache$1(){digitRegexCache$1.clear()}function digitRegex$1({numberingSystem:t$5},o=``){let r=t$5||`latn`,u=digitRegexCache$1.get(r);u===void 0&&(u=new Map,digitRegexCache$1.set(r,u));let h=u.get(o);return h===void 0&&(h=RegExp(`${numberingSystems$1[r]}${o}`),u.set(o,h)),h}let now$1=()=>Date.now(),defaultZone$1=`system`,defaultLocale$1=null,defaultNumberingSystem$1=null,defaultOutputCalendar$1=null,twoDigitCutoffYear$1=60,throwOnInvalid$1,defaultWeekSettings$1=null;var Settings$1=class{static get now(){return now$1}static set now(o){now$1=o}static set defaultZone(o){defaultZone$1=o}static get defaultZone(){return normalizeZone$1(defaultZone$1,SystemZone$1.instance)}static get defaultLocale(){return defaultLocale$1}static set defaultLocale(o){defaultLocale$1=o}static get defaultNumberingSystem(){return defaultNumberingSystem$1}static set defaultNumberingSystem(o){defaultNumberingSystem$1=o}static get defaultOutputCalendar(){return defaultOutputCalendar$1}static set defaultOutputCalendar(o){defaultOutputCalendar$1=o}static get defaultWeekSettings(){return defaultWeekSettings$1}static set defaultWeekSettings(o){defaultWeekSettings$1=validateWeekSettings$1(o)}static get twoDigitCutoffYear(){return twoDigitCutoffYear$1}static set twoDigitCutoffYear(o){twoDigitCutoffYear$1=o%100}static get throwOnInvalid(){return throwOnInvalid$1}static set throwOnInvalid(o){throwOnInvalid$1=o}static resetCaches(){Locale$1.resetCache(),IANAZone$1.resetCache(),DateTime$1.resetCache(),resetDigitRegexCache$1()}},Invalid$1=class{constructor(o,r){this.reason=o,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder$1=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder$1=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange$1(t$5,o){return new Invalid$1(`unit out of range`,`you specified ${o} (of type ${typeof o}) as a ${t$5}, which is invalid`)}function dayOfWeek$1(t$5,o,r){let u=new Date(Date.UTC(t$5,o-1,r));t$5<100&&t$5>=0&&u.setUTCFullYear(u.getUTCFullYear()-1900);let h=u.getUTCDay();return h===0?7:h}function computeOrdinal$1(t$5,o,r){return r+(isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1)[o-1]}function uncomputeOrdinal$1(t$5,o){let r=isLeapYear$1(t$5)?leapLadder$1:nonLeapLadder$1,u=r.findIndex(m=>m<o),h=o-r[u];return{month:u+1,day:h}}function isoWeekdayToLocal$1(t$5,o){return(t$5-o+7)%7+1}function gregorianToWeek$1(t$5,o=4,r=1){let{year:u,month:h,day:m}=t$5,y=computeOrdinal$1(u,h,m),S=isoWeekdayToLocal$1(dayOfWeek$1(u,h,m),r),_=Math.floor((y-S+14-o)/7),C;return _<1?(C=u-1,_=weeksInWeekYear$1(C,o,r)):_>weeksInWeekYear$1(u,o,r)?(C=u+1,_=1):C=u,{weekYear:C,weekNumber:_,weekday:S,...timeObject$1(t$5)}}function weekToGregorian$1(t$5,o=4,r=1){let{weekYear:u,weekNumber:h,weekday:m}=t$5,y=isoWeekdayToLocal$1(dayOfWeek$1(u,1,o),r),S=daysInYear$1(u),_=h*7+m-y-7+o,C;_<1?(C=u-1,_+=daysInYear$1(C)):_>S?(C=u+1,_-=daysInYear$1(u)):C=u;let{month:O,day:I}=uncomputeOrdinal$1(C,_);return{year:C,month:O,day:I,...timeObject$1(t$5)}}function gregorianToOrdinal$1(t$5){let{year:o,month:r,day:u}=t$5,h=computeOrdinal$1(o,r,u);return{year:o,ordinal:h,...timeObject$1(t$5)}}function ordinalToGregorian$1(t$5){let{year:o,ordinal:r}=t$5,{month:u,day:h}=uncomputeOrdinal$1(o,r);return{year:o,month:u,day:h,...timeObject$1(t$5)}}function usesLocalWeekValues$1(t$5,o){if(!isUndefined$1(t$5.localWeekday)||!isUndefined$1(t$5.localWeekNumber)||!isUndefined$1(t$5.localWeekYear)){if(!isUndefined$1(t$5.weekday)||!isUndefined$1(t$5.weekNumber)||!isUndefined$1(t$5.weekYear))throw new ConflictingSpecificationError$1(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined$1(t$5.localWeekday)||(t$5.weekday=t$5.localWeekday),isUndefined$1(t$5.localWeekNumber)||(t$5.weekNumber=t$5.localWeekNumber),isUndefined$1(t$5.localWeekYear)||(t$5.weekYear=t$5.localWeekYear),delete t$5.localWeekday,delete t$5.localWeekNumber,delete t$5.localWeekYear,{minDaysInFirstWeek:o.getMinDaysInFirstWeek(),startOfWeek:o.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData$1(t$5,o=4,r=1){let u=isInteger$1(t$5.weekYear),h=integerBetween$1(t$5.weekNumber,1,weeksInWeekYear$1(t$5.weekYear,o,r)),m=integerBetween$1(t$5.weekday,1,7);return u?h?m?!1:unitOutOfRange$1(`weekday`,t$5.weekday):unitOutOfRange$1(`week`,t$5.weekNumber):unitOutOfRange$1(`weekYear`,t$5.weekYear)}function hasInvalidOrdinalData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.ordinal,1,daysInYear$1(t$5.year));return o?r?!1:unitOutOfRange$1(`ordinal`,t$5.ordinal):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidGregorianData$1(t$5){let o=isInteger$1(t$5.year),r=integerBetween$1(t$5.month,1,12),u=integerBetween$1(t$5.day,1,daysInMonth$1(t$5.year,t$5.month));return o?r?u?!1:unitOutOfRange$1(`day`,t$5.day):unitOutOfRange$1(`month`,t$5.month):unitOutOfRange$1(`year`,t$5.year)}function hasInvalidTimeData$1(t$5){let{hour:o,minute:r,second:u,millisecond:h}=t$5,m=integerBetween$1(o,0,23)||o===24&&r===0&&u===0&&h===0,y=integerBetween$1(r,0,59),S=integerBetween$1(u,0,59),_=integerBetween$1(h,0,999);return m?y?S?_?!1:unitOutOfRange$1(`millisecond`,h):unitOutOfRange$1(`second`,u):unitOutOfRange$1(`minute`,r):unitOutOfRange$1(`hour`,o)}function isUndefined$1(t$5){return typeof t$5>`u`}function isNumber$1(t$5){return typeof t$5==`number`}function isInteger$1(t$5){return typeof t$5==`number`&&t$5%1==0}function isString$1(t$5){return typeof t$5==`string`}function isDate$1(t$5){return Object.prototype.toString.call(t$5)===`[object Date]`}function hasRelative$1(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo$1(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray$1(t$5){return Array.isArray(t$5)?t$5:[t$5]}function bestBy$1(t$5,o,r){if(t$5.length!==0)return t$5.reduce((u,h)=>{let m=[o(h),h];return u&&r(u[0],m[0])===u[0]?u:m},null)[1]}function pick$1(t$5,o){return o.reduce((r,u)=>(r[u]=t$5[u],r),{})}function hasOwnProperty$1(t$5,o){return Object.prototype.hasOwnProperty.call(t$5,o)}function validateWeekSettings$1(t$5){if(t$5==null)return null;if(typeof t$5!=`object`)throw new InvalidArgumentError$1(`Week settings must be an object`);if(!integerBetween$1(t$5.firstDay,1,7)||!integerBetween$1(t$5.minimalDays,1,7)||!Array.isArray(t$5.weekend)||t$5.weekend.some(o=>!integerBetween$1(o,1,7)))throw new InvalidArgumentError$1(`Invalid week settings`);return{firstDay:t$5.firstDay,minimalDays:t$5.minimalDays,weekend:Array.from(t$5.weekend)}}function integerBetween$1(t$5,o,r){return isInteger$1(t$5)&&t$5>=o&&t$5<=r}function floorMod$1(t$5,o){return t$5-o*Math.floor(t$5/o)}function padStart$1(t$5,o=2){let r=t$5<0,u;return u=r?`-`+(``+-t$5).padStart(o,`0`):(``+t$5).padStart(o,`0`),u}function parseInteger$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseInt(t$5,10)}function parseFloating$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``))return parseFloat(t$5)}function parseMillis$1(t$5){if(!(isUndefined$1(t$5)||t$5===null||t$5===``)){let o=parseFloat(`0.`+t$5)*1e3;return Math.floor(o)}}function roundTo$1(t$5,o,r=!1){let u=10**o;return(r?Math.trunc:Math.round)(t$5*u)/u}function isLeapYear$1(t$5){return t$5%4==0&&(t$5%100!=0||t$5%400==0)}function daysInYear$1(t$5){return isLeapYear$1(t$5)?366:365}function daysInMonth$1(t$5,o){let r=floorMod$1(o-1,12)+1,u=t$5+(o-r)/12;return r===2?isLeapYear$1(u)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS$1(t$5){let o=Date.UTC(t$5.year,t$5.month-1,t$5.day,t$5.hour,t$5.minute,t$5.second,t$5.millisecond);return t$5.year<100&&t$5.year>=0&&(o=new Date(o),o.setUTCFullYear(t$5.year,t$5.month-1,t$5.day)),+o}function firstWeekOffset$1(t$5,o,r){return-isoWeekdayToLocal$1(dayOfWeek$1(t$5,1,o),r)+o-1}function weeksInWeekYear$1(t$5,o=4,r=1){let u=firstWeekOffset$1(t$5,o,r),h=firstWeekOffset$1(t$5+1,o,r);return(daysInYear$1(t$5)-u+h)/7}function untruncateYear$1(t$5){return t$5>99?t$5:t$5>Settings$1.twoDigitCutoffYear?1900+t$5:2e3+t$5}function parseZoneInfo$1(t$5,o,r,u=null){let h=new Date(t$5),m={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};u&&(m.timeZone=u);let y={timeZoneName:o,...m},S=new Intl.DateTimeFormat(r,y).formatToParts(h).find(_=>_.type.toLowerCase()===`timezonename`);return S?S.value:null}function signedOffset$1(t$5,o){let r=parseInt(t$5,10);Number.isNaN(r)&&(r=0);let u=parseInt(o,10)||0,h=r<0||Object.is(r,-0)?-u:u;return r*60+h}function asNumber$1(t$5){let o=Number(t$5);if(typeof t$5==`boolean`||t$5===``||Number.isNaN(o))throw new InvalidArgumentError$1(`Invalid unit value ${t$5}`);return o}function normalizeObject$1(t$5,o){let r={};for(let u in t$5)if(hasOwnProperty$1(t$5,u)){let h=t$5[u];if(h==null)continue;r[o(u)]=asNumber$1(h)}return r}function formatOffset$1(t$5,o){let r=Math.trunc(Math.abs(t$5/60)),u=Math.trunc(Math.abs(t$5%60)),h=t$5>=0?`+`:`-`;switch(o){case`short`:return`${h}${padStart$1(r,2)}:${padStart$1(u,2)}`;case`narrow`:return`${h}${r}${u>0?`:${u}`:``}`;case`techie`:return`${h}${padStart$1(r,2)}${padStart$1(u,2)}`;default:throw RangeError(`Value format ${o} is out of range for property format`)}}function timeObject$1(t$5){return pick$1(t$5,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong$1=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort$1=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow$1=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months$1(t$5){switch(t$5){case`narrow`:return[...monthsNarrow$1];case`short`:return[...monthsShort$1];case`long`:return[...monthsLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong$1=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort$1=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow$1=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays$1(t$5){switch(t$5){case`narrow`:return[...weekdaysNarrow$1];case`short`:return[...weekdaysShort$1];case`long`:return[...weekdaysLong$1];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems$1=[`AM`,`PM`],erasLong$1=[`Before Christ`,`Anno Domini`],erasShort$1=[`BC`,`AD`],erasNarrow$1=[`B`,`A`];function eras$1(t$5){switch(t$5){case`narrow`:return[...erasNarrow$1];case`short`:return[...erasShort$1];case`long`:return[...erasLong$1];default:return null}}function meridiemForDateTime$1(t$5){return meridiems$1[t$5.hour<12?0:1]}function weekdayForDateTime$1(t$5,o){return weekdays$1(o)[t$5.weekday-1]}function monthForDateTime$1(t$5,o){return months$1(o)[t$5.month-1]}function eraForDateTime$1(t$5,o){return eras$1(o)[t$5.year<0?0:1]}function formatRelativeTime$1(t$5,o,r=`always`,u=!1){let h={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},m=[`hours`,`minutes`,`seconds`].indexOf(t$5)===-1;if(r===`auto`&&m){let I=t$5===`days`;switch(o){case 1:return I?`tomorrow`:`next ${h[t$5][0]}`;case-1:return I?`yesterday`:`last ${h[t$5][0]}`;case 0:return I?`today`:`this ${h[t$5][0]}`}}let y=Object.is(o,-0)||o<0,S=Math.abs(o),_=S===1,C=h[t$5],O=u?_?C[1]:C[2]||C[1]:_?h[t$5][0]:t$5;return y?`${S} ${O} ago`:`in ${S} ${O}`}function stringifyTokens$1(t$5,o){let r=``;for(let u of t$5)u.literal?r+=u.val:r+=o(u.val);return r}const macroTokenToFormatOpts$1={D:DATE_SHORT$1,DD:DATE_MED$1,DDD:DATE_FULL$1,DDDD:DATE_HUGE$1,t:TIME_SIMPLE$1,tt:TIME_WITH_SECONDS$1,ttt:TIME_WITH_SHORT_OFFSET$1,tttt:TIME_WITH_LONG_OFFSET$1,T:TIME_24_SIMPLE$1,TT:TIME_24_WITH_SECONDS$1,TTT:TIME_24_WITH_SHORT_OFFSET$1,TTTT:TIME_24_WITH_LONG_OFFSET$1,f:DATETIME_SHORT$1,ff:DATETIME_MED$1,fff:DATETIME_FULL$1,ffff:DATETIME_HUGE$1,F:DATETIME_SHORT_WITH_SECONDS$1,FF:DATETIME_MED_WITH_SECONDS$1,FFF:DATETIME_FULL_WITH_SECONDS$1,FFFF:DATETIME_HUGE_WITH_SECONDS$1};var Formatter$1=class Formatter$1{static create(o,r={}){return new Formatter$1(o,r)}static parseFormat(o){let r=null,u=``,h=!1,m=[];for(let y=0;y<o.length;y++){let S=o.charAt(y);S===`'`?(u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),r=null,u=``,h=!h):h||S===r?u+=S:(u.length>0&&m.push({literal:/^\s+$/.test(u),val:u}),u=S,r=S)}return u.length>0&&m.push({literal:h||/^\s+$/.test(u),val:u}),m}static macroTokenToFormatOpts(o){return macroTokenToFormatOpts$1[o]}constructor(o,r){this.opts=r,this.loc=o,this.systemLoc=null}formatWithSystemDefault(o,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(o,{...this.opts,...r}).format()}dtFormatter(o,r={}){return this.loc.dtFormatter(o,{...this.opts,...r})}formatDateTime(o,r){return this.dtFormatter(o,r).format()}formatDateTimeParts(o,r){return this.dtFormatter(o,r).formatToParts()}formatInterval(o,r){return this.dtFormatter(o.start,r).dtf.formatRange(o.start.toJSDate(),o.end.toJSDate())}resolvedOptions(o,r){return this.dtFormatter(o,r).resolvedOptions()}num(o,r=0){if(this.opts.forceSimple)return padStart$1(o,r);let u={...this.opts};return r>0&&(u.padTo=r),this.loc.numberFormatter(u).format(o)}formatDateTimeFromString(o,r){let u=this.loc.listingMode()===`en`,h=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,m=(U,F)=>this.loc.extract(o,U,F),y=U=>o.isOffsetFixed&&o.offset===0&&U.allowZ?`Z`:o.isValid?o.zone.formatOffset(o.ts,U.format):``,S=()=>u?meridiemForDateTime$1(o):m({hour:`numeric`,hourCycle:`h12`},`dayperiod`),_=(U,F)=>u?monthForDateTime$1(o,U):m(F?{month:U}:{month:U,day:`numeric`},`month`),C=(U,F)=>u?weekdayForDateTime$1(o,U):m(F?{weekday:U}:{weekday:U,month:`long`,day:`numeric`},`weekday`),O=U=>{let F=Formatter$1.macroTokenToFormatOpts(U);return F?this.formatWithSystemDefault(o,F):U},I=U=>u?eraForDateTime$1(o,U):m({era:U},`era`),R$1=U=>{switch(U){case`S`:return this.num(o.millisecond);case`u`:case`SSS`:return this.num(o.millisecond,3);case`s`:return this.num(o.second);case`ss`:return this.num(o.second,2);case`uu`:return this.num(Math.floor(o.millisecond/10),2);case`uuu`:return this.num(Math.floor(o.millisecond/100));case`m`:return this.num(o.minute);case`mm`:return this.num(o.minute,2);case`h`:return this.num(o.hour%12==0?12:o.hour%12);case`hh`:return this.num(o.hour%12==0?12:o.hour%12,2);case`H`:return this.num(o.hour);case`HH`:return this.num(o.hour,2);case`Z`:return y({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return y({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return y({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return o.zone.offsetName(o.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return o.zone.offsetName(o.ts,{format:`long`,locale:this.loc.locale});case`z`:return o.zoneName;case`a`:return S();case`d`:return h?m({day:`numeric`},`day`):this.num(o.day);case`dd`:return h?m({day:`2-digit`},`day`):this.num(o.day,2);case`c`:return this.num(o.weekday);case`ccc`:return C(`short`,!0);case`cccc`:return C(`long`,!0);case`ccccc`:return C(`narrow`,!0);case`E`:return this.num(o.weekday);case`EEE`:return C(`short`,!1);case`EEEE`:return C(`long`,!1);case`EEEEE`:return C(`narrow`,!1);case`L`:return h?m({month:`numeric`,day:`numeric`},`month`):this.num(o.month);case`LL`:return h?m({month:`2-digit`,day:`numeric`},`month`):this.num(o.month,2);case`LLL`:return _(`short`,!0);case`LLLL`:return _(`long`,!0);case`LLLLL`:return _(`narrow`,!0);case`M`:return h?m({month:`numeric`},`month`):this.num(o.month);case`MM`:return h?m({month:`2-digit`},`month`):this.num(o.month,2);case`MMM`:return _(`short`,!1);case`MMMM`:return _(`long`,!1);case`MMMMM`:return _(`narrow`,!1);case`y`:return h?m({year:`numeric`},`year`):this.num(o.year);case`yy`:return h?m({year:`2-digit`},`year`):this.num(o.year.toString().slice(-2),2);case`yyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,4);case`yyyyyy`:return h?m({year:`numeric`},`year`):this.num(o.year,6);case`G`:return I(`short`);case`GG`:return I(`long`);case`GGGGG`:return I(`narrow`);case`kk`:return this.num(o.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(o.weekYear,4);case`W`:return this.num(o.weekNumber);case`WW`:return this.num(o.weekNumber,2);case`n`:return this.num(o.localWeekNumber);case`nn`:return this.num(o.localWeekNumber,2);case`ii`:return this.num(o.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(o.localWeekYear,4);case`o`:return this.num(o.ordinal);case`ooo`:return this.num(o.ordinal,3);case`q`:return this.num(o.quarter);case`qq`:return this.num(o.quarter,2);case`X`:return this.num(Math.floor(o.ts/1e3));case`x`:return this.num(o.ts);default:return O(U)}};return stringifyTokens$1(Formatter$1.parseFormat(r),R$1)}formatDurationFromString(o,r){let u=_=>{switch(_[0]){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:return`hour`;case`d`:return`day`;case`w`:return`week`;case`M`:return`month`;case`y`:return`year`;default:return null}},h=_=>C=>{let O=u(C);return O?this.num(_.get(O),C.length):C},m=Formatter$1.parseFormat(r),y=m.reduce((_,{literal:C,val:O})=>C?_:_.concat(O),[]),S=o.shiftTo(...y.map(u).filter(_=>_));return stringifyTokens$1(m,h(S))}};const ianaRegex$1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes$1(...t$5){let o=t$5.reduce((r,u)=>r+u.source,``);return RegExp(`^${o}$`)}function combineExtractors$1(...t$5){return o=>t$5.reduce(([r,u,h],m)=>{let[y,S,_]=m(o,h);return[{...r,...y},S||u,_]},[{},null,1]).slice(0,2)}function parse$9(t$5,...o){if(t$5==null)return[null,null];for(let[r,u]of o){let h=r.exec(t$5);if(h)return u(h)}return[null,null]}function simpleParse$1(...t$5){return(o,r)=>{let u={},h;for(h=0;h<t$5.length;h++)u[t$5[h]]=parseInteger$1(o[r+h]);return[u,null,r+h]}}const offsetRegex$1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone$1=`(?:${offsetRegex$1.source}?(?:\\[(${ianaRegex$1.source})\\])?)?`,isoTimeBaseRegex$1=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source}${isoExtendedZone$1}`),isoTimeExtensionRegex$1=RegExp(`(?:T${isoTimeRegex$1.source})?`),isoYmdRegex$1=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex$1=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex$1=/(\d{4})-?(\d{3})/,extractISOWeekData$1=simpleParse$1(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData$1=simpleParse$1(`year`,`ordinal`),sqlYmdRegex$1=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex$1=RegExp(`${isoTimeBaseRegex$1.source} ?(?:${offsetRegex$1.source}|(${ianaRegex$1.source}))?`),sqlTimeExtensionRegex$1=RegExp(`(?: ${sqlTimeRegex$1.source})?`);function int$1(t$5,o,r){let u=t$5[o];return isUndefined$1(u)?r:parseInteger$1(u)}function extractISOYmd$1(t$5,o){return[{year:int$1(t$5,o),month:int$1(t$5,o+1,1),day:int$1(t$5,o+2,1)},null,o+3]}function extractISOTime$1(t$5,o){return[{hours:int$1(t$5,o,0),minutes:int$1(t$5,o+1,0),seconds:int$1(t$5,o+2,0),milliseconds:parseMillis$1(t$5[o+3])},null,o+4]}function extractISOOffset$1(t$5,o){let r=!t$5[o]&&!t$5[o+1],u=signedOffset$1(t$5[o+1],t$5[o+2]),h=r?null:FixedOffsetZone$1.instance(u);return[{},h,o+3]}function extractIANAZone$1(t$5,o){let r=t$5[o]?IANAZone$1.create(t$5[o]):null;return[{},r,o+1]}const isoTimeOnly$1=RegExp(`^T?${isoTimeBaseRegex$1.source}$`),isoDuration$1=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration$1(t$5){let[o,r,u,h,m,y,S,_,C]=t$5,O=o[0]===`-`,I=_&&_[0]===`-`,R$1=(U,F=!1)=>U!==void 0&&(F||U&&O)?-U:U;return[{years:R$1(parseFloating$1(r)),months:R$1(parseFloating$1(u)),weeks:R$1(parseFloating$1(h)),days:R$1(parseFloating$1(m)),hours:R$1(parseFloating$1(y)),minutes:R$1(parseFloating$1(S)),seconds:R$1(parseFloating$1(_),_===`-0`),milliseconds:R$1(parseMillis$1(C),I)}]}const obsOffsets$1={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings$1(t$5,o,r,u,h,m,y){let S={year:o.length===2?untruncateYear$1(parseInteger$1(o)):parseInteger$1(o),month:monthsShort$1.indexOf(r)+1,day:parseInteger$1(u),hour:parseInteger$1(h),minute:parseInteger$1(m)};return y&&(S.second=parseInteger$1(y)),t$5&&(S.weekday=t$5.length>3?weekdaysLong$1.indexOf(t$5)+1:weekdaysShort$1.indexOf(t$5)+1),S}const rfc2822$1=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822$1(t$5){let[,o,r,u,h,m,y,S,_,C,O,I]=t$5,R$1=fromStrings$1(o,h,u,r,m,y,S),U;return U=_?obsOffsets$1[_]:C?0:signedOffset$1(O,I),[R$1,new FixedOffsetZone$1(U)]}function preprocessRFC2822$1(t$5){return t$5.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850$1=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii$1=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,h,u,r,m,y,S),FixedOffsetZone$1.utcInstance]}function extractASCII$1(t$5){let[,o,r,u,h,m,y,S]=t$5;return[fromStrings$1(o,S,r,u,h,m,y),FixedOffsetZone$1.utcInstance]}const isoYmdWithTimeExtensionRegex$1=combineRegexes$1(isoYmdRegex$1,isoTimeExtensionRegex$1),isoWeekWithTimeExtensionRegex$1=combineRegexes$1(isoWeekRegex$1,isoTimeExtensionRegex$1),isoOrdinalWithTimeExtensionRegex$1=combineRegexes$1(isoOrdinalRegex$1,isoTimeExtensionRegex$1),isoTimeCombinedRegex$1=combineRegexes$1(isoTimeRegex$1),extractISOYmdTimeAndOffset$1=combineExtractors$1(extractISOYmd$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOWeekTimeAndOffset$1=combineExtractors$1(extractISOWeekData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOOrdinalDateAndTime$1=combineExtractors$1(extractISOOrdinalData$1,extractISOTime$1,extractISOOffset$1,extractIANAZone$1),extractISOTimeAndOffset$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseISODate$1(t$5){return parse$9(t$5,[isoYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[isoWeekWithTimeExtensionRegex$1,extractISOWeekTimeAndOffset$1],[isoOrdinalWithTimeExtensionRegex$1,extractISOOrdinalDateAndTime$1],[isoTimeCombinedRegex$1,extractISOTimeAndOffset$1])}function parseRFC2822Date$1(t$5){return parse$9(preprocessRFC2822$1(t$5),[rfc2822$1,extractRFC2822$1])}function parseHTTPDate$1(t$5){return parse$9(t$5,[rfc1123$1,extractRFC1123Or850$1],[rfc850$1,extractRFC1123Or850$1],[ascii$1,extractASCII$1])}function parseISODuration$1(t$5){return parse$9(t$5,[isoDuration$1,extractISODuration$1])}const extractISOTimeOnly$1=combineExtractors$1(extractISOTime$1);function parseISOTimeOnly$1(t$5){return parse$9(t$5,[isoTimeOnly$1,extractISOTimeOnly$1])}const sqlYmdWithTimeExtensionRegex$1=combineRegexes$1(sqlYmdRegex$1,sqlTimeExtensionRegex$1),sqlTimeCombinedRegex$1=combineRegexes$1(sqlTimeRegex$1),extractISOTimeOffsetAndIANAZone$1=combineExtractors$1(extractISOTime$1,extractISOOffset$1,extractIANAZone$1);function parseSQL$1(t$5){return parse$9(t$5,[sqlYmdWithTimeExtensionRegex$1,extractISOYmdTimeAndOffset$1],[sqlTimeCombinedRegex$1,extractISOTimeOffsetAndIANAZone$1])}const INVALID$2$2=`Invalid Duration`,lowOrderMatrix$1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix$1={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix$1},daysInYearAccurate$1=146097/400,daysInMonthAccurate$1=146097/4800,accurateMatrix$1={years:{quarters:4,months:12,weeks:daysInYearAccurate$1/7,days:daysInYearAccurate$1,hours:daysInYearAccurate$1*24,minutes:daysInYearAccurate$1*24*60,seconds:daysInYearAccurate$1*24*60*60,milliseconds:daysInYearAccurate$1*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate$1/28,days:daysInYearAccurate$1/4,hours:daysInYearAccurate$1*24/4,minutes:daysInYearAccurate$1*24*60/4,seconds:daysInYearAccurate$1*24*60*60/4,milliseconds:daysInYearAccurate$1*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate$1/7,days:daysInMonthAccurate$1,hours:daysInMonthAccurate$1*24,minutes:daysInMonthAccurate$1*24*60,seconds:daysInMonthAccurate$1*24*60*60,milliseconds:daysInMonthAccurate$1*24*60*60*1e3},...lowOrderMatrix$1},orderedUnits$1$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits$1=orderedUnits$1$1.slice(0).reverse();function clone$1$1(t$5,o,r=!1){let u={values:r?o.values:{...t$5.values,...o.values||{}},loc:t$5.loc.clone(o.loc),conversionAccuracy:o.conversionAccuracy||t$5.conversionAccuracy,matrix:o.matrix||t$5.matrix};return new Duration$1(u)}function durationToMillis$1(t$5,o){let r=o.milliseconds??0;for(let u of reverseUnits$1.slice(1))o[u]&&(r+=o[u]*t$5[u].milliseconds);return r}function normalizeValues$1(t$5,o){let r=durationToMillis$1(t$5,o)<0?-1:1;orderedUnits$1$1.reduceRight((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]*r,y=t$5[h][u],S=Math.floor(m/y);o[h]+=S*r,o[u]-=S*y*r}return h},null),orderedUnits$1$1.reduce((u,h)=>{if(isUndefined$1(o[h]))return u;if(u){let m=o[u]%1;o[u]-=m,o[h]+=m*t$5[u][h]}return h},null)}function removeZeroes$1(t$5){let o={};for(let[r,u]of Object.entries(t$5))u!==0&&(o[r]=u);return o}var Duration$1=class Duration$1{constructor(o){let r=o.conversionAccuracy===`longterm`||!1,u=r?accurateMatrix$1:casualMatrix$1;o.matrix&&(u=o.matrix),this.values=o.values,this.loc=o.loc||Locale$1.create(),this.conversionAccuracy=r?`longterm`:`casual`,this.invalid=o.invalid||null,this.matrix=u,this.isLuxonDuration=!0}static fromMillis(o,r){return Duration$1.fromObject({milliseconds:o},r)}static fromObject(o,r={}){if(typeof o!=`object`||!o)throw new InvalidArgumentError$1(`Duration.fromObject: argument expected to be an object, got ${o===null?`null`:typeof o}`);return new Duration$1({values:normalizeObject$1(o,Duration$1.normalizeUnit),loc:Locale$1.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(o){if(isNumber$1(o))return Duration$1.fromMillis(o);if(Duration$1.isDuration(o))return o;if(typeof o==`object`)return Duration$1.fromObject(o);throw new InvalidArgumentError$1(`Unknown duration argument ${o} of type ${typeof o}`)}static fromISO(o,r){let[u]=parseISODuration$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static fromISOTime(o,r){let[u]=parseISOTimeOnly$1(o);return u?Duration$1.fromObject(u,r):Duration$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Duration is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDurationError$1(u);return new Duration$1({invalid:u})}static normalizeUnit(o){let r={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[o&&o.toLowerCase()];if(!r)throw new InvalidUnitError$1(o);return r}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(o,r={}){let u={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter$1.create(this.loc,u).formatDurationFromString(this,o):INVALID$2$2}toHuman(o={}){if(!this.isValid)return INVALID$2$2;let r=orderedUnits$1$1.map(u=>{let h=this.values[u];return isUndefined$1(h)?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...o,unit:u.slice(0,-1)}).format(h)}).filter(u=>u);return this.loc.listFormatter({type:`conjunction`,style:o.listStyle||`narrow`,...o}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let o=`P`;return this.years!==0&&(o+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(o+=this.months+this.quarters*3+`M`),this.weeks!==0&&(o+=this.weeks+`W`),this.days!==0&&(o+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(o+=`T`),this.hours!==0&&(o+=this.hours+`H`),this.minutes!==0&&(o+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(o+=roundTo$1(this.seconds+this.milliseconds/1e3,3)+`S`),o===`P`&&(o+=`T0S`),o}toISOTime(o={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(o={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...o,includeOffset:!1},DateTime$1.fromMillis(r,{zone:`UTC`}).toISOTime(o))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis$1(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o),u={};for(let h of orderedUnits$1$1)(hasOwnProperty$1(r.values,h)||hasOwnProperty$1(this.values,h))&&(u[h]=r.get(h)+this.get(h));return clone$1$1(this,{values:u},!0)}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return this.plus(r.negate())}mapUnits(o){if(!this.isValid)return this;let r={};for(let u of Object.keys(this.values))r[u]=asNumber$1(o(this.values[u],u));return clone$1$1(this,{values:r},!0)}get(o){return this[Duration$1.normalizeUnit(o)]}set(o){if(!this.isValid)return this;let r={...this.values,...normalizeObject$1(o,Duration$1.normalizeUnit)};return clone$1$1(this,{values:r})}reconfigure({locale:o,numberingSystem:r,conversionAccuracy:u,matrix:h}={}){let y={loc:this.loc.clone({locale:o,numberingSystem:r}),matrix:h,conversionAccuracy:u};return clone$1$1(this,y)}as(o){return this.isValid?this.shiftTo(o).get(o):NaN}normalize(){if(!this.isValid)return this;let o=this.toObject();return normalizeValues$1(this.matrix,o),clone$1$1(this,{values:o},!0)}rescale(){if(!this.isValid)return this;let o=removeZeroes$1(this.normalize().shiftToAll().toObject());return clone$1$1(this,{values:o},!0)}shiftTo(...o){if(!this.isValid||o.length===0)return this;o=o.map(y=>Duration$1.normalizeUnit(y));let r={},u={},h=this.toObject(),m;for(let y of orderedUnits$1$1)if(o.indexOf(y)>=0){m=y;let S=0;for(let C in u)S+=this.matrix[C][y]*u[C],u[C]=0;isNumber$1(h[y])&&(S+=h[y]);let _=Math.trunc(S);r[y]=_,u[y]=(S*1e3-_*1e3)/1e3}else isNumber$1(h[y])&&(u[y]=h[y]);for(let y in u)u[y]!==0&&(r[m]+=y===m?u[y]:u[y]/this.matrix[m][y]);return normalizeValues$1(this.matrix,r),clone$1$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let o={};for(let r of Object.keys(this.values))o[r]=this.values[r]===0?0:-this.values[r];return clone$1$1(this,{values:o},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(o){if(!this.isValid||!o.isValid||!this.loc.equals(o.loc))return!1;function r(u,h){return u===void 0||u===0?h===void 0||h===0:u===h}for(let u of orderedUnits$1$1)if(!r(this.values[u],o.values[u]))return!1;return!0}};const INVALID$1$4=`Invalid Interval`;function validateStartEnd$1(t$5,o){return!t$5||!t$5.isValid?Interval$1.invalid(`missing or invalid start`):!o||!o.isValid?Interval$1.invalid(`missing or invalid end`):o<t$5?Interval$1.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${t$5.toISO()} and end=${o.toISO()}`):null}var Interval$1=class Interval$1{constructor(o){this.s=o.start,this.e=o.end,this.invalid=o.invalid||null,this.isLuxonInterval=!0}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the Interval is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidIntervalError$1(u);return new Interval$1({invalid:u})}static fromDateTimes(o,r){let u=friendlyDateTime$1(o),h=friendlyDateTime$1(r),m=validateStartEnd$1(u,h);return m??new Interval$1({start:u,end:h})}static after(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h,h.plus(u))}static before(o,r){let u=Duration$1.fromDurationLike(r),h=friendlyDateTime$1(o);return Interval$1.fromDateTimes(h.minus(u),h)}static fromISO(o,r){let[u,h]=(o||``).split(`/`,2);if(u&&h){let m,y;try{m=DateTime$1.fromISO(u,r),y=m.isValid}catch{y=!1}let S,_;try{S=DateTime$1.fromISO(h,r),_=S.isValid}catch{_=!1}if(y&&_)return Interval$1.fromDateTimes(m,S);if(y){let C=Duration$1.fromISO(h,r);if(C.isValid)return Interval$1.after(m,C)}else if(_){let C=Duration$1.fromISO(u,r);if(C.isValid)return Interval$1.before(S,C)}}return Interval$1.invalid(`unparsable`,`the input "${o}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(o=`milliseconds`){return this.isValid?this.toDuration(o).get(o):NaN}count(o=`milliseconds`,r){if(!this.isValid)return NaN;let u=this.start.startOf(o,r),h;return h=r!=null&&r.useLocaleWeeks?this.end.reconfigure({locale:u.locale}):this.end,h=h.startOf(o,r),Math.floor(h.diff(u,o).get(o))+(h.valueOf()!==this.end.valueOf())}hasSame(o){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,o):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(o){return this.isValid?this.s>o:!1}isBefore(o){return this.isValid?this.e<=o:!1}contains(o){return this.isValid?this.s<=o&&this.e>o:!1}set({start:o,end:r}={}){return this.isValid?Interval$1.fromDateTimes(o||this.s,r||this.e):this}splitAt(...o){if(!this.isValid)return[];let r=o.map(friendlyDateTime$1).filter(y=>this.contains(y)).sort((y,S)=>y.toMillis()-S.toMillis()),u=[],{s:h}=this,m=0;for(;h<this.e;){let y=r[m]||this.e,S=+y>+this.e?this.e:y;u.push(Interval$1.fromDateTimes(h,S)),h=S,m+=1}return u}splitBy(o){let r=Duration$1.fromDurationLike(o);if(!this.isValid||!r.isValid||r.as(`milliseconds`)===0)return[];let{s:u}=this,h=1,m,y=[];for(;u<this.e;){let S=this.start.plus(r.mapUnits(_=>_*h));m=+S>+this.e?this.e:S,y.push(Interval$1.fromDateTimes(u,m)),u=m,h+=1}return y}divideEqually(o){return this.isValid?this.splitBy(this.length()/o).slice(0,o):[]}overlaps(o){return this.e>o.s&&this.s<o.e}abutsStart(o){return this.isValid?+this.e==+o.s:!1}abutsEnd(o){return this.isValid?+o.e==+this.s:!1}engulfs(o){return this.isValid?this.s<=o.s&&this.e>=o.e:!1}equals(o){return!this.isValid||!o.isValid?!1:this.s.equals(o.s)&&this.e.equals(o.e)}intersection(o){if(!this.isValid)return this;let r=this.s>o.s?this.s:o.s,u=this.e<o.e?this.e:o.e;return r>=u?null:Interval$1.fromDateTimes(r,u)}union(o){if(!this.isValid)return this;let r=this.s<o.s?this.s:o.s,u=this.e>o.e?this.e:o.e;return Interval$1.fromDateTimes(r,u)}static merge(o){let[r,u]=o.sort((h,m)=>h.s-m.s).reduce(([h,m],y)=>m?m.overlaps(y)||m.abutsStart(y)?[h,m.union(y)]:[h.concat([m]),y]:[h,y],[[],null]);return u&&r.push(u),r}static xor(o){let r=null,u=0,h=[],m=o.map(_=>[{time:_.s,type:`s`},{time:_.e,type:`e`}]),y=Array.prototype.concat(...m),S=y.sort((_,C)=>_.time-C.time);for(let _ of S)u+=_.type===`s`?1:-1,u===1?r=_.time:(r&&+r!=+_.time&&h.push(Interval$1.fromDateTimes(r,_.time)),r=null);return Interval$1.merge(h)}difference(...o){return Interval$1.xor([this].concat(o)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1$4}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.s.loc.clone(r),o).formatInterval(this):INVALID$1$4}toISO(o){return this.isValid?`${this.s.toISO(o)}/${this.e.toISO(o)}`:INVALID$1$4}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1$4}toISOTime(o){return this.isValid?`${this.s.toISOTime(o)}/${this.e.toISOTime(o)}`:INVALID$1$4}toFormat(o,{separator:r=` – `}={}){return this.isValid?`${this.s.toFormat(o)}${r}${this.e.toFormat(o)}`:INVALID$1$4}toDuration(o,r){return this.isValid?this.e.diff(this.s,o,r):Duration$1.invalid(this.invalidReason)}mapEndpoints(o){return Interval$1.fromDateTimes(o(this.s),o(this.e))}},Info$1=class{static hasDST(o=Settings$1.defaultZone){let r=DateTime$1.now().setZone(o).set({month:12});return!o.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(o){return IANAZone$1.isValidZone(o)}static normalizeZone(o){return normalizeZone$1(o,Settings$1.defaultZone)}static getStartOfWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:o=null,locObj:r=null}={}){return(r||Locale$1.create(o)).getWeekendDays().slice()}static months(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o)}static monthsFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null,outputCalendar:m=`gregory`}={}){return(h||Locale$1.create(r,u,m)).months(o,!0)}static weekdays(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o)}static weekdaysFormat(o=`long`,{locale:r=null,numberingSystem:u=null,locObj:h=null}={}){return(h||Locale$1.create(r,u,null)).weekdays(o,!0)}static meridiems({locale:o=null}={}){return Locale$1.create(o).meridiems()}static eras(o=`short`,{locale:r=null}={}){return Locale$1.create(r,null,`gregory`).eras(o)}static features(){return{relative:hasRelative$1(),localeWeek:hasLocaleWeekInfo$1()}}};function dayDiff$1(t$5,o){let r=h=>h.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),u=r(o)-r(t$5);return Math.floor(Duration$1.fromMillis(u).as(`days`))}function highOrderDiffs$1(t$5,o,r){let u=[[`years`,(_,C)=>C.year-_.year],[`quarters`,(_,C)=>C.quarter-_.quarter+(C.year-_.year)*4],[`months`,(_,C)=>C.month-_.month+(C.year-_.year)*12],[`weeks`,(_,C)=>{let O=dayDiff$1(_,C);return(O-O%7)/7}],[`days`,dayDiff$1]],h={},m=t$5,y,S;for(let[_,C]of u)r.indexOf(_)>=0&&(y=_,h[_]=C(t$5,o),S=m.plus(h),S>o?(h[_]--,t$5=m.plus(h),t$5>o&&(S=t$5,h[_]--,t$5=m.plus(h))):t$5=S);return[t$5,h,S,y]}function diff$3(t$5,o,r,u){let[h,m,y,S]=highOrderDiffs$1(t$5,o,r),_=o-h,C=r.filter(I=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(I)>=0);C.length===0&&(y<o&&(y=h.plus({[S]:1})),y!==h&&(m[S]=(m[S]||0)+_/(y-h)));let O=Duration$1.fromObject(m,u);return C.length>0?Duration$1.fromMillis(_,u).shiftTo(...C).plus(O):O}const MISSING_FTP$1=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit$1(t$5,o=r=>r){return{regex:t$5,deser:([r])=>o(parseDigits$1(r))}}const NBSP$1=`\xA0`,spaceOrNBSP$1=`[ ${NBSP$1}]`,spaceOrNBSPRegExp$1=new RegExp(spaceOrNBSP$1,`g`);function fixListRegex$1(t$5){return t$5.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp$1,spaceOrNBSP$1)}function stripInsensitivities$1(t$5){return t$5.replace(/\./g,``).replace(spaceOrNBSPRegExp$1,` `).toLowerCase()}function oneOf$1(t$5,o){return t$5===null?null:{regex:RegExp(t$5.map(fixListRegex$1).join(`|`)),deser:([r])=>t$5.findIndex(u=>stripInsensitivities$1(r)===stripInsensitivities$1(u))+o}}function offset$1(t$5,o){return{regex:t$5,deser:([,r,u])=>signedOffset$1(r,u),groups:o}}function simple$1(t$5){return{regex:t$5,deser:([o])=>o}}function escapeToken$1(t$5){return t$5.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken$1(t$5,o){let r=digitRegex$1(o),u=digitRegex$1(o,`{2}`),h=digitRegex$1(o,`{3}`),m=digitRegex$1(o,`{4}`),y=digitRegex$1(o,`{6}`),S=digitRegex$1(o,`{1,2}`),_=digitRegex$1(o,`{1,3}`),C=digitRegex$1(o,`{1,6}`),O=digitRegex$1(o,`{1,9}`),I=digitRegex$1(o,`{2,4}`),R$1=digitRegex$1(o,`{4,6}`),U=Y=>({regex:RegExp(escapeToken$1(Y.val)),deser:([K])=>K,literal:!0}),G=(Y=>{if(t$5.literal)return U(Y);switch(Y.val){case`G`:return oneOf$1(o.eras(`short`),0);case`GG`:return oneOf$1(o.eras(`long`),0);case`y`:return intUnit$1(C);case`yy`:return intUnit$1(I,untruncateYear$1);case`yyyy`:return intUnit$1(m);case`yyyyy`:return intUnit$1(R$1);case`yyyyyy`:return intUnit$1(y);case`M`:return intUnit$1(S);case`MM`:return intUnit$1(u);case`MMM`:return oneOf$1(o.months(`short`,!0),1);case`MMMM`:return oneOf$1(o.months(`long`,!0),1);case`L`:return intUnit$1(S);case`LL`:return intUnit$1(u);case`LLL`:return oneOf$1(o.months(`short`,!1),1);case`LLLL`:return oneOf$1(o.months(`long`,!1),1);case`d`:return intUnit$1(S);case`dd`:return intUnit$1(u);case`o`:return intUnit$1(_);case`ooo`:return intUnit$1(h);case`HH`:return intUnit$1(u);case`H`:return intUnit$1(S);case`hh`:return intUnit$1(u);case`h`:return intUnit$1(S);case`mm`:return intUnit$1(u);case`m`:return intUnit$1(S);case`q`:return intUnit$1(S);case`qq`:return intUnit$1(u);case`s`:return intUnit$1(S);case`ss`:return intUnit$1(u);case`S`:return intUnit$1(_);case`SSS`:return intUnit$1(h);case`u`:return simple$1(O);case`uu`:return simple$1(S);case`uuu`:return intUnit$1(r);case`a`:return oneOf$1(o.meridiems(),0);case`kkkk`:return intUnit$1(m);case`kk`:return intUnit$1(I,untruncateYear$1);case`W`:return intUnit$1(S);case`WW`:return intUnit$1(u);case`E`:case`c`:return intUnit$1(r);case`EEE`:return oneOf$1(o.weekdays(`short`,!1),1);case`EEEE`:return oneOf$1(o.weekdays(`long`,!1),1);case`ccc`:return oneOf$1(o.weekdays(`short`,!0),1);case`cccc`:return oneOf$1(o.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset$1(RegExp(`([+-]${S.source})(?::(${u.source}))?`),2);case`ZZZ`:return offset$1(RegExp(`([+-]${S.source})(${u.source})?`),2);case`z`:return simple$1(/[a-z_+-/]{1,256}?/i);case` `:return simple$1(/[^\S\n\r]/);default:return U(Y)}})(t$5)||{invalidReason:MISSING_FTP$1};return G.token=t$5,G}const partTypeStyleToTokenVal$1={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart$1(t$5,o,r){let{type:u,value:h}=t$5;if(u===`literal`){let _=/^\s+$/.test(h);return{literal:!_,val:_?` `:h}}let m=o[u],y=u;u===`hour`&&(y=o.hour12==null?o.hourCycle==null?r.hour12?`hour12`:`hour24`:o.hourCycle===`h11`||o.hourCycle===`h12`?`hour12`:`hour24`:o.hour12?`hour12`:`hour24`);let S=partTypeStyleToTokenVal$1[y];if(typeof S==`object`&&(S=S[m]),S)return{literal:!1,val:S}}function buildRegex$1(t$5){return[`^${t$5.map(r=>r.regex).reduce((r,u)=>`${r}(${u.source})`,``)}$`,t$5]}function match$1(t$5,o,r){let u=t$5.match(o);if(u){let h={},m=1;for(let y in r)if(hasOwnProperty$1(r,y)){let S=r[y],_=S.groups?S.groups+1:1;!S.literal&&S.token&&(h[S.token.val[0]]=S.deser(u.slice(m,m+_))),m+=_}return[u,h]}else return[u,{}]}function dateTimeFromMatches$1(t$5){let o=m=>{switch(m){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},r=null,u;return isUndefined$1(t$5.z)||(r=IANAZone$1.create(t$5.z)),isUndefined$1(t$5.Z)||(r||=new FixedOffsetZone$1(t$5.Z),u=t$5.Z),isUndefined$1(t$5.q)||(t$5.M=(t$5.q-1)*3+1),isUndefined$1(t$5.h)||(t$5.h<12&&t$5.a===1?t$5.h+=12:t$5.h===12&&t$5.a===0&&(t$5.h=0)),t$5.G===0&&t$5.y&&(t$5.y=-t$5.y),isUndefined$1(t$5.u)||(t$5.S=parseMillis$1(t$5.u)),[Object.keys(t$5).reduce((m,y)=>{let S=o(y);return S&&(m[S]=t$5[y]),m},{}),r,u]}let dummyDateTimeCache$1=null;function getDummyDateTime$1(){return dummyDateTimeCache$1||=DateTime$1.fromMillis(1555555555555),dummyDateTimeCache$1}function maybeExpandMacroToken$1(t$5,o){if(t$5.literal)return t$5;let r=Formatter$1.macroTokenToFormatOpts(t$5.val),u=formatOptsToTokens$1(r,o);return u==null||u.includes(void 0)?t$5:u}function expandMacroTokens$1(t$5,o){return Array.prototype.concat(...t$5.map(r=>maybeExpandMacroToken$1(r,o)))}var TokenParser$1=class{constructor(o,r){if(this.locale=o,this.format=r,this.tokens=expandMacroTokens$1(Formatter$1.parseFormat(r),o),this.units=this.tokens.map(u=>unitForToken$1(u,o)),this.disqualifyingUnit=this.units.find(u=>u.invalidReason),!this.disqualifyingUnit){let[u,h]=buildRegex$1(this.units);this.regex=RegExp(u,`i`),this.handlers=h}}explainFromTokens(o){if(this.isValid){let[r,u]=match$1(o,this.regex,this.handlers),[h,m,y]=u?dateTimeFromMatches$1(u):[null,null,void 0];if(hasOwnProperty$1(u,`a`)&&hasOwnProperty$1(u,`H`))throw new ConflictingSpecificationError$1(`Can't include meridiem when specifying 24-hour format`);return{input:o,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:u,result:h,zone:m,specificOffset:y}}else return{input:o,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens$1(t$5,o,r){return new TokenParser$1(t$5,r).explainFromTokens(o)}function parseFromTokens$1(t$5,o,r){let{result:u,zone:h,specificOffset:m,invalidReason:y}=explainFromTokens$1(t$5,o,r);return[u,h,m,y]}function formatOptsToTokens$1(t$5,o){if(!t$5)return null;let u=Formatter$1.create(o,t$5).dtFormatter(getDummyDateTime$1()),h=u.formatToParts(),m=u.resolvedOptions();return h.map(y=>tokenForPart$1(y,t$5,m))}const INVALID$5=`Invalid DateTime`,MAX_DATE$1=864e13;function unsupportedZone$1(t$5){return new Invalid$1(`unsupported zone`,`the zone "${t$5.name}" is not supported`)}function possiblyCachedWeekData$1(t$5){return t$5.weekData===null&&(t$5.weekData=gregorianToWeek$1(t$5.c)),t$5.weekData}function possiblyCachedLocalWeekData$1(t$5){return t$5.localWeekData===null&&(t$5.localWeekData=gregorianToWeek$1(t$5.c,t$5.loc.getMinDaysInFirstWeek(),t$5.loc.getStartOfWeek())),t$5.localWeekData}function clone$2(t$5,o){let r={ts:t$5.ts,zone:t$5.zone,c:t$5.c,o:t$5.o,loc:t$5.loc,invalid:t$5.invalid};return new DateTime$1({...r,...o,old:r})}function fixOffset$1(t$5,o,r){let u=t$5-o*60*1e3,h=r.offset(u);if(o===h)return[u,o];u-=(h-o)*60*1e3;let m=r.offset(u);return h===m?[u,h]:[t$5-Math.min(h,m)*60*1e3,Math.max(h,m)]}function tsToObj$1(t$5,o){t$5+=o*60*1e3;let r=new Date(t$5);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS$1(t$5,o,r){return fixOffset$1(objToLocalTS$1(t$5),o,r)}function adjustTime$1(t$5,o){let r=t$5.o,u=t$5.c.year+Math.trunc(o.years),h=t$5.c.month+Math.trunc(o.months)+Math.trunc(o.quarters)*3,m={...t$5.c,year:u,month:h,day:Math.min(t$5.c.day,daysInMonth$1(u,h))+Math.trunc(o.days)+Math.trunc(o.weeks)*7},y=Duration$1.fromObject({years:o.years-Math.trunc(o.years),quarters:o.quarters-Math.trunc(o.quarters),months:o.months-Math.trunc(o.months),weeks:o.weeks-Math.trunc(o.weeks),days:o.days-Math.trunc(o.days),hours:o.hours,minutes:o.minutes,seconds:o.seconds,milliseconds:o.milliseconds}).as(`milliseconds`),S=objToLocalTS$1(m),[_,C]=fixOffset$1(S,r,t$5.zone);return y!==0&&(_+=y,C=t$5.zone.offset(_)),{ts:_,o:C}}function parseDataToDateTime$1(t$5,o,r,u,h,m){let{setZone:y,zone:S}=r;if(t$5&&Object.keys(t$5).length!==0||o){let _=o||S,C=DateTime$1.fromObject(t$5,{...r,zone:_,specificOffset:m});return y?C:C.setZone(S)}else return DateTime$1.invalid(new Invalid$1(`unparsable`,`the input "${h}" can't be parsed as ${u}`))}function toTechFormat$1(t$5,o,r=!0){return t$5.isValid?Formatter$1.create(Locale$1.create(`en-US`),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t$5,o):null}function toISODate$1(t$5,o){let r=t$5.c.year>9999||t$5.c.year<0,u=``;return r&&t$5.c.year>=0&&(u+=`+`),u+=padStart$1(t$5.c.year,r?6:4),o?(u+=`-`,u+=padStart$1(t$5.c.month),u+=`-`,u+=padStart$1(t$5.c.day)):(u+=padStart$1(t$5.c.month),u+=padStart$1(t$5.c.day)),u}function toISOTime$1(t$5,o,r,u,h,m){let y=padStart$1(t$5.c.hour);return o?(y+=`:`,y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=`:`)):y+=padStart$1(t$5.c.minute),(t$5.c.millisecond!==0||t$5.c.second!==0||!r)&&(y+=padStart$1(t$5.c.second),(t$5.c.millisecond!==0||!u)&&(y+=`.`,y+=padStart$1(t$5.c.millisecond,3))),h&&(t$5.isOffsetFixed&&t$5.offset===0&&!m?y+=`Z`:t$5.o<0?(y+=`-`,y+=padStart$1(Math.trunc(-t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(-t$5.o%60))):(y+=`+`,y+=padStart$1(Math.trunc(t$5.o/60)),y+=`:`,y+=padStart$1(Math.trunc(t$5.o%60)))),m&&(y+=`[`+t$5.zone.ianaName+`]`),y}const defaultUnitValues$1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues$1={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues$1={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits$2=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits$1=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits$1=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit$1(t$5){let o={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[t$5.toLowerCase()];if(!o)throw new InvalidUnitError$1(t$5);return o}function normalizeUnitWithLocalWeeks$1(t$5){switch(t$5.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit$1(t$5)}}function guessOffsetForZone$1(t$5){if(zoneOffsetTs$1===void 0&&(zoneOffsetTs$1=Settings$1.now()),t$5.type!==`iana`)return t$5.offset(zoneOffsetTs$1);let o=t$5.name,r=zoneOffsetGuessCache$1.get(o);return r===void 0&&(r=t$5.offset(zoneOffsetTs$1),zoneOffsetGuessCache$1.set(o,r)),r}function quickDT$1(t$5,o){let r=normalizeZone$1(o.zone,Settings$1.defaultZone);if(!r.isValid)return DateTime$1.invalid(unsupportedZone$1(r));let u=Locale$1.fromObject(o),h,m;if(isUndefined$1(t$5.year))h=Settings$1.now();else{for(let _ of orderedUnits$2)isUndefined$1(t$5[_])&&(t$5[_]=defaultUnitValues$1[_]);let y=hasInvalidGregorianData$1(t$5)||hasInvalidTimeData$1(t$5);if(y)return DateTime$1.invalid(y);let S=guessOffsetForZone$1(r);[h,m]=objToTS$1(t$5,S,r)}return new DateTime$1({ts:h,zone:r,loc:u,o:m})}function diffRelative$1(t$5,o,r){let u=isUndefined$1(r.round)?!0:r.round,h=(y,S)=>(y=roundTo$1(y,u||r.calendary?0:2,!0),o.loc.clone(r).relFormatter(r).format(y,S)),m=y=>r.calendary?o.hasSame(t$5,y)?0:o.startOf(y).diff(t$5.startOf(y),y).get(y):o.diff(t$5,y).get(y);if(r.unit)return h(m(r.unit),r.unit);for(let y of r.units){let S=m(y);if(Math.abs(S)>=1)return h(S,y)}return h(t$5>o?-0:0,r.units[r.units.length-1])}function lastOpts$1(t$5){let o={},r;return t$5.length>0&&typeof t$5[t$5.length-1]==`object`?(o=t$5[t$5.length-1],r=Array.from(t$5).slice(0,t$5.length-1)):r=Array.from(t$5),[o,r]}let zoneOffsetTs$1;const zoneOffsetGuessCache$1=new Map;var DateTime$1=class DateTime$1{constructor(o){let r=o.zone||Settings$1.defaultZone,u=o.invalid||(Number.isNaN(o.ts)?new Invalid$1(`invalid input`):null)||(r.isValid?null:unsupportedZone$1(r));this.ts=isUndefined$1(o.ts)?Settings$1.now():o.ts;let h=null,m=null;if(!u)if(o.old&&o.old.ts===this.ts&&o.old.zone.equals(r))[h,m]=[o.old.c,o.old.o];else{let S=isNumber$1(o.o)&&!o.old?o.o:r.offset(this.ts);h=tsToObj$1(this.ts,S),u=Number.isNaN(h.year)?new Invalid$1(`invalid input`):null,h=u?null:h,m=u?null:S}this._zone=r,this.loc=o.loc||Locale$1.create(),this.invalid=u,this.weekData=null,this.localWeekData=null,this.c=h,this.o=m,this.isLuxonDateTime=!0}static now(){return new DateTime$1({})}static local(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static utc(){let[o,r]=lastOpts$1(arguments),[u,h,m,y,S,_,C]=r;return o.zone=FixedOffsetZone$1.utcInstance,quickDT$1({year:u,month:h,day:m,hour:y,minute:S,second:_,millisecond:C},o)}static fromJSDate(o,r={}){let u=isDate$1(o)?o.valueOf():NaN;if(Number.isNaN(u))return DateTime$1.invalid(`invalid input`);let h=normalizeZone$1(r.zone,Settings$1.defaultZone);return h.isValid?new DateTime$1({ts:u,zone:h,loc:Locale$1.fromObject(r)}):DateTime$1.invalid(unsupportedZone$1(h))}static fromMillis(o,r={}){if(isNumber$1(o))return o<-MAX_DATE$1||o>MAX_DATE$1?DateTime$1.invalid(`Timestamp out of range`):new DateTime$1({ts:o,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromMillis requires a numerical input, but received a ${typeof o} with value ${o}`)}static fromSeconds(o,r={}){if(isNumber$1(o))return new DateTime$1({ts:o*1e3,zone:normalizeZone$1(r.zone,Settings$1.defaultZone),loc:Locale$1.fromObject(r)});throw new InvalidArgumentError$1(`fromSeconds requires a numerical input`)}static fromObject(o,r={}){o||={};let u=normalizeZone$1(r.zone,Settings$1.defaultZone);if(!u.isValid)return DateTime$1.invalid(unsupportedZone$1(u));let h=Locale$1.fromObject(r),m=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:y,startOfWeek:S}=usesLocalWeekValues$1(m,h),_=Settings$1.now(),C=isUndefined$1(r.specificOffset)?u.offset(_):r.specificOffset,O=!isUndefined$1(m.ordinal),I=!isUndefined$1(m.year),R$1=!isUndefined$1(m.month)||!isUndefined$1(m.day),U=I||R$1,F=m.weekYear||m.weekNumber;if((U||O)&&F)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(R$1&&O)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let G=F||m.weekday&&!U,Y,K,te$1=tsToObj$1(_,C);G?(Y=orderedWeekUnits$1,K=defaultWeekUnitValues$1,te$1=gregorianToWeek$1(te$1,y,S)):O?(Y=orderedOrdinalUnits$1,K=defaultOrdinalUnitValues$1,te$1=gregorianToOrdinal$1(te$1)):(Y=orderedUnits$2,K=defaultUnitValues$1);let de=!1;for(let re$5 of Y){let fe=m[re$5];isUndefined$1(fe)?de?m[re$5]=K[re$5]:m[re$5]=te$1[re$5]:de=!0}let me=G?hasInvalidWeekData$1(m,y,S):O?hasInvalidOrdinalData$1(m):hasInvalidGregorianData$1(m),q=me||hasInvalidTimeData$1(m);if(q)return DateTime$1.invalid(q);let ge=G?weekToGregorian$1(m,y,S):O?ordinalToGregorian$1(m):m,[ce,pe]=objToTS$1(ge,C,u),oe=new DateTime$1({ts:ce,zone:u,o:pe,loc:h});return m.weekday&&U&&o.weekday!==oe.weekday?DateTime$1.invalid(`mismatched weekday`,`you can't specify both a weekday of ${m.weekday} and a date of ${oe.toISO()}`):oe.isValid?oe:DateTime$1.invalid(oe.invalid)}static fromISO(o,r={}){let[u,h]=parseISODate$1(o);return parseDataToDateTime$1(u,h,r,`ISO 8601`,o)}static fromRFC2822(o,r={}){let[u,h]=parseRFC2822Date$1(o);return parseDataToDateTime$1(u,h,r,`RFC 2822`,o)}static fromHTTP(o,r={}){let[u,h]=parseHTTPDate$1(o);return parseDataToDateTime$1(u,h,r,`HTTP`,r)}static fromFormat(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormat requires an input string and a format`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0}),[S,_,C,O]=parseFromTokens$1(y,o,r);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r}`,o,C)}static fromString(o,r,u={}){return DateTime$1.fromFormat(o,r,u)}static fromSQL(o,r={}){let[u,h]=parseSQL$1(o);return parseDataToDateTime$1(u,h,r,`SQL`,o)}static invalid(o,r=null){if(!o)throw new InvalidArgumentError$1(`need to specify a reason the DateTime is invalid`);let u=o instanceof Invalid$1?o:new Invalid$1(o,r);if(Settings$1.throwOnInvalid)throw new InvalidDateTimeError$1(u);return new DateTime$1({invalid:u})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(o,r={}){let u=formatOptsToTokens$1(o,Locale$1.fromObject(r));return u?u.map(h=>h?h.val:null).join(``):null}static expandFormat(o,r={}){return expandMacroTokens$1(Formatter$1.parseFormat(o),Locale$1.fromObject(r)).map(h=>h.val).join(``)}static resetCache(){zoneOffsetTs$1=void 0,zoneOffsetGuessCache$1.clear()}get(o){return this[o]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData$1(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData$1(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData$1(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData$1(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal$1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info$1.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info$1.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info$1.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info$1.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let o=864e5,r=6e4,u=objToLocalTS$1(this.c),h=this.zone.offset(u-o),m=this.zone.offset(u+o),y=this.zone.offset(u-h*r),S=this.zone.offset(u-m*r);if(y===S)return[this];let _=u-y*r,C=u-S*r,O=tsToObj$1(_,y),I=tsToObj$1(C,S);return O.hour===I.hour&&O.minute===I.minute&&O.second===I.second&&O.millisecond===I.millisecond?[clone$2(this,{ts:_}),clone$2(this,{ts:C})]:[this]}get isInLeapYear(){return isLeapYear$1(this.year)}get daysInMonth(){return daysInMonth$1(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear$1(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear$1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear$1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(o={}){let{locale:r,numberingSystem:u,calendar:h}=Formatter$1.create(this.loc.clone(o),o).resolvedOptions(this);return{locale:r,numberingSystem:u,outputCalendar:h}}toUTC(o=0,r={}){return this.setZone(FixedOffsetZone$1.instance(o),r)}toLocal(){return this.setZone(Settings$1.defaultZone)}setZone(o,{keepLocalTime:r=!1,keepCalendarTime:u=!1}={}){if(o=normalizeZone$1(o,Settings$1.defaultZone),o.equals(this.zone))return this;if(o.isValid){let h=this.ts;if(r||u){let m=o.offset(this.ts),y=this.toObject();[h]=objToTS$1(y,m,o)}return clone$2(this,{ts:h,zone:o})}else return DateTime$1.invalid(unsupportedZone$1(o))}reconfigure({locale:o,numberingSystem:r,outputCalendar:u}={}){let h=this.loc.clone({locale:o,numberingSystem:r,outputCalendar:u});return clone$2(this,{loc:h})}setLocale(o){return this.reconfigure({locale:o})}set(o){if(!this.isValid)return this;let r=normalizeObject$1(o,normalizeUnitWithLocalWeeks$1),{minDaysInFirstWeek:u,startOfWeek:h}=usesLocalWeekValues$1(r,this.loc),m=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),y=!isUndefined$1(r.ordinal),S=!isUndefined$1(r.year),_=!isUndefined$1(r.month)||!isUndefined$1(r.day),C=S||_,O=r.weekYear||r.weekNumber;if((C||y)&&O)throw new ConflictingSpecificationError$1(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(_&&y)throw new ConflictingSpecificationError$1(`Can't mix ordinal dates with month/day`);let I;m?I=weekToGregorian$1({...gregorianToWeek$1(this.c,u,h),...r},u,h):isUndefined$1(r.ordinal)?(I={...this.toObject(),...r},isUndefined$1(r.day)&&(I.day=Math.min(daysInMonth$1(I.year,I.month),I.day))):I=ordinalToGregorian$1({...gregorianToOrdinal$1(this.c),...r});let[R$1,U]=objToTS$1(I,this.o,this.zone);return clone$2(this,{ts:R$1,o:U})}plus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o);return clone$2(this,adjustTime$1(this,r))}minus(o){if(!this.isValid)return this;let r=Duration$1.fromDurationLike(o).negate();return clone$2(this,adjustTime$1(this,r))}startOf(o,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let u={},h=Duration$1.normalizeUnit(o);switch(h){case`years`:u.month=1;case`quarters`:case`months`:u.day=1;case`weeks`:case`days`:u.hour=0;case`hours`:u.minute=0;case`minutes`:u.second=0;case`seconds`:u.millisecond=0;break}if(h===`weeks`)if(r){let m=this.loc.getStartOfWeek(),{weekday:y}=this;y<m&&(u.weekNumber=this.weekNumber-1),u.weekday=m}else u.weekday=1;if(h===`quarters`){let m=Math.ceil(this.month/3);u.month=(m-1)*3+1}return this.set(u)}endOf(o,r){return this.isValid?this.plus({[o]:1}).startOf(o,r).minus(1):this}toFormat(o,r={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,o):INVALID$5}toLocaleString(o=DATE_SHORT$1,r={}){return this.isValid?Formatter$1.create(this.loc.clone(r),o).formatDateTime(this):INVALID$5}toLocaleParts(o={}){return this.isValid?Formatter$1.create(this.loc.clone(o),o).formatDateTimeParts(this):[]}toISO({format:o=`extended`,suppressSeconds:r=!1,suppressMilliseconds:u=!1,includeOffset:h=!0,extendedZone:m=!1}={}){if(!this.isValid)return null;let y=o===`extended`,S=toISODate$1(this,y);return S+=`T`,S+=toISOTime$1(this,y,r,u,h,m),S}toISODate({format:o=`extended`}={}){return this.isValid?toISODate$1(this,o===`extended`):null}toISOWeekDate(){return toTechFormat$1(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds:o=!1,suppressSeconds:r=!1,includeOffset:u=!0,includePrefix:h=!1,extendedZone:m=!1,format:y=`extended`}={}){return this.isValid?(h?`T`:``)+toISOTime$1(this,y===`extended`,r,o,u,m):null}toRFC2822(){return toTechFormat$1(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat$1(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate$1(this,!0):null}toSQLTime({includeOffset:o=!0,includeZone:r=!1,includeOffsetSpace:u=!0}={}){let h=`HH:mm:ss.SSS`;return(r||o)&&(u&&(h+=` `),r?h+=`z`:o&&(h+=`ZZ`)),toTechFormat$1(this,h,!0)}toSQL(o={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(o)}`:null}toString(){return this.isValid?this.toISO():INVALID$5}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(o={}){if(!this.isValid)return{};let r={...this.c};return o.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(o,r=`milliseconds`,u={}){if(!this.isValid||!o.isValid)return Duration$1.invalid(`created by diffing an invalid DateTime`);let h={locale:this.locale,numberingSystem:this.numberingSystem,...u},m=maybeArray$1(r).map(Duration$1.normalizeUnit),y=o.valueOf()>this.valueOf(),S=y?this:o,_=y?o:this,C=diff$3(S,_,m,h);return y?C.negate():C}diffNow(o=`milliseconds`,r={}){return this.diff(DateTime$1.now(),o,r)}until(o){return this.isValid?Interval$1.fromDateTimes(this,o):this}hasSame(o,r,u){if(!this.isValid)return!1;let h=o.valueOf(),m=this.setZone(o.zone,{keepLocalTime:!0});return m.startOf(r,u)<=h&&h<=m.endOf(r,u)}equals(o){return this.isValid&&o.isValid&&this.valueOf()===o.valueOf()&&this.zone.equals(o.zone)&&this.loc.equals(o.loc)}toRelative(o={}){if(!this.isValid)return null;let r=o.base||DateTime$1.fromObject({},{zone:this.zone}),u=o.padding?this<r?-o.padding:o.padding:0,h=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],m=o.unit;return Array.isArray(o.unit)&&(h=o.unit,m=void 0),diffRelative$1(r,this.plus(u),{...o,numeric:`always`,units:h,unit:m})}toRelativeCalendar(o={}){return this.isValid?diffRelative$1(o.base||DateTime$1.fromObject({},{zone:this.zone}),this,{...o,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`min requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.min)}static max(...o){if(!o.every(DateTime$1.isDateTime))throw new InvalidArgumentError$1(`max requires all arguments be DateTimes`);return bestBy$1(o,r=>r.valueOf(),Math.max)}static fromFormatExplain(o,r,u={}){let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});return explainFromTokens$1(y,o,r)}static fromStringExplain(o,r,u={}){return DateTime$1.fromFormatExplain(o,r,u)}static buildFormatParser(o,r={}){let{locale:u=null,numberingSystem:h=null}=r,m=Locale$1.fromOpts({locale:u,numberingSystem:h,defaultToEN:!0});return new TokenParser$1(m,o)}static fromFormatParser(o,r,u={}){if(isUndefined$1(o)||isUndefined$1(r))throw new InvalidArgumentError$1(`fromFormatParser requires an input string and a format parser`);let{locale:h=null,numberingSystem:m=null}=u,y=Locale$1.fromOpts({locale:h,numberingSystem:m,defaultToEN:!0});if(!y.equals(r.locale))throw new InvalidArgumentError$1(`fromFormatParser called with a locale of ${y}, but the format parser was created for ${r.locale}`);let{result:S,zone:_,specificOffset:C,invalidReason:O}=r.explainFromTokens(o);return O?DateTime$1.invalid(O):parseDataToDateTime$1(S,_,u,`format ${r.format}`,o,C)}static get DATE_SHORT(){return DATE_SHORT$1}static get DATE_MED(){return DATE_MED$1}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY$1}static get DATE_FULL(){return DATE_FULL$1}static get DATE_HUGE(){return DATE_HUGE$1}static get TIME_SIMPLE(){return TIME_SIMPLE$1}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS$1}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET$1}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET$1}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE$1}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS$1}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET$1}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET$1}static get DATETIME_SHORT(){return DATETIME_SHORT$1}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS$1}static get DATETIME_MED(){return DATETIME_MED$1}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS$1}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY$1}static get DATETIME_FULL(){return DATETIME_FULL$1}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS$1}static get DATETIME_HUGE(){return DATETIME_HUGE$1}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS$1}};function friendlyDateTime$1(t$5){if(DateTime$1.isDateTime(t$5))return t$5;if(t$5&&t$5.valueOf&&isNumber$1(t$5.valueOf()))return DateTime$1.fromJSDate(t$5);if(t$5&&typeof t$5==`object`)return DateTime$1.fromObject(t$5);throw new InvalidArgumentError$1(`Unknown datetime argument: ${t$5}, of type ${typeof t$5}`)}const countries=Object.freeze(new Map([[`AD`,`Andorra`],[`AE`,`United Arab Emirates`],[`AF`,`Afghanistan`],[`AG`,`Antigua and Barbuda`],[`AI`,`Anguilla`],[`AL`,`Albania`],[`AM`,`Armenia`],[`AO`,`Angola`],[`AQ`,`Antarctica`],[`AR`,`Argentina`],[`AS`,`American Samoa`],[`AT`,`Austria`],[`AU`,`Australia`],[`AW`,`Aruba`],[`AX`,`Aland Islands`],[`AZ`,`Azerbaijan`],[`BA`,`Bosnia and Herzegovina`],[`BB`,`Barbados`],[`BD`,`Bangladesh`],[`BE`,`Belgium`],[`BF`,`Burkina Faso`],[`BG`,`Bulgaria`],[`BH`,`Bahrain`],[`BI`,`Burundi`],[`BJ`,`Benin`],[`BL`,`Saint Barthelemy`],[`BM`,`Bermuda`],[`BN`,`Brunei`],[`BO`,`Bolivia`],[`BQ`,`Bonaire, Saint Eustatius and Saba`],[`BR`,`Brazil`],[`BS`,`Bahamas`],[`BT`,`Bhutan`],[`BV`,`Bouvet Island`],[`BW`,`Botswana`],[`BY`,`Belarus`],[`BZ`,`Belize`],[`CA`,`Canada`],[`CC`,`Cocos Islands`],[`CD`,`Democratic Republic of the Congo`],[`CF`,`Central African Republic`],[`CG`,`Republic of the Congo`],[`CH`,`Switzerland`],[`CI`,`Ivory Coast`],[`CK`,`Cook Islands`],[`CL`,`Chile`],[`CM`,`Cameroon`],[`CN`,`China`],[`CO`,`Colombia`],[`CR`,`Costa Rica`],[`CU`,`Cuba`],[`CV`,`Cape Verde`],[`CW`,`Curacao`],[`CX`,`Christmas Island`],[`CY`,`Cyprus`],[`CZ`,`Czech Republic`],[`DE`,`Germany`],[`DJ`,`Djibouti`],[`DK`,`Denmark`],[`DM`,`Dominica`],[`DO`,`Dominican Republic`],[`DZ`,`Algeria`],[`EC`,`Ecuador`],[`EE`,`Estonia`],[`EG`,`Egypt`],[`EH`,`Western Sahara`],[`ER`,`Eritrea`],[`ES`,`Spain`],[`ET`,`Ethiopia`],[`FI`,`Finland`],[`FJ`,`Fiji`],[`FK`,`Falkland Islands`],[`FM`,`Micronesia`],[`FO`,`Faroe Islands`],[`FR`,`France`],[`GA`,`Gabon`],[`GB`,`United Kingdom`],[`GD`,`Grenada`],[`GE`,`Georgia`],[`GF`,`French Guiana`],[`GG`,`Guernsey`],[`GH`,`Ghana`],[`GI`,`Gibraltar`],[`GL`,`Greenland`],[`GM`,`Gambia`],[`GN`,`Guinea`],[`GP`,`Guadeloupe`],[`GQ`,`Equatorial Guinea`],[`GR`,`Greece`],[`GS`,`South Georgia and the South Sandwich Islands`],[`GT`,`Guatemala`],[`GU`,`Guam`],[`GW`,`Guinea-Bissau`],[`GY`,`Guyana`],[`HK`,`Hong Kong`],[`HM`,`Heard Island and McDonald Islands`],[`HN`,`Honduras`],[`HR`,`Croatia`],[`HT`,`Haiti`],[`HU`,`Hungary`],[`ID`,`Indonesia`],[`IE`,`Ireland`],[`IL`,`Israel`],[`IM`,`Isle of Man`],[`IN`,`India`],[`IO`,`British Indian Ocean Territory`],[`IQ`,`Iraq`],[`IR`,`Iran`],[`IS`,`Iceland`],[`IT`,`Italy`],[`JE`,`Jersey`],[`JM`,`Jamaica`],[`JO`,`Jordan`],[`JP`,`Japan`],[`KE`,`Kenya`],[`KG`,`Kyrgyzstan`],[`KH`,`Cambodia`],[`KI`,`Kiribati`],[`KM`,`Comoros`],[`KN`,`Saint Kitts and Nevis`],[`KP`,`North Korea`],[`KR`,`South Korea`],[`KW`,`Kuwait`],[`KY`,`Cayman Islands`],[`KZ`,`Kazakhstan`],[`LA`,`Laos`],[`LB`,`Lebanon`],[`LC`,`Saint Lucia`],[`LI`,`Liechtenstein`],[`LK`,`Sri Lanka`],[`LR`,`Liberia`],[`LS`,`Lesotho`],[`LT`,`Lithuania`],[`LU`,`Luxembourg`],[`LV`,`Latvia`],[`LY`,`Libya`],[`MA`,`Morocco`],[`MC`,`Monaco`],[`MD`,`Moldova`],[`ME`,`Montenegro`],[`MF`,`Saint Martin`],[`MG`,`Madagascar`],[`MH`,`Marshall Islands`],[`MK`,`Macedonia`],[`ML`,`Mali`],[`MM`,`Myanmar`],[`MN`,`Mongolia`],[`MO`,`Macao`],[`MP`,`Northern Mariana Islands`],[`MQ`,`Martinique`],[`MR`,`Mauritania`],[`MS`,`Montserrat`],[`MT`,`Malta`],[`MU`,`Mauritius`],[`MV`,`Maldives`],[`MW`,`Malawi`],[`MX`,`Mexico`],[`MY`,`Malaysia`],[`MZ`,`Mozambique`],[`NA`,`Namibia`],[`NC`,`New Caledonia`],[`NE`,`Niger`],[`NF`,`Norfolk Island`],[`NG`,`Nigeria`],[`NI`,`Nicaragua`],[`NL`,`Netherlands`],[`NO`,`Norway`],[`NP`,`Nepal`],[`NR`,`Nauru`],[`NU`,`Niue`],[`NZ`,`New Zealand`],[`OM`,`Oman`],[`PA`,`Panama`],[`PE`,`Peru`],[`PF`,`French Polynesia`],[`PG`,`Papua New Guinea`],[`PH`,`Philippines`],[`PK`,`Pakistan`],[`PL`,`Poland`],[`PM`,`Saint Pierre and Miquelon`],[`PN`,`Pitcairn`],[`PR`,`Puerto Rico`],[`PS`,`Palestinian Territory`],[`PT`,`Portugal`],[`PW`,`Palau`],[`PY`,`Paraguay`],[`QA`,`Qatar`],[`RE`,`Reunion`],[`RO`,`Romania`],[`RS`,`Serbia`],[`RU`,`Russia`],[`RW`,`Rwanda`],[`SA`,`Saudi Arabia`],[`SB`,`Solomon Islands`],[`SC`,`Seychelles`],[`SD`,`Sudan`],[`SE`,`Sweden`],[`SG`,`Singapore`],[`SH`,`Saint Helena`],[`SI`,`Slovenia`],[`SJ`,`Svalbard and Jan Mayen`],[`SK`,`Slovakia`],[`SL`,`Sierra Leone`],[`SM`,`San Marino`],[`SN`,`Senegal`],[`SO`,`Somalia`],[`SR`,`Suriname`],[`SS`,`South Sudan`],[`ST`,`Sao Tome and Principe`],[`SV`,`El Salvador`],[`SX`,`Sint Maarten`],[`SY`,`Syria`],[`SZ`,`Swaziland`],[`TC`,`Turks and Caicos Islands`],[`TD`,`Chad`],[`TF`,`French Southern Territories`],[`TG`,`Togo`],[`TH`,`Thailand`],[`TJ`,`Tajikistan`],[`TK`,`Tokelau`],[`TL`,`East Timor`],[`TM`,`Turkmenistan`],[`TN`,`Tunisia`],[`TO`,`Tonga`],[`TR`,`Turkey`],[`TT`,`Trinidad and Tobago`],[`TV`,`Tuvalu`],[`TW`,`Taiwan`],[`TZ`,`Tanzania`],[`UA`,`Ukraine`],[`UG`,`Uganda`],[`UM`,`United States Minor Outlying Islands`],[`US`,`United States`],[`UY`,`Uruguay`],[`UZ`,`Uzbekistan`],[`VA`,`Vatican`],[`VC`,`Saint Vincent and the Grenadines`],[`VE`,`Venezuela`],[`VG`,`British Virgin Islands`],[`VI`,`U.S. Virgin Islands`],[`VN`,`Vietnam`],[`VU`,`Vanuatu`],[`WF`,`Wallis and Futuna`],[`WS`,`Samoa`],[`XK`,`Kosovo`],[`YE`,`Yemen`],[`YT`,`Mayotte`],[`ZA`,`South Africa`],[`ZM`,`Zambia`],[`ZW`,`Zimbabwe`]])),timezones=Object.freeze(new Map([[`AD`,`Europe/Andorra`],[`AE`,`Asia/Dubai`],[`AF`,`Asia/Kabul`],[`AG`,`America/Antigua`],[`AI`,`America/Anguilla`],[`AL`,`Europe/Tirane`],[`AM`,`Asia/Yerevan`],[`AO`,`Africa/Luanda`],[`AQ`,`Antarctica/Casey`],[`AR`,`America/Argentina/Buenos_Aires`],[`AS`,`Pacific/Pago_Pago`],[`AT`,`Europe/Vienna`],[`AU`,`Australia/Sydney`],[`AW`,`America/Aruba`],[`AX`,`Europe/Mariehamn`],[`AZ`,`Asia/Baku`],[`BA`,`Europe/Sarajevo`],[`BB`,`America/Barbados`],[`BD`,`Asia/Dhaka`],[`BE`,`Europe/Brussels`],[`BF`,`Africa/Ouagadougou`],[`BG`,`Europe/Sofia`],[`BH`,`Asia/Bahrain`],[`BI`,`Africa/Bujumbura`],[`BJ`,`Africa/Porto-Novo`],[`BL`,`America/St_Barthelemy`],[`BM`,`Atlantic/Bermuda`],[`BN`,`Asia/Brunei`],[`BO`,`America/La_Paz`],[`BQ`,`America/Kralendijk`],[`BR`,`America/Sao_Paulo`],[`BS`,`America/Nassau`],[`BT`,`Asia/Thimphu`],[`BW`,`Africa/Gaborone`],[`BY`,`Europe/Minsk`],[`BZ`,`America/Belize`],[`CA`,`America/Toronto`],[`CC`,`Indian/Cocos`],[`CD`,`Africa/Kinshasa`],[`CF`,`Africa/Bangui`],[`CG`,`Africa/Brazzaville`],[`CH`,`Europe/Zurich`],[`CI`,`Africa/Abidjan`],[`CK`,`Pacific/Rarotonga`],[`CL`,`America/Santiago`],[`CM`,`Africa/Douala`],[`CN`,`Asia/Shanghai`],[`CO`,`America/Bogota`],[`CR`,`America/Costa_Rica`],[`CU`,`America/Havana`],[`CV`,`Atlantic/Cape_Verde`],[`CW`,`America/Curacao`],[`CX`,`Indian/Christmas`],[`CY`,`Asia/Nicosia`],[`CZ`,`Europe/Prague`],[`DE`,`Europe/Berlin`],[`DJ`,`Africa/Djibouti`],[`DK`,`Europe/Copenhagen`],[`DM`,`America/Dominica`],[`DO`,`America/Santo_Domingo`],[`DZ`,`Africa/Algiers`],[`EC`,`America/Guayaquil`],[`EE`,`Europe/Tallinn`],[`EG`,`Africa/Cairo`],[`EH`,`Africa/El_Aaiun`],[`ER`,`Africa/Asmara`],[`ES`,`Europe/Madrid`],[`ET`,`Africa/Addis_Ababa`],[`FI`,`Europe/Helsinki`],[`FJ`,`Pacific/Fiji`],[`FK`,`Atlantic/Stanley`],[`FM`,`Pacific/Pohnpei`],[`FO`,`Atlantic/Faroe`],[`FR`,`Europe/Paris`],[`GA`,`Africa/Libreville`],[`GB`,`Europe/London`],[`GD`,`America/Grenada`],[`GE`,`Asia/Tbilisi`],[`GF`,`America/Cayenne`],[`GG`,`Europe/Guernsey`],[`GH`,`Africa/Accra`],[`GI`,`Europe/Gibraltar`],[`GL`,`America/Godthab`],[`GM`,`Africa/Banjul`],[`GN`,`Africa/Conakry`],[`GP`,`America/Guadeloupe`],[`GQ`,`Africa/Malabo`],[`GR`,`Europe/Athens`],[`GS`,`Atlantic/South_Georgia`],[`GT`,`America/Guatemala`],[`GU`,`Pacific/Guam`],[`GW`,`Africa/Bissau`],[`GY`,`America/Guyana`],[`HK`,`Asia/Hong_Kong`],[`HN`,`America/Tegucigalpa`],[`HR`,`Europe/Zagreb`],[`HT`,`America/Port-au-Prince`],[`HU`,`Europe/Budapest`],[`ID`,`Asia/Jakarta`],[`IE`,`Europe/Dublin`],[`IL`,`Asia/Jerusalem`],[`IM`,`Europe/Isle_of_Man`],[`IN`,`Asia/Kolkata`],[`IO`,`Indian/Chagos`],[`IQ`,`Asia/Baghdad`],[`IR`,`Asia/Tehran`],[`IS`,`Atlantic/Reykjavik`],[`IT`,`Europe/Rome`],[`JE`,`Europe/Jersey`],[`JM`,`America/Jamaica`],[`JO`,`Asia/Amman`],[`JP`,`Asia/Tokyo`],[`KE`,`Africa/Nairobi`],[`KG`,`Asia/Bishkek`],[`KH`,`Asia/Phnom_Penh`],[`KI`,`Pacific/Tarawa`],[`KM`,`Indian/Comoro`],[`KN`,`America/St_Kitts`],[`KP`,`Asia/Pyongyang`],[`KR`,`Asia/Seoul`],[`KW`,`Asia/Kuwait`],[`KY`,`America/Cayman`],[`KZ`,`Asia/Almaty`],[`LA`,`Asia/Vientiane`],[`LB`,`Asia/Beirut`],[`LC`,`America/St_Lucia`],[`LI`,`Europe/Vaduz`],[`LK`,`Asia/Colombo`],[`LR`,`Africa/Monrovia`],[`LS`,`Africa/Maseru`],[`LT`,`Europe/Vilnius`],[`LU`,`Europe/Luxembourg`],[`LV`,`Europe/Riga`],[`LY`,`Africa/Tripoli`],[`MA`,`Africa/Casablanca`],[`MC`,`Europe/Monaco`],[`MD`,`Europe/Chisinau`],[`ME`,`Europe/Podgorica`],[`MF`,`America/Marigot`],[`MG`,`Indian/Antananarivo`],[`MH`,`Pacific/Majuro`],[`MK`,`Europe/Skopje`],[`ML`,`Africa/Bamako`],[`MM`,`Asia/Yangon`],[`MN`,`Asia/Ulaanbaatar`],[`MO`,`Asia/Macau`],[`MP`,`Pacific/Saipan`],[`MQ`,`America/Martinique`],[`MR`,`Africa/Nouakchott`],[`MS`,`America/Montserrat`],[`MT`,`Europe/Malta`],[`MU`,`Indian/Mauritius`],[`MV`,`Indian/Maldives`],[`MW`,`Africa/Blantyre`],[`MX`,`America/Mexico_City`],[`MY`,`Asia/Kuala_Lumpur`],[`MZ`,`Africa/Maputo`],[`NA`,`Africa/Windhoek`],[`NC`,`Pacific/Noumea`],[`NE`,`Africa/Niamey`],[`NF`,`Pacific/Norfolk`],[`NG`,`Africa/Lagos`],[`NI`,`America/Managua`],[`NL`,`Europe/Amsterdam`],[`NO`,`Europe/Oslo`],[`NP`,`Asia/Kathmandu`],[`NR`,`Pacific/Nauru`],[`NU`,`Pacific/Niue`],[`NZ`,`Pacific/Auckland`],[`OM`,`Asia/Muscat`],[`PA`,`America/Panama`],[`PE`,`America/Lima`],[`PF`,`Pacific/Tahiti`],[`PG`,`Pacific/Port_Moresby`],[`PH`,`Asia/Manila`],[`PK`,`Asia/Karachi`],[`PL`,`Europe/Warsaw`],[`PM`,`America/Miquelon`],[`PN`,`Pacific/Pitcairn`],[`PR`,`America/Puerto_Rico`],[`PS`,`Asia/Gaza`],[`PT`,`Europe/Lisbon`],[`PW`,`Pacific/Palau`],[`PY`,`America/Asuncion`],[`QA`,`Asia/Qatar`],[`RE`,`Indian/Reunion`],[`RO`,`Europe/Bucharest`],[`RS`,`Europe/Belgrade`],[`RU`,`Europe/Moscow`],[`RW`,`Africa/Kigali`],[`SA`,`Asia/Riyadh`],[`SB`,`Pacific/Guadalcanal`],[`SC`,`Indian/Mahe`],[`SD`,`Africa/Khartoum`],[`SE`,`Europe/Stockholm`],[`SG`,`Asia/Singapore`],[`SH`,`Atlantic/St_Helena`],[`SI`,`Europe/Ljubljana`],[`SJ`,`Arctic/Longyearbyen`],[`SK`,`Europe/Bratislava`],[`SL`,`Africa/Freetown`],[`SM`,`Europe/San_Marino`],[`SN`,`Africa/Dakar`],[`SO`,`Africa/Mogadishu`],[`SR`,`America/Paramaribo`],[`SS`,`Africa/Juba`],[`ST`,`Africa/Sao_Tome`],[`SV`,`America/El_Salvador`],[`SX`,`America/Lower_Princes`],[`SY`,`Asia/Damascus`],[`SZ`,`Africa/Mbabane`],[`TC`,`America/Grand_Turk`],[`TD`,`Africa/Ndjamena`],[`TF`,`Indian/Kerguelen`],[`TG`,`Africa/Lome`],[`TH`,`Asia/Bangkok`],[`TJ`,`Asia/Dushanbe`],[`TK`,`Pacific/Fakaofo`],[`TL`,`Asia/Dili`],[`TM`,`Asia/Ashgabat`],[`TN`,`Africa/Tunis`],[`TO`,`Pacific/Tongatapu`],[`TR`,`Europe/Istanbul`],[`TT`,`America/Port_of_Spain`],[`TV`,`Pacific/Funafuti`],[`TW`,`Asia/Taipei`],[`TZ`,`Africa/Dar_es_Salaam`],[`UA`,`Europe/Kiev`],[`UG`,`Africa/Kampala`],[`UM`,`Pacific/Wake`],[`US`,`America/New_York`],[`UY`,`America/Montevideo`],[`UZ`,`Asia/Tashkent`],[`VA`,`Europe/Vatican`],[`VC`,`America/St_Vincent`],[`VE`,`America/Caracas`],[`VG`,`America/Tortola`],[`VI`,`America/St_Thomas`],[`VN`,`Asia/Ho_Chi_Minh`],[`VU`,`Pacific/Efate`],[`WF`,`Pacific/Wallis`],[`WS`,`Pacific/Apia`],[`YE`,`Asia/Aden`],[`YT`,`Indian/Mayotte`],[`ZA`,`Africa/Johannesburg`],[`ZM`,`Africa/Lusaka`],[`ZW`,`Africa/Harare`]])),getNumberOrUndefined=t$5=>{let o=Number(t$5);return Number.isNaN(o)?void 0:o},isos=Object.freeze(new Set([...countries.keys()]));function getCountriesWithSpecificTime(t$5,o,r){let u={minute:t$5};typeof o==`object`?u={...o}:o!==void 0&&(u.hourOfDay=o,r&&(u={...u,...r}));let h={year:getNumberOrUndefined(u.year),month:getNumberOrUndefined(u.monthOfYear),day:getNumberOrUndefined(u.dayOfMonth),hour:getNumberOrUndefined(u.hourOfDay),minute:getNumberOrUndefined(u.minute),second:0,millisecond:0},m=DateTime$1.fromObject(h),y=[],_=Object.keys(h).filter(C=>typeof h[C]<`u`&&![`second`,`millisecond`].includes(C));return timezones.forEach((C,O)=>{let I=DateTime$1.now().setZone(C);_.filter(U=>{let F=m.toObject()[U],G=I.toObject()[U];return F===G}).length===_.length&&y.push(O)}),y}const areaCodeMap={201:`US`,202:`US`,203:`US`,204:`CA`,205:`US`,206:`US`,207:`US`,208:`US`,209:`US`,210:`US`,212:`US`,213:`US`,214:`US`,215:`US`,216:`US`,217:`US`,218:`US`,219:`US`,220:`US`,223:`US`,224:`US`,225:`US`,226:`CA`,227:`US`,228:`US`,229:`US`,231:`US`,234:`US`,236:`CA`,239:`US`,240:`US`,242:`BS`,246:`BB`,248:`US`,249:`CA`,250:`CA`,251:`US`,252:`US`,253:`US`,254:`US`,256:`US`,260:`US`,262:`US`,263:`CA`,264:`AI`,267:`US`,268:`AG`,269:`US`,270:`US`,272:`US`,276:`US`,279:`US`,281:`US`,283:`US`,284:`VG`,289:`CA`,301:`US`,302:`US`,303:`US`,304:`US`,305:`US`,306:`CA`,307:`US`,308:`US`,309:`US`,310:`US`,312:`US`,313:`US`,314:`US`,315:`US`,316:`US`,317:`US`,318:`US`,319:`US`,320:`US`,321:`US`,323:`US`,325:`US`,326:`US`,329:`US`,330:`US`,331:`US`,332:`US`,334:`US`,336:`US`,337:`US`,339:`US`,340:`VI`,341:`US`,343:`CA`,345:`KY`,346:`US`,347:`US`,350:`US`,351:`US`,352:`US`,354:`CA`,360:`US`,361:`US`,364:`US`,365:`CA`,367:`CA`,368:`CA`,369:`US`,380:`US`,382:`CA`,385:`US`,386:`US`,401:`US`,402:`US`,403:`CA`,404:`US`,405:`US`,406:`US`,407:`US`,408:`US`,409:`US`,410:`US`,412:`US`,413:`US`,414:`US`,415:`US`,416:`CA`,417:`US`,418:`CA`,419:`US`,423:`US`,424:`US`,425:`US`,428:`CA`,430:`US`,431:`CA`,432:`US`,434:`US`,435:`US`,437:`CA`,438:`CA`,440:`US`,441:`BM`,442:`US`,443:`US`,445:`US`,447:`US`,448:`US`,450:`CA`,458:`US`,463:`US`,464:`US`,468:`CA`,469:`US`,470:`US`,473:`GD`,474:`CA`,475:`US`,478:`US`,479:`US`,480:`US`,484:`US`,500:`US`,501:`US`,502:`US`,503:`US`,504:`US`,505:`US`,506:`CA`,507:`US`,508:`US`,509:`US`,510:`US`,512:`US`,513:`US`,514:`CA`,515:`US`,516:`US`,517:`US`,518:`US`,519:`CA`,520:`US`,521:`US`,522:`US`,525:`US`,526:`US`,527:`US`,528:`US`,529:`US`,530:`US`,531:`US`,533:`US`,534:`US`,539:`US`,540:`US`,541:`US`,544:`US`,548:`CA`,551:`US`,557:`US`,559:`US`,561:`US`,562:`US`,563:`US`,564:`US`,566:`US`,567:`US`,570:`US`,571:`US`,572:`US`,573:`US`,574:`US`,575:`US`,577:`US`,579:`CA`,580:`US`,581:`CA`,582:`US`,584:`CA`,585:`US`,586:`US`,587:`CA`,588:`US`,600:`CA`,601:`US`,602:`US`,603:`US`,604:`CA`,605:`US`,606:`US`,607:`US`,608:`US`,609:`US`,610:`US`,612:`US`,613:`CA`,614:`US`,615:`US`,616:`US`,617:`US`,618:`US`,619:`US`,620:`US`,622:`CA`,623:`US`,626:`US`,628:`US`,629:`US`,630:`US`,631:`US`,636:`US`,639:`CA`,640:`US`,641:`US`,646:`US`,647:`CA`,649:`TC`,650:`US`,651:`US`,656:`US`,657:`US`,658:`JM`,659:`US`,660:`US`,661:`US`,662:`US`,664:`MS`,667:`US`,669:`US`,670:`MP`,671:`GU`,672:`CA`,678:`US`,680:`US`,681:`US`,682:`US`,683:`CA`,684:`AS`,689:`US`,701:`US`,702:`US`,703:`US`,704:`US`,705:`CA`,706:`US`,707:`US`,708:`US`,709:`CA`,712:`US`,713:`US`,714:`US`,715:`US`,716:`US`,717:`US`,718:`US`,719:`US`,720:`US`,721:`SX`,724:`US`,725:`US`,726:`US`,727:`US`,731:`US`,732:`US`,734:`US`,737:`US`,740:`US`,742:`CA`,743:`US`,747:`US`,753:`CA`,754:`US`,757:`US`,758:`LC`,760:`US`,762:`US`,763:`US`,765:`US`,767:`DM`,769:`US`,770:`US`,771:`US`,772:`US`,773:`US`,774:`US`,775:`US`,778:`CA`,779:`US`,780:`CA`,781:`US`,782:`CA`,784:`VC`,785:`US`,786:`US`,787:`PR`,800:`US`,801:`US`,802:`US`,803:`US`,804:`US`,805:`US`,806:`US`,807:`CA`,808:`US`,809:`DO`,810:`US`,812:`US`,813:`US`,814:`US`,815:`US`,816:`US`,817:`US`,818:`US`,819:`CA`,820:`US`,825:`CA`,826:`US`,828:`US`,829:`DO`,830:`US`,831:`US`,832:`US`,833:`US`,835:`US`,838:`US`,839:`US`,840:`US`,843:`US`,844:`US`,845:`US`,847:`US`,848:`US`,849:`DO`,850:`US`,854:`US`,855:`US`,856:`US`,857:`US`,858:`US`,859:`US`,860:`US`,862:`US`,863:`US`,864:`US`,865:`US`,866:`US`,867:`CA`,868:`TT`,869:`KN`,870:`US`,872:`US`,873:`CA`,876:`JM`,877:`US`,878:`US`,888:`US`,900:`US`,901:`US`,902:`CA`,903:`US`,904:`US`,905:`CA`,906:`US`,907:`US`,908:`US`,909:`US`,910:`US`,912:`US`,913:`US`,914:`US`,915:`US`,916:`US`,917:`US`,918:`US`,919:`US`,920:`US`,925:`US`,928:`US`,929:`US`,930:`US`,931:`US`,934:`US`,936:`US`,937:`US`,938:`US`,939:`PR`,940:`US`,941:`US`,943:`US`,945:`US`,947:`US`,948:`US`,949:`US`,951:`US`,952:`US`,954:`US`,956:`US`,959:`US`,970:`US`,971:`US`,972:`US`,973:`US`,978:`US`,979:`US`,980:`US`,984:`US`,985:`US`,986:`US`,989:`US`},nanpaCountries=[`US`,`CA`,`BS`,`BB`,`AI`,`AG`,`VG`,`VI`,`KY`,`BM`,`GD`,`TC`,`JM`,`MS`,`MP`,`GU`,`AS`,`SX`,`LC`,`DM`,`VC`,`PR`,`DO`,`TT`,`KN`];for(var commonjsGlobal=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},allCountries=[[`Afghanistan (افغانستان)`,`af`,`93`,`+..-..-...-....`],[`Åland Islands`,`ax`,`358`,``],[`Albania (Shqipëri)`,`al`,`355`,`+...(...)...-...`],[`Algeria (الجزائر)`,`dz`,`213`,`+...-..-...-....`],[`American Samoa`,`as`,`1684`,`+.(...)...-....`],[`Andorra`,`ad`,`376`,`+...-...-...`],[`Angola`,`ao`,`244`,`+...(...)...-...`],[`Anguilla`,`ai`,`1264`,`+.(...)...-....`],[`Antarctica`,`aq`,`672`,``],[`Antigua and Barbuda`,`ag`,`1268`,`+.(...)...-....`],[`Argentina`,`ar`,`54`,`+..(...)...-....`],[`Armenia (Հայաստան)`,`am`,`374`,`+...-..-...-...`],[`Aruba`,`aw`,`297`,`+...-...-....`],[`Australia`,`au`,`61`,`+.. ... ... ...`],[`Austria (Österreich)`,`at`,`43`,`+..(...)...-....`],[`Azerbaijan (Azərbaycan)`,`az`,`994`,`+...-..-...-..-..`],[`Bahamas`,`bs`,`1242`,`+.(...)...-....`],[`Bahrain (البحرين)`,`bh`,`973`,`+...-....-....`],[`Bangladesh (বাংলাদেশ)`,`bd`,`880`,`+...-..-...-...`],[`Barbados`,`bb`,`1246`,`+.(...)...-....`],[`Belarus (Беларусь)`,`by`,`375`,`+...(..)...-..-..`],[`Belgium (België)`,`be`,`32`,`+.. ... .. .. ..`],[`Belize`,`bz`,`501`,`+...-...-....`],[`Benin (Bénin)`,`bj`,`229`,`+...-..-..-....`],[`Bermuda`,`bm`,`1441`,`+.(...)...-....`],[`Bhutan (འབྲུག)`,`bt`,`975`,`+...-.-...-...`],[`Bolivia`,`bo`,`591`,`+...-.-...-....`],[`Bosnia and Herzegovina (Босна и Херцеговина)`,`ba`,`387`,`+...-..-....`],[`Botswana`,`bw`,`267`,`+...-..-...-...`],[`Bouvet Island`,`bv`,`47`,``],[`Brazil (Brasil)`,`br`,`55`,`+..-..-....-....`],[`British Indian Ocean Territory`,`io`,`246`,`+...-...-....`],[`British Virgin Islands`,`vg`,`1284`,`+.(...)...-....`],[`Brunei`,`bn`,`673`,`+...-...-....`],[`Bulgaria (България)`,`bg`,`359`,`+...(...)...-...`],[`Burkina Faso`,`bf`,`226`,`+...-..-..-....`],[`Burundi (Uburundi)`,`bi`,`257`,`+...-..-..-....`],[`Cambodia (កម្ពុជា)`,`kh`,`855`,`+...-..-...-...`],[`Cameroon (Cameroun)`,`cm`,`237`,`+...-....-....`],[`Canada`,`ca`,`1`,`+. (...) ...-....`,1,`204.236.249.250.289.306.343.365.387.403.416.418.431.437.438.450.506.514.519.548.579.581.587.604.613.639.647.672.705.709.742.778.780.782.807.819.825.867.873.902.905`.split(`.`)],[`Cape Verde (Kabu Verdi)`,`cv`,`238`,`+...(...)..-..`],[`Caribbean Netherlands`,`bq`,`599`,`+...-...-....`,1],[`Cayman Islands`,`ky`,`1345`,`+.(...)...-....`],[`Central African Republic (République centrafricaine)`,`cf`,`236`,`+...-..-..-....`],[`Chad (Tchad)`,`td`,`235`,`+...-..-..-..-..`],[`Chile`,`cl`,`56`,`+..-.-....-....`],[`China (中国)`,`cn`,`86`,`+.. ..-........`],[`Christmas Island`,`cx`,`61`,``],[`Cocos (Keeling) Islands`,`cc`,`61`,``],[`Colombia`,`co`,`57`,`+..(...)...-....`],[`Comoros (جزر القمر)`,`km`,`269`,`+...-..-.....`],[`Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)`,`cd`,`243`,`+...(...)...-...`],[`Congo (Republic) (Congo-Brazzaville)`,`cg`,`242`,`+...-..-...-....`],[`Cook Islands`,`ck`,`682`,`+...-..-...`],[`Costa Rica`,`cr`,`506`,`+... ....-....`],[`Côte d’Ivoire`,`ci`,`225`,`+...-..-...-...`],[`Croatia (Hrvatska)`,`hr`,`385`,`+...-..-...-...`],[`Cuba`,`cu`,`53`,`+..-.-...-....`],[`Curaçao`,`cw`,`599`,`+...-...-....`,0],[`Cyprus (Κύπρος)`,`cy`,`357`,`+...-..-...-...`],[`Czech Republic (Česká republika)`,`cz`,`420`,`+...(...)...-...`],[`Denmark (Danmark)`,`dk`,`45`,`+.. .. .. .. ..`],[`Djibouti`,`dj`,`253`,`+...-..-..-..-..`],[`Dominica`,`dm`,`1767`,`+.(...)...-....`],[`Dominican Republic (República Dominicana)`,`do`,`1`,`+.(...)...-....`,2,[`809`,`829`,`849`]],[`Ecuador`,`ec`,`593`,`+...-.-...-....`],[`Egypt (مصر)`,`eg`,`20`,`+..(...)...-....`],[`El Salvador`,`sv`,`503`,`+... ....-....`],[`Equatorial Guinea (Guinea Ecuatorial)`,`gq`,`240`,`+...-..-...-....`],[`Eritrea`,`er`,`291`,`+...-.-...-...`],[`Estonia (Eesti)`,`ee`,`372`,`+...-...-....`],[`Ethiopia`,`et`,`251`,`+...-..-...-....`],[`Falkland Islands (Islas Malvinas)`,`fk`,`500`,`+...-.....`],[`Faroe Islands (Føroyar)`,`fo`,`298`,`+...-...-...`],[`Fiji`,`fj`,`679`,`+...-..-.....`],[`Finland (Suomi)`,`fi`,`358`,`+... .. .... ....`],[`France`,`fr`,`33`,`+.. . .. .. .. ..`],[`French Guiana (Guyane française)`,`gf`,`594`,`+...-.....-....`],[`French Polynesia (Polynésie française)`,`pf`,`689`,`+...-..-..-..`],[`French Southern and Antarctic Lands`,`tf`,`262`,``],[`Gabon`,`ga`,`241`,`+...-.-..-..-..`],[`Gambia`,`gm`,`220`,`+...(...)..-..`],[`Georgia (საქართველო)`,`ge`,`995`,`+...(...)...-...`],[`Germany (Deutschland)`,`de`,`49`,`+.. ... .......`],[`Ghana (Gaana)`,`gh`,`233`,`+...(...)...-...`],[`Gibraltar`,`gi`,`350`,`+...-...-.....`],[`Greece (Ελλάδα)`,`gr`,`30`,`+..(...)...-....`],[`Greenland (Kalaallit Nunaat)`,`gl`,`299`,`+...-..-..-..`],[`Grenada`,`gd`,`1473`,`+.(...)...-....`],[`Guadeloupe`,`gp`,`590`,``,0],[`Guam`,`gu`,`1671`,`+.(...)...-....`],[`Guatemala`,`gt`,`502`,`+... ....-....`],[`Guernsey`,`gg`,`44`,``],[`Guinea (Guinée)`,`gn`,`224`,`+...-..-...-...`],[`Guinea-Bissau (Guiné Bissau)`,`gw`,`245`,`+...-.-......`],[`Guyana`,`gy`,`592`,`+...-...-....`],[`Haiti`,`ht`,`509`,`+... ....-....`],[`Heard Island and McDonald Islands`,`hm`,`672`,``],[`Honduras`,`hn`,`504`,`+...-....-....`],[`Hong Kong (香港)`,`hk`,`852`,`+... .... ....`],[`Hungary (Magyarország)`,`hu`,`36`,`+..(...)...-...`],[`Iceland (Ísland)`,`is`,`354`,`+... ... ....`],[`India (भारत)`,`in`,`91`,`+.. .....-.....`],[`Indonesia`,`id`,`62`,`+..-..-...-..`],[`Iran (ایران)`,`ir`,`98`,`+..(...)...-....`],[`Iraq (العراق)`,`iq`,`964`,`+...(...)...-....`],[`Ireland`,`ie`,`353`,`+... .. .......`],[`Isle of Man`,`im`,`44`,``],[`Israel (ישראל)`,`il`,`972`,`+...-.-...-....`],[`Italy (Italia)`,`it`,`39`,`+.. ... ......`,0],[`Jamaica`,`jm`,`1876`,`+.(...)...-....`],[`Japan (日本)`,`jp`,`81`,`+.. ... .. ....`],[`Jersey`,`je`,`44`,``],[`Jordan (الأردن)`,`jo`,`962`,`+...-.-....-....`],[`Kazakhstan (Казахстан)`,`kz`,`7`,`+. ... ...-..-..`,1],[`Kenya`,`ke`,`254`,`+...-...-......`],[`Kiribati`,`ki`,`686`,`+...-..-...`],[`Kosovo`,`xk`,`383`,``],[`Kuwait (الكويت)`,`kw`,`965`,`+...-....-....`],[`Kyrgyzstan (Кыргызстан)`,`kg`,`996`,`+...(...)...-...`],[`Laos (ລາວ)`,`la`,`856`,`+...-..-...-...`],[`Latvia (Latvija)`,`lv`,`371`,`+...-..-...-...`],[`Lebanon (لبنان)`,`lb`,`961`,`+...-.-...-...`],[`Lesotho`,`ls`,`266`,`+...-.-...-....`],[`Liberia`,`lr`,`231`,`+...-..-...-...`],[`Libya (ليبيا)`,`ly`,`218`,`+...-..-...-...`],[`Liechtenstein`,`li`,`423`,`+...(...)...-....`],[`Lithuania (Lietuva)`,`lt`,`370`,`+...(...)..-...`],[`Luxembourg`,`lu`,`352`,`+...(...)...-...`],[`Macau (澳門)`,`mo`,`853`,`+...-....-....`],[`Macedonia (FYROM) (Македонија)`,`mk`,`389`,`+...-..-...-...`],[`Madagascar (Madagasikara)`,`mg`,`261`,`+...-..-..-.....`],[`Malawi`,`mw`,`265`,`+...-.-....-....`],[`Malaysia`,`my`,`60`,`+.. ..-....-....`],[`Maldives`,`mv`,`960`,`+...-...-....`],[`Mali`,`ml`,`223`,`+...-..-..-....`],[`Malta`,`mt`,`356`,`+...-....-....`],[`Marshall Islands`,`mh`,`692`,`+...-...-....`],[`Martinique`,`mq`,`596`,`+...(...)..-..-..`],[`Mauritania (موريتانيا)`,`mr`,`222`,`+...-..-..-....`],[`Mauritius (Moris)`,`mu`,`230`,`+...-...-....`],[`Mayotte`,`yt`,`262`,``],[`Mexico (México)`,`mx`,`52`,`+..-..-..-....`],[`Micronesia`,`fm`,`691`,`+...-...-....`],[`Moldova (Republica Moldova)`,`md`,`373`,`+...-....-....`],[`Monaco`,`mc`,`377`,`+...-..-...-...`],[`Mongolia (Монгол)`,`mn`,`976`,`+...-..-..-....`],[`Montenegro (Crna Gora)`,`me`,`382`,`+...-..-...-...`],[`Montserrat`,`ms`,`1664`,`+.(...)...-....`],[`Morocco (المغرب)`,`ma`,`212`,`+...-..-....-...`],[`Mozambique (Moçambique)`,`mz`,`258`,`+...-..-...-...`],[`Myanmar (Burma) (မြန်မာ)`,`mm`,`95`,`+..-...-...`],[`Namibia (Namibië)`,`na`,`264`,`+...-..-...-....`],[`Nauru`,`nr`,`674`,`+...-...-....`],[`Nepal (नेपाल)`,`np`,`977`,`+...-..-...-...`],[`Netherlands (Nederland)`,`nl`,`31`,`+.. .. ........`],[`New Caledonia (Nouvelle-Calédonie)`,`nc`,`687`,`+...-..-....`],[`New Zealand`,`nz`,`64`,`+.. ...-...-....`],[`Nicaragua`,`ni`,`505`,`+...-....-....`],[`Niger (Nijar)`,`ne`,`227`,`+...-..-..-....`],[`Nigeria`,`ng`,`234`,`+...-..-...-..`],[`Niue`,`nu`,`683`,`+...-....`],[`Norfolk Island`,`nf`,`672`,`+...-...-...`],[`North Korea (조선 민주주의 인민 공화국)`,`kp`,`850`,`+...-...-...`],[`Northern Mariana Islands`,`mp`,`1670`,`+.(...)...-....`],[`Norway (Norge)`,`no`,`47`,`+.. ... .. ...`],[`Oman (عُمان)`,`om`,`968`,`+...-..-...-...`],[`Pakistan (پاکستان)`,`pk`,`92`,`+.. ...-.......`],[`Palau`,`pw`,`680`,`+...-...-....`],[`Palestine (فلسطين)`,`ps`,`970`,`+...-..-...-....`],[`Panama (Panamá)`,`pa`,`507`,`+...-...-....`],[`Papua New Guinea`,`pg`,`675`,`+...(...)..-...`],[`Paraguay`,`py`,`595`,`+...(...)...-...`],[`Peru (Perú)`,`pe`,`51`,`+..(...)...-...`],[`Philippines`,`ph`,`63`,`+.. ... ....`],[`Pitcairn Islands`,`pn`,`64`,``],[`Poland (Polska)`,`pl`,`48`,`+.. ...-...-...`],[`Portugal`,`pt`,`351`,`+...-..-...-....`],[`Puerto Rico`,`pr`,`1`,`+. (...) ...-....`,3,[`787`,`939`]],[`Qatar (قطر)`,`qa`,`974`,`+...-....-....`],[`Réunion (La Réunion)`,`re`,`262`,`+...-.....-....`],[`Romania (România)`,`ro`,`40`,`+..-..-...-....`],[`Russia (Россия)`,`ru`,`7`,`+. ... ...-..-..`,0],[`Rwanda`,`rw`,`250`,`+...(...)...-...`],[`Saint Barthélemy (Saint-Barthélemy)`,`bl`,`590`,``,1],[`Saint Helena`,`sh`,`290`],[`Saint Kitts and Nevis`,`kn`,`1869`,`+.(...)...-....`],[`Saint Lucia`,`lc`,`1758`,`+.(...)...-....`],[`Saint Martin (Saint-Martin (partie française))`,`mf`,`590`,``,2],[`Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)`,`pm`,`508`],[`Saint Vincent and the Grenadines`,`vc`,`1784`,`+.(...)...-....`],[`Samoa`,`ws`,`685`,`+...-..-....`],[`San Marino`,`sm`,`378`,`+...-....-......`],[`São Tomé and Príncipe (São Tomé e Príncipe)`,`st`,`239`,`+...-..-.....`],[`Saudi Arabia (المملكة العربية السعودية)`,`sa`,`966`,`+...-..-...-....`],[`Senegal (Sénégal)`,`sn`,`221`,`+...-..-...-....`],[`Serbia (Србија)`,`rs`,`381`,`+...-..-...-....`],[`Seychelles`,`sc`,`248`,`+...-.-...-...`],[`Sierra Leone`,`sl`,`232`,`+...-..-......`],[`Singapore`,`sg`,`65`,`+.. ....-....`],[`Sint Maarten`,`sx`,`1721`,`+.(...)...-....`],[`Slovakia (Slovensko)`,`sk`,`421`,`+...(...)...-...`],[`Slovenia (Slovenija)`,`si`,`386`,`+...-..-...-...`],[`Solomon Islands`,`sb`,`677`,`+...-.....`],[`Somalia (Soomaaliya)`,`so`,`252`,`+...-.-...-...`],[`South Africa`,`za`,`27`,`+..-..-...-....`],[`South Georgia and the South Sandwich Islands`,`gs`,`500`,``],[`South Korea (대한민국)`,`kr`,`82`,`+..-..-...-....`],[`South Sudan (جنوب السودان)`,`ss`,`211`,`+...-..-...-....`],[`Spain (España)`,`es`,`34`,`+.. ... ... ...`],[`Sri Lanka (ශ්රී ලංකාව)`,`lk`,`94`,`+..-..-...-....`],[`Sudan (السودان)`,`sd`,`249`,`+...-..-...-....`],[`Suriname`,`sr`,`597`,`+...-...-...`],[`Svalbard and Jan Mayen`,`sj`,`47`,``],[`Swaziland`,`sz`,`268`,`+...-..-..-....`],[`Sweden (Sverige)`,`se`,`46`,`+.. .. ... .. ..`],[`Switzerland (Schweiz)`,`ch`,`41`,`+.. .. ... .. ..`],[`Syria (سوريا)`,`sy`,`963`,`+...-..-....-...`],[`Taiwan (台灣)`,`tw`,`886`,`+...-....-....`],[`Tajikistan`,`tj`,`992`,`+...-..-...-....`],[`Tanzania`,`tz`,`255`,`+...-..-...-....`],[`Thailand (ไทย)`,`th`,`66`,`+..-..-...-...`],[`Timor-Leste`,`tl`,`670`,`+...-...-....`],[`Togo`,`tg`,`228`,`+...-..-...-...`],[`Tokelau`,`tk`,`690`,`+...-....`],[`Tonga`,`to`,`676`,`+...-.....`],[`Trinidad and Tobago`,`tt`,`1868`,`+.(...)...-....`],[`Tunisia (تونس)`,`tn`,`216`,`+...-..-...-...`],[`Turkey (Türkiye)`,`tr`,`90`,`+.. ... ... .. ..`],[`Turkmenistan`,`tm`,`993`,`+...-.-...-....`],[`Turks and Caicos Islands`,`tc`,`1649`,`+.(...)...-....`],[`Tuvalu`,`tv`,`688`,`+...-.....`],[`U.S. Virgin Islands`,`vi`,`1340`,`+.(...)...-....`],[`Uganda`,`ug`,`256`,`+...(...)...-...`],[`Ukraine (Україна)`,`ua`,`380`,`+...(..)...-..-..`],[`United Arab Emirates (الإمارات العربية المتحدة)`,`ae`,`971`,`+...-.-...-....`],[`United Kingdom`,`gb`,`44`,`+.. .... ......`],[`United States`,`us`,`1`,`+. (...) ...-....`,0],[`United States Minor Outlying Islands`,`um`,`1`,``,2],[`Uruguay`,`uy`,`598`,`+...-.-...-..-..`],[`Uzbekistan (Oʻzbekiston)`,`uz`,`998`,`+...-..-...-....`],[`Vanuatu`,`vu`,`678`,`+...-.....`],[`Vatican City (Città del Vaticano)`,`va`,`39`,`+.. .. .... ....`,1],[`Venezuela`,`ve`,`58`,`+..(...)...-....`],[`Vietnam (Việt Nam)`,`vn`,`84`,`+..-..-....-...`],[`Wallis and Futuna`,`wf`,`681`,`+...-..-....`],[`Western Sahara`,`eh`,`212`,`+...-..-....`],[`Yemen (اليمن)`,`ye`,`967`,`+...-.-...-...`],[`Zambia`,`zm`,`260`,`+...-..-...-....`],[`Zimbabwe`,`zw`,`263`,`+...-.-......`]],allCountryCodes={},iso2Lookup={},addCountryCode=function(t$5,o,r){o in allCountryCodes||(allCountryCodes[o]=[]);var u=r||0;allCountryCodes[o][u]=t$5},i$1=0;i$1<allCountries.length;i$1++){var c=allCountries[i$1];if(allCountries[i$1]={name:c[0],iso2:c[1],dialCode:c[2],priority:c[4]||0},c[3]&&(allCountries[i$1].format=c[3]),c[5]){allCountries[i$1].hasAreaCodes=!0;for(var j=0;j<c[5].length;j++){var dialCode=c[2]+c[5][j];addCountryCode(c[1],dialCode)}}iso2Lookup[allCountries[i$1].iso2]=i$1,addCountryCode(c[1],c[2],c[4])}var country_telephone_data={allCountries,iso2Lookup,allCountryCodes};function commonjsRequire(t$5){throw Error(`Could not dynamically require "`+t$5+`". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.`)}var libphonenumber={exports:{}};libphonenumber.exports,function(module$1,exports$1){(function(t$5){module$1.exports=t$5()})(function(){return function(){function t$5(o,r,u){function h(S,_){if(!r[S]){if(!o[S]){var C=typeof commonjsRequire==`function`&&commonjsRequire;if(!_&&C)return C(S,!0);if(m)return m(S,!0);var O=Error(`Cannot find module '`+S+`'`);throw O.code=`MODULE_NOT_FOUND`,O}var I=r[S]={exports:{}};o[S][0].call(I.exports,function(R$1){var U=o[S][1][R$1];return h(U||R$1)},I,I.exports,t$5,o,r,u)}return r[S].exports}for(var m=typeof commonjsRequire==`function`&&commonjsRequire,y=0;y<u.length;y++)h(u[y]);return h}return t$5}()({1:[function(require$1,module$2,exports$2){(function(global$1){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(t$5){return t$5.raw=t$5},$jscomp.createTemplateTagFirstArgWithRaw=function(t$5,o){return t$5.raw=o,t$5},$jscomp.arrayIteratorImpl=function(t$5){var o=0;return function(){return o<t$5.length?{done:!1,value:t$5[o++]}:{done:!0}}},$jscomp.arrayIterator=function(t$5){return{next:$jscomp.arrayIteratorImpl(t$5)}},$jscomp.makeIterator=function(t$5){var o=typeof Symbol<`u`&&Symbol.iterator&&t$5[Symbol.iterator];return o?o.call(t$5):$jscomp.arrayIterator(t$5)},$jscomp.arrayFromIterator=function(t$5){for(var o,r=[];!(o=t$5.next()).done;)r.push(o.value);return r},$jscomp.arrayFromIterable=function(t$5){return t$5 instanceof Array?t$5:$jscomp.arrayFromIterator($jscomp.makeIterator(t$5))},$jscomp.checkStringArgs=function(t$5,o,r){if(t$5==null)throw TypeError(`The 'this' value for String.prototype.`+r+` must not be null or undefined`);if(o instanceof RegExp)throw TypeError(`First argument to String.prototype.`+r+` must not be a regular expression`);return t$5+``},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties==`function`?Object.defineProperty:function(t$5,o,r){return t$5==Array.prototype||t$5==Object.prototype||(t$5[o]=r.value),t$5},$jscomp.getGlobal=function(t$5){t$5=[typeof globalThis==`object`&&globalThis,t$5,typeof window==`object`&&window,typeof self==`object`&&self,typeof global$1==`object`&&global$1];for(var o=0;o<t$5.length;++o){var r=t$5[o];if(r&&r.Math==Math)return r}throw Error(`Cannot find global object`)},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==`function`&&typeof Symbol(`x`)==`symbol`,$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX=`$jscp$`,$jscomp.polyfill=function(t$5,o,r,u){o&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t$5,o,r,u):$jscomp.polyfillUnisolated(t$5,o,r,u))},$jscomp.polyfillUnisolated=function(t$5,o,r,u){for(r=$jscomp.global,t$5=t$5.split(`.`),u=0;u<t$5.length-1;u++){var h=t$5[u];if(!(h in r))return;r=r[h]}t$5=t$5[t$5.length-1],u=r[t$5],o=o(u),o!=u&&o!=null&&$jscomp.defineProperty(r,t$5,{configurable:!0,writable:!0,value:o})},$jscomp.polyfillIsolated=function(t$5,o,r,u){var h=t$5.split(`.`);t$5=h.length===1,u=h[0],u=!t$5&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<h.length-1;m++){var y=h[m];if(!(y in u))return;u=u[y]}h=h[h.length-1],r=$jscomp.IS_SYMBOL_NATIVE&&r===`es6`?u[h]:null,o=o(r),o!=null&&(t$5?$jscomp.defineProperty($jscomp.polyfills,h,{configurable:!0,writable:!0,value:o}):o!==r&&($jscomp.propertyToPolyfillSymbol[h]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(h):$jscomp.POLYFILL_PREFIX+h,h=$jscomp.propertyToPolyfillSymbol[h],$jscomp.defineProperty(u,h,{configurable:!0,writable:!0,value:o})))},$jscomp.polyfill(`String.prototype.endsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`endsWith`);o+=``,r===void 0&&(r=u.length),r=Math.max(0,Math.min(r|0,u.length));for(var h=o.length;0<h&&0<r;)if(u[--r]!=o[--h])return!1;return 0>=h}},`es6`,`es3`),$jscomp.findInternal=function(t$5,o,r){t$5 instanceof String&&(t$5=String(t$5));for(var u=t$5.length,h=0;h<u;h++){var m=t$5[h];if(o.call(r,m,h,t$5))return{i:h,v:m}}return{i:-1,v:void 0}},$jscomp.polyfill(`Array.prototype.find`,function(t$5){return t$5||function(o,r){return $jscomp.findInternal(this,o,r).v}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.startsWith`,function(t$5){return t$5||function(o,r){var u=$jscomp.checkStringArgs(this,o,`startsWith`);o+=``;var h=u.length,m=o.length;r=Math.max(0,Math.min(r|0,u.length));for(var y=0;y<m&&r<h;)if(u[r++]!=o[y++])return!1;return y>=m}},`es6`,`es3`),$jscomp.polyfill(`String.prototype.repeat`,function(t$5){return t$5||function(o){var r=$jscomp.checkStringArgs(this,null,`repeat`);if(0>o||1342177279<o)throw RangeError(`Invalid count value`);o|=0;for(var u=``;o;)o&1&&(u+=r),(o>>>=1)&&(r+=r);return u}},`es6`,`es3`),$jscomp.initSymbol=function(){},$jscomp.polyfill(`Symbol`,function(t$5){if(t$5)return t$5;var o=function(h,m){this.$jscomp$symbol$id_=h,$jscomp.defineProperty(this,`description`,{configurable:!0,writable:!0,value:m})};o.prototype.toString=function(){return this.$jscomp$symbol$id_};var r=0,u=function(h){if(this instanceof u)throw TypeError(`Symbol is not a constructor`);return new o(`jscomp_symbol_`+(h||``)+`_`+ r++,h)};return u},`es6`,`es3`),$jscomp.polyfill(`Symbol.iterator`,function(t$5){if(t$5)return t$5;t$5=Symbol(`Symbol.iterator`);for(var o=`Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array`.split(` `),r=0;r<o.length;r++){var u=$jscomp.global[o[r]];typeof u==`function`&&typeof u.prototype[t$5]!=`function`&&$jscomp.defineProperty(u.prototype,t$5,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return t$5},`es6`,`es3`),$jscomp.iteratorPrototype=function(t$5){return t$5={next:t$5},t$5[Symbol.iterator]=function(){return this},t$5},$jscomp.iteratorFromArray=function(t$5,o){t$5 instanceof String&&(t$5+=``);var r=0,u=!1,h={next:function(){if(!u&&r<t$5.length){var m=r++;return{value:o(m,t$5[m]),done:!1}}return u=!0,{done:!0,value:void 0}}};return h[Symbol.iterator]=function(){return h},h},$jscomp.polyfill(`Array.prototype.keys`,function(t$5){return t$5||function(){return $jscomp.iteratorFromArray(this,function(o){return o})}},`es6`,`es3`),$jscomp.polyfill(`Object.is`,function(t$5){return t$5||function(o,r){return o===r?o!==0||1/o==1/r:o!==o&&r!==r}},`es6`,`es3`),$jscomp.polyfill(`Array.prototype.includes`,function(t$5){return t$5||function(o,r){var u=this;u instanceof String&&(u=String(u));var h=u.length;for(r||=0,0>r&&(r=Math.max(r+h,0));r<h;r++){var m=u[r];if(m===o||Object.is(m,o))return!0}return!1}},`es7`,`es3`),$jscomp.polyfill(`String.prototype.includes`,function(t$5){return t$5||function(o,r){return $jscomp.checkStringArgs(this,o,`includes`).indexOf(o,r||0)!==-1}},`es6`,`es3`);var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.exportPath_=function(t$5,o,r,u){t$5=t$5.split(`.`),u||=goog.global,t$5[0]in u||typeof u.execScript>`u`||u.execScript(`var `+t$5[0]);for(var h;t$5.length&&(h=t$5.shift());)if(t$5.length||o===void 0)u=u[h]&&u[h]!==Object.prototype[h]?u[h]:u[h]={};else if(!r&&goog.isObject(o)&&goog.isObject(u[h]))for(var m in o)o.hasOwnProperty(m)&&(u[h][m]=o[m]);else u[h]=o},goog.define=function(t$5,o){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,u=goog.global.CLOSURE_DEFINES;r&&r.nodeType===void 0&&Object.prototype.hasOwnProperty.call(r,t$5)?o=r[t$5]:u&&u.nodeType===void 0&&Object.prototype.hasOwnProperty.call(u,t$5)&&(o=u[t$5])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE=`en`,goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(t$5){if(goog.isInModuleLoader_())throw Error(`goog.provide cannot be used within a module.`);if(!COMPILED&&goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);goog.constructNamespace_(t$5)},goog.constructNamespace_=function(t$5,o,r){if(!COMPILED){delete goog.implicitNamespaces_[t$5];for(var u=t$5;(u=u.substring(0,u.lastIndexOf(`.`)))&&!goog.getObjectByName(u);)goog.implicitNamespaces_[u]=!0}goog.exportPath_(t$5,o,r)},goog.getScriptNonce=function(t$5){return t$5&&t$5!=goog.global?goog.getScriptNonce_(t$5.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(t$5){return(t$5=t$5.querySelector&&t$5.querySelector(`script[nonce]`))&&(t$5=t$5.nonce||t$5.getAttribute(`nonce`))&&goog.NONCE_PATTERN_.test(t$5)?t$5:``},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(t$5){if(typeof t$5!=`string`||!t$5||t$5.search(goog.VALID_MODULE_RE_)==-1)throw Error(`Invalid module identifier`);if(!goog.isInGoogModuleLoader_())throw Error(`Module `+t$5+` has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.`);if(goog.moduleLoaderState_.moduleName)throw Error(`goog.module may only be called once per module.`);if(goog.moduleLoaderState_.moduleName=t$5,!COMPILED){if(goog.isProvided_(t$5))throw Error(`Namespace "`+t$5+`" already declared.`);delete goog.implicitNamespaces_[t$5]}},goog.module.get=function(t$5){return goog.module.getInternal_(t$5)},goog.module.getInternal_=function(t$5){if(!COMPILED){if(t$5 in goog.loadedModules_)return goog.loadedModules_[t$5].exports;if(!goog.implicitNamespaces_[t$5])return t$5=goog.getObjectByName(t$5),t$5??null}return null},goog.ModuleType={ES6:`es6`,GOOG:`goog`},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t$5=goog.global.$jscomp;return t$5&&typeof t$5.getCurrentModulePath==`function`?!!t$5.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error(`goog.module.declareLegacyNamespace must be called from within a goog.module`);if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error(`goog.module must be called prior to goog.module.declareLegacyNamespace.`);goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(t$5){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error(`goog.declareModuleId may only be called from within an ES6 module`);if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error(`goog.declareModuleId may only be called once per module.`);if(t$5 in goog.loadedModules_)throw Error(`Module with namespace "`+t$5+`" already exists.`)}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t$5;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!=`function`)throw Error(`Module with namespace "`+t$5+`" has been loaded incorrectly.`);o=o.require(o.getCurrentModulePath()),goog.loadedModules_[t$5]={exports:o,type:goog.ModuleType.ES6,moduleId:t$5}}},goog.setTestOnly=function(t$5){if(goog.DISALLOW_TEST_ONLY_CODE)throw t$5||=``,Error(`Importing test-only code into non-debug environment`+(t$5?`: `+t$5:`.`))},goog.forwardDeclare=function(t$5){},COMPILED||(goog.isProvided_=function(t$5){return t$5 in goog.loadedModules_||!goog.implicitNamespaces_[t$5]&&goog.getObjectByName(t$5)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(t$5,o){t$5=t$5.split(`.`),o||=goog.global;for(var r=0;r<t$5.length;r++)if(o=o[t$5[r]],o==null)return null;return o},goog.addDependency=function(t$5,o,r,u){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(t$5,o,r,u)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(t$5){goog.global.console&&goog.global.console.error(t$5)},goog.require=function(t$5){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(t$5),goog.isProvided_(t$5)){if(goog.isInModuleLoader_())return goog.module.getInternal_(t$5)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(t$5)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(t$5){return{}},goog.basePath=``,goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error(`unimplemented abstract method`)},goog.addSingletonGetter=function(t$5){t$5.instance_=void 0,t$5.getInstance=function(){return t$5.instance_?t$5.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=t$5),t$5.instance_=new t$5)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE=`detect`,goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE=``,goog.TRANSPILER=`transpile.js`,goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval(`"use strict";let x = 1; function f() { return typeof x; };f() == "number";`)}catch{a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(t$5){return`(function(){`+t$5+`
|
|
11
11
|
;})();
|
|
12
12
|
`},goog.loadModule=function(t$5){var o=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:``,declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var r={},u=r;if(typeof t$5==`function`)u=t$5.call(void 0,u);else if(typeof t$5==`string`)goog.useSafari10Workaround()&&(t$5=goog.workaroundSafari10EvalBug(t$5)),u=goog.loadModuleFromSource_.call(void 0,u,t$5);else throw Error(`Invalid module definition`);var h=goog.moduleLoaderState_.moduleName;if(typeof h==`string`&&h)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(h,u,r!==u):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof u==`object`&&u&&Object.seal(u),goog.loadedModules_[h]={exports:u,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error(`Invalid module name "`+h+`"`)}finally{goog.moduleLoaderState_=o}},goog.loadModuleFromSource_=function(a,b){return eval(b),a},goog.normalizePath_=function(t$5){t$5=t$5.split(`/`);for(var o=0;o<t$5.length;)t$5[o]==`.`?t$5.splice(o,1):o&&t$5[o]==`..`&&t$5[o-1]&&t$5[o-1]!=`..`?t$5.splice(--o,2):o++;return t$5.join(`/`)},goog.loadFileSync_=function(t$5){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(t$5);try{var o=new goog.global.XMLHttpRequest;return o.open(`get`,t$5,!1),o.send(),o.status==0||o.status==200?o.responseText:null}catch{return null}},goog.transpile_=function(t$5,o,r){var u=goog.global.$jscomp;u||(goog.global.$jscomp=u={});var h=u.transpile;if(!h){var m=goog.basePath+goog.TRANSPILER,y=goog.loadFileSync_(m);if(y){if(function(){(0,eval)(y+`
|
|
13
13
|
//# sourceURL=`+m)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error(`The transpiler did not properly export the "transpile" method. $gwtExport: `+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,u=goog.global.$jscomp,h=u.transpile}}return h||=u.transpile=function(S,_){return goog.logToConsole_(_+` requires transpilation but no transpiler was found.`),S},h(t$5,o,r)},goog.typeOf=function(t$5){var o=typeof t$5;return o==`object`?t$5?Array.isArray(t$5)?`array`:o:`null`:o},goog.isArrayLike=function(t$5){var o=goog.typeOf(t$5);return o==`array`||o==`object`&&typeof t$5.length==`number`},goog.isDateLike=function(t$5){return goog.isObject(t$5)&&typeof t$5.getFullYear==`function`},goog.isObject=function(t$5){var o=typeof t$5;return o==`object`&&t$5!=null||o==`function`},goog.getUid=function(t$5){return Object.prototype.hasOwnProperty.call(t$5,goog.UID_PROPERTY_)&&t$5[goog.UID_PROPERTY_]||(t$5[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(t$5){return!!t$5[goog.UID_PROPERTY_]},goog.removeUid=function(t$5){t$5!==null&&`removeAttribute`in t$5&&t$5.removeAttribute(goog.UID_PROPERTY_);try{delete t$5[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_=`closure_uid_`+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(t$5){var o=goog.typeOf(t$5);if(o==`object`||o==`array`){if(typeof t$5.clone==`function`)return t$5.clone();for(var r in o=o==`array`?[]:{},t$5)o[r]=goog.cloneObject(t$5[r]);return o}return t$5},goog.bindNative_=function(t$5,o,r){return t$5.call.apply(t$5.bind,arguments)},goog.bindJs_=function(t$5,o,r){if(!t$5)throw Error();if(2<arguments.length){var u=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(h,u),t$5.apply(o,h)}}return function(){return t$5.apply(o,arguments)}},goog.bind=function(t$5,o,r){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf(`native code`)!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(t$5,o){var r=Array.prototype.slice.call(arguments,1);return function(){var u=r.slice();return u.push.apply(u,arguments),t$5.apply(this,u)}},goog.mixin=function(t$5,o){for(var r in o)t$5[r]=o[r]},goog.now=function(){return Date.now()},goog.globalEval=function(t$5){(0,eval)(t$5)},goog.getCssName=function(t$5,o){if(String(t$5).charAt(0)==`.`)throw Error(`className passed in goog.getCssName must not start with ".". You passed: `+t$5);var r=function(h){return goog.cssNameMapping_[h]||h},u=function(h){h=h.split(`-`);for(var m=[],y=0;y<h.length;y++)m.push(r(h[y]));return m.join(`-`)};return u=goog.cssNameMapping_?goog.cssNameMappingStyle_==`BY_WHOLE`?r:u:function(h){return h},t$5=o?t$5+`-`+u(o):u(t$5),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(t$5):t$5},goog.setCssNameMapping=function(t$5,o){goog.cssNameMapping_=t$5,goog.cssNameMappingStyle_=o},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(t$5,o,r){return r&&r.html&&(t$5=t$5.replace(/</g,`<`)),r&&r.unescapeHtmlEntities&&(t$5=t$5.replace(/</g,`<`).replace(/>/g,`>`).replace(/'/g,`'`).replace(/"/g,`"`).replace(/&/g,`&`)),o&&(t$5=t$5.replace(/\{\$([^}]+)}/g,function(u,h){return o!=null&&h in o?o[h]:u})),t$5},goog.getMsgWithFallback=function(t$5,o){return t$5},goog.exportSymbol=function(t$5,o,r){goog.exportPath_(t$5,o,!0,r)},goog.exportProperty=function(t$5,o,r){t$5[o]=r},goog.inherits=function(t$5,o){function r(){}r.prototype=o.prototype,t$5.superClass_=o.prototype,t$5.prototype=new r,t$5.prototype.constructor=t$5,t$5.base=function(u,h,m){for(var y=Array(arguments.length-2),S=2;S<arguments.length;S++)y[S-2]=arguments[S];return o.prototype[h].apply(u,y)}},goog.scope=function(t$5){if(goog.isInModuleLoader_())throw Error(`goog.scope is not supported within a module.`);t$5.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(t$5,o){var r=o.constructor,u=o.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error(`cannot instantiate an interface (no constructor defined).`)}),r=goog.defineClass.createSealingConstructor_(r,t$5),t$5&&goog.inherits(r,t$5),delete o.constructor,delete o.statics,goog.defineClass.applyProperties_(r.prototype,o),u!=null&&(u instanceof Function?u(r):goog.defineClass.applyProperties_(r,u)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(t$5,o){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var r=t$5.apply(this,arguments)||this;return r[goog.UID_PROPERTY_]=r[goog.UID_PROPERTY_],r}:t$5},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_=`constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf`.split(` `),goog.defineClass.applyProperties_=function(t$5,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t$5[r]=o[r]);for(var u=0;u<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;u++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[u],Object.prototype.hasOwnProperty.call(o,r)&&(t$5[r]=o[r])},!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var t$5=goog.global.document;return t$5!=null&&`write`in t$5},goog.isDocumentLoading_=function(){var t$5=goog.global.document;return t$5.attachEvent?t$5.readyState!=`complete`:t$5.readyState==`loading`},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH!=null&&typeof goog.global.CLOSURE_BASE_PATH==`string`)goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var t$5=goog.global.document,o=t$5.currentScript;for(t$5=o?[o]:t$5.getElementsByTagName(`SCRIPT`),o=t$5.length-1;0<=o;--o){var r=t$5[o].src,u=r.lastIndexOf(`?`);if(u=u==-1?r.length:u,r.substr(u-7,7)==`base.js`){goog.basePath=r.substr(0,u-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t$5,o){e?d[t$5]=!0:o()?(c$1=t$5,d[t$5]=!1):e=d[t$5]=!0}function b(g$2){try{return!!eval(g$2)}catch{return!1}}var c$1=`es3`,d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:``;return a(`es5`,function(){return b(`[1,].length==1`)}),a(`es6`,function(){return f.match(/Edge\/(\d+)(\.\d)*/i)?!1:b(`(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()`)}),a(`es7`,function(){return b(`2 ** 2 == 4`)}),a(`es8`,function(){return b(`async () => 1, true`)}),a(`es9`,function(){return b(`({...rest} = {}), true`)}),a(`es_next`,function(){return!1}),{target:c$1,map:d}},goog.Transpiler.prototype.needsTranspile=function(t$5,o){if(goog.TRANSPILE==`always`)return!0;if(goog.TRANSPILE==`never`)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(t$5 in this.requiresTranspilation_)return this.requiresTranspilation_[t$5]?!0:!(!goog.inHtmlDocument_()||o!=`es6`||`noModule`in goog.global.document.createElement(`script`));throw Error(`Unknown language mode: `+t$5)},goog.Transpiler.prototype.transpile=function(t$5,o){return goog.transpile_(t$5,o,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t$5){return t$5.replace(/<\/(SCRIPT)/gi,`\\x3c/$1`)},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t$5,o){function r(){u&&(goog.global.setTimeout(u,0),u=null)}var u=o;if(t$5.length){o=[];for(var h=0;h<t$5.length;h++){var m=this.getPathFromDeps_(t$5[h]);if(!m)throw Error(`Unregonized namespace: `+t$5[h]);o.push(this.dependencies_[m])}m=goog.require;var y=0;for(h=0;h<t$5.length;h++)m(t$5[h]),o[h].onLoad(function(){++y==t$5.length&&r()})}else r()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+`deps.js`),`deps.js`,[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(t$5,o){(t$5=this.getPathFromDeps_(t$5))&&(o||this.areDepsLoaded_(this.dependencies_[t$5].requires))&&(o=this.deferredCallbacks_[t$5])&&(delete this.deferredCallbacks_[t$5],o())},goog.DebugLoader_.prototype.setDependencyFactory=function(t$5){this.factory_=t$5},goog.DebugLoader_.prototype.load_=function(t$5){if(this.getPathFromDeps_(t$5)){var o=this,r=[],u=function(h){var m=o.getPathFromDeps_(h);if(!m)throw Error(`Bad dependency path or symbol: `+h);if(!o.written_[m]){for(o.written_[m]=!0,h=o.dependencies_[m],m=0;m<h.requires.length;m++)goog.isProvided_(h.requires[m])||u(h.requires[m]);r.push(h)}};u(t$5),t$5=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(r),this.paused_||t$5||this.loadDeps_()}else throw t$5=`goog.require could not find: `+t$5,goog.logToConsole_(t$5),Error(t$5)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var t$5=this,o=this.paused_;this.depsToLoad_.length&&!o;)(function(){var r=!1,u=t$5.depsToLoad_.shift(),h=!1;t$5.loading_(u);var m={pause:function(){if(r)throw Error(`Cannot call pause after the call to load.`);o=!0},resume:function(){r?t$5.resume_():o=!1},loaded:function(){if(h)throw Error(`Double call to loaded.`);h=!0,t$5.loaded_(u)},pending:function(){for(var y=[],S=0;S<t$5.loadingDeps_.length;S++)y.push(t$5.loadingDeps_[S]);return y},setModuleState:function(y){goog.moduleLoaderState_={type:y,moduleName:``,declareLegacyNamespace:!1}},registerEs6ModuleExports:function(y,S,_){_&&(goog.loadedModules_[_]={exports:S,type:goog.ModuleType.ES6,moduleId:_||``})},registerGoogModuleExports:function(y,S){goog.loadedModules_[y]={exports:S,type:goog.ModuleType.GOOG,moduleId:y}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(y){if(r)throw Error(`Cannot register with defer after the call to load.`);t$5.defer_(u,y)},areDepsLoaded:function(){return t$5.areDepsLoaded_(u.requires)}};try{u.load(m)}finally{r=!0}})();o&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(t$5){this.loadingDeps_.push(t$5)},goog.DebugLoader_.prototype.loaded_=function(t$5){for(var o=0;o<this.loadingDeps_.length;o++)if(this.loadingDeps_[o]==t$5){this.loadingDeps_.splice(o,1);break}for(o=0;o<this.deferredQueue_.length;o++)if(this.deferredQueue_[o]==t$5.path){this.deferredQueue_.splice(o,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);t$5.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(t$5){for(var o=0;o<t$5.length;o++){var r=this.getPathFromDeps_(t$5[o]);if(!r||!(r in this.deferredCallbacks_||goog.isProvided_(t$5[o])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(t$5){return t$5 in this.idToPath_?this.idToPath_[t$5]:t$5 in this.dependencies_?t$5:null},goog.DebugLoader_.prototype.defer_=function(t$5,o){this.deferredCallbacks_[t$5.path]=o,this.deferredQueue_.push(t$5.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(t$5,o,r){},goog.LoadController.prototype.setModuleState=function(t$5){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(t$5){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(t$5,o,r,u,h){this.path=t$5,this.relativePath=o,this.provides=r,this.requires=u,this.loadFlags=h,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var t$5=this.path,o=t$5.indexOf(`://`);return 0<=o&&(t$5=t$5.substring(o+3),o=t$5.indexOf(`/`),0<=o&&(t$5=t$5.substring(o+1))),t$5},goog.Dependency.prototype.onLoad=function(t$5){this.loaded_?t$5():this.loadCallbacks_.push(t$5)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var t$5=this.loadCallbacks_;this.loadCallbacks_=[];for(var o=0;o<t$5.length;o++)t$5[o]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(t$5){var o=Math.random().toString(32);return goog.Dependency.callbackMap_[o]=t$5,o},goog.Dependency.unregisterCallback_=function(t$5){delete goog.Dependency.callbackMap_[t$5]},goog.Dependency.callback_=function(t$5,o){if(t$5 in goog.Dependency.callbackMap_){for(var r=goog.Dependency.callbackMap_[t$5],u=[],h=1;h<arguments.length;h++)u.push(arguments[h]);r.apply(void 0,u)}else throw Error(`Callback key `+t$5+` does not exist (was base.js loaded more than once?).`)},goog.Dependency.prototype.load=function(t$5){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?t$5.loaded():t$5.pause();else if(goog.inHtmlDocument_()){var o=goog.global.document;if(o.readyState==`complete`&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){t$5.loaded();return}throw Error(`Cannot write "`+this.path+`" after document load`)}var r=goog.getScriptNonce();if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var u=function(S){S.readyState&&S.readyState!=`complete`?S.onload=u:(goog.Dependency.unregisterCallback_(h),t$5.loaded())},h=goog.Dependency.registerCallback_(u);r=r?` nonce="`+r+`"`:``;var m=`<script src="`+this.path+`"`+r+(goog.Dependency.defer_?` defer`:``)+` id="script-`+h+`"><\/script>`;m+=`<script`+r+`>`,m=goog.Dependency.defer_?m+(`document.getElementById('script-`+h+`').onload = function() {
|
|
@@ -40,5 +40,5 @@ ieee754.read=function(t$5,o,r,u,h){var m,y,S=h*8-u-1,_=(1<<S)-1,C=_>>1,O=-7,I=r?
|
|
|
40
40
|
international: ${this.international},
|
|
41
41
|
e164: ${this.e164},
|
|
42
42
|
timezone: ${this.timezone},
|
|
43
|
-
}`}serialize(){let o=buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country})).toString(`base64`);return buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country,hash:o})).toString(`base64`)}static deserialize(o){let r;try{r=buffer.Buffer.from(o,`base64`).toString(`utf-8`)}catch{throw Error(`Not a valid serialized phone object`)}let u;try{u=JSON.parse(r)}catch{throw Error(`Not a valid serialized phone object`)}if(!u.phone||!u.country||!u.hash||buffer.Buffer.from(JSON.stringify({phone:u.phone,country:u.country})).toString(`base64`)!==u.hash)throw Error(`Not a valid serialized phone object`);return new Te$1(u.phone,u.country===`XX`?void 0:u.country)}};z=new WeakMap,H=new WeakMap,Z=new WeakMap,V=new WeakMap,se=new WeakMap,le=new WeakMap,W=new WeakSet,Le=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).filter(u=>o.substring(0,u.prefix.length)===u.prefix).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:ne(this,W,Fe).call(this,o)},Fe=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:`XX`},be=function(o,r){if(o.prefix.length===r.prefix.length){let u=Number.parseInt(o.prefix),h=Number.parseInt(r.prefix);return u===h?o.iso.localeCompare(r.iso):u>h?1:-1}return o.prefix.length>r.prefix.length?1:-1},we=function(o){if(!o)return`INVALID`;let r=M(this,Z).getNumberType(o),u=Object.values(libphonenumberExports.PhoneNumberType),h=Object.keys(libphonenumberExports.PhoneNumberType),m=u.indexOf(r);return h[m]||`INVALID`},ve=function(){let o=this.raw.substring(1,4);return areaCodeMap[o]&&typeof areaCodeMap[o]==`string`?areaCodeMap[o]:`XX`};let Phone=Te;const version$1=`1.20250512.0`,messages={"phone.base":`{{#label}} must be a phone number`,"phone.invalid":`{{#label}} must be a valid phone number for {{#country}}`,"phone.fixedLine":`{{#label}} must be a fixed line number for {{#country}}`,"phone.mobile":`{{#label}} must be a mobile number for {{#country}}`,"phone.strictFixedLine":`{{#label}} is not a fixed line number for {{#country}}`,"phone.strictMobile":`{{#label}} is not a mobile number for {{#country}}`,"phone.fixedLineOrMobile":`{{#label}} must be a fixed line or mobile number for {{#country}}`,"phone.tollFree":`{{#label}} must be a toll-free number for {{#country}}`,"phone.premiumRate":`{{#label}} must be a premium rate number for {{#country}}`,"phone.sharedCost":`{{#label}} must be a shared cost number for {{#country}}`,"phone.voip":`{{#label}} must be a VoIP number for {{#country}}`,"phone.personalNumber":`{{#label}} must be a personal number for {{#country}}`,"phone.pager":`{{#label}} must be a pager number for {{#country}}`,"phone.uan":`{{#label}} must be a UAN number for {{#country}}`,"phone.voicemail":`{{#label}} must be a voicemail number for {{#country}}`,"phone.unknown":`{{#label}} must be an unknown type number for {{#country}}`,"phone.types":`{{#label}} must be one of the specified phone types for {{#country}}`},coerceCountry=value=>{if(typeof value!=`string`)return null;if(isos.has(value.toUpperCase()))return value.toUpperCase();let match$2=null;return countries.forEach((name$1,iso)=>{name$1.toLowerCase()===value.toLowerCase()&&(match$2=iso)}),match$2},getPhoneObject=(value,country)=>{let countryCoerced=coerceCountry(country);try{return new Phone(value,countryCoerced||void 0)}catch{return}},evaluate=(value,operator,args$1)=>{switch(operator){case`fixedLine`:return[`FIXED_LINE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`mobile`:return[`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`fixedLineOrMobile`:return[`FIXED_LINE`,`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`strictFixedLine`:return value.type===`FIXED_LINE`;case`strictMobile`:return value.type===`MOBILE`;case`tollFree`:return value.type===`TOLL_FREE`;case`premiumRate`:return value.type===`PREMIUM_RATE`;case`sharedCost`:return value.type===`SHARED_COST`;case`voip`:return value.type===`VOIP`;case`personalNumber`:return value.type===`PERSONAL_NUMBER`;case`pager`:return value.type===`PAGER`;case`uan`:return value.type===`UAN`;case`voicemail`:return value.type===`VOICEMAIL`;case`unknown`:return value.type===`UNKNOWN`;case`types`:return args$1[0].includes(value.type);default:return!1}},phone=function(joi){let coerce$3=(value,helpers)=>typeof value==`string`||typeof value==`number`?(value=value.toString().trim(),{value}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]},getCountryName=iso=>{if(`$i18n`in joi){let root=joi;if(!countries.has(iso))return iso;let returnable=root.$i18n(`country.${iso}`);return returnable||countries.get(iso)||iso}return countries.get(iso)||iso};return{type:`phone`,base:joi.any(),validate(value,{error,schema,prefs,state}){let arg=schema.$_getFlag(`country`),country=joi.isRef(arg)?arg.resolve(value,state,prefs):arg,pObj=getPhoneObject(value,country);if(pObj){if(!pObj.valid)return country?{value,errors:[error(`phone.invalid`,{value:String(value),country:getCountryName(country)})]}:{value,errors:[error(`phone.base`,{value:String(value)})]}}else return{value,errors:[error(`phone.base`,{value:String(value)})]};let as=schema.$_getFlag(`as`)||`e164`,formattedValue;switch(as){case`international`:formattedValue=pObj.international;break;case`national`:formattedValue=pObj.national;break;case`raw`:formattedValue=pObj.raw;break;case`timezone`:formattedValue=pObj.timezone;break;case`type`:formattedValue=pObj.type;break;case`country`:formattedValue=pObj.country;break;default:formattedValue=pObj.e164}return{value:formattedValue}},flags:{country:{default:null,setter:`country`},as:{default:`e164`,setter:`format`}},args(...args$1){let[schema,country]=args$1;return schema.country(country)},coerce:{from:[`string`,`number`],method:coerce$3},rules:{check:{method:!1,validate(value,helpers,args$1,{name:name$1,operator}){let{state,prefs}=helpers,countryVal=helpers.schema.$_getFlag(`country`);joi.isRef(countryVal)&&(countryVal=countryVal.resolve(value,state,prefs));let pObj=getPhoneObject(value,countryVal);if(pObj){if(!pObj.valid)return countryVal?helpers.error(`phone.invalid`,{value:String(value),country:getCountryName(countryVal)}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]}}else return helpers.error(`phone.base`,{value:String(value)});let valid$2=evaluate(pObj,operator,Object.values(args$1||{}));return valid$2?value:helpers.error(`phone.`+name$1,{value:value.toString(),country:getCountryName(countryVal),...args$1})}},country:{method(country){return this.$_setFlag(`country`,country)},args:[{name:`country`,ref:!0,assert:value=>typeof value==`string`||joi.isRef(value),message:`must be a string or a reference`}]},format:{method(as){return this.$_setFlag(`as`,as)},args:[{name:`as`,assert:value=>[`e164`,`international`,`national`,`raw`,`timezone`,`type`,`country`].includes(value),message:`must be one of e164, international, national, raw, timezone, type, or country`}]},fixedLine:{method(){return this.$_addRule({name:`fixedLine`,method:`check`,operator:`fixedLine`})}},mobile:{method(){return this.$_addRule({name:`mobile`,method:`check`,operator:`mobile`})}},strictFixedLine:{method(){return this.$_addRule({name:`strictFixedLine`,method:`check`,operator:`strictFixedLine`})}},strictMobile:{method(){return this.$_addRule({name:`strictMobile`,method:`check`,operator:`strictMobile`})}},fixedLineOrMobile:{method(){return this.$_addRule({name:`fixedLineOrMobile`,method:`check`,operator:`fixedLineOrMobile`})}},tollFree:{method(){return this.$_addRule({name:`tollFree`,method:`check`,operator:`tollFree`})}},premiumRate:{method(){return this.$_addRule({name:`premiumRate`,method:`check`,operator:`premiumRate`})}},sharedCost:{method(){return this.$_addRule({name:`sharedCost`,method:`check`,operator:`sharedCost`})}},voip:{method(){return this.$_addRule({name:`voip`,method:`check`,operator:`voip`})}},personalNumber:{method(){return this.$_addRule({name:`personalNumber`,method:`check`,operator:`personalNumber`})}},pager:{method(){return this.$_addRule({name:`pager`,method:`check`,operator:`pager`})}},uan:{method(){return this.$_addRule({name:`uan`,method:`check`,operator:`uan`})}},voicemail:{method(){return this.$_addRule({name:`voicemail`,method:`check`,operator:`voicemail`})}},unknown:{method(){return this.$_addRule({name:`unknown`,method:`check`,operator:`unknown`})}},types:{method(...types$1){return this.$_addRule({name:`types`,method:`check`,operator:`types`,args:{types:types$1}})}}},cast:{string:{from:value=>typeof value==`string`||typeof value==`number`,to:value=>value},number:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?Number(pObj.raw):-1}},object:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?pObj.toObject():{}}}},messages}};var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME=`[big.js] `,INVALID$3=NAME+`Invalid `,INVALID_DP=INVALID$3+`decimal places`,INVALID_RM=INVALID$3+`rounding mode`,DIV_BY_ZERO=NAME+`Division by zero`,P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function Big$1(n$2){var x$1=this;if(!(x$1 instanceof Big$1))return n$2===UNDEFINED&&arguments.length===0?_Big_():new Big$1(n$2);if(n$2 instanceof Big$1)x$1.s=n$2.s,x$1.e=n$2.e,x$1.c=n$2.c.slice();else{if(typeof n$2!=`string`){if(Big$1.strict===!0&&typeof n$2!=`bigint`)throw TypeError(INVALID$3+`value`);n$2=n$2===0&&1/n$2<0?`-0`:String(n$2)}parse$8(x$1,n$2)}x$1.constructor=Big$1}return Big$1.prototype=P,Big$1.DP=DP,Big$1.RM=RM,Big$1.NE=NE,Big$1.PE=PE,Big$1.strict=STRICT,Big$1.roundDown=0,Big$1.roundHalfUp=1,Big$1.roundHalfEven=2,Big$1.roundUp=3,Big$1}function parse$8(x$1,n$2){var e,i$4,nl;if(!NUMERIC.test(n$2))throw Error(INVALID$3+`number`);for(x$1.s=n$2.charAt(0)==`-`?(n$2=n$2.slice(1),-1):1,(e=n$2.indexOf(`.`))>-1&&(n$2=n$2.replace(`.`,``)),(i$4=n$2.search(/e/i))>0?(e<0&&(e=i$4),e+=+n$2.slice(i$4+1),n$2=n$2.substring(0,i$4)):e<0&&(e=n$2.length),nl=n$2.length,i$4=0;i$4<nl&&n$2.charAt(i$4)==`0`;)++i$4;if(i$4==nl)x$1.c=[x$1.e=0];else{for(;nl>0&&n$2.charAt(--nl)==`0`;);for(x$1.e=e-i$4-1,x$1.c=[],e=0;i$4<=nl;)x$1.c[e++]=+n$2.charAt(i$4++)}return x$1}function round(x$1,sd,rm,more){var xc=x$1.c;if(rm===UNDEFINED&&(rm=x$1.constructor.RM),rm!==0&&rm!==1&&rm!==2&&rm!==3)throw Error(INVALID_RM);if(sd<1)more=rm===3&&(more||!!xc[0])||sd===0&&(rm===1&&xc[0]>=5||rm===2&&(xc[0]>5||xc[0]===5&&(more||xc[1]!==UNDEFINED))),xc.length=1,more?(x$1.e=x$1.e-sd+1,xc[0]=1):xc[0]=x$1.e=0;else if(sd<xc.length){if(more=rm===1&&xc[sd]>=5||rm===2&&(xc[sd]>5||xc[sd]===5&&(more||xc[sd+1]!==UNDEFINED||xc[sd-1]&1))||rm===3&&(more||!!xc[0]),xc.length=sd,more){for(;++xc[--sd]>9;)if(xc[sd]=0,sd===0){++x$1.e,xc.unshift(1);break}}for(sd=xc.length;!xc[--sd];)xc.pop()}return x$1}function stringify(x$1,doExponential,isNonzero){var e=x$1.e,s$2=x$1.c.join(``),n$2=s$2.length;if(doExponential)s$2=s$2.charAt(0)+(n$2>1?`.`+s$2.slice(1):``)+(e<0?`e`:`e+`)+e;else if(e<0){for(;++e;)s$2=`0`+s$2;s$2=`0.`+s$2}else if(e>0)if(++e>n$2)for(e-=n$2;e--;)s$2+=`0`;else e<n$2&&(s$2=s$2.slice(0,e)+`.`+s$2.slice(e));else n$2>1&&(s$2=s$2.charAt(0)+`.`+s$2.slice(1));return x$1.s<0&&isNonzero?`-`+s$2:s$2}P.abs=function(){var x$1=new this.constructor(this);return x$1.s=1,x$1},P.cmp=function(y){var isneg,x$1=this,xc=x$1.c,yc=(y=new x$1.constructor(y)).c,i$4=x$1.s,j$1=y.s,k=x$1.e,l$2=y.e;if(!xc[0]||!yc[0])return xc[0]?i$4:yc[0]?-j$1:0;if(i$4!=j$1)return i$4;if(isneg=i$4<0,k!=l$2)return k>l$2^isneg?1:-1;for(j$1=(k=xc.length)<(l$2=yc.length)?k:l$2,i$4=-1;++i$4<j$1;)if(xc[i$4]!=yc[i$4])return xc[i$4]>yc[i$4]^isneg?1:-1;return k==l$2?0:k>l$2^isneg?1:-1},P.div=function(y){var x$1=this,Big$1=x$1.constructor,a=x$1.c,b=(y=new Big$1(y)).c,k=x$1.s==y.s?1:-1,dp=Big$1.DP;if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);if(!b[0])throw Error(DIV_BY_ZERO);if(!a[0])return y.s=k,y.c=[y.e=0],y;var bl,bt,n$2,cmp$3,ri,bz=b.slice(),ai=bl=b.length,al=a.length,r=a.slice(0,bl),rl=r.length,q=y,qc=q.c=[],qi=0,p=dp+(q.e=x$1.e-y.e)+1;for(q.s=k,k=p<0?0:p,bz.unshift(0);rl++<bl;)r.push(0);do{for(n$2=0;n$2<10;n$2++){if(bl!=(rl=r.length))cmp$3=bl>rl?1:-1;else for(ri=-1,cmp$3=0;++ri<bl;)if(b[ri]!=r[ri]){cmp$3=b[ri]>r[ri]?1:-1;break}if(cmp$3<0){for(bt=rl==bl?b:bz;rl;){if(r[--rl]<bt[rl]){for(ri=rl;ri&&!r[--ri];)r[ri]=9;--r[ri],r[rl]+=10}r[rl]-=bt[rl]}for(;!r[0];)r.shift()}else break}qc[qi++]=cmp$3?n$2:++n$2,r[0]&&cmp$3?r[rl]=a[ai]||0:r=[a[ai]]}while((ai++<al||r[0]!==UNDEFINED)&&k--);return!qc[0]&&qi!=1&&(qc.shift(),q.e--,p--),qi>p&&round(q,p,Big$1.RM,r[0]!==UNDEFINED),q},P.eq=function(y){return this.cmp(y)===0},P.gt=function(y){return this.cmp(y)>0},P.gte=function(y){return this.cmp(y)>-1},P.lt=function(y){return this.cmp(y)<0},P.lte=function(y){return this.cmp(y)<1},P.minus=P.sub=function(y){var i$4,j$1,t$5,xlty,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(a!=b)return y.s=-b,x$1.plus(y);var xc=x$1.c.slice(),xe=x$1.e,yc=y.c,ye=y.e;if(!xc[0]||!yc[0])return yc[0]?y.s=-b:xc[0]?y=new Big$1(x$1):y.s=1,y;if(a=xe-ye){for((xlty=a<0)?(a=-a,t$5=xc):(ye=xe,t$5=yc),t$5.reverse(),b=a;b--;)t$5.push(0);t$5.reverse()}else for(j$1=((xlty=xc.length<yc.length)?xc:yc).length,a=b=0;b<j$1;b++)if(xc[b]!=yc[b]){xlty=xc[b]<yc[b];break}if(xlty&&(t$5=xc,xc=yc,yc=t$5,y.s=-y.s),(b=(j$1=yc.length)-(i$4=xc.length))>0)for(;b--;)xc[i$4++]=0;for(b=i$4;j$1>a;){if(xc[--j$1]<yc[j$1]){for(i$4=j$1;i$4&&!xc[--i$4];)xc[i$4]=9;--xc[i$4],xc[j$1]+=10}xc[j$1]-=yc[j$1]}for(;xc[--b]===0;)xc.pop();for(;xc[0]===0;)xc.shift(),--ye;return xc[0]||(y.s=1,xc=[ye=0]),y.c=xc,y.e=ye,y},P.mod=function(y){var ygtx,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(!y.c[0])throw Error(DIV_BY_ZERO);return x$1.s=y.s=1,ygtx=y.cmp(x$1)==1,x$1.s=a,y.s=b,ygtx?new Big$1(x$1):(a=Big$1.DP,b=Big$1.RM,Big$1.DP=Big$1.RM=0,x$1=x$1.div(y),Big$1.DP=a,Big$1.RM=b,this.minus(x$1.times(y)))},P.neg=function(){var x$1=new this.constructor(this);return x$1.s=-x$1.s,x$1},P.plus=P.add=function(y){var e,k,t$5,x$1=this,Big$1=x$1.constructor;if(y=new Big$1(y),x$1.s!=y.s)return y.s=-y.s,x$1.minus(y);var xe=x$1.e,xc=x$1.c,ye=y.e,yc=y.c;if(!xc[0]||!yc[0])return yc[0]||(xc[0]?y=new Big$1(x$1):y.s=x$1.s),y;if(xc=xc.slice(),e=xe-ye){for(e>0?(ye=xe,t$5=yc):(e=-e,t$5=xc),t$5.reverse();e--;)t$5.push(0);t$5.reverse()}for(xc.length-yc.length<0&&(t$5=yc,yc=xc,xc=t$5),e=yc.length,k=0;e;xc[e]%=10)k=(xc[--e]=xc[e]+yc[e]+k)/10|0;for(k&&(xc.unshift(k),++ye),e=xc.length;xc[--e]===0;)xc.pop();return y.c=xc,y.e=ye,y},P.pow=function(n$2){var x$1=this,one=new x$1.constructor(`1`),y=one,isneg=n$2<0;if(n$2!==~~n$2||n$2<-MAX_POWER||n$2>MAX_POWER)throw Error(INVALID$3+`exponent`);for(isneg&&(n$2=-n$2);n$2&1&&(y=y.times(x$1)),n$2>>=1,n$2;)x$1=x$1.times(x$1);return isneg?one.div(y):y},P.prec=function(sd,rm){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);return round(new this.constructor(this),sd,rm)},P.round=function(dp,rm){if(dp===UNDEFINED)dp=0;else if(dp!==~~dp||dp<-MAX_DP||dp>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),dp+this.e+1,rm)},P.sqrt=function(){var r,c$1,t$5,x$1=this,Big$1=x$1.constructor,s$2=x$1.s,e=x$1.e,half=new Big$1(`0.5`);if(!x$1.c[0])return new Big$1(x$1);if(s$2<0)throw Error(NAME+`No square root`);s$2=Math.sqrt(+stringify(x$1,!0,!0)),s$2===0||s$2===1/0?(c$1=x$1.c.join(``),c$1.length+e&1||(c$1+=`0`),s$2=Math.sqrt(c$1),e=((e+1)/2|0)-(e<0||e&1),r=new Big$1((s$2==1/0?`5e`:(s$2=s$2.toExponential()).slice(0,s$2.indexOf(`e`)+1))+e)):r=new Big$1(s$2+``),e=r.e+(Big$1.DP+=4);do t$5=r,r=half.times(t$5.plus(x$1.div(t$5)));while(t$5.c.slice(0,e).join(``)!==r.c.slice(0,e).join(``));return round(r,(Big$1.DP-=4)+r.e+1,Big$1.RM)},P.times=P.mul=function(y){var c$1,x$1=this,Big$1=x$1.constructor,xc=x$1.c,yc=(y=new Big$1(y)).c,a=xc.length,b=yc.length,i$4=x$1.e,j$1=y.e;if(y.s=x$1.s==y.s?1:-1,!xc[0]||!yc[0])return y.c=[y.e=0],y;for(y.e=i$4+j$1,a<b&&(c$1=xc,xc=yc,yc=c$1,j$1=a,a=b,b=j$1),c$1=Array(j$1=a+b);j$1--;)c$1[j$1]=0;for(i$4=b;i$4--;){for(b=0,j$1=a+i$4;j$1>i$4;)b=c$1[j$1]+yc[i$4]*xc[j$1-i$4-1]+b,c$1[j$1--]=b%10,b=b/10|0;c$1[j$1]=b}for(b?++y.e:c$1.shift(),i$4=c$1.length;!c$1[--i$4];)c$1.pop();return y.c=c$1,y},P.toExponential=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),++dp,rm);x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!0,!!n$2)},P.toFixed=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),dp+x$1.e+1,rm),dp=dp+x$1.e+1;x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!1,!!n$2)},P.toJSON=P.toString=function(){var x$1=this,Big$1=x$1.constructor;return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!x$1.c[0])},typeof Symbol<`u`&&(P[Symbol.for(`nodejs.util.inspect.custom`)]=P.toJSON),P.toNumber=function(){var n$2=+stringify(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(n$2.toString()))throw Error(NAME+`Imprecise conversion`);return n$2},P.toPrecision=function(sd,rm){var x$1=this,Big$1=x$1.constructor,n$2=x$1.c[0];if(sd!==UNDEFINED){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);for(x$1=round(new Big$1(x$1),sd,rm);x$1.c.length<sd;)x$1.c.push(0)}return stringify(x$1,sd<=x$1.e||x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!n$2)},P.valueOf=function(){var x$1=this,Big$1=x$1.constructor;if(Big$1.strict===!0)throw Error(NAME+`valueOf disallowed`);return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!0)};var Big=_Big_(),big_default=Big;const messages$1={"bigint.base":`"{{#label}}" must be a valid bigint`,"bigint.greater":`"{{#label}}" must be greater than {{#limit}}`,"bigint.less":`"{{#label}}" must be less than {{#limit}}`,"bigint.max":`"{{#label}}" must be less than or equal to {{#limit}}`,"bigint.min":`"{{#label}}" must be greater than or equal to {{#limit}}`,"bigint.multiple":`"{{#label}}" must be a multiple of {{#limit}}`,"bigint.negative":`"{{#label}}" must be a negative bigint`,"bigint.positive":`"{{#label}}" must be a positive bigint`},compare$13=(value,limit,operator)=>{switch(operator){case`>`:return value.gt(limit);case`<`:return value.lt(limit);case`>=`:return value.gte(limit);case`<=`:return value.lte(limit);case`multiple`:return value.mod(limit).eq(0);default:return!1}},bigint=function(joi){return{type:`bigint`,base:joi.any(),coerce:{from:[`string`,`number`],method(value,helpers){if(typeof value==`bigint`)return{value};try{let asBig=big_default(value.toString());return asBig.eq(asBig.round(0))?{value:BigInt(asBig.toString())}:{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}catch{return{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}}},messages:messages$1,validate(value,{error}){return typeof value==`bigint`?{value}:{value,errors:error(`bigint.base`,{value:String(value)})}},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let big=big_default(value.toString()),threshold=big_default(limit.toString()),valid$2=compare$13(big,threshold,operator);return valid$2?value:helpers.error(`bigint.`+name$1,{limit:limit.toString(),value:value.toString()})},args:[{name:`limit`,ref:!0,assert:value=>[`bigint`,`number`,`string`].includes(typeof value),message:`must be a bigint`}]},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},multiple:{method(limit){return this.$_addRule({name:`multiple`,method:`compare`,args:{limit},operator:`multiple`})}},negative:{method(){return this.$_addRule(`negative`)},validate(value,helpers){return value>=0n?helpers.error(`bigint.negative`,{value:value.toString()}):value}},positive:{method(){return this.$_addRule(`positive`)},validate(value,helpers){return value<=0n?helpers.error(`bigint.positive`,{value:value.toString()}):value}}},cast:{string:{from:value=>typeof value==`bigint`,to(value){return value.toString()}}}}};var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(reason){super(`Invalid DateTime: ${reason.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(reason){super(`Invalid Interval: ${reason.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(reason){super(`Invalid Duration: ${reason.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(unit){super(`Invalid unit ${unit}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super(`Zone is an abstract class`)}};const n=`numeric`,s=`short`,l=`long`,DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:`h23`},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};var Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(ts,opts){throw new ZoneIsAbstractError}formatOffset(ts,format){throw new ZoneIsAbstractError}offset(ts){throw new ZoneIsAbstractError}equals(otherZone){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}};let singleton$1=null;var SystemZone=class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){return-new Date(ts).getTimezoneOffset()}equals(otherZone){return otherZone.type===`system`}get isValid(){return!0}};const dtfCache=new Map;function makeDTF(zoneName){let dtf=dtfCache.get(zoneName);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:zoneName,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache.set(zoneName,dtf)),dtf}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(dtf,date){let formatted=dtf.format(date).replace(/\u200E/g,``),parsed=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),[,fMonth,fDay,fYear,fadOrBc,fHour,fMinute,fSecond]=parsed;return[fYear,fMonth,fDay,fadOrBc,fHour,fMinute,fSecond]}function partsOffset(dtf,date){let formatted=dtf.formatToParts(date),filled=[];for(let i$4=0;i$4<formatted.length;i$4++){let{type,value}=formatted[i$4],pos=typeToPos[type];type===`era`?filled[pos]=value:isUndefined(pos)||(filled[pos]=parseInt(value,10))}return filled}const ianaZoneCache=new Map;var IANAZone=class IANAZone extends Zone{static create(name$1){let zone=ianaZoneCache.get(name$1);return zone===void 0&&ianaZoneCache.set(name$1,zone=new IANAZone(name$1)),zone}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(s$2){return this.isValidZone(s$2)}static isValidZone(zone){if(!zone)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:zone}).format(),!0}catch{return!1}}constructor(name$1){super(),this.zoneName=name$1,this.valid=IANAZone.isValidZone(name$1)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale,this.name)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){if(!this.valid)return NaN;let date=new Date(ts);if(isNaN(date))return NaN;let dtf=makeDTF(this.name),[year,month,day,adOrBc,hour,minute,second]=dtf.formatToParts?partsOffset(dtf,date):hackyOffset(dtf,date);adOrBc===`BC`&&(year=-Math.abs(year)+1);let adjustedHour=hour===24?0:hour,asUTC=objToLocalTS({year,month,day,hour:adjustedHour,minute,second,millisecond:0}),asTS=+date,over=asTS%1e3;return asTS-=over>=0?over:1e3+over,(asUTC-asTS)/(60*1e3)}equals(otherZone){return otherZone.type===`iana`&&otherZone.name===this.name}get isValid(){return this.valid}};let intlLFCache={};function getCachedLF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlLFCache[key];return dtf||(dtf=new Intl.ListFormat(locString,opts),intlLFCache[key]=dtf),dtf}const intlDTCache=new Map;function getCachedDTF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlDTCache.get(key);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(locString,opts),intlDTCache.set(key,dtf)),dtf}const intlNumCache=new Map;function getCachedINF(locString,opts={}){let key=JSON.stringify([locString,opts]),inf=intlNumCache.get(key);return inf===void 0&&(inf=new Intl.NumberFormat(locString,opts),intlNumCache.set(key,inf)),inf}const intlRelCache=new Map;function getCachedRTF(locString,opts={}){let{base,...cacheKeyOpts}=opts,key=JSON.stringify([locString,cacheKeyOpts]),inf=intlRelCache.get(key);return inf===void 0&&(inf=new Intl.RelativeTimeFormat(locString,opts),intlRelCache.set(key,inf)),inf}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(locString){let opts=intlResolvedOptionsCache.get(locString);return opts===void 0&&(opts=new Intl.DateTimeFormat(locString).resolvedOptions(),intlResolvedOptionsCache.set(locString,opts)),opts}const weekInfoCache=new Map;function getCachedWeekInfo(locString){let data=weekInfoCache.get(locString);if(!data){let locale=new Intl.Locale(locString);data=`getWeekInfo`in locale?locale.getWeekInfo():locale.weekInfo,`minimalDays`in data||(data={...fallbackWeekSettings,...data}),weekInfoCache.set(locString,data)}return data}function parseLocaleString(localeStr){let xIndex=localeStr.indexOf(`-x-`);xIndex!==-1&&(localeStr=localeStr.substring(0,xIndex));let uIndex=localeStr.indexOf(`-u-`);if(uIndex===-1)return[localeStr];{let options,selectedStr;try{options=getCachedDTF(localeStr).resolvedOptions(),selectedStr=localeStr}catch{let smaller=localeStr.substring(0,uIndex);options=getCachedDTF(smaller).resolvedOptions(),selectedStr=smaller}let{numberingSystem,calendar}=options;return[selectedStr,numberingSystem,calendar]}}function intlConfigString(localeStr,numberingSystem,outputCalendar){return outputCalendar||numberingSystem?(localeStr.includes(`-u-`)||(localeStr+=`-u`),outputCalendar&&(localeStr+=`-ca-${outputCalendar}`),numberingSystem&&(localeStr+=`-nu-${numberingSystem}`),localeStr):localeStr}function mapMonths(f){let ms=[];for(let i$4=1;i$4<=12;i$4++){let dt=DateTime.utc(2009,i$4,1);ms.push(f(dt))}return ms}function mapWeekdays(f){let ms=[];for(let i$4=1;i$4<=7;i$4++){let dt=DateTime.utc(2016,11,13+i$4);ms.push(f(dt))}return ms}function listStuff(loc,length,englishFn,intlFn){let mode=loc.listingMode();return mode===`error`?null:mode===`en`?englishFn(length):intlFn(length)}function supportsFastNumbers(loc){return loc.numberingSystem&&loc.numberingSystem!==`latn`?!1:loc.numberingSystem===`latn`||!loc.locale||loc.locale.startsWith(`en`)||getCachedIntResolvedOptions(loc.locale).numberingSystem===`latn`}var PolyNumberFormatter=class{constructor(intl,forceSimple,opts){this.padTo=opts.padTo||0,this.floor=opts.floor||!1;let{padTo,floor:floor$1,...otherOpts}=opts;if(!forceSimple||Object.keys(otherOpts).length>0){let intlOpts={useGrouping:!1,...opts};opts.padTo>0&&(intlOpts.minimumIntegerDigits=opts.padTo),this.inf=getCachedINF(intl,intlOpts)}}format(i$4){if(this.inf){let fixed=this.floor?Math.floor(i$4):i$4;return this.inf.format(fixed)}else{let fixed=this.floor?Math.floor(i$4):roundTo(i$4,3);return padStart(fixed,this.padTo)}}},PolyDateFormatter=class{constructor(dt,intl,opts){this.opts=opts,this.originalZone=void 0;let z$1;if(this.opts.timeZone)this.dt=dt;else if(dt.zone.type===`fixed`){let gmtOffset=-1*(dt.offset/60),offsetZ=gmtOffset>=0?`Etc/GMT+${gmtOffset}`:`Etc/GMT${gmtOffset}`;dt.offset!==0&&IANAZone.create(offsetZ).valid?(z$1=offsetZ,this.dt=dt):(z$1=`UTC`,this.dt=dt.offset===0?dt:dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone)}else dt.zone.type===`system`?this.dt=dt:dt.zone.type===`iana`?(this.dt=dt,z$1=dt.zone.name):(z$1=`UTC`,this.dt=dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone);let intlOpts={...this.opts};intlOpts.timeZone=intlOpts.timeZone||z$1,this.dtf=getCachedDTF(intl,intlOpts)}format(){return this.originalZone?this.formatToParts().map(({value})=>value).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let parts=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?parts.map(part=>{if(part.type===`timeZoneName`){let offsetName=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...part,value:offsetName}}else return part}):parts}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(intl,isEnglish,opts){this.opts={style:`long`,...opts},!isEnglish&&hasRelative()&&(this.rtf=getCachedRTF(intl,opts))}format(count,unit){return this.rtf?this.rtf.format(count,unit):formatRelativeTime(unit,count,this.opts.numeric,this.opts.style!==`long`)}formatToParts(count,unit){return this.rtf?this.rtf.formatToParts(count,unit):[]}};const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale=class Locale{static fromOpts(opts){return Locale.create(opts.locale,opts.numberingSystem,opts.outputCalendar,opts.weekSettings,opts.defaultToEN)}static create(locale,numberingSystem,outputCalendar,weekSettings,defaultToEN=!1){let specifiedLocale=locale||Settings.defaultLocale,localeR=specifiedLocale||(defaultToEN?`en-US`:systemLocale()),numberingSystemR=numberingSystem||Settings.defaultNumberingSystem,outputCalendarR=outputCalendar||Settings.defaultOutputCalendar,weekSettingsR=validateWeekSettings(weekSettings)||Settings.defaultWeekSettings;return new Locale(localeR,numberingSystemR,outputCalendarR,weekSettingsR,specifiedLocale)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale,numberingSystem,outputCalendar,weekSettings}={}){return Locale.create(locale,numberingSystem,outputCalendar,weekSettings)}constructor(locale,numbering,outputCalendar,weekSettings,specifiedLocale){let[parsedLocale,parsedNumberingSystem,parsedOutputCalendar]=parseLocaleString(locale);this.locale=parsedLocale,this.numberingSystem=numbering||parsedNumberingSystem||null,this.outputCalendar=outputCalendar||parsedOutputCalendar||null,this.weekSettings=weekSettings,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=specifiedLocale,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers(this),this.fastNumbersCached}listingMode(){let isActuallyEn=this.isEnglish(),hasNoWeirdness=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return isActuallyEn&&hasNoWeirdness?`en`:`intl`}clone(alts){return!alts||Object.getOwnPropertyNames(alts).length===0?this:Locale.create(alts.locale||this.specifiedLocale,alts.numberingSystem||this.numberingSystem,alts.outputCalendar||this.outputCalendar,validateWeekSettings(alts.weekSettings)||this.weekSettings,alts.defaultToEN||!1)}redefaultToEN(alts={}){return this.clone({...alts,defaultToEN:!0})}redefaultToSystem(alts={}){return this.clone({...alts,defaultToEN:!1})}months(length,format=!1){return listStuff(this,length,months,()=>{let monthSpecialCase=this.intl===`ja`||this.intl.startsWith(`ja-`);format&=!monthSpecialCase;let intl=format?{month:length,day:`numeric`}:{month:length},formatStr=format?`format`:`standalone`;if(!this.monthsCache[formatStr][length]){let mapper=monthSpecialCase?dt=>this.dtFormatter(dt,intl).format():dt=>this.extract(dt,intl,`month`);this.monthsCache[formatStr][length]=mapMonths(mapper)}return this.monthsCache[formatStr][length]})}weekdays(length,format=!1){return listStuff(this,length,weekdays,()=>{let intl=format?{weekday:length,year:`numeric`,month:`long`,day:`numeric`}:{weekday:length},formatStr=format?`format`:`standalone`;return this.weekdaysCache[formatStr][length]||(this.weekdaysCache[formatStr][length]=mapWeekdays(dt=>this.extract(dt,intl,`weekday`))),this.weekdaysCache[formatStr][length]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){let intl={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(dt=>this.extract(dt,intl,`dayperiod`))}return this.meridiemCache})}eras(length){return listStuff(this,length,eras,()=>{let intl={era:length};return this.eraCache[length]||(this.eraCache[length]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(dt=>this.extract(dt,intl,`era`))),this.eraCache[length]})}extract(dt,intlOpts,field){let df=this.dtFormatter(dt,intlOpts),results=df.formatToParts(),matching=results.find(m=>m.type.toLowerCase()===field);return matching?matching.value:null}numberFormatter(opts={}){return new PolyNumberFormatter(this.intl,opts.forceSimple||this.fastNumbers,opts)}dtFormatter(dt,intlOpts={}){return new PolyDateFormatter(dt,this.intl,intlOpts)}relFormatter(opts={}){return new PolyRelFormatter(this.intl,this.isEnglish(),opts)}listFormatter(opts={}){return getCachedLF(this.intl,opts)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(other){return this.locale===other.locale&&this.numberingSystem===other.numberingSystem&&this.outputCalendar===other.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton=null;var FixedOffsetZone=class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(offset$2){return offset$2===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(offset$2)}static parseSpecifier(s$2){if(s$2){let r=s$2.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(offset$2){super(),this.fixed=offset$2}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(ts,format){return formatOffset(this.fixed,format)}get isUniversal(){return!0}offset(){return this.fixed}equals(otherZone){return otherZone.type===`fixed`&&otherZone.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(zoneName){super(),this.zoneName=zoneName}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone(input,defaultZone$2){if(isUndefined(input)||input===null)return defaultZone$2;if(input instanceof Zone)return input;if(isString(input)){let lowered=input.toLowerCase();return lowered===`default`?defaultZone$2:lowered===`local`||lowered===`system`?SystemZone.instance:lowered===`utc`||lowered===`gmt`?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(lowered)||IANAZone.create(input)}else if(isNumber(input))return FixedOffsetZone.instance(input);else if(typeof input==`object`&&`offset`in input&&typeof input.offset==`function`)return input;else return new InvalidZone(input)}const numberingSystems={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits(str){let value=parseInt(str,10);if(isNaN(value)){value=``;for(let i$4=0;i$4<str.length;i$4++){let code$2=str.charCodeAt(i$4);if(str[i$4].search(numberingSystems.hanidec)!==-1)value+=hanidecChars.indexOf(str[i$4]);else for(let key in numberingSystemsUTF16){let[min$1,max$3]=numberingSystemsUTF16[key];code$2>=min$1&&code$2<=max$3&&(value+=code$2-min$1)}}return parseInt(value,10)}else return value}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem},append=``){let ns=numberingSystem||`latn`,appendCache=digitRegexCache.get(ns);appendCache===void 0&&(appendCache=new Map,digitRegexCache.set(ns,appendCache));let regex=appendCache.get(append);return regex===void 0&&(regex=RegExp(`${numberingSystems[ns]}${append}`),appendCache.set(append,regex)),regex}let now=()=>Date.now(),defaultZone=`system`,defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;var Settings=class{static get now(){return now}static set now(n$2){now=n$2}static set defaultZone(zone){defaultZone=zone}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(locale){defaultLocale=locale}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(numberingSystem){defaultNumberingSystem=numberingSystem}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(outputCalendar){defaultOutputCalendar=outputCalendar}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(weekSettings){defaultWeekSettings=validateWeekSettings(weekSettings)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(cutoffYear){twoDigitCutoffYear=cutoffYear%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t$5){throwOnInvalid=t$5}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(reason,explanation){this.reason=reason,this.explanation=explanation}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(unit,value){return new Invalid(`unit out of range`,`you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`)}function dayOfWeek(year,month,day){let d=new Date(Date.UTC(year,month-1,day));year<100&&year>=0&&d.setUTCFullYear(d.getUTCFullYear()-1900);let js=d.getUTCDay();return js===0?7:js}function computeOrdinal(year,month,day){return day+(isLeapYear(year)?leapLadder:nonLeapLadder)[month-1]}function uncomputeOrdinal(year,ordinal){let table=isLeapYear(year)?leapLadder:nonLeapLadder,month0=table.findIndex(i$4=>i$4<ordinal),day=ordinal-table[month0];return{month:month0+1,day}}function isoWeekdayToLocal(isoWeekday,startOfWeek){return(isoWeekday-startOfWeek+7)%7+1}function gregorianToWeek(gregObj,minDaysInFirstWeek=4,startOfWeek=1){let{year,month,day}=gregObj,ordinal=computeOrdinal(year,month,day),weekday=isoWeekdayToLocal(dayOfWeek(year,month,day),startOfWeek),weekNumber=Math.floor((ordinal-weekday+14-minDaysInFirstWeek)/7),weekYear;return weekNumber<1?(weekYear=year-1,weekNumber=weeksInWeekYear(weekYear,minDaysInFirstWeek,startOfWeek)):weekNumber>weeksInWeekYear(year,minDaysInFirstWeek,startOfWeek)?(weekYear=year+1,weekNumber=1):weekYear=year,{weekYear,weekNumber,weekday,...timeObject(gregObj)}}function weekToGregorian(weekData,minDaysInFirstWeek=4,startOfWeek=1){let{weekYear,weekNumber,weekday}=weekData,weekdayOfJan4=isoWeekdayToLocal(dayOfWeek(weekYear,1,minDaysInFirstWeek),startOfWeek),yearInDays=daysInYear(weekYear),ordinal=weekNumber*7+weekday-weekdayOfJan4-7+minDaysInFirstWeek,year;ordinal<1?(year=weekYear-1,ordinal+=daysInYear(year)):ordinal>yearInDays?(year=weekYear+1,ordinal-=daysInYear(weekYear)):year=weekYear;let{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(weekData)}}function gregorianToOrdinal(gregData){let{year,month,day}=gregData,ordinal=computeOrdinal(year,month,day);return{year,ordinal,...timeObject(gregData)}}function ordinalToGregorian(ordinalData){let{year,ordinal}=ordinalData,{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(ordinalData)}}function usesLocalWeekValues(obj,loc){let hasLocaleWeekData=!isUndefined(obj.localWeekday)||!isUndefined(obj.localWeekNumber)||!isUndefined(obj.localWeekYear);if(hasLocaleWeekData){let hasIsoWeekData=!isUndefined(obj.weekday)||!isUndefined(obj.weekNumber)||!isUndefined(obj.weekYear);if(hasIsoWeekData)throw new ConflictingSpecificationError(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined(obj.localWeekday)||(obj.weekday=obj.localWeekday),isUndefined(obj.localWeekNumber)||(obj.weekNumber=obj.localWeekNumber),isUndefined(obj.localWeekYear)||(obj.weekYear=obj.localWeekYear),delete obj.localWeekday,delete obj.localWeekNumber,delete obj.localWeekYear,{minDaysInFirstWeek:loc.getMinDaysInFirstWeek(),startOfWeek:loc.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(obj,minDaysInFirstWeek=4,startOfWeek=1){let validYear=isInteger(obj.weekYear),validWeek=integerBetween(obj.weekNumber,1,weeksInWeekYear(obj.weekYear,minDaysInFirstWeek,startOfWeek)),validWeekday=integerBetween(obj.weekday,1,7);return validYear?validWeek?validWeekday?!1:unitOutOfRange(`weekday`,obj.weekday):unitOutOfRange(`week`,obj.weekNumber):unitOutOfRange(`weekYear`,obj.weekYear)}function hasInvalidOrdinalData(obj){let validYear=isInteger(obj.year),validOrdinal=integerBetween(obj.ordinal,1,daysInYear(obj.year));return validYear?validOrdinal?!1:unitOutOfRange(`ordinal`,obj.ordinal):unitOutOfRange(`year`,obj.year)}function hasInvalidGregorianData(obj){let validYear=isInteger(obj.year),validMonth=integerBetween(obj.month,1,12),validDay=integerBetween(obj.day,1,daysInMonth(obj.year,obj.month));return validYear?validMonth?validDay?!1:unitOutOfRange(`day`,obj.day):unitOutOfRange(`month`,obj.month):unitOutOfRange(`year`,obj.year)}function hasInvalidTimeData(obj){let{hour,minute,second,millisecond}=obj,validHour=integerBetween(hour,0,23)||hour===24&&minute===0&&second===0&&millisecond===0,validMinute=integerBetween(minute,0,59),validSecond=integerBetween(second,0,59),validMillisecond=integerBetween(millisecond,0,999);return validHour?validMinute?validSecond?validMillisecond?!1:unitOutOfRange(`millisecond`,millisecond):unitOutOfRange(`second`,second):unitOutOfRange(`minute`,minute):unitOutOfRange(`hour`,hour)}function isUndefined(o){return o===void 0}function isNumber(o){return typeof o==`number`}function isInteger(o){return typeof o==`number`&&o%1==0}function isString(o){return typeof o==`string`}function isDate(o){return Object.prototype.toString.call(o)===`[object Date]`}function hasRelative(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray(thing){return Array.isArray(thing)?thing:[thing]}function bestBy(arr,by,compare$14){if(arr.length!==0)return arr.reduce((best,next)=>{let pair=[by(next),next];return best&&compare$14(best[0],pair[0])===best[0]?best:pair},null)[1]}function pick(obj,keys){return keys.reduce((a,k)=>(a[k]=obj[k],a),{})}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function validateWeekSettings(settings){if(settings==null)return null;if(typeof settings!=`object`)throw new InvalidArgumentError(`Week settings must be an object`);if(!integerBetween(settings.firstDay,1,7)||!integerBetween(settings.minimalDays,1,7)||!Array.isArray(settings.weekend)||settings.weekend.some(v=>!integerBetween(v,1,7)))throw new InvalidArgumentError(`Invalid week settings`);return{firstDay:settings.firstDay,minimalDays:settings.minimalDays,weekend:Array.from(settings.weekend)}}function integerBetween(thing,bottom,top){return isInteger(thing)&&thing>=bottom&&thing<=top}function floorMod(x$1,n$2){return x$1-n$2*Math.floor(x$1/n$2)}function padStart(input,n$2=2){let isNeg=input<0,padded;return padded=isNeg?`-`+(``+-input).padStart(n$2,`0`):(``+input).padStart(n$2,`0`),padded}function parseInteger(string){if(!(isUndefined(string)||string===null||string===``))return parseInt(string,10)}function parseFloating(string){if(!(isUndefined(string)||string===null||string===``))return parseFloat(string)}function parseMillis(fraction){if(!(isUndefined(fraction)||fraction===null||fraction===``)){let f=parseFloat(`0.`+fraction)*1e3;return Math.floor(f)}}function roundTo(number,digits,rounding=`round`){let factor=10**digits;switch(rounding){case`expand`:return number>0?Math.ceil(number*factor)/factor:Math.floor(number*factor)/factor;case`trunc`:return Math.trunc(number*factor)/factor;case`round`:return Math.round(number*factor)/factor;case`floor`:return Math.floor(number*factor)/factor;case`ceil`:return Math.ceil(number*factor)/factor;default:throw RangeError(`Value rounding ${rounding} is out of range`)}}function isLeapYear(year){return year%4==0&&(year%100!=0||year%400==0)}function daysInYear(year){return isLeapYear(year)?366:365}function daysInMonth(year,month){let modMonth=floorMod(month-1,12)+1,modYear=year+(month-modMonth)/12;return modMonth===2?isLeapYear(modYear)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][modMonth-1]}function objToLocalTS(obj){let d=Date.UTC(obj.year,obj.month-1,obj.day,obj.hour,obj.minute,obj.second,obj.millisecond);return obj.year<100&&obj.year>=0&&(d=new Date(d),d.setUTCFullYear(obj.year,obj.month-1,obj.day)),+d}function firstWeekOffset(year,minDaysInFirstWeek,startOfWeek){let fwdlw=isoWeekdayToLocal(dayOfWeek(year,1,minDaysInFirstWeek),startOfWeek);return-fwdlw+minDaysInFirstWeek-1}function weeksInWeekYear(weekYear,minDaysInFirstWeek=4,startOfWeek=1){let weekOffset=firstWeekOffset(weekYear,minDaysInFirstWeek,startOfWeek),weekOffsetNext=firstWeekOffset(weekYear+1,minDaysInFirstWeek,startOfWeek);return(daysInYear(weekYear)-weekOffset+weekOffsetNext)/7}function untruncateYear(year){return year>99?year:year>Settings.twoDigitCutoffYear?1900+year:2e3+year}function parseZoneInfo(ts,offsetFormat,locale,timeZone=null){let date=new Date(ts),intlOpts={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};timeZone&&(intlOpts.timeZone=timeZone);let modified={timeZoneName:offsetFormat,...intlOpts},parsed=new Intl.DateTimeFormat(locale,modified).formatToParts(date).find(m=>m.type.toLowerCase()===`timezonename`);return parsed?parsed.value:null}function signedOffset(offHourStr,offMinuteStr){let offHour=parseInt(offHourStr,10);Number.isNaN(offHour)&&(offHour=0);let offMin=parseInt(offMinuteStr,10)||0,offMinSigned=offHour<0||Object.is(offHour,-0)?-offMin:offMin;return offHour*60+offMinSigned}function asNumber(value){let numericValue=Number(value);if(typeof value==`boolean`||value===``||!Number.isFinite(numericValue))throw new InvalidArgumentError(`Invalid unit value ${value}`);return numericValue}function normalizeObject(obj,normalizer){let normalized={};for(let u in obj)if(hasOwnProperty(obj,u)){let v=obj[u];if(v==null)continue;normalized[normalizer(u)]=asNumber(v)}return normalized}function formatOffset(offset$2,format){let hours=Math.trunc(Math.abs(offset$2/60)),minutes=Math.trunc(Math.abs(offset$2%60)),sign$1=offset$2>=0?`+`:`-`;switch(format){case`short`:return`${sign$1}${padStart(hours,2)}:${padStart(minutes,2)}`;case`narrow`:return`${sign$1}${hours}${minutes>0?`:${minutes}`:``}`;case`techie`:return`${sign$1}${padStart(hours,2)}${padStart(minutes,2)}`;default:throw RangeError(`Value format ${format} is out of range for property format`)}}function timeObject(obj){return pick(obj,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months(length){switch(length){case`narrow`:return[...monthsNarrow];case`short`:return[...monthsShort];case`long`:return[...monthsLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays(length){switch(length){case`narrow`:return[...weekdaysNarrow];case`short`:return[...weekdaysShort];case`long`:return[...weekdaysLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems=[`AM`,`PM`],erasLong=[`Before Christ`,`Anno Domini`],erasShort=[`BC`,`AD`],erasNarrow=[`B`,`A`];function eras(length){switch(length){case`narrow`:return[...erasNarrow];case`short`:return[...erasShort];case`long`:return[...erasLong];default:return null}}function meridiemForDateTime(dt){return meridiems[dt.hour<12?0:1]}function weekdayForDateTime(dt,length){return weekdays(length)[dt.weekday-1]}function monthForDateTime(dt,length){return months(length)[dt.month-1]}function eraForDateTime(dt,length){return eras(length)[dt.year<0?0:1]}function formatRelativeTime(unit,count,numeric$1=`always`,narrow=!1){let units={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},lastable=[`hours`,`minutes`,`seconds`].indexOf(unit)===-1;if(numeric$1===`auto`&&lastable){let isDay=unit===`days`;switch(count){case 1:return isDay?`tomorrow`:`next ${units[unit][0]}`;case-1:return isDay?`yesterday`:`last ${units[unit][0]}`;case 0:return isDay?`today`:`this ${units[unit][0]}`}}let isInPast=Object.is(count,-0)||count<0,fmtValue=Math.abs(count),singular=fmtValue===1,lilUnits=units[unit],fmtUnit=narrow?singular?lilUnits[1]:lilUnits[2]||lilUnits[1]:singular?units[unit][0]:unit;return isInPast?`${fmtValue} ${fmtUnit} ago`:`in ${fmtValue} ${fmtUnit}`}function stringifyTokens(splits,tokenToString){let s$2=``;for(let token of splits)token.literal?s$2+=token.val:s$2+=tokenToString(token.val);return s$2}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};var Formatter=class Formatter{static create(locale,opts={}){return new Formatter(locale,opts)}static parseFormat(fmt){let current=null,currentFull=``,bracketed=!1,splits=[];for(let i$4=0;i$4<fmt.length;i$4++){let c$1=fmt.charAt(i$4);c$1===`'`?((currentFull.length>0||bracketed)&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull===``?`'`:currentFull}),current=null,currentFull=``,bracketed=!bracketed):bracketed||c$1===current?currentFull+=c$1:(currentFull.length>0&&splits.push({literal:/^\s+$/.test(currentFull),val:currentFull}),currentFull=c$1,current=c$1)}return currentFull.length>0&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull}),splits}static macroTokenToFormatOpts(token){return macroTokenToFormatOpts[token]}constructor(locale,formatOpts){this.opts=formatOpts,this.loc=locale,this.systemLoc=null}formatWithSystemDefault(dt,opts){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());let df=this.systemLoc.dtFormatter(dt,{...this.opts,...opts});return df.format()}dtFormatter(dt,opts={}){return this.loc.dtFormatter(dt,{...this.opts,...opts})}formatDateTime(dt,opts){return this.dtFormatter(dt,opts).format()}formatDateTimeParts(dt,opts){return this.dtFormatter(dt,opts).formatToParts()}formatInterval(interval,opts){let df=this.dtFormatter(interval.start,opts);return df.dtf.formatRange(interval.start.toJSDate(),interval.end.toJSDate())}resolvedOptions(dt,opts){return this.dtFormatter(dt,opts).resolvedOptions()}num(n$2,p=0,signDisplay=void 0){if(this.opts.forceSimple)return padStart(n$2,p);let opts={...this.opts};return p>0&&(opts.padTo=p),signDisplay&&(opts.signDisplay=signDisplay),this.loc.numberFormatter(opts).format(n$2)}formatDateTimeFromString(dt,fmt){let knownEnglish=this.loc.listingMode()===`en`,useDateTimeFormatter=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,string=(opts,extract)=>this.loc.extract(dt,opts,extract),formatOffset$2=opts=>dt.isOffsetFixed&&dt.offset===0&&opts.allowZ?`Z`:dt.isValid?dt.zone.formatOffset(dt.ts,opts.format):``,meridiem=()=>knownEnglish?meridiemForDateTime(dt):string({hour:`numeric`,hourCycle:`h12`},`dayperiod`),month=(length,standalone)=>knownEnglish?monthForDateTime(dt,length):string(standalone?{month:length}:{month:length,day:`numeric`},`month`),weekday=(length,standalone)=>knownEnglish?weekdayForDateTime(dt,length):string(standalone?{weekday:length}:{weekday:length,month:`long`,day:`numeric`},`weekday`),maybeMacro=token=>{let formatOpts=Formatter.macroTokenToFormatOpts(token);return formatOpts?this.formatWithSystemDefault(dt,formatOpts):token},era=length=>knownEnglish?eraForDateTime(dt,length):string({era:length},`era`),tokenToString=token=>{switch(token){case`S`:return this.num(dt.millisecond);case`u`:case`SSS`:return this.num(dt.millisecond,3);case`s`:return this.num(dt.second);case`ss`:return this.num(dt.second,2);case`uu`:return this.num(Math.floor(dt.millisecond/10),2);case`uuu`:return this.num(Math.floor(dt.millisecond/100));case`m`:return this.num(dt.minute);case`mm`:return this.num(dt.minute,2);case`h`:return this.num(dt.hour%12==0?12:dt.hour%12);case`hh`:return this.num(dt.hour%12==0?12:dt.hour%12,2);case`H`:return this.num(dt.hour);case`HH`:return this.num(dt.hour,2);case`Z`:return formatOffset$2({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return formatOffset$2({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return formatOffset$2({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return dt.zone.offsetName(dt.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return dt.zone.offsetName(dt.ts,{format:`long`,locale:this.loc.locale});case`z`:return dt.zoneName;case`a`:return meridiem();case`d`:return useDateTimeFormatter?string({day:`numeric`},`day`):this.num(dt.day);case`dd`:return useDateTimeFormatter?string({day:`2-digit`},`day`):this.num(dt.day,2);case`c`:return this.num(dt.weekday);case`ccc`:return weekday(`short`,!0);case`cccc`:return weekday(`long`,!0);case`ccccc`:return weekday(`narrow`,!0);case`E`:return this.num(dt.weekday);case`EEE`:return weekday(`short`,!1);case`EEEE`:return weekday(`long`,!1);case`EEEEE`:return weekday(`narrow`,!1);case`L`:return useDateTimeFormatter?string({month:`numeric`,day:`numeric`},`month`):this.num(dt.month);case`LL`:return useDateTimeFormatter?string({month:`2-digit`,day:`numeric`},`month`):this.num(dt.month,2);case`LLL`:return month(`short`,!0);case`LLLL`:return month(`long`,!0);case`LLLLL`:return month(`narrow`,!0);case`M`:return useDateTimeFormatter?string({month:`numeric`},`month`):this.num(dt.month);case`MM`:return useDateTimeFormatter?string({month:`2-digit`},`month`):this.num(dt.month,2);case`MMM`:return month(`short`,!1);case`MMMM`:return month(`long`,!1);case`MMMMM`:return month(`narrow`,!1);case`y`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year);case`yy`:return useDateTimeFormatter?string({year:`2-digit`},`year`):this.num(dt.year.toString().slice(-2),2);case`yyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,4);case`yyyyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,6);case`G`:return era(`short`);case`GG`:return era(`long`);case`GGGGG`:return era(`narrow`);case`kk`:return this.num(dt.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(dt.weekYear,4);case`W`:return this.num(dt.weekNumber);case`WW`:return this.num(dt.weekNumber,2);case`n`:return this.num(dt.localWeekNumber);case`nn`:return this.num(dt.localWeekNumber,2);case`ii`:return this.num(dt.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(dt.localWeekYear,4);case`o`:return this.num(dt.ordinal);case`ooo`:return this.num(dt.ordinal,3);case`q`:return this.num(dt.quarter);case`qq`:return this.num(dt.quarter,2);case`X`:return this.num(Math.floor(dt.ts/1e3));case`x`:return this.num(dt.ts);default:return maybeMacro(token)}};return stringifyTokens(Formatter.parseFormat(fmt),tokenToString)}formatDurationFromString(dur,fmt){let invertLargest=this.opts.signMode===`negativeLargestOnly`?-1:1,tokenToField=token=>{switch(token[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},tokenToString=(lildur,info)=>token=>{let mapped=tokenToField(token);if(mapped){let inversionFactor=info.isNegativeDuration&&mapped!==info.largestUnit?invertLargest:1,signDisplay;return signDisplay=this.opts.signMode===`negativeLargestOnly`&&mapped!==info.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(lildur.get(mapped)*inversionFactor,token.length,signDisplay)}else return token},tokens=Formatter.parseFormat(fmt),realTokens=tokens.reduce((found,{literal,val})=>literal?found:found.concat(val),[]),collapsed=dur.shiftTo(...realTokens.map(tokenToField).filter(t$5=>t$5)),durationInfo={isNegativeDuration:collapsed<0,largestUnit:Object.keys(collapsed.values)[0]};return stringifyTokens(tokens,tokenToString(collapsed,durationInfo))}};const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...regexes){let full=regexes.reduce((f,r)=>f+r.source,``);return RegExp(`^${full}$`)}function combineExtractors(...extractors){return m=>extractors.reduce(([mergedVals,mergedZone,cursor],ex)=>{let[val,zone,next]=ex(m,cursor);return[{...mergedVals,...val},zone||mergedZone,next]},[{},null,1]).slice(0,2)}function parse$7(s$2,...patterns){if(s$2==null)return[null,null];for(let[regex,extractor]of patterns){let m=regex.exec(s$2);if(m)return extractor(m)}return[null,null]}function simpleParse(...keys){return(match$2,cursor)=>{let ret={},i$4;for(i$4=0;i$4<keys.length;i$4++)ret[keys[i$4]]=parseInteger(match$2[cursor+i$4]);return[ret,null,cursor+i$4]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData=simpleParse(`year`,`ordinal`),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(match$2,pos,fallback){let m=match$2[pos];return isUndefined(m)?fallback:parseInteger(m)}function extractISOYmd(match$2,cursor){let item={year:int(match$2,cursor),month:int(match$2,cursor+1,1),day:int(match$2,cursor+2,1)};return[item,null,cursor+3]}function extractISOTime(match$2,cursor){let item={hours:int(match$2,cursor,0),minutes:int(match$2,cursor+1,0),seconds:int(match$2,cursor+2,0),milliseconds:parseMillis(match$2[cursor+3])};return[item,null,cursor+4]}function extractISOOffset(match$2,cursor){let local=!match$2[cursor]&&!match$2[cursor+1],fullOffset=signedOffset(match$2[cursor+1],match$2[cursor+2]),zone=local?null:FixedOffsetZone.instance(fullOffset);return[{},zone,cursor+3]}function extractIANAZone(match$2,cursor){let zone=match$2[cursor]?IANAZone.create(match$2[cursor]):null;return[{},zone,cursor+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(match$2){let[s$2,yearStr,monthStr,weekStr,dayStr,hourStr,minuteStr,secondStr,millisecondsStr]=match$2,hasNegativePrefix=s$2[0]===`-`,negativeSeconds=secondStr&&secondStr[0]===`-`,maybeNegate=(num,force=!1)=>num!==void 0&&(force||num&&hasNegativePrefix)?-num:num;return[{years:maybeNegate(parseFloating(yearStr)),months:maybeNegate(parseFloating(monthStr)),weeks:maybeNegate(parseFloating(weekStr)),days:maybeNegate(parseFloating(dayStr)),hours:maybeNegate(parseFloating(hourStr)),minutes:maybeNegate(parseFloating(minuteStr)),seconds:maybeNegate(parseFloating(secondStr),secondStr===`-0`),milliseconds:maybeNegate(parseMillis(millisecondsStr),negativeSeconds)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){let result={year:yearStr.length===2?untruncateYear(parseInteger(yearStr)):parseInteger(yearStr),month:monthsShort.indexOf(monthStr)+1,day:parseInteger(dayStr),hour:parseInteger(hourStr),minute:parseInteger(minuteStr)};return secondStr&&(result.second=parseInteger(secondStr)),weekdayStr&&(result.weekday=weekdayStr.length>3?weekdaysLong.indexOf(weekdayStr)+1:weekdaysShort.indexOf(weekdayStr)+1),result}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr,obsOffset,milOffset,offHourStr,offMinuteStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr),offset$2;return offset$2=obsOffset?obsOffsets[obsOffset]:milOffset?0:signedOffset(offHourStr,offMinuteStr),[result,new FixedOffsetZone(offset$2)]}function preprocessRFC2822(s$2){return s$2.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}function extractASCII(match$2){let[,weekdayStr,monthStr,dayStr,hourStr,minuteStr,secondStr,yearStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(s$2){return parse$7(s$2,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(s$2){return parse$7(preprocessRFC2822(s$2),[rfc2822,extractRFC2822])}function parseHTTPDate(s$2){return parse$7(s$2,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(s$2){return parse$7(s$2,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(s$2){return parse$7(s$2,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(s$2){return parse$7(s$2,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2=`Invalid Duration`,lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(dur,alts,clear=!1){let conf={values:clear?alts.values:{...dur.values,...alts.values||{}},loc:dur.loc.clone(alts.loc),conversionAccuracy:alts.conversionAccuracy||dur.conversionAccuracy,matrix:alts.matrix||dur.matrix};return new Duration(conf)}function durationToMillis(matrix,vals){let sum=vals.milliseconds??0;for(let unit of reverseUnits.slice(1))vals[unit]&&(sum+=vals[unit]*matrix[unit].milliseconds);return sum}function normalizeValues(matrix,vals){let factor=durationToMillis(matrix,vals)<0?-1:1;orderedUnits$1.reduceRight((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let previousVal=vals[previous]*factor,conv=matrix[current][previous],rollUp=Math.floor(previousVal/conv);vals[current]+=rollUp*factor,vals[previous]-=rollUp*conv*factor}return current},null),orderedUnits$1.reduce((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let fraction=vals[previous]%1;vals[previous]-=fraction,vals[current]+=fraction*matrix[previous][current]}return current},null)}function removeZeroes(vals){let newVals={};for(let[key,value]of Object.entries(vals))value!==0&&(newVals[key]=value);return newVals}var Duration=class Duration{constructor(config){let accurate=config.conversionAccuracy===`longterm`||!1,matrix=accurate?accurateMatrix:casualMatrix;config.matrix&&(matrix=config.matrix),this.values=config.values,this.loc=config.loc||Locale.create(),this.conversionAccuracy=accurate?`longterm`:`casual`,this.invalid=config.invalid||null,this.matrix=matrix,this.isLuxonDuration=!0}static fromMillis(count,opts){return Duration.fromObject({milliseconds:count},opts)}static fromObject(obj,opts={}){if(typeof obj!=`object`||!obj)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${obj===null?`null`:typeof obj}`);return new Duration({values:normalizeObject(obj,Duration.normalizeUnit),loc:Locale.fromObject(opts),conversionAccuracy:opts.conversionAccuracy,matrix:opts.matrix})}static fromDurationLike(durationLike){if(isNumber(durationLike))return Duration.fromMillis(durationLike);if(Duration.isDuration(durationLike))return durationLike;if(typeof durationLike==`object`)return Duration.fromObject(durationLike);throw new InvalidArgumentError(`Unknown duration argument ${durationLike} of type ${typeof durationLike}`)}static fromISO(text,opts){let[parsed]=parseISODuration(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static fromISOTime(text,opts){let[parsed]=parseISOTimeOnly(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Duration is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDurationError(invalid$1);return new Duration({invalid:invalid$1})}static normalizeUnit(unit){let normalized={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[unit&&unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(fmt,opts={}){let fmtOpts={...opts,floor:opts.round!==!1&&opts.floor!==!1};return this.isValid?Formatter.create(this.loc,fmtOpts).formatDurationFromString(this,fmt):INVALID$2}toHuman(opts={}){if(!this.isValid)return INVALID$2;let showZeros=opts.showZeros!==!1,l$2=orderedUnits$1.map(unit=>{let val=this.values[unit];return isUndefined(val)||val===0&&!showZeros?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...opts,unit:unit.slice(0,-1)}).format(val)}).filter(n$2=>n$2);return this.loc.listFormatter({type:`conjunction`,style:opts.listStyle||`narrow`,...opts}).format(l$2)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s$2=`P`;return this.years!==0&&(s$2+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(s$2+=this.months+this.quarters*3+`M`),this.weeks!==0&&(s$2+=this.weeks+`W`),this.days!==0&&(s$2+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(s$2+=`T`),this.hours!==0&&(s$2+=this.hours+`H`),this.minutes!==0&&(s$2+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(s$2+=roundTo(this.seconds+this.milliseconds/1e3,3)+`S`),s$2===`P`&&(s$2+=`T0S`),s$2}toISOTime(opts={}){if(!this.isValid)return null;let millis=this.toMillis();if(millis<0||millis>=864e5)return null;opts={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...opts,includeOffset:!1};let dateTime=DateTime.fromMillis(millis,{zone:`UTC`});return dateTime.toISOTime(opts)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration),result={};for(let k of orderedUnits$1)(hasOwnProperty(dur.values,k)||hasOwnProperty(this.values,k))&&(result[k]=dur.get(k)+this.get(k));return clone$1(this,{values:result},!0)}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return this.plus(dur.negate())}mapUnits(fn$1){if(!this.isValid)return this;let result={};for(let k of Object.keys(this.values))result[k]=asNumber(fn$1(this.values[k],k));return clone$1(this,{values:result},!0)}get(unit){return this[Duration.normalizeUnit(unit)]}set(values){if(!this.isValid)return this;let mixed={...this.values,...normalizeObject(values,Duration.normalizeUnit)};return clone$1(this,{values:mixed})}reconfigure({locale,numberingSystem,conversionAccuracy,matrix}={}){let loc=this.loc.clone({locale,numberingSystem}),opts={loc,matrix,conversionAccuracy};return clone$1(this,opts)}as(unit){return this.isValid?this.shiftTo(unit).get(unit):NaN}normalize(){if(!this.isValid)return this;let vals=this.toObject();return normalizeValues(this.matrix,vals),clone$1(this,{values:vals},!0)}rescale(){if(!this.isValid)return this;let vals=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:vals},!0)}shiftTo(...units){if(!this.isValid||units.length===0)return this;units=units.map(u=>Duration.normalizeUnit(u));let built={},accumulated={},vals=this.toObject(),lastUnit;for(let k of orderedUnits$1)if(units.indexOf(k)>=0){lastUnit=k;let own=0;for(let ak in accumulated)own+=this.matrix[ak][k]*accumulated[ak],accumulated[ak]=0;isNumber(vals[k])&&(own+=vals[k]);let i$4=Math.trunc(own);built[k]=i$4,accumulated[k]=(own*1e3-i$4*1e3)/1e3}else isNumber(vals[k])&&(accumulated[k]=vals[k]);for(let key in accumulated)accumulated[key]!==0&&(built[lastUnit]+=key===lastUnit?accumulated[key]:accumulated[key]/this.matrix[lastUnit][key]);return normalizeValues(this.matrix,built),clone$1(this,{values:built},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let negated={};for(let k of Object.keys(this.values))negated[k]=this.values[k]===0?0:-this.values[k];return clone$1(this,{values:negated},!0)}removeZeros(){if(!this.isValid)return this;let vals=removeZeroes(this.values);return clone$1(this,{values:vals},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(other){if(!this.isValid||!other.isValid||!this.loc.equals(other.loc))return!1;function eq$3(v1,v2){return v1===void 0||v1===0?v2===void 0||v2===0:v1===v2}for(let u of orderedUnits$1)if(!eq$3(this.values[u],other.values[u]))return!1;return!0}};const INVALID$1=`Invalid Interval`;function validateStartEnd(start,end){return!start||!start.isValid?Interval.invalid(`missing or invalid start`):!end||!end.isValid?Interval.invalid(`missing or invalid end`):end<start?Interval.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`):null}var Interval=class Interval{constructor(config){this.s=config.start,this.e=config.end,this.invalid=config.invalid||null,this.isLuxonInterval=!0}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Interval is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidIntervalError(invalid$1);return new Interval({invalid:invalid$1})}static fromDateTimes(start,end){let builtStart=friendlyDateTime(start),builtEnd=friendlyDateTime(end),validateError=validateStartEnd(builtStart,builtEnd);return validateError??new Interval({start:builtStart,end:builtEnd})}static after(start,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(start);return Interval.fromDateTimes(dt,dt.plus(dur))}static before(end,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(end);return Interval.fromDateTimes(dt.minus(dur),dt)}static fromISO(text,opts){let[s$2,e]=(text||``).split(`/`,2);if(s$2&&e){let start,startIsValid;try{start=DateTime.fromISO(s$2,opts),startIsValid=start.isValid}catch{startIsValid=!1}let end,endIsValid;try{end=DateTime.fromISO(e,opts),endIsValid=end.isValid}catch{endIsValid=!1}if(startIsValid&&endIsValid)return Interval.fromDateTimes(start,end);if(startIsValid){let dur=Duration.fromISO(e,opts);if(dur.isValid)return Interval.after(start,dur)}else if(endIsValid){let dur=Duration.fromISO(s$2,opts);if(dur.isValid)return Interval.before(end,dur)}}return Interval.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(unit=`milliseconds`){return this.isValid?this.toDuration(unit).get(unit):NaN}count(unit=`milliseconds`,opts){if(!this.isValid)return NaN;let start=this.start.startOf(unit,opts),end;return end=opts?.useLocaleWeeks?this.end.reconfigure({locale:start.locale}):this.end,end=end.startOf(unit,opts),Math.floor(end.diff(start,unit).get(unit))+(end.valueOf()!==this.end.valueOf())}hasSame(unit){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,unit):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(dateTime){return this.isValid?this.s>dateTime:!1}isBefore(dateTime){return this.isValid?this.e<=dateTime:!1}contains(dateTime){return this.isValid?this.s<=dateTime&&this.e>dateTime:!1}set({start,end}={}){return this.isValid?Interval.fromDateTimes(start||this.s,end||this.e):this}splitAt(...dateTimes){if(!this.isValid)return[];let sorted=dateTimes.map(friendlyDateTime).filter(d=>this.contains(d)).sort((a,b)=>a.toMillis()-b.toMillis()),results=[],{s:s$2}=this,i$4=0;for(;s$2<this.e;){let added=sorted[i$4]||this.e,next=+added>+this.e?this.e:added;results.push(Interval.fromDateTimes(s$2,next)),s$2=next,i$4+=1}return results}splitBy(duration){let dur=Duration.fromDurationLike(duration);if(!this.isValid||!dur.isValid||dur.as(`milliseconds`)===0)return[];let{s:s$2}=this,idx=1,next,results=[];for(;s$2<this.e;){let added=this.start.plus(dur.mapUnits(x$1=>x$1*idx));next=+added>+this.e?this.e:added,results.push(Interval.fromDateTimes(s$2,next)),s$2=next,idx+=1}return results}divideEqually(numberOfParts){return this.isValid?this.splitBy(this.length()/numberOfParts).slice(0,numberOfParts):[]}overlaps(other){return this.e>other.s&&this.s<other.e}abutsStart(other){return this.isValid?+this.e==+other.s:!1}abutsEnd(other){return this.isValid?+other.e==+this.s:!1}engulfs(other){return this.isValid?this.s<=other.s&&this.e>=other.e:!1}equals(other){return!this.isValid||!other.isValid?!1:this.s.equals(other.s)&&this.e.equals(other.e)}intersection(other){if(!this.isValid)return this;let s$2=this.s>other.s?this.s:other.s,e=this.e<other.e?this.e:other.e;return s$2>=e?null:Interval.fromDateTimes(s$2,e)}union(other){if(!this.isValid)return this;let s$2=this.s<other.s?this.s:other.s,e=this.e>other.e?this.e:other.e;return Interval.fromDateTimes(s$2,e)}static merge(intervals){let[found,final]=intervals.sort((a,b)=>a.s-b.s).reduce(([sofar,current],item)=>current?current.overlaps(item)||current.abutsStart(item)?[sofar,current.union(item)]:[sofar.concat([current]),item]:[sofar,item],[[],null]);return final&&found.push(final),found}static xor(intervals){let start=null,currentCount=0,results=[],ends=intervals.map(i$4=>[{time:i$4.s,type:`s`},{time:i$4.e,type:`e`}]),flattened=Array.prototype.concat(...ends),arr=flattened.sort((a,b)=>a.time-b.time);for(let i$4 of arr)currentCount+=i$4.type===`s`?1:-1,currentCount===1?start=i$4.time:(start&&+start!=+i$4.time&&results.push(Interval.fromDateTimes(start,i$4.time)),start=null);return Interval.merge(results)}difference(...intervals){return Interval.xor([this].concat(intervals)).map(i$4=>this.intersection(i$4)).filter(i$4=>i$4&&!i$4.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.s.loc.clone(opts),formatOpts).formatInterval(this):INVALID$1}toISO(opts){return this.isValid?`${this.s.toISO(opts)}/${this.e.toISO(opts)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(opts){return this.isValid?`${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`:INVALID$1}toFormat(dateFormat,{separator=` – `}={}){return this.isValid?`${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`:INVALID$1}toDuration(unit,opts){return this.isValid?this.e.diff(this.s,unit,opts):Duration.invalid(this.invalidReason)}mapEndpoints(mapFn){return Interval.fromDateTimes(mapFn(this.s),mapFn(this.e))}},Info=class{static hasDST(zone=Settings.defaultZone){let proto=DateTime.now().setZone(zone).set({month:12});return!zone.isUniversal&&proto.offset!==proto.set({month:6}).offset}static isValidIANAZone(zone){return IANAZone.isValidZone(zone)}static normalizeZone(input){return normalizeZone(input,Settings.defaultZone)}static getStartOfWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getWeekendDays().slice()}static months(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length)}static monthsFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length,!0)}static weekdays(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length)}static weekdaysFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length,!0)}static meridiems({locale=null}={}){return Locale.create(locale).meridiems()}static eras(length=`short`,{locale=null}={}){return Locale.create(locale,null,`gregory`).eras(length)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(earlier,later){let utcDayStart=dt=>dt.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),ms=utcDayStart(later)-utcDayStart(earlier);return Math.floor(Duration.fromMillis(ms).as(`days`))}function highOrderDiffs(cursor,later,units){let differs=[[`years`,(a,b)=>b.year-a.year],[`quarters`,(a,b)=>b.quarter-a.quarter+(b.year-a.year)*4],[`months`,(a,b)=>b.month-a.month+(b.year-a.year)*12],[`weeks`,(a,b)=>{let days=dayDiff(a,b);return(days-days%7)/7}],[`days`,dayDiff]],results={},earlier=cursor,lowestOrder,highWater;for(let[unit,differ]of differs)units.indexOf(unit)>=0&&(lowestOrder=unit,results[unit]=differ(cursor,later),highWater=earlier.plus(results),highWater>later?(results[unit]--,cursor=earlier.plus(results),cursor>later&&(highWater=cursor,results[unit]--,cursor=earlier.plus(results))):cursor=highWater);return[cursor,results,highWater,lowestOrder]}function diff$2(earlier,later,units,opts){let[cursor,results,highWater,lowestOrder]=highOrderDiffs(earlier,later,units),remainingMillis=later-cursor,lowerOrderUnits=units.filter(u=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(u)>=0);lowerOrderUnits.length===0&&(highWater<later&&(highWater=cursor.plus({[lowestOrder]:1})),highWater!==cursor&&(results[lowestOrder]=(results[lowestOrder]||0)+remainingMillis/(highWater-cursor)));let duration=Duration.fromObject(results,opts);return lowerOrderUnits.length>0?Duration.fromMillis(remainingMillis,opts).shiftTo(...lowerOrderUnits).plus(duration):duration}const MISSING_FTP=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit(regex,post=i$4=>i$4){return{regex,deser:([s$2])=>post(parseDigits(s$2))}}const NBSP=`\xA0`,spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,`g`);function fixListRegex(s$2){return s$2.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(s$2){return s$2.replace(/\./g,``).replace(spaceOrNBSPRegExp,` `).toLowerCase()}function oneOf(strings,startIndex){return strings===null?null:{regex:RegExp(strings.map(fixListRegex).join(`|`)),deser:([s$2])=>strings.findIndex(i$4=>stripInsensitivities(s$2)===stripInsensitivities(i$4))+startIndex}}function offset(regex,groups){return{regex,deser:([,h,m])=>signedOffset(h,m),groups}}function simple(regex){return{regex,deser:([s$2])=>s$2}}function escapeToken(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken(token,loc){let one=digitRegex(loc),two=digitRegex(loc,`{2}`),three=digitRegex(loc,`{3}`),four=digitRegex(loc,`{4}`),six=digitRegex(loc,`{6}`),oneOrTwo=digitRegex(loc,`{1,2}`),oneToThree=digitRegex(loc,`{1,3}`),oneToSix=digitRegex(loc,`{1,6}`),oneToNine=digitRegex(loc,`{1,9}`),twoToFour=digitRegex(loc,`{2,4}`),fourToSix=digitRegex(loc,`{4,6}`),literal=t$5=>({regex:RegExp(escapeToken(t$5.val)),deser:([s$2])=>s$2,literal:!0}),unitate=t$5=>{if(token.literal)return literal(t$5);switch(t$5.val){case`G`:return oneOf(loc.eras(`short`),0);case`GG`:return oneOf(loc.eras(`long`),0);case`y`:return intUnit(oneToSix);case`yy`:return intUnit(twoToFour,untruncateYear);case`yyyy`:return intUnit(four);case`yyyyy`:return intUnit(fourToSix);case`yyyyyy`:return intUnit(six);case`M`:return intUnit(oneOrTwo);case`MM`:return intUnit(two);case`MMM`:return oneOf(loc.months(`short`,!0),1);case`MMMM`:return oneOf(loc.months(`long`,!0),1);case`L`:return intUnit(oneOrTwo);case`LL`:return intUnit(two);case`LLL`:return oneOf(loc.months(`short`,!1),1);case`LLLL`:return oneOf(loc.months(`long`,!1),1);case`d`:return intUnit(oneOrTwo);case`dd`:return intUnit(two);case`o`:return intUnit(oneToThree);case`ooo`:return intUnit(three);case`HH`:return intUnit(two);case`H`:return intUnit(oneOrTwo);case`hh`:return intUnit(two);case`h`:return intUnit(oneOrTwo);case`mm`:return intUnit(two);case`m`:return intUnit(oneOrTwo);case`q`:return intUnit(oneOrTwo);case`qq`:return intUnit(two);case`s`:return intUnit(oneOrTwo);case`ss`:return intUnit(two);case`S`:return intUnit(oneToThree);case`SSS`:return intUnit(three);case`u`:return simple(oneToNine);case`uu`:return simple(oneOrTwo);case`uuu`:return intUnit(one);case`a`:return oneOf(loc.meridiems(),0);case`kkkk`:return intUnit(four);case`kk`:return intUnit(twoToFour,untruncateYear);case`W`:return intUnit(oneOrTwo);case`WW`:return intUnit(two);case`E`:case`c`:return intUnit(one);case`EEE`:return oneOf(loc.weekdays(`short`,!1),1);case`EEEE`:return oneOf(loc.weekdays(`long`,!1),1);case`ccc`:return oneOf(loc.weekdays(`short`,!0),1);case`cccc`:return oneOf(loc.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`),2);case`ZZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(${two.source})?`),2);case`z`:return simple(/[a-z_+-/]{1,256}?/i);case` `:return simple(/[^\S\n\r]/);default:return literal(t$5)}},unit=unitate(token)||{invalidReason:MISSING_FTP};return unit.token=token,unit}const partTypeStyleToTokenVal={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart(part,formatOpts,resolvedOpts){let{type,value}=part;if(type===`literal`){let isSpace=/^\s+$/.test(value);return{literal:!isSpace,val:isSpace?` `:value}}let style=formatOpts[type],actualType=type;type===`hour`&&(actualType=formatOpts.hour12==null?formatOpts.hourCycle==null?resolvedOpts.hour12?`hour12`:`hour24`:formatOpts.hourCycle===`h11`||formatOpts.hourCycle===`h12`?`hour12`:`hour24`:formatOpts.hour12?`hour12`:`hour24`);let val=partTypeStyleToTokenVal[actualType];if(typeof val==`object`&&(val=val[style]),val)return{literal:!1,val}}function buildRegex(units){let re$5=units.map(u=>u.regex).reduce((f,r)=>`${f}(${r.source})`,``);return[`^${re$5}$`,units]}function match(input,regex,handlers){let matches=input.match(regex);if(matches){let all$1={},matchIndex=1;for(let i$4 in handlers)if(hasOwnProperty(handlers,i$4)){let h=handlers[i$4],groups=h.groups?h.groups+1:1;!h.literal&&h.token&&(all$1[h.token.val[0]]=h.deser(matches.slice(matchIndex,matchIndex+groups))),matchIndex+=groups}return[matches,all$1]}else return[matches,{}]}function dateTimeFromMatches(matches){let toField=token=>{switch(token){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},zone=null,specificOffset;isUndefined(matches.z)||(zone=IANAZone.create(matches.z)),isUndefined(matches.Z)||(zone||=new FixedOffsetZone(matches.Z),specificOffset=matches.Z),isUndefined(matches.q)||(matches.M=(matches.q-1)*3+1),isUndefined(matches.h)||(matches.h<12&&matches.a===1?matches.h+=12:matches.h===12&&matches.a===0&&(matches.h=0)),matches.G===0&&matches.y&&(matches.y=-matches.y),isUndefined(matches.u)||(matches.S=parseMillis(matches.u));let vals=Object.keys(matches).reduce((r,k)=>{let f=toField(k);return f&&(r[f]=matches[k]),r},{});return[vals,zone,specificOffset]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||=DateTime.fromMillis(1555555555555),dummyDateTimeCache}function maybeExpandMacroToken(token,locale){if(token.literal)return token;let formatOpts=Formatter.macroTokenToFormatOpts(token.val),tokens=formatOptsToTokens(formatOpts,locale);return tokens==null||tokens.includes(void 0)?token:tokens}function expandMacroTokens(tokens,locale){return Array.prototype.concat(...tokens.map(t$5=>maybeExpandMacroToken(t$5,locale)))}var TokenParser=class{constructor(locale,format){if(this.locale=locale,this.format=format,this.tokens=expandMacroTokens(Formatter.parseFormat(format),locale),this.units=this.tokens.map(t$5=>unitForToken(t$5,locale)),this.disqualifyingUnit=this.units.find(t$5=>t$5.invalidReason),!this.disqualifyingUnit){let[regexString,handlers]=buildRegex(this.units);this.regex=RegExp(regexString,`i`),this.handlers=handlers}}explainFromTokens(input){if(this.isValid){let[rawMatches,matches]=match(input,this.regex,this.handlers),[result,zone,specificOffset]=matches?dateTimeFromMatches(matches):[null,null,void 0];if(hasOwnProperty(matches,`a`)&&hasOwnProperty(matches,`H`))throw new ConflictingSpecificationError(`Can't include meridiem when specifying 24-hour format`);return{input,tokens:this.tokens,regex:this.regex,rawMatches,matches,result,zone,specificOffset}}else return{input,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens(locale,input,format){let parser=new TokenParser(locale,format);return parser.explainFromTokens(input)}function parseFromTokens(locale,input,format){let{result,zone,specificOffset,invalidReason}=explainFromTokens(locale,input,format);return[result,zone,specificOffset,invalidReason]}function formatOptsToTokens(formatOpts,locale){if(!formatOpts)return null;let formatter=Formatter.create(locale,formatOpts),df=formatter.dtFormatter(getDummyDateTime()),parts=df.formatToParts(),resolvedOpts=df.resolvedOptions();return parts.map(p=>tokenForPart(p,formatOpts,resolvedOpts))}const INVALID=`Invalid DateTime`,MAX_DATE=864e13;function unsupportedZone(zone){return new Invalid(`unsupported zone`,`the zone "${zone.name}" is not supported`)}function possiblyCachedWeekData(dt){return dt.weekData===null&&(dt.weekData=gregorianToWeek(dt.c)),dt.weekData}function possiblyCachedLocalWeekData(dt){return dt.localWeekData===null&&(dt.localWeekData=gregorianToWeek(dt.c,dt.loc.getMinDaysInFirstWeek(),dt.loc.getStartOfWeek())),dt.localWeekData}function clone(inst,alts){let current={ts:inst.ts,zone:inst.zone,c:inst.c,o:inst.o,loc:inst.loc,invalid:inst.invalid};return new DateTime({...current,...alts,old:current})}function fixOffset(localTS,o,tz){let utcGuess=localTS-o*60*1e3,o2=tz.offset(utcGuess);if(o===o2)return[utcGuess,o];utcGuess-=(o2-o)*60*1e3;let o3=tz.offset(utcGuess);return o2===o3?[utcGuess,o2]:[localTS-Math.min(o2,o3)*60*1e3,Math.max(o2,o3)]}function tsToObj(ts,offset$2){ts+=offset$2*60*1e3;let d=new Date(ts);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function objToTS(obj,offset$2,zone){return fixOffset(objToLocalTS(obj),offset$2,zone)}function adjustTime(inst,dur){let oPre=inst.o,year=inst.c.year+Math.trunc(dur.years),month=inst.c.month+Math.trunc(dur.months)+Math.trunc(dur.quarters)*3,c$1={...inst.c,year,month,day:Math.min(inst.c.day,daysInMonth(year,month))+Math.trunc(dur.days)+Math.trunc(dur.weeks)*7},millisToAdd=Duration.fromObject({years:dur.years-Math.trunc(dur.years),quarters:dur.quarters-Math.trunc(dur.quarters),months:dur.months-Math.trunc(dur.months),weeks:dur.weeks-Math.trunc(dur.weeks),days:dur.days-Math.trunc(dur.days),hours:dur.hours,minutes:dur.minutes,seconds:dur.seconds,milliseconds:dur.milliseconds}).as(`milliseconds`),localTS=objToLocalTS(c$1),[ts,o]=fixOffset(localTS,oPre,inst.zone);return millisToAdd!==0&&(ts+=millisToAdd,o=inst.zone.offset(ts)),{ts,o}}function parseDataToDateTime(parsed,parsedZone,opts,format,text,specificOffset){let{setZone,zone}=opts;if(parsed&&Object.keys(parsed).length!==0||parsedZone){let interpretationZone=parsedZone||zone,inst=DateTime.fromObject(parsed,{...opts,zone:interpretationZone,specificOffset});return setZone?inst:inst.setZone(zone)}else return DateTime.invalid(new Invalid(`unparsable`,`the input "${text}" can't be parsed as ${format}`))}function toTechFormat(dt,format,allowZ=!0){return dt.isValid?Formatter.create(Locale.create(`en-US`),{allowZ,forceSimple:!0}).formatDateTimeFromString(dt,format):null}function toISODate(o,extended,precision){let longFormat=o.c.year>9999||o.c.year<0,c$1=``;if(longFormat&&o.c.year>=0&&(c$1+=`+`),c$1+=padStart(o.c.year,longFormat?6:4),precision===`year`)return c$1;if(extended){if(c$1+=`-`,c$1+=padStart(o.c.month),precision===`month`)return c$1;c$1+=`-`}else if(c$1+=padStart(o.c.month),precision===`month`)return c$1;return c$1+=padStart(o.c.day),c$1}function toISOTime(o,extended,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision){let showSeconds=!suppressSeconds||o.c.millisecond!==0||o.c.second!==0,c$1=``;switch(precision){case`day`:case`month`:case`year`:break;default:if(c$1+=padStart(o.c.hour),precision===`hour`)break;if(extended){if(c$1+=`:`,c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=`:`,c$1+=padStart(o.c.second))}else{if(c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=padStart(o.c.second))}if(precision===`second`)break;showSeconds&&(!suppressMilliseconds||o.c.millisecond!==0)&&(c$1+=`.`,c$1+=padStart(o.c.millisecond,3))}return includeOffset&&(o.isOffsetFixed&&o.offset===0&&!extendedZone?c$1+=`Z`:o.o<0?(c$1+=`-`,c$1+=padStart(Math.trunc(-o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(-o.o%60))):(c$1+=`+`,c$1+=padStart(Math.trunc(o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(o.o%60)))),extendedZone&&(c$1+=`[`+o.zone.ianaName+`]`),c$1}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit(unit){let normalized={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}function normalizeUnitWithLocalWeeks(unit){switch(unit.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit(unit)}}function guessOffsetForZone(zone){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),zone.type!==`iana`)return zone.offset(zoneOffsetTs);let zoneName=zone.name,offsetGuess=zoneOffsetGuessCache.get(zoneName);return offsetGuess===void 0&&(offsetGuess=zone.offset(zoneOffsetTs),zoneOffsetGuessCache.set(zoneName,offsetGuess)),offsetGuess}function quickDT(obj,opts){let zone=normalizeZone(opts.zone,Settings.defaultZone);if(!zone.isValid)return DateTime.invalid(unsupportedZone(zone));let loc=Locale.fromObject(opts),ts,o;if(isUndefined(obj.year))ts=Settings.now();else{for(let u of orderedUnits)isUndefined(obj[u])&&(obj[u]=defaultUnitValues[u]);let invalid$1=hasInvalidGregorianData(obj)||hasInvalidTimeData(obj);if(invalid$1)return DateTime.invalid(invalid$1);let offsetProvis=guessOffsetForZone(zone);[ts,o]=objToTS(obj,offsetProvis,zone)}return new DateTime({ts,zone,loc,o})}function diffRelative(start,end,opts){let round$2=isUndefined(opts.round)?!0:opts.round,rounding=isUndefined(opts.rounding)?`trunc`:opts.rounding,format=(c$1,unit)=>{c$1=roundTo(c$1,round$2||opts.calendary?0:2,opts.calendary?`round`:rounding);let formatter=end.loc.clone(opts).relFormatter(opts);return formatter.format(c$1,unit)},differ=unit=>opts.calendary?end.hasSame(start,unit)?0:end.startOf(unit).diff(start.startOf(unit),unit).get(unit):end.diff(start,unit).get(unit);if(opts.unit)return format(differ(opts.unit),opts.unit);for(let unit of opts.units){let count=differ(unit);if(Math.abs(count)>=1)return format(count,unit)}return format(start>end?-0:0,opts.units[opts.units.length-1])}function lastOpts(argList){let opts={},args$1;return argList.length>0&&typeof argList[argList.length-1]==`object`?(opts=argList[argList.length-1],args$1=Array.from(argList).slice(0,argList.length-1)):args$1=Array.from(argList),[opts,args$1]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;var DateTime=class DateTime{constructor(config){let zone=config.zone||Settings.defaultZone,invalid$1=config.invalid||(Number.isNaN(config.ts)?new Invalid(`invalid input`):null)||(zone.isValid?null:unsupportedZone(zone));this.ts=isUndefined(config.ts)?Settings.now():config.ts;let c$1=null,o=null;if(!invalid$1){let unchanged=config.old&&config.old.ts===this.ts&&config.old.zone.equals(zone);if(unchanged)[c$1,o]=[config.old.c,config.old.o];else{let ot=isNumber(config.o)&&!config.old?config.o:zone.offset(this.ts);c$1=tsToObj(this.ts,ot),invalid$1=Number.isNaN(c$1.year)?new Invalid(`invalid input`):null,c$1=invalid$1?null:c$1,o=invalid$1?null:ot}}this._zone=zone,this.loc=config.loc||Locale.create(),this.invalid=invalid$1,this.weekData=null,this.localWeekData=null,this.c=c$1,this.o=o,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return quickDT({year,month,day,hour,minute,second,millisecond},opts)}static utc(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return opts.zone=FixedOffsetZone.utcInstance,quickDT({year,month,day,hour,minute,second,millisecond},opts)}static fromJSDate(date,options={}){let ts=isDate(date)?date.valueOf():NaN;if(Number.isNaN(ts))return DateTime.invalid(`invalid input`);let zoneToUse=normalizeZone(options.zone,Settings.defaultZone);return zoneToUse.isValid?new DateTime({ts,zone:zoneToUse,loc:Locale.fromObject(options)}):DateTime.invalid(unsupportedZone(zoneToUse))}static fromMillis(milliseconds,options={}){if(isNumber(milliseconds))return milliseconds<-MAX_DATE||milliseconds>MAX_DATE?DateTime.invalid(`Timestamp out of range`):new DateTime({ts:milliseconds,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`)}static fromSeconds(seconds,options={}){if(isNumber(seconds))return new DateTime({ts:seconds*1e3,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromSeconds requires a numerical input`)}static fromObject(obj,opts={}){obj||={};let zoneToUse=normalizeZone(opts.zone,Settings.defaultZone);if(!zoneToUse.isValid)return DateTime.invalid(unsupportedZone(zoneToUse));let loc=Locale.fromObject(opts),normalized=normalizeObject(obj,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,loc),tsNow=Settings.now(),offsetProvis=isUndefined(opts.specificOffset)?zoneToUse.offset(tsNow):opts.specificOffset,containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let useWeekData=definiteWeekDef||normalized.weekday&&!containsGregor,units,defaultValues,objNow=tsToObj(tsNow,offsetProvis);useWeekData?(units=orderedWeekUnits,defaultValues=defaultWeekUnitValues,objNow=gregorianToWeek(objNow,minDaysInFirstWeek,startOfWeek)):containsOrdinal?(units=orderedOrdinalUnits,defaultValues=defaultOrdinalUnitValues,objNow=gregorianToOrdinal(objNow)):(units=orderedUnits,defaultValues=defaultUnitValues);let foundFirst=!1;for(let u of units){let v=normalized[u];isUndefined(v)?foundFirst?normalized[u]=defaultValues[u]:normalized[u]=objNow[u]:foundFirst=!0}let higherOrderInvalid=useWeekData?hasInvalidWeekData(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?hasInvalidOrdinalData(normalized):hasInvalidGregorianData(normalized),invalid$1=higherOrderInvalid||hasInvalidTimeData(normalized);if(invalid$1)return DateTime.invalid(invalid$1);let gregorian=useWeekData?weekToGregorian(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?ordinalToGregorian(normalized):normalized,[tsFinal,offsetFinal]=objToTS(gregorian,offsetProvis,zoneToUse),inst=new DateTime({ts:tsFinal,zone:zoneToUse,o:offsetFinal,loc});return normalized.weekday&&containsGregor&&obj.weekday!==inst.weekday?DateTime.invalid(`mismatched weekday`,`you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`):inst.isValid?inst:DateTime.invalid(inst.invalid)}static fromISO(text,opts={}){let[vals,parsedZone]=parseISODate(text);return parseDataToDateTime(vals,parsedZone,opts,`ISO 8601`,text)}static fromRFC2822(text,opts={}){let[vals,parsedZone]=parseRFC2822Date(text);return parseDataToDateTime(vals,parsedZone,opts,`RFC 2822`,text)}static fromHTTP(text,opts={}){let[vals,parsedZone]=parseHTTPDate(text);return parseDataToDateTime(vals,parsedZone,opts,`HTTP`,opts)}static fromFormat(text,fmt,opts={}){if(isUndefined(text)||isUndefined(fmt))throw new InvalidArgumentError(`fromFormat requires an input string and a format`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0}),[vals,parsedZone,specificOffset,invalid$1]=parseFromTokens(localeToUse,text,fmt);return invalid$1?DateTime.invalid(invalid$1):parseDataToDateTime(vals,parsedZone,opts,`format ${fmt}`,text,specificOffset)}static fromString(text,fmt,opts={}){return DateTime.fromFormat(text,fmt,opts)}static fromSQL(text,opts={}){let[vals,parsedZone]=parseSQL(text);return parseDataToDateTime(vals,parsedZone,opts,`SQL`,text)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the DateTime is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(invalid$1);return new DateTime({invalid:invalid$1})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(formatOpts,localeOpts={}){let tokenList=formatOptsToTokens(formatOpts,Locale.fromObject(localeOpts));return tokenList?tokenList.map(t$5=>t$5?t$5.val:null).join(``):null}static expandFormat(fmt,localeOpts={}){let expanded=expandMacroTokens(Formatter.parseFormat(fmt),Locale.fromObject(localeOpts));return expanded.map(t$5=>t$5.val).join(``)}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(unit){return this[unit]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let dayMs=864e5,minuteMs=6e4,localTS=objToLocalTS(this.c),oEarlier=this.zone.offset(localTS-dayMs),oLater=this.zone.offset(localTS+dayMs),o1=this.zone.offset(localTS-oEarlier*minuteMs),o2=this.zone.offset(localTS-oLater*minuteMs);if(o1===o2)return[this];let ts1=localTS-o1*minuteMs,ts2=localTS-o2*minuteMs,c1=tsToObj(ts1,o1),c2=tsToObj(ts2,o2);return c1.hour===c2.hour&&c1.minute===c2.minute&&c1.second===c2.second&&c1.millisecond===c2.millisecond?[clone(this,{ts:ts1}),clone(this,{ts:ts2})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(opts={}){let{locale,numberingSystem,calendar}=Formatter.create(this.loc.clone(opts),opts).resolvedOptions(this);return{locale,numberingSystem,outputCalendar:calendar}}toUTC(offset$2=0,opts={}){return this.setZone(FixedOffsetZone.instance(offset$2),opts)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(zone,{keepLocalTime=!1,keepCalendarTime=!1}={}){if(zone=normalizeZone(zone,Settings.defaultZone),zone.equals(this.zone))return this;if(zone.isValid){let newTS=this.ts;if(keepLocalTime||keepCalendarTime){let offsetGuess=zone.offset(this.ts),asObj=this.toObject();[newTS]=objToTS(asObj,offsetGuess,zone)}return clone(this,{ts:newTS,zone})}else return DateTime.invalid(unsupportedZone(zone))}reconfigure({locale,numberingSystem,outputCalendar}={}){let loc=this.loc.clone({locale,numberingSystem,outputCalendar});return clone(this,{loc})}setLocale(locale){return this.reconfigure({locale})}set(values){if(!this.isValid)return this;let normalized=normalizeObject(values,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,this.loc),settingWeekStuff=!isUndefined(normalized.weekYear)||!isUndefined(normalized.weekNumber)||!isUndefined(normalized.weekday),containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let mixed;settingWeekStuff?mixed=weekToGregorian({...gregorianToWeek(this.c,minDaysInFirstWeek,startOfWeek),...normalized},minDaysInFirstWeek,startOfWeek):isUndefined(normalized.ordinal)?(mixed={...this.toObject(),...normalized},isUndefined(normalized.day)&&(mixed.day=Math.min(daysInMonth(mixed.year,mixed.month),mixed.day))):mixed=ordinalToGregorian({...gregorianToOrdinal(this.c),...normalized});let[ts,o]=objToTS(mixed,this.o,this.zone);return clone(this,{ts,o})}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return clone(this,adjustTime(this,dur))}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration).negate();return clone(this,adjustTime(this,dur))}startOf(unit,{useLocaleWeeks=!1}={}){if(!this.isValid)return this;let o={},normalizedUnit=Duration.normalizeUnit(unit);switch(normalizedUnit){case`years`:o.month=1;case`quarters`:case`months`:o.day=1;case`weeks`:case`days`:o.hour=0;case`hours`:o.minute=0;case`minutes`:o.second=0;case`seconds`:o.millisecond=0;break}if(normalizedUnit===`weeks`)if(useLocaleWeeks){let startOfWeek=this.loc.getStartOfWeek(),{weekday}=this;weekday<startOfWeek&&(o.weekNumber=this.weekNumber-1),o.weekday=startOfWeek}else o.weekday=1;if(normalizedUnit===`quarters`){let q=Math.ceil(this.month/3);o.month=(q-1)*3+1}return this.set(o)}endOf(unit,opts){return this.isValid?this.plus({[unit]:1}).startOf(unit,opts).minus(1):this}toFormat(fmt,opts={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this,fmt):INVALID}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),formatOpts).formatDateTime(this):INVALID}toLocaleParts(opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),opts).formatDateTimeParts(this):[]}toISO({format=`extended`,suppressSeconds=!1,suppressMilliseconds=!1,includeOffset=!0,extendedZone=!1,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let ext=format===`extended`,c$1=toISODate(this,ext,precision);return orderedUnits.indexOf(precision)>=3&&(c$1+=`T`),c$1+=toISOTime(this,ext,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision),c$1}toISODate({format=`extended`,precision=`day`}={}){return this.isValid?toISODate(this,format===`extended`,normalizeUnit(precision)):null}toISOWeekDate(){return toTechFormat(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds=!1,suppressSeconds=!1,includeOffset=!0,includePrefix=!1,extendedZone=!1,format=`extended`,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let c$1=includePrefix&&orderedUnits.indexOf(precision)>=3?`T`:``;return c$1+toISOTime(this,format===`extended`,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision)}toRFC2822(){return toTechFormat(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset=!0,includeZone=!1,includeOffsetSpace=!0}={}){let fmt=`HH:mm:ss.SSS`;return(includeZone||includeOffset)&&(includeOffsetSpace&&(fmt+=` `),includeZone?fmt+=`z`:includeOffset&&(fmt+=`ZZ`)),toTechFormat(this,fmt,!0)}toSQL(opts={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(opts)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(opts={}){if(!this.isValid)return{};let base={...this.c};return opts.includeConfig&&(base.outputCalendar=this.outputCalendar,base.numberingSystem=this.loc.numberingSystem,base.locale=this.loc.locale),base}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(otherDateTime,unit=`milliseconds`,opts={}){if(!this.isValid||!otherDateTime.isValid)return Duration.invalid(`created by diffing an invalid DateTime`);let durOpts={locale:this.locale,numberingSystem:this.numberingSystem,...opts},units=maybeArray(unit).map(Duration.normalizeUnit),otherIsLater=otherDateTime.valueOf()>this.valueOf(),earlier=otherIsLater?this:otherDateTime,later=otherIsLater?otherDateTime:this,diffed=diff$2(earlier,later,units,durOpts);return otherIsLater?diffed.negate():diffed}diffNow(unit=`milliseconds`,opts={}){return this.diff(DateTime.now(),unit,opts)}until(otherDateTime){return this.isValid?Interval.fromDateTimes(this,otherDateTime):this}hasSame(otherDateTime,unit,opts){if(!this.isValid)return!1;let inputMs=otherDateTime.valueOf(),adjustedToZone=this.setZone(otherDateTime.zone,{keepLocalTime:!0});return adjustedToZone.startOf(unit,opts)<=inputMs&&inputMs<=adjustedToZone.endOf(unit,opts)}equals(other){return this.isValid&&other.isValid&&this.valueOf()===other.valueOf()&&this.zone.equals(other.zone)&&this.loc.equals(other.loc)}toRelative(options={}){if(!this.isValid)return null;let base=options.base||DateTime.fromObject({},{zone:this.zone}),padding=options.padding?this<base?-options.padding:options.padding:0,units=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],unit=options.unit;return Array.isArray(options.unit)&&(units=options.unit,unit=void 0),diffRelative(base,this.plus(padding),{...options,numeric:`always`,units,unit})}toRelativeCalendar(options={}){return this.isValid?diffRelative(options.base||DateTime.fromObject({},{zone:this.zone}),this,{...options,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`min requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.min)}static max(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`max requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.max)}static fromFormatExplain(text,fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return explainFromTokens(localeToUse,text,fmt)}static fromStringExplain(text,fmt,options={}){return DateTime.fromFormatExplain(text,fmt,options)}static buildFormatParser(fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return new TokenParser(localeToUse,fmt)}static fromFormatParser(text,formatParser,opts={}){if(isUndefined(text)||isUndefined(formatParser))throw new InvalidArgumentError(`fromFormatParser requires an input string and a format parser`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});if(!localeToUse.equals(formatParser.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${localeToUse}, but the format parser was created for ${formatParser.locale}`);let{result,zone,specificOffset,invalidReason}=formatParser.explainFromTokens(text);return invalidReason?DateTime.invalid(invalidReason):parseDataToDateTime(result,zone,opts,`format ${formatParser.format}`,text,specificOffset)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(dateTimeish){if(DateTime.isDateTime(dateTimeish))return dateTimeish;if(dateTimeish&&dateTimeish.valueOf&&isNumber(dateTimeish.valueOf()))return DateTime.fromJSDate(dateTimeish);if(dateTimeish&&typeof dateTimeish==`object`)return DateTime.fromObject(dateTimeish);throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`)}var require_dayjs_min=__commonJSMin((exports,module)=>{(function(t$5,e){typeof exports==`object`&&module!==void 0?module.exports=e():typeof define==`function`&&define.amd?define(e):(t$5=typeof globalThis<`u`?globalThis:t$5||self).dayjs=e()})(exports,function(){"use strict";var t$5=1e3,e=6e4,n$2=36e5,r=`millisecond`,i$4=`second`,s$2=`minute`,u=`hour`,a=`day`,o=`week`,c$1=`month`,f=`quarter`,h=`year`,d=`date`,l$2=`Invalid Date`,$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M$1={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(t$6){var e$1=[`th`,`st`,`nd`,`rd`],n$3=t$6%100;return`[`+t$6+(e$1[(n$3-20)%10]||e$1[n$3]||e$1[0])+`]`}},m=function(t$6,e$1,n$3){var r$1=String(t$6);return!r$1||r$1.length>=e$1?t$6:``+Array(e$1+1-r$1.length).join(n$3)+t$6},v={s:m,z:function(t$6){var e$1=-t$6.utcOffset(),n$3=Math.abs(e$1),r$1=Math.floor(n$3/60),i$5=n$3%60;return(e$1<=0?`+`:`-`)+m(r$1,2,`0`)+`:`+m(i$5,2,`0`)},m:function t$6(e$1,n$3){if(e$1.date()<n$3.date())return-t$6(n$3,e$1);var r$1=12*(n$3.year()-e$1.year())+(n$3.month()-e$1.month()),i$5=e$1.clone().add(r$1,c$1),s$3=n$3-i$5<0,u$1=e$1.clone().add(r$1+(s$3?-1:1),c$1);return+(-(r$1+(n$3-i$5)/(s$3?i$5-u$1:u$1-i$5))||0)},a:function(t$6){return t$6<0?Math.ceil(t$6)||0:Math.floor(t$6)},p:function(t$6){return{M:c$1,y:h,w:o,d:a,D:d,h:u,m:s$2,s:i$4,ms:r,Q:f}[t$6]||String(t$6||``).toLowerCase().replace(/s$/,``)},u:function(t$6){return t$6===void 0}},g$2=`en`,D={};D[g$2]=M$1;var p=`$isDayjsObject`,S=function(t$6){return t$6 instanceof _||!(!t$6||!t$6[p])},w=function t$6(e$1,n$3,r$1){var i$5;if(!e$1)return g$2;if(typeof e$1==`string`){var s$3=e$1.toLowerCase();D[s$3]&&(i$5=s$3),n$3&&(D[s$3]=n$3,i$5=s$3);var u$1=e$1.split(`-`);if(!i$5&&u$1.length>1)return t$6(u$1[0])}else{var a$1=e$1.name;D[a$1]=e$1,i$5=a$1}return!r$1&&i$5&&(g$2=i$5),i$5||!r$1&&g$2},O=function(t$6,e$1){if(S(t$6))return t$6.clone();var n$3=typeof e$1==`object`?e$1:{};return n$3.date=t$6,n$3.args=arguments,new _(n$3)},b=v;b.l=w,b.i=S,b.w=function(t$6,e$1){return O(t$6,{locale:e$1.$L,utc:e$1.$u,x:e$1.$x,$offset:e$1.$offset})};var _=function(){function M$2(t$6){this.$L=w(t$6.locale,null,!0),this.parse(t$6),this.$x=this.$x||t$6.x||{},this[p]=!0}var m$1=M$2.prototype;return m$1.parse=function(t$6){this.$d=function(t$7){var e$1=t$7.date,n$3=t$7.utc;if(e$1===null)return new Date(NaN);if(b.u(e$1))return new Date;if(e$1 instanceof Date)return new Date(e$1);if(typeof e$1==`string`&&!/Z$/i.test(e$1)){var r$1=e$1.match($);if(r$1){var i$5=r$1[2]-1||0,s$3=(r$1[7]||`0`).substring(0,3);return n$3?new Date(Date.UTC(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)):new Date(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)}}return new Date(e$1)}(t$6),this.init()},m$1.init=function(){var t$6=this.$d;this.$y=t$6.getFullYear(),this.$M=t$6.getMonth(),this.$D=t$6.getDate(),this.$W=t$6.getDay(),this.$H=t$6.getHours(),this.$m=t$6.getMinutes(),this.$s=t$6.getSeconds(),this.$ms=t$6.getMilliseconds()},m$1.$utils=function(){return b},m$1.isValid=function(){return this.$d.toString()!==l$2},m$1.isSame=function(t$6,e$1){var n$3=O(t$6);return this.startOf(e$1)<=n$3&&n$3<=this.endOf(e$1)},m$1.isAfter=function(t$6,e$1){return O(t$6)<this.startOf(e$1)},m$1.isBefore=function(t$6,e$1){return this.endOf(e$1)<O(t$6)},m$1.$g=function(t$6,e$1,n$3){return b.u(t$6)?this[e$1]:this.set(n$3,t$6)},m$1.unix=function(){return Math.floor(this.valueOf()/1e3)},m$1.valueOf=function(){return this.$d.getTime()},m$1.startOf=function(t$6,e$1){var n$3=this,r$1=!!b.u(e$1)||e$1,f$1=b.p(t$6),l$3=function(t$7,e$2){var i$5=b.w(n$3.$u?Date.UTC(n$3.$y,e$2,t$7):new Date(n$3.$y,e$2,t$7),n$3);return r$1?i$5:i$5.endOf(a)},$$1=function(t$7,e$2){return b.w(n$3.toDate()[t$7].apply(n$3.toDate(`s`),(r$1?[0,0,0,0]:[23,59,59,999]).slice(e$2)),n$3)},y$1=this.$W,M$3=this.$M,m$2=this.$D,v$1=`set`+(this.$u?`UTC`:``);switch(f$1){case h:return r$1?l$3(1,0):l$3(31,11);case c$1:return r$1?l$3(1,M$3):l$3(0,M$3+1);case o:var g$3=this.$locale().weekStart||0,D$1=(y$1<g$3?y$1+7:y$1)-g$3;return l$3(r$1?m$2-D$1:m$2+(6-D$1),M$3);case a:case d:return $$1(v$1+`Hours`,0);case u:return $$1(v$1+`Minutes`,1);case s$2:return $$1(v$1+`Seconds`,2);case i$4:return $$1(v$1+`Milliseconds`,3);default:return this.clone()}},m$1.endOf=function(t$6){return this.startOf(t$6,!1)},m$1.$set=function(t$6,e$1){var n$3,o$1=b.p(t$6),f$1=`set`+(this.$u?`UTC`:``),l$3=(n$3={},n$3[a]=f$1+`Date`,n$3[d]=f$1+`Date`,n$3[c$1]=f$1+`Month`,n$3[h]=f$1+`FullYear`,n$3[u]=f$1+`Hours`,n$3[s$2]=f$1+`Minutes`,n$3[i$4]=f$1+`Seconds`,n$3[r]=f$1+`Milliseconds`,n$3)[o$1],$$1=o$1===a?this.$D+(e$1-this.$W):e$1;if(o$1===c$1||o$1===h){var y$1=this.clone().set(d,1);y$1.$d[l$3]($$1),y$1.init(),this.$d=y$1.set(d,Math.min(this.$D,y$1.daysInMonth())).$d}else l$3&&this.$d[l$3]($$1);return this.init(),this},m$1.set=function(t$6,e$1){return this.clone().$set(t$6,e$1)},m$1.get=function(t$6){return this[b.p(t$6)]()},m$1.add=function(r$1,f$1){var d$1,l$3=this;r$1=Number(r$1);var $$1=b.p(f$1),y$1=function(t$6){var e$1=O(l$3);return b.w(e$1.date(e$1.date()+Math.round(t$6*r$1)),l$3)};if($$1===c$1)return this.set(c$1,this.$M+r$1);if($$1===h)return this.set(h,this.$y+r$1);if($$1===a)return y$1(1);if($$1===o)return y$1(7);var M$3=(d$1={},d$1[s$2]=e,d$1[u]=n$2,d$1[i$4]=t$5,d$1)[$$1]||1,m$2=this.$d.getTime()+r$1*M$3;return b.w(m$2,this)},m$1.subtract=function(t$6,e$1){return this.add(-1*t$6,e$1)},m$1.format=function(t$6){var e$1=this,n$3=this.$locale();if(!this.isValid())return n$3.invalidDate||l$2;var r$1=t$6||`YYYY-MM-DDTHH:mm:ssZ`,i$5=b.z(this),s$3=this.$H,u$1=this.$m,a$1=this.$M,o$1=n$3.weekdays,c$2=n$3.months,f$1=n$3.meridiem,h$1=function(t$7,n$4,i$6,s$4){return t$7&&(t$7[n$4]||t$7(e$1,r$1))||i$6[n$4].slice(0,s$4)},d$1=function(t$7){return b.s(s$3%12||12,t$7,`0`)},$$1=f$1||function(t$7,e$2,n$4){var r$2=t$7<12?`AM`:`PM`;return n$4?r$2.toLowerCase():r$2};return r$1.replace(y,function(t$7,r$2){return r$2||function(t$8){switch(t$8){case`YY`:return String(e$1.$y).slice(-2);case`YYYY`:return b.s(e$1.$y,4,`0`);case`M`:return a$1+1;case`MM`:return b.s(a$1+1,2,`0`);case`MMM`:return h$1(n$3.monthsShort,a$1,c$2,3);case`MMMM`:return h$1(c$2,a$1);case`D`:return e$1.$D;case`DD`:return b.s(e$1.$D,2,`0`);case`d`:return String(e$1.$W);case`dd`:return h$1(n$3.weekdaysMin,e$1.$W,o$1,2);case`ddd`:return h$1(n$3.weekdaysShort,e$1.$W,o$1,3);case`dddd`:return o$1[e$1.$W];case`H`:return String(s$3);case`HH`:return b.s(s$3,2,`0`);case`h`:return d$1(1);case`hh`:return d$1(2);case`a`:return $$1(s$3,u$1,!0);case`A`:return $$1(s$3,u$1,!1);case`m`:return String(u$1);case`mm`:return b.s(u$1,2,`0`);case`s`:return String(e$1.$s);case`ss`:return b.s(e$1.$s,2,`0`);case`SSS`:return b.s(e$1.$ms,3,`0`);case`Z`:return i$5}return null}(t$7)||i$5.replace(`:`,``)})},m$1.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m$1.diff=function(r$1,d$1,l$3){var $$1,y$1=this,M$3=b.p(d$1),m$2=O(r$1),v$1=(m$2.utcOffset()-this.utcOffset())*e,g$3=this-m$2,D$1=function(){return b.m(y$1,m$2)};switch(M$3){case h:$$1=D$1()/12;break;case c$1:$$1=D$1();break;case f:$$1=D$1()/3;break;case o:$$1=(g$3-v$1)/6048e5;break;case a:$$1=(g$3-v$1)/864e5;break;case u:$$1=g$3/n$2;break;case s$2:$$1=g$3/e;break;case i$4:$$1=g$3/t$5;break;default:$$1=g$3}return l$3?$$1:b.a($$1)},m$1.daysInMonth=function(){return this.endOf(c$1).$D},m$1.$locale=function(){return D[this.$L]},m$1.locale=function(t$6,e$1){if(!t$6)return this.$L;var n$3=this.clone(),r$1=w(t$6,e$1,!0);return r$1&&(n$3.$L=r$1),n$3},m$1.clone=function(){return b.w(this.$d,this)},m$1.toDate=function(){return new Date(this.valueOf())},m$1.toJSON=function(){return this.isValid()?this.toISOString():null},m$1.toISOString=function(){return this.$d.toISOString()},m$1.toString=function(){return this.$d.toUTCString()},M$2}(),k=_.prototype;return O.prototype=k,[[`$ms`,r],[`$s`,i$4],[`$m`,s$2],[`$H`,u],[`$W`,a],[`$M`,c$1],[`$y`,h],[`$D`,d]].forEach(function(t$6){k[t$6[1]]=function(e$1){return this.$g(e$1,t$6[0],t$6[1])}}),O.extend=function(t$6,e$1){return t$6.$i||(t$6(e$1,_,O),t$6.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t$6){return O(1e3*t$6)},O.en=D[g$2],O.Ls=D,O.p={},O})});const isInstanceOf=(value,type,ctor)=>{if(ctor!==void 0&&value instanceof ctor||ctor!==void 0&&typeof ctor[Symbol.hasInstance]==`function`&&ctor[Symbol.hasInstance](value))return!0;if(typeof value==`object`&&value){let valueWithConstructor=value,constructorName=valueWithConstructor.constructor?.name;return constructorName===type}return!1},isLuxonDateTime=value=>value instanceof DateTime?!0:typeof value!=`object`||!value||!(`isLuxonDateTime`in value)?!1:value.isLuxonDateTime===!0,isPlainObject=value=>typeof value==`object`&&!!value&&!Array.isArray(value),isDateObjectUnits=value=>{if(!isPlainObject(value))return!1;let keys=Object.keys(value);if(keys.length===0)return!1;let valids=[`year`,`month`,`day`,`ordinal`,`weekYear`,`localWeekYear`,`weekNumber`,`localWeekNumber`,`weekday`,`localWeekday`,`hour`,`minute`,`second`,`millisecond`],invalidKeys=keys.filter(key=>!valids.includes(key));return invalidKeys.length>0?!1:keys.every(key=>{let val=value[key];return typeof val==`number`||val===void 0})};var import_dayjs_min=__toESM(require_dayjs_min());Settings.defaultZone=`utc`,Settings.defaultLocale=`en`,Settings.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},Settings.throwOnInvalid=!1;const removeComments=str=>(str=str.replace(/\/\/.*$/gm,``),str=str.replace(/\/\*[\s\S]*?\*\//g,``),str),extractFunctionBody=fn$1=>{let fnString=fn$1.toString();if(fnString.includes(`[native code]`))throw Error(`Cannot extract body from native function`);let cleanedString=removeComments(fnString),arrowMatch=cleanedString.match(/^\s*(?:async\s+)?(?:\([^)]*\)|[^=]+)\s*=>\s*(.+)$/s);if(arrowMatch&&!arrowMatch[1].trim().startsWith(`{`)){let expression=arrowMatch[1].trim().replace(/;?\s*$/,``);if(expression.startsWith(`(`)&&expression.endsWith(`)`)){let unwrapped=expression.slice(1,-1).trim();if(unwrapped.startsWith(`{`)&&unwrapped.endsWith(`}`))return`return ${unwrapped}`}return`return ${expression}`}let braceCount=0,inString=!1,stringChar=``,inTemplate=!1,escaped=!1,firstBrace=-1,lastBrace=-1;for(let[i$4,char]of Array.from(cleanedString).entries()){if(escaped){escaped=!1;continue}if(char===`\\`){escaped=!0;continue}if(!inString&&!inTemplate){if(char===`"`||char===`'`){inString=!0,stringChar=char;continue}if(char==="`"){inTemplate=!0;continue}}else if(inString&&char===stringChar){inString=!1;continue}else if(inTemplate&&char==="`"){inTemplate=!1;continue}if(!inString&&!inTemplate){if(char===`{`)firstBrace===-1&&(firstBrace=i$4),braceCount++;else if(char===`}`&&(braceCount--,braceCount===0&&firstBrace!==-1)){lastBrace=i$4;break}}}if(firstBrace===-1||lastBrace===-1||firstBrace>=lastBrace)throw Error(`Unable to extract function body - no valid braces found`);let body=cleanedString.slice(firstBrace+1,lastBrace).trim();if(/\breturn\b/.test(body))return body;let beforeBrace=cleanedString.slice(0,firstBrace).trim();if(beforeBrace.endsWith(`=>`)||beforeBrace.endsWith(`=> (`)||beforeBrace.endsWith(`=>(`)){let objectLiteralPattern=/^\s*(?:[a-zA-Z_$][\w$]*\s*:|["'`][^"'`]+["'`]\s*:|get\s+|set\s+|\[)/;if(objectLiteralPattern.test(body))return`return {${body}}`}return`return ${body}`},compileCallback=body=>{try{return Function(`dt`,`helpers`,body)}catch(error){throw Error(`Failed to compile callback: ${error instanceof Error?error.message:String(error)}`)}},messages$2={"datetime.base":`{{#label}} must be a datetime value`,"datetime.exactly":`{{#label}} must be a datetime exactly equal to {{#limit}}`,"datetime.equals":`{{#label}} must be a datetime equal to {{#limit}}`,"datetime.after":`{{#label}} must be a datetime after {{#limit}}`,"datetime.greater":`{{#label}} must be a datetime after {{#limit}}`,"datetime.before":`{{#label}} must be a datetime before {{#limit}}`,"datetime.less":`{{#label}} must be a datetime before {{#limit}}`,"datetime.afterOrEqual":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.min":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.beforeOrEqual":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.max":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.weekend":`{{#label}} is not a weekend`,"datetime.weekday":`{{#label}} is not a weekday`},compare$12=(value,limit,operator)=>{switch(value=toDateTime(value),limit=toDateTime(limit),operator){case`===`:return value.equals(limit);case`=`:return value.hasSame(limit,`millisecond`);case`>`:return value>limit;case`<`:return value<limit;case`>=`:return value>=limit;case`<=`:return value<=limit;default:return!1}},backToDateTime=value=>value instanceof DateTime?value:DateTime.fromObject(value.c,{zone:value.zone}).setLocale(value.loc.locale),toDateTime=(value,format)=>{if(isLuxonDateTime(value))return value instanceof DateTime?value:backToDateTime(value);if(isInstanceOf(value,`Date`,Date))return DateTime.fromJSDate(value);if(isInstanceOf(value,`Dayjs`)||import_dayjs_min.default.isDayjs(value))return DateTime.fromJSDate(value.toDate());if(isDateObjectUnits(value))return DateTime.fromObject(value,{zone:`utc`});if(typeof value==`number`){let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}if(typeof value==`string`){if(format){let dateTime=DateTime.fromFormat(value,format,{zone:`utc`});if(dateTime.isValid)return dateTime}let isoDateTime=DateTime.fromISO(value,{setZone:!0});if(isoDateTime.isValid)return isoDateTime;let luxonMethods=[DateTime.fromRFC2822,DateTime.fromHTTP,DateTime.fromSQL];for(let method of luxonMethods){let dateTime=method(value,{zone:`utc`});if(dateTime.isValid)return dateTime}let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}return!1},coerce$2=(value,helpers)=>{let converted=toDateTime(value);if(converted){let{schema,prefs}=helpers;if(prefs.convert){let returnable=converted;if(schema._flags.setZone&&Array.isArray(schema._flags.setZone))if(Array.isArray(schema._flags.setZone[0]))Array.from(schema._flags.setZone).forEach(f=>{if(!f)return;let[zone,opts]=Array.from(f);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}});else{let[zone,opts]=Array.from(schema._flags.setZone);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}}if(schema._flags.setLocale&&(returnable=returnable.setLocale(schema._flags.setLocale)),schema._flags.toFormat){if(Array.isArray(schema._flags.toFormat)){let fmt=Array.from(schema._flags.toFormat),method=fmt.shift(),processedArgs=fmt.map(arg=>{if(typeof arg==`string`&&arg.includes(`return`)){let compiledFn=compileCallback(arg);return compiledFn(returnable,helpers)}return arg});returnable=returnable[method](...processedArgs)}else if(typeof schema._flags.toFormat==`string`)if(schema._flags.toFormat.includes(`return`)){let compiledFn=compileCallback(schema._flags.toFormat),result=compiledFn(returnable,helpers);returnable=returnable.toFormat(result)}else returnable=returnable.toFormat(schema._flags.toFormat)}return{value:returnable}}return{value:converted}}return{value,errors:[helpers.error(`datetime.base`,{value:String(value)})]}},datetime=function(joi){return{type:`datetime`,base:joi.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:coerce$2},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let src$1=toDateTime(value),threshold=toDateTime(limit);if(!src$1||!threshold)return helpers.error(`datetime.base`,{value:isLuxonDateTime(value)?value.toLocaleString(DateTime.DATETIME_MED):String(value)});let valid$2=compare$12(src$1,threshold,operator);return valid$2?value:helpers.error(`datetime.`+name$1,{limit:threshold.toLocaleString(DateTime.DATETIME_MED),value:src$1.toLocaleString(DateTime.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:value=>isLuxonDateTime(toDateTime(value)),message:`must be a datetime`}]},exactly:{method(limit){return this.$_addRule({name:`exactly`,method:`compare`,args:{limit},operator:`===`})}},equals:{method(limit){return this.$_addRule({name:`equals`,method:`compare`,args:{limit},operator:`=`})}},after:{method(limit){return this.$_addRule({name:`after`,method:`compare`,args:{limit},operator:`>`})}},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},before:{method(limit){return this.$_addRule({name:`before`,method:`compare`,args:{limit},operator:`<`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},afterOrEqual:{method(limit){return this.$_addRule({name:`afterOrEqual`,method:`compare`,args:{limit},operator:`>=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},beforeOrEqual:{method(limit){return this.$_addRule({name:`beforeOrEqual`,method:`compare`,args:{limit},operator:`<=`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},weekend:{method(){return this.$_addRule({name:`weekend`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?value:helpers.error(`datetime.weekend`,{value:confirmable.toLocaleString(DateTime.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?helpers.error(`datetime.weekday`,{value:confirmable.toLocaleString(DateTime.DATE_MED)}):value}},toUTC:{method(){return this.$_setFlag(`setZone`,[`utc`])}},toLocal:{method(){return this.$_setFlag(`setZone`,[`local`])}},setZone:{method(zone,opts){return this.$_setFlag(`setZone`,[zone,opts])}},toFormat:{method(format){let processedFormat=typeof format==`function`?extractFunctionBody(format):format;return this.$_setFlag(`toFormat`,processedFormat,{clone:!0})}},toLocalizedString:{method(formatOpts){let processedOpts=typeof formatOpts==`function`?extractFunctionBody(formatOpts):formatOpts;return this.$_setFlag(`toFormat`,[`toLocaleString`,processedOpts],{clone:!0})}},toISO:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISO`,processedOpts]:[`toISO`],{clone:!0})}},toISODate:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISODate`,processedOpts]:[`toISODate`],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag(`toFormat`,[`toISOWeekDate`],{clone:!0})}},toISOTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISOTime`,processedOpts]:[`toISOTime`],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag(`toFormat`,[`toRFC2822`],{clone:!0})}},toHTTP:{method(){return this.$_setFlag(`toFormat`,[`toHTTP`],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag(`toFormat`,[`toSQLDate`],{clone:!0})}},toSQLTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQLTime`,processedOpts]:[`toSQLTime`],{clone:!0})}},toSQL:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQL`,processedOpts]:[`toSQL`],{clone:!0})}},toMillis:{method(){return this.$_setFlag(`toFormat`,[`toMillis`],{clone:!0})}},toSeconds:{method(){return this.$_setFlag(`toFormat`,[`toSeconds`],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag(`toFormat`,[`toUnixInteger`],{clone:!0})}},toJSON:{method(){return this.$_setFlag(`toFormat`,[`toJSON`],{clone:!0})}},toBSON:{method(){return this.$_setFlag(`toFormat`,[`toBSON`],{clone:!0})}},toObject:{method(opts){let config=typeof opts==`function`?extractFunctionBody(opts):opts?.includeConfig===void 0?{includeConfig:!1}:{includeConfig:opts.includeConfig};return this.$_setFlag(`toFormat`,[`toObject`,config],{clone:!0})}},toJSDate:{method(){return this.$_setFlag(`toFormat`,[`toJSDate`],{clone:!0})}},toRelative:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toRelative`,processedOpts]:[`toRelative`],{clone:!0})}},setLocale:{method(locale){return this.$_setFlag(`setLocale`,locale)}}},messages:messages$2}},generate=(root,schema,args$1)=>(schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)),knownMessages={"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`,"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`,"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`,"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`,"boolean.base":`{{#label}} must be a boolean`,"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`,"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`,"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`,"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`,"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`,"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`,...messages$1,...messages$2,...messages,...knexMessages};countries.forEach((name$1,iso)=>{knownMessages[`country.${iso}`]=name$1});let globalI18nCallback;const i18n=toPatch=>{let root=toPatch,joi=Object.assign({},root),joiTypes=joi.types(),originalMessages=new Map;Object.entries(knownMessages).forEach(([key,value])=>{originalMessages.set(key,value)});let doUpdateI18n=callback=>{globalI18nCallback=callback;let $t=term=>{if(globalI18nCallback)try{let ret=globalI18nCallback(term);if(typeof ret==`string`)return ret}catch{}return originalMessages.get(term)||term},applyMessagesToSchema=(schema,messages$3)=>schema.messages({"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...messages$3});Object.defineProperty(root,`$i18n`,{value:term=>$t(term),writable:!1,enumerable:!0,configurable:!0}),Object.keys(joiTypes).forEach(type=>{let t$5=type;if(typeof root[t$5]!=`function`)return;let baseSchema=root[t$5]();root[t$5]=(...args$1)=>{let schema=generate(root,baseSchema,args$1),knexTranslations=Object.fromEntries(Object.entries(knexMessages).map(([k])=>[k,$t(k)]));switch(type){case`alternatives`:return applyMessagesToSchema(schema,{"alternatives.all":$t(`alternatives.all`),"alternatives.any":$t(`alternatives.any`),"alternatives.match":$t(`alternatives.match`),"alternatives.one":$t(`alternatives.one`),"alternatives.types":$t(`alternatives.types`),...knexTranslations});case`any`:return applyMessagesToSchema(schema,{"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...knexTranslations});case`array`:return applyMessagesToSchema(schema,{"array.base":$t(`array.base`),"array.excludes":$t(`array.excludes`),"array.hasKnown":$t(`array.hasKnown`),"array.hasUnknown":$t(`array.hasUnknown`),"array.includes":$t(`array.includes`),"array.includesRequiredBoth":$t(`array.includesRequiredBoth`),"array.includesRequiredKnowns":$t(`array.includesRequiredKnowns`),"array.includesRequiredUnknowns":$t(`array.includesRequiredUnknowns`),"array.length":$t(`array.length`),"array.max":$t(`array.max`),"array.min":$t(`array.min`),"array.orderedLength":$t(`array.orderedLength`),"array.sort":$t(`array.sort`),"array.sort.mismatching":$t(`array.sort.mismatching`),"array.sort.unsupported":$t(`array.sort.unsupported`),"array.sparse":$t(`array.sparse`),"array.unique":$t(`array.unique`),...knexTranslations});case`binary`:return applyMessagesToSchema(schema,{"binary.base":$t(`binary.base`),"binary.length":$t(`binary.length`),"binary.max":$t(`binary.max`),"binary.min":$t(`binary.min`),...knexTranslations});case`boolean`:return applyMessagesToSchema(schema,{"boolean.base":$t(`boolean.base`),...knexTranslations});case`date`:return applyMessagesToSchema(schema,{"date.base":$t(`date.base`),"date.format":$t(`date.format`),"date.greater":$t(`date.greater`),"date.less":$t(`date.less`),"date.max":$t(`date.max`),"date.min":$t(`date.min`),"date.format.iso":$t(`date.format.iso`),"date.format.javascript":$t(`date.format.javascript`),"date.format.unix":$t(`date.format.unix`),...knexTranslations});case`function`:return applyMessagesToSchema(schema,{"function.arity":$t(`function.arity`),"function.class":$t(`function.class`),"function.maxArity":$t(`function.maxArity`),"function.minArity":$t(`function.minArity`),...knexTranslations});case`object`:case`keys`:return applyMessagesToSchema(schema,{"object.and":$t(`object.and`),"object.assert":$t(`object.assert`),"object.base":$t(`object.base`),"object.instance":$t(`object.instance`),"object.length":$t(`object.length`),"object.max":$t(`object.max`),"object.min":$t(`object.min`),"object.missing":$t(`object.missing`),"object.nand":$t(`object.nand`),"object.oxor":$t(`object.oxor`),"object.pattern.match":$t(`object.pattern.match`),"object.refType":$t(`object.refType`),"object.regex":$t(`object.regex`),"object.rename.multiple":$t(`object.rename.multiple`),"object.rename.override":$t(`object.rename.override`),"object.schema":$t(`object.schema`),"object.unknown":$t(`object.unknown`),"object.with":$t(`object.with`),"object.without":$t(`object.without`),"object.xor":$t(`object.xor`),...knexTranslations});case`number`:return applyMessagesToSchema(schema,{"number.base":$t(`number.base`),"number.greater":$t(`number.greater`),"number.infinity":$t(`number.infinity`),"number.integer":$t(`number.integer`),"number.less":$t(`number.less`),"number.max":$t(`number.max`),"number.min":$t(`number.min`),"number.multiple":$t(`number.multiple`),"number.negative":$t(`number.negative`),"number.port":$t(`number.port`),"number.positive":$t(`number.positive`),"number.precision":$t(`number.precision`),"number.unsafe":$t(`number.unsafe`),...knexTranslations});case`string`:return applyMessagesToSchema(schema,{"string.alphanum":$t(`string.alphanum`),"string.base":$t(`string.base`),"string.base64":$t(`string.base64`),"string.creditCard":$t(`string.creditCard`),"string.dataUri":$t(`string.dataUri`),"string.domain":$t(`string.domain`),"string.email":$t(`string.email`),"string.empty":$t(`string.empty`),"string.guid":$t(`string.guid`),"string.hex":$t(`string.hex`),"string.hexAlign":$t(`string.hexAlign`),"string.hostname":$t(`string.hostname`),"string.ip":$t(`string.ip`),"string.ipVersion":$t(`string.ipVersion`),"string.isoDate":$t(`string.isoDate`),"string.isoDuration":$t(`string.isoDuration`),"string.length":$t(`string.length`),"string.lowercase":$t(`string.lowercase`),"string.max":$t(`string.max`),"string.min":$t(`string.min`),"string.normalize":$t(`string.normalize`),"string.token":$t(`string.token`),"string.pattern.base":$t(`string.pattern.base`),"string.pattern.name":$t(`string.pattern.name`),"string.pattern.invert.base":$t(`string.pattern.invert.base`),"string.pattern.invert.name":$t(`string.pattern.invert.name`),"string.trim":$t(`string.trim`),"string.uri":$t(`string.uri`),"string.uriCustomScheme":$t(`string.uriCustomScheme`),"string.uriRelativeOnly":$t(`string.uriRelativeOnly`),"string.uppercase":$t(`string.uppercase`),...knexTranslations});case`symbol`:return applyMessagesToSchema(schema,{"symbol.base":$t(`symbol.base`),"symbol.map":$t(`symbol.map`),...knexTranslations});case`bigint`:return applyMessagesToSchema(schema,{"bigint.base":$t(`bigint.base`),"bigint.greater":$t(`bigint.greater`),"bigint.less":$t(`bigint.less`),"bigint.max":$t(`bigint.max`),"bigint.min":$t(`bigint.min`),"bigint.multiple":$t(`bigint.multiple`),"bigint.negative":$t(`bigint.negative`),"bigint.positive":$t(`bigint.positive`),...knexTranslations});case`datetime`:return applyMessagesToSchema(schema,{"datetime.base":$t(`datetime.base`),"datetime.exactly":$t(`datetime.exactly`),"datetime.equals":$t(`datetime.equals`),"datetime.after":$t(`datetime.after`),"datetime.greater":$t(`datetime.greater`),"datetime.before":$t(`datetime.before`),"datetime.less":$t(`datetime.less`),"datetime.afterOrEqual":$t(`datetime.afterOrEqual`),"datetime.min":$t(`datetime.min`),"datetime.beforeOrEqual":$t(`datetime.beforeOrEqual`),"datetime.max":$t(`datetime.max`),"datetime.weekend":$t(`datetime.weekend`),"datetime.weekday":$t(`datetime.weekday`),...knexTranslations});case`phone`:return applyMessagesToSchema(schema,{"phone.base":$t(`phone.base`),"phone.invalid":$t(`phone.invalid`),"phone.fixedLine":$t(`phone.fixedLine`),"phone.mobile":$t(`phone.mobile`),"phone.strictFixedLine":$t(`phone.strictFixedLine`),"phone.strictMobile":$t(`phone.strictMobile`),"phone.fixedLineOrMobile":$t(`phone.fixedLineOrMobile`),"phone.tollFree":$t(`phone.tollFree`),"phone.premiumRate":$t(`phone.premiumRate`),"phone.sharedCost":$t(`phone.sharedCost`),"phone.voip":$t(`phone.voip`),"phone.personalNumber":$t(`phone.personalNumber`),"phone.pager":$t(`phone.pager`),"phone.uan":$t(`phone.uan`),"phone.voicemail":$t(`phone.voicemail`),"phone.unknown":$t(`phone.unknown`),"phone.types":$t(`phone.types`),...knexTranslations});default:return applyMessagesToSchema(schema,{...knexTranslations})}}})};return Object.defineProperty(root,`$setI18n`,{value:callback=>(doUpdateI18n(callback),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$clearI18n`,{value:()=>(doUpdateI18n(),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$i18n`,{value:term=>{try{return originalMessages.get(term)||term}catch{return term}},writable:!1,enumerable:!0,configurable:!0}),root},patch=root=>(root=json(root),root=i18n(root),root);var require_constants=__commonJSMin((exports,module)=>{let SEMVER_SPEC_VERSION=`2.0.0`,MAX_LENGTH$2=256,MAX_SAFE_INTEGER$1=2**53-1||9007199254740991,MAX_SAFE_COMPONENT_LENGTH$1=16,MAX_SAFE_BUILD_LENGTH$1=MAX_LENGTH$2-6,RELEASE_TYPES=[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`];module.exports={MAX_LENGTH:MAX_LENGTH$2,MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH$1,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH$1,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),require_debug=__commonJSMin((exports,module)=>{init_dist();let debug$4=typeof process$1==`object`&&process$1.env&&process$1.env.NODE_DEBUG&&/\bsemver\b/i.test(process$1.env.NODE_DEBUG)?(...args$1)=>console.error(`SEMVER`,...args$1):()=>{};module.exports=debug$4}),require_re=__commonJSMin((exports,module)=>{let{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH:MAX_LENGTH$1}=require_constants(),debug$3=require_debug();exports=module.exports={};let re$4=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t$4=exports.t={},R=0,LETTERDASHNUMBER=`[a-zA-Z0-9-]`,safeRegexReplacements=[[`\\s`,1],[`\\d`,MAX_LENGTH$1],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max$3]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max$3}}`).split(`${token}+`).join(`${token}{1,${max$3}}`);return value},createToken=(name$1,value,isGlobal)=>{let safe=makeSafeRegex(value),index=R++;debug$3(name$1,index,value),t$4[name$1]=index,src[index]=value,safeSrc[index]=safe,re$4[index]=new RegExp(value,isGlobal?`g`:void 0),safeRe[index]=new RegExp(safe,isGlobal?`g`:void 0)};createToken(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),createToken(`NUMERICIDENTIFIERLOOSE`,`\\d+`),createToken(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`),createToken(`MAINVERSION`,`(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`),createToken(`MAINVERSIONLOOSE`,`(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASEIDENTIFIER`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`),createToken(`PRERELEASEIDENTIFIERLOOSE`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASE`,`(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`),createToken(`PRERELEASELOOSE`,`(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken(`BUILDIDENTIFIER`,`${LETTERDASHNUMBER}+`),createToken(`BUILD`,`(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`),createToken(`FULLPLAIN`,`v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`),createToken(`FULL`,`^${src[t$4.FULLPLAIN]}$`),createToken(`LOOSEPLAIN`,`[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`),createToken(`LOOSE`,`^${src[t$4.LOOSEPLAIN]}$`),createToken(`GTLT`,`((?:<|>)?=?)`),createToken(`XRANGEIDENTIFIERLOOSE`,`${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken(`XRANGEIDENTIFIER`,`${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`),createToken(`XRANGEPLAIN`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGEPLAINLOOSE`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`),createToken(`XRANGELOOSE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken(`COERCE`,`${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`),createToken(`COERCEFULL`,src[t$4.COERCEPLAIN]+`(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`),createToken(`COERCERTL`,src[t$4.COERCE],!0),createToken(`COERCERTLFULL`,src[t$4.COERCEFULL],!0),createToken(`LONETILDE`,`(?:~>?)`),createToken(`TILDETRIM`,`(\\s*)${src[t$4.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,createToken(`TILDE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`),createToken(`TILDELOOSE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`LONECARET`,`(?:\\^)`),createToken(`CARETTRIM`,`(\\s*)${src[t$4.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,createToken(`CARET`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`),createToken(`CARETLOOSE`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COMPARATORLOOSE`,`^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`),createToken(`COMPARATOR`,`^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`),createToken(`COMPARATORTRIM`,`(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,createToken(`HYPHENRANGE`,`^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`),createToken(`HYPHENRANGELOOSE`,`^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`),createToken(`STAR`,`(<|>)?=?\\s*\\*`),createToken(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),createToken(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}),require_parse_options=__commonJSMin((exports,module)=>{let looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$3=options=>options?typeof options==`object`?options:looseOption:emptyOpts;module.exports=parseOptions$3}),require_identifiers=__commonJSMin((exports,module)=>{let numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{if(typeof a==`number`&&typeof b==`number`)return a===b?0:a<b?-1:1;let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers$1(b,a);module.exports={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers}}),require_semver$1=__commonJSMin((exports,module)=>{let debug$2=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re$3,t:t$3}=require_re(),parseOptions$2=require_parse_options(),{compareIdentifiers}=require_identifiers();var SemVer$15=class SemVer$15{constructor(version$3,options){if(options=parseOptions$2(options),version$3 instanceof SemVer$15){if(version$3.loose===!!options.loose&&version$3.includePrerelease===!!options.includePrerelease)return version$3;version$3=version$3.version}else if(typeof version$3!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof version$3}".`);if(version$3.length>MAX_LENGTH)throw TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2(`SemVer`,version$3,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version$3.trim().match(options.loose?re$3[t$3.LOOSE]:re$3[t$3.FULL]);if(!m)throw TypeError(`Invalid Version: ${version$3}`);if(this.raw=version$3,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw TypeError(`Invalid patch version`);m[4]?this.prerelease=m[4].split(`.`).map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(other){if(debug$2(`SemVer.compare`,this.version,this.options,other),!(other instanceof SemVer$15)){if(typeof other==`string`&&other===this.version)return 0;other=new SemVer$15(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.major<other.major?-1:this.major>other.major?1:this.minor<other.minor?-1:this.minor>other.minor?1:this.patch<other.patch?-1:this.patch>other.patch?1:0}comparePre(other){if(other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i$4=0;do{let a=this.prerelease[i$4],b=other.prerelease[i$4];if(debug$2(`prerelease compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}compareBuild(other){other instanceof SemVer$15||(other=new SemVer$15(other,this.options));let i$4=0;do{let a=this.build[i$4],b=other.build[i$4];if(debug$2(`build compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}inc(release,identifier,identifierBase){if(release.startsWith(`pre`)){if(!identifier&&identifierBase===!1)throw Error(`invalid increment argument: identifier is empty`);if(identifier){let match$2=`-${identifier}`.match(this.options.loose?re$3[t$3.PRERELEASELOOSE]:re$3[t$3.PRERELEASE]);if(!match$2||match$2[1]!==identifier)throw Error(`invalid identifier: ${identifier}`)}}switch(release){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,identifier,identifierBase);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,identifier,identifierBase);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let base=Number(identifierBase)?1:0;if(this.prerelease.length===0)this.prerelease=[base];else{let i$4=this.prerelease.length;for(;--i$4>=0;)typeof this.prerelease[i$4]==`number`&&(this.prerelease[i$4]++,i$4=-2);if(i$4===-1){if(identifier===this.prerelease.join(`.`)&&identifierBase===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(base)}}if(identifier){let prerelease$2=[identifier,base];identifierBase===!1&&(prerelease$2=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease$2):this.prerelease=prerelease$2}break}default:throw Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}};module.exports=SemVer$15}),require_parse=__commonJSMin((exports,module)=>{let SemVer$14=require_semver$1(),parse$6=(version$3,options,throwErrors=!1)=>{if(version$3 instanceof SemVer$14)return version$3;try{return new SemVer$14(version$3,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse$6}),require_valid$1=__commonJSMin((exports,module)=>{let parse$5=require_parse(),valid$1=(version$3,options)=>{let v=parse$5(version$3,options);return v?v.version:null};module.exports=valid$1}),require_clean=__commonJSMin((exports,module)=>{let parse$4=require_parse(),clean$1=(version$3,options)=>{let s$2=parse$4(version$3.trim().replace(/^[=v]+/,``),options);return s$2?s$2.version:null};module.exports=clean$1}),require_inc=__commonJSMin((exports,module)=>{let SemVer$13=require_semver$1(),inc$1=(version$3,release,options,identifier,identifierBase)=>{typeof options==`string`&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer$13(version$3 instanceof SemVer$13?version$3.version:version$3,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc$1}),require_diff=__commonJSMin((exports,module)=>{let parse$3=require_parse(),diff$1=(version1,version2)=>{let v1=parse$3(version1,null,!0),v2=parse$3(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length,lowHasPre=!!lowVersion.prerelease.length;if(lowHasPre&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return`major`;if(lowVersion.compareMain(highVersion)===0)return lowVersion.minor&&!lowVersion.patch?`minor`:`patch`}let prefix=highHasPre?`pre`:``;return v1.major===v2.major?v1.minor===v2.minor?v1.patch===v2.patch?`prerelease`:prefix+`patch`:prefix+`minor`:prefix+`major`};module.exports=diff$1}),require_major=__commonJSMin((exports,module)=>{let SemVer$12=require_semver$1(),major$1=(a,loose)=>new SemVer$12(a,loose).major;module.exports=major$1}),require_minor=__commonJSMin((exports,module)=>{let SemVer$11=require_semver$1(),minor$1=(a,loose)=>new SemVer$11(a,loose).minor;module.exports=minor$1}),require_patch=__commonJSMin((exports,module)=>{let SemVer$10=require_semver$1(),patch$2=(a,loose)=>new SemVer$10(a,loose).patch;module.exports=patch$2}),require_prerelease=__commonJSMin((exports,module)=>{let parse$2=require_parse(),prerelease$1=(version$3,options)=>{let parsed=parse$2(version$3,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease$1}),require_compare=__commonJSMin((exports,module)=>{let SemVer$9=require_semver$1(),compare$11=(a,b,loose)=>new SemVer$9(a,loose).compare(new SemVer$9(b,loose));module.exports=compare$11}),require_rcompare=__commonJSMin((exports,module)=>{let compare$10=require_compare(),rcompare$1=(a,b,loose)=>compare$10(b,a,loose);module.exports=rcompare$1}),require_compare_loose=__commonJSMin((exports,module)=>{let compare$9=require_compare(),compareLoose$1=(a,b)=>compare$9(a,b,!0);module.exports=compareLoose$1}),require_compare_build=__commonJSMin((exports,module)=>{let SemVer$8=require_semver$1(),compareBuild$3=(a,b,loose)=>{let versionA=new SemVer$8(a,loose),versionB=new SemVer$8(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild$3}),require_sort=__commonJSMin((exports,module)=>{let compareBuild$2=require_compare_build(),sort$1=(list,loose)=>list.sort((a,b)=>compareBuild$2(a,b,loose));module.exports=sort$1}),require_rsort=__commonJSMin((exports,module)=>{let compareBuild$1=require_compare_build(),rsort$1=(list,loose)=>list.sort((a,b)=>compareBuild$1(b,a,loose));module.exports=rsort$1}),require_gt=__commonJSMin((exports,module)=>{let compare$8=require_compare(),gt$4=(a,b,loose)=>compare$8(a,b,loose)>0;module.exports=gt$4}),require_lt=__commonJSMin((exports,module)=>{let compare$7=require_compare(),lt$3=(a,b,loose)=>compare$7(a,b,loose)<0;module.exports=lt$3}),require_eq=__commonJSMin((exports,module)=>{let compare$6=require_compare(),eq$2=(a,b,loose)=>compare$6(a,b,loose)===0;module.exports=eq$2}),require_neq=__commonJSMin((exports,module)=>{let compare$5=require_compare(),neq$2=(a,b,loose)=>compare$5(a,b,loose)!==0;module.exports=neq$2}),require_gte=__commonJSMin((exports,module)=>{let compare$4=require_compare(),gte$3=(a,b,loose)=>compare$4(a,b,loose)>=0;module.exports=gte$3}),require_lte=__commonJSMin((exports,module)=>{let compare$3=require_compare(),lte$3=(a,b,loose)=>compare$3(a,b,loose)<=0;module.exports=lte$3}),require_cmp=__commonJSMin((exports,module)=>{let eq$1=require_eq(),neq$1=require_neq(),gt$3=require_gt(),gte$2=require_gte(),lt$2=require_lt(),lte$2=require_lte(),cmp$2=(a,op,b,loose)=>{switch(op){case`===`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a===b;case`!==`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a!==b;case``:case`=`:case`==`:return eq$1(a,b,loose);case`!=`:return neq$1(a,b,loose);case`>`:return gt$3(a,b,loose);case`>=`:return gte$2(a,b,loose);case`<`:return lt$2(a,b,loose);case`<=`:return lte$2(a,b,loose);default:throw TypeError(`Invalid operator: ${op}`)}};module.exports=cmp$2}),require_coerce=__commonJSMin((exports,module)=>{let SemVer$7=require_semver$1(),parse$1=require_parse(),{safeRe:re$2,t:t$2}=require_re(),coerce$1=(version$3,options)=>{if(version$3 instanceof SemVer$7)return version$3;if(typeof version$3==`number`&&(version$3=String(version$3)),typeof version$3!=`string`)return null;options||={};let match$2=null;if(!options.rtl)match$2=version$3.match(options.includePrerelease?re$2[t$2.COERCEFULL]:re$2[t$2.COERCE]);else{let coerceRtlRegex=options.includePrerelease?re$2[t$2.COERCERTLFULL]:re$2[t$2.COERCERTL],next;for(;(next=coerceRtlRegex.exec(version$3))&&(!match$2||match$2.index+match$2[0].length!==version$3.length);)(!match$2||next.index+next[0].length!==match$2.index+match$2[0].length)&&(match$2=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}if(match$2===null)return null;let major$2=match$2[2],minor$2=match$2[3]||`0`,patch$3=match$2[4]||`0`,prerelease$2=options.includePrerelease&&match$2[5]?`-${match$2[5]}`:``,build=options.includePrerelease&&match$2[6]?`+${match$2[6]}`:``;return parse$1(`${major$2}.${minor$2}.${patch$3}${prerelease$2}${build}`,options)};module.exports=coerce$1}),require_lrucache=__commonJSMin((exports,module)=>{var LRUCache=class{constructor(){this.max=1e3,this.map=new Map}get(key){let value=this.map.get(key);if(value!==void 0)return this.map.delete(key),this.map.set(key,value),value}delete(key){return this.map.delete(key)}set(key,value){let deleted=this.delete(key);if(!deleted&&value!==void 0){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}};module.exports=LRUCache}),require_range=__commonJSMin((exports,module)=>{let SPACE_CHARACTERS=/\s+/g;var Range$11=class Range$11{constructor(range,options){if(options=parseOptions$1(options),range instanceof Range$11)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range$11(range.raw,options);if(range instanceof Comparator$4)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS,` `),this.set=this.raw.split(`||`).map(r=>this.parseRange(r.trim())).filter(c$1=>c$1.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c$1=>!isNullSet(c$1[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c$1 of this.set)if(c$1.length===1&&isAny(c$1[0])){this.set=[c$1];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let i$4=0;i$4<this.set.length;i$4++){i$4>0&&(this.formatted+=`||`);let comps=this.set[i$4];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=` `),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){let memoOpts=(this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE),memoKey=memoOpts+`:`+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re$1[t$1.HYPHENRANGELOOSE]:re$1[t$1.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug$1(`hyphen replace`,range),range=range.replace(re$1[t$1.COMPARATORTRIM],comparatorTrimReplace),debug$1(`comparator trim`,range),range=range.replace(re$1[t$1.TILDETRIM],tildeTrimReplace),debug$1(`tilde trim`,range),range=range.replace(re$1[t$1.CARETTRIM],caretTrimReplace),debug$1(`caret trim`,range);let rangeList=range.split(` `).map(comp=>parseComparator(comp,this.options)).join(` `).split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug$1(`loose invalid filter`,comp,this.options),!!comp.match(re$1[t$1.COMPARATORLOOSE])))),debug$1(`range list`,rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator$4(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has(``)&&rangeMap.delete(``);let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range$11))throw TypeError(`a Range is required`);return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version$3){if(!version$3)return!1;if(typeof version$3==`string`)try{version$3=new SemVer$6(version$3,this.options)}catch{return!1}for(let i$4=0;i$4<this.set.length;i$4++)if(testSet(this.set[i$4],version$3,this.options))return!0;return!1}};module.exports=Range$11;let LRU=require_lrucache(),cache=new LRU,parseOptions$1=require_parse_options(),Comparator$4=require_comparator(),debug$1=require_debug(),SemVer$6=require_semver$1(),{safeRe:re$1,t:t$1,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),isNullSet=c$1=>c$1.value===`<0.0.0-0`,isAny=c$1=>c$1.value===``,isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(comp=comp.replace(re$1[t$1.BUILD],``),debug$1(`comp`,comp,options),comp=replaceCarets(comp,options),debug$1(`caret`,comp),comp=replaceTildes(comp,options),debug$1(`tildes`,comp),comp=replaceXRanges(comp,options),debug$1(`xrange`,comp),comp=replaceStars(comp,options),debug$1(`stars`,comp),comp),isX=id=>!id||id.toLowerCase()===`x`||id===`*`,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceTilde(c$1,options)).join(` `),replaceTilde=(comp,options)=>{let r=options.loose?re$1[t$1.TILDELOOSE]:re$1[t$1.TILDE];return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`tilde`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0 <${+M$1+1}.0.0-0`:isX(p)?ret=`>=${M$1}.${m}.0 <${M$1}.${+m+1}.0-0`:pr?(debug$1(`replaceTilde pr`,pr),ret=`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`):ret=`>=${M$1}.${m}.${p} <${M$1}.${+m+1}.0-0`,debug$1(`tilde return`,ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceCaret(c$1,options)).join(` `),replaceCaret=(comp,options)=>{debug$1(`caret`,comp,options);let r=options.loose?re$1[t$1.CARETLOOSE]:re$1[t$1.CARET],z$1=options.includePrerelease?`-0`:``;return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`caret`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0${z$1} <${+M$1+1}.0.0-0`:isX(p)?ret=M$1===`0`?`>=${M$1}.${m}.0${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.0${z$1} <${+M$1+1}.0.0-0`:pr?(debug$1(`replaceCaret pr`,pr),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}-${pr} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p}-${pr} <${+M$1+1}.0.0-0`):(debug$1(`no pr`),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}${z$1} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p} <${+M$1+1}.0.0-0`),debug$1(`caret return`,ret),ret})},replaceXRanges=(comp,options)=>(debug$1(`replaceXRanges`,comp,options),comp.split(/\s+/).map(c$1=>replaceXRange(c$1,options)).join(` `)),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re$1[t$1.XRANGELOOSE]:re$1[t$1.XRANGE];return comp.replace(r,(ret,gtlt,M$1,m,p,pr)=>{debug$1(`xRange`,comp,ret,gtlt,M$1,m,p,pr);let xM=isX(M$1),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt===`=`&&anyX&&(gtlt=``),pr=options.includePrerelease?`-0`:``,xM?ret=gtlt===`>`||gtlt===`<`?`<0.0.0-0`:`*`:gtlt&&anyX?(xm&&(m=0),p=0,gtlt===`>`?(gtlt=`>=`,xm?(M$1=+M$1+1,m=0,p=0):(m=+m+1,p=0)):gtlt===`<=`&&(gtlt=`<`,xm?M$1=+M$1+1:m=+m+1),gtlt===`<`&&(pr=`-0`),ret=`${gtlt+M$1}.${m}.${p}${pr}`):xm?ret=`>=${M$1}.0.0${pr} <${+M$1+1}.0.0-0`:xp&&(ret=`>=${M$1}.${m}.0${pr} <${M$1}.${+m+1}.0-0`),debug$1(`xRange return`,ret),ret})},replaceStars=(comp,options)=>(debug$1(`replaceStars`,comp,options),comp.trim().replace(re$1[t$1.STAR],``)),replaceGTE0=(comp,options)=>(debug$1(`replaceGTE0`,comp,options),comp.trim().replace(re$1[options.includePrerelease?t$1.GTE0PRE:t$1.GTE0],``)),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>(from=isX(fM)?``:isX(fm)?`>=${fM}.0.0${incPr?`-0`:``}`:isX(fp)?`>=${fM}.${fm}.0${incPr?`-0`:``}`:fpr?`>=${from}`:`>=${from}${incPr?`-0`:``}`,to=isX(tM)?``:isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version$3,options)=>{for(let i$4=0;i$4<set.length;i$4++)if(!set[i$4].test(version$3))return!1;if(version$3.prerelease.length&&!options.includePrerelease){for(let i$4=0;i$4<set.length;i$4++)if(debug$1(set[i$4].semver),set[i$4].semver!==Comparator$4.ANY&&set[i$4].semver.prerelease.length>0){let allowed=set[i$4].semver;if(allowed.major===version$3.major&&allowed.minor===version$3.minor&&allowed.patch===version$3.patch)return!0}return!1}return!0}}),require_comparator=__commonJSMin((exports,module)=>{let ANY$2=Symbol(`SemVer ANY`);var Comparator$3=class Comparator$3{static get ANY(){return ANY$2}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator$3){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(` `),debug(`comparator`,comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY$2?this.value=``:this.value=this.operator+this.semver.version,debug(`comp`,this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]===void 0?``:m[1],this.operator===`=`&&(this.operator=``),m[2]?this.semver=new SemVer$5(m[2],this.options.loose):this.semver=ANY$2}toString(){return this.value}test(version$3){if(debug(`Comparator.test`,version$3,this.options.loose),this.semver===ANY$2||version$3===ANY$2)return!0;if(typeof version$3==`string`)try{version$3=new SemVer$5(version$3,this.options)}catch{return!1}return cmp$1(version$3,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator$3))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new Range$10(comp.value,options).test(this.value):comp.operator===``?comp.value===``?!0:new Range$10(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value===`<0.0.0-0`||comp.value===`<0.0.0-0`)||!options.includePrerelease&&(this.value.startsWith(`<0.0.0`)||comp.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&comp.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&comp.operator.startsWith(`<`)||this.semver.version===comp.semver.version&&this.operator.includes(`=`)&&comp.operator.includes(`=`)||cmp$1(this.semver,`<`,comp.semver,options)&&this.operator.startsWith(`>`)&&comp.operator.startsWith(`<`)||cmp$1(this.semver,`>`,comp.semver,options)&&this.operator.startsWith(`<`)&&comp.operator.startsWith(`>`)))}};module.exports=Comparator$3;let parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp$1=require_cmp(),debug=require_debug(),SemVer$5=require_semver$1(),Range$10=require_range()}),require_satisfies=__commonJSMin((exports,module)=>{let Range$9=require_range(),satisfies$4=(version$3,range,options)=>{try{range=new Range$9(range,options)}catch{return!1}return range.test(version$3)};module.exports=satisfies$4}),require_to_comparators=__commonJSMin((exports,module)=>{let Range$8=require_range(),toComparators$1=(range,options)=>new Range$8(range,options).set.map(comp=>comp.map(c$1=>c$1.value).join(` `).trim().split(` `));module.exports=toComparators$1}),require_max_satisfying=__commonJSMin((exports,module)=>{let SemVer$4=require_semver$1(),Range$7=require_range(),maxSatisfying$1=(versions,range,options)=>{let max$3=null,maxSV=null,rangeObj=null;try{rangeObj=new Range$7(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max$3||maxSV.compare(v)===-1)&&(max$3=v,maxSV=new SemVer$4(max$3,options))}),max$3};module.exports=maxSatisfying$1}),require_min_satisfying=__commonJSMin((exports,module)=>{let SemVer$3=require_semver$1(),Range$6=require_range(),minSatisfying$1=(versions,range,options)=>{let min$1=null,minSV=null,rangeObj=null;try{rangeObj=new Range$6(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min$1||minSV.compare(v)===1)&&(min$1=v,minSV=new SemVer$3(min$1,options))}),min$1};module.exports=minSatisfying$1}),require_min_version=__commonJSMin((exports,module)=>{let SemVer$2=require_semver$1(),Range$5=require_range(),gt$2=require_gt(),minVersion$1=(range,loose)=>{range=new Range$5(range,loose);let minver=new SemVer$2(`0.0.0`);if(range.test(minver)||(minver=new SemVer$2(`0.0.0-0`),range.test(minver)))return minver;minver=null;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer$2(comparator.semver.version);switch(comparator.operator){case`>`:compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case``:case`>=`:(!setMin||gt$2(compver,setMin))&&(setMin=compver);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt$2(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion$1}),require_valid=__commonJSMin((exports,module)=>{let Range$4=require_range(),validRange$1=(range,options)=>{try{return new Range$4(range,options).range||`*`}catch{return null}};module.exports=validRange$1}),require_outside=__commonJSMin((exports,module)=>{let SemVer$1=require_semver$1(),Comparator$2=require_comparator(),{ANY:ANY$1}=Comparator$2,Range$3=require_range(),satisfies$3=require_satisfies(),gt$1=require_gt(),lt$1=require_lt(),lte$1=require_lte(),gte$1=require_gte(),outside$3=(version$3,range,hilo,options)=>{version$3=new SemVer$1(version$3,options),range=new Range$3(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case`>`:gtfn=gt$1,ltefn=lte$1,ltfn=lt$1,comp=`>`,ecomp=`>=`;break;case`<`:gtfn=lt$1,ltefn=gte$1,ltfn=gt$1,comp=`<`,ecomp=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(satisfies$3(version$3,range,options))return!1;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY$1&&(comparator=new Comparator$2(`>=0.0.0`)),high||=comparator,low||=comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version$3,low.semver)||low.operator===ecomp&<fn(version$3,low.semver))return!1}return!0};module.exports=outside$3}),require_gtr=__commonJSMin((exports,module)=>{let outside$2=require_outside(),gtr$1=(version$3,range,options)=>outside$2(version$3,range,`>`,options);module.exports=gtr$1}),require_ltr=__commonJSMin((exports,module)=>{let outside$1=require_outside(),ltr$1=(version$3,range,options)=>outside$1(version$3,range,`<`,options);module.exports=ltr$1}),require_intersects=__commonJSMin((exports,module)=>{let Range$2=require_range(),intersects$1=(r1,r2,options)=>(r1=new Range$2(r1,options),r2=new Range$2(r2,options),r1.intersects(r2,options));module.exports=intersects$1}),require_simplify=__commonJSMin((exports,module)=>{let satisfies$2=require_satisfies(),compare$2=require_compare();module.exports=(versions,range,options)=>{let set=[],first=null,prev=null,v=versions.sort((a,b)=>compare$2(a,b,options));for(let version$3 of v){let included=satisfies$2(version$3,range,options);included?(prev=version$3,first||=version$3):(prev&&set.push([first,prev]),prev=null,first=null)}first&&set.push([first,null]);let ranges=[];for(let[min$1,max$3]of set)min$1===max$3?ranges.push(min$1):!max$3&&min$1===v[0]?ranges.push(`*`):max$3?min$1===v[0]?ranges.push(`<=${max$3}`):ranges.push(`${min$1} - ${max$3}`):ranges.push(`>=${min$1}`);let simplified=ranges.join(` || `),original=typeof range.raw==`string`?range.raw:String(range);return simplified.length<original.length?simplified:range}}),require_subset=__commonJSMin((exports,module)=>{let Range$1=require_range(),Comparator$1=require_comparator(),{ANY}=Comparator$1,satisfies$1=require_satisfies(),compare$1=require_compare(),subset$1=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range$1(sub,options),dom=new Range$1(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull||=isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(`>=0.0.0-0`)],minimumVersion=[new Comparator$1(`>=0.0.0`)],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let eqSet=new Set,gt$5,lt$4;for(let c$1 of sub)c$1.operator===`>`||c$1.operator===`>=`?gt$5=higherGT(gt$5,c$1,options):c$1.operator===`<`||c$1.operator===`<=`?lt$4=lowerLT(lt$4,c$1,options):eqSet.add(c$1.semver);if(eqSet.size>1)return null;let gtltComp;if(gt$5&<$4&&(gtltComp=compare$1(gt$5.semver,lt$4.semver,options),gtltComp>0||gtltComp===0&&(gt$5.operator!==`>=`||lt$4.operator!==`<=`)))return null;for(let eq$3 of eqSet){if(gt$5&&!satisfies$1(eq$3,String(gt$5),options)||lt$4&&!satisfies$1(eq$3,String(lt$4),options))return null;for(let c$1 of dom)if(!satisfies$1(eq$3,String(c$1),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt$4&&!options.includePrerelease&<$4.semver.prerelease.length?lt$4.semver:!1,needDomGTPre=gt$5&&!options.includePrerelease&>$5.semver.prerelease.length?gt$5.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<$4.operator===`<`&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c$1 of dom){if(hasDomGT=hasDomGT||c$1.operator===`>`||c$1.operator===`>=`,hasDomLT=hasDomLT||c$1.operator===`<`||c$1.operator===`<=`,gt$5){if(needDomGTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomGTPre.major&&c$1.semver.minor===needDomGTPre.minor&&c$1.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c$1.operator===`>`||c$1.operator===`>=`){if(higher=higherGT(gt$5,c$1,options),higher===c$1&&higher!==gt$5)return!1}else if(gt$5.operator===`>=`&&!satisfies$1(gt$5.semver,String(c$1),options))return!1}if(lt$4){if(needDomLTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomLTPre.major&&c$1.semver.minor===needDomLTPre.minor&&c$1.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c$1.operator===`<`||c$1.operator===`<=`){if(lower=lowerLT(lt$4,c$1,options),lower===c$1&&lower!==lt$4)return!1}else if(lt$4.operator===`<=`&&!satisfies$1(lt$4.semver,String(c$1),options))return!1}if(!c$1.operator&&(lt$4||gt$5)&>ltComp!==0)return!1}return!(gt$5&&hasDomLT&&!lt$4&>ltComp!==0||lt$4&&hasDomGT&&!gt$5&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===`>`&&a.operator===`>=`?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator===`<`&&a.operator===`<=`?b:a};module.exports=subset$1}),require_semver=__commonJSMin((exports,module)=>{let internalRe=require_re(),constants=require_constants(),SemVer=require_semver$1(),identifiers=require_identifiers(),parse=require_parse(),valid=require_valid$1(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch$1=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch:patch$1,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}),u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(eb,start){for(var b=new u16(31),i$4=0;i$4<31;++i$4)b[i$4]=start+=1<<eb[i$4-1];for(var r=new i32(b[30]),i$4=1;i$4<30;++i$4)for(var j$1=b[i$4];j$1<b[i$4+1];++j$1)r[j$1]=j$1-b[i$4]<<5|i$4;return{b,r}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768),i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}for(var hMap=function(cd,mb,r){for(var s$2=cd.length,i$4=0,l$2=new u16(mb);i$4<s$2;++i$4)cd[i$4]&&++l$2[cd[i$4]-1];var le$1=new u16(mb);for(i$4=1;i$4<mb;++i$4)le$1[i$4]=le$1[i$4-1]+l$2[i$4-1]<<1;var co;if(r){co=new u16(1<<mb);var rvb=15-mb;for(i$4=0;i$4<s$2;++i$4)if(cd[i$4])for(var sv=i$4<<4|cd[i$4],r_1=mb-cd[i$4],v=le$1[cd[i$4]-1]++<<r_1,m=v|(1<<r_1)-1;v<=m;++v)co[rev[v]>>rvb]=sv}else for(co=new u16(s$2),i$4=0;i$4<s$2;++i$4)cd[i$4]&&(co[i$4]=rev[le$1[cd[i$4]-1]++]>>15-cd[i$4]);return co},flt=new u8(288),i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;for(var fdt=new u8(32),i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(a){for(var m=a[0],i$4=1;i$4<a.length;++i$4)a[i$4]>m&&(m=a[i$4]);return m},bits=function(d,p,m){var o=p/8|0;return(d[o]|d[o+1]<<8)>>(p&7)&m},bits16=function(d,p){var o=p/8|0;return(d[o]|d[o+1]<<8|d[o+2]<<16)>>(p&7)},shft=function(p){return(p+7)/8|0},slc=function(v,s$2,e){return(s$2==null||s$2<0)&&(s$2=0),(e==null||e>v.length)&&(e=v.length),new u8(v.subarray(s$2,e))},ec=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],err=function(ind,msg,nt){var e=Error(msg||ec[ind]);if(e.code=ind,Error.captureStackTrace&&Error.captureStackTrace(e,err),!nt)throw e;return e},inflt=function(dat,st,buf,dict){var sl=dat.length,dl=dict?dict.length:0;if(!sl||st.f&&!st.l)return buf||new u8(0);var noBuf=!buf,resize=noBuf||st.i!=2,noSt=st.i;noBuf&&(buf=new u8(sl*3));var cbuf=function(l$3){var bl=buf.length;if(l$3>bl){var nbuf=new u8(Math.max(bl*2,l$3));nbuf.set(buf),buf=nbuf}},final=st.f||0,pos=st.p||0,bt=st.b||0,lm=st.l,dm=st.d,lbt=st.m,dbt=st.n,tbts=sl*8;do{if(!lm){final=bits(dat,pos,1);var type=bits(dat,pos+1,3);if(pos+=3,type)if(type==1)lm=flrm,dm=fdrm,lbt=9,dbt=5;else if(type==2){var hLit=bits(dat,pos,31)+257,hcLen=bits(dat,pos+10,15)+4,tl=hLit+bits(dat,pos+5,31)+1;pos+=14;for(var ldt=new u8(tl),clt=new u8(19),i$4=0;i$4<hcLen;++i$4)clt[clim[i$4]]=bits(dat,pos+i$4*3,7);pos+=hcLen*3;for(var clb=max(clt),clbmsk=(1<<clb)-1,clm=hMap(clt,clb,1),i$4=0;i$4<tl;){var r=clm[bits(dat,pos,clbmsk)];pos+=r&15;var s$2=r>>4;if(s$2<16)ldt[i$4++]=s$2;else{var c$1=0,n$2=0;for(s$2==16?(n$2=3+bits(dat,pos,3),pos+=2,c$1=ldt[i$4-1]):s$2==17?(n$2=3+bits(dat,pos,7),pos+=3):s$2==18&&(n$2=11+bits(dat,pos,127),pos+=7);n$2--;)ldt[i$4++]=c$1}}var lt$4=ldt.subarray(0,hLit),dt=ldt.subarray(hLit);lbt=max(lt$4),dbt=max(dt),lm=hMap(lt$4,lbt,1),dm=hMap(dt,dbt,1)}else err(1);else{var s$2=shft(pos)+4,l$2=dat[s$2-4]|dat[s$2-3]<<8,t$5=s$2+l$2;if(t$5>sl){noSt&&err(0);break}resize&&cbuf(bt+l$2),buf.set(dat.subarray(s$2,t$5),bt),st.b=bt+=l$2,st.p=pos=t$5*8,st.f=final;continue}if(pos>tbts){noSt&&err(0);break}}resize&&cbuf(bt+131072);for(var lms=(1<<lbt)-1,dms=(1<<dbt)-1,lpos=pos;;lpos=pos){var c$1=lm[bits16(dat,pos)&lms],sym=c$1>>4;if(pos+=c$1&15,pos>tbts){noSt&&err(0);break}if(c$1||err(2),sym<256)buf[bt++]=sym;else if(sym==256){lpos=pos,lm=null;break}else{var add=sym-254;if(sym>264){var i$4=sym-257,b=fleb[i$4];add=bits(dat,pos,(1<<b)-1)+fl[i$4],pos+=b}var d=dm[bits16(dat,pos)&dms],dsym=d>>4;d||err(3),pos+=d&15;var dt=fd[dsym];if(dsym>3){var b=fdeb[dsym];dt+=bits16(dat,pos)&(1<<b)-1,pos+=b}if(pos>tbts){noSt&&err(0);break}resize&&cbuf(bt+131072);var end=bt+add;if(bt<dt){var shift=dl-dt,dend=Math.min(dt,end);for(shift+bt<0&&err(3);bt<dend;++bt)buf[bt]=dict[shift+bt]}for(;bt<end;++bt)buf[bt]=buf[bt-dt]}}st.l=lm,st.p=lpos,st.b=bt,st.f=final,lm&&(final=1,st.m=lbt,st.d=dm,st.n=dbt)}while(!final);return bt!=buf.length&&noBuf?slc(buf,0,bt):buf.subarray(0,bt)},wbits=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8},wbits16=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8,d[o+2]|=v>>16},hTree=function(d,mb){for(var t$5=[],i$4=0;i$4<d.length;++i$4)d[i$4]&&t$5.push({s:i$4,f:d[i$4]});var s$2=t$5.length,t2=t$5.slice();if(!s$2)return{t:et,l:0};if(s$2==1){var v=new u8(t$5[0].s+1);return v[t$5[0].s]=1,{t:v,l:1}}t$5.sort(function(a,b){return a.f-b.f}),t$5.push({s:-1,f:25001});var l$2=t$5[0],r=t$5[1],i0=0,i1=1,i2=2;for(t$5[0]={s:-1,f:l$2.f+r.f,l:l$2,r};i1!=s$2-1;)l$2=t$5[t$5[i0].f<t$5[i2].f?i0++:i2++],r=t$5[i0!=i1&&t$5[i0].f<t$5[i2].f?i0++:i2++],t$5[i1++]={s:-1,f:l$2.f+r.f,l:l$2,r};for(var maxSym=t2[0].s,i$4=1;i$4<s$2;++i$4)t2[i$4].s>maxSym&&(maxSym=t2[i$4].s);var tr=new u16(maxSym+1),mbt=ln(t$5[i1-1],tr,0);if(mbt>mb){var i$4=0,dt=0,lft=mbt-mb,cst=1<<lft;for(t2.sort(function(a,b){return tr[b.s]-tr[a.s]||a.f-b.f});i$4<s$2;++i$4){var i2_1=t2[i$4].s;if(tr[i2_1]>mb)dt+=cst-(1<<mbt-tr[i2_1]),tr[i2_1]=mb;else break}for(dt>>=lft;dt>0;){var i2_2=t2[i$4].s;tr[i2_2]<mb?dt-=1<<mb-tr[i2_2]++-1:++i$4}for(;i$4>=0&&dt;--i$4){var i2_3=t2[i$4].s;tr[i2_3]==mb&&(--tr[i2_3],++dt)}mbt=mb}return{t:new u8(tr),l:mbt}},ln=function(n$2,l$2,d){return n$2.s==-1?Math.max(ln(n$2.l,l$2,d+1),ln(n$2.r,l$2,d+1)):l$2[n$2.s]=d},lc=function(c$1){for(var s$2=c$1.length;s$2&&!c$1[--s$2];);for(var cl=new u16(++s$2),cli=0,cln=c$1[0],cls=1,w=function(v){cl[cli++]=v},i$4=1;i$4<=s$2;++i$4)if(c$1[i$4]==cln&&i$4!=s$2)++cls;else{if(!cln&&cls>2){for(;cls>138;cls-=138)w(32754);cls>2&&(w(cls>10?cls-11<<5|28690:cls-3<<5|12305),cls=0)}else if(cls>3){for(w(cln),--cls;cls>6;cls-=6)w(8304);cls>2&&(w(cls-3<<5|8208),cls=0)}for(;cls--;)w(cln);cls=1,cln=c$1[i$4]}return{c:cl.subarray(0,cli),n:s$2}},clen=function(cf,cl){for(var l$2=0,i$4=0;i$4<cl.length;++i$4)l$2+=cf[i$4]*cl[i$4];return l$2},wfblk=function(out,pos,dat){var s$2=dat.length,o=shft(pos+2);out[o]=s$2&255,out[o+1]=s$2>>8,out[o+2]=out[o]^255,out[o+3]=out[o+1]^255;for(var i$4=0;i$4<s$2;++i$4)out[o+i$4+4]=dat[i$4];return(o+4+s$2)*8},wblk=function(dat,out,final,syms,lf,df,eb,li,bs,bl,p){wbits(out,p++,final),++lf[256];for(var _a$1=hTree(lf,15),dlt=_a$1.t,mlb=_a$1.l,_b$1=hTree(df,15),ddt=_b$1.t,mdb=_b$1.l,_c=lc(dlt),lclt=_c.c,nlc=_c.n,_d=lc(ddt),lcdt=_d.c,ndc=_d.n,lcfreq=new u16(19),i$4=0;i$4<lclt.length;++i$4)++lcfreq[lclt[i$4]&31];for(var i$4=0;i$4<lcdt.length;++i$4)++lcfreq[lcdt[i$4]&31];for(var _e=hTree(lcfreq,7),lct=_e.t,mlcb=_e.l,nlcc=19;nlcc>4&&!lct[clim[nlcc-1]];--nlcc);var flen=bl+5<<3,ftlen=clen(lf,flt)+clen(df,fdt)+eb,dtlen=clen(lf,dlt)+clen(df,ddt)+eb+14+3*nlcc+clen(lcfreq,lct)+2*lcfreq[16]+3*lcfreq[17]+7*lcfreq[18];if(bs>=0&&flen<=ftlen&&flen<=dtlen)return wfblk(out,p,dat.subarray(bs,bs+bl));var lm,ll,dm,dl;if(wbits(out,p,1+(dtlen<ftlen)),p+=2,dtlen<ftlen){lm=hMap(dlt,mlb,0),ll=dlt,dm=hMap(ddt,mdb,0),dl=ddt;var llm=hMap(lct,mlcb,0);wbits(out,p,nlc-257),wbits(out,p+5,ndc-1),wbits(out,p+10,nlcc-4),p+=14;for(var i$4=0;i$4<nlcc;++i$4)wbits(out,p+3*i$4,lct[clim[i$4]]);p+=3*nlcc;for(var lcts=[lclt,lcdt],it=0;it<2;++it)for(var clct=lcts[it],i$4=0;i$4<clct.length;++i$4){var len$2=clct[i$4]&31;wbits(out,p,llm[len$2]),p+=lct[len$2],len$2>15&&(wbits(out,p,clct[i$4]>>5&127),p+=clct[i$4]>>12)}}else lm=flm,ll=flt,dm=fdm,dl=fdt;for(var i$4=0;i$4<li;++i$4){var sym=syms[i$4];if(sym>255){var len$2=sym>>18&31;wbits16(out,p,lm[len$2+257]),p+=ll[len$2+257],len$2>7&&(wbits(out,p,sym>>23&31),p+=fleb[len$2]);var dst=sym&31;wbits16(out,p,dm[dst]),p+=dl[dst],dst>3&&(wbits16(out,p,sym>>5&8191),p+=fdeb[dst])}else wbits16(out,p,lm[sym]),p+=ll[sym]}return wbits16(out,p,lm[256]),p+ll[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(dat,lvl,plvl,pre,post,st){var s$2=st.z||dat.length,o=new u8(pre+s$2+5*(1+Math.ceil(s$2/7e3))+post),w=o.subarray(pre,o.length-post),lst=st.l,pos=(st.r||0)&7;if(lvl){pos&&(w[0]=st.r>>3);for(var opt=deo[lvl-1],n$2=opt>>13,c$1=opt&8191,msk_1=(1<<plvl)-1,prev=st.p||new u16(32768),head=st.h||new u16(msk_1+1),bs1_1=Math.ceil(plvl/3),bs2_1=2*bs1_1,hsh=function(i$5){return(dat[i$5]^dat[i$5+1]<<bs1_1^dat[i$5+2]<<bs2_1)&msk_1},syms=new i32(25e3),lf=new u16(288),df=new u16(32),lc_1=0,eb=0,i$4=st.i||0,li=0,wi=st.w||0,bs=0;i$4+2<s$2;++i$4){var hv=hsh(i$4),imod=i$4&32767,pimod=head[hv];if(prev[imod]=pimod,head[hv]=imod,wi<=i$4){var rem=s$2-i$4;if((lc_1>7e3||li>24576)&&(rem>423||!lst)){pos=wblk(dat,w,0,syms,lf,df,eb,li,bs,i$4-bs,pos),li=lc_1=eb=0,bs=i$4;for(var j$1=0;j$1<286;++j$1)lf[j$1]=0;for(var j$1=0;j$1<30;++j$1)df[j$1]=0}var l$2=2,d=0,ch_1=c$1,dif=imod-pimod&32767;if(rem>2&&hv==hsh(i$4-dif))for(var maxn=Math.min(n$2,rem)-1,maxd=Math.min(32767,i$4),ml=Math.min(258,rem);dif<=maxd&&--ch_1&&imod!=pimod;){if(dat[i$4+l$2]==dat[i$4+l$2-dif]){for(var nl=0;nl<ml&&dat[i$4+nl]==dat[i$4+nl-dif];++nl);if(nl>l$2){if(l$2=nl,d=dif,nl>maxn)break;for(var mmd=Math.min(dif,nl-2),md=0,j$1=0;j$1<mmd;++j$1){var ti=i$4-dif+j$1&32767,pti=prev[ti],cd=ti-pti&32767;cd>md&&(md=cd,pimod=ti)}}}imod=pimod,pimod=prev[imod],dif+=imod-pimod&32767}if(d){syms[li++]=268435456|revfl[l$2]<<18|revfd[d];var lin=revfl[l$2]&31,din=revfd[d]&31;eb+=fleb[lin]+fdeb[din],++lf[257+lin],++df[din],wi=i$4+l$2,++lc_1}else syms[li++]=dat[i$4],++lf[dat[i$4]]}}for(i$4=Math.max(i$4,wi);i$4<s$2;++i$4)syms[li++]=dat[i$4],++lf[dat[i$4]];pos=wblk(dat,w,lst,syms,lf,df,eb,li,bs,i$4-bs,pos),lst||(st.r=pos&7|w[pos/8|0]<<3,pos-=7,st.h=head,st.p=prev,st.i=i$4,st.w=wi)}else{for(var i$4=st.w||0;i$4<s$2+lst;i$4+=65535){var e=i$4+65535;e>=s$2&&(w[pos/8|0]=lst,e=s$2),pos=wfblk(w,pos+1,dat.subarray(i$4,e))}st.i=s$2}return slc(o,0,pre+shft(pos)+post)},adler=function(){var a=1,b=0;return{p:function(d){for(var n$2=a,m=b,l$2=d.length|0,i$4=0;i$4!=l$2;){for(var e=Math.min(i$4+2655,l$2);i$4<e;++i$4)m+=n$2+=d[i$4];n$2=(n$2&65535)+15*(n$2>>16),m=(m&65535)+15*(m>>16)}a=n$2,b=m},d:function(){return a%=65521,b%=65521,(a&255)<<24|(a&65280)<<8|(b&255)<<8|b>>8}}},dopt=function(dat,opt,pre,post,st){if(!st&&(st={l:1},opt.dictionary)){var dict=opt.dictionary.subarray(-32768),newDat=new u8(dict.length+dat.length);newDat.set(dict),newDat.set(dat,dict.length),dat=newDat,st.w=dict.length}return dflt(dat,opt.level==null?6:opt.level,opt.mem==null?st.l?Math.ceil(Math.max(8,Math.min(13,Math.log(dat.length)))*1.5):20:12+opt.mem,pre,post,st)},wbytes=function(d,b,v){for(;v;++b)d[b]=v,v>>>=8},zlh=function(c$1,o){var lv=o.level,fl$1=lv==0?0:lv<6?1:lv==9?3:2;if(c$1[0]=120,c$1[1]=fl$1<<6|(o.dictionary&&32),c$1[1]|=31-(c$1[0]<<8|c$1[1])%31,o.dictionary){var h=adler();h.p(o.dictionary),wbytes(c$1,2,h.d())}},zls=function(d,dict){return((d[0]&15)!=8||d[0]>>4>7||(d[0]<<8|d[1])%31)&&err(6,`invalid zlib data`),(d[1]>>5&1)==+!dict&&err(6,`invalid zlib data: `+(d[1]&32?`need`:`unexpected`)+` dictionary`),(d[1]>>3&4)+2};function zlibSync(data,opts){opts||={};var a=adler();a.p(data);var d=dopt(data,opts,opts.dictionary?6:2,4);return zlh(d,opts),wbytes(d,d.length-4,a.d()),d}function unzlibSync(data,opts){return inflt(data.subarray(zls(data,opts&&opts.dictionary),-4),{i:2},opts&&opts.out,opts&&opts.dictionary)}var te=typeof TextEncoder<`u`&&new TextEncoder,td=typeof TextDecoder<`u`&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch{}var dutf8=function(d){for(var r=``,i$4=0;;){var c$1=d[i$4++],eb=(c$1>127)+(c$1>223)+(c$1>239);if(i$4+eb>d.length)return{s:r,r:slc(d,i$4-1)};eb?eb==3?(c$1=((c$1&15)<<18|(d[i$4++]&63)<<12|(d[i$4++]&63)<<6|d[i$4++]&63)-65536,r+=String.fromCharCode(55296|c$1>>10,56320|c$1&1023)):eb&1?r+=String.fromCharCode((c$1&31)<<6|d[i$4++]&63):r+=String.fromCharCode((c$1&15)<<12|(d[i$4++]&63)<<6|d[i$4++]&63):r+=String.fromCharCode(c$1)}};function strToU8(str,latin1){if(latin1){for(var ar_1=new u8(str.length),i$4=0;i$4<str.length;++i$4)ar_1[i$4]=str.charCodeAt(i$4);return ar_1}if(te)return te.encode(str);for(var l$2=str.length,ar=new u8(str.length+(str.length>>1)),ai=0,w=function(v){ar[ai++]=v},i$4=0;i$4<l$2;++i$4){if(ai+5>ar.length){var n$2=new u8(ai+8+(l$2-i$4<<1));n$2.set(ar),ar=n$2}var c$1=str.charCodeAt(i$4);c$1<128||latin1?w(c$1):c$1<2048?(w(192|c$1>>6),w(128|c$1&63)):c$1>55295&&c$1<57344?(c$1=65536+(c$1&1047552)|str.charCodeAt(++i$4)&1023,w(240|c$1>>18),w(128|c$1>>12&63),w(128|c$1>>6&63),w(128|c$1&63)):(w(224|c$1>>12),w(128|c$1>>6&63),w(128|c$1&63))}return slc(ar,0,ai)}function strFromU8(dat,latin1){if(latin1){for(var r=``,i$4=0;i$4<dat.length;i$4+=16384)r+=String.fromCharCode.apply(null,dat.subarray(i$4,i$4+16384));return r}else if(td)return td.decode(dat);else{var _a$1=dutf8(dat),s$2=_a$1.s,r=_a$1.r;return r.length&&err(8),s$2}}var import_semver=__toESM(require_semver());const utoa=data=>{let buffer$2=strToU8(data),zipped=zlibSync(buffer$2,{level:9}),binary=strFromU8(zipped,!0);return btoa(binary)},atou=base64=>{let binary=atob(base64);if(binary.startsWith(`xÚ`)){let buffer$2=strToU8(binary,!0),unzipped=unzlibSync(buffer$2);return strFromU8(unzipped)}return decodeURIComponent(escape(binary))},encode=schema=>{let description$1=schema.describe();for(let key in description$1.keys){if(description$1.keys[key]===void 0||description$1.keys[key].rules===void 0)continue;description$1.keys[key].rules=description$1.keys[key].rules.map(rule=>{for(let argKey in rule.args){let value=rule.args[argKey];value instanceof Phone&&(rule.args[argKey]=value.e164)}return rule})}let json$1=JSON.stringify({version:`1.20251028.0`,schema:description$1},(_,value)=>typeof value==`bigint`?value.toString():value===void 0?null:value instanceof DateTime?value.toObject():value instanceof Date?DateTime.fromJSDate(value).toObject():value);return utoa(json$1)},decode=base64=>{let json$1=atou(base64),description$1=JSON.parse(json$1);if(!isPlainObject(description$1)||!(`version`in description$1)||!(`schema`in description$1)||typeof description$1.version!=`string`||!isPlainObject(description$1.schema))throw TypeError(`Not a valid encoded schema`);let{version:schemaVersion,schema}=description$1;if(import_semver.valid(`1.20251028.0`)){if(!import_semver.valid(import_semver.coerce(schemaVersion)))throw TypeError(`Invalid schema version: ${schemaVersion}`);if(import_semver.gt(import_semver.coerce(schemaVersion),`1.20251028.0`))throw TypeError(`Schema version ${schemaVersion} is not compatible with current version 1.20251028.0`)}return validator.build(schema)},Joi=RootFactory.create({schemaTypeModifiers:[knex$1],shortcutsModifiers:[]}),validator=patch(Joi.extend(bigint).extend(datetime).extend(phone)),TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),tlds=new Set(TLDS.map(tld=>tld.toLowerCase()));init_esm();var import_lib=__toESM(require_lib$3()),import_lib$1=__toESM(require_lib$2()),import_lib$2=__toESM(require_lib());const version=`1.20251028.0`;Object.defineProperty(exports,`ValidationError`,{enumerable:!0,get:function(){return import_lib$2.ValidationError}}),Object.defineProperty(exports,`address`,{enumerable:!0,get:function(){return esm_exports}}),exports.decode=decode,exports.encode=encode,Object.defineProperty(exports,`formula`,{enumerable:!0,get:function(){return import_lib}}),Object.defineProperty(exports,`location`,{enumerable:!0,get:function(){return import_lib$1.location}}),exports.tlds=tlds,exports.validator=validator,exports.version=version;
|
|
43
|
+
}`}serialize(){let o=buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country})).toString(`base64`);return buffer.Buffer.from(JSON.stringify({phone:this.raw,country:this.country,hash:o})).toString(`base64`)}static deserialize(o){let r;try{r=buffer.Buffer.from(o,`base64`).toString(`utf-8`)}catch{throw Error(`Not a valid serialized phone object`)}let u;try{u=JSON.parse(r)}catch{throw Error(`Not a valid serialized phone object`)}if(!u.phone||!u.country||!u.hash||buffer.Buffer.from(JSON.stringify({phone:u.phone,country:u.country})).toString(`base64`)!==u.hash)throw Error(`Not a valid serialized phone object`);return new Te$1(u.phone,u.country===`XX`?void 0:u.country)}};z=new WeakMap,H=new WeakMap,Z=new WeakMap,V=new WeakMap,se=new WeakMap,le=new WeakMap,W=new WeakSet,Le=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).filter(u=>o.substring(0,u.prefix.length)===u.prefix).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:ne(this,W,Fe).call(this,o)},Fe=function(o){let r=country_telephone_data.allCountries.map(u=>({iso:u.iso2.toUpperCase(),prefix:String(u.dialCode).trim().replace(/\D/g,``)})).sort(ne(this,W,be)).filter(u=>{let h=this.constructor;return new h(o,u.iso).valid});return r.length>=1?r[0].iso:`XX`},be=function(o,r){if(o.prefix.length===r.prefix.length){let u=Number.parseInt(o.prefix),h=Number.parseInt(r.prefix);return u===h?o.iso.localeCompare(r.iso):u>h?1:-1}return o.prefix.length>r.prefix.length?1:-1},we=function(o){if(!o)return`INVALID`;let r=M(this,Z).getNumberType(o),u=Object.values(libphonenumberExports.PhoneNumberType),h=Object.keys(libphonenumberExports.PhoneNumberType),m=u.indexOf(r);return h[m]||`INVALID`},ve=function(){let o=this.raw.substring(1,4);return areaCodeMap[o]&&typeof areaCodeMap[o]==`string`?areaCodeMap[o]:`XX`};let Phone=Te;const version$1=`1.20250512.0`,messages={"phone.base":`{{#label}} must be a phone number`,"phone.invalid":`{{#label}} must be a valid phone number for {{#country}}`,"phone.fixedLine":`{{#label}} must be a fixed line number for {{#country}}`,"phone.mobile":`{{#label}} must be a mobile number for {{#country}}`,"phone.strictFixedLine":`{{#label}} is not a fixed line number for {{#country}}`,"phone.strictMobile":`{{#label}} is not a mobile number for {{#country}}`,"phone.fixedLineOrMobile":`{{#label}} must be a fixed line or mobile number for {{#country}}`,"phone.tollFree":`{{#label}} must be a toll-free number for {{#country}}`,"phone.premiumRate":`{{#label}} must be a premium rate number for {{#country}}`,"phone.sharedCost":`{{#label}} must be a shared cost number for {{#country}}`,"phone.voip":`{{#label}} must be a VoIP number for {{#country}}`,"phone.personalNumber":`{{#label}} must be a personal number for {{#country}}`,"phone.pager":`{{#label}} must be a pager number for {{#country}}`,"phone.uan":`{{#label}} must be a UAN number for {{#country}}`,"phone.voicemail":`{{#label}} must be a voicemail number for {{#country}}`,"phone.unknown":`{{#label}} must be an unknown type number for {{#country}}`,"phone.types":`{{#label}} must be one of the specified phone types for {{#country}}`},coerceCountry=value=>{if(typeof value!=`string`)return null;if(isos.has(value.toUpperCase()))return value.toUpperCase();let match$2=null;return countries.forEach((name$1,iso)=>{name$1.toLowerCase()===value.toLowerCase()&&(match$2=iso)}),match$2},getPhoneObject=(value,country)=>{let countryCoerced=coerceCountry(country);try{return new Phone(value,countryCoerced||void 0)}catch{return}},evaluate=(value,operator,args$1)=>{switch(operator){case`fixedLine`:return[`FIXED_LINE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`mobile`:return[`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`fixedLineOrMobile`:return[`FIXED_LINE`,`MOBILE`,`FIXED_LINE_OR_MOBILE`].includes(value.type);case`strictFixedLine`:return value.type===`FIXED_LINE`;case`strictMobile`:return value.type===`MOBILE`;case`tollFree`:return value.type===`TOLL_FREE`;case`premiumRate`:return value.type===`PREMIUM_RATE`;case`sharedCost`:return value.type===`SHARED_COST`;case`voip`:return value.type===`VOIP`;case`personalNumber`:return value.type===`PERSONAL_NUMBER`;case`pager`:return value.type===`PAGER`;case`uan`:return value.type===`UAN`;case`voicemail`:return value.type===`VOICEMAIL`;case`unknown`:return value.type===`UNKNOWN`;case`types`:return args$1[0].includes(value.type);default:return!1}},phone=function(joi){let coerce$3=(value,helpers)=>typeof value==`string`||typeof value==`number`?(value=value.toString().trim(),{value}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]},getCountryName=iso=>{if(`$i18n`in joi){let root=joi;if(!countries.has(iso))return iso;let returnable=root.$i18n(`country.${iso}`);return returnable||countries.get(iso)||iso}return countries.get(iso)||iso};return{type:`phone`,base:joi.any(),validate(value,{error,schema,prefs,state}){let arg=schema.$_getFlag(`country`),country=joi.isRef(arg)?arg.resolve(value,state,prefs):arg,pObj=getPhoneObject(value,country);if(pObj){if(!pObj.valid)return country?{value,errors:[error(`phone.invalid`,{value:String(value),country:getCountryName(country)})]}:{value,errors:[error(`phone.base`,{value:String(value)})]}}else return{value,errors:[error(`phone.base`,{value:String(value)})]};let as=schema.$_getFlag(`as`)||`e164`,formattedValue;switch(as){case`international`:formattedValue=pObj.international;break;case`national`:formattedValue=pObj.national;break;case`raw`:formattedValue=pObj.raw;break;case`timezone`:formattedValue=pObj.timezone;break;case`type`:formattedValue=pObj.type;break;case`country`:formattedValue=pObj.country;break;default:formattedValue=pObj.e164}return{value:formattedValue}},flags:{country:{default:null,setter:`country`},as:{default:`e164`,setter:`format`}},args(...args$1){let[schema,country]=args$1;return schema.country(country)},coerce:{from:[`string`,`number`],method:coerce$3},rules:{check:{method:!1,validate(value,helpers,args$1,{name:name$1,operator}){let{state,prefs}=helpers,countryVal=helpers.schema.$_getFlag(`country`);joi.isRef(countryVal)&&(countryVal=countryVal.resolve(value,state,prefs));let pObj=getPhoneObject(value,countryVal);if(pObj){if(!pObj.valid)return countryVal?helpers.error(`phone.invalid`,{value:String(value),country:getCountryName(countryVal)}):{value,errors:[helpers.error(`phone.base`,{value:String(value)})]}}else return helpers.error(`phone.base`,{value:String(value)});let valid$2=evaluate(pObj,operator,Object.values(args$1||{}));return valid$2?value:helpers.error(`phone.`+name$1,{value:value.toString(),country:getCountryName(countryVal),...args$1})}},country:{method(country){return this.$_setFlag(`country`,country)},args:[{name:`country`,ref:!0,assert:value=>typeof value==`string`||joi.isRef(value),message:`must be a string or a reference`}]},format:{method(as){return this.$_setFlag(`as`,as)},args:[{name:`as`,assert:value=>[`e164`,`international`,`national`,`raw`,`timezone`,`type`,`country`].includes(value),message:`must be one of e164, international, national, raw, timezone, type, or country`}]},fixedLine:{method(){return this.$_addRule({name:`fixedLine`,method:`check`,operator:`fixedLine`})}},mobile:{method(){return this.$_addRule({name:`mobile`,method:`check`,operator:`mobile`})}},strictFixedLine:{method(){return this.$_addRule({name:`strictFixedLine`,method:`check`,operator:`strictFixedLine`})}},strictMobile:{method(){return this.$_addRule({name:`strictMobile`,method:`check`,operator:`strictMobile`})}},fixedLineOrMobile:{method(){return this.$_addRule({name:`fixedLineOrMobile`,method:`check`,operator:`fixedLineOrMobile`})}},tollFree:{method(){return this.$_addRule({name:`tollFree`,method:`check`,operator:`tollFree`})}},premiumRate:{method(){return this.$_addRule({name:`premiumRate`,method:`check`,operator:`premiumRate`})}},sharedCost:{method(){return this.$_addRule({name:`sharedCost`,method:`check`,operator:`sharedCost`})}},voip:{method(){return this.$_addRule({name:`voip`,method:`check`,operator:`voip`})}},personalNumber:{method(){return this.$_addRule({name:`personalNumber`,method:`check`,operator:`personalNumber`})}},pager:{method(){return this.$_addRule({name:`pager`,method:`check`,operator:`pager`})}},uan:{method(){return this.$_addRule({name:`uan`,method:`check`,operator:`uan`})}},voicemail:{method(){return this.$_addRule({name:`voicemail`,method:`check`,operator:`voicemail`})}},unknown:{method(){return this.$_addRule({name:`unknown`,method:`check`,operator:`unknown`})}},types:{method(...types$1){return this.$_addRule({name:`types`,method:`check`,operator:`types`,args:{types:types$1}})}}},cast:{string:{from:value=>typeof value==`string`||typeof value==`number`,to:value=>value},number:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?Number(pObj.raw):-1}},object:{from:value=>typeof value==`string`||typeof value==`number`,to(value,helpers){let country=helpers.schema.$_getFlag(`country`),pObj=getPhoneObject(value,country);return pObj?pObj.toObject():{}}}},messages}};var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME=`[big.js] `,INVALID$3=NAME+`Invalid `,INVALID_DP=INVALID$3+`decimal places`,INVALID_RM=INVALID$3+`rounding mode`,DIV_BY_ZERO=NAME+`Division by zero`,P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function Big$1(n$2){var x$1=this;if(!(x$1 instanceof Big$1))return n$2===UNDEFINED&&arguments.length===0?_Big_():new Big$1(n$2);if(n$2 instanceof Big$1)x$1.s=n$2.s,x$1.e=n$2.e,x$1.c=n$2.c.slice();else{if(typeof n$2!=`string`){if(Big$1.strict===!0&&typeof n$2!=`bigint`)throw TypeError(INVALID$3+`value`);n$2=n$2===0&&1/n$2<0?`-0`:String(n$2)}parse$8(x$1,n$2)}x$1.constructor=Big$1}return Big$1.prototype=P,Big$1.DP=DP,Big$1.RM=RM,Big$1.NE=NE,Big$1.PE=PE,Big$1.strict=STRICT,Big$1.roundDown=0,Big$1.roundHalfUp=1,Big$1.roundHalfEven=2,Big$1.roundUp=3,Big$1}function parse$8(x$1,n$2){var e,i$4,nl;if(!NUMERIC.test(n$2))throw Error(INVALID$3+`number`);for(x$1.s=n$2.charAt(0)==`-`?(n$2=n$2.slice(1),-1):1,(e=n$2.indexOf(`.`))>-1&&(n$2=n$2.replace(`.`,``)),(i$4=n$2.search(/e/i))>0?(e<0&&(e=i$4),e+=+n$2.slice(i$4+1),n$2=n$2.substring(0,i$4)):e<0&&(e=n$2.length),nl=n$2.length,i$4=0;i$4<nl&&n$2.charAt(i$4)==`0`;)++i$4;if(i$4==nl)x$1.c=[x$1.e=0];else{for(;nl>0&&n$2.charAt(--nl)==`0`;);for(x$1.e=e-i$4-1,x$1.c=[],e=0;i$4<=nl;)x$1.c[e++]=+n$2.charAt(i$4++)}return x$1}function round(x$1,sd,rm,more){var xc=x$1.c;if(rm===UNDEFINED&&(rm=x$1.constructor.RM),rm!==0&&rm!==1&&rm!==2&&rm!==3)throw Error(INVALID_RM);if(sd<1)more=rm===3&&(more||!!xc[0])||sd===0&&(rm===1&&xc[0]>=5||rm===2&&(xc[0]>5||xc[0]===5&&(more||xc[1]!==UNDEFINED))),xc.length=1,more?(x$1.e=x$1.e-sd+1,xc[0]=1):xc[0]=x$1.e=0;else if(sd<xc.length){if(more=rm===1&&xc[sd]>=5||rm===2&&(xc[sd]>5||xc[sd]===5&&(more||xc[sd+1]!==UNDEFINED||xc[sd-1]&1))||rm===3&&(more||!!xc[0]),xc.length=sd,more){for(;++xc[--sd]>9;)if(xc[sd]=0,sd===0){++x$1.e,xc.unshift(1);break}}for(sd=xc.length;!xc[--sd];)xc.pop()}return x$1}function stringify(x$1,doExponential,isNonzero){var e=x$1.e,s$2=x$1.c.join(``),n$2=s$2.length;if(doExponential)s$2=s$2.charAt(0)+(n$2>1?`.`+s$2.slice(1):``)+(e<0?`e`:`e+`)+e;else if(e<0){for(;++e;)s$2=`0`+s$2;s$2=`0.`+s$2}else if(e>0)if(++e>n$2)for(e-=n$2;e--;)s$2+=`0`;else e<n$2&&(s$2=s$2.slice(0,e)+`.`+s$2.slice(e));else n$2>1&&(s$2=s$2.charAt(0)+`.`+s$2.slice(1));return x$1.s<0&&isNonzero?`-`+s$2:s$2}P.abs=function(){var x$1=new this.constructor(this);return x$1.s=1,x$1},P.cmp=function(y){var isneg,x$1=this,xc=x$1.c,yc=(y=new x$1.constructor(y)).c,i$4=x$1.s,j$1=y.s,k=x$1.e,l$2=y.e;if(!xc[0]||!yc[0])return xc[0]?i$4:yc[0]?-j$1:0;if(i$4!=j$1)return i$4;if(isneg=i$4<0,k!=l$2)return k>l$2^isneg?1:-1;for(j$1=(k=xc.length)<(l$2=yc.length)?k:l$2,i$4=-1;++i$4<j$1;)if(xc[i$4]!=yc[i$4])return xc[i$4]>yc[i$4]^isneg?1:-1;return k==l$2?0:k>l$2^isneg?1:-1},P.div=function(y){var x$1=this,Big$1=x$1.constructor,a=x$1.c,b=(y=new Big$1(y)).c,k=x$1.s==y.s?1:-1,dp=Big$1.DP;if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);if(!b[0])throw Error(DIV_BY_ZERO);if(!a[0])return y.s=k,y.c=[y.e=0],y;var bl,bt,n$2,cmp$3,ri,bz=b.slice(),ai=bl=b.length,al=a.length,r=a.slice(0,bl),rl=r.length,q=y,qc=q.c=[],qi=0,p=dp+(q.e=x$1.e-y.e)+1;for(q.s=k,k=p<0?0:p,bz.unshift(0);rl++<bl;)r.push(0);do{for(n$2=0;n$2<10;n$2++){if(bl!=(rl=r.length))cmp$3=bl>rl?1:-1;else for(ri=-1,cmp$3=0;++ri<bl;)if(b[ri]!=r[ri]){cmp$3=b[ri]>r[ri]?1:-1;break}if(cmp$3<0){for(bt=rl==bl?b:bz;rl;){if(r[--rl]<bt[rl]){for(ri=rl;ri&&!r[--ri];)r[ri]=9;--r[ri],r[rl]+=10}r[rl]-=bt[rl]}for(;!r[0];)r.shift()}else break}qc[qi++]=cmp$3?n$2:++n$2,r[0]&&cmp$3?r[rl]=a[ai]||0:r=[a[ai]]}while((ai++<al||r[0]!==UNDEFINED)&&k--);return!qc[0]&&qi!=1&&(qc.shift(),q.e--,p--),qi>p&&round(q,p,Big$1.RM,r[0]!==UNDEFINED),q},P.eq=function(y){return this.cmp(y)===0},P.gt=function(y){return this.cmp(y)>0},P.gte=function(y){return this.cmp(y)>-1},P.lt=function(y){return this.cmp(y)<0},P.lte=function(y){return this.cmp(y)<1},P.minus=P.sub=function(y){var i$4,j$1,t$5,xlty,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(a!=b)return y.s=-b,x$1.plus(y);var xc=x$1.c.slice(),xe=x$1.e,yc=y.c,ye=y.e;if(!xc[0]||!yc[0])return yc[0]?y.s=-b:xc[0]?y=new Big$1(x$1):y.s=1,y;if(a=xe-ye){for((xlty=a<0)?(a=-a,t$5=xc):(ye=xe,t$5=yc),t$5.reverse(),b=a;b--;)t$5.push(0);t$5.reverse()}else for(j$1=((xlty=xc.length<yc.length)?xc:yc).length,a=b=0;b<j$1;b++)if(xc[b]!=yc[b]){xlty=xc[b]<yc[b];break}if(xlty&&(t$5=xc,xc=yc,yc=t$5,y.s=-y.s),(b=(j$1=yc.length)-(i$4=xc.length))>0)for(;b--;)xc[i$4++]=0;for(b=i$4;j$1>a;){if(xc[--j$1]<yc[j$1]){for(i$4=j$1;i$4&&!xc[--i$4];)xc[i$4]=9;--xc[i$4],xc[j$1]+=10}xc[j$1]-=yc[j$1]}for(;xc[--b]===0;)xc.pop();for(;xc[0]===0;)xc.shift(),--ye;return xc[0]||(y.s=1,xc=[ye=0]),y.c=xc,y.e=ye,y},P.mod=function(y){var ygtx,x$1=this,Big$1=x$1.constructor,a=x$1.s,b=(y=new Big$1(y)).s;if(!y.c[0])throw Error(DIV_BY_ZERO);return x$1.s=y.s=1,ygtx=y.cmp(x$1)==1,x$1.s=a,y.s=b,ygtx?new Big$1(x$1):(a=Big$1.DP,b=Big$1.RM,Big$1.DP=Big$1.RM=0,x$1=x$1.div(y),Big$1.DP=a,Big$1.RM=b,this.minus(x$1.times(y)))},P.neg=function(){var x$1=new this.constructor(this);return x$1.s=-x$1.s,x$1},P.plus=P.add=function(y){var e,k,t$5,x$1=this,Big$1=x$1.constructor;if(y=new Big$1(y),x$1.s!=y.s)return y.s=-y.s,x$1.minus(y);var xe=x$1.e,xc=x$1.c,ye=y.e,yc=y.c;if(!xc[0]||!yc[0])return yc[0]||(xc[0]?y=new Big$1(x$1):y.s=x$1.s),y;if(xc=xc.slice(),e=xe-ye){for(e>0?(ye=xe,t$5=yc):(e=-e,t$5=xc),t$5.reverse();e--;)t$5.push(0);t$5.reverse()}for(xc.length-yc.length<0&&(t$5=yc,yc=xc,xc=t$5),e=yc.length,k=0;e;xc[e]%=10)k=(xc[--e]=xc[e]+yc[e]+k)/10|0;for(k&&(xc.unshift(k),++ye),e=xc.length;xc[--e]===0;)xc.pop();return y.c=xc,y.e=ye,y},P.pow=function(n$2){var x$1=this,one=new x$1.constructor(`1`),y=one,isneg=n$2<0;if(n$2!==~~n$2||n$2<-MAX_POWER||n$2>MAX_POWER)throw Error(INVALID$3+`exponent`);for(isneg&&(n$2=-n$2);n$2&1&&(y=y.times(x$1)),n$2>>=1,n$2;)x$1=x$1.times(x$1);return isneg?one.div(y):y},P.prec=function(sd,rm){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);return round(new this.constructor(this),sd,rm)},P.round=function(dp,rm){if(dp===UNDEFINED)dp=0;else if(dp!==~~dp||dp<-MAX_DP||dp>MAX_DP)throw Error(INVALID_DP);return round(new this.constructor(this),dp+this.e+1,rm)},P.sqrt=function(){var r,c$1,t$5,x$1=this,Big$1=x$1.constructor,s$2=x$1.s,e=x$1.e,half=new Big$1(`0.5`);if(!x$1.c[0])return new Big$1(x$1);if(s$2<0)throw Error(NAME+`No square root`);s$2=Math.sqrt(+stringify(x$1,!0,!0)),s$2===0||s$2===1/0?(c$1=x$1.c.join(``),c$1.length+e&1||(c$1+=`0`),s$2=Math.sqrt(c$1),e=((e+1)/2|0)-(e<0||e&1),r=new Big$1((s$2==1/0?`5e`:(s$2=s$2.toExponential()).slice(0,s$2.indexOf(`e`)+1))+e)):r=new Big$1(s$2+``),e=r.e+(Big$1.DP+=4);do t$5=r,r=half.times(t$5.plus(x$1.div(t$5)));while(t$5.c.slice(0,e).join(``)!==r.c.slice(0,e).join(``));return round(r,(Big$1.DP-=4)+r.e+1,Big$1.RM)},P.times=P.mul=function(y){var c$1,x$1=this,Big$1=x$1.constructor,xc=x$1.c,yc=(y=new Big$1(y)).c,a=xc.length,b=yc.length,i$4=x$1.e,j$1=y.e;if(y.s=x$1.s==y.s?1:-1,!xc[0]||!yc[0])return y.c=[y.e=0],y;for(y.e=i$4+j$1,a<b&&(c$1=xc,xc=yc,yc=c$1,j$1=a,a=b,b=j$1),c$1=Array(j$1=a+b);j$1--;)c$1[j$1]=0;for(i$4=b;i$4--;){for(b=0,j$1=a+i$4;j$1>i$4;)b=c$1[j$1]+yc[i$4]*xc[j$1-i$4-1]+b,c$1[j$1--]=b%10,b=b/10|0;c$1[j$1]=b}for(b?++y.e:c$1.shift(),i$4=c$1.length;!c$1[--i$4];)c$1.pop();return y.c=c$1,y},P.toExponential=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),++dp,rm);x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!0,!!n$2)},P.toFixed=function(dp,rm){var x$1=this,n$2=x$1.c[0];if(dp!==UNDEFINED){if(dp!==~~dp||dp<0||dp>MAX_DP)throw Error(INVALID_DP);for(x$1=round(new x$1.constructor(x$1),dp+x$1.e+1,rm),dp=dp+x$1.e+1;x$1.c.length<dp;)x$1.c.push(0)}return stringify(x$1,!1,!!n$2)},P.toJSON=P.toString=function(){var x$1=this,Big$1=x$1.constructor;return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!x$1.c[0])},typeof Symbol<`u`&&(P[Symbol.for(`nodejs.util.inspect.custom`)]=P.toJSON),P.toNumber=function(){var n$2=+stringify(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(n$2.toString()))throw Error(NAME+`Imprecise conversion`);return n$2},P.toPrecision=function(sd,rm){var x$1=this,Big$1=x$1.constructor,n$2=x$1.c[0];if(sd!==UNDEFINED){if(sd!==~~sd||sd<1||sd>MAX_DP)throw Error(INVALID$3+`precision`);for(x$1=round(new Big$1(x$1),sd,rm);x$1.c.length<sd;)x$1.c.push(0)}return stringify(x$1,sd<=x$1.e||x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!!n$2)},P.valueOf=function(){var x$1=this,Big$1=x$1.constructor;if(Big$1.strict===!0)throw Error(NAME+`valueOf disallowed`);return stringify(x$1,x$1.e<=Big$1.NE||x$1.e>=Big$1.PE,!0)};var Big=_Big_(),big_default=Big;const messages$1={"bigint.base":`"{{#label}}" must be a valid bigint`,"bigint.greater":`"{{#label}}" must be greater than {{#limit}}`,"bigint.less":`"{{#label}}" must be less than {{#limit}}`,"bigint.max":`"{{#label}}" must be less than or equal to {{#limit}}`,"bigint.min":`"{{#label}}" must be greater than or equal to {{#limit}}`,"bigint.multiple":`"{{#label}}" must be a multiple of {{#limit}}`,"bigint.negative":`"{{#label}}" must be a negative bigint`,"bigint.positive":`"{{#label}}" must be a positive bigint`},compare$13=(value,limit,operator)=>{switch(operator){case`>`:return value.gt(limit);case`<`:return value.lt(limit);case`>=`:return value.gte(limit);case`<=`:return value.lte(limit);case`multiple`:return value.mod(limit).eq(0);default:return!1}},bigint=function(joi){return{type:`bigint`,base:joi.any(),coerce:{from:[`string`,`number`],method(value,helpers){if(typeof value==`bigint`)return{value};try{let asBig=big_default(value.toString());return asBig.eq(asBig.round(0))?{value:BigInt(asBig.toString())}:{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}catch{return{value,errors:[helpers.error(`bigint.base`,{value:String(value)})]}}}},messages:messages$1,validate(value,{error}){return typeof value==`bigint`?{value}:{value,errors:error(`bigint.base`,{value:String(value)})}},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let big=big_default(value.toString()),threshold=big_default(limit.toString()),valid$2=compare$13(big,threshold,operator);return valid$2?value:helpers.error(`bigint.`+name$1,{limit:limit.toString(),value:value.toString()})},args:[{name:`limit`,ref:!0,assert:value=>[`bigint`,`number`,`string`].includes(typeof value),message:`must be a bigint`}]},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},multiple:{method(limit){return this.$_addRule({name:`multiple`,method:`compare`,args:{limit},operator:`multiple`})}},negative:{method(){return this.$_addRule(`negative`)},validate(value,helpers){return value>=0n?helpers.error(`bigint.negative`,{value:value.toString()}):value}},positive:{method(){return this.$_addRule(`positive`)},validate(value,helpers){return value<=0n?helpers.error(`bigint.positive`,{value:value.toString()}):value}}},cast:{string:{from:value=>typeof value==`bigint`,to(value){return value.toString()}}}}};var LuxonError=class extends Error{},InvalidDateTimeError=class extends LuxonError{constructor(reason){super(`Invalid DateTime: ${reason.toMessage()}`)}},InvalidIntervalError=class extends LuxonError{constructor(reason){super(`Invalid Interval: ${reason.toMessage()}`)}},InvalidDurationError=class extends LuxonError{constructor(reason){super(`Invalid Duration: ${reason.toMessage()}`)}},ConflictingSpecificationError=class extends LuxonError{},InvalidUnitError=class extends LuxonError{constructor(unit){super(`Invalid unit ${unit}`)}},InvalidArgumentError=class extends LuxonError{},ZoneIsAbstractError=class extends LuxonError{constructor(){super(`Zone is an abstract class`)}};const n=`numeric`,s=`short`,l=`long`,DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l,day:n},DATE_HUGE={year:n,month:l,day:n,weekday:l},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:`h23`},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:`h23`},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:`h23`,timeZoneName:l},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l,day:n,weekday:l,hour:n,minute:n,timeZoneName:l},DATETIME_HUGE_WITH_SECONDS={year:n,month:l,day:n,weekday:l,hour:n,minute:n,second:n,timeZoneName:l};var Zone=class{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(ts,opts){throw new ZoneIsAbstractError}formatOffset(ts,format){throw new ZoneIsAbstractError}offset(ts){throw new ZoneIsAbstractError}equals(otherZone){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}};let singleton$1=null;var SystemZone=class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return`system`}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){return-new Date(ts).getTimezoneOffset()}equals(otherZone){return otherZone.type===`system`}get isValid(){return!0}};const dtfCache=new Map;function makeDTF(zoneName){let dtf=dtfCache.get(zoneName);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:zoneName,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,era:`short`}),dtfCache.set(zoneName,dtf)),dtf}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(dtf,date){let formatted=dtf.format(date).replace(/\u200E/g,``),parsed=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted),[,fMonth,fDay,fYear,fadOrBc,fHour,fMinute,fSecond]=parsed;return[fYear,fMonth,fDay,fadOrBc,fHour,fMinute,fSecond]}function partsOffset(dtf,date){let formatted=dtf.formatToParts(date),filled=[];for(let i$4=0;i$4<formatted.length;i$4++){let{type,value}=formatted[i$4],pos=typeToPos[type];type===`era`?filled[pos]=value:isUndefined(pos)||(filled[pos]=parseInt(value,10))}return filled}const ianaZoneCache=new Map;var IANAZone=class IANAZone extends Zone{static create(name$1){let zone=ianaZoneCache.get(name$1);return zone===void 0&&ianaZoneCache.set(name$1,zone=new IANAZone(name$1)),zone}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(s$2){return this.isValidZone(s$2)}static isValidZone(zone){if(!zone)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:zone}).format(),!0}catch{return!1}}constructor(name$1){super(),this.zoneName=name$1,this.valid=IANAZone.isValidZone(name$1)}get type(){return`iana`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(ts,{format,locale}){return parseZoneInfo(ts,format,locale,this.name)}formatOffset(ts,format){return formatOffset(this.offset(ts),format)}offset(ts){if(!this.valid)return NaN;let date=new Date(ts);if(isNaN(date))return NaN;let dtf=makeDTF(this.name),[year,month,day,adOrBc,hour,minute,second]=dtf.formatToParts?partsOffset(dtf,date):hackyOffset(dtf,date);adOrBc===`BC`&&(year=-Math.abs(year)+1);let adjustedHour=hour===24?0:hour,asUTC=objToLocalTS({year,month,day,hour:adjustedHour,minute,second,millisecond:0}),asTS=+date,over=asTS%1e3;return asTS-=over>=0?over:1e3+over,(asUTC-asTS)/(60*1e3)}equals(otherZone){return otherZone.type===`iana`&&otherZone.name===this.name}get isValid(){return this.valid}};let intlLFCache={};function getCachedLF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlLFCache[key];return dtf||(dtf=new Intl.ListFormat(locString,opts),intlLFCache[key]=dtf),dtf}const intlDTCache=new Map;function getCachedDTF(locString,opts={}){let key=JSON.stringify([locString,opts]),dtf=intlDTCache.get(key);return dtf===void 0&&(dtf=new Intl.DateTimeFormat(locString,opts),intlDTCache.set(key,dtf)),dtf}const intlNumCache=new Map;function getCachedINF(locString,opts={}){let key=JSON.stringify([locString,opts]),inf=intlNumCache.get(key);return inf===void 0&&(inf=new Intl.NumberFormat(locString,opts),intlNumCache.set(key,inf)),inf}const intlRelCache=new Map;function getCachedRTF(locString,opts={}){let{base,...cacheKeyOpts}=opts,key=JSON.stringify([locString,cacheKeyOpts]),inf=intlRelCache.get(key);return inf===void 0&&(inf=new Intl.RelativeTimeFormat(locString,opts),intlRelCache.set(key,inf)),inf}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(locString){let opts=intlResolvedOptionsCache.get(locString);return opts===void 0&&(opts=new Intl.DateTimeFormat(locString).resolvedOptions(),intlResolvedOptionsCache.set(locString,opts)),opts}const weekInfoCache=new Map;function getCachedWeekInfo(locString){let data=weekInfoCache.get(locString);if(!data){let locale=new Intl.Locale(locString);data=`getWeekInfo`in locale?locale.getWeekInfo():locale.weekInfo,`minimalDays`in data||(data={...fallbackWeekSettings,...data}),weekInfoCache.set(locString,data)}return data}function parseLocaleString(localeStr){let xIndex=localeStr.indexOf(`-x-`);xIndex!==-1&&(localeStr=localeStr.substring(0,xIndex));let uIndex=localeStr.indexOf(`-u-`);if(uIndex===-1)return[localeStr];{let options,selectedStr;try{options=getCachedDTF(localeStr).resolvedOptions(),selectedStr=localeStr}catch{let smaller=localeStr.substring(0,uIndex);options=getCachedDTF(smaller).resolvedOptions(),selectedStr=smaller}let{numberingSystem,calendar}=options;return[selectedStr,numberingSystem,calendar]}}function intlConfigString(localeStr,numberingSystem,outputCalendar){return outputCalendar||numberingSystem?(localeStr.includes(`-u-`)||(localeStr+=`-u`),outputCalendar&&(localeStr+=`-ca-${outputCalendar}`),numberingSystem&&(localeStr+=`-nu-${numberingSystem}`),localeStr):localeStr}function mapMonths(f){let ms=[];for(let i$4=1;i$4<=12;i$4++){let dt=DateTime.utc(2009,i$4,1);ms.push(f(dt))}return ms}function mapWeekdays(f){let ms=[];for(let i$4=1;i$4<=7;i$4++){let dt=DateTime.utc(2016,11,13+i$4);ms.push(f(dt))}return ms}function listStuff(loc,length,englishFn,intlFn){let mode=loc.listingMode();return mode===`error`?null:mode===`en`?englishFn(length):intlFn(length)}function supportsFastNumbers(loc){return loc.numberingSystem&&loc.numberingSystem!==`latn`?!1:loc.numberingSystem===`latn`||!loc.locale||loc.locale.startsWith(`en`)||getCachedIntResolvedOptions(loc.locale).numberingSystem===`latn`}var PolyNumberFormatter=class{constructor(intl,forceSimple,opts){this.padTo=opts.padTo||0,this.floor=opts.floor||!1;let{padTo,floor:floor$1,...otherOpts}=opts;if(!forceSimple||Object.keys(otherOpts).length>0){let intlOpts={useGrouping:!1,...opts};opts.padTo>0&&(intlOpts.minimumIntegerDigits=opts.padTo),this.inf=getCachedINF(intl,intlOpts)}}format(i$4){if(this.inf){let fixed=this.floor?Math.floor(i$4):i$4;return this.inf.format(fixed)}else{let fixed=this.floor?Math.floor(i$4):roundTo(i$4,3);return padStart(fixed,this.padTo)}}},PolyDateFormatter=class{constructor(dt,intl,opts){this.opts=opts,this.originalZone=void 0;let z$1;if(this.opts.timeZone)this.dt=dt;else if(dt.zone.type===`fixed`){let gmtOffset=-1*(dt.offset/60),offsetZ=gmtOffset>=0?`Etc/GMT+${gmtOffset}`:`Etc/GMT${gmtOffset}`;dt.offset!==0&&IANAZone.create(offsetZ).valid?(z$1=offsetZ,this.dt=dt):(z$1=`UTC`,this.dt=dt.offset===0?dt:dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone)}else dt.zone.type===`system`?this.dt=dt:dt.zone.type===`iana`?(this.dt=dt,z$1=dt.zone.name):(z$1=`UTC`,this.dt=dt.setZone(`UTC`).plus({minutes:dt.offset}),this.originalZone=dt.zone);let intlOpts={...this.opts};intlOpts.timeZone=intlOpts.timeZone||z$1,this.dtf=getCachedDTF(intl,intlOpts)}format(){return this.originalZone?this.formatToParts().map(({value})=>value).join(``):this.dtf.format(this.dt.toJSDate())}formatToParts(){let parts=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?parts.map(part=>{if(part.type===`timeZoneName`){let offsetName=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...part,value:offsetName}}else return part}):parts}resolvedOptions(){return this.dtf.resolvedOptions()}},PolyRelFormatter=class{constructor(intl,isEnglish,opts){this.opts={style:`long`,...opts},!isEnglish&&hasRelative()&&(this.rtf=getCachedRTF(intl,opts))}format(count,unit){return this.rtf?this.rtf.format(count,unit):formatRelativeTime(unit,count,this.opts.numeric,this.opts.style!==`long`)}formatToParts(count,unit){return this.rtf?this.rtf.formatToParts(count,unit):[]}};const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};var Locale=class Locale{static fromOpts(opts){return Locale.create(opts.locale,opts.numberingSystem,opts.outputCalendar,opts.weekSettings,opts.defaultToEN)}static create(locale,numberingSystem,outputCalendar,weekSettings,defaultToEN=!1){let specifiedLocale=locale||Settings.defaultLocale,localeR=specifiedLocale||(defaultToEN?`en-US`:systemLocale()),numberingSystemR=numberingSystem||Settings.defaultNumberingSystem,outputCalendarR=outputCalendar||Settings.defaultOutputCalendar,weekSettingsR=validateWeekSettings(weekSettings)||Settings.defaultWeekSettings;return new Locale(localeR,numberingSystemR,outputCalendarR,weekSettingsR,specifiedLocale)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale,numberingSystem,outputCalendar,weekSettings}={}){return Locale.create(locale,numberingSystem,outputCalendar,weekSettings)}constructor(locale,numbering,outputCalendar,weekSettings,specifiedLocale){let[parsedLocale,parsedNumberingSystem,parsedOutputCalendar]=parseLocaleString(locale);this.locale=parsedLocale,this.numberingSystem=numbering||parsedNumberingSystem||null,this.outputCalendar=outputCalendar||parsedOutputCalendar||null,this.weekSettings=weekSettings,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=specifiedLocale,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached??=supportsFastNumbers(this),this.fastNumbersCached}listingMode(){let isActuallyEn=this.isEnglish(),hasNoWeirdness=(this.numberingSystem===null||this.numberingSystem===`latn`)&&(this.outputCalendar===null||this.outputCalendar===`gregory`);return isActuallyEn&&hasNoWeirdness?`en`:`intl`}clone(alts){return!alts||Object.getOwnPropertyNames(alts).length===0?this:Locale.create(alts.locale||this.specifiedLocale,alts.numberingSystem||this.numberingSystem,alts.outputCalendar||this.outputCalendar,validateWeekSettings(alts.weekSettings)||this.weekSettings,alts.defaultToEN||!1)}redefaultToEN(alts={}){return this.clone({...alts,defaultToEN:!0})}redefaultToSystem(alts={}){return this.clone({...alts,defaultToEN:!1})}months(length,format=!1){return listStuff(this,length,months,()=>{let monthSpecialCase=this.intl===`ja`||this.intl.startsWith(`ja-`);format&=!monthSpecialCase;let intl=format?{month:length,day:`numeric`}:{month:length},formatStr=format?`format`:`standalone`;if(!this.monthsCache[formatStr][length]){let mapper=monthSpecialCase?dt=>this.dtFormatter(dt,intl).format():dt=>this.extract(dt,intl,`month`);this.monthsCache[formatStr][length]=mapMonths(mapper)}return this.monthsCache[formatStr][length]})}weekdays(length,format=!1){return listStuff(this,length,weekdays,()=>{let intl=format?{weekday:length,year:`numeric`,month:`long`,day:`numeric`}:{weekday:length},formatStr=format?`format`:`standalone`;return this.weekdaysCache[formatStr][length]||(this.weekdaysCache[formatStr][length]=mapWeekdays(dt=>this.extract(dt,intl,`weekday`))),this.weekdaysCache[formatStr][length]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){let intl={hour:`numeric`,hourCycle:`h12`};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(dt=>this.extract(dt,intl,`dayperiod`))}return this.meridiemCache})}eras(length){return listStuff(this,length,eras,()=>{let intl={era:length};return this.eraCache[length]||(this.eraCache[length]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(dt=>this.extract(dt,intl,`era`))),this.eraCache[length]})}extract(dt,intlOpts,field){let df=this.dtFormatter(dt,intlOpts),results=df.formatToParts(),matching=results.find(m=>m.type.toLowerCase()===field);return matching?matching.value:null}numberFormatter(opts={}){return new PolyNumberFormatter(this.intl,opts.forceSimple||this.fastNumbers,opts)}dtFormatter(dt,intlOpts={}){return new PolyDateFormatter(dt,this.intl,intlOpts)}relFormatter(opts={}){return new PolyRelFormatter(this.intl,this.isEnglish(),opts)}listFormatter(opts={}){return getCachedLF(this.intl,opts)}isEnglish(){return this.locale===`en`||this.locale.toLowerCase()===`en-us`||getCachedIntResolvedOptions(this.intl).locale.startsWith(`en-us`)}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(other){return this.locale===other.locale&&this.numberingSystem===other.numberingSystem&&this.outputCalendar===other.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};let singleton=null;var FixedOffsetZone=class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(offset$2){return offset$2===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(offset$2)}static parseSpecifier(s$2){if(s$2){let r=s$2.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(offset$2){super(),this.fixed=offset$2}get type(){return`fixed`}get name(){return this.fixed===0?`UTC`:`UTC${formatOffset(this.fixed,`narrow`)}`}get ianaName(){return this.fixed===0?`Etc/UTC`:`Etc/GMT${formatOffset(-this.fixed,`narrow`)}`}offsetName(){return this.name}formatOffset(ts,format){return formatOffset(this.fixed,format)}get isUniversal(){return!0}offset(){return this.fixed}equals(otherZone){return otherZone.type===`fixed`&&otherZone.fixed===this.fixed}get isValid(){return!0}},InvalidZone=class extends Zone{constructor(zoneName){super(),this.zoneName=zoneName}get type(){return`invalid`}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return``}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function normalizeZone(input,defaultZone$2){if(isUndefined(input)||input===null)return defaultZone$2;if(input instanceof Zone)return input;if(isString(input)){let lowered=input.toLowerCase();return lowered===`default`?defaultZone$2:lowered===`local`||lowered===`system`?SystemZone.instance:lowered===`utc`||lowered===`gmt`?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(lowered)||IANAZone.create(input)}else if(isNumber(input))return FixedOffsetZone.instance(input);else if(typeof input==`object`&&`offset`in input&&typeof input.offset==`function`)return input;else return new InvalidZone(input)}const numberingSystems={arab:`[٠-٩]`,arabext:`[۰-۹]`,bali:`[᭐-᭙]`,beng:`[০-৯]`,deva:`[०-९]`,fullwide:`[0-9]`,gujr:`[૦-૯]`,hanidec:`[〇|一|二|三|四|五|六|七|八|九]`,khmr:`[០-៩]`,knda:`[೦-೯]`,laoo:`[໐-໙]`,limb:`[᥆-᥏]`,mlym:`[൦-൯]`,mong:`[᠐-᠙]`,mymr:`[၀-၉]`,orya:`[୦-୯]`,tamldec:`[௦-௯]`,telu:`[౦-౯]`,thai:`[๐-๙]`,tibt:`[༠-༩]`,latn:`\\d`},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,``).split(``);function parseDigits(str){let value=parseInt(str,10);if(isNaN(value)){value=``;for(let i$4=0;i$4<str.length;i$4++){let code$2=str.charCodeAt(i$4);if(str[i$4].search(numberingSystems.hanidec)!==-1)value+=hanidecChars.indexOf(str[i$4]);else for(let key in numberingSystemsUTF16){let[min$1,max$3]=numberingSystemsUTF16[key];code$2>=min$1&&code$2<=max$3&&(value+=code$2-min$1)}}return parseInt(value,10)}else return value}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem},append=``){let ns=numberingSystem||`latn`,appendCache=digitRegexCache.get(ns);appendCache===void 0&&(appendCache=new Map,digitRegexCache.set(ns,appendCache));let regex=appendCache.get(append);return regex===void 0&&(regex=RegExp(`${numberingSystems[ns]}${append}`),appendCache.set(append,regex)),regex}let now=()=>Date.now(),defaultZone=`system`,defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;var Settings=class{static get now(){return now}static set now(n$2){now=n$2}static set defaultZone(zone){defaultZone=zone}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(locale){defaultLocale=locale}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(numberingSystem){defaultNumberingSystem=numberingSystem}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(outputCalendar){defaultOutputCalendar=outputCalendar}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(weekSettings){defaultWeekSettings=validateWeekSettings(weekSettings)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(cutoffYear){twoDigitCutoffYear=cutoffYear%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t$5){throwOnInvalid=t$5}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}},Invalid=class{constructor(reason,explanation){this.reason=reason,this.explanation=explanation}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(unit,value){return new Invalid(`unit out of range`,`you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`)}function dayOfWeek(year,month,day){let d=new Date(Date.UTC(year,month-1,day));year<100&&year>=0&&d.setUTCFullYear(d.getUTCFullYear()-1900);let js=d.getUTCDay();return js===0?7:js}function computeOrdinal(year,month,day){return day+(isLeapYear(year)?leapLadder:nonLeapLadder)[month-1]}function uncomputeOrdinal(year,ordinal){let table=isLeapYear(year)?leapLadder:nonLeapLadder,month0=table.findIndex(i$4=>i$4<ordinal),day=ordinal-table[month0];return{month:month0+1,day}}function isoWeekdayToLocal(isoWeekday,startOfWeek){return(isoWeekday-startOfWeek+7)%7+1}function gregorianToWeek(gregObj,minDaysInFirstWeek=4,startOfWeek=1){let{year,month,day}=gregObj,ordinal=computeOrdinal(year,month,day),weekday=isoWeekdayToLocal(dayOfWeek(year,month,day),startOfWeek),weekNumber=Math.floor((ordinal-weekday+14-minDaysInFirstWeek)/7),weekYear;return weekNumber<1?(weekYear=year-1,weekNumber=weeksInWeekYear(weekYear,minDaysInFirstWeek,startOfWeek)):weekNumber>weeksInWeekYear(year,minDaysInFirstWeek,startOfWeek)?(weekYear=year+1,weekNumber=1):weekYear=year,{weekYear,weekNumber,weekday,...timeObject(gregObj)}}function weekToGregorian(weekData,minDaysInFirstWeek=4,startOfWeek=1){let{weekYear,weekNumber,weekday}=weekData,weekdayOfJan4=isoWeekdayToLocal(dayOfWeek(weekYear,1,minDaysInFirstWeek),startOfWeek),yearInDays=daysInYear(weekYear),ordinal=weekNumber*7+weekday-weekdayOfJan4-7+minDaysInFirstWeek,year;ordinal<1?(year=weekYear-1,ordinal+=daysInYear(year)):ordinal>yearInDays?(year=weekYear+1,ordinal-=daysInYear(weekYear)):year=weekYear;let{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(weekData)}}function gregorianToOrdinal(gregData){let{year,month,day}=gregData,ordinal=computeOrdinal(year,month,day);return{year,ordinal,...timeObject(gregData)}}function ordinalToGregorian(ordinalData){let{year,ordinal}=ordinalData,{month,day}=uncomputeOrdinal(year,ordinal);return{year,month,day,...timeObject(ordinalData)}}function usesLocalWeekValues(obj,loc){let hasLocaleWeekData=!isUndefined(obj.localWeekday)||!isUndefined(obj.localWeekNumber)||!isUndefined(obj.localWeekYear);if(hasLocaleWeekData){let hasIsoWeekData=!isUndefined(obj.weekday)||!isUndefined(obj.weekNumber)||!isUndefined(obj.weekYear);if(hasIsoWeekData)throw new ConflictingSpecificationError(`Cannot mix locale-based week fields with ISO-based week fields`);return isUndefined(obj.localWeekday)||(obj.weekday=obj.localWeekday),isUndefined(obj.localWeekNumber)||(obj.weekNumber=obj.localWeekNumber),isUndefined(obj.localWeekYear)||(obj.weekYear=obj.localWeekYear),delete obj.localWeekday,delete obj.localWeekNumber,delete obj.localWeekYear,{minDaysInFirstWeek:loc.getMinDaysInFirstWeek(),startOfWeek:loc.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(obj,minDaysInFirstWeek=4,startOfWeek=1){let validYear=isInteger(obj.weekYear),validWeek=integerBetween(obj.weekNumber,1,weeksInWeekYear(obj.weekYear,minDaysInFirstWeek,startOfWeek)),validWeekday=integerBetween(obj.weekday,1,7);return validYear?validWeek?validWeekday?!1:unitOutOfRange(`weekday`,obj.weekday):unitOutOfRange(`week`,obj.weekNumber):unitOutOfRange(`weekYear`,obj.weekYear)}function hasInvalidOrdinalData(obj){let validYear=isInteger(obj.year),validOrdinal=integerBetween(obj.ordinal,1,daysInYear(obj.year));return validYear?validOrdinal?!1:unitOutOfRange(`ordinal`,obj.ordinal):unitOutOfRange(`year`,obj.year)}function hasInvalidGregorianData(obj){let validYear=isInteger(obj.year),validMonth=integerBetween(obj.month,1,12),validDay=integerBetween(obj.day,1,daysInMonth(obj.year,obj.month));return validYear?validMonth?validDay?!1:unitOutOfRange(`day`,obj.day):unitOutOfRange(`month`,obj.month):unitOutOfRange(`year`,obj.year)}function hasInvalidTimeData(obj){let{hour,minute,second,millisecond}=obj,validHour=integerBetween(hour,0,23)||hour===24&&minute===0&&second===0&&millisecond===0,validMinute=integerBetween(minute,0,59),validSecond=integerBetween(second,0,59),validMillisecond=integerBetween(millisecond,0,999);return validHour?validMinute?validSecond?validMillisecond?!1:unitOutOfRange(`millisecond`,millisecond):unitOutOfRange(`second`,second):unitOutOfRange(`minute`,minute):unitOutOfRange(`hour`,hour)}function isUndefined(o){return o===void 0}function isNumber(o){return typeof o==`number`}function isInteger(o){return typeof o==`number`&&o%1==0}function isString(o){return typeof o==`string`}function isDate(o){return Object.prototype.toString.call(o)===`[object Date]`}function hasRelative(){try{return typeof Intl<`u`&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<`u`&&!!Intl.Locale&&(`weekInfo`in Intl.Locale.prototype||`getWeekInfo`in Intl.Locale.prototype)}catch{return!1}}function maybeArray(thing){return Array.isArray(thing)?thing:[thing]}function bestBy(arr,by,compare$14){if(arr.length!==0)return arr.reduce((best,next)=>{let pair=[by(next),next];return best&&compare$14(best[0],pair[0])===best[0]?best:pair},null)[1]}function pick(obj,keys){return keys.reduce((a,k)=>(a[k]=obj[k],a),{})}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function validateWeekSettings(settings){if(settings==null)return null;if(typeof settings!=`object`)throw new InvalidArgumentError(`Week settings must be an object`);if(!integerBetween(settings.firstDay,1,7)||!integerBetween(settings.minimalDays,1,7)||!Array.isArray(settings.weekend)||settings.weekend.some(v=>!integerBetween(v,1,7)))throw new InvalidArgumentError(`Invalid week settings`);return{firstDay:settings.firstDay,minimalDays:settings.minimalDays,weekend:Array.from(settings.weekend)}}function integerBetween(thing,bottom,top){return isInteger(thing)&&thing>=bottom&&thing<=top}function floorMod(x$1,n$2){return x$1-n$2*Math.floor(x$1/n$2)}function padStart(input,n$2=2){let isNeg=input<0,padded;return padded=isNeg?`-`+(``+-input).padStart(n$2,`0`):(``+input).padStart(n$2,`0`),padded}function parseInteger(string){if(!(isUndefined(string)||string===null||string===``))return parseInt(string,10)}function parseFloating(string){if(!(isUndefined(string)||string===null||string===``))return parseFloat(string)}function parseMillis(fraction){if(!(isUndefined(fraction)||fraction===null||fraction===``)){let f=parseFloat(`0.`+fraction)*1e3;return Math.floor(f)}}function roundTo(number,digits,rounding=`round`){let factor=10**digits;switch(rounding){case`expand`:return number>0?Math.ceil(number*factor)/factor:Math.floor(number*factor)/factor;case`trunc`:return Math.trunc(number*factor)/factor;case`round`:return Math.round(number*factor)/factor;case`floor`:return Math.floor(number*factor)/factor;case`ceil`:return Math.ceil(number*factor)/factor;default:throw RangeError(`Value rounding ${rounding} is out of range`)}}function isLeapYear(year){return year%4==0&&(year%100!=0||year%400==0)}function daysInYear(year){return isLeapYear(year)?366:365}function daysInMonth(year,month){let modMonth=floorMod(month-1,12)+1,modYear=year+(month-modMonth)/12;return modMonth===2?isLeapYear(modYear)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][modMonth-1]}function objToLocalTS(obj){let d=Date.UTC(obj.year,obj.month-1,obj.day,obj.hour,obj.minute,obj.second,obj.millisecond);return obj.year<100&&obj.year>=0&&(d=new Date(d),d.setUTCFullYear(obj.year,obj.month-1,obj.day)),+d}function firstWeekOffset(year,minDaysInFirstWeek,startOfWeek){let fwdlw=isoWeekdayToLocal(dayOfWeek(year,1,minDaysInFirstWeek),startOfWeek);return-fwdlw+minDaysInFirstWeek-1}function weeksInWeekYear(weekYear,minDaysInFirstWeek=4,startOfWeek=1){let weekOffset=firstWeekOffset(weekYear,minDaysInFirstWeek,startOfWeek),weekOffsetNext=firstWeekOffset(weekYear+1,minDaysInFirstWeek,startOfWeek);return(daysInYear(weekYear)-weekOffset+weekOffsetNext)/7}function untruncateYear(year){return year>99?year:year>Settings.twoDigitCutoffYear?1900+year:2e3+year}function parseZoneInfo(ts,offsetFormat,locale,timeZone=null){let date=new Date(ts),intlOpts={hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`};timeZone&&(intlOpts.timeZone=timeZone);let modified={timeZoneName:offsetFormat,...intlOpts},parsed=new Intl.DateTimeFormat(locale,modified).formatToParts(date).find(m=>m.type.toLowerCase()===`timezonename`);return parsed?parsed.value:null}function signedOffset(offHourStr,offMinuteStr){let offHour=parseInt(offHourStr,10);Number.isNaN(offHour)&&(offHour=0);let offMin=parseInt(offMinuteStr,10)||0,offMinSigned=offHour<0||Object.is(offHour,-0)?-offMin:offMin;return offHour*60+offMinSigned}function asNumber(value){let numericValue=Number(value);if(typeof value==`boolean`||value===``||!Number.isFinite(numericValue))throw new InvalidArgumentError(`Invalid unit value ${value}`);return numericValue}function normalizeObject(obj,normalizer){let normalized={};for(let u in obj)if(hasOwnProperty(obj,u)){let v=obj[u];if(v==null)continue;normalized[normalizer(u)]=asNumber(v)}return normalized}function formatOffset(offset$2,format){let hours=Math.trunc(Math.abs(offset$2/60)),minutes=Math.trunc(Math.abs(offset$2%60)),sign$1=offset$2>=0?`+`:`-`;switch(format){case`short`:return`${sign$1}${padStart(hours,2)}:${padStart(minutes,2)}`;case`narrow`:return`${sign$1}${hours}${minutes>0?`:${minutes}`:``}`;case`techie`:return`${sign$1}${padStart(hours,2)}${padStart(minutes,2)}`;default:throw RangeError(`Value format ${format} is out of range for property format`)}}function timeObject(obj){return pick(obj,[`hour`,`minute`,`second`,`millisecond`])}const monthsLong=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthsShort=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],monthsNarrow=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`];function months(length){switch(length){case`narrow`:return[...monthsNarrow];case`short`:return[...monthsShort];case`long`:return[...monthsLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`];case`2-digit`:return[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`];default:return null}}const weekdaysLong=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],weekdaysShort=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],weekdaysNarrow=[`M`,`T`,`W`,`T`,`F`,`S`,`S`];function weekdays(length){switch(length){case`narrow`:return[...weekdaysNarrow];case`short`:return[...weekdaysShort];case`long`:return[...weekdaysLong];case`numeric`:return[`1`,`2`,`3`,`4`,`5`,`6`,`7`];default:return null}}const meridiems=[`AM`,`PM`],erasLong=[`Before Christ`,`Anno Domini`],erasShort=[`BC`,`AD`],erasNarrow=[`B`,`A`];function eras(length){switch(length){case`narrow`:return[...erasNarrow];case`short`:return[...erasShort];case`long`:return[...erasLong];default:return null}}function meridiemForDateTime(dt){return meridiems[dt.hour<12?0:1]}function weekdayForDateTime(dt,length){return weekdays(length)[dt.weekday-1]}function monthForDateTime(dt,length){return months(length)[dt.month-1]}function eraForDateTime(dt,length){return eras(length)[dt.year<0?0:1]}function formatRelativeTime(unit,count,numeric$1=`always`,narrow=!1){let units={years:[`year`,`yr.`],quarters:[`quarter`,`qtr.`],months:[`month`,`mo.`],weeks:[`week`,`wk.`],days:[`day`,`day`,`days`],hours:[`hour`,`hr.`],minutes:[`minute`,`min.`],seconds:[`second`,`sec.`]},lastable=[`hours`,`minutes`,`seconds`].indexOf(unit)===-1;if(numeric$1===`auto`&&lastable){let isDay=unit===`days`;switch(count){case 1:return isDay?`tomorrow`:`next ${units[unit][0]}`;case-1:return isDay?`yesterday`:`last ${units[unit][0]}`;case 0:return isDay?`today`:`this ${units[unit][0]}`}}let isInPast=Object.is(count,-0)||count<0,fmtValue=Math.abs(count),singular=fmtValue===1,lilUnits=units[unit],fmtUnit=narrow?singular?lilUnits[1]:lilUnits[2]||lilUnits[1]:singular?units[unit][0]:unit;return isInPast?`${fmtValue} ${fmtUnit} ago`:`in ${fmtValue} ${fmtUnit}`}function stringifyTokens(splits,tokenToString){let s$2=``;for(let token of splits)token.literal?s$2+=token.val:s$2+=tokenToString(token.val);return s$2}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};var Formatter=class Formatter{static create(locale,opts={}){return new Formatter(locale,opts)}static parseFormat(fmt){let current=null,currentFull=``,bracketed=!1,splits=[];for(let i$4=0;i$4<fmt.length;i$4++){let c$1=fmt.charAt(i$4);c$1===`'`?((currentFull.length>0||bracketed)&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull===``?`'`:currentFull}),current=null,currentFull=``,bracketed=!bracketed):bracketed||c$1===current?currentFull+=c$1:(currentFull.length>0&&splits.push({literal:/^\s+$/.test(currentFull),val:currentFull}),currentFull=c$1,current=c$1)}return currentFull.length>0&&splits.push({literal:bracketed||/^\s+$/.test(currentFull),val:currentFull}),splits}static macroTokenToFormatOpts(token){return macroTokenToFormatOpts[token]}constructor(locale,formatOpts){this.opts=formatOpts,this.loc=locale,this.systemLoc=null}formatWithSystemDefault(dt,opts){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());let df=this.systemLoc.dtFormatter(dt,{...this.opts,...opts});return df.format()}dtFormatter(dt,opts={}){return this.loc.dtFormatter(dt,{...this.opts,...opts})}formatDateTime(dt,opts){return this.dtFormatter(dt,opts).format()}formatDateTimeParts(dt,opts){return this.dtFormatter(dt,opts).formatToParts()}formatInterval(interval,opts){let df=this.dtFormatter(interval.start,opts);return df.dtf.formatRange(interval.start.toJSDate(),interval.end.toJSDate())}resolvedOptions(dt,opts){return this.dtFormatter(dt,opts).resolvedOptions()}num(n$2,p=0,signDisplay=void 0){if(this.opts.forceSimple)return padStart(n$2,p);let opts={...this.opts};return p>0&&(opts.padTo=p),signDisplay&&(opts.signDisplay=signDisplay),this.loc.numberFormatter(opts).format(n$2)}formatDateTimeFromString(dt,fmt){let knownEnglish=this.loc.listingMode()===`en`,useDateTimeFormatter=this.loc.outputCalendar&&this.loc.outputCalendar!==`gregory`,string=(opts,extract)=>this.loc.extract(dt,opts,extract),formatOffset$2=opts=>dt.isOffsetFixed&&dt.offset===0&&opts.allowZ?`Z`:dt.isValid?dt.zone.formatOffset(dt.ts,opts.format):``,meridiem=()=>knownEnglish?meridiemForDateTime(dt):string({hour:`numeric`,hourCycle:`h12`},`dayperiod`),month=(length,standalone)=>knownEnglish?monthForDateTime(dt,length):string(standalone?{month:length}:{month:length,day:`numeric`},`month`),weekday=(length,standalone)=>knownEnglish?weekdayForDateTime(dt,length):string(standalone?{weekday:length}:{weekday:length,month:`long`,day:`numeric`},`weekday`),maybeMacro=token=>{let formatOpts=Formatter.macroTokenToFormatOpts(token);return formatOpts?this.formatWithSystemDefault(dt,formatOpts):token},era=length=>knownEnglish?eraForDateTime(dt,length):string({era:length},`era`),tokenToString=token=>{switch(token){case`S`:return this.num(dt.millisecond);case`u`:case`SSS`:return this.num(dt.millisecond,3);case`s`:return this.num(dt.second);case`ss`:return this.num(dt.second,2);case`uu`:return this.num(Math.floor(dt.millisecond/10),2);case`uuu`:return this.num(Math.floor(dt.millisecond/100));case`m`:return this.num(dt.minute);case`mm`:return this.num(dt.minute,2);case`h`:return this.num(dt.hour%12==0?12:dt.hour%12);case`hh`:return this.num(dt.hour%12==0?12:dt.hour%12,2);case`H`:return this.num(dt.hour);case`HH`:return this.num(dt.hour,2);case`Z`:return formatOffset$2({format:`narrow`,allowZ:this.opts.allowZ});case`ZZ`:return formatOffset$2({format:`short`,allowZ:this.opts.allowZ});case`ZZZ`:return formatOffset$2({format:`techie`,allowZ:this.opts.allowZ});case`ZZZZ`:return dt.zone.offsetName(dt.ts,{format:`short`,locale:this.loc.locale});case`ZZZZZ`:return dt.zone.offsetName(dt.ts,{format:`long`,locale:this.loc.locale});case`z`:return dt.zoneName;case`a`:return meridiem();case`d`:return useDateTimeFormatter?string({day:`numeric`},`day`):this.num(dt.day);case`dd`:return useDateTimeFormatter?string({day:`2-digit`},`day`):this.num(dt.day,2);case`c`:return this.num(dt.weekday);case`ccc`:return weekday(`short`,!0);case`cccc`:return weekday(`long`,!0);case`ccccc`:return weekday(`narrow`,!0);case`E`:return this.num(dt.weekday);case`EEE`:return weekday(`short`,!1);case`EEEE`:return weekday(`long`,!1);case`EEEEE`:return weekday(`narrow`,!1);case`L`:return useDateTimeFormatter?string({month:`numeric`,day:`numeric`},`month`):this.num(dt.month);case`LL`:return useDateTimeFormatter?string({month:`2-digit`,day:`numeric`},`month`):this.num(dt.month,2);case`LLL`:return month(`short`,!0);case`LLLL`:return month(`long`,!0);case`LLLLL`:return month(`narrow`,!0);case`M`:return useDateTimeFormatter?string({month:`numeric`},`month`):this.num(dt.month);case`MM`:return useDateTimeFormatter?string({month:`2-digit`},`month`):this.num(dt.month,2);case`MMM`:return month(`short`,!1);case`MMMM`:return month(`long`,!1);case`MMMMM`:return month(`narrow`,!1);case`y`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year);case`yy`:return useDateTimeFormatter?string({year:`2-digit`},`year`):this.num(dt.year.toString().slice(-2),2);case`yyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,4);case`yyyyyy`:return useDateTimeFormatter?string({year:`numeric`},`year`):this.num(dt.year,6);case`G`:return era(`short`);case`GG`:return era(`long`);case`GGGGG`:return era(`narrow`);case`kk`:return this.num(dt.weekYear.toString().slice(-2),2);case`kkkk`:return this.num(dt.weekYear,4);case`W`:return this.num(dt.weekNumber);case`WW`:return this.num(dt.weekNumber,2);case`n`:return this.num(dt.localWeekNumber);case`nn`:return this.num(dt.localWeekNumber,2);case`ii`:return this.num(dt.localWeekYear.toString().slice(-2),2);case`iiii`:return this.num(dt.localWeekYear,4);case`o`:return this.num(dt.ordinal);case`ooo`:return this.num(dt.ordinal,3);case`q`:return this.num(dt.quarter);case`qq`:return this.num(dt.quarter,2);case`X`:return this.num(Math.floor(dt.ts/1e3));case`x`:return this.num(dt.ts);default:return maybeMacro(token)}};return stringifyTokens(Formatter.parseFormat(fmt),tokenToString)}formatDurationFromString(dur,fmt){let invertLargest=this.opts.signMode===`negativeLargestOnly`?-1:1,tokenToField=token=>{switch(token[0]){case`S`:return`milliseconds`;case`s`:return`seconds`;case`m`:return`minutes`;case`h`:return`hours`;case`d`:return`days`;case`w`:return`weeks`;case`M`:return`months`;case`y`:return`years`;default:return null}},tokenToString=(lildur,info)=>token=>{let mapped=tokenToField(token);if(mapped){let inversionFactor=info.isNegativeDuration&&mapped!==info.largestUnit?invertLargest:1,signDisplay;return signDisplay=this.opts.signMode===`negativeLargestOnly`&&mapped!==info.largestUnit?`never`:this.opts.signMode===`all`?`always`:`auto`,this.num(lildur.get(mapped)*inversionFactor,token.length,signDisplay)}else return token},tokens=Formatter.parseFormat(fmt),realTokens=tokens.reduce((found,{literal,val})=>literal?found:found.concat(val),[]),collapsed=dur.shiftTo(...realTokens.map(tokenToField).filter(t$5=>t$5)),durationInfo={isNegativeDuration:collapsed<0,largestUnit:Object.keys(collapsed.values)[0]};return stringifyTokens(tokens,tokenToString(collapsed,durationInfo))}};const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...regexes){let full=regexes.reduce((f,r)=>f+r.source,``);return RegExp(`^${full}$`)}function combineExtractors(...extractors){return m=>extractors.reduce(([mergedVals,mergedZone,cursor],ex)=>{let[val,zone,next]=ex(m,cursor);return[{...mergedVals,...val},zone||mergedZone,next]},[{},null,1]).slice(0,2)}function parse$7(s$2,...patterns){if(s$2==null)return[null,null];for(let[regex,extractor]of patterns){let m=regex.exec(s$2);if(m)return extractor(m)}return[null,null]}function simpleParse(...keys){return(match$2,cursor)=>{let ret={},i$4;for(i$4=0;i$4<keys.length;i$4++)ret[keys[i$4]]=parseInteger(match$2[cursor+i$4]);return[ret,null,cursor+i$4]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse(`weekYear`,`weekNumber`,`weekDay`),extractISOOrdinalData=simpleParse(`year`,`ordinal`),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(match$2,pos,fallback){let m=match$2[pos];return isUndefined(m)?fallback:parseInteger(m)}function extractISOYmd(match$2,cursor){let item={year:int(match$2,cursor),month:int(match$2,cursor+1,1),day:int(match$2,cursor+2,1)};return[item,null,cursor+3]}function extractISOTime(match$2,cursor){let item={hours:int(match$2,cursor,0),minutes:int(match$2,cursor+1,0),seconds:int(match$2,cursor+2,0),milliseconds:parseMillis(match$2[cursor+3])};return[item,null,cursor+4]}function extractISOOffset(match$2,cursor){let local=!match$2[cursor]&&!match$2[cursor+1],fullOffset=signedOffset(match$2[cursor+1],match$2[cursor+2]),zone=local?null:FixedOffsetZone.instance(fullOffset);return[{},zone,cursor+3]}function extractIANAZone(match$2,cursor){let zone=match$2[cursor]?IANAZone.create(match$2[cursor]):null;return[{},zone,cursor+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(match$2){let[s$2,yearStr,monthStr,weekStr,dayStr,hourStr,minuteStr,secondStr,millisecondsStr]=match$2,hasNegativePrefix=s$2[0]===`-`,negativeSeconds=secondStr&&secondStr[0]===`-`,maybeNegate=(num,force=!1)=>num!==void 0&&(force||num&&hasNegativePrefix)?-num:num;return[{years:maybeNegate(parseFloating(yearStr)),months:maybeNegate(parseFloating(monthStr)),weeks:maybeNegate(parseFloating(weekStr)),days:maybeNegate(parseFloating(dayStr)),hours:maybeNegate(parseFloating(hourStr)),minutes:maybeNegate(parseFloating(minuteStr)),seconds:maybeNegate(parseFloating(secondStr),secondStr===`-0`),milliseconds:maybeNegate(parseMillis(millisecondsStr),negativeSeconds)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){let result={year:yearStr.length===2?untruncateYear(parseInteger(yearStr)):parseInteger(yearStr),month:monthsShort.indexOf(monthStr)+1,day:parseInteger(dayStr),hour:parseInteger(hourStr),minute:parseInteger(minuteStr)};return secondStr&&(result.second=parseInteger(secondStr)),weekdayStr&&(result.weekday=weekdayStr.length>3?weekdaysLong.indexOf(weekdayStr)+1:weekdaysShort.indexOf(weekdayStr)+1),result}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr,obsOffset,milOffset,offHourStr,offMinuteStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr),offset$2;return offset$2=obsOffset?obsOffsets[obsOffset]:milOffset?0:signedOffset(offHourStr,offMinuteStr),[result,new FixedOffsetZone(offset$2)]}function preprocessRFC2822(s$2){return s$2.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(match$2){let[,weekdayStr,dayStr,monthStr,yearStr,hourStr,minuteStr,secondStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}function extractASCII(match$2){let[,weekdayStr,monthStr,dayStr,hourStr,minuteStr,secondStr,yearStr]=match$2,result=fromStrings(weekdayStr,yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr);return[result,FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(s$2){return parse$7(s$2,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(s$2){return parse$7(preprocessRFC2822(s$2),[rfc2822,extractRFC2822])}function parseHTTPDate(s$2){return parse$7(s$2,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(s$2){return parse$7(s$2,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(s$2){return parse$7(s$2,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(s$2){return parse$7(s$2,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2=`Invalid Duration`,lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=[`years`,`quarters`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(dur,alts,clear=!1){let conf={values:clear?alts.values:{...dur.values,...alts.values||{}},loc:dur.loc.clone(alts.loc),conversionAccuracy:alts.conversionAccuracy||dur.conversionAccuracy,matrix:alts.matrix||dur.matrix};return new Duration(conf)}function durationToMillis(matrix,vals){let sum=vals.milliseconds??0;for(let unit of reverseUnits.slice(1))vals[unit]&&(sum+=vals[unit]*matrix[unit].milliseconds);return sum}function normalizeValues(matrix,vals){let factor=durationToMillis(matrix,vals)<0?-1:1;orderedUnits$1.reduceRight((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let previousVal=vals[previous]*factor,conv=matrix[current][previous],rollUp=Math.floor(previousVal/conv);vals[current]+=rollUp*factor,vals[previous]-=rollUp*conv*factor}return current},null),orderedUnits$1.reduce((previous,current)=>{if(isUndefined(vals[current]))return previous;if(previous){let fraction=vals[previous]%1;vals[previous]-=fraction,vals[current]+=fraction*matrix[previous][current]}return current},null)}function removeZeroes(vals){let newVals={};for(let[key,value]of Object.entries(vals))value!==0&&(newVals[key]=value);return newVals}var Duration=class Duration{constructor(config){let accurate=config.conversionAccuracy===`longterm`||!1,matrix=accurate?accurateMatrix:casualMatrix;config.matrix&&(matrix=config.matrix),this.values=config.values,this.loc=config.loc||Locale.create(),this.conversionAccuracy=accurate?`longterm`:`casual`,this.invalid=config.invalid||null,this.matrix=matrix,this.isLuxonDuration=!0}static fromMillis(count,opts){return Duration.fromObject({milliseconds:count},opts)}static fromObject(obj,opts={}){if(typeof obj!=`object`||!obj)throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${obj===null?`null`:typeof obj}`);return new Duration({values:normalizeObject(obj,Duration.normalizeUnit),loc:Locale.fromObject(opts),conversionAccuracy:opts.conversionAccuracy,matrix:opts.matrix})}static fromDurationLike(durationLike){if(isNumber(durationLike))return Duration.fromMillis(durationLike);if(Duration.isDuration(durationLike))return durationLike;if(typeof durationLike==`object`)return Duration.fromObject(durationLike);throw new InvalidArgumentError(`Unknown duration argument ${durationLike} of type ${typeof durationLike}`)}static fromISO(text,opts){let[parsed]=parseISODuration(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static fromISOTime(text,opts){let[parsed]=parseISOTimeOnly(text);return parsed?Duration.fromObject(parsed,opts):Duration.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Duration is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDurationError(invalid$1);return new Duration({invalid:invalid$1})}static normalizeUnit(unit){let normalized={year:`years`,years:`years`,quarter:`quarters`,quarters:`quarters`,month:`months`,months:`months`,week:`weeks`,weeks:`weeks`,day:`days`,days:`days`,hour:`hours`,hours:`hours`,minute:`minutes`,minutes:`minutes`,second:`seconds`,seconds:`seconds`,millisecond:`milliseconds`,milliseconds:`milliseconds`}[unit&&unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}static isDuration(o){return o&&o.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(fmt,opts={}){let fmtOpts={...opts,floor:opts.round!==!1&&opts.floor!==!1};return this.isValid?Formatter.create(this.loc,fmtOpts).formatDurationFromString(this,fmt):INVALID$2}toHuman(opts={}){if(!this.isValid)return INVALID$2;let showZeros=opts.showZeros!==!1,l$2=orderedUnits$1.map(unit=>{let val=this.values[unit];return isUndefined(val)||val===0&&!showZeros?null:this.loc.numberFormatter({style:`unit`,unitDisplay:`long`,...opts,unit:unit.slice(0,-1)}).format(val)}).filter(n$2=>n$2);return this.loc.listFormatter({type:`conjunction`,style:opts.listStyle||`narrow`,...opts}).format(l$2)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s$2=`P`;return this.years!==0&&(s$2+=this.years+`Y`),(this.months!==0||this.quarters!==0)&&(s$2+=this.months+this.quarters*3+`M`),this.weeks!==0&&(s$2+=this.weeks+`W`),this.days!==0&&(s$2+=this.days+`D`),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(s$2+=`T`),this.hours!==0&&(s$2+=this.hours+`H`),this.minutes!==0&&(s$2+=this.minutes+`M`),(this.seconds!==0||this.milliseconds!==0)&&(s$2+=roundTo(this.seconds+this.milliseconds/1e3,3)+`S`),s$2===`P`&&(s$2+=`T0S`),s$2}toISOTime(opts={}){if(!this.isValid)return null;let millis=this.toMillis();if(millis<0||millis>=864e5)return null;opts={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:`extended`,...opts,includeOffset:!1};let dateTime=DateTime.fromMillis(millis,{zone:`UTC`});return dateTime.toISOTime(opts)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration),result={};for(let k of orderedUnits$1)(hasOwnProperty(dur.values,k)||hasOwnProperty(this.values,k))&&(result[k]=dur.get(k)+this.get(k));return clone$1(this,{values:result},!0)}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return this.plus(dur.negate())}mapUnits(fn$1){if(!this.isValid)return this;let result={};for(let k of Object.keys(this.values))result[k]=asNumber(fn$1(this.values[k],k));return clone$1(this,{values:result},!0)}get(unit){return this[Duration.normalizeUnit(unit)]}set(values){if(!this.isValid)return this;let mixed={...this.values,...normalizeObject(values,Duration.normalizeUnit)};return clone$1(this,{values:mixed})}reconfigure({locale,numberingSystem,conversionAccuracy,matrix}={}){let loc=this.loc.clone({locale,numberingSystem}),opts={loc,matrix,conversionAccuracy};return clone$1(this,opts)}as(unit){return this.isValid?this.shiftTo(unit).get(unit):NaN}normalize(){if(!this.isValid)return this;let vals=this.toObject();return normalizeValues(this.matrix,vals),clone$1(this,{values:vals},!0)}rescale(){if(!this.isValid)return this;let vals=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:vals},!0)}shiftTo(...units){if(!this.isValid||units.length===0)return this;units=units.map(u=>Duration.normalizeUnit(u));let built={},accumulated={},vals=this.toObject(),lastUnit;for(let k of orderedUnits$1)if(units.indexOf(k)>=0){lastUnit=k;let own=0;for(let ak in accumulated)own+=this.matrix[ak][k]*accumulated[ak],accumulated[ak]=0;isNumber(vals[k])&&(own+=vals[k]);let i$4=Math.trunc(own);built[k]=i$4,accumulated[k]=(own*1e3-i$4*1e3)/1e3}else isNumber(vals[k])&&(accumulated[k]=vals[k]);for(let key in accumulated)accumulated[key]!==0&&(built[lastUnit]+=key===lastUnit?accumulated[key]:accumulated[key]/this.matrix[lastUnit][key]);return normalizeValues(this.matrix,built),clone$1(this,{values:built},!0)}shiftToAll(){return this.isValid?this.shiftTo(`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`,`milliseconds`):this}negate(){if(!this.isValid)return this;let negated={};for(let k of Object.keys(this.values))negated[k]=this.values[k]===0?0:-this.values[k];return clone$1(this,{values:negated},!0)}removeZeros(){if(!this.isValid)return this;let vals=removeZeroes(this.values);return clone$1(this,{values:vals},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(other){if(!this.isValid||!other.isValid||!this.loc.equals(other.loc))return!1;function eq$3(v1,v2){return v1===void 0||v1===0?v2===void 0||v2===0:v1===v2}for(let u of orderedUnits$1)if(!eq$3(this.values[u],other.values[u]))return!1;return!0}};const INVALID$1=`Invalid Interval`;function validateStartEnd(start,end){return!start||!start.isValid?Interval.invalid(`missing or invalid start`):!end||!end.isValid?Interval.invalid(`missing or invalid end`):end<start?Interval.invalid(`end before start`,`The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`):null}var Interval=class Interval{constructor(config){this.s=config.start,this.e=config.end,this.invalid=config.invalid||null,this.isLuxonInterval=!0}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the Interval is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidIntervalError(invalid$1);return new Interval({invalid:invalid$1})}static fromDateTimes(start,end){let builtStart=friendlyDateTime(start),builtEnd=friendlyDateTime(end),validateError=validateStartEnd(builtStart,builtEnd);return validateError??new Interval({start:builtStart,end:builtEnd})}static after(start,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(start);return Interval.fromDateTimes(dt,dt.plus(dur))}static before(end,duration){let dur=Duration.fromDurationLike(duration),dt=friendlyDateTime(end);return Interval.fromDateTimes(dt.minus(dur),dt)}static fromISO(text,opts){let[s$2,e]=(text||``).split(`/`,2);if(s$2&&e){let start,startIsValid;try{start=DateTime.fromISO(s$2,opts),startIsValid=start.isValid}catch{startIsValid=!1}let end,endIsValid;try{end=DateTime.fromISO(e,opts),endIsValid=end.isValid}catch{endIsValid=!1}if(startIsValid&&endIsValid)return Interval.fromDateTimes(start,end);if(startIsValid){let dur=Duration.fromISO(e,opts);if(dur.isValid)return Interval.after(start,dur)}else if(endIsValid){let dur=Duration.fromISO(s$2,opts);if(dur.isValid)return Interval.before(end,dur)}}return Interval.invalid(`unparsable`,`the input "${text}" can't be parsed as ISO 8601`)}static isInterval(o){return o&&o.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(unit=`milliseconds`){return this.isValid?this.toDuration(unit).get(unit):NaN}count(unit=`milliseconds`,opts){if(!this.isValid)return NaN;let start=this.start.startOf(unit,opts),end;return end=opts?.useLocaleWeeks?this.end.reconfigure({locale:start.locale}):this.end,end=end.startOf(unit,opts),Math.floor(end.diff(start,unit).get(unit))+(end.valueOf()!==this.end.valueOf())}hasSame(unit){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,unit):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(dateTime){return this.isValid?this.s>dateTime:!1}isBefore(dateTime){return this.isValid?this.e<=dateTime:!1}contains(dateTime){return this.isValid?this.s<=dateTime&&this.e>dateTime:!1}set({start,end}={}){return this.isValid?Interval.fromDateTimes(start||this.s,end||this.e):this}splitAt(...dateTimes){if(!this.isValid)return[];let sorted=dateTimes.map(friendlyDateTime).filter(d=>this.contains(d)).sort((a,b)=>a.toMillis()-b.toMillis()),results=[],{s:s$2}=this,i$4=0;for(;s$2<this.e;){let added=sorted[i$4]||this.e,next=+added>+this.e?this.e:added;results.push(Interval.fromDateTimes(s$2,next)),s$2=next,i$4+=1}return results}splitBy(duration){let dur=Duration.fromDurationLike(duration);if(!this.isValid||!dur.isValid||dur.as(`milliseconds`)===0)return[];let{s:s$2}=this,idx=1,next,results=[];for(;s$2<this.e;){let added=this.start.plus(dur.mapUnits(x$1=>x$1*idx));next=+added>+this.e?this.e:added,results.push(Interval.fromDateTimes(s$2,next)),s$2=next,idx+=1}return results}divideEqually(numberOfParts){return this.isValid?this.splitBy(this.length()/numberOfParts).slice(0,numberOfParts):[]}overlaps(other){return this.e>other.s&&this.s<other.e}abutsStart(other){return this.isValid?+this.e==+other.s:!1}abutsEnd(other){return this.isValid?+other.e==+this.s:!1}engulfs(other){return this.isValid?this.s<=other.s&&this.e>=other.e:!1}equals(other){return!this.isValid||!other.isValid?!1:this.s.equals(other.s)&&this.e.equals(other.e)}intersection(other){if(!this.isValid)return this;let s$2=this.s>other.s?this.s:other.s,e=this.e<other.e?this.e:other.e;return s$2>=e?null:Interval.fromDateTimes(s$2,e)}union(other){if(!this.isValid)return this;let s$2=this.s<other.s?this.s:other.s,e=this.e>other.e?this.e:other.e;return Interval.fromDateTimes(s$2,e)}static merge(intervals){let[found,final]=intervals.sort((a,b)=>a.s-b.s).reduce(([sofar,current],item)=>current?current.overlaps(item)||current.abutsStart(item)?[sofar,current.union(item)]:[sofar.concat([current]),item]:[sofar,item],[[],null]);return final&&found.push(final),found}static xor(intervals){let start=null,currentCount=0,results=[],ends=intervals.map(i$4=>[{time:i$4.s,type:`s`},{time:i$4.e,type:`e`}]),flattened=Array.prototype.concat(...ends),arr=flattened.sort((a,b)=>a.time-b.time);for(let i$4 of arr)currentCount+=i$4.type===`s`?1:-1,currentCount===1?start=i$4.time:(start&&+start!=+i$4.time&&results.push(Interval.fromDateTimes(start,i$4.time)),start=null);return Interval.merge(results)}difference(...intervals){return Interval.xor([this].concat(intervals)).map(i$4=>this.intersection(i$4)).filter(i$4=>i$4&&!i$4.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.s.loc.clone(opts),formatOpts).formatInterval(this):INVALID$1}toISO(opts){return this.isValid?`${this.s.toISO(opts)}/${this.e.toISO(opts)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(opts){return this.isValid?`${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`:INVALID$1}toFormat(dateFormat,{separator=` – `}={}){return this.isValid?`${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`:INVALID$1}toDuration(unit,opts){return this.isValid?this.e.diff(this.s,unit,opts):Duration.invalid(this.invalidReason)}mapEndpoints(mapFn){return Interval.fromDateTimes(mapFn(this.s),mapFn(this.e))}},Info=class{static hasDST(zone=Settings.defaultZone){let proto=DateTime.now().setZone(zone).set({month:12});return!zone.isUniversal&&proto.offset!==proto.set({month:6}).offset}static isValidIANAZone(zone){return IANAZone.isValidZone(zone)}static normalizeZone(input){return normalizeZone(input,Settings.defaultZone)}static getStartOfWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale=null,locObj=null}={}){return(locObj||Locale.create(locale)).getWeekendDays().slice()}static months(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length)}static monthsFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null,outputCalendar=`gregory`}={}){return(locObj||Locale.create(locale,numberingSystem,outputCalendar)).months(length,!0)}static weekdays(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length)}static weekdaysFormat(length=`long`,{locale=null,numberingSystem=null,locObj=null}={}){return(locObj||Locale.create(locale,numberingSystem,null)).weekdays(length,!0)}static meridiems({locale=null}={}){return Locale.create(locale).meridiems()}static eras(length=`short`,{locale=null}={}){return Locale.create(locale,null,`gregory`).eras(length)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}};function dayDiff(earlier,later){let utcDayStart=dt=>dt.toUTC(0,{keepLocalTime:!0}).startOf(`day`).valueOf(),ms=utcDayStart(later)-utcDayStart(earlier);return Math.floor(Duration.fromMillis(ms).as(`days`))}function highOrderDiffs(cursor,later,units){let differs=[[`years`,(a,b)=>b.year-a.year],[`quarters`,(a,b)=>b.quarter-a.quarter+(b.year-a.year)*4],[`months`,(a,b)=>b.month-a.month+(b.year-a.year)*12],[`weeks`,(a,b)=>{let days=dayDiff(a,b);return(days-days%7)/7}],[`days`,dayDiff]],results={},earlier=cursor,lowestOrder,highWater;for(let[unit,differ]of differs)units.indexOf(unit)>=0&&(lowestOrder=unit,results[unit]=differ(cursor,later),highWater=earlier.plus(results),highWater>later?(results[unit]--,cursor=earlier.plus(results),cursor>later&&(highWater=cursor,results[unit]--,cursor=earlier.plus(results))):cursor=highWater);return[cursor,results,highWater,lowestOrder]}function diff$2(earlier,later,units,opts){let[cursor,results,highWater,lowestOrder]=highOrderDiffs(earlier,later,units),remainingMillis=later-cursor,lowerOrderUnits=units.filter(u=>[`hours`,`minutes`,`seconds`,`milliseconds`].indexOf(u)>=0);lowerOrderUnits.length===0&&(highWater<later&&(highWater=cursor.plus({[lowestOrder]:1})),highWater!==cursor&&(results[lowestOrder]=(results[lowestOrder]||0)+remainingMillis/(highWater-cursor)));let duration=Duration.fromObject(results,opts);return lowerOrderUnits.length>0?Duration.fromMillis(remainingMillis,opts).shiftTo(...lowerOrderUnits).plus(duration):duration}const MISSING_FTP=`missing Intl.DateTimeFormat.formatToParts support`;function intUnit(regex,post=i$4=>i$4){return{regex,deser:([s$2])=>post(parseDigits(s$2))}}const NBSP=`\xA0`,spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,`g`);function fixListRegex(s$2){return s$2.replace(/\./g,`\\.?`).replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(s$2){return s$2.replace(/\./g,``).replace(spaceOrNBSPRegExp,` `).toLowerCase()}function oneOf(strings,startIndex){return strings===null?null:{regex:RegExp(strings.map(fixListRegex).join(`|`)),deser:([s$2])=>strings.findIndex(i$4=>stripInsensitivities(s$2)===stripInsensitivities(i$4))+startIndex}}function offset(regex,groups){return{regex,deser:([,h,m])=>signedOffset(h,m),groups}}function simple(regex){return{regex,deser:([s$2])=>s$2}}function escapeToken(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function unitForToken(token,loc){let one=digitRegex(loc),two=digitRegex(loc,`{2}`),three=digitRegex(loc,`{3}`),four=digitRegex(loc,`{4}`),six=digitRegex(loc,`{6}`),oneOrTwo=digitRegex(loc,`{1,2}`),oneToThree=digitRegex(loc,`{1,3}`),oneToSix=digitRegex(loc,`{1,6}`),oneToNine=digitRegex(loc,`{1,9}`),twoToFour=digitRegex(loc,`{2,4}`),fourToSix=digitRegex(loc,`{4,6}`),literal=t$5=>({regex:RegExp(escapeToken(t$5.val)),deser:([s$2])=>s$2,literal:!0}),unitate=t$5=>{if(token.literal)return literal(t$5);switch(t$5.val){case`G`:return oneOf(loc.eras(`short`),0);case`GG`:return oneOf(loc.eras(`long`),0);case`y`:return intUnit(oneToSix);case`yy`:return intUnit(twoToFour,untruncateYear);case`yyyy`:return intUnit(four);case`yyyyy`:return intUnit(fourToSix);case`yyyyyy`:return intUnit(six);case`M`:return intUnit(oneOrTwo);case`MM`:return intUnit(two);case`MMM`:return oneOf(loc.months(`short`,!0),1);case`MMMM`:return oneOf(loc.months(`long`,!0),1);case`L`:return intUnit(oneOrTwo);case`LL`:return intUnit(two);case`LLL`:return oneOf(loc.months(`short`,!1),1);case`LLLL`:return oneOf(loc.months(`long`,!1),1);case`d`:return intUnit(oneOrTwo);case`dd`:return intUnit(two);case`o`:return intUnit(oneToThree);case`ooo`:return intUnit(three);case`HH`:return intUnit(two);case`H`:return intUnit(oneOrTwo);case`hh`:return intUnit(two);case`h`:return intUnit(oneOrTwo);case`mm`:return intUnit(two);case`m`:return intUnit(oneOrTwo);case`q`:return intUnit(oneOrTwo);case`qq`:return intUnit(two);case`s`:return intUnit(oneOrTwo);case`ss`:return intUnit(two);case`S`:return intUnit(oneToThree);case`SSS`:return intUnit(three);case`u`:return simple(oneToNine);case`uu`:return simple(oneOrTwo);case`uuu`:return intUnit(one);case`a`:return oneOf(loc.meridiems(),0);case`kkkk`:return intUnit(four);case`kk`:return intUnit(twoToFour,untruncateYear);case`W`:return intUnit(oneOrTwo);case`WW`:return intUnit(two);case`E`:case`c`:return intUnit(one);case`EEE`:return oneOf(loc.weekdays(`short`,!1),1);case`EEEE`:return oneOf(loc.weekdays(`long`,!1),1);case`ccc`:return oneOf(loc.weekdays(`short`,!0),1);case`cccc`:return oneOf(loc.weekdays(`long`,!0),1);case`Z`:case`ZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`),2);case`ZZZ`:return offset(RegExp(`([+-]${oneOrTwo.source})(${two.source})?`),2);case`z`:return simple(/[a-z_+-/]{1,256}?/i);case` `:return simple(/[^\S\n\r]/);default:return literal(t$5)}},unit=unitate(token)||{invalidReason:MISSING_FTP};return unit.token=token,unit}const partTypeStyleToTokenVal={year:{"2-digit":`yy`,numeric:`yyyyy`},month:{numeric:`M`,"2-digit":`MM`,short:`MMM`,long:`MMMM`},day:{numeric:`d`,"2-digit":`dd`},weekday:{short:`EEE`,long:`EEEE`},dayperiod:`a`,dayPeriod:`a`,hour12:{numeric:`h`,"2-digit":`hh`},hour24:{numeric:`H`,"2-digit":`HH`},minute:{numeric:`m`,"2-digit":`mm`},second:{numeric:`s`,"2-digit":`ss`},timeZoneName:{long:`ZZZZZ`,short:`ZZZ`}};function tokenForPart(part,formatOpts,resolvedOpts){let{type,value}=part;if(type===`literal`){let isSpace=/^\s+$/.test(value);return{literal:!isSpace,val:isSpace?` `:value}}let style=formatOpts[type],actualType=type;type===`hour`&&(actualType=formatOpts.hour12==null?formatOpts.hourCycle==null?resolvedOpts.hour12?`hour12`:`hour24`:formatOpts.hourCycle===`h11`||formatOpts.hourCycle===`h12`?`hour12`:`hour24`:formatOpts.hour12?`hour12`:`hour24`);let val=partTypeStyleToTokenVal[actualType];if(typeof val==`object`&&(val=val[style]),val)return{literal:!1,val}}function buildRegex(units){let re$5=units.map(u=>u.regex).reduce((f,r)=>`${f}(${r.source})`,``);return[`^${re$5}$`,units]}function match(input,regex,handlers){let matches=input.match(regex);if(matches){let all$1={},matchIndex=1;for(let i$4 in handlers)if(hasOwnProperty(handlers,i$4)){let h=handlers[i$4],groups=h.groups?h.groups+1:1;!h.literal&&h.token&&(all$1[h.token.val[0]]=h.deser(matches.slice(matchIndex,matchIndex+groups))),matchIndex+=groups}return[matches,all$1]}else return[matches,{}]}function dateTimeFromMatches(matches){let toField=token=>{switch(token){case`S`:return`millisecond`;case`s`:return`second`;case`m`:return`minute`;case`h`:case`H`:return`hour`;case`d`:return`day`;case`o`:return`ordinal`;case`L`:case`M`:return`month`;case`y`:return`year`;case`E`:case`c`:return`weekday`;case`W`:return`weekNumber`;case`k`:return`weekYear`;case`q`:return`quarter`;default:return null}},zone=null,specificOffset;isUndefined(matches.z)||(zone=IANAZone.create(matches.z)),isUndefined(matches.Z)||(zone||=new FixedOffsetZone(matches.Z),specificOffset=matches.Z),isUndefined(matches.q)||(matches.M=(matches.q-1)*3+1),isUndefined(matches.h)||(matches.h<12&&matches.a===1?matches.h+=12:matches.h===12&&matches.a===0&&(matches.h=0)),matches.G===0&&matches.y&&(matches.y=-matches.y),isUndefined(matches.u)||(matches.S=parseMillis(matches.u));let vals=Object.keys(matches).reduce((r,k)=>{let f=toField(k);return f&&(r[f]=matches[k]),r},{});return[vals,zone,specificOffset]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||=DateTime.fromMillis(1555555555555),dummyDateTimeCache}function maybeExpandMacroToken(token,locale){if(token.literal)return token;let formatOpts=Formatter.macroTokenToFormatOpts(token.val),tokens=formatOptsToTokens(formatOpts,locale);return tokens==null||tokens.includes(void 0)?token:tokens}function expandMacroTokens(tokens,locale){return Array.prototype.concat(...tokens.map(t$5=>maybeExpandMacroToken(t$5,locale)))}var TokenParser=class{constructor(locale,format){if(this.locale=locale,this.format=format,this.tokens=expandMacroTokens(Formatter.parseFormat(format),locale),this.units=this.tokens.map(t$5=>unitForToken(t$5,locale)),this.disqualifyingUnit=this.units.find(t$5=>t$5.invalidReason),!this.disqualifyingUnit){let[regexString,handlers]=buildRegex(this.units);this.regex=RegExp(regexString,`i`),this.handlers=handlers}}explainFromTokens(input){if(this.isValid){let[rawMatches,matches]=match(input,this.regex,this.handlers),[result,zone,specificOffset]=matches?dateTimeFromMatches(matches):[null,null,void 0];if(hasOwnProperty(matches,`a`)&&hasOwnProperty(matches,`H`))throw new ConflictingSpecificationError(`Can't include meridiem when specifying 24-hour format`);return{input,tokens:this.tokens,regex:this.regex,rawMatches,matches,result,zone,specificOffset}}else return{input,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function explainFromTokens(locale,input,format){let parser=new TokenParser(locale,format);return parser.explainFromTokens(input)}function parseFromTokens(locale,input,format){let{result,zone,specificOffset,invalidReason}=explainFromTokens(locale,input,format);return[result,zone,specificOffset,invalidReason]}function formatOptsToTokens(formatOpts,locale){if(!formatOpts)return null;let formatter=Formatter.create(locale,formatOpts),df=formatter.dtFormatter(getDummyDateTime()),parts=df.formatToParts(),resolvedOpts=df.resolvedOptions();return parts.map(p=>tokenForPart(p,formatOpts,resolvedOpts))}const INVALID=`Invalid DateTime`,MAX_DATE=864e13;function unsupportedZone(zone){return new Invalid(`unsupported zone`,`the zone "${zone.name}" is not supported`)}function possiblyCachedWeekData(dt){return dt.weekData===null&&(dt.weekData=gregorianToWeek(dt.c)),dt.weekData}function possiblyCachedLocalWeekData(dt){return dt.localWeekData===null&&(dt.localWeekData=gregorianToWeek(dt.c,dt.loc.getMinDaysInFirstWeek(),dt.loc.getStartOfWeek())),dt.localWeekData}function clone(inst,alts){let current={ts:inst.ts,zone:inst.zone,c:inst.c,o:inst.o,loc:inst.loc,invalid:inst.invalid};return new DateTime({...current,...alts,old:current})}function fixOffset(localTS,o,tz){let utcGuess=localTS-o*60*1e3,o2=tz.offset(utcGuess);if(o===o2)return[utcGuess,o];utcGuess-=(o2-o)*60*1e3;let o3=tz.offset(utcGuess);return o2===o3?[utcGuess,o2]:[localTS-Math.min(o2,o3)*60*1e3,Math.max(o2,o3)]}function tsToObj(ts,offset$2){ts+=offset$2*60*1e3;let d=new Date(ts);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function objToTS(obj,offset$2,zone){return fixOffset(objToLocalTS(obj),offset$2,zone)}function adjustTime(inst,dur){let oPre=inst.o,year=inst.c.year+Math.trunc(dur.years),month=inst.c.month+Math.trunc(dur.months)+Math.trunc(dur.quarters)*3,c$1={...inst.c,year,month,day:Math.min(inst.c.day,daysInMonth(year,month))+Math.trunc(dur.days)+Math.trunc(dur.weeks)*7},millisToAdd=Duration.fromObject({years:dur.years-Math.trunc(dur.years),quarters:dur.quarters-Math.trunc(dur.quarters),months:dur.months-Math.trunc(dur.months),weeks:dur.weeks-Math.trunc(dur.weeks),days:dur.days-Math.trunc(dur.days),hours:dur.hours,minutes:dur.minutes,seconds:dur.seconds,milliseconds:dur.milliseconds}).as(`milliseconds`),localTS=objToLocalTS(c$1),[ts,o]=fixOffset(localTS,oPre,inst.zone);return millisToAdd!==0&&(ts+=millisToAdd,o=inst.zone.offset(ts)),{ts,o}}function parseDataToDateTime(parsed,parsedZone,opts,format,text,specificOffset){let{setZone,zone}=opts;if(parsed&&Object.keys(parsed).length!==0||parsedZone){let interpretationZone=parsedZone||zone,inst=DateTime.fromObject(parsed,{...opts,zone:interpretationZone,specificOffset});return setZone?inst:inst.setZone(zone)}else return DateTime.invalid(new Invalid(`unparsable`,`the input "${text}" can't be parsed as ${format}`))}function toTechFormat(dt,format,allowZ=!0){return dt.isValid?Formatter.create(Locale.create(`en-US`),{allowZ,forceSimple:!0}).formatDateTimeFromString(dt,format):null}function toISODate(o,extended,precision){let longFormat=o.c.year>9999||o.c.year<0,c$1=``;if(longFormat&&o.c.year>=0&&(c$1+=`+`),c$1+=padStart(o.c.year,longFormat?6:4),precision===`year`)return c$1;if(extended){if(c$1+=`-`,c$1+=padStart(o.c.month),precision===`month`)return c$1;c$1+=`-`}else if(c$1+=padStart(o.c.month),precision===`month`)return c$1;return c$1+=padStart(o.c.day),c$1}function toISOTime(o,extended,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision){let showSeconds=!suppressSeconds||o.c.millisecond!==0||o.c.second!==0,c$1=``;switch(precision){case`day`:case`month`:case`year`:break;default:if(c$1+=padStart(o.c.hour),precision===`hour`)break;if(extended){if(c$1+=`:`,c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=`:`,c$1+=padStart(o.c.second))}else{if(c$1+=padStart(o.c.minute),precision===`minute`)break;showSeconds&&(c$1+=padStart(o.c.second))}if(precision===`second`)break;showSeconds&&(!suppressMilliseconds||o.c.millisecond!==0)&&(c$1+=`.`,c$1+=padStart(o.c.millisecond,3))}return includeOffset&&(o.isOffsetFixed&&o.offset===0&&!extendedZone?c$1+=`Z`:o.o<0?(c$1+=`-`,c$1+=padStart(Math.trunc(-o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(-o.o%60))):(c$1+=`+`,c$1+=padStart(Math.trunc(o.o/60)),c$1+=`:`,c$1+=padStart(Math.trunc(o.o%60)))),extendedZone&&(c$1+=`[`+o.zone.ianaName+`]`),c$1}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],orderedWeekUnits=[`weekYear`,`weekNumber`,`weekday`,`hour`,`minute`,`second`,`millisecond`],orderedOrdinalUnits=[`year`,`ordinal`,`hour`,`minute`,`second`,`millisecond`];function normalizeUnit(unit){let normalized={year:`year`,years:`year`,month:`month`,months:`month`,day:`day`,days:`day`,hour:`hour`,hours:`hour`,minute:`minute`,minutes:`minute`,quarter:`quarter`,quarters:`quarter`,second:`second`,seconds:`second`,millisecond:`millisecond`,milliseconds:`millisecond`,weekday:`weekday`,weekdays:`weekday`,weeknumber:`weekNumber`,weeksnumber:`weekNumber`,weeknumbers:`weekNumber`,weekyear:`weekYear`,weekyears:`weekYear`,ordinal:`ordinal`}[unit.toLowerCase()];if(!normalized)throw new InvalidUnitError(unit);return normalized}function normalizeUnitWithLocalWeeks(unit){switch(unit.toLowerCase()){case`localweekday`:case`localweekdays`:return`localWeekday`;case`localweeknumber`:case`localweeknumbers`:return`localWeekNumber`;case`localweekyear`:case`localweekyears`:return`localWeekYear`;default:return normalizeUnit(unit)}}function guessOffsetForZone(zone){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),zone.type!==`iana`)return zone.offset(zoneOffsetTs);let zoneName=zone.name,offsetGuess=zoneOffsetGuessCache.get(zoneName);return offsetGuess===void 0&&(offsetGuess=zone.offset(zoneOffsetTs),zoneOffsetGuessCache.set(zoneName,offsetGuess)),offsetGuess}function quickDT(obj,opts){let zone=normalizeZone(opts.zone,Settings.defaultZone);if(!zone.isValid)return DateTime.invalid(unsupportedZone(zone));let loc=Locale.fromObject(opts),ts,o;if(isUndefined(obj.year))ts=Settings.now();else{for(let u of orderedUnits)isUndefined(obj[u])&&(obj[u]=defaultUnitValues[u]);let invalid$1=hasInvalidGregorianData(obj)||hasInvalidTimeData(obj);if(invalid$1)return DateTime.invalid(invalid$1);let offsetProvis=guessOffsetForZone(zone);[ts,o]=objToTS(obj,offsetProvis,zone)}return new DateTime({ts,zone,loc,o})}function diffRelative(start,end,opts){let round$2=isUndefined(opts.round)?!0:opts.round,rounding=isUndefined(opts.rounding)?`trunc`:opts.rounding,format=(c$1,unit)=>{c$1=roundTo(c$1,round$2||opts.calendary?0:2,opts.calendary?`round`:rounding);let formatter=end.loc.clone(opts).relFormatter(opts);return formatter.format(c$1,unit)},differ=unit=>opts.calendary?end.hasSame(start,unit)?0:end.startOf(unit).diff(start.startOf(unit),unit).get(unit):end.diff(start,unit).get(unit);if(opts.unit)return format(differ(opts.unit),opts.unit);for(let unit of opts.units){let count=differ(unit);if(Math.abs(count)>=1)return format(count,unit)}return format(start>end?-0:0,opts.units[opts.units.length-1])}function lastOpts(argList){let opts={},args$1;return argList.length>0&&typeof argList[argList.length-1]==`object`?(opts=argList[argList.length-1],args$1=Array.from(argList).slice(0,argList.length-1)):args$1=Array.from(argList),[opts,args$1]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;var DateTime=class DateTime{constructor(config){let zone=config.zone||Settings.defaultZone,invalid$1=config.invalid||(Number.isNaN(config.ts)?new Invalid(`invalid input`):null)||(zone.isValid?null:unsupportedZone(zone));this.ts=isUndefined(config.ts)?Settings.now():config.ts;let c$1=null,o=null;if(!invalid$1){let unchanged=config.old&&config.old.ts===this.ts&&config.old.zone.equals(zone);if(unchanged)[c$1,o]=[config.old.c,config.old.o];else{let ot=isNumber(config.o)&&!config.old?config.o:zone.offset(this.ts);c$1=tsToObj(this.ts,ot),invalid$1=Number.isNaN(c$1.year)?new Invalid(`invalid input`):null,c$1=invalid$1?null:c$1,o=invalid$1?null:ot}}this._zone=zone,this.loc=config.loc||Locale.create(),this.invalid=invalid$1,this.weekData=null,this.localWeekData=null,this.c=c$1,this.o=o,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return quickDT({year,month,day,hour,minute,second,millisecond},opts)}static utc(){let[opts,args$1]=lastOpts(arguments),[year,month,day,hour,minute,second,millisecond]=args$1;return opts.zone=FixedOffsetZone.utcInstance,quickDT({year,month,day,hour,minute,second,millisecond},opts)}static fromJSDate(date,options={}){let ts=isDate(date)?date.valueOf():NaN;if(Number.isNaN(ts))return DateTime.invalid(`invalid input`);let zoneToUse=normalizeZone(options.zone,Settings.defaultZone);return zoneToUse.isValid?new DateTime({ts,zone:zoneToUse,loc:Locale.fromObject(options)}):DateTime.invalid(unsupportedZone(zoneToUse))}static fromMillis(milliseconds,options={}){if(isNumber(milliseconds))return milliseconds<-MAX_DATE||milliseconds>MAX_DATE?DateTime.invalid(`Timestamp out of range`):new DateTime({ts:milliseconds,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`)}static fromSeconds(seconds,options={}){if(isNumber(seconds))return new DateTime({ts:seconds*1e3,zone:normalizeZone(options.zone,Settings.defaultZone),loc:Locale.fromObject(options)});throw new InvalidArgumentError(`fromSeconds requires a numerical input`)}static fromObject(obj,opts={}){obj||={};let zoneToUse=normalizeZone(opts.zone,Settings.defaultZone);if(!zoneToUse.isValid)return DateTime.invalid(unsupportedZone(zoneToUse));let loc=Locale.fromObject(opts),normalized=normalizeObject(obj,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,loc),tsNow=Settings.now(),offsetProvis=isUndefined(opts.specificOffset)?zoneToUse.offset(tsNow):opts.specificOffset,containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let useWeekData=definiteWeekDef||normalized.weekday&&!containsGregor,units,defaultValues,objNow=tsToObj(tsNow,offsetProvis);useWeekData?(units=orderedWeekUnits,defaultValues=defaultWeekUnitValues,objNow=gregorianToWeek(objNow,minDaysInFirstWeek,startOfWeek)):containsOrdinal?(units=orderedOrdinalUnits,defaultValues=defaultOrdinalUnitValues,objNow=gregorianToOrdinal(objNow)):(units=orderedUnits,defaultValues=defaultUnitValues);let foundFirst=!1;for(let u of units){let v=normalized[u];isUndefined(v)?foundFirst?normalized[u]=defaultValues[u]:normalized[u]=objNow[u]:foundFirst=!0}let higherOrderInvalid=useWeekData?hasInvalidWeekData(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?hasInvalidOrdinalData(normalized):hasInvalidGregorianData(normalized),invalid$1=higherOrderInvalid||hasInvalidTimeData(normalized);if(invalid$1)return DateTime.invalid(invalid$1);let gregorian=useWeekData?weekToGregorian(normalized,minDaysInFirstWeek,startOfWeek):containsOrdinal?ordinalToGregorian(normalized):normalized,[tsFinal,offsetFinal]=objToTS(gregorian,offsetProvis,zoneToUse),inst=new DateTime({ts:tsFinal,zone:zoneToUse,o:offsetFinal,loc});return normalized.weekday&&containsGregor&&obj.weekday!==inst.weekday?DateTime.invalid(`mismatched weekday`,`you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`):inst.isValid?inst:DateTime.invalid(inst.invalid)}static fromISO(text,opts={}){let[vals,parsedZone]=parseISODate(text);return parseDataToDateTime(vals,parsedZone,opts,`ISO 8601`,text)}static fromRFC2822(text,opts={}){let[vals,parsedZone]=parseRFC2822Date(text);return parseDataToDateTime(vals,parsedZone,opts,`RFC 2822`,text)}static fromHTTP(text,opts={}){let[vals,parsedZone]=parseHTTPDate(text);return parseDataToDateTime(vals,parsedZone,opts,`HTTP`,opts)}static fromFormat(text,fmt,opts={}){if(isUndefined(text)||isUndefined(fmt))throw new InvalidArgumentError(`fromFormat requires an input string and a format`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0}),[vals,parsedZone,specificOffset,invalid$1]=parseFromTokens(localeToUse,text,fmt);return invalid$1?DateTime.invalid(invalid$1):parseDataToDateTime(vals,parsedZone,opts,`format ${fmt}`,text,specificOffset)}static fromString(text,fmt,opts={}){return DateTime.fromFormat(text,fmt,opts)}static fromSQL(text,opts={}){let[vals,parsedZone]=parseSQL(text);return parseDataToDateTime(vals,parsedZone,opts,`SQL`,text)}static invalid(reason,explanation=null){if(!reason)throw new InvalidArgumentError(`need to specify a reason the DateTime is invalid`);let invalid$1=reason instanceof Invalid?reason:new Invalid(reason,explanation);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(invalid$1);return new DateTime({invalid:invalid$1})}static isDateTime(o){return o&&o.isLuxonDateTime||!1}static parseFormatForOpts(formatOpts,localeOpts={}){let tokenList=formatOptsToTokens(formatOpts,Locale.fromObject(localeOpts));return tokenList?tokenList.map(t$5=>t$5?t$5.val:null).join(``):null}static expandFormat(fmt,localeOpts={}){let expanded=expandMacroTokens(Formatter.parseFormat(fmt),Locale.fromObject(localeOpts));return expanded.map(t$5=>t$5.val).join(``)}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(unit){return this[unit]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months(`short`,{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months(`long`,{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays(`short`,{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays(`long`,{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:`short`,locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:`long`,locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let dayMs=864e5,minuteMs=6e4,localTS=objToLocalTS(this.c),oEarlier=this.zone.offset(localTS-dayMs),oLater=this.zone.offset(localTS+dayMs),o1=this.zone.offset(localTS-oEarlier*minuteMs),o2=this.zone.offset(localTS-oLater*minuteMs);if(o1===o2)return[this];let ts1=localTS-o1*minuteMs,ts2=localTS-o2*minuteMs,c1=tsToObj(ts1,o1),c2=tsToObj(ts2,o2);return c1.hour===c2.hour&&c1.minute===c2.minute&&c1.second===c2.second&&c1.millisecond===c2.millisecond?[clone(this,{ts:ts1}),clone(this,{ts:ts2})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(opts={}){let{locale,numberingSystem,calendar}=Formatter.create(this.loc.clone(opts),opts).resolvedOptions(this);return{locale,numberingSystem,outputCalendar:calendar}}toUTC(offset$2=0,opts={}){return this.setZone(FixedOffsetZone.instance(offset$2),opts)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(zone,{keepLocalTime=!1,keepCalendarTime=!1}={}){if(zone=normalizeZone(zone,Settings.defaultZone),zone.equals(this.zone))return this;if(zone.isValid){let newTS=this.ts;if(keepLocalTime||keepCalendarTime){let offsetGuess=zone.offset(this.ts),asObj=this.toObject();[newTS]=objToTS(asObj,offsetGuess,zone)}return clone(this,{ts:newTS,zone})}else return DateTime.invalid(unsupportedZone(zone))}reconfigure({locale,numberingSystem,outputCalendar}={}){let loc=this.loc.clone({locale,numberingSystem,outputCalendar});return clone(this,{loc})}setLocale(locale){return this.reconfigure({locale})}set(values){if(!this.isValid)return this;let normalized=normalizeObject(values,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek,startOfWeek}=usesLocalWeekValues(normalized,this.loc),settingWeekStuff=!isUndefined(normalized.weekYear)||!isUndefined(normalized.weekNumber)||!isUndefined(normalized.weekday),containsOrdinal=!isUndefined(normalized.ordinal),containsGregorYear=!isUndefined(normalized.year),containsGregorMD=!isUndefined(normalized.month)||!isUndefined(normalized.day),containsGregor=containsGregorYear||containsGregorMD,definiteWeekDef=normalized.weekYear||normalized.weekNumber;if((containsGregor||containsOrdinal)&&definiteWeekDef)throw new ConflictingSpecificationError(`Can't mix weekYear/weekNumber units with year/month/day or ordinals`);if(containsGregorMD&&containsOrdinal)throw new ConflictingSpecificationError(`Can't mix ordinal dates with month/day`);let mixed;settingWeekStuff?mixed=weekToGregorian({...gregorianToWeek(this.c,minDaysInFirstWeek,startOfWeek),...normalized},minDaysInFirstWeek,startOfWeek):isUndefined(normalized.ordinal)?(mixed={...this.toObject(),...normalized},isUndefined(normalized.day)&&(mixed.day=Math.min(daysInMonth(mixed.year,mixed.month),mixed.day))):mixed=ordinalToGregorian({...gregorianToOrdinal(this.c),...normalized});let[ts,o]=objToTS(mixed,this.o,this.zone);return clone(this,{ts,o})}plus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration);return clone(this,adjustTime(this,dur))}minus(duration){if(!this.isValid)return this;let dur=Duration.fromDurationLike(duration).negate();return clone(this,adjustTime(this,dur))}startOf(unit,{useLocaleWeeks=!1}={}){if(!this.isValid)return this;let o={},normalizedUnit=Duration.normalizeUnit(unit);switch(normalizedUnit){case`years`:o.month=1;case`quarters`:case`months`:o.day=1;case`weeks`:case`days`:o.hour=0;case`hours`:o.minute=0;case`minutes`:o.second=0;case`seconds`:o.millisecond=0;break}if(normalizedUnit===`weeks`)if(useLocaleWeeks){let startOfWeek=this.loc.getStartOfWeek(),{weekday}=this;weekday<startOfWeek&&(o.weekNumber=this.weekNumber-1),o.weekday=startOfWeek}else o.weekday=1;if(normalizedUnit===`quarters`){let q=Math.ceil(this.month/3);o.month=(q-1)*3+1}return this.set(o)}endOf(unit,opts){return this.isValid?this.plus({[unit]:1}).startOf(unit,opts).minus(1):this}toFormat(fmt,opts={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this,fmt):INVALID}toLocaleString(formatOpts=DATE_SHORT,opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),formatOpts).formatDateTime(this):INVALID}toLocaleParts(opts={}){return this.isValid?Formatter.create(this.loc.clone(opts),opts).formatDateTimeParts(this):[]}toISO({format=`extended`,suppressSeconds=!1,suppressMilliseconds=!1,includeOffset=!0,extendedZone=!1,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let ext=format===`extended`,c$1=toISODate(this,ext,precision);return orderedUnits.indexOf(precision)>=3&&(c$1+=`T`),c$1+=toISOTime(this,ext,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision),c$1}toISODate({format=`extended`,precision=`day`}={}){return this.isValid?toISODate(this,format===`extended`,normalizeUnit(precision)):null}toISOWeekDate(){return toTechFormat(this,`kkkk-'W'WW-c`)}toISOTime({suppressMilliseconds=!1,suppressSeconds=!1,includeOffset=!0,includePrefix=!1,extendedZone=!1,format=`extended`,precision=`milliseconds`}={}){if(!this.isValid)return null;precision=normalizeUnit(precision);let c$1=includePrefix&&orderedUnits.indexOf(precision)>=3?`T`:``;return c$1+toISOTime(this,format===`extended`,suppressSeconds,suppressMilliseconds,includeOffset,extendedZone,precision)}toRFC2822(){return toTechFormat(this,`EEE, dd LLL yyyy HH:mm:ss ZZZ`,!1)}toHTTP(){return toTechFormat(this.toUTC(),`EEE, dd LLL yyyy HH:mm:ss 'GMT'`)}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset=!0,includeZone=!1,includeOffsetSpace=!0}={}){let fmt=`HH:mm:ss.SSS`;return(includeZone||includeOffset)&&(includeOffsetSpace&&(fmt+=` `),includeZone?fmt+=`z`:includeOffset&&(fmt+=`ZZ`)),toTechFormat(this,fmt,!0)}toSQL(opts={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(opts)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(opts={}){if(!this.isValid)return{};let base={...this.c};return opts.includeConfig&&(base.outputCalendar=this.outputCalendar,base.numberingSystem=this.loc.numberingSystem,base.locale=this.loc.locale),base}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(otherDateTime,unit=`milliseconds`,opts={}){if(!this.isValid||!otherDateTime.isValid)return Duration.invalid(`created by diffing an invalid DateTime`);let durOpts={locale:this.locale,numberingSystem:this.numberingSystem,...opts},units=maybeArray(unit).map(Duration.normalizeUnit),otherIsLater=otherDateTime.valueOf()>this.valueOf(),earlier=otherIsLater?this:otherDateTime,later=otherIsLater?otherDateTime:this,diffed=diff$2(earlier,later,units,durOpts);return otherIsLater?diffed.negate():diffed}diffNow(unit=`milliseconds`,opts={}){return this.diff(DateTime.now(),unit,opts)}until(otherDateTime){return this.isValid?Interval.fromDateTimes(this,otherDateTime):this}hasSame(otherDateTime,unit,opts){if(!this.isValid)return!1;let inputMs=otherDateTime.valueOf(),adjustedToZone=this.setZone(otherDateTime.zone,{keepLocalTime:!0});return adjustedToZone.startOf(unit,opts)<=inputMs&&inputMs<=adjustedToZone.endOf(unit,opts)}equals(other){return this.isValid&&other.isValid&&this.valueOf()===other.valueOf()&&this.zone.equals(other.zone)&&this.loc.equals(other.loc)}toRelative(options={}){if(!this.isValid)return null;let base=options.base||DateTime.fromObject({},{zone:this.zone}),padding=options.padding?this<base?-options.padding:options.padding:0,units=[`years`,`months`,`days`,`hours`,`minutes`,`seconds`],unit=options.unit;return Array.isArray(options.unit)&&(units=options.unit,unit=void 0),diffRelative(base,this.plus(padding),{...options,numeric:`always`,units,unit})}toRelativeCalendar(options={}){return this.isValid?diffRelative(options.base||DateTime.fromObject({},{zone:this.zone}),this,{...options,numeric:`auto`,units:[`years`,`months`,`days`],calendary:!0}):null}static min(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`min requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.min)}static max(...dateTimes){if(!dateTimes.every(DateTime.isDateTime))throw new InvalidArgumentError(`max requires all arguments be DateTimes`);return bestBy(dateTimes,i$4=>i$4.valueOf(),Math.max)}static fromFormatExplain(text,fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return explainFromTokens(localeToUse,text,fmt)}static fromStringExplain(text,fmt,options={}){return DateTime.fromFormatExplain(text,fmt,options)}static buildFormatParser(fmt,options={}){let{locale=null,numberingSystem=null}=options,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});return new TokenParser(localeToUse,fmt)}static fromFormatParser(text,formatParser,opts={}){if(isUndefined(text)||isUndefined(formatParser))throw new InvalidArgumentError(`fromFormatParser requires an input string and a format parser`);let{locale=null,numberingSystem=null}=opts,localeToUse=Locale.fromOpts({locale,numberingSystem,defaultToEN:!0});if(!localeToUse.equals(formatParser.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${localeToUse}, but the format parser was created for ${formatParser.locale}`);let{result,zone,specificOffset,invalidReason}=formatParser.explainFromTokens(text);return invalidReason?DateTime.invalid(invalidReason):parseDataToDateTime(result,zone,opts,`format ${formatParser.format}`,text,specificOffset)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}};function friendlyDateTime(dateTimeish){if(DateTime.isDateTime(dateTimeish))return dateTimeish;if(dateTimeish&&dateTimeish.valueOf&&isNumber(dateTimeish.valueOf()))return DateTime.fromJSDate(dateTimeish);if(dateTimeish&&typeof dateTimeish==`object`)return DateTime.fromObject(dateTimeish);throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`)}var require_dayjs_min=__commonJSMin((exports,module)=>{(function(t$5,e){typeof exports==`object`&&module!==void 0?module.exports=e():typeof define==`function`&&define.amd?define(e):(t$5=typeof globalThis<`u`?globalThis:t$5||self).dayjs=e()})(exports,function(){"use strict";var t$5=1e3,e=6e4,n$2=36e5,r=`millisecond`,i$4=`second`,s$2=`minute`,u=`hour`,a=`day`,o=`week`,c$1=`month`,f=`quarter`,h=`year`,d=`date`,l$2=`Invalid Date`,$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M$1={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(t$6){var e$1=[`th`,`st`,`nd`,`rd`],n$3=t$6%100;return`[`+t$6+(e$1[(n$3-20)%10]||e$1[n$3]||e$1[0])+`]`}},m=function(t$6,e$1,n$3){var r$1=String(t$6);return!r$1||r$1.length>=e$1?t$6:``+Array(e$1+1-r$1.length).join(n$3)+t$6},v={s:m,z:function(t$6){var e$1=-t$6.utcOffset(),n$3=Math.abs(e$1),r$1=Math.floor(n$3/60),i$5=n$3%60;return(e$1<=0?`+`:`-`)+m(r$1,2,`0`)+`:`+m(i$5,2,`0`)},m:function t$6(e$1,n$3){if(e$1.date()<n$3.date())return-t$6(n$3,e$1);var r$1=12*(n$3.year()-e$1.year())+(n$3.month()-e$1.month()),i$5=e$1.clone().add(r$1,c$1),s$3=n$3-i$5<0,u$1=e$1.clone().add(r$1+(s$3?-1:1),c$1);return+(-(r$1+(n$3-i$5)/(s$3?i$5-u$1:u$1-i$5))||0)},a:function(t$6){return t$6<0?Math.ceil(t$6)||0:Math.floor(t$6)},p:function(t$6){return{M:c$1,y:h,w:o,d:a,D:d,h:u,m:s$2,s:i$4,ms:r,Q:f}[t$6]||String(t$6||``).toLowerCase().replace(/s$/,``)},u:function(t$6){return t$6===void 0}},g$2=`en`,D={};D[g$2]=M$1;var p=`$isDayjsObject`,S=function(t$6){return t$6 instanceof _||!(!t$6||!t$6[p])},w=function t$6(e$1,n$3,r$1){var i$5;if(!e$1)return g$2;if(typeof e$1==`string`){var s$3=e$1.toLowerCase();D[s$3]&&(i$5=s$3),n$3&&(D[s$3]=n$3,i$5=s$3);var u$1=e$1.split(`-`);if(!i$5&&u$1.length>1)return t$6(u$1[0])}else{var a$1=e$1.name;D[a$1]=e$1,i$5=a$1}return!r$1&&i$5&&(g$2=i$5),i$5||!r$1&&g$2},O=function(t$6,e$1){if(S(t$6))return t$6.clone();var n$3=typeof e$1==`object`?e$1:{};return n$3.date=t$6,n$3.args=arguments,new _(n$3)},b=v;b.l=w,b.i=S,b.w=function(t$6,e$1){return O(t$6,{locale:e$1.$L,utc:e$1.$u,x:e$1.$x,$offset:e$1.$offset})};var _=function(){function M$2(t$6){this.$L=w(t$6.locale,null,!0),this.parse(t$6),this.$x=this.$x||t$6.x||{},this[p]=!0}var m$1=M$2.prototype;return m$1.parse=function(t$6){this.$d=function(t$7){var e$1=t$7.date,n$3=t$7.utc;if(e$1===null)return new Date(NaN);if(b.u(e$1))return new Date;if(e$1 instanceof Date)return new Date(e$1);if(typeof e$1==`string`&&!/Z$/i.test(e$1)){var r$1=e$1.match($);if(r$1){var i$5=r$1[2]-1||0,s$3=(r$1[7]||`0`).substring(0,3);return n$3?new Date(Date.UTC(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)):new Date(r$1[1],i$5,r$1[3]||1,r$1[4]||0,r$1[5]||0,r$1[6]||0,s$3)}}return new Date(e$1)}(t$6),this.init()},m$1.init=function(){var t$6=this.$d;this.$y=t$6.getFullYear(),this.$M=t$6.getMonth(),this.$D=t$6.getDate(),this.$W=t$6.getDay(),this.$H=t$6.getHours(),this.$m=t$6.getMinutes(),this.$s=t$6.getSeconds(),this.$ms=t$6.getMilliseconds()},m$1.$utils=function(){return b},m$1.isValid=function(){return this.$d.toString()!==l$2},m$1.isSame=function(t$6,e$1){var n$3=O(t$6);return this.startOf(e$1)<=n$3&&n$3<=this.endOf(e$1)},m$1.isAfter=function(t$6,e$1){return O(t$6)<this.startOf(e$1)},m$1.isBefore=function(t$6,e$1){return this.endOf(e$1)<O(t$6)},m$1.$g=function(t$6,e$1,n$3){return b.u(t$6)?this[e$1]:this.set(n$3,t$6)},m$1.unix=function(){return Math.floor(this.valueOf()/1e3)},m$1.valueOf=function(){return this.$d.getTime()},m$1.startOf=function(t$6,e$1){var n$3=this,r$1=!!b.u(e$1)||e$1,f$1=b.p(t$6),l$3=function(t$7,e$2){var i$5=b.w(n$3.$u?Date.UTC(n$3.$y,e$2,t$7):new Date(n$3.$y,e$2,t$7),n$3);return r$1?i$5:i$5.endOf(a)},$$1=function(t$7,e$2){return b.w(n$3.toDate()[t$7].apply(n$3.toDate(`s`),(r$1?[0,0,0,0]:[23,59,59,999]).slice(e$2)),n$3)},y$1=this.$W,M$3=this.$M,m$2=this.$D,v$1=`set`+(this.$u?`UTC`:``);switch(f$1){case h:return r$1?l$3(1,0):l$3(31,11);case c$1:return r$1?l$3(1,M$3):l$3(0,M$3+1);case o:var g$3=this.$locale().weekStart||0,D$1=(y$1<g$3?y$1+7:y$1)-g$3;return l$3(r$1?m$2-D$1:m$2+(6-D$1),M$3);case a:case d:return $$1(v$1+`Hours`,0);case u:return $$1(v$1+`Minutes`,1);case s$2:return $$1(v$1+`Seconds`,2);case i$4:return $$1(v$1+`Milliseconds`,3);default:return this.clone()}},m$1.endOf=function(t$6){return this.startOf(t$6,!1)},m$1.$set=function(t$6,e$1){var n$3,o$1=b.p(t$6),f$1=`set`+(this.$u?`UTC`:``),l$3=(n$3={},n$3[a]=f$1+`Date`,n$3[d]=f$1+`Date`,n$3[c$1]=f$1+`Month`,n$3[h]=f$1+`FullYear`,n$3[u]=f$1+`Hours`,n$3[s$2]=f$1+`Minutes`,n$3[i$4]=f$1+`Seconds`,n$3[r]=f$1+`Milliseconds`,n$3)[o$1],$$1=o$1===a?this.$D+(e$1-this.$W):e$1;if(o$1===c$1||o$1===h){var y$1=this.clone().set(d,1);y$1.$d[l$3]($$1),y$1.init(),this.$d=y$1.set(d,Math.min(this.$D,y$1.daysInMonth())).$d}else l$3&&this.$d[l$3]($$1);return this.init(),this},m$1.set=function(t$6,e$1){return this.clone().$set(t$6,e$1)},m$1.get=function(t$6){return this[b.p(t$6)]()},m$1.add=function(r$1,f$1){var d$1,l$3=this;r$1=Number(r$1);var $$1=b.p(f$1),y$1=function(t$6){var e$1=O(l$3);return b.w(e$1.date(e$1.date()+Math.round(t$6*r$1)),l$3)};if($$1===c$1)return this.set(c$1,this.$M+r$1);if($$1===h)return this.set(h,this.$y+r$1);if($$1===a)return y$1(1);if($$1===o)return y$1(7);var M$3=(d$1={},d$1[s$2]=e,d$1[u]=n$2,d$1[i$4]=t$5,d$1)[$$1]||1,m$2=this.$d.getTime()+r$1*M$3;return b.w(m$2,this)},m$1.subtract=function(t$6,e$1){return this.add(-1*t$6,e$1)},m$1.format=function(t$6){var e$1=this,n$3=this.$locale();if(!this.isValid())return n$3.invalidDate||l$2;var r$1=t$6||`YYYY-MM-DDTHH:mm:ssZ`,i$5=b.z(this),s$3=this.$H,u$1=this.$m,a$1=this.$M,o$1=n$3.weekdays,c$2=n$3.months,f$1=n$3.meridiem,h$1=function(t$7,n$4,i$6,s$4){return t$7&&(t$7[n$4]||t$7(e$1,r$1))||i$6[n$4].slice(0,s$4)},d$1=function(t$7){return b.s(s$3%12||12,t$7,`0`)},$$1=f$1||function(t$7,e$2,n$4){var r$2=t$7<12?`AM`:`PM`;return n$4?r$2.toLowerCase():r$2};return r$1.replace(y,function(t$7,r$2){return r$2||function(t$8){switch(t$8){case`YY`:return String(e$1.$y).slice(-2);case`YYYY`:return b.s(e$1.$y,4,`0`);case`M`:return a$1+1;case`MM`:return b.s(a$1+1,2,`0`);case`MMM`:return h$1(n$3.monthsShort,a$1,c$2,3);case`MMMM`:return h$1(c$2,a$1);case`D`:return e$1.$D;case`DD`:return b.s(e$1.$D,2,`0`);case`d`:return String(e$1.$W);case`dd`:return h$1(n$3.weekdaysMin,e$1.$W,o$1,2);case`ddd`:return h$1(n$3.weekdaysShort,e$1.$W,o$1,3);case`dddd`:return o$1[e$1.$W];case`H`:return String(s$3);case`HH`:return b.s(s$3,2,`0`);case`h`:return d$1(1);case`hh`:return d$1(2);case`a`:return $$1(s$3,u$1,!0);case`A`:return $$1(s$3,u$1,!1);case`m`:return String(u$1);case`mm`:return b.s(u$1,2,`0`);case`s`:return String(e$1.$s);case`ss`:return b.s(e$1.$s,2,`0`);case`SSS`:return b.s(e$1.$ms,3,`0`);case`Z`:return i$5}return null}(t$7)||i$5.replace(`:`,``)})},m$1.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m$1.diff=function(r$1,d$1,l$3){var $$1,y$1=this,M$3=b.p(d$1),m$2=O(r$1),v$1=(m$2.utcOffset()-this.utcOffset())*e,g$3=this-m$2,D$1=function(){return b.m(y$1,m$2)};switch(M$3){case h:$$1=D$1()/12;break;case c$1:$$1=D$1();break;case f:$$1=D$1()/3;break;case o:$$1=(g$3-v$1)/6048e5;break;case a:$$1=(g$3-v$1)/864e5;break;case u:$$1=g$3/n$2;break;case s$2:$$1=g$3/e;break;case i$4:$$1=g$3/t$5;break;default:$$1=g$3}return l$3?$$1:b.a($$1)},m$1.daysInMonth=function(){return this.endOf(c$1).$D},m$1.$locale=function(){return D[this.$L]},m$1.locale=function(t$6,e$1){if(!t$6)return this.$L;var n$3=this.clone(),r$1=w(t$6,e$1,!0);return r$1&&(n$3.$L=r$1),n$3},m$1.clone=function(){return b.w(this.$d,this)},m$1.toDate=function(){return new Date(this.valueOf())},m$1.toJSON=function(){return this.isValid()?this.toISOString():null},m$1.toISOString=function(){return this.$d.toISOString()},m$1.toString=function(){return this.$d.toUTCString()},M$2}(),k=_.prototype;return O.prototype=k,[[`$ms`,r],[`$s`,i$4],[`$m`,s$2],[`$H`,u],[`$W`,a],[`$M`,c$1],[`$y`,h],[`$D`,d]].forEach(function(t$6){k[t$6[1]]=function(e$1){return this.$g(e$1,t$6[0],t$6[1])}}),O.extend=function(t$6,e$1){return t$6.$i||(t$6(e$1,_,O),t$6.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t$6){return O(1e3*t$6)},O.en=D[g$2],O.Ls=D,O.p={},O})});const isInstanceOf=(value,type,ctor)=>{if(ctor!==void 0&&value instanceof ctor||ctor!==void 0&&typeof ctor[Symbol.hasInstance]==`function`&&ctor[Symbol.hasInstance](value))return!0;if(typeof value==`object`&&value){let valueWithConstructor=value,constructorName=valueWithConstructor.constructor?.name;return constructorName===type}return!1},isLuxonDateTime=value=>value instanceof DateTime?!0:typeof value!=`object`||!value||!(`isLuxonDateTime`in value)?!1:value.isLuxonDateTime===!0,isPlainObject=value=>typeof value==`object`&&!!value&&!Array.isArray(value),isDateObjectUnits=value=>{if(!isPlainObject(value))return!1;let keys=Object.keys(value);if(keys.length===0)return!1;let valids=[`year`,`month`,`day`,`ordinal`,`weekYear`,`localWeekYear`,`weekNumber`,`localWeekNumber`,`weekday`,`localWeekday`,`hour`,`minute`,`second`,`millisecond`],invalidKeys=keys.filter(key=>!valids.includes(key));return invalidKeys.length>0?!1:keys.every(key=>{let val=value[key];return typeof val==`number`||val===void 0})};var import_dayjs_min=__toESM(require_dayjs_min());Settings.defaultZone=`utc`,Settings.defaultLocale=`en`,Settings.defaultWeekSettings={firstDay:7,minimalDays:4,weekend:[6,7]},Settings.throwOnInvalid=!1;const removeComments=str=>(str=str.replace(/\/\/.*$/gm,``),str=str.replace(/\/\*[\s\S]*?\*\//g,``),str),extractFunctionBody=fn$1=>{let fnString=fn$1.toString();if(fnString.includes(`[native code]`))throw Error(`Cannot extract body from native function`);let cleanedString=removeComments(fnString),arrowMatch=cleanedString.match(/^\s*(?:async\s+)?(?:\([^)]*\)|[^=]+)\s*=>\s*(.+)$/s);if(arrowMatch&&!arrowMatch[1].trim().startsWith(`{`)){let expression=arrowMatch[1].trim().replace(/;?\s*$/,``);if(expression.startsWith(`(`)&&expression.endsWith(`)`)){let unwrapped=expression.slice(1,-1).trim();if(unwrapped.startsWith(`{`)&&unwrapped.endsWith(`}`))return`return ${unwrapped}`}return`return ${expression}`}let braceCount=0,inString=!1,stringChar=``,inTemplate=!1,escaped=!1,firstBrace=-1,lastBrace=-1;for(let[i$4,char]of Array.from(cleanedString).entries()){if(escaped){escaped=!1;continue}if(char===`\\`){escaped=!0;continue}if(!inString&&!inTemplate){if(char===`"`||char===`'`){inString=!0,stringChar=char;continue}if(char==="`"){inTemplate=!0;continue}}else if(inString&&char===stringChar){inString=!1;continue}else if(inTemplate&&char==="`"){inTemplate=!1;continue}if(!inString&&!inTemplate){if(char===`{`)firstBrace===-1&&(firstBrace=i$4),braceCount++;else if(char===`}`&&(braceCount--,braceCount===0&&firstBrace!==-1)){lastBrace=i$4;break}}}if(firstBrace===-1||lastBrace===-1||firstBrace>=lastBrace)throw Error(`Unable to extract function body - no valid braces found`);let body=cleanedString.slice(firstBrace+1,lastBrace).trim();if(/\breturn\b/.test(body))return body;let beforeBrace=cleanedString.slice(0,firstBrace).trim();if(beforeBrace.endsWith(`=>`)||beforeBrace.endsWith(`=> (`)||beforeBrace.endsWith(`=>(`)){let objectLiteralPattern=/^\s*(?:[a-zA-Z_$][\w$]*\s*:|["'`][^"'`]+["'`]\s*:|get\s+|set\s+|\[)/;if(objectLiteralPattern.test(body))return`return {${body}}`}return`return ${body}`},compileCallback=body=>{try{return Function(`dt`,`helpers`,body)}catch(error){throw Error(`Failed to compile callback: ${error instanceof Error?error.message:String(error)}`)}},messages$2={"datetime.base":`{{#label}} must be a datetime value`,"datetime.exactly":`{{#label}} must be a datetime exactly equal to {{#limit}}`,"datetime.equals":`{{#label}} must be a datetime equal to {{#limit}}`,"datetime.after":`{{#label}} must be a datetime after {{#limit}}`,"datetime.greater":`{{#label}} must be a datetime after {{#limit}}`,"datetime.before":`{{#label}} must be a datetime before {{#limit}}`,"datetime.less":`{{#label}} must be a datetime before {{#limit}}`,"datetime.afterOrEqual":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.min":`{{#label}} must be a datetime after or equal to {{#limit}}`,"datetime.beforeOrEqual":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.max":`{{#label}} must be a datetime before or equal to {{#limit}}`,"datetime.weekend":`{{#label}} is not a weekend`,"datetime.weekday":`{{#label}} is not a weekday`},compare$12=(value,limit,operator)=>{switch(value=toDateTime(value),limit=toDateTime(limit),operator){case`===`:return value.equals(limit);case`=`:return value.hasSame(limit,`millisecond`);case`>`:return value>limit;case`<`:return value<limit;case`>=`:return value>=limit;case`<=`:return value<=limit;default:return!1}},backToDateTime=value=>value instanceof DateTime?value:DateTime.fromObject(value.c,{zone:value.zone}).setLocale(value.loc.locale),toDateTime=(value,format)=>{if(isLuxonDateTime(value))return value instanceof DateTime?value:backToDateTime(value);if(isInstanceOf(value,`Date`,Date))return DateTime.fromJSDate(value);if(isInstanceOf(value,`Dayjs`)||import_dayjs_min.default.isDayjs(value))return DateTime.fromJSDate(value.toDate());if(isDateObjectUnits(value))return DateTime.fromObject(value,{zone:`utc`});if(typeof value==`number`){let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}if(typeof value==`string`){if(format){let dateTime=DateTime.fromFormat(value,format,{zone:`utc`});if(dateTime.isValid)return dateTime}let isoDateTime=DateTime.fromISO(value,{setZone:!0});if(isoDateTime.isValid)return isoDateTime;let luxonMethods=[DateTime.fromRFC2822,DateTime.fromHTTP,DateTime.fromSQL];for(let method of luxonMethods){let dateTime=method(value,{zone:`utc`});if(dateTime.isValid)return dateTime}let day=(0,import_dayjs_min.default)(value);if(day.isValid())return DateTime.fromJSDate(day.toDate(),{zone:`utc`})}return!1},coerce$2=(value,helpers)=>{let converted=toDateTime(value);if(converted){let{schema,prefs}=helpers;if(prefs.convert){let returnable=converted;if(schema._flags.setZone&&Array.isArray(schema._flags.setZone))if(Array.isArray(schema._flags.setZone[0]))Array.from(schema._flags.setZone).forEach(f=>{if(!f)return;let[zone,opts]=Array.from(f);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}});else{let[zone,opts]=Array.from(schema._flags.setZone);switch(zone){case`utc`:case`UTC`:returnable=returnable.toUTC();break;case`local`:returnable=returnable.toLocal();break;default:returnable=returnable.setZone(zone,opts);break}}if(schema._flags.setLocale&&(returnable=returnable.setLocale(schema._flags.setLocale)),schema._flags.toFormat){if(Array.isArray(schema._flags.toFormat)){let fmt=Array.from(schema._flags.toFormat),method=fmt.shift(),processedArgs=fmt.map(arg=>{if(typeof arg==`string`&&arg.includes(`return`)){let compiledFn=compileCallback(arg);return compiledFn(returnable,helpers)}return arg});returnable=returnable[method](...processedArgs)}else if(typeof schema._flags.toFormat==`string`)if(schema._flags.toFormat.includes(`return`)){let compiledFn=compileCallback(schema._flags.toFormat),result=compiledFn(returnable,helpers);returnable=returnable.toFormat(result)}else returnable=returnable.toFormat(schema._flags.toFormat)}return{value:returnable}}return{value:converted}}return{value,errors:[helpers.error(`datetime.base`,{value:String(value)})]}},datetime=function(joi){return{type:`datetime`,base:joi.any(),coerce:{from:[`string`,`number`,`date`,`object`],method:coerce$2},rules:{compare:{method:!1,validate(value,helpers,{limit},{name:name$1,operator}){let src$1=toDateTime(value),threshold=toDateTime(limit);if(!src$1||!threshold)return helpers.error(`datetime.base`,{value:isLuxonDateTime(value)?value.toLocaleString(DateTime.DATETIME_MED):String(value)});let valid$2=compare$12(src$1,threshold,operator);return valid$2?value:helpers.error(`datetime.`+name$1,{limit:threshold.toLocaleString(DateTime.DATETIME_MED),value:src$1.toLocaleString(DateTime.DATETIME_MED)})},args:[{name:`limit`,ref:!0,assert:value=>isLuxonDateTime(toDateTime(value)),message:`must be a datetime`}]},exactly:{method(limit){return this.$_addRule({name:`exactly`,method:`compare`,args:{limit},operator:`===`})}},equals:{method(limit){return this.$_addRule({name:`equals`,method:`compare`,args:{limit},operator:`=`})}},after:{method(limit){return this.$_addRule({name:`after`,method:`compare`,args:{limit},operator:`>`})}},greater:{method(limit){return this.$_addRule({name:`greater`,method:`compare`,args:{limit},operator:`>`})}},before:{method(limit){return this.$_addRule({name:`before`,method:`compare`,args:{limit},operator:`<`})}},less:{method(limit){return this.$_addRule({name:`less`,method:`compare`,args:{limit},operator:`<`})}},afterOrEqual:{method(limit){return this.$_addRule({name:`afterOrEqual`,method:`compare`,args:{limit},operator:`>=`})}},min:{method(limit){return this.$_addRule({name:`min`,method:`compare`,args:{limit},operator:`>=`})}},beforeOrEqual:{method(limit){return this.$_addRule({name:`beforeOrEqual`,method:`compare`,args:{limit},operator:`<=`})}},max:{method(limit){return this.$_addRule({name:`max`,method:`compare`,args:{limit},operator:`<=`})}},weekend:{method(){return this.$_addRule({name:`weekend`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?value:helpers.error(`datetime.weekend`,{value:confirmable.toLocaleString(DateTime.DATE_MED)})}},weekday:{method(){return this.$_addRule({name:`weekday`})},validate(value,helpers){let confirmable=toDateTime(value);return confirmable.isWeekend?helpers.error(`datetime.weekday`,{value:confirmable.toLocaleString(DateTime.DATE_MED)}):value}},toUTC:{method(){return this.$_setFlag(`setZone`,[`utc`])}},toLocal:{method(){return this.$_setFlag(`setZone`,[`local`])}},setZone:{method(zone,opts){return this.$_setFlag(`setZone`,[zone,opts])}},toFormat:{method(format){let processedFormat=typeof format==`function`?extractFunctionBody(format):format;return this.$_setFlag(`toFormat`,processedFormat,{clone:!0})}},toLocalizedString:{method(formatOpts){let processedOpts=typeof formatOpts==`function`?extractFunctionBody(formatOpts):formatOpts;return this.$_setFlag(`toFormat`,[`toLocaleString`,processedOpts],{clone:!0})}},toISO:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISO`,processedOpts]:[`toISO`],{clone:!0})}},toISODate:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISODate`,processedOpts]:[`toISODate`],{clone:!0})}},toISOWeekDate:{method(){return this.$_setFlag(`toFormat`,[`toISOWeekDate`],{clone:!0})}},toISOTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toISOTime`,processedOpts]:[`toISOTime`],{clone:!0})}},toRFC2822:{method(){return this.$_setFlag(`toFormat`,[`toRFC2822`],{clone:!0})}},toHTTP:{method(){return this.$_setFlag(`toFormat`,[`toHTTP`],{clone:!0})}},toSQLDate:{method(){return this.$_setFlag(`toFormat`,[`toSQLDate`],{clone:!0})}},toSQLTime:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQLTime`,processedOpts]:[`toSQLTime`],{clone:!0})}},toSQL:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toSQL`,processedOpts]:[`toSQL`],{clone:!0})}},toMillis:{method(){return this.$_setFlag(`toFormat`,[`toMillis`],{clone:!0})}},toSeconds:{method(){return this.$_setFlag(`toFormat`,[`toSeconds`],{clone:!0})}},toUnixInteger:{method(){return this.$_setFlag(`toFormat`,[`toUnixInteger`],{clone:!0})}},toJSON:{method(){return this.$_setFlag(`toFormat`,[`toJSON`],{clone:!0})}},toBSON:{method(){return this.$_setFlag(`toFormat`,[`toBSON`],{clone:!0})}},toObject:{method(opts){let config=typeof opts==`function`?extractFunctionBody(opts):opts?.includeConfig===void 0?{includeConfig:!1}:{includeConfig:opts.includeConfig};return this.$_setFlag(`toFormat`,[`toObject`,config],{clone:!0})}},toJSDate:{method(){return this.$_setFlag(`toFormat`,[`toJSDate`],{clone:!0})}},toRelative:{method(opts){let processedOpts=opts&&typeof opts==`function`?extractFunctionBody(opts):opts;return this.$_setFlag(`toFormat`,processedOpts?[`toRelative`,processedOpts]:[`toRelative`],{clone:!0})}},setLocale:{method(locale){return this.$_setFlag(`setLocale`,locale)}}},messages:messages$2}},generate=(root,schema,args$1)=>(schema.$_root=root,!schema._definition.args||!args$1.length?schema:schema._definition.args(schema,...args$1)),knownMessages={"alternatives.all":`{{#label}} does not match all of the required types`,"alternatives.any":`{{#label}} does not match any of the allowed types`,"alternatives.match":`{{#label}} does not match any of the allowed types`,"alternatives.one":`{{#label}} matches more than one allowed type`,"alternatives.types":`{{#label}} must be one of {{#types}}`,"any.custom":`{{#label}} failed custom validation because {{#error.message}}`,"any.default":`{{#label}} threw an error when running default method`,"any.failover":`{{#label}} threw an error when running failover method`,"any.invalid":`{{#label}} contains an invalid value`,"any.only":`{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}`,"any.ref":`{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}`,"any.required":`{{#label}} is required`,"any.unknown":`{{#label}} is not allowed`,"array.base":`{{#label}} must be an array`,"array.excludes":`{{#label}} contains an excluded value`,"array.hasKnown":`{{#label}} does not contain at least one required match for type {:#patternLabel}`,"array.hasUnknown":`{{#label}} does not contain at least one required match`,"array.includes":`{{#label}} does not match any of the allowed types`,"array.includesRequiredBoth":`{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)`,"array.includesRequiredKnowns":`{{#label}} does not contain {{#knownMisses}}`,"array.includesRequiredUnknowns":`{{#label}} does not contain {{#unknownMisses}} required value(s)`,"array.length":`{{#label}} must contain {{#limit}} items`,"array.max":`{{#label}} must contain less than or equal to {{#limit}} items`,"array.min":`{{#label}} must contain at least {{#limit}} items`,"array.orderedLength":`{{#label}} must contain at most {{#limit}} items`,"array.sort":`{{#label}} must be sorted in {#order} order by {{#by}}`,"array.sort.mismatching":`{{#label}} cannot be sorted due to mismatching types`,"array.sort.unsupported":`{{#label}} cannot be sorted due to unsupported type {#type}`,"array.sparse":`{{#label}} must not be a sparse array item`,"array.unique":`{{#label}} contains a duplicate value`,"binary.base":`{{#label}} must be a buffer or a string`,"binary.length":`{{#label}} must be {{#limit}} bytes`,"binary.max":`{{#label}} must be less than or equal to {{#limit}} bytes`,"binary.min":`{{#label}} must be at least {{#limit}} bytes`,"boolean.base":`{{#label}} must be a boolean`,"date.base":`{{#label}} must be a valid date`,"date.format":`{{#label}} must be in {msg("date.format." + #format) || #format} format`,"date.greater":`{{#label}} must be greater than {{:#limit}}`,"date.less":`{{#label}} must be less than {{:#limit}}`,"date.max":`{{#label}} must be less than or equal to {{:#limit}}`,"date.min":`{{#label}} must be greater than or equal to {{:#limit}}`,"date.format.iso":`ISO 8601 date`,"date.format.javascript":`timestamp or number of milliseconds`,"date.format.unix":`timestamp or number of seconds`,"function.arity":`{{#label}} must have an arity of {{#n}}`,"function.class":`{{#label}} must be a class`,"function.maxArity":`{{#label}} must have an arity lesser or equal to {{#n}}`,"function.minArity":`{{#label}} must have an arity greater or equal to {{#n}}`,"object.and":`{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}`,"object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":`{{#label}} must be of type {{#type}}`,"object.instance":`{{#label}} must be an instance of {{:#type}}`,"object.length":`{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}`,"object.max":`{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}`,"object.min":`{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}`,"object.missing":`{{#label}} must contain at least one of {{#peersWithLabels}}`,"object.nand":`{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}`,"object.oxor":`{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}`,"object.pattern.match":`{{#label}} keys failed to match pattern requirements`,"object.refType":`{{#label}} must be a Joi reference`,"object.regex":`{{#label}} must be a RegExp object`,"object.rename.multiple":`{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}`,"object.rename.override":`{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists`,"object.schema":`{{#label}} must be a Joi schema of {{#type}} type`,"object.unknown":`{{#label}} is not allowed`,"object.with":`{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}`,"object.without":`{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}`,"object.xor":`{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}`,"number.base":`{{#label}} must be a number`,"number.greater":`{{#label}} must be greater than {{#limit}}`,"number.infinity":`{{#label}} cannot be infinity`,"number.integer":`{{#label}} must be an integer`,"number.less":`{{#label}} must be less than {{#limit}}`,"number.max":`{{#label}} must be less than or equal to {{#limit}}`,"number.min":`{{#label}} must be greater than or equal to {{#limit}}`,"number.multiple":`{{#label}} must be a multiple of {{#multiple}}`,"number.negative":`{{#label}} must be a negative number`,"number.port":`{{#label}} must be a valid port`,"number.positive":`{{#label}} must be a positive number`,"number.precision":`{{#label}} must have no more than {{#limit}} decimal places`,"number.unsafe":`{{#label}} must be a safe number`,"string.alphanum":`{{#label}} must only contain alpha-numeric characters`,"string.base":`{{#label}} must be a string`,"string.base64":`{{#label}} must be a valid base64 string`,"string.creditCard":`{{#label}} must be a credit card`,"string.dataUri":`{{#label}} must be a valid dataUri string`,"string.domain":`{{#label}} must contain a valid domain name`,"string.email":`{{#label}} must be a valid email`,"string.empty":`{{#label}} is not allowed to be empty`,"string.guid":`{{#label}} must be a valid GUID`,"string.hex":`{{#label}} must only contain hexadecimal characters`,"string.hexAlign":`{{#label}} hex decoded representation must be byte aligned`,"string.hostname":`{{#label}} must be a valid hostname`,"string.ip":`{{#label}} must be a valid ip address with a {{#cidr}} CIDR`,"string.ipVersion":`{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR`,"string.isoDate":`{{#label}} must be in iso format`,"string.isoDuration":`{{#label}} must be a valid ISO 8601 duration`,"string.length":`{{#label}} length must be {{#limit}} characters long`,"string.lowercase":`{{#label}} must only contain lowercase characters`,"string.max":`{{#label}} length must be less than or equal to {{#limit}} characters long`,"string.min":`{{#label}} length must be at least {{#limit}} characters long`,"string.normalize":`{{#label}} must be unicode normalized in the {{#form}} form`,"string.token":`{{#label}} must only contain alpha-numeric and underscore characters`,"string.pattern.base":`{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}`,"string.pattern.name":`{{#label}} with value {:[.]} fails to match the {{#name}} pattern`,"string.pattern.invert.base":`{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}`,"string.pattern.invert.name":`{{#label}} with value {:[.]} matches the inverted {{#name}} pattern`,"string.trim":`{{#label}} must not have leading or trailing whitespace`,"string.uri":`{{#label}} must be a valid uri`,"string.uriCustomScheme":`{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern`,"string.uriRelativeOnly":`{{#label}} must be a valid relative uri`,"string.uppercase":`{{#label}} must only contain uppercase characters`,"symbol.base":`{{#label}} must be a symbol`,"symbol.map":`{{#label}} must be one of {{#map}}`,...messages$1,...messages$2,...messages,...knexMessages};countries.forEach((name$1,iso)=>{knownMessages[`country.${iso}`]=name$1});let globalI18nCallback;const i18n=toPatch=>{let root=toPatch,joi=Object.assign({},root),joiTypes=joi.types(),originalMessages=new Map;Object.entries(knownMessages).forEach(([key,value])=>{originalMessages.set(key,value)});let doUpdateI18n=callback=>{globalI18nCallback=callback;let $t=term=>{if(globalI18nCallback)try{let ret=globalI18nCallback(term);if(typeof ret==`string`)return ret}catch{}return originalMessages.get(term)||term},applyMessagesToSchema=(schema,messages$3)=>schema.messages({"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...messages$3});Object.defineProperty(root,`$i18n`,{value:term=>$t(term),writable:!1,enumerable:!0,configurable:!0}),Object.keys(joiTypes).forEach(type=>{let t$5=type;if(typeof root[t$5]!=`function`)return;let baseSchema=root[t$5]();root[t$5]=(...args$1)=>{let schema=generate(root,baseSchema,args$1),knexTranslations=Object.fromEntries(Object.entries(knexMessages).map(([k])=>[k,$t(k)]));switch(type){case`alternatives`:return applyMessagesToSchema(schema,{"alternatives.all":$t(`alternatives.all`),"alternatives.any":$t(`alternatives.any`),"alternatives.match":$t(`alternatives.match`),"alternatives.one":$t(`alternatives.one`),"alternatives.types":$t(`alternatives.types`),...knexTranslations});case`any`:return applyMessagesToSchema(schema,{"any.custom":$t(`any.custom`),"any.default":$t(`any.default`),"any.failover":$t(`any.failover`),"any.invalid":$t(`any.invalid`),"any.only":$t(`any.only`),"any.ref":$t(`any.ref`),"any.required":$t(`any.required`),"any.unknown":$t(`any.unknown`),...knexTranslations});case`array`:return applyMessagesToSchema(schema,{"array.base":$t(`array.base`),"array.excludes":$t(`array.excludes`),"array.hasKnown":$t(`array.hasKnown`),"array.hasUnknown":$t(`array.hasUnknown`),"array.includes":$t(`array.includes`),"array.includesRequiredBoth":$t(`array.includesRequiredBoth`),"array.includesRequiredKnowns":$t(`array.includesRequiredKnowns`),"array.includesRequiredUnknowns":$t(`array.includesRequiredUnknowns`),"array.length":$t(`array.length`),"array.max":$t(`array.max`),"array.min":$t(`array.min`),"array.orderedLength":$t(`array.orderedLength`),"array.sort":$t(`array.sort`),"array.sort.mismatching":$t(`array.sort.mismatching`),"array.sort.unsupported":$t(`array.sort.unsupported`),"array.sparse":$t(`array.sparse`),"array.unique":$t(`array.unique`),...knexTranslations});case`binary`:return applyMessagesToSchema(schema,{"binary.base":$t(`binary.base`),"binary.length":$t(`binary.length`),"binary.max":$t(`binary.max`),"binary.min":$t(`binary.min`),...knexTranslations});case`boolean`:return applyMessagesToSchema(schema,{"boolean.base":$t(`boolean.base`),...knexTranslations});case`date`:return applyMessagesToSchema(schema,{"date.base":$t(`date.base`),"date.format":$t(`date.format`),"date.greater":$t(`date.greater`),"date.less":$t(`date.less`),"date.max":$t(`date.max`),"date.min":$t(`date.min`),"date.format.iso":$t(`date.format.iso`),"date.format.javascript":$t(`date.format.javascript`),"date.format.unix":$t(`date.format.unix`),...knexTranslations});case`function`:return applyMessagesToSchema(schema,{"function.arity":$t(`function.arity`),"function.class":$t(`function.class`),"function.maxArity":$t(`function.maxArity`),"function.minArity":$t(`function.minArity`),...knexTranslations});case`object`:case`keys`:return applyMessagesToSchema(schema,{"object.and":$t(`object.and`),"object.assert":$t(`object.assert`),"object.base":$t(`object.base`),"object.instance":$t(`object.instance`),"object.length":$t(`object.length`),"object.max":$t(`object.max`),"object.min":$t(`object.min`),"object.missing":$t(`object.missing`),"object.nand":$t(`object.nand`),"object.oxor":$t(`object.oxor`),"object.pattern.match":$t(`object.pattern.match`),"object.refType":$t(`object.refType`),"object.regex":$t(`object.regex`),"object.rename.multiple":$t(`object.rename.multiple`),"object.rename.override":$t(`object.rename.override`),"object.schema":$t(`object.schema`),"object.unknown":$t(`object.unknown`),"object.with":$t(`object.with`),"object.without":$t(`object.without`),"object.xor":$t(`object.xor`),...knexTranslations});case`number`:return applyMessagesToSchema(schema,{"number.base":$t(`number.base`),"number.greater":$t(`number.greater`),"number.infinity":$t(`number.infinity`),"number.integer":$t(`number.integer`),"number.less":$t(`number.less`),"number.max":$t(`number.max`),"number.min":$t(`number.min`),"number.multiple":$t(`number.multiple`),"number.negative":$t(`number.negative`),"number.port":$t(`number.port`),"number.positive":$t(`number.positive`),"number.precision":$t(`number.precision`),"number.unsafe":$t(`number.unsafe`),...knexTranslations});case`string`:return applyMessagesToSchema(schema,{"string.alphanum":$t(`string.alphanum`),"string.base":$t(`string.base`),"string.base64":$t(`string.base64`),"string.creditCard":$t(`string.creditCard`),"string.dataUri":$t(`string.dataUri`),"string.domain":$t(`string.domain`),"string.email":$t(`string.email`),"string.empty":$t(`string.empty`),"string.guid":$t(`string.guid`),"string.hex":$t(`string.hex`),"string.hexAlign":$t(`string.hexAlign`),"string.hostname":$t(`string.hostname`),"string.ip":$t(`string.ip`),"string.ipVersion":$t(`string.ipVersion`),"string.isoDate":$t(`string.isoDate`),"string.isoDuration":$t(`string.isoDuration`),"string.length":$t(`string.length`),"string.lowercase":$t(`string.lowercase`),"string.max":$t(`string.max`),"string.min":$t(`string.min`),"string.normalize":$t(`string.normalize`),"string.token":$t(`string.token`),"string.pattern.base":$t(`string.pattern.base`),"string.pattern.name":$t(`string.pattern.name`),"string.pattern.invert.base":$t(`string.pattern.invert.base`),"string.pattern.invert.name":$t(`string.pattern.invert.name`),"string.trim":$t(`string.trim`),"string.uri":$t(`string.uri`),"string.uriCustomScheme":$t(`string.uriCustomScheme`),"string.uriRelativeOnly":$t(`string.uriRelativeOnly`),"string.uppercase":$t(`string.uppercase`),...knexTranslations});case`symbol`:return applyMessagesToSchema(schema,{"symbol.base":$t(`symbol.base`),"symbol.map":$t(`symbol.map`),...knexTranslations});case`bigint`:return applyMessagesToSchema(schema,{"bigint.base":$t(`bigint.base`),"bigint.greater":$t(`bigint.greater`),"bigint.less":$t(`bigint.less`),"bigint.max":$t(`bigint.max`),"bigint.min":$t(`bigint.min`),"bigint.multiple":$t(`bigint.multiple`),"bigint.negative":$t(`bigint.negative`),"bigint.positive":$t(`bigint.positive`),...knexTranslations});case`datetime`:return applyMessagesToSchema(schema,{"datetime.base":$t(`datetime.base`),"datetime.exactly":$t(`datetime.exactly`),"datetime.equals":$t(`datetime.equals`),"datetime.after":$t(`datetime.after`),"datetime.greater":$t(`datetime.greater`),"datetime.before":$t(`datetime.before`),"datetime.less":$t(`datetime.less`),"datetime.afterOrEqual":$t(`datetime.afterOrEqual`),"datetime.min":$t(`datetime.min`),"datetime.beforeOrEqual":$t(`datetime.beforeOrEqual`),"datetime.max":$t(`datetime.max`),"datetime.weekend":$t(`datetime.weekend`),"datetime.weekday":$t(`datetime.weekday`),...knexTranslations});case`phone`:return applyMessagesToSchema(schema,{"phone.base":$t(`phone.base`),"phone.invalid":$t(`phone.invalid`),"phone.fixedLine":$t(`phone.fixedLine`),"phone.mobile":$t(`phone.mobile`),"phone.strictFixedLine":$t(`phone.strictFixedLine`),"phone.strictMobile":$t(`phone.strictMobile`),"phone.fixedLineOrMobile":$t(`phone.fixedLineOrMobile`),"phone.tollFree":$t(`phone.tollFree`),"phone.premiumRate":$t(`phone.premiumRate`),"phone.sharedCost":$t(`phone.sharedCost`),"phone.voip":$t(`phone.voip`),"phone.personalNumber":$t(`phone.personalNumber`),"phone.pager":$t(`phone.pager`),"phone.uan":$t(`phone.uan`),"phone.voicemail":$t(`phone.voicemail`),"phone.unknown":$t(`phone.unknown`),"phone.types":$t(`phone.types`),...knexTranslations});default:return applyMessagesToSchema(schema,{...knexTranslations})}}})};return Object.defineProperty(root,`$setI18n`,{value:callback=>(doUpdateI18n(callback),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$clearI18n`,{value:()=>(doUpdateI18n(),root),writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(root,`$i18n`,{value:term=>{try{return originalMessages.get(term)||term}catch{return term}},writable:!1,enumerable:!0,configurable:!0}),root},patch=root=>(root=json(root),root=i18n(root),root);var require_constants=__commonJSMin((exports,module)=>{let SEMVER_SPEC_VERSION=`2.0.0`,MAX_LENGTH$2=256,MAX_SAFE_INTEGER$1=2**53-1||9007199254740991,MAX_SAFE_COMPONENT_LENGTH$1=16,MAX_SAFE_BUILD_LENGTH$1=MAX_LENGTH$2-6,RELEASE_TYPES=[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`];module.exports={MAX_LENGTH:MAX_LENGTH$2,MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH$1,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH$1,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),require_debug=__commonJSMin((exports,module)=>{init_dist();let debug$4=typeof process$1==`object`&&process$1.env&&process$1.env.NODE_DEBUG&&/\bsemver\b/i.test(process$1.env.NODE_DEBUG)?(...args$1)=>console.error(`SEMVER`,...args$1):()=>{};module.exports=debug$4}),require_re=__commonJSMin((exports,module)=>{let{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH:MAX_LENGTH$1}=require_constants(),debug$3=require_debug();exports=module.exports={};let re$4=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t$4=exports.t={},R=0,LETTERDASHNUMBER=`[a-zA-Z0-9-]`,safeRegexReplacements=[[`\\s`,1],[`\\d`,MAX_LENGTH$1],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max$3]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max$3}}`).split(`${token}+`).join(`${token}{1,${max$3}}`);return value},createToken=(name$1,value,isGlobal)=>{let safe=makeSafeRegex(value),index=R++;debug$3(name$1,index,value),t$4[name$1]=index,src[index]=value,safeSrc[index]=safe,re$4[index]=new RegExp(value,isGlobal?`g`:void 0),safeRe[index]=new RegExp(safe,isGlobal?`g`:void 0)};createToken(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),createToken(`NUMERICIDENTIFIERLOOSE`,`\\d+`),createToken(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`),createToken(`MAINVERSION`,`(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})\\.(${src[t$4.NUMERICIDENTIFIER]})`),createToken(`MAINVERSIONLOOSE`,`(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASEIDENTIFIER`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIER]})`),createToken(`PRERELEASEIDENTIFIERLOOSE`,`(?:${src[t$4.NONNUMERICIDENTIFIER]}|${src[t$4.NUMERICIDENTIFIERLOOSE]})`),createToken(`PRERELEASE`,`(?:-(${src[t$4.PRERELEASEIDENTIFIER]}(?:\\.${src[t$4.PRERELEASEIDENTIFIER]})*))`),createToken(`PRERELEASELOOSE`,`(?:-?(${src[t$4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t$4.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken(`BUILDIDENTIFIER`,`${LETTERDASHNUMBER}+`),createToken(`BUILD`,`(?:\\+(${src[t$4.BUILDIDENTIFIER]}(?:\\.${src[t$4.BUILDIDENTIFIER]})*))`),createToken(`FULLPLAIN`,`v?${src[t$4.MAINVERSION]}${src[t$4.PRERELEASE]}?${src[t$4.BUILD]}?`),createToken(`FULL`,`^${src[t$4.FULLPLAIN]}$`),createToken(`LOOSEPLAIN`,`[v=\\s]*${src[t$4.MAINVERSIONLOOSE]}${src[t$4.PRERELEASELOOSE]}?${src[t$4.BUILD]}?`),createToken(`LOOSE`,`^${src[t$4.LOOSEPLAIN]}$`),createToken(`GTLT`,`((?:<|>)?=?)`),createToken(`XRANGEIDENTIFIERLOOSE`,`${src[t$4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken(`XRANGEIDENTIFIER`,`${src[t$4.NUMERICIDENTIFIER]}|x|X|\\*`),createToken(`XRANGEPLAIN`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:\\.(${src[t$4.XRANGEIDENTIFIER]})(?:${src[t$4.PRERELEASE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGEPLAINLOOSE`,`[v=\\s]*(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t$4.XRANGEIDENTIFIERLOOSE]})(?:${src[t$4.PRERELEASELOOSE]})?${src[t$4.BUILD]}?)?)?`),createToken(`XRANGE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAIN]}$`),createToken(`XRANGELOOSE`,`^${src[t$4.GTLT]}\\s*${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken(`COERCE`,`${src[t$4.COERCEPLAIN]}(?:$|[^\\d])`),createToken(`COERCEFULL`,src[t$4.COERCEPLAIN]+`(?:${src[t$4.PRERELEASE]})?(?:${src[t$4.BUILD]})?(?:$|[^\\d])`),createToken(`COERCERTL`,src[t$4.COERCE],!0),createToken(`COERCERTLFULL`,src[t$4.COERCEFULL],!0),createToken(`LONETILDE`,`(?:~>?)`),createToken(`TILDETRIM`,`(\\s*)${src[t$4.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,createToken(`TILDE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAIN]}$`),createToken(`TILDELOOSE`,`^${src[t$4.LONETILDE]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`LONECARET`,`(?:\\^)`),createToken(`CARETTRIM`,`(\\s*)${src[t$4.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,createToken(`CARET`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAIN]}$`),createToken(`CARETLOOSE`,`^${src[t$4.LONECARET]}${src[t$4.XRANGEPLAINLOOSE]}$`),createToken(`COMPARATORLOOSE`,`^${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]})$|^$`),createToken(`COMPARATOR`,`^${src[t$4.GTLT]}\\s*(${src[t$4.FULLPLAIN]})$|^$`),createToken(`COMPARATORTRIM`,`(\\s*)${src[t$4.GTLT]}\\s*(${src[t$4.LOOSEPLAIN]}|${src[t$4.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,createToken(`HYPHENRANGE`,`^\\s*(${src[t$4.XRANGEPLAIN]})\\s+-\\s+(${src[t$4.XRANGEPLAIN]})\\s*$`),createToken(`HYPHENRANGELOOSE`,`^\\s*(${src[t$4.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t$4.XRANGEPLAINLOOSE]})\\s*$`),createToken(`STAR`,`(<|>)?=?\\s*\\*`),createToken(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),createToken(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)}),require_parse_options=__commonJSMin((exports,module)=>{let looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$3=options=>options?typeof options==`object`?options:looseOption:emptyOpts;module.exports=parseOptions$3}),require_identifiers=__commonJSMin((exports,module)=>{let numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{if(typeof a==`number`&&typeof b==`number`)return a===b?0:a<b?-1:1;let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers$1(b,a);module.exports={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers}}),require_semver$1=__commonJSMin((exports,module)=>{let debug$2=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re$3,t:t$3}=require_re(),parseOptions$2=require_parse_options(),{compareIdentifiers}=require_identifiers();var SemVer$15=class SemVer$15{constructor(version$3,options){if(options=parseOptions$2(options),version$3 instanceof SemVer$15){if(version$3.loose===!!options.loose&&version$3.includePrerelease===!!options.includePrerelease)return version$3;version$3=version$3.version}else if(typeof version$3!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof version$3}".`);if(version$3.length>MAX_LENGTH)throw TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2(`SemVer`,version$3,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version$3.trim().match(options.loose?re$3[t$3.LOOSE]:re$3[t$3.FULL]);if(!m)throw TypeError(`Invalid Version: ${version$3}`);if(this.raw=version$3,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw TypeError(`Invalid patch version`);m[4]?this.prerelease=m[4].split(`.`).map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(other){if(debug$2(`SemVer.compare`,this.version,this.options,other),!(other instanceof SemVer$15)){if(typeof other==`string`&&other===this.version)return 0;other=new SemVer$15(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.major<other.major?-1:this.major>other.major?1:this.minor<other.minor?-1:this.minor>other.minor?1:this.patch<other.patch?-1:this.patch>other.patch?1:0}comparePre(other){if(other instanceof SemVer$15||(other=new SemVer$15(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i$4=0;do{let a=this.prerelease[i$4],b=other.prerelease[i$4];if(debug$2(`prerelease compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}compareBuild(other){other instanceof SemVer$15||(other=new SemVer$15(other,this.options));let i$4=0;do{let a=this.build[i$4],b=other.build[i$4];if(debug$2(`build compare`,i$4,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i$4)}inc(release,identifier,identifierBase){if(release.startsWith(`pre`)){if(!identifier&&identifierBase===!1)throw Error(`invalid increment argument: identifier is empty`);if(identifier){let match$2=`-${identifier}`.match(this.options.loose?re$3[t$3.PRERELEASELOOSE]:re$3[t$3.PRERELEASE]);if(!match$2||match$2[1]!==identifier)throw Error(`invalid identifier: ${identifier}`)}}switch(release){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,identifier,identifierBase);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,identifier,identifierBase);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,identifier,identifierBase),this.inc(`pre`,identifier,identifierBase);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let base=Number(identifierBase)?1:0;if(this.prerelease.length===0)this.prerelease=[base];else{let i$4=this.prerelease.length;for(;--i$4>=0;)typeof this.prerelease[i$4]==`number`&&(this.prerelease[i$4]++,i$4=-2);if(i$4===-1){if(identifier===this.prerelease.join(`.`)&&identifierBase===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(base)}}if(identifier){let prerelease$2=[identifier,base];identifierBase===!1&&(prerelease$2=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease$2):this.prerelease=prerelease$2}break}default:throw Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}};module.exports=SemVer$15}),require_parse=__commonJSMin((exports,module)=>{let SemVer$14=require_semver$1(),parse$6=(version$3,options,throwErrors=!1)=>{if(version$3 instanceof SemVer$14)return version$3;try{return new SemVer$14(version$3,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse$6}),require_valid$1=__commonJSMin((exports,module)=>{let parse$5=require_parse(),valid$1=(version$3,options)=>{let v=parse$5(version$3,options);return v?v.version:null};module.exports=valid$1}),require_clean=__commonJSMin((exports,module)=>{let parse$4=require_parse(),clean$1=(version$3,options)=>{let s$2=parse$4(version$3.trim().replace(/^[=v]+/,``),options);return s$2?s$2.version:null};module.exports=clean$1}),require_inc=__commonJSMin((exports,module)=>{let SemVer$13=require_semver$1(),inc$1=(version$3,release,options,identifier,identifierBase)=>{typeof options==`string`&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer$13(version$3 instanceof SemVer$13?version$3.version:version$3,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc$1}),require_diff=__commonJSMin((exports,module)=>{let parse$3=require_parse(),diff$1=(version1,version2)=>{let v1=parse$3(version1,null,!0),v2=parse$3(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length,lowHasPre=!!lowVersion.prerelease.length;if(lowHasPre&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return`major`;if(lowVersion.compareMain(highVersion)===0)return lowVersion.minor&&!lowVersion.patch?`minor`:`patch`}let prefix=highHasPre?`pre`:``;return v1.major===v2.major?v1.minor===v2.minor?v1.patch===v2.patch?`prerelease`:prefix+`patch`:prefix+`minor`:prefix+`major`};module.exports=diff$1}),require_major=__commonJSMin((exports,module)=>{let SemVer$12=require_semver$1(),major$1=(a,loose)=>new SemVer$12(a,loose).major;module.exports=major$1}),require_minor=__commonJSMin((exports,module)=>{let SemVer$11=require_semver$1(),minor$1=(a,loose)=>new SemVer$11(a,loose).minor;module.exports=minor$1}),require_patch=__commonJSMin((exports,module)=>{let SemVer$10=require_semver$1(),patch$2=(a,loose)=>new SemVer$10(a,loose).patch;module.exports=patch$2}),require_prerelease=__commonJSMin((exports,module)=>{let parse$2=require_parse(),prerelease$1=(version$3,options)=>{let parsed=parse$2(version$3,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease$1}),require_compare=__commonJSMin((exports,module)=>{let SemVer$9=require_semver$1(),compare$11=(a,b,loose)=>new SemVer$9(a,loose).compare(new SemVer$9(b,loose));module.exports=compare$11}),require_rcompare=__commonJSMin((exports,module)=>{let compare$10=require_compare(),rcompare$1=(a,b,loose)=>compare$10(b,a,loose);module.exports=rcompare$1}),require_compare_loose=__commonJSMin((exports,module)=>{let compare$9=require_compare(),compareLoose$1=(a,b)=>compare$9(a,b,!0);module.exports=compareLoose$1}),require_compare_build=__commonJSMin((exports,module)=>{let SemVer$8=require_semver$1(),compareBuild$3=(a,b,loose)=>{let versionA=new SemVer$8(a,loose),versionB=new SemVer$8(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild$3}),require_sort=__commonJSMin((exports,module)=>{let compareBuild$2=require_compare_build(),sort$1=(list,loose)=>list.sort((a,b)=>compareBuild$2(a,b,loose));module.exports=sort$1}),require_rsort=__commonJSMin((exports,module)=>{let compareBuild$1=require_compare_build(),rsort$1=(list,loose)=>list.sort((a,b)=>compareBuild$1(b,a,loose));module.exports=rsort$1}),require_gt=__commonJSMin((exports,module)=>{let compare$8=require_compare(),gt$4=(a,b,loose)=>compare$8(a,b,loose)>0;module.exports=gt$4}),require_lt=__commonJSMin((exports,module)=>{let compare$7=require_compare(),lt$3=(a,b,loose)=>compare$7(a,b,loose)<0;module.exports=lt$3}),require_eq=__commonJSMin((exports,module)=>{let compare$6=require_compare(),eq$2=(a,b,loose)=>compare$6(a,b,loose)===0;module.exports=eq$2}),require_neq=__commonJSMin((exports,module)=>{let compare$5=require_compare(),neq$2=(a,b,loose)=>compare$5(a,b,loose)!==0;module.exports=neq$2}),require_gte=__commonJSMin((exports,module)=>{let compare$4=require_compare(),gte$3=(a,b,loose)=>compare$4(a,b,loose)>=0;module.exports=gte$3}),require_lte=__commonJSMin((exports,module)=>{let compare$3=require_compare(),lte$3=(a,b,loose)=>compare$3(a,b,loose)<=0;module.exports=lte$3}),require_cmp=__commonJSMin((exports,module)=>{let eq$1=require_eq(),neq$1=require_neq(),gt$3=require_gt(),gte$2=require_gte(),lt$2=require_lt(),lte$2=require_lte(),cmp$2=(a,op,b,loose)=>{switch(op){case`===`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a===b;case`!==`:return typeof a==`object`&&(a=a.version),typeof b==`object`&&(b=b.version),a!==b;case``:case`=`:case`==`:return eq$1(a,b,loose);case`!=`:return neq$1(a,b,loose);case`>`:return gt$3(a,b,loose);case`>=`:return gte$2(a,b,loose);case`<`:return lt$2(a,b,loose);case`<=`:return lte$2(a,b,loose);default:throw TypeError(`Invalid operator: ${op}`)}};module.exports=cmp$2}),require_coerce=__commonJSMin((exports,module)=>{let SemVer$7=require_semver$1(),parse$1=require_parse(),{safeRe:re$2,t:t$2}=require_re(),coerce$1=(version$3,options)=>{if(version$3 instanceof SemVer$7)return version$3;if(typeof version$3==`number`&&(version$3=String(version$3)),typeof version$3!=`string`)return null;options||={};let match$2=null;if(!options.rtl)match$2=version$3.match(options.includePrerelease?re$2[t$2.COERCEFULL]:re$2[t$2.COERCE]);else{let coerceRtlRegex=options.includePrerelease?re$2[t$2.COERCERTLFULL]:re$2[t$2.COERCERTL],next;for(;(next=coerceRtlRegex.exec(version$3))&&(!match$2||match$2.index+match$2[0].length!==version$3.length);)(!match$2||next.index+next[0].length!==match$2.index+match$2[0].length)&&(match$2=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}if(match$2===null)return null;let major$2=match$2[2],minor$2=match$2[3]||`0`,patch$3=match$2[4]||`0`,prerelease$2=options.includePrerelease&&match$2[5]?`-${match$2[5]}`:``,build=options.includePrerelease&&match$2[6]?`+${match$2[6]}`:``;return parse$1(`${major$2}.${minor$2}.${patch$3}${prerelease$2}${build}`,options)};module.exports=coerce$1}),require_lrucache=__commonJSMin((exports,module)=>{var LRUCache=class{constructor(){this.max=1e3,this.map=new Map}get(key){let value=this.map.get(key);if(value!==void 0)return this.map.delete(key),this.map.set(key,value),value}delete(key){return this.map.delete(key)}set(key,value){let deleted=this.delete(key);if(!deleted&&value!==void 0){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}};module.exports=LRUCache}),require_range=__commonJSMin((exports,module)=>{let SPACE_CHARACTERS=/\s+/g;var Range$11=class Range$11{constructor(range,options){if(options=parseOptions$1(options),range instanceof Range$11)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range$11(range.raw,options);if(range instanceof Comparator$4)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS,` `),this.set=this.raw.split(`||`).map(r=>this.parseRange(r.trim())).filter(c$1=>c$1.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c$1=>!isNullSet(c$1[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c$1 of this.set)if(c$1.length===1&&isAny(c$1[0])){this.set=[c$1];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let i$4=0;i$4<this.set.length;i$4++){i$4>0&&(this.formatted+=`||`);let comps=this.set[i$4];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=` `),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){let memoOpts=(this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE),memoKey=memoOpts+`:`+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re$1[t$1.HYPHENRANGELOOSE]:re$1[t$1.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug$1(`hyphen replace`,range),range=range.replace(re$1[t$1.COMPARATORTRIM],comparatorTrimReplace),debug$1(`comparator trim`,range),range=range.replace(re$1[t$1.TILDETRIM],tildeTrimReplace),debug$1(`tilde trim`,range),range=range.replace(re$1[t$1.CARETTRIM],caretTrimReplace),debug$1(`caret trim`,range);let rangeList=range.split(` `).map(comp=>parseComparator(comp,this.options)).join(` `).split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug$1(`loose invalid filter`,comp,this.options),!!comp.match(re$1[t$1.COMPARATORLOOSE])))),debug$1(`range list`,rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator$4(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has(``)&&rangeMap.delete(``);let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range$11))throw TypeError(`a Range is required`);return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version$3){if(!version$3)return!1;if(typeof version$3==`string`)try{version$3=new SemVer$6(version$3,this.options)}catch{return!1}for(let i$4=0;i$4<this.set.length;i$4++)if(testSet(this.set[i$4],version$3,this.options))return!0;return!1}};module.exports=Range$11;let LRU=require_lrucache(),cache=new LRU,parseOptions$1=require_parse_options(),Comparator$4=require_comparator(),debug$1=require_debug(),SemVer$6=require_semver$1(),{safeRe:re$1,t:t$1,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),isNullSet=c$1=>c$1.value===`<0.0.0-0`,isAny=c$1=>c$1.value===``,isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(comp=comp.replace(re$1[t$1.BUILD],``),debug$1(`comp`,comp,options),comp=replaceCarets(comp,options),debug$1(`caret`,comp),comp=replaceTildes(comp,options),debug$1(`tildes`,comp),comp=replaceXRanges(comp,options),debug$1(`xrange`,comp),comp=replaceStars(comp,options),debug$1(`stars`,comp),comp),isX=id=>!id||id.toLowerCase()===`x`||id===`*`,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceTilde(c$1,options)).join(` `),replaceTilde=(comp,options)=>{let r=options.loose?re$1[t$1.TILDELOOSE]:re$1[t$1.TILDE];return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`tilde`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0 <${+M$1+1}.0.0-0`:isX(p)?ret=`>=${M$1}.${m}.0 <${M$1}.${+m+1}.0-0`:pr?(debug$1(`replaceTilde pr`,pr),ret=`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`):ret=`>=${M$1}.${m}.${p} <${M$1}.${+m+1}.0-0`,debug$1(`tilde return`,ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c$1=>replaceCaret(c$1,options)).join(` `),replaceCaret=(comp,options)=>{debug$1(`caret`,comp,options);let r=options.loose?re$1[t$1.CARETLOOSE]:re$1[t$1.CARET],z$1=options.includePrerelease?`-0`:``;return comp.replace(r,(_,M$1,m,p,pr)=>{debug$1(`caret`,comp,_,M$1,m,p,pr);let ret;return isX(M$1)?ret=``:isX(m)?ret=`>=${M$1}.0.0${z$1} <${+M$1+1}.0.0-0`:isX(p)?ret=M$1===`0`?`>=${M$1}.${m}.0${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.0${z$1} <${+M$1+1}.0.0-0`:pr?(debug$1(`replaceCaret pr`,pr),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}-${pr} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}-${pr} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p}-${pr} <${+M$1+1}.0.0-0`):(debug$1(`no pr`),ret=M$1===`0`?m===`0`?`>=${M$1}.${m}.${p}${z$1} <${M$1}.${m}.${+p+1}-0`:`>=${M$1}.${m}.${p}${z$1} <${M$1}.${+m+1}.0-0`:`>=${M$1}.${m}.${p} <${+M$1+1}.0.0-0`),debug$1(`caret return`,ret),ret})},replaceXRanges=(comp,options)=>(debug$1(`replaceXRanges`,comp,options),comp.split(/\s+/).map(c$1=>replaceXRange(c$1,options)).join(` `)),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re$1[t$1.XRANGELOOSE]:re$1[t$1.XRANGE];return comp.replace(r,(ret,gtlt,M$1,m,p,pr)=>{debug$1(`xRange`,comp,ret,gtlt,M$1,m,p,pr);let xM=isX(M$1),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt===`=`&&anyX&&(gtlt=``),pr=options.includePrerelease?`-0`:``,xM?ret=gtlt===`>`||gtlt===`<`?`<0.0.0-0`:`*`:gtlt&&anyX?(xm&&(m=0),p=0,gtlt===`>`?(gtlt=`>=`,xm?(M$1=+M$1+1,m=0,p=0):(m=+m+1,p=0)):gtlt===`<=`&&(gtlt=`<`,xm?M$1=+M$1+1:m=+m+1),gtlt===`<`&&(pr=`-0`),ret=`${gtlt+M$1}.${m}.${p}${pr}`):xm?ret=`>=${M$1}.0.0${pr} <${+M$1+1}.0.0-0`:xp&&(ret=`>=${M$1}.${m}.0${pr} <${M$1}.${+m+1}.0-0`),debug$1(`xRange return`,ret),ret})},replaceStars=(comp,options)=>(debug$1(`replaceStars`,comp,options),comp.trim().replace(re$1[t$1.STAR],``)),replaceGTE0=(comp,options)=>(debug$1(`replaceGTE0`,comp,options),comp.trim().replace(re$1[options.includePrerelease?t$1.GTE0PRE:t$1.GTE0],``)),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>(from=isX(fM)?``:isX(fm)?`>=${fM}.0.0${incPr?`-0`:``}`:isX(fp)?`>=${fM}.${fm}.0${incPr?`-0`:``}`:fpr?`>=${from}`:`>=${from}${incPr?`-0`:``}`,to=isX(tM)?``:isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version$3,options)=>{for(let i$4=0;i$4<set.length;i$4++)if(!set[i$4].test(version$3))return!1;if(version$3.prerelease.length&&!options.includePrerelease){for(let i$4=0;i$4<set.length;i$4++)if(debug$1(set[i$4].semver),set[i$4].semver!==Comparator$4.ANY&&set[i$4].semver.prerelease.length>0){let allowed=set[i$4].semver;if(allowed.major===version$3.major&&allowed.minor===version$3.minor&&allowed.patch===version$3.patch)return!0}return!1}return!0}}),require_comparator=__commonJSMin((exports,module)=>{let ANY$2=Symbol(`SemVer ANY`);var Comparator$3=class Comparator$3{static get ANY(){return ANY$2}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator$3){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(` `),debug(`comparator`,comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY$2?this.value=``:this.value=this.operator+this.semver.version,debug(`comp`,this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]===void 0?``:m[1],this.operator===`=`&&(this.operator=``),m[2]?this.semver=new SemVer$5(m[2],this.options.loose):this.semver=ANY$2}toString(){return this.value}test(version$3){if(debug(`Comparator.test`,version$3,this.options.loose),this.semver===ANY$2||version$3===ANY$2)return!0;if(typeof version$3==`string`)try{version$3=new SemVer$5(version$3,this.options)}catch{return!1}return cmp$1(version$3,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator$3))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new Range$10(comp.value,options).test(this.value):comp.operator===``?comp.value===``?!0:new Range$10(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value===`<0.0.0-0`||comp.value===`<0.0.0-0`)||!options.includePrerelease&&(this.value.startsWith(`<0.0.0`)||comp.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&comp.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&comp.operator.startsWith(`<`)||this.semver.version===comp.semver.version&&this.operator.includes(`=`)&&comp.operator.includes(`=`)||cmp$1(this.semver,`<`,comp.semver,options)&&this.operator.startsWith(`>`)&&comp.operator.startsWith(`<`)||cmp$1(this.semver,`>`,comp.semver,options)&&this.operator.startsWith(`<`)&&comp.operator.startsWith(`>`)))}};module.exports=Comparator$3;let parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp$1=require_cmp(),debug=require_debug(),SemVer$5=require_semver$1(),Range$10=require_range()}),require_satisfies=__commonJSMin((exports,module)=>{let Range$9=require_range(),satisfies$4=(version$3,range,options)=>{try{range=new Range$9(range,options)}catch{return!1}return range.test(version$3)};module.exports=satisfies$4}),require_to_comparators=__commonJSMin((exports,module)=>{let Range$8=require_range(),toComparators$1=(range,options)=>new Range$8(range,options).set.map(comp=>comp.map(c$1=>c$1.value).join(` `).trim().split(` `));module.exports=toComparators$1}),require_max_satisfying=__commonJSMin((exports,module)=>{let SemVer$4=require_semver$1(),Range$7=require_range(),maxSatisfying$1=(versions,range,options)=>{let max$3=null,maxSV=null,rangeObj=null;try{rangeObj=new Range$7(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max$3||maxSV.compare(v)===-1)&&(max$3=v,maxSV=new SemVer$4(max$3,options))}),max$3};module.exports=maxSatisfying$1}),require_min_satisfying=__commonJSMin((exports,module)=>{let SemVer$3=require_semver$1(),Range$6=require_range(),minSatisfying$1=(versions,range,options)=>{let min$1=null,minSV=null,rangeObj=null;try{rangeObj=new Range$6(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min$1||minSV.compare(v)===1)&&(min$1=v,minSV=new SemVer$3(min$1,options))}),min$1};module.exports=minSatisfying$1}),require_min_version=__commonJSMin((exports,module)=>{let SemVer$2=require_semver$1(),Range$5=require_range(),gt$2=require_gt(),minVersion$1=(range,loose)=>{range=new Range$5(range,loose);let minver=new SemVer$2(`0.0.0`);if(range.test(minver)||(minver=new SemVer$2(`0.0.0-0`),range.test(minver)))return minver;minver=null;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer$2(comparator.semver.version);switch(comparator.operator){case`>`:compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case``:case`>=`:(!setMin||gt$2(compver,setMin))&&(setMin=compver);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt$2(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion$1}),require_valid=__commonJSMin((exports,module)=>{let Range$4=require_range(),validRange$1=(range,options)=>{try{return new Range$4(range,options).range||`*`}catch{return null}};module.exports=validRange$1}),require_outside=__commonJSMin((exports,module)=>{let SemVer$1=require_semver$1(),Comparator$2=require_comparator(),{ANY:ANY$1}=Comparator$2,Range$3=require_range(),satisfies$3=require_satisfies(),gt$1=require_gt(),lt$1=require_lt(),lte$1=require_lte(),gte$1=require_gte(),outside$3=(version$3,range,hilo,options)=>{version$3=new SemVer$1(version$3,options),range=new Range$3(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case`>`:gtfn=gt$1,ltefn=lte$1,ltfn=lt$1,comp=`>`,ecomp=`>=`;break;case`<`:gtfn=lt$1,ltefn=gte$1,ltfn=gt$1,comp=`<`,ecomp=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(satisfies$3(version$3,range,options))return!1;for(let i$4=0;i$4<range.set.length;++i$4){let comparators=range.set[i$4],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY$1&&(comparator=new Comparator$2(`>=0.0.0`)),high||=comparator,low||=comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version$3,low.semver)||low.operator===ecomp&<fn(version$3,low.semver))return!1}return!0};module.exports=outside$3}),require_gtr=__commonJSMin((exports,module)=>{let outside$2=require_outside(),gtr$1=(version$3,range,options)=>outside$2(version$3,range,`>`,options);module.exports=gtr$1}),require_ltr=__commonJSMin((exports,module)=>{let outside$1=require_outside(),ltr$1=(version$3,range,options)=>outside$1(version$3,range,`<`,options);module.exports=ltr$1}),require_intersects=__commonJSMin((exports,module)=>{let Range$2=require_range(),intersects$1=(r1,r2,options)=>(r1=new Range$2(r1,options),r2=new Range$2(r2,options),r1.intersects(r2,options));module.exports=intersects$1}),require_simplify=__commonJSMin((exports,module)=>{let satisfies$2=require_satisfies(),compare$2=require_compare();module.exports=(versions,range,options)=>{let set=[],first=null,prev=null,v=versions.sort((a,b)=>compare$2(a,b,options));for(let version$3 of v){let included=satisfies$2(version$3,range,options);included?(prev=version$3,first||=version$3):(prev&&set.push([first,prev]),prev=null,first=null)}first&&set.push([first,null]);let ranges=[];for(let[min$1,max$3]of set)min$1===max$3?ranges.push(min$1):!max$3&&min$1===v[0]?ranges.push(`*`):max$3?min$1===v[0]?ranges.push(`<=${max$3}`):ranges.push(`${min$1} - ${max$3}`):ranges.push(`>=${min$1}`);let simplified=ranges.join(` || `),original=typeof range.raw==`string`?range.raw:String(range);return simplified.length<original.length?simplified:range}}),require_subset=__commonJSMin((exports,module)=>{let Range$1=require_range(),Comparator$1=require_comparator(),{ANY}=Comparator$1,satisfies$1=require_satisfies(),compare$1=require_compare(),subset$1=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range$1(sub,options),dom=new Range$1(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull||=isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(`>=0.0.0-0`)],minimumVersion=[new Comparator$1(`>=0.0.0`)],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let eqSet=new Set,gt$5,lt$4;for(let c$1 of sub)c$1.operator===`>`||c$1.operator===`>=`?gt$5=higherGT(gt$5,c$1,options):c$1.operator===`<`||c$1.operator===`<=`?lt$4=lowerLT(lt$4,c$1,options):eqSet.add(c$1.semver);if(eqSet.size>1)return null;let gtltComp;if(gt$5&<$4&&(gtltComp=compare$1(gt$5.semver,lt$4.semver,options),gtltComp>0||gtltComp===0&&(gt$5.operator!==`>=`||lt$4.operator!==`<=`)))return null;for(let eq$3 of eqSet){if(gt$5&&!satisfies$1(eq$3,String(gt$5),options)||lt$4&&!satisfies$1(eq$3,String(lt$4),options))return null;for(let c$1 of dom)if(!satisfies$1(eq$3,String(c$1),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt$4&&!options.includePrerelease&<$4.semver.prerelease.length?lt$4.semver:!1,needDomGTPre=gt$5&&!options.includePrerelease&>$5.semver.prerelease.length?gt$5.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<$4.operator===`<`&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c$1 of dom){if(hasDomGT=hasDomGT||c$1.operator===`>`||c$1.operator===`>=`,hasDomLT=hasDomLT||c$1.operator===`<`||c$1.operator===`<=`,gt$5){if(needDomGTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomGTPre.major&&c$1.semver.minor===needDomGTPre.minor&&c$1.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c$1.operator===`>`||c$1.operator===`>=`){if(higher=higherGT(gt$5,c$1,options),higher===c$1&&higher!==gt$5)return!1}else if(gt$5.operator===`>=`&&!satisfies$1(gt$5.semver,String(c$1),options))return!1}if(lt$4){if(needDomLTPre&&c$1.semver.prerelease&&c$1.semver.prerelease.length&&c$1.semver.major===needDomLTPre.major&&c$1.semver.minor===needDomLTPre.minor&&c$1.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c$1.operator===`<`||c$1.operator===`<=`){if(lower=lowerLT(lt$4,c$1,options),lower===c$1&&lower!==lt$4)return!1}else if(lt$4.operator===`<=`&&!satisfies$1(lt$4.semver,String(c$1),options))return!1}if(!c$1.operator&&(lt$4||gt$5)&>ltComp!==0)return!1}return!(gt$5&&hasDomLT&&!lt$4&>ltComp!==0||lt$4&&hasDomGT&&!gt$5&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===`>`&&a.operator===`>=`?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare$1(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator===`<`&&a.operator===`<=`?b:a};module.exports=subset$1}),require_semver=__commonJSMin((exports,module)=>{let internalRe=require_re(),constants=require_constants(),SemVer=require_semver$1(),identifiers=require_identifiers(),parse=require_parse(),valid=require_valid$1(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch$1=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch:patch$1,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}),u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(eb,start){for(var b=new u16(31),i$4=0;i$4<31;++i$4)b[i$4]=start+=1<<eb[i$4-1];for(var r=new i32(b[30]),i$4=1;i$4<30;++i$4)for(var j$1=b[i$4];j$1<b[i$4+1];++j$1)r[j$1]=j$1-b[i$4]<<5|i$4;return{b,r}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768),i=0;i<32768;++i){var x=(i&43690)>>1|(i&21845)<<1;x=(x&52428)>>2|(x&13107)<<2,x=(x&61680)>>4|(x&3855)<<4,rev[i]=((x&65280)>>8|(x&255)<<8)>>1}for(var hMap=function(cd,mb,r){for(var s$2=cd.length,i$4=0,l$2=new u16(mb);i$4<s$2;++i$4)cd[i$4]&&++l$2[cd[i$4]-1];var le$1=new u16(mb);for(i$4=1;i$4<mb;++i$4)le$1[i$4]=le$1[i$4-1]+l$2[i$4-1]<<1;var co;if(r){co=new u16(1<<mb);var rvb=15-mb;for(i$4=0;i$4<s$2;++i$4)if(cd[i$4])for(var sv=i$4<<4|cd[i$4],r_1=mb-cd[i$4],v=le$1[cd[i$4]-1]++<<r_1,m=v|(1<<r_1)-1;v<=m;++v)co[rev[v]>>rvb]=sv}else for(co=new u16(s$2),i$4=0;i$4<s$2;++i$4)cd[i$4]&&(co[i$4]=rev[le$1[cd[i$4]-1]++]>>15-cd[i$4]);return co},flt=new u8(288),i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;for(var fdt=new u8(32),i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(a){for(var m=a[0],i$4=1;i$4<a.length;++i$4)a[i$4]>m&&(m=a[i$4]);return m},bits=function(d,p,m){var o=p/8|0;return(d[o]|d[o+1]<<8)>>(p&7)&m},bits16=function(d,p){var o=p/8|0;return(d[o]|d[o+1]<<8|d[o+2]<<16)>>(p&7)},shft=function(p){return(p+7)/8|0},slc=function(v,s$2,e){return(s$2==null||s$2<0)&&(s$2=0),(e==null||e>v.length)&&(e=v.length),new u8(v.subarray(s$2,e))},ec=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],err=function(ind,msg,nt){var e=Error(msg||ec[ind]);if(e.code=ind,Error.captureStackTrace&&Error.captureStackTrace(e,err),!nt)throw e;return e},inflt=function(dat,st,buf,dict){var sl=dat.length,dl=dict?dict.length:0;if(!sl||st.f&&!st.l)return buf||new u8(0);var noBuf=!buf,resize=noBuf||st.i!=2,noSt=st.i;noBuf&&(buf=new u8(sl*3));var cbuf=function(l$3){var bl=buf.length;if(l$3>bl){var nbuf=new u8(Math.max(bl*2,l$3));nbuf.set(buf),buf=nbuf}},final=st.f||0,pos=st.p||0,bt=st.b||0,lm=st.l,dm=st.d,lbt=st.m,dbt=st.n,tbts=sl*8;do{if(!lm){final=bits(dat,pos,1);var type=bits(dat,pos+1,3);if(pos+=3,type)if(type==1)lm=flrm,dm=fdrm,lbt=9,dbt=5;else if(type==2){var hLit=bits(dat,pos,31)+257,hcLen=bits(dat,pos+10,15)+4,tl=hLit+bits(dat,pos+5,31)+1;pos+=14;for(var ldt=new u8(tl),clt=new u8(19),i$4=0;i$4<hcLen;++i$4)clt[clim[i$4]]=bits(dat,pos+i$4*3,7);pos+=hcLen*3;for(var clb=max(clt),clbmsk=(1<<clb)-1,clm=hMap(clt,clb,1),i$4=0;i$4<tl;){var r=clm[bits(dat,pos,clbmsk)];pos+=r&15;var s$2=r>>4;if(s$2<16)ldt[i$4++]=s$2;else{var c$1=0,n$2=0;for(s$2==16?(n$2=3+bits(dat,pos,3),pos+=2,c$1=ldt[i$4-1]):s$2==17?(n$2=3+bits(dat,pos,7),pos+=3):s$2==18&&(n$2=11+bits(dat,pos,127),pos+=7);n$2--;)ldt[i$4++]=c$1}}var lt$4=ldt.subarray(0,hLit),dt=ldt.subarray(hLit);lbt=max(lt$4),dbt=max(dt),lm=hMap(lt$4,lbt,1),dm=hMap(dt,dbt,1)}else err(1);else{var s$2=shft(pos)+4,l$2=dat[s$2-4]|dat[s$2-3]<<8,t$5=s$2+l$2;if(t$5>sl){noSt&&err(0);break}resize&&cbuf(bt+l$2),buf.set(dat.subarray(s$2,t$5),bt),st.b=bt+=l$2,st.p=pos=t$5*8,st.f=final;continue}if(pos>tbts){noSt&&err(0);break}}resize&&cbuf(bt+131072);for(var lms=(1<<lbt)-1,dms=(1<<dbt)-1,lpos=pos;;lpos=pos){var c$1=lm[bits16(dat,pos)&lms],sym=c$1>>4;if(pos+=c$1&15,pos>tbts){noSt&&err(0);break}if(c$1||err(2),sym<256)buf[bt++]=sym;else if(sym==256){lpos=pos,lm=null;break}else{var add=sym-254;if(sym>264){var i$4=sym-257,b=fleb[i$4];add=bits(dat,pos,(1<<b)-1)+fl[i$4],pos+=b}var d=dm[bits16(dat,pos)&dms],dsym=d>>4;d||err(3),pos+=d&15;var dt=fd[dsym];if(dsym>3){var b=fdeb[dsym];dt+=bits16(dat,pos)&(1<<b)-1,pos+=b}if(pos>tbts){noSt&&err(0);break}resize&&cbuf(bt+131072);var end=bt+add;if(bt<dt){var shift=dl-dt,dend=Math.min(dt,end);for(shift+bt<0&&err(3);bt<dend;++bt)buf[bt]=dict[shift+bt]}for(;bt<end;++bt)buf[bt]=buf[bt-dt]}}st.l=lm,st.p=lpos,st.b=bt,st.f=final,lm&&(final=1,st.m=lbt,st.d=dm,st.n=dbt)}while(!final);return bt!=buf.length&&noBuf?slc(buf,0,bt):buf.subarray(0,bt)},wbits=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8},wbits16=function(d,p,v){v<<=p&7;var o=p/8|0;d[o]|=v,d[o+1]|=v>>8,d[o+2]|=v>>16},hTree=function(d,mb){for(var t$5=[],i$4=0;i$4<d.length;++i$4)d[i$4]&&t$5.push({s:i$4,f:d[i$4]});var s$2=t$5.length,t2=t$5.slice();if(!s$2)return{t:et,l:0};if(s$2==1){var v=new u8(t$5[0].s+1);return v[t$5[0].s]=1,{t:v,l:1}}t$5.sort(function(a,b){return a.f-b.f}),t$5.push({s:-1,f:25001});var l$2=t$5[0],r=t$5[1],i0=0,i1=1,i2=2;for(t$5[0]={s:-1,f:l$2.f+r.f,l:l$2,r};i1!=s$2-1;)l$2=t$5[t$5[i0].f<t$5[i2].f?i0++:i2++],r=t$5[i0!=i1&&t$5[i0].f<t$5[i2].f?i0++:i2++],t$5[i1++]={s:-1,f:l$2.f+r.f,l:l$2,r};for(var maxSym=t2[0].s,i$4=1;i$4<s$2;++i$4)t2[i$4].s>maxSym&&(maxSym=t2[i$4].s);var tr=new u16(maxSym+1),mbt=ln(t$5[i1-1],tr,0);if(mbt>mb){var i$4=0,dt=0,lft=mbt-mb,cst=1<<lft;for(t2.sort(function(a,b){return tr[b.s]-tr[a.s]||a.f-b.f});i$4<s$2;++i$4){var i2_1=t2[i$4].s;if(tr[i2_1]>mb)dt+=cst-(1<<mbt-tr[i2_1]),tr[i2_1]=mb;else break}for(dt>>=lft;dt>0;){var i2_2=t2[i$4].s;tr[i2_2]<mb?dt-=1<<mb-tr[i2_2]++-1:++i$4}for(;i$4>=0&&dt;--i$4){var i2_3=t2[i$4].s;tr[i2_3]==mb&&(--tr[i2_3],++dt)}mbt=mb}return{t:new u8(tr),l:mbt}},ln=function(n$2,l$2,d){return n$2.s==-1?Math.max(ln(n$2.l,l$2,d+1),ln(n$2.r,l$2,d+1)):l$2[n$2.s]=d},lc=function(c$1){for(var s$2=c$1.length;s$2&&!c$1[--s$2];);for(var cl=new u16(++s$2),cli=0,cln=c$1[0],cls=1,w=function(v){cl[cli++]=v},i$4=1;i$4<=s$2;++i$4)if(c$1[i$4]==cln&&i$4!=s$2)++cls;else{if(!cln&&cls>2){for(;cls>138;cls-=138)w(32754);cls>2&&(w(cls>10?cls-11<<5|28690:cls-3<<5|12305),cls=0)}else if(cls>3){for(w(cln),--cls;cls>6;cls-=6)w(8304);cls>2&&(w(cls-3<<5|8208),cls=0)}for(;cls--;)w(cln);cls=1,cln=c$1[i$4]}return{c:cl.subarray(0,cli),n:s$2}},clen=function(cf,cl){for(var l$2=0,i$4=0;i$4<cl.length;++i$4)l$2+=cf[i$4]*cl[i$4];return l$2},wfblk=function(out,pos,dat){var s$2=dat.length,o=shft(pos+2);out[o]=s$2&255,out[o+1]=s$2>>8,out[o+2]=out[o]^255,out[o+3]=out[o+1]^255;for(var i$4=0;i$4<s$2;++i$4)out[o+i$4+4]=dat[i$4];return(o+4+s$2)*8},wblk=function(dat,out,final,syms,lf,df,eb,li,bs,bl,p){wbits(out,p++,final),++lf[256];for(var _a$1=hTree(lf,15),dlt=_a$1.t,mlb=_a$1.l,_b$1=hTree(df,15),ddt=_b$1.t,mdb=_b$1.l,_c=lc(dlt),lclt=_c.c,nlc=_c.n,_d=lc(ddt),lcdt=_d.c,ndc=_d.n,lcfreq=new u16(19),i$4=0;i$4<lclt.length;++i$4)++lcfreq[lclt[i$4]&31];for(var i$4=0;i$4<lcdt.length;++i$4)++lcfreq[lcdt[i$4]&31];for(var _e=hTree(lcfreq,7),lct=_e.t,mlcb=_e.l,nlcc=19;nlcc>4&&!lct[clim[nlcc-1]];--nlcc);var flen=bl+5<<3,ftlen=clen(lf,flt)+clen(df,fdt)+eb,dtlen=clen(lf,dlt)+clen(df,ddt)+eb+14+3*nlcc+clen(lcfreq,lct)+2*lcfreq[16]+3*lcfreq[17]+7*lcfreq[18];if(bs>=0&&flen<=ftlen&&flen<=dtlen)return wfblk(out,p,dat.subarray(bs,bs+bl));var lm,ll,dm,dl;if(wbits(out,p,1+(dtlen<ftlen)),p+=2,dtlen<ftlen){lm=hMap(dlt,mlb,0),ll=dlt,dm=hMap(ddt,mdb,0),dl=ddt;var llm=hMap(lct,mlcb,0);wbits(out,p,nlc-257),wbits(out,p+5,ndc-1),wbits(out,p+10,nlcc-4),p+=14;for(var i$4=0;i$4<nlcc;++i$4)wbits(out,p+3*i$4,lct[clim[i$4]]);p+=3*nlcc;for(var lcts=[lclt,lcdt],it=0;it<2;++it)for(var clct=lcts[it],i$4=0;i$4<clct.length;++i$4){var len$2=clct[i$4]&31;wbits(out,p,llm[len$2]),p+=lct[len$2],len$2>15&&(wbits(out,p,clct[i$4]>>5&127),p+=clct[i$4]>>12)}}else lm=flm,ll=flt,dm=fdm,dl=fdt;for(var i$4=0;i$4<li;++i$4){var sym=syms[i$4];if(sym>255){var len$2=sym>>18&31;wbits16(out,p,lm[len$2+257]),p+=ll[len$2+257],len$2>7&&(wbits(out,p,sym>>23&31),p+=fleb[len$2]);var dst=sym&31;wbits16(out,p,dm[dst]),p+=dl[dst],dst>3&&(wbits16(out,p,sym>>5&8191),p+=fdeb[dst])}else wbits16(out,p,lm[sym]),p+=ll[sym]}return wbits16(out,p,lm[256]),p+ll[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(dat,lvl,plvl,pre,post,st){var s$2=st.z||dat.length,o=new u8(pre+s$2+5*(1+Math.ceil(s$2/7e3))+post),w=o.subarray(pre,o.length-post),lst=st.l,pos=(st.r||0)&7;if(lvl){pos&&(w[0]=st.r>>3);for(var opt=deo[lvl-1],n$2=opt>>13,c$1=opt&8191,msk_1=(1<<plvl)-1,prev=st.p||new u16(32768),head=st.h||new u16(msk_1+1),bs1_1=Math.ceil(plvl/3),bs2_1=2*bs1_1,hsh=function(i$5){return(dat[i$5]^dat[i$5+1]<<bs1_1^dat[i$5+2]<<bs2_1)&msk_1},syms=new i32(25e3),lf=new u16(288),df=new u16(32),lc_1=0,eb=0,i$4=st.i||0,li=0,wi=st.w||0,bs=0;i$4+2<s$2;++i$4){var hv=hsh(i$4),imod=i$4&32767,pimod=head[hv];if(prev[imod]=pimod,head[hv]=imod,wi<=i$4){var rem=s$2-i$4;if((lc_1>7e3||li>24576)&&(rem>423||!lst)){pos=wblk(dat,w,0,syms,lf,df,eb,li,bs,i$4-bs,pos),li=lc_1=eb=0,bs=i$4;for(var j$1=0;j$1<286;++j$1)lf[j$1]=0;for(var j$1=0;j$1<30;++j$1)df[j$1]=0}var l$2=2,d=0,ch_1=c$1,dif=imod-pimod&32767;if(rem>2&&hv==hsh(i$4-dif))for(var maxn=Math.min(n$2,rem)-1,maxd=Math.min(32767,i$4),ml=Math.min(258,rem);dif<=maxd&&--ch_1&&imod!=pimod;){if(dat[i$4+l$2]==dat[i$4+l$2-dif]){for(var nl=0;nl<ml&&dat[i$4+nl]==dat[i$4+nl-dif];++nl);if(nl>l$2){if(l$2=nl,d=dif,nl>maxn)break;for(var mmd=Math.min(dif,nl-2),md=0,j$1=0;j$1<mmd;++j$1){var ti=i$4-dif+j$1&32767,pti=prev[ti],cd=ti-pti&32767;cd>md&&(md=cd,pimod=ti)}}}imod=pimod,pimod=prev[imod],dif+=imod-pimod&32767}if(d){syms[li++]=268435456|revfl[l$2]<<18|revfd[d];var lin=revfl[l$2]&31,din=revfd[d]&31;eb+=fleb[lin]+fdeb[din],++lf[257+lin],++df[din],wi=i$4+l$2,++lc_1}else syms[li++]=dat[i$4],++lf[dat[i$4]]}}for(i$4=Math.max(i$4,wi);i$4<s$2;++i$4)syms[li++]=dat[i$4],++lf[dat[i$4]];pos=wblk(dat,w,lst,syms,lf,df,eb,li,bs,i$4-bs,pos),lst||(st.r=pos&7|w[pos/8|0]<<3,pos-=7,st.h=head,st.p=prev,st.i=i$4,st.w=wi)}else{for(var i$4=st.w||0;i$4<s$2+lst;i$4+=65535){var e=i$4+65535;e>=s$2&&(w[pos/8|0]=lst,e=s$2),pos=wfblk(w,pos+1,dat.subarray(i$4,e))}st.i=s$2}return slc(o,0,pre+shft(pos)+post)},adler=function(){var a=1,b=0;return{p:function(d){for(var n$2=a,m=b,l$2=d.length|0,i$4=0;i$4!=l$2;){for(var e=Math.min(i$4+2655,l$2);i$4<e;++i$4)m+=n$2+=d[i$4];n$2=(n$2&65535)+15*(n$2>>16),m=(m&65535)+15*(m>>16)}a=n$2,b=m},d:function(){return a%=65521,b%=65521,(a&255)<<24|(a&65280)<<8|(b&255)<<8|b>>8}}},dopt=function(dat,opt,pre,post,st){if(!st&&(st={l:1},opt.dictionary)){var dict=opt.dictionary.subarray(-32768),newDat=new u8(dict.length+dat.length);newDat.set(dict),newDat.set(dat,dict.length),dat=newDat,st.w=dict.length}return dflt(dat,opt.level==null?6:opt.level,opt.mem==null?st.l?Math.ceil(Math.max(8,Math.min(13,Math.log(dat.length)))*1.5):20:12+opt.mem,pre,post,st)},wbytes=function(d,b,v){for(;v;++b)d[b]=v,v>>>=8},zlh=function(c$1,o){var lv=o.level,fl$1=lv==0?0:lv<6?1:lv==9?3:2;if(c$1[0]=120,c$1[1]=fl$1<<6|(o.dictionary&&32),c$1[1]|=31-(c$1[0]<<8|c$1[1])%31,o.dictionary){var h=adler();h.p(o.dictionary),wbytes(c$1,2,h.d())}},zls=function(d,dict){return((d[0]&15)!=8||d[0]>>4>7||(d[0]<<8|d[1])%31)&&err(6,`invalid zlib data`),(d[1]>>5&1)==+!dict&&err(6,`invalid zlib data: `+(d[1]&32?`need`:`unexpected`)+` dictionary`),(d[1]>>3&4)+2};function zlibSync(data,opts){opts||={};var a=adler();a.p(data);var d=dopt(data,opts,opts.dictionary?6:2,4);return zlh(d,opts),wbytes(d,d.length-4,a.d()),d}function unzlibSync(data,opts){return inflt(data.subarray(zls(data,opts&&opts.dictionary),-4),{i:2},opts&&opts.out,opts&&opts.dictionary)}var te=typeof TextEncoder<`u`&&new TextEncoder,td=typeof TextDecoder<`u`&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch{}var dutf8=function(d){for(var r=``,i$4=0;;){var c$1=d[i$4++],eb=(c$1>127)+(c$1>223)+(c$1>239);if(i$4+eb>d.length)return{s:r,r:slc(d,i$4-1)};eb?eb==3?(c$1=((c$1&15)<<18|(d[i$4++]&63)<<12|(d[i$4++]&63)<<6|d[i$4++]&63)-65536,r+=String.fromCharCode(55296|c$1>>10,56320|c$1&1023)):eb&1?r+=String.fromCharCode((c$1&31)<<6|d[i$4++]&63):r+=String.fromCharCode((c$1&15)<<12|(d[i$4++]&63)<<6|d[i$4++]&63):r+=String.fromCharCode(c$1)}};function strToU8(str,latin1){if(latin1){for(var ar_1=new u8(str.length),i$4=0;i$4<str.length;++i$4)ar_1[i$4]=str.charCodeAt(i$4);return ar_1}if(te)return te.encode(str);for(var l$2=str.length,ar=new u8(str.length+(str.length>>1)),ai=0,w=function(v){ar[ai++]=v},i$4=0;i$4<l$2;++i$4){if(ai+5>ar.length){var n$2=new u8(ai+8+(l$2-i$4<<1));n$2.set(ar),ar=n$2}var c$1=str.charCodeAt(i$4);c$1<128||latin1?w(c$1):c$1<2048?(w(192|c$1>>6),w(128|c$1&63)):c$1>55295&&c$1<57344?(c$1=65536+(c$1&1047552)|str.charCodeAt(++i$4)&1023,w(240|c$1>>18),w(128|c$1>>12&63),w(128|c$1>>6&63),w(128|c$1&63)):(w(224|c$1>>12),w(128|c$1>>6&63),w(128|c$1&63))}return slc(ar,0,ai)}function strFromU8(dat,latin1){if(latin1){for(var r=``,i$4=0;i$4<dat.length;i$4+=16384)r+=String.fromCharCode.apply(null,dat.subarray(i$4,i$4+16384));return r}else if(td)return td.decode(dat);else{var _a$1=dutf8(dat),s$2=_a$1.s,r=_a$1.r;return r.length&&err(8),s$2}}var import_semver=__toESM(require_semver()),StringifiedFunctionParser=class StringifiedFunctionParser{#namedBindings;#argNames;#functionBody;#isExpressionBody=!1;#isAsync=!1;#isGenerator=!1;constructor(functionString,namedBindings){this.#namedBindings=new Map,this.#argNames=[],this.#functionBody=``,isPlainObject(namedBindings)&&Object.entries(namedBindings).forEach(([key,value])=>{this.#namedBindings.set(key,value)});let trimmed=functionString.trim();this.#parseArgNames(trimmed),this.#parseFunctionBody(trimmed)}#parseArgNames(trimmed){let patterns=[/^\s*(?:async\s+)?\(([^)]*)\)\s*=>/,/^\s*(?:async\s+)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>/,/^\s*(?:async\s+)?function\s*(?:\*\s*)?(?:[a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\(([^)]*)\)/,/^\s*(?:async\s+)?(?:\*\s*)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(([^)]*)\)\s*\{/],paramString=``;for(let pattern of patterns){let match$2=trimmed.match(pattern);if(match$2){paramString=match$2[1]||match$2[2]||``;break}}if(!paramString||!paramString.trim())return;let args$1=[],current=``,depth=0,inString=!1,stringChar=``;for(let i$4=0;i$4<paramString.length;i$4++){let char=paramString[i$4],prevChar=i$4>0?paramString[i$4-1]:``;if((char===`"`||char===`'`||char==="`")&&prevChar!==`\\`&&(inString?char===stringChar&&(inString=!1):(inString=!0,stringChar=char)),!inString&&(char===`{`||char===`[`||char===`(`?depth++:(char===`}`||char===`]`||char===`)`)&&depth--,char===`,`&&depth===0)){let processed=this.#processParameter(current.trim());processed&&args$1.push(processed),current=``;continue}current+=char}if(current.trim()){let processed=this.#processParameter(current.trim());processed&&args$1.push(processed)}this.#argNames.push(...args$1)}#processParameter(param){if(!param)return``;if(param=param.trim(),param.startsWith(`...`))return param.slice(3).trim().split(/[\s=]/)[0];if(param.startsWith(`{`)||param.startsWith(`[`))return param.split(/[\s=:]/)[0];let nameMatch=param.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)/);return nameMatch?nameMatch[1]:``}#parseFunctionBody(trimmed){this.#isAsync=/^\s*async\s+/.test(trimmed);let arrowExpressionMatch=trimmed.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*(.+)$/s);if(arrowExpressionMatch&&!arrowExpressionMatch[2].trimStart().startsWith(`{`)){this.#isExpressionBody=!0,this.#functionBody=arrowExpressionMatch[2].trim();return}let arrowBlockMatch=trimmed.match(/^\s*(async\s+)?(?:\([^)]*\)|[a-zA-Z_$][a-zA-Z0-9_$]*)\s*=>\s*\{([\s\S]*)\}\s*$/);if(arrowBlockMatch){this.#functionBody=arrowBlockMatch[2].trim();return}let functionMatch=trimmed.match(/^\s*(async\s+)?function\s*(\*\s*)?(?:[a-zA-Z_$][a-zA-Z0-9_$]*)?\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(functionMatch){this.#isGenerator=!!functionMatch[2],this.#functionBody=functionMatch[3].trim();return}let methodMatch=trimmed.match(/^\s*(async\s+)?(\*\s*)?[a-zA-Z_$][a-zA-Z0-9_$]*\s*\([^)]*\)\s*\{([\s\S]*)\}\s*$/);if(methodMatch){this.#isGenerator=!!methodMatch[2],this.#functionBody=methodMatch[3].trim();return}let firstBrace=trimmed.indexOf(`{`),lastBrace=trimmed.lastIndexOf(`}`);if(firstBrace!==-1&&lastBrace!==-1&&lastBrace>firstBrace){this.#functionBody=trimmed.substring(firstBrace+1,lastBrace);return}}asFunction(){let functionBody=this.#isExpressionBody?`return ${this.#functionBody}`:this.#functionBody,bindingNames=Array.from(this.#namedBindings.keys()),allParams=[...bindingNames,...this.#argNames],paramList=allParams.join(`, `),functionCode=``;functionCode=this.#isAsync?this.#isGenerator?`async function*(${paramList}) { ${functionBody} }`:`async function(${paramList}) { ${functionBody} }`:this.#isGenerator?`function*(${paramList}) { ${functionBody} }`:`function(${paramList}) { ${functionBody} }`;let callable=Function(`return ${functionCode}`)(),namedBindingValues=Array.from(this.#namedBindings.values());function wrapper(...args$1){return callable.call(this,...namedBindingValues,...args$1)}return wrapper}static parse(functionString,namedBindings){let parser=new StringifiedFunctionParser(functionString,namedBindings);return parser.asFunction()}};const utoa=data=>{let buffer$2=strToU8(data),zipped=zlibSync(buffer$2,{level:9}),binary=strFromU8(zipped,!0);return btoa(binary)},atou=base64=>{let binary=atob(base64);if(binary.startsWith(`xÚ`)){let buffer$2=strToU8(binary,!0),unzipped=unzlibSync(buffer$2);return strFromU8(unzipped)}return decodeURIComponent(escape(binary))},defaultEncoderOptions={withDatabase:!1},isDehydratedValue=value=>isPlainObject(value)&&`_encodedType`in value&&`_encodedValueType`in value&&`_encodedValue`in value,dehydrateValue=(type,value)=>(typeof value==`function`&&(value=value.toString()),{_encodedType:type,_encodedValueType:typeof value,_encodedValue:value}),dehydrateKnexConnection=connection=>{if(isPlainObject(connection))return`getReadClient`in connection?dehydrateValue(`knexConnection`,connection.getReadClient()):dehydrateValue(`knexConnection`,connection);if(typeof connection==`function`&&connection.client!==void 0&&isPlainObject(connection.client.config))return dehydrateValue(`knexConnection`,connection.client.config);throw TypeError(`Cannot dehydrate unexpected type of Knex connection`)},rehydrateKnexConnection=dehydrated=>{let db=knex.default;return db(dehydrated._encodedValue)},rehydrateFunction=(functionString,namedBindings)=>StringifiedFunctionParser.parse(functionString,namedBindings),isReference=(obj,root)=>root.isRef(obj),rehydrateDatabaseFunction=dehydrated=>{let{_encodedValue:encodedValue}=dehydrated,{connection:dehydratedConnection,external}=encodedValue,connection=typeof dehydratedConnection==`function`&&dehydratedConnection.name===`knex`?dehydratedConnection:rehydrateKnexConnection(dehydratedConnection),rehydratedMethod=rehydrateFunction(external.method,{connection,isReference,resolveQueryBuilder});return{...external,method:rehydratedMethod}},rehydrateValue=dehydrated=>{let{_encodedType:encodedType,_encodedValue:encodedValue}=dehydrated;if(encodedType===`function`){let returnable=rehydrateFunction(encodedValue);if(typeof returnable!=`function`)throw TypeError(`Rehydrated value is not a function`);return returnable}else if(encodedType===`knexConnection`)return rehydrateKnexConnection(dehydrated);else if(encodedType===`databaseFunction`)return rehydrateDatabaseFunction(dehydrated);return encodedValue},isDatabaseRelatedFunction=fn$1=>{let functionString=fn$1.toString();return functionString.includes(`connection =`)&&functionString.includes(`.knexConnection`)},isExternalsWithDatabaseRelatedFunctionality=obj=>Array.isArray(obj)&&obj.some(item=>isPlainObject(item)&&`method`in item&&typeof item.method==`function`&&isDatabaseRelatedFunction(item.method)),hasExternalsWithDatabaseRelatedFunctionality=obj=>isPlainObject(obj)&&`externals`in obj&&isExternalsWithDatabaseRelatedFunctionality(obj.externals),encode=(schema,options={})=>{let opts={...defaultEncoderOptions,...options},description$1=schema.describe();for(let key in description$1.keys){if(description$1.keys[key]===void 0||description$1.keys[key].rules===void 0)continue;description$1.keys[key].rules=description$1.keys[key].rules.map(rule=>{for(let argKey in rule.args){let value=rule.args[argKey];value instanceof Phone&&(rule.args[argKey]=value.e164)}return rule})}let json$1=JSON.stringify({version:`1.20251029.1`,schema:description$1},(key,value)=>{if(typeof value==`bigint`)return value.toString();if(value===void 0)return null;if(value instanceof DateTime)return value.toObject();if(value instanceof Date)return DateTime.fromJSDate(value).toObject();if(hasExternalsWithDatabaseRelatedFunctionality(value)){let connection=value.flags.knexConnection;value.externals=value.externals.filter(external=>!(isDatabaseRelatedFunction(external.method)&&!opts.withDatabase)).map(external=>{if(isDatabaseRelatedFunction(external.method))return dehydrateValue(`databaseFunction`,{external:{...external,method:external.method.toString()},connection:dehydrateKnexConnection(connection)})})}return key===`knexConnection`?opts.withDatabase?dehydrateKnexConnection(value):void 0:typeof value==`function`?isDatabaseRelatedFunction(value)&&!opts.withDatabase?dehydrateValue(`function`,()=>{}):dehydrateValue(`function`,value):value});return utoa(json$1)},decode=(base64,options={})=>{let opts={...defaultEncoderOptions,...options},json$1=atou(base64),description$1=JSON.parse(json$1,(_,value)=>!opts.withDatabase&&isPlainObject(value)&&`knexConnection`in value?(delete value.knexConnection,value):isDehydratedValue(value)?rehydrateValue(value):value);if(!isPlainObject(description$1)||!(`version`in description$1)||!(`schema`in description$1)||typeof description$1.version!=`string`||!isPlainObject(description$1.schema))throw TypeError(`Not a valid encoded schema`);let{version:schemaVersion,schema}=description$1;if(import_semver.valid(`1.20251029.1`)){if(!import_semver.valid(import_semver.coerce(schemaVersion)))throw TypeError(`Invalid schema version: ${schemaVersion}`);if(import_semver.gt(import_semver.coerce(schemaVersion),`1.20251029.1`))throw TypeError(`Schema version ${schemaVersion} is not compatible with current version 1.20251029.1`)}return validator.build(schema)},Joi=RootFactory.create({schemaTypeModifiers:[knex$1],shortcutsModifiers:[]}),validator=patch(Joi.extend(bigint).extend(datetime).extend(phone)),TLDS=`AAA.AARP.ABB.ABBOTT.ABBVIE.ABC.ABLE.ABOGADO.ABUDHABI.AC.ACADEMY.ACCENTURE.ACCOUNTANT.ACCOUNTANTS.ACO.ACTOR.AD.ADS.ADULT.AE.AEG.AERO.AETNA.AF.AFL.AFRICA.AG.AGAKHAN.AGENCY.AI.AIG.AIRBUS.AIRFORCE.AIRTEL.AKDN.AL.ALIBABA.ALIPAY.ALLFINANZ.ALLSTATE.ALLY.ALSACE.ALSTOM.AM.AMAZON.AMERICANEXPRESS.AMERICANFAMILY.AMEX.AMFAM.AMICA.AMSTERDAM.ANALYTICS.ANDROID.ANQUAN.ANZ.AO.AOL.APARTMENTS.APP.APPLE.AQ.AQUARELLE.AR.ARAB.ARAMCO.ARCHI.ARMY.ARPA.ART.ARTE.AS.ASDA.ASIA.ASSOCIATES.AT.ATHLETA.ATTORNEY.AU.AUCTION.AUDI.AUDIBLE.AUDIO.AUSPOST.AUTHOR.AUTO.AUTOS.AW.AWS.AX.AXA.AZ.AZURE.BA.BABY.BAIDU.BANAMEX.BAND.BANK.BAR.BARCELONA.BARCLAYCARD.BARCLAYS.BAREFOOT.BARGAINS.BASEBALL.BASKETBALL.BAUHAUS.BAYERN.BB.BBC.BBT.BBVA.BCG.BCN.BD.BE.BEATS.BEAUTY.BEER.BERLIN.BEST.BESTBUY.BET.BF.BG.BH.BHARTI.BI.BIBLE.BID.BIKE.BING.BINGO.BIO.BIZ.BJ.BLACK.BLACKFRIDAY.BLOCKBUSTER.BLOG.BLOOMBERG.BLUE.BM.BMS.BMW.BN.BNPPARIBAS.BO.BOATS.BOEHRINGER.BOFA.BOM.BOND.BOO.BOOK.BOOKING.BOSCH.BOSTIK.BOSTON.BOT.BOUTIQUE.BOX.BR.BRADESCO.BRIDGESTONE.BROADWAY.BROKER.BROTHER.BRUSSELS.BS.BT.BUILD.BUILDERS.BUSINESS.BUY.BUZZ.BV.BW.BY.BZ.BZH.CA.CAB.CAFE.CAL.CALL.CALVINKLEIN.CAM.CAMERA.CAMP.CANON.CAPETOWN.CAPITAL.CAPITALONE.CAR.CARAVAN.CARDS.CARE.CAREER.CAREERS.CARS.CASA.CASE.CASH.CASINO.CAT.CATERING.CATHOLIC.CBA.CBN.CBRE.CC.CD.CENTER.CEO.CERN.CF.CFA.CFD.CG.CH.CHANEL.CHANNEL.CHARITY.CHASE.CHAT.CHEAP.CHINTAI.CHRISTMAS.CHROME.CHURCH.CI.CIPRIANI.CIRCLE.CISCO.CITADEL.CITI.CITIC.CITY.CK.CL.CLAIMS.CLEANING.CLICK.CLINIC.CLINIQUE.CLOTHING.CLOUD.CLUB.CLUBMED.CM.CN.CO.COACH.CODES.COFFEE.COLLEGE.COLOGNE.COM.COMMBANK.COMMUNITY.COMPANY.COMPARE.COMPUTER.COMSEC.CONDOS.CONSTRUCTION.CONSULTING.CONTACT.CONTRACTORS.COOKING.COOL.COOP.CORSICA.COUNTRY.COUPON.COUPONS.COURSES.CPA.CR.CREDIT.CREDITCARD.CREDITUNION.CRICKET.CROWN.CRS.CRUISE.CRUISES.CU.CUISINELLA.CV.CW.CX.CY.CYMRU.CYOU.CZ.DAD.DANCE.DATA.DATE.DATING.DATSUN.DAY.DCLK.DDS.DE.DEAL.DEALER.DEALS.DEGREE.DELIVERY.DELL.DELOITTE.DELTA.DEMOCRAT.DENTAL.DENTIST.DESI.DESIGN.DEV.DHL.DIAMONDS.DIET.DIGITAL.DIRECT.DIRECTORY.DISCOUNT.DISCOVER.DISH.DIY.DJ.DK.DM.DNP.DO.DOCS.DOCTOR.DOG.DOMAINS.DOT.DOWNLOAD.DRIVE.DTV.DUBAI.DUPONT.DURBAN.DVAG.DVR.DZ.EARTH.EAT.EC.ECO.EDEKA.EDU.EDUCATION.EE.EG.EMAIL.EMERCK.ENERGY.ENGINEER.ENGINEERING.ENTERPRISES.EPSON.EQUIPMENT.ER.ERICSSON.ERNI.ES.ESQ.ESTATE.ET.EU.EUROVISION.EUS.EVENTS.EXCHANGE.EXPERT.EXPOSED.EXPRESS.EXTRASPACE.FAGE.FAIL.FAIRWINDS.FAITH.FAMILY.FAN.FANS.FARM.FARMERS.FASHION.FAST.FEDEX.FEEDBACK.FERRARI.FERRERO.FI.FIDELITY.FIDO.FILM.FINAL.FINANCE.FINANCIAL.FIRE.FIRESTONE.FIRMDALE.FISH.FISHING.FIT.FITNESS.FJ.FK.FLICKR.FLIGHTS.FLIR.FLORIST.FLOWERS.FLY.FM.FO.FOO.FOOD.FOOTBALL.FORD.FOREX.FORSALE.FORUM.FOUNDATION.FOX.FR.FREE.FRESENIUS.FRL.FROGANS.FRONTIER.FTR.FUJITSU.FUN.FUND.FURNITURE.FUTBOL.FYI.GA.GAL.GALLERY.GALLO.GALLUP.GAME.GAMES.GAP.GARDEN.GAY.GB.GBIZ.GD.GDN.GE.GEA.GENT.GENTING.GEORGE.GF.GG.GGEE.GH.GI.GIFT.GIFTS.GIVES.GIVING.GL.GLASS.GLE.GLOBAL.GLOBO.GM.GMAIL.GMBH.GMO.GMX.GN.GODADDY.GOLD.GOLDPOINT.GOLF.GOO.GOODYEAR.GOOG.GOOGLE.GOP.GOT.GOV.GP.GQ.GR.GRAINGER.GRAPHICS.GRATIS.GREEN.GRIPE.GROCERY.GROUP.GS.GT.GU.GUCCI.GUGE.GUIDE.GUITARS.GURU.GW.GY.HAIR.HAMBURG.HANGOUT.HAUS.HBO.HDFC.HDFCBANK.HEALTH.HEALTHCARE.HELP.HELSINKI.HERE.HERMES.HIPHOP.HISAMITSU.HITACHI.HIV.HK.HKT.HM.HN.HOCKEY.HOLDINGS.HOLIDAY.HOMEDEPOT.HOMEGOODS.HOMES.HOMESENSE.HONDA.HORSE.HOSPITAL.HOST.HOSTING.HOT.HOTELS.HOTMAIL.HOUSE.HOW.HR.HSBC.HT.HU.HUGHES.HYATT.HYUNDAI.IBM.ICBC.ICE.ICU.ID.IE.IEEE.IFM.IKANO.IL.IM.IMAMAT.IMDB.IMMO.IMMOBILIEN.IN.INC.INDUSTRIES.INFINITI.INFO.ING.INK.INSTITUTE.INSURANCE.INSURE.INT.INTERNATIONAL.INTUIT.INVESTMENTS.IO.IPIRANGA.IQ.IR.IRISH.IS.ISMAILI.IST.ISTANBUL.IT.ITAU.ITV.JAGUAR.JAVA.JCB.JE.JEEP.JETZT.JEWELRY.JIO.JLL.JM.JMP.JNJ.JO.JOBS.JOBURG.JOT.JOY.JP.JPMORGAN.JPRS.JUEGOS.JUNIPER.KAUFEN.KDDI.KE.KERRYHOTELS.KERRYPROPERTIES.KFH.KG.KH.KI.KIA.KIDS.KIM.KINDLE.KITCHEN.KIWI.KM.KN.KOELN.KOMATSU.KOSHER.KP.KPMG.KPN.KR.KRD.KRED.KUOKGROUP.KW.KY.KYOTO.KZ.LA.LACAIXA.LAMBORGHINI.LAMER.LAND.LANDROVER.LANXESS.LASALLE.LAT.LATINO.LATROBE.LAW.LAWYER.LB.LC.LDS.LEASE.LECLERC.LEFRAK.LEGAL.LEGO.LEXUS.LGBT.LI.LIDL.LIFE.LIFEINSURANCE.LIFESTYLE.LIGHTING.LIKE.LILLY.LIMITED.LIMO.LINCOLN.LINK.LIVE.LIVING.LK.LLC.LLP.LOAN.LOANS.LOCKER.LOCUS.LOL.LONDON.LOTTE.LOTTO.LOVE.LPL.LPLFINANCIAL.LR.LS.LT.LTD.LTDA.LU.LUNDBECK.LUXE.LUXURY.LV.LY.MA.MADRID.MAIF.MAISON.MAKEUP.MAN.MANAGEMENT.MANGO.MAP.MARKET.MARKETING.MARKETS.MARRIOTT.MARSHALLS.MATTEL.MBA.MC.MCKINSEY.MD.ME.MED.MEDIA.MEET.MELBOURNE.MEME.MEMORIAL.MEN.MENU.MERCKMSD.MG.MH.MIAMI.MICROSOFT.MIL.MINI.MINT.MIT.MITSUBISHI.MK.ML.MLB.MLS.MM.MMA.MN.MO.MOBI.MOBILE.MODA.MOE.MOI.MOM.MONASH.MONEY.MONSTER.MORMON.MORTGAGE.MOSCOW.MOTO.MOTORCYCLES.MOV.MOVIE.MP.MQ.MR.MS.MSD.MT.MTN.MTR.MU.MUSEUM.MUSIC.MV.MW.MX.MY.MZ.NA.NAB.NAGOYA.NAME.NAVY.NBA.NC.NE.NEC.NET.NETBANK.NETFLIX.NETWORK.NEUSTAR.NEW.NEWS.NEXT.NEXTDIRECT.NEXUS.NF.NFL.NG.NGO.NHK.NI.NICO.NIKE.NIKON.NINJA.NISSAN.NISSAY.NL.NO.NOKIA.NORTON.NOW.NOWRUZ.NOWTV.NP.NR.NRA.NRW.NTT.NU.NYC.NZ.OBI.OBSERVER.OFFICE.OKINAWA.OLAYAN.OLAYANGROUP.OLLO.OM.OMEGA.ONE.ONG.ONL.ONLINE.OOO.OPEN.ORACLE.ORANGE.ORG.ORGANIC.ORIGINS.OSAKA.OTSUKA.OTT.OVH.PA.PAGE.PANASONIC.PARIS.PARS.PARTNERS.PARTS.PARTY.PAY.PCCW.PE.PET.PF.PFIZER.PG.PH.PHARMACY.PHD.PHILIPS.PHONE.PHOTO.PHOTOGRAPHY.PHOTOS.PHYSIO.PICS.PICTET.PICTURES.PID.PIN.PING.PINK.PIONEER.PIZZA.PK.PL.PLACE.PLAY.PLAYSTATION.PLUMBING.PLUS.PM.PN.PNC.POHL.POKER.POLITIE.PORN.POST.PR.PRAXI.PRESS.PRIME.PRO.PROD.PRODUCTIONS.PROF.PROGRESSIVE.PROMO.PROPERTIES.PROPERTY.PROTECTION.PRU.PRUDENTIAL.PS.PT.PUB.PW.PWC.PY.QA.QPON.QUEBEC.QUEST.RACING.RADIO.RE.READ.REALESTATE.REALTOR.REALTY.RECIPES.RED.REDUMBRELLA.REHAB.REISE.REISEN.REIT.RELIANCE.REN.RENT.RENTALS.REPAIR.REPORT.REPUBLICAN.REST.RESTAURANT.REVIEW.REVIEWS.REXROTH.RICH.RICHARDLI.RICOH.RIL.RIO.RIP.RO.ROCKS.RODEO.ROGERS.ROOM.RS.RSVP.RU.RUGBY.RUHR.RUN.RW.RWE.RYUKYU.SA.SAARLAND.SAFE.SAFETY.SAKURA.SALE.SALON.SAMSCLUB.SAMSUNG.SANDVIK.SANDVIKCOROMANT.SANOFI.SAP.SARL.SAS.SAVE.SAXO.SB.SBI.SBS.SC.SCB.SCHAEFFLER.SCHMIDT.SCHOLARSHIPS.SCHOOL.SCHULE.SCHWARZ.SCIENCE.SCOT.SD.SE.SEARCH.SEAT.SECURE.SECURITY.SEEK.SELECT.SENER.SERVICES.SEVEN.SEW.SEX.SEXY.SFR.SG.SH.SHANGRILA.SHARP.SHELL.SHIA.SHIKSHA.SHOES.SHOP.SHOPPING.SHOUJI.SHOW.SI.SILK.SINA.SINGLES.SITE.SJ.SK.SKI.SKIN.SKY.SKYPE.SL.SLING.SM.SMART.SMILE.SN.SNCF.SO.SOCCER.SOCIAL.SOFTBANK.SOFTWARE.SOHU.SOLAR.SOLUTIONS.SONG.SONY.SOY.SPA.SPACE.SPORT.SPOT.SR.SRL.SS.ST.STADA.STAPLES.STAR.STATEBANK.STATEFARM.STC.STCGROUP.STOCKHOLM.STORAGE.STORE.STREAM.STUDIO.STUDY.STYLE.SU.SUCKS.SUPPLIES.SUPPLY.SUPPORT.SURF.SURGERY.SUZUKI.SV.SWATCH.SWISS.SX.SY.SYDNEY.SYSTEMS.SZ.TAB.TAIPEI.TALK.TAOBAO.TARGET.TATAMOTORS.TATAR.TATTOO.TAX.TAXI.TC.TCI.TD.TDK.TEAM.TECH.TECHNOLOGY.TEL.TEMASEK.TENNIS.TEVA.TF.TG.TH.THD.THEATER.THEATRE.TIAA.TICKETS.TIENDA.TIPS.TIRES.TIROL.TJ.TJMAXX.TJX.TK.TKMAXX.TL.TM.TMALL.TN.TO.TODAY.TOKYO.TOOLS.TOP.TORAY.TOSHIBA.TOTAL.TOURS.TOWN.TOYOTA.TOYS.TR.TRADE.TRADING.TRAINING.TRAVEL.TRAVELERS.TRAVELERSINSURANCE.TRUST.TRV.TT.TUBE.TUI.TUNES.TUSHU.TV.TVS.TW.TZ.UA.UBANK.UBS.UG.UK.UNICOM.UNIVERSITY.UNO.UOL.UPS.US.UY.UZ.VA.VACATIONS.VANA.VANGUARD.VC.VE.VEGAS.VENTURES.VERISIGN.VERSICHERUNG.VET.VG.VI.VIAJES.VIDEO.VIG.VIKING.VILLAS.VIN.VIP.VIRGIN.VISA.VISION.VIVA.VIVO.VLAANDEREN.VN.VODKA.VOLVO.VOTE.VOTING.VOTO.VOYAGE.VU.WALES.WALMART.WALTER.WANG.WANGGOU.WATCH.WATCHES.WEATHER.WEATHERCHANNEL.WEBCAM.WEBER.WEBSITE.WED.WEDDING.WEIBO.WEIR.WF.WHOSWHO.WIEN.WIKI.WILLIAMHILL.WIN.WINDOWS.WINE.WINNERS.WME.WOLTERSKLUWER.WOODSIDE.WORK.WORKS.WORLD.WOW.WS.WTC.WTF.XBOX.XEROX.XIHUAN.XIN.XN--11B4C3D.XN--1CK2E1B.XN--1QQW23A.XN--2SCRJ9C.XN--30RR7Y.XN--3BST00M.XN--3DS443G.XN--3E0B707E.XN--3HCRJ9C.XN--3PXU8K.XN--42C2D9A.XN--45BR5CYL.XN--45BRJ9C.XN--45Q11C.XN--4DBRK0CE.XN--4GBRIM.XN--54B7FTA0CC.XN--55QW42G.XN--55QX5D.XN--5SU34J936BGSG.XN--5TZM5G.XN--6FRZ82G.XN--6QQ986B3XL.XN--80ADXHKS.XN--80AO21A.XN--80AQECDR1A.XN--80ASEHDB.XN--80ASWG.XN--8Y0A063A.XN--90A3AC.XN--90AE.XN--90AIS.XN--9DBQ2A.XN--9ET52U.XN--9KRT00A.XN--B4W605FERD.XN--BCK1B9A5DRE4C.XN--C1AVG.XN--C2BR7G.XN--CCK2B3B.XN--CCKWCXETD.XN--CG4BKI.XN--CLCHC0EA0B2G2A9GCD.XN--CZR694B.XN--CZRS0T.XN--CZRU2D.XN--D1ACJ3B.XN--D1ALF.XN--E1A4C.XN--ECKVDTC9D.XN--EFVY88H.XN--FCT429K.XN--FHBEI.XN--FIQ228C5HS.XN--FIQ64B.XN--FIQS8S.XN--FIQZ9S.XN--FJQ720A.XN--FLW351E.XN--FPCRJ9C3D.XN--FZC2C9E2C.XN--FZYS8D69UVGM.XN--G2XX48C.XN--GCKR3F0F.XN--GECRJ9C.XN--GK3AT1E.XN--H2BREG3EVE.XN--H2BRJ9C.XN--H2BRJ9C8C.XN--HXT814E.XN--I1B6B1A6A2E.XN--IMR513N.XN--IO0A7I.XN--J1AEF.XN--J1AMH.XN--J6W193G.XN--JLQ480N2RG.XN--JVR189M.XN--KCRX77D1X4A.XN--KPRW13D.XN--KPRY57D.XN--KPUT3I.XN--L1ACC.XN--LGBBAT1AD8J.XN--MGB9AWBF.XN--MGBA3A3EJT.XN--MGBA3A4F16A.XN--MGBA7C0BBN0A.XN--MGBAAM7A8H.XN--MGBAB2BD.XN--MGBAH1A3HJKRD.XN--MGBAI9AZGQP6J.XN--MGBAYH7GPA.XN--MGBBH1A.XN--MGBBH1A71E.XN--MGBC0A9AZCG.XN--MGBCA7DZDO.XN--MGBCPQ6GPA1A.XN--MGBERP4A5D4AR.XN--MGBGU82A.XN--MGBI4ECEXP.XN--MGBPL2FH.XN--MGBT3DHD.XN--MGBTX2B.XN--MGBX4CD0AB.XN--MIX891F.XN--MK1BU44C.XN--MXTQ1M.XN--NGBC5AZD.XN--NGBE9E0A.XN--NGBRX.XN--NODE.XN--NQV7F.XN--NQV7FS00EMA.XN--NYQY26A.XN--O3CW4H.XN--OGBPF8FL.XN--OTU796D.XN--P1ACF.XN--P1AI.XN--PGBS0DH.XN--PSSY2U.XN--Q7CE6A.XN--Q9JYB4C.XN--QCKA1PMC.XN--QXA6A.XN--QXAM.XN--RHQV96G.XN--ROVU88B.XN--RVC1E0AM3E.XN--S9BRJ9C.XN--SES554G.XN--T60B56A.XN--TCKWE.XN--TIQ49XQYJ.XN--UNUP4Y.XN--VERMGENSBERATER-CTB.XN--VERMGENSBERATUNG-PWB.XN--VHQUV.XN--VUQ861B.XN--W4R85EL8FHU5DNRA.XN--W4RS40L.XN--WGBH1C.XN--WGBL6A.XN--XHQ521B.XN--XKC2AL3HYE2A.XN--XKC2DL3A5EE0H.XN--Y9A3AQ.XN--YFRO4I67O.XN--YGBI2AMMX.XN--ZFR164B.XXX.XYZ.YACHTS.YAHOO.YAMAXUN.YANDEX.YE.YODOBASHI.YOGA.YOKOHAMA.YOU.YOUTUBE.YT.YUN.ZA.ZAPPOS.ZARA.ZERO.ZIP.ZM.ZONE.ZUERICH.ZW`.split(`.`),tlds=new Set(TLDS.map(tld=>tld.toLowerCase()));init_esm();var import_lib=__toESM(require_lib$3()),import_lib$1=__toESM(require_lib$2()),import_lib$2=__toESM(require_lib());const version=`1.20251029.1`;Object.defineProperty(exports,`ValidationError`,{enumerable:!0,get:function(){return import_lib$2.ValidationError}}),Object.defineProperty(exports,`address`,{enumerable:!0,get:function(){return esm_exports}}),exports.decode=decode,exports.encode=encode,Object.defineProperty(exports,`formula`,{enumerable:!0,get:function(){return import_lib}}),Object.defineProperty(exports,`location`,{enumerable:!0,get:function(){return import_lib$1.location}}),exports.tlds=tlds,exports.validator=validator,exports.version=version;
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|