@builder.io/dev-tools 1.19.1 → 1.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/server/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- var jw=Object.create;var Zs=Object.defineProperty;var Uw=Object.getOwnPropertyDescriptor;var Vw=Object.getOwnPropertyNames;var Hw=Object.getPrototypeOf,zw=Object.prototype.hasOwnProperty;var Kw=(e,t,r)=>t in e?Zs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var J=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qw=(e,t)=>{for(var r in t)Zs(e,r,{get:t[r],enumerable:!0})},Gw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vw(t))!zw.call(e,o)&&o!==r&&Zs(e,o,{get:()=>t[o],enumerable:!(n=Uw(t,o))||n.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?jw(Hw(e)):{},Gw(t||!e||!e.__esModule?Zs(r,"default",{value:e,enumerable:!0}):r,e));var He=(e,t,r)=>Kw(e,typeof t!="symbol"?t+"":t,r);var Bf=S((LM,Of)=>{"use strict";Of.exports=function(){if(process.env.npm_config_user_agent)return Jw(process.env.npm_config_user_agent)};function Jw(e){let t=e.split(" ")[0],r=t.lastIndexOf("/"),n=t.substring(0,r);return{name:n==="npminstall"?"cnpm":n,version:t.substring(r+1)}}});var ia=S((jL,lm)=>{"use strict";var rc={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let r="";return e<0?r+=`\x1B[${-e}D`:e>0&&(r+=`\x1B[${e}C`),t<0?r+=`\x1B[${-t}A`:t>0&&(r+=`\x1B[${t}B`),r},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},hx={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},yx={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?rc.up():"");return e&&(t+=rc.left),t}};lm.exports={cursor:rc,scroll:hx,erase:yx,beep:"\x07"}});var Un=S((UL,nc)=>{var aa=process||{},dm=aa.argv||[],sa=aa.env||{},Dx=!(sa.NO_COLOR||dm.includes("--no-color"))&&(!!sa.FORCE_COLOR||dm.includes("--color")||aa.platform==="win32"||(aa.stdout||{}).isTTY&&sa.TERM!=="dumb"||!!sa.CI),vx=(e,t,r=e)=>n=>{let o=""+n,s=o.indexOf(t,e.length);return~s?e+Cx(o,t,r,s)+t:e+o+t},Cx=(e,t,r,n)=>{let o="",s=0;do o+=e.substring(s,n)+r,s=n+t.length,n=e.indexOf(t,s);while(~n);return o+e.substring(s)},pm=(e=Dx)=>{let t=e?vx:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};nc.exports=pm();nc.exports.createColors=pm});var qg=S((B6,Ca)=>{Ca.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;Ca.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;Ca.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var Tc=S((M6,Gg)=>{var _c=qg();Gg.exports={isSpaceSeparator(e){return typeof e=="string"&&_c.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||_c.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||_c.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}}});var Zg=S((L6,Qg)=>{var Ke=Tc(),Ic,dt,Jr,wa,yn,lr,qe,Nc,Gi;Qg.exports=function(t,r){Ic=String(t),dt="start",Jr=[],wa=0,yn=1,lr=0,qe=void 0,Nc=void 0,Gi=void 0;do qe=vP(),wP[dt]();while(qe.type!=="eof");return typeof r=="function"?kc({"":Gi},"",r):Gi};function kc(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let o=0;o<n.length;o++){let s=String(o),i=kc(n,s,r);i===void 0?delete n[s]:Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}else for(let o in n){let s=kc(n,o,r);s===void 0?delete n[o]:Object.defineProperty(n,o,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var X,W,qi,Wr,ae;function vP(){for(X="default",W="",qi=!1,Wr=1;;){ae=Yr();let e=Jg[X]();if(e)return e}}function Yr(){if(Ic[wa])return String.fromCodePoint(Ic.codePointAt(wa))}function A(){let e=Yr();return e===`
2
+ var jw=Object.create;var Zs=Object.defineProperty;var Uw=Object.getOwnPropertyDescriptor;var Vw=Object.getOwnPropertyNames;var Hw=Object.getPrototypeOf,zw=Object.prototype.hasOwnProperty;var Kw=(e,t,r)=>t in e?Zs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Y=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qw=(e,t)=>{for(var r in t)Zs(e,r,{get:t[r],enumerable:!0})},Gw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vw(t))!zw.call(e,o)&&o!==r&&Zs(e,o,{get:()=>t[o],enumerable:!(n=Uw(t,o))||n.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?jw(Hw(e)):{},Gw(t||!e||!e.__esModule?Zs(r,"default",{value:e,enumerable:!0}):r,e));var He=(e,t,r)=>Kw(e,typeof t!="symbol"?t+"":t,r);var Bf=S((LM,Of)=>{"use strict";Of.exports=function(){if(process.env.npm_config_user_agent)return Jw(process.env.npm_config_user_agent)};function Jw(e){let t=e.split(" ")[0],r=t.lastIndexOf("/"),n=t.substring(0,r);return{name:n==="npminstall"?"cnpm":n,version:t.substring(r+1)}}});var ia=S((jL,lm)=>{"use strict";var rc={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let r="";return e<0?r+=`\x1B[${-e}D`:e>0&&(r+=`\x1B[${e}C`),t<0?r+=`\x1B[${-t}A`:t>0&&(r+=`\x1B[${t}B`),r},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},hx={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},yx={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?rc.up():"");return e&&(t+=rc.left),t}};lm.exports={cursor:rc,scroll:hx,erase:yx,beep:"\x07"}});var Un=S((UL,nc)=>{var aa=process||{},dm=aa.argv||[],sa=aa.env||{},Dx=!(sa.NO_COLOR||dm.includes("--no-color"))&&(!!sa.FORCE_COLOR||dm.includes("--color")||aa.platform==="win32"||(aa.stdout||{}).isTTY&&sa.TERM!=="dumb"||!!sa.CI),vx=(e,t,r=e)=>n=>{let o=""+n,s=o.indexOf(t,e.length);return~s?e+Cx(o,t,r,s)+t:e+o+t},Cx=(e,t,r,n)=>{let o="",s=0;do o+=e.substring(s,n)+r,s=n+t.length,n=e.indexOf(t,s);while(~n);return o+e.substring(s)},pm=(e=Dx)=>{let t=e?vx:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};nc.exports=pm();nc.exports.createColors=pm});var qg=S((B6,Ca)=>{Ca.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;Ca.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;Ca.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var Tc=S((M6,Gg)=>{var _c=qg();Gg.exports={isSpaceSeparator(e){return typeof e=="string"&&_c.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||_c.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||_c.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}}});var Zg=S((L6,Qg)=>{var Ke=Tc(),Ic,dt,Jr,wa,yn,lr,qe,Nc,Gi;Qg.exports=function(t,r){Ic=String(t),dt="start",Jr=[],wa=0,yn=1,lr=0,qe=void 0,Nc=void 0,Gi=void 0;do qe=vP(),wP[dt]();while(qe.type!=="eof");return typeof r=="function"?kc({"":Gi},"",r):Gi};function kc(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let o=0;o<n.length;o++){let s=String(o),i=kc(n,s,r);i===void 0?delete n[s]:Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}else for(let o in n){let s=kc(n,o,r);s===void 0?delete n[o]:Object.defineProperty(n,o,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var X,W,qi,Wr,ae;function vP(){for(X="default",W="",qi=!1,Wr=1;;){ae=Yr();let e=Jg[X]();if(e)return e}}function Yr(){if(Ic[wa])return String.fromCodePoint(Ic.codePointAt(wa))}function A(){let e=Yr();return e===`
3
3
  `?(yn++,lr=0):e?lr+=e.length:lr++,e&&(wa+=e.length),e}var Jg={default(){switch(ae){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
4
4
  `:case"\r":case"\u2028":case"\u2029":A();return;case"/":A(),X="comment";return;case void 0:return A(),Pe("eof")}if(Ke.isSpaceSeparator(ae)){A();return}return Jg[dt]()},comment(){switch(ae){case"*":A(),X="multiLineComment";return;case"/":A(),X="singleLineComment";return}throw Ae(A())},multiLineComment(){switch(ae){case"*":A(),X="multiLineCommentAsterisk";return;case void 0:throw Ae(A())}A()},multiLineCommentAsterisk(){switch(ae){case"*":A();return;case"/":A(),X="default";return;case void 0:throw Ae(A())}A(),X="multiLineComment"},singleLineComment(){switch(ae){case`
5
5
  `:case"\r":case"\u2028":case"\u2029":A(),X="default";return;case void 0:return A(),Pe("eof")}A()},value(){switch(ae){case"{":case"[":return Pe("punctuator",A());case"n":return A(),qn("ull"),Pe("null",null);case"t":return A(),qn("rue"),Pe("boolean",!0);case"f":return A(),qn("alse"),Pe("boolean",!1);case"-":case"+":A()==="-"&&(Wr=-1),X="sign";return;case".":W=A(),X="decimalPointLeading";return;case"0":W=A(),X="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":W=A(),X="decimalInteger";return;case"I":return A(),qn("nfinity"),Pe("numeric",1/0);case"N":return A(),qn("aN"),Pe("numeric",NaN);case'"':case"'":qi=A()==='"',W="",X="string";return}throw Ae(A())},identifierNameStartEscape(){if(ae!=="u")throw Ae(A());A();let e=$c();switch(e){case"$":case"_":break;default:if(!Ke.isIdStartChar(e))throw Wg();break}W+=e,X="identifierName"},identifierName(){switch(ae){case"$":case"_":case"\u200C":case"\u200D":W+=A();return;case"\\":A(),X="identifierNameEscape";return}if(Ke.isIdContinueChar(ae)){W+=A();return}return Pe("identifier",W)},identifierNameEscape(){if(ae!=="u")throw Ae(A());A();let e=$c();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ke.isIdContinueChar(e))throw Wg();break}W+=e,X="identifierName"},sign(){switch(ae){case".":W=A(),X="decimalPointLeading";return;case"0":W=A(),X="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":W=A(),X="decimalInteger";return;case"I":return A(),qn("nfinity"),Pe("numeric",Wr*(1/0));case"N":return A(),qn("aN"),Pe("numeric",NaN)}throw Ae(A())},zero(){switch(ae){case".":W+=A(),X="decimalPoint";return;case"e":case"E":W+=A(),X="decimalExponent";return;case"x":case"X":W+=A(),X="hexadecimal";return}return Pe("numeric",Wr*0)},decimalInteger(){switch(ae){case".":W+=A(),X="decimalPoint";return;case"e":case"E":W+=A(),X="decimalExponent";return}if(Ke.isDigit(ae)){W+=A();return}return Pe("numeric",Wr*Number(W))},decimalPointLeading(){if(Ke.isDigit(ae)){W+=A(),X="decimalFraction";return}throw Ae(A())},decimalPoint(){switch(ae){case"e":case"E":W+=A(),X="decimalExponent";return}if(Ke.isDigit(ae)){W+=A(),X="decimalFraction";return}return Pe("numeric",Wr*Number(W))},decimalFraction(){switch(ae){case"e":case"E":W+=A(),X="decimalExponent";return}if(Ke.isDigit(ae)){W+=A();return}return Pe("numeric",Wr*Number(W))},decimalExponent(){switch(ae){case"+":case"-":W+=A(),X="decimalExponentSign";return}if(Ke.isDigit(ae)){W+=A(),X="decimalExponentInteger";return}throw Ae(A())},decimalExponentSign(){if(Ke.isDigit(ae)){W+=A(),X="decimalExponentInteger";return}throw Ae(A())},decimalExponentInteger(){if(Ke.isDigit(ae)){W+=A();return}return Pe("numeric",Wr*Number(W))},hexadecimal(){if(Ke.isHexDigit(ae)){W+=A(),X="hexadecimalInteger";return}throw Ae(A())},hexadecimalInteger(){if(Ke.isHexDigit(ae)){W+=A();return}return Pe("numeric",Wr*Number(W))},string(){switch(ae){case"\\":A(),W+=CP();return;case'"':if(qi)return A(),Pe("string",W);W+=A();return;case"'":if(!qi)return A(),Pe("string",W);W+=A();return;case`
@@ -12,27 +12,27 @@ var jw=Object.create;var Zs=Object.defineProperty;var Uw=Object.getOwnPropertyDe
12
12
  `+y+"}"}}return o.pop(),s=y,x}function h(m){if(m.length===0)return d(m,!0);let y=String.fromCodePoint(m.codePointAt(0));if(!Oc.isIdStartChar(y))return d(m,!0);for(let D=y.length;D<m.length;D++)if(!Oc.isIdContinueChar(String.fromCodePoint(m.codePointAt(D))))return d(m,!0);return m}function g(m){if(o.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");o.push(m);let y=s;s=s+u;let D=[];for(let x=0;x<m.length;x++){let F=l(String(x),m);D.push(F!==void 0?F:"null")}let w;if(D.length===0)w="[]";else if(u==="")w="["+D.join(",")+"]";else{let x=`,
13
13
  `+s,F=D.join(x);w=`[
14
14
  `+s+F+`,
15
- `+y+"]"}return o.pop(),s=y,w}}});var rh=S((U6,th)=>{var SP=Zg(),EP=eh(),PP={parse:SP,stringify:EP};th.exports=PP});var jc=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.throwUnsupportedData=Dn.throwUnknownDataType=Dn.getType=void 0;function Dh(e){return Object.prototype.toString.call(e)}Dn.getType=Dh;function ZP(e){throw new TypeError("unsupported data type: "+Dh(e))}Dn.throwUnknownDataType=ZP;function XP(e){throw new TypeError("unsupported data type: "+e)}Dn.throwUnsupportedData=XP});var Kc=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.s_to_num=et.int_str_to_s=et.num_to_s=et.big_int_to_s=et.int_to_s=et.s_to_big_int=et.s_to_int=void 0;var Qr="";for(let e=0;e<10;e++){let t=String.fromCharCode(48+e);Qr+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(65+e);Qr+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(97+e);Qr+=t}var zo=Qr.length,Vc={};for(let e=0;e<zo;e++){let t=Qr[e];Vc[t]=e}function Hc(e){let t=0,r=1;for(let n=e.length-1;n>=0;n--){let o=e[n],s=Vc[o];s*=r,t+=s,r*=zo}return t}et.s_to_int=Hc;function vh(e){let t=BigInt(0),r=BigInt(1),n=BigInt(zo);for(let o=e.length-1;o>=0;o--){let s=e[o],i=BigInt(Vc[s]);i*=r,t+=i,r*=n}return t}et.s_to_big_int=vh;function zc(e){if(e===0)return Qr[0];let t=[];for(;e!==0;){let r=e%zo,n=Qr[r];t.push(n),e-=r,e/=zo}return t.reverse().join("")}et.int_to_s=zc;function Ch(e){let t=BigInt(0),r=BigInt(zo);if(e===t)return Qr[0];let n=[];for(;e!==t;){let o=e%r,s=Qr[Number(o)];n.push(s),e/=r}return n.reverse().join("")}et.big_int_to_s=Ch;function bh(e){return e.split("").reverse().join("")}function wh(e){if(e<0)return"-"+wh(-e);let[t,r]=e.toString().split(".");if(!r)if(t.includes("e")){let[s,i]=t.split("e");t=s,r="0e"+i}else return zc(e);let n;r&&([r,n]=r.split("e")),t=Ea(t),r=bh(r),r=Ea(r);let o=t+"."+r;if(n){switch(o+=".",n[0]){case"+":n=n.slice(1);break;case"-":o+="-",n=n.slice(1);break}n=Ea(n),o+=n}return o}et.num_to_s=wh;function Ea(e){let t=+e;return t.toString()===e&&t+1!==t&&t-1!==t?zc(t):":"+Ch(BigInt(e))}et.int_str_to_s=Ea;function Uc(e){return e[0]===":"?vh(e.substring(1)).toString():Hc(e).toString()}function xh(e){if(e[0]==="-")return-xh(e.substr(1));let[t,r,n]=e.split(".");if(!r)return Hc(t);t=Uc(t),r=Uc(r),r=bh(r);let o=t+"."+r;if(n){o+="e";let s=!1;n[0]==="-"&&(s=!0,n=n.slice(1)),n=Uc(n),o+=s?-n:+n}return+o}et.s_to_num=xh});var Gc=S(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.decodeStr=tt.encodeStr=tt.decodeBool=tt.encodeBool=tt.decodeKey=tt.decodeNum=tt.encodeNum=void 0;var qc=Kc();function eA(e){return"n|"+(0,qc.num_to_s)(e)}tt.encodeNum=eA;function tA(e){return e=e.replace("n|",""),(0,qc.s_to_num)(e)}tt.decodeNum=tA;function rA(e){return typeof e=="number"?e:(0,qc.s_to_int)(e)}tt.decodeKey=rA;function nA(e){return e?"b|T":"b|F"}tt.encodeBool=nA;function oA(e){switch(e){case"b|T":return!0;case"b|F":return!1}return!!e}tt.decodeBool=oA;function iA(e){switch(e[0]+e[1]){case"b|":case"o|":case"n|":case"a|":case"s|":e="s|"+e}return e}tt.encodeStr=iA;function sA(e){return e[0]+e[1]==="s|"?e.substr(2):e}tt.decodeStr=sA});var Wc=S(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.config=void 0;Pa.config={sort_key:!1,error_on_nan:!1,error_on_infinite:!1}});var Zc=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.addValue=Kt.makeInMemoryMemory=Kt.makeInMemoryCache=Kt.makeInMemoryStore=Kt.memToValues=void 0;var Qc=Wc(),Jc=jc(),Yc=Gc(),aA=Kc();function uA(e){return e.store.toArray()}Kt.memToValues=uA;function Sh(){let e=[];return{forEach(t){for(let r=0;r<e.length;r++)if(t(e[r])==="break")return},add(t){e.push(t)},toArray(){return e}}}Kt.makeInMemoryStore=Sh;function Eh(){let e=Object.create(null),t=Object.create(null);return{getValue(r){return e[r]},getSchema(r){return t[r]},forEachValue(r){for(let[n,o]of Object.entries(e))if(r(n,o)==="break")return},forEachSchema(r){for(let[n,o]of Object.entries(t))if(r(n,o)==="break")return},setValue(r,n){e[r]=n},setSchema(r,n){t[r]=n},hasValue(r){return r in e},hasSchema(r){return r in t}}}Kt.makeInMemoryCache=Eh;function cA(){return{store:Sh(),cache:Eh(),keyCount:0}}Kt.makeInMemoryMemory=cA;function Jn(e,t){if(e.cache.hasValue(t))return e.cache.getValue(t);let r=e.keyCount++,n=(0,aA.num_to_s)(r);return e.store.add(t),e.cache.setValue(t,n),n}function lA(e,t){Qc.config.sort_key&&t.sort();let r=t.join(",");if(e.cache.hasSchema(r))return e.cache.getSchema(r);let n=Ji(e,t,void 0);return e.cache.setSchema(r,n),n}function Ji(e,t,r){if(t===null)return"";switch(typeof t){case"undefined":if(Array.isArray(r))return Ji(e,null,r);break;case"object":if(t===null)return Jn(e,null);if(Array.isArray(t)){let n="a";for(let o=0;o<t.length;o++){let s=t[o],i=s===null?"_":Ji(e,s,t);n+="|"+i}return n==="a"&&(n="a|"),Jn(e,n)}else{let n=Object.keys(t);if(n.length===0)return Jn(e,"o|");let o="o",s=lA(e,n);o+="|"+s;for(let i of n){let a=t[i],u=Ji(e,a,t);o+="|"+u}return Jn(e,o)}case"boolean":return Jn(e,(0,Yc.encodeBool)(t));case"number":return Number.isNaN(t)?(Qc.config.error_on_nan&&(0,Jc.throwUnsupportedData)("[number NaN]"),""):Number.POSITIVE_INFINITY===t||Number.NEGATIVE_INFINITY===t?(Qc.config.error_on_infinite&&(0,Jc.throwUnsupportedData)("[number Infinity]"),""):Jn(e,(0,Yc.encodeNum)(t));case"string":return Jn(e,(0,Yc.encodeStr)(t))}return(0,Jc.throwUnknownDataType)(t)}Kt.addValue=Ji});var el=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.decompress=vn.decode=vn.compress=void 0;var dA=jc(),Aa=Gc(),Xc=Zc();function pA(e){let t=(0,Xc.makeInMemoryMemory)(),r=(0,Xc.addValue)(t,e,void 0);return[(0,Xc.memToValues)(t),r]}vn.compress=pA;function fA(e,t){if(t==="o|")return{};let r={},n=t.split("|"),o=n[1],s=Yi(e,o),i=n.length;i-2===1&&!Array.isArray(s)&&(s=[s]);for(let a=2;a<i;a++){let u=s[a-2],c=n[a];c=Yi(e,c),r[u]=c}return r}function mA(e,t){if(t==="a|")return[];let r=t.split("|"),n=r.length-1,o=new Array(n);for(let s=0;s<n;s++){let i=r[s+1];i=Yi(e,i),o[s]=i}return o}function Yi(e,t){if(t===""||t==="_")return null;let r=(0,Aa.decodeKey)(t),n=e[r];if(n===null)return n;switch(typeof n){case"undefined":return n;case"number":return n;case"string":switch(n[0]+n[1]){case"b|":return(0,Aa.decodeBool)(n);case"o|":return fA(e,n);case"n|":return(0,Aa.decodeNum)(n);case"a|":return mA(e,n);default:return(0,Aa.decodeStr)(n)}}return(0,dA.throwUnknownDataType)(n)}vn.decode=Yi;function gA(e){let[t,r]=e;return Yi(t,r)}vn.decompress=gA});var Ah=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.trimUndefinedRecursively=Ko.trimUndefined=void 0;function hA(e){for(let t in e)e[t]===void 0&&delete e[t]}Ko.trimUndefined=hA;function yA(e){Ph(e,new Set)}Ko.trimUndefinedRecursively=yA;function Ph(e,t){t.add(e);for(let r in e)if(e[r]===void 0)delete e[r];else{let n=e[r];n&&typeof n=="object"&&!t.has(n)&&Ph(n,t)}}});var Th=S(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.config=rt.trimUndefinedRecursively=rt.trimUndefined=rt.addValue=rt.decode=rt.decompress=rt.compress=void 0;var Fh=el();Object.defineProperty(rt,"compress",{enumerable:!0,get:function(){return Fh.compress}});Object.defineProperty(rt,"decompress",{enumerable:!0,get:function(){return Fh.decompress}});var DA=el();Object.defineProperty(rt,"decode",{enumerable:!0,get:function(){return DA.decode}});var vA=Zc();Object.defineProperty(rt,"addValue",{enumerable:!0,get:function(){return vA.addValue}});var _h=Ah();Object.defineProperty(rt,"trimUndefined",{enumerable:!0,get:function(){return _h.trimUndefined}});Object.defineProperty(rt,"trimUndefinedRecursively",{enumerable:!0,get:function(){return _h.trimUndefinedRecursively}});var CA=Wc();Object.defineProperty(rt,"config",{enumerable:!0,get:function(){return CA.config}})});var Zh=S((bV,Qh)=>{"use strict";var Wh=J("child_process"),WA=Wh.spawn,JA=Wh.exec;Qh.exports=function(e,t,r){if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},o={};switch(n[e]=[],o[e]=1,process.platform){case"win32":JA("taskkill /pid "+e+" /T /F",r);break;case"darwin":Yh(e,n,o,function(){qh(n,t,r)});break;default:Jh(e,n,o,function(s){return WA("ps",["-o","pid","--no-headers","--ppid",s])},function(){qh(n,t,r)});break}};function qh(e,t,r){var n={};try{Object.keys(e).forEach(function(o){e[o].forEach(function(s){n[s]||(Gh(s,t),n[s]=1)}),n[o]||(Gh(o,t),n[o]=1)})}catch(o){if(r)return r(o);throw o}if(r)return r()}function Gh(e,t){try{process.kill(parseInt(e,10),t)}catch(r){if(r.code!=="ESRCH")throw r}}function Jh(e,t,r,n,o){var s=n(e),i="";s.stdout.on("data",function(c){var c=c.toString("ascii");i+=c});var a=function(u){if(delete r[e],u!=0){Object.keys(r).length==0&&o();return}i.match(/\d+/g).forEach(function(c){c=parseInt(c,10),t[e].push(c),t[c]=[],r[c]=1,Jh(c,t,r,n,o)})};s.on("close",a)}function Yh(e,t,r,n){try{let o="";try{o=execSync("pgrep -P "+e,{encoding:"utf8",timeout:2e3,maxBuffer:1024*1024})}catch(i){if(i.status!==1)throw i}delete r[e];let s=o.trim().split(`
16
- `).filter(Boolean);if(s.length===0){Object.keys(r).length===0&&n();return}s.forEach(function(i){let a=parseInt(i,10);isNaN(a)||(t[e].push(a),t[a]=[],r[a]=1,Yh(a,t,r,n))})}catch{delete r[e],Object.keys(r).length===0&&n()}}});var Oa=S(qt=>{"use strict";qt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;qt.find=(e,t)=>e.nodes.find(r=>r.type===t);qt.exceedsLimit=(e,t,r=1,n)=>n===!1||!qt.isInteger(e)||!qt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;qt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};qt.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;qt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;qt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;qt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);qt.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let s=n[o];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Ba=S((nH,oy)=>{"use strict";var ny=Oa();oy.exports=(e,t={})=>{let r=(n,o={})=>{let s=t.escapeInvalid&&ny.isInvalidBrace(o),i=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||i)&&ny.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var sy=S((oH,iy)=>{"use strict";iy.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var gy=S((iH,my)=>{"use strict";var ay=sy(),Yn=(e,t,r)=>{if(ay(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ay(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),s=String(n.shorthand),i=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+o+s+i+a;if(Yn.cache.hasOwnProperty(u))return Yn.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let d=fy(e)||fy(t),p={min:e,max:t,a:c,b:l},h=[],g=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),c<0){let m=l<0?Math.abs(l):1;g=uy(m,Math.abs(c),p,n),c=p.a=0}return l>=0&&(h=uy(c,l,p,n)),p.negatives=g,p.positives=h,p.result=tF(g,h,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&h.length+g.length>1&&(p.result=`(?:${p.result})`),Yn.cache[u]=p,p.result};function tF(e,t,r){let n=Dl(e,t,"-",!1,r)||[],o=Dl(t,e,"",!1,r)||[],s=Dl(e,t,"-?",!0,r)||[];return n.concat(s).concat(o).join("|")}function rF(e,t){let r=1,n=1,o=ly(e,r),s=new Set([t]);for(;e<=o&&o<=t;)s.add(o),r+=1,o=ly(e,r);for(o=dy(t+1,n)-1;e<o&&o<=t;)s.add(o),n+=1,o=dy(t+1,n)-1;return s=[...s],s.sort(iF),s}function nF(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=oF(e,t),o=n.length,s="",i=0;for(let a=0;a<o;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=sF(u,c,r):i++}return i&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:o}}function uy(e,t,r,n){let o=rF(e,t),s=[],i=e,a;for(let u=0;u<o.length;u++){let c=o[u],l=nF(String(i),String(c),n),d="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+py(a.count),i=c+1;continue}r.isPadded&&(d=aF(c,r,n)),l.string=d+l.pattern+py(l.count),s.push(l),i=c+1,a=l}return s}function Dl(e,t,r,n,o){let s=[];for(let i of e){let{string:a}=i;!n&&!cy(t,"string",a)&&s.push(r+a),n&&cy(t,"string",a)&&s.push(r+a)}return s}function oF(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function iF(e,t){return e>t?1:t>e?-1:0}function cy(e,t,r){return e.some(n=>n[t]===r)}function ly(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function dy(e,t){return e-e%Math.pow(10,t)}function py(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function sF(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function fy(e){return/^-?(0+)\d/.test(e)}function aF(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}Yn.cache={};Yn.clearCache=()=>Yn.cache={};my.exports=Yn});var bl=S((sH,wy)=>{"use strict";var uF=J("util"),yy=gy(),hy=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),cF=e=>t=>e===!0?Number(t):String(t),vl=e=>typeof e=="number"||typeof e=="string"&&e!=="",rs=e=>Number.isInteger(+e),Cl=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},lF=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,dF=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},La=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},pF=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",o="",s="",i;return e.positives.length&&(o=e.positives.map(a=>La(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>La(String(a),r)).join("|")})`),o&&s?i=`${o}|${s}`:i=o||s,t.wrap?`(${n}${i})`:i},Dy=(e,t,r,n)=>{if(r)return yy(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let s=String.fromCharCode(t);return`[${o}-${s}]`},vy=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return yy(e,t,r)},Cy=(...e)=>new RangeError("Invalid range arguments: "+uF.inspect(...e)),by=(e,t,r)=>{if(r.strictRanges===!0)throw Cy([e,t]);return[]},fF=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},mF=(e,t,r=1,n={})=>{let o=Number(e),s=Number(t);if(!Number.isInteger(o)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Cy([e,t]);return[]}o===0&&(o=0),s===0&&(s=0);let i=o>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=Cl(a)||Cl(u)||Cl(c),d=l?Math.max(a.length,u.length,c.length):0,p=l===!1&&lF(e,t,n)===!1,h=n.transform||cF(p);if(n.toRegex&&r===1)return Dy(La(e,d),La(t,d),!0,n);let g={negatives:[],positives:[]},m=w=>g[w<0?"negatives":"positives"].push(Math.abs(w)),y=[],D=0;for(;i?o>=s:o<=s;)n.toRegex===!0&&r>1?m(o):y.push(dF(h(o,D),d,p)),o=i?o-r:o+r,D++;return n.toRegex===!0?r>1?pF(g,n,d):vy(y,null,{wrap:!1,...n}):y},gF=(e,t,r=1,n={})=>{if(!rs(e)&&e.length>1||!rs(t)&&t.length>1)return by(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),a=s>i,u=Math.min(s,i),c=Math.max(s,i);if(n.toRegex&&r===1)return Dy(u,c,!1,n);let l=[],d=0;for(;a?s>=i:s<=i;)l.push(o(s,d)),s=a?s-r:s+r,d++;return n.toRegex===!0?vy(l,null,{wrap:!1,options:n}):l},Ma=(e,t,r,n={})=>{if(t==null&&vl(e))return[e];if(!vl(e)||!vl(t))return by(e,t,n);if(typeof r=="function")return Ma(e,t,1,{transform:r});if(hy(r))return Ma(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,rs(r)?rs(e)&&rs(t)?mF(e,t,r,o):gF(e,t,Math.max(Math.abs(r),1),o):r!=null&&!hy(r)?fF(r,o):Ma(e,t,1,r)};wy.exports=Ma});var Ey=S((aH,Sy)=>{"use strict";var hF=bl(),xy=Oa(),yF=(e,t={})=>{let r=(n,o={})=>{let s=xy.isInvalidBrace(o),i=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||i===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=xy.reduce(n.nodes),d=hF(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return l.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};Sy.exports=yF});var Fy=S((uH,Ay)=>{"use strict";var DF=bl(),Py=Ba(),Go=Oa(),Qn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Go.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let s of o)n.push(Qn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Qn(o,s,r):o+s);return Go.flatten(n)},vF=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,s={})=>{o.queue=[];let i=s,a=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,a=i.queue;if(o.invalid||o.dollar){a.push(Qn(a.pop(),Py(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(Qn(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=Go.reduce(o.nodes);if(Go.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=DF(...d,t);p.length===0&&(p=Py(o,t)),a.push(Qn(a.pop(),p)),o.nodes=[];return}let u=Go.encloseBrace(o),c=o.queue,l=o;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let d=0;d<o.nodes.length;d++){let p=o.nodes[d];if(p.type==="comma"&&o.type==="brace"){d===1&&c.push(""),c.push("");continue}if(p.type==="close"){a.push(Qn(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(Qn(c.pop(),p.value));continue}p.nodes&&n(p,o)}return c};return Go.flatten(n(e))};Ay.exports=vF});var Ty=S((cH,_y)=>{"use strict";_y.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
17
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Ny=S((lH,$y)=>{"use strict";var CF=Ba(),{MAX_LENGTH:Ry,CHAR_BACKSLASH:wl,CHAR_BACKTICK:bF,CHAR_COMMA:wF,CHAR_DOT:xF,CHAR_LEFT_PARENTHESES:SF,CHAR_RIGHT_PARENTHESES:EF,CHAR_LEFT_CURLY_BRACE:PF,CHAR_RIGHT_CURLY_BRACE:AF,CHAR_LEFT_SQUARE_BRACKET:Iy,CHAR_RIGHT_SQUARE_BRACKET:ky,CHAR_DOUBLE_QUOTE:FF,CHAR_SINGLE_QUOTE:_F,CHAR_NO_BREAK_SPACE:TF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:RF}=Ty(),IF=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ry,r.maxLength):Ry;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},s=[o],i=o,a=o,u=0,c=e.length,l=0,d=0,p,h=()=>e[l++],g=m=>{if(m.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&m.type==="text"){a.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=a,a=m,m};for(g({type:"bos"});l<c;)if(i=s[s.length-1],p=h(),!(p===RF||p===TF)){if(p===wl){g({type:"text",value:(t.keepEscaping?p:"")+h()});continue}if(p===ky){g({type:"text",value:"\\"+p});continue}if(p===Iy){u++;let m;for(;l<c&&(m=h());){if(p+=m,m===Iy){u++;continue}if(m===wl){p+=h();continue}if(m===ky&&(u--,u===0))break}g({type:"text",value:p});continue}if(p===SF){i=g({type:"paren",nodes:[]}),s.push(i),g({type:"text",value:p});continue}if(p===EF){if(i.type!=="paren"){g({type:"text",value:p});continue}i=s.pop(),g({type:"text",value:p}),i=s[s.length-1];continue}if(p===FF||p===_F||p===bF){let m=p,y;for(t.keepQuotes!==!0&&(p="");l<c&&(y=h());){if(y===wl){p+=y+h();continue}if(y===m){t.keepQuotes===!0&&(p+=y);break}p+=y}g({type:"text",value:p});continue}if(p===PF){d++;let y={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||i.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};i=g(y),s.push(i),g({type:"open",value:p});continue}if(p===AF){if(i.type!=="brace"){g({type:"text",value:p});continue}let m="close";i=s.pop(),i.close=!0,g({type:m,value:p}),d--,i=s[s.length-1];continue}if(p===wF&&d>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:CF(i)}]}g({type:"comma",value:p}),i.commas++;continue}if(p===xF&&d>0&&i.commas===0){let m=i.nodes;if(d===0||m.length===0){g({type:"text",value:p});continue}if(a.type==="dot"){if(i.range=[],a.value+=p,a.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,a.type="text";continue}i.ranges++,i.args=[];continue}if(a.type==="range"){m.pop();let y=m[m.length-1];y.value+=a.value+p,a=y,i.ranges--;continue}g({type:"dot",value:p});continue}g({type:"text",value:p})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let m=s[s.length-1],y=m.nodes.indexOf(i);m.nodes.splice(y,1,...i.nodes)}while(s.length>0);return g({type:"eos"}),o};$y.exports=IF});var My=S((dH,By)=>{"use strict";var Oy=Ba(),kF=Ey(),$F=Fy(),NF=Ny(),$t=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=$t.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat($t.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};$t.parse=(e,t={})=>NF(e,t);$t.stringify=(e,t={})=>Oy(typeof e=="string"?$t.parse(e,t):e,t);$t.compile=(e,t={})=>(typeof e=="string"&&(e=$t.parse(e,t)),kF(e,t));$t.expand=(e,t={})=>{typeof e=="string"&&(e=$t.parse(e,t));let r=$F(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};$t.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?$t.compile(e,t):$t.expand(e,t);By.exports=$t});var ns=S((pH,Hy)=>{"use strict";var OF=J("path"),kr="\\\\/",Ly=`[^${kr}]`,en="\\.",BF="\\+",MF="\\?",ja="\\/",LF="(?=.)",jy="[^/]",xl=`(?:${ja}|$)`,Uy=`(?:^|${ja})`,Sl=`${en}{1,2}${xl}`,jF=`(?!${en})`,UF=`(?!${Uy}${Sl})`,VF=`(?!${en}{0,1}${xl})`,HF=`(?!${Sl})`,zF=`[^.${ja}]`,KF=`${jy}*?`,Vy={DOT_LITERAL:en,PLUS_LITERAL:BF,QMARK_LITERAL:MF,SLASH_LITERAL:ja,ONE_CHAR:LF,QMARK:jy,END_ANCHOR:xl,DOTS_SLASH:Sl,NO_DOT:jF,NO_DOTS:UF,NO_DOT_SLASH:VF,NO_DOTS_SLASH:HF,QMARK_NO_DOT:zF,STAR:KF,START_ANCHOR:Uy},qF={...Vy,SLASH_LITERAL:`[${kr}]`,QMARK:Ly,STAR:`${Ly}*?`,DOTS_SLASH:`${en}{1,2}(?:[${kr}]|$)`,NO_DOT:`(?!${en})`,NO_DOTS:`(?!(?:^|[${kr}])${en}{1,2}(?:[${kr}]|$))`,NO_DOT_SLASH:`(?!${en}{0,1}(?:[${kr}]|$))`,NO_DOTS_SLASH:`(?!${en}{1,2}(?:[${kr}]|$))`,QMARK_NO_DOT:`[^.${kr}]`,START_ANCHOR:`(?:^|[${kr}])`,END_ANCHOR:`(?:[${kr}]|$)`},GF={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Hy.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:GF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:OF.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?qF:Vy}}});var os=S(vt=>{"use strict";var WF=J("path"),JF=process.platform==="win32",{REGEX_BACKSLASH:YF,REGEX_REMOVE_BACKSLASH:QF,REGEX_SPECIAL_CHARS:ZF,REGEX_SPECIAL_CHARS_GLOBAL:XF}=ns();vt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);vt.hasRegexChars=e=>ZF.test(e);vt.isRegexChar=e=>e.length===1&&vt.hasRegexChars(e);vt.escapeRegex=e=>e.replace(XF,"\\$1");vt.toPosixSlashes=e=>e.replace(YF,"/");vt.removeBackslashes=e=>e.replace(QF,t=>t==="\\"?"":t);vt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};vt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:JF===!0||WF.sep==="\\";vt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?vt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};vt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};vt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",s=`${n}(?:${e})${o}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Qy=S((mH,Yy)=>{"use strict";var zy=os(),{CHAR_ASTERISK:El,CHAR_AT:e_,CHAR_BACKWARD_SLASH:is,CHAR_COMMA:t_,CHAR_DOT:Pl,CHAR_EXCLAMATION_MARK:Al,CHAR_FORWARD_SLASH:Jy,CHAR_LEFT_CURLY_BRACE:Fl,CHAR_LEFT_PARENTHESES:_l,CHAR_LEFT_SQUARE_BRACKET:r_,CHAR_PLUS:n_,CHAR_QUESTION_MARK:Ky,CHAR_RIGHT_CURLY_BRACE:o_,CHAR_RIGHT_PARENTHESES:qy,CHAR_RIGHT_SQUARE_BRACKET:i_}=ns(),Gy=e=>e===Jy||e===is,Wy=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},s_=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,s=[],i=[],a=[],u=e,c=-1,l=0,d=0,p=!1,h=!1,g=!1,m=!1,y=!1,D=!1,w=!1,x=!1,F=!1,P=!1,_=0,I,N,k={value:"",depth:0,isGlob:!1},T=()=>c>=n,v=()=>u.charCodeAt(c+1),j=()=>(I=N,u.charCodeAt(++c));for(;c<n;){N=j();let Ie;if(N===is){w=k.backslashes=!0,N=j(),N===Fl&&(D=!0);continue}if(D===!0||N===Fl){for(_++;T()!==!0&&(N=j());){if(N===is){w=k.backslashes=!0,j();continue}if(N===Fl){_++;continue}if(D!==!0&&N===Pl&&(N=j())===Pl){if(p=k.isBrace=!0,g=k.isGlob=!0,P=!0,o===!0)continue;break}if(D!==!0&&N===t_){if(p=k.isBrace=!0,g=k.isGlob=!0,P=!0,o===!0)continue;break}if(N===o_&&(_--,_===0)){D=!1,p=k.isBrace=!0,P=!0;break}}if(o===!0)continue;break}if(N===Jy){if(s.push(c),i.push(k),k={value:"",depth:0,isGlob:!1},P===!0)continue;if(I===Pl&&c===l+1){l+=2;continue}d=c+1;continue}if(r.noext!==!0&&(N===n_||N===e_||N===El||N===Ky||N===Al)===!0&&v()===_l){if(g=k.isGlob=!0,m=k.isExtglob=!0,P=!0,N===Al&&c===l&&(F=!0),o===!0){for(;T()!==!0&&(N=j());){if(N===is){w=k.backslashes=!0,N=j();continue}if(N===qy){g=k.isGlob=!0,P=!0;break}}continue}break}if(N===El){if(I===El&&(y=k.isGlobstar=!0),g=k.isGlob=!0,P=!0,o===!0)continue;break}if(N===Ky){if(g=k.isGlob=!0,P=!0,o===!0)continue;break}if(N===r_){for(;T()!==!0&&(Ie=j());){if(Ie===is){w=k.backslashes=!0,j();continue}if(Ie===i_){h=k.isBracket=!0,g=k.isGlob=!0,P=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&N===Al&&c===l){x=k.negated=!0,l++;continue}if(r.noparen!==!0&&N===_l){if(g=k.isGlob=!0,o===!0){for(;T()!==!0&&(N=j());){if(N===_l){w=k.backslashes=!0,N=j();continue}if(N===qy){P=!0;break}}continue}break}if(g===!0){if(P=!0,o===!0)continue;break}}r.noext===!0&&(m=!1,g=!1);let H=u,q="",b="";l>0&&(q=u.slice(0,l),u=u.slice(l),d-=l),H&&g===!0&&d>0?(H=u.slice(0,d),b=u.slice(d)):g===!0?(H="",b=u):H=u,H&&H!==""&&H!=="/"&&H!==u&&Gy(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),r.unescape===!0&&(b&&(b=zy.removeBackslashes(b)),H&&w===!0&&(H=zy.removeBackslashes(H)));let E={prefix:q,input:e,start:l,base:H,glob:b,isBrace:p,isBracket:h,isGlob:g,isExtglob:m,isGlobstar:y,negated:x,negatedExtglob:F};if(r.tokens===!0&&(E.maxDepth=0,Gy(N)||i.push(k),E.tokens=i),r.parts===!0||r.tokens===!0){let Ie;for(let he=0;he<s.length;he++){let yr=Ie?Ie+1:l,Dr=s[he],_t=e.slice(yr,Dr);r.tokens&&(he===0&&l!==0?(i[he].isPrefix=!0,i[he].value=q):i[he].value=_t,Wy(i[he]),E.maxDepth+=i[he].depth),(he!==0||_t!=="")&&a.push(_t),Ie=Dr}if(Ie&&Ie+1<e.length){let he=e.slice(Ie+1);a.push(he),r.tokens&&(i[i.length-1].value=he,Wy(i[i.length-1]),E.maxDepth+=i[i.length-1].depth)}E.slashes=s,E.parts=a}return E};Yy.exports=s_});var eD=S((gH,Xy)=>{"use strict";var Ua=ns(),Nt=os(),{MAX_LENGTH:Va,POSIX_REGEX_SOURCE:a_,REGEX_NON_SPECIAL_CHARS:u_,REGEX_SPECIAL_CHARS_BACKREF:c_,REPLACEMENTS:Zy}=Ua,l_=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>Nt.escapeRegex(o)).join("..")}return r},Wo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Tl=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Zy[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Va,r.maxLength):Va,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},i=[s],a=r.capture?"":"?:",u=Nt.isWindows(t),c=Ua.globChars(u),l=Ua.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:D,NO_DOTS_SLASH:w,QMARK:x,QMARK_NO_DOT:F,STAR:P,START_ANCHOR:_}=c,I=M=>`(${a}(?:(?!${_}${M.dot?m:d}).)*?)`,N=r.dot?"":y,k=r.dot?x:F,T=r.bash===!0?I(r):P;r.capture&&(T=`(${T})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let v={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Nt.removePrefix(e,v),o=e.length;let j=[],H=[],q=[],b=s,E,Ie=()=>v.index===o-1,he=v.peek=(M=1)=>e[v.index+M],yr=v.advance=()=>e[++v.index]||"",Dr=()=>e.slice(v.index+1),_t=(M="",Ee=0)=>{v.consumed+=M,v.index+=Ee},Ws=M=>{v.output+=M.output!=null?M.output:M.value,_t(M.value)},Mw=()=>{let M=1;for(;he()==="!"&&(he(2)!=="("||he(3)==="?");)yr(),v.start++,M++;return M%2===0?!1:(v.negated=!0,v.start++,!0)},Js=M=>{v[M]++,q.push(M)},Bn=M=>{v[M]--,q.pop()},se=M=>{if(b.type==="globstar"){let Ee=v.braces>0&&(M.type==="comma"||M.type==="brace"),$=M.extglob===!0||j.length&&(M.type==="pipe"||M.type==="paren");M.type!=="slash"&&M.type!=="paren"&&!Ee&&!$&&(v.output=v.output.slice(0,-b.output.length),b.type="star",b.value="*",b.output=T,v.output+=b.output)}if(j.length&&M.type!=="paren"&&(j[j.length-1].inner+=M.value),(M.value||M.output)&&Ws(M),b&&b.type==="text"&&M.type==="text"){b.value+=M.value,b.output=(b.output||"")+M.value;return}M.prev=b,i.push(M),b=M},Ys=(M,Ee)=>{let $={...l[Ee],conditions:1,inner:""};$.prev=b,$.parens=v.parens,$.output=v.output;let ne=(r.capture?"(":"")+$.open;Js("parens"),se({type:M,value:Ee,output:v.output?"":g}),se({type:"paren",extglob:!0,value:yr(),output:ne}),j.push($)},Lw=M=>{let Ee=M.close+(r.capture?")":""),$;if(M.type==="negate"){let ne=T;if(M.inner&&M.inner.length>1&&M.inner.includes("/")&&(ne=I(r)),(ne!==T||Ie()||/^\)+$/.test(Dr()))&&(Ee=M.close=`)$))${ne}`),M.inner.includes("*")&&($=Dr())&&/^\.[^\\/.]+$/.test($)){let ke=Tl($,{...t,fastpaths:!1}).output;Ee=M.close=`)${ke})${ne})`}M.prev.type==="bos"&&(v.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:E,output:Ee}),Bn("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let M=!1,Ee=e.replace(c_,($,ne,ke,ut,je,Gu)=>ut==="\\"?(M=!0,$):ut==="?"?ne?ne+ut+(je?x.repeat(je.length):""):Gu===0?k+(je?x.repeat(je.length):""):x.repeat(ke.length):ut==="."?d.repeat(ke.length):ut==="*"?ne?ne+ut+(je?T:""):T:ne?$:`\\${$}`);return M===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),Ee===e&&r.contains===!0?(v.output=e,v):(v.output=Nt.wrapOutput(Ee,v,t),v)}for(;!Ie();){if(E=yr(),E==="\0")continue;if(E==="\\"){let $=he();if($==="/"&&r.bash!==!0||$==="."||$===";")continue;if(!$){E+="\\",se({type:"text",value:E});continue}let ne=/^\\+/.exec(Dr()),ke=0;if(ne&&ne[0].length>2&&(ke=ne[0].length,v.index+=ke,ke%2!==0&&(E+="\\")),r.unescape===!0?E=yr():E+=yr(),v.brackets===0){se({type:"text",value:E});continue}}if(v.brackets>0&&(E!=="]"||b.value==="["||b.value==="[^")){if(r.posix!==!1&&E===":"){let $=b.value.slice(1);if($.includes("[")&&(b.posix=!0,$.includes(":"))){let ne=b.value.lastIndexOf("["),ke=b.value.slice(0,ne),ut=b.value.slice(ne+2),je=a_[ut];if(je){b.value=ke+je,v.backtrack=!0,yr(),!s.output&&i.indexOf(b)===1&&(s.output=g);continue}}}(E==="["&&he()!==":"||E==="-"&&he()==="]")&&(E=`\\${E}`),E==="]"&&(b.value==="["||b.value==="[^")&&(E=`\\${E}`),r.posix===!0&&E==="!"&&b.value==="["&&(E="^"),b.value+=E,Ws({value:E});continue}if(v.quotes===1&&E!=='"'){E=Nt.escapeRegex(E),b.value+=E,Ws({value:E});continue}if(E==='"'){v.quotes=v.quotes===1?0:1,r.keepQuotes===!0&&se({type:"text",value:E});continue}if(E==="("){Js("parens"),se({type:"paren",value:E});continue}if(E===")"){if(v.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wo("opening","("));let $=j[j.length-1];if($&&v.parens===$.parens+1){Lw(j.pop());continue}se({type:"paren",value:E,output:v.parens?")":"\\)"}),Bn("parens");continue}if(E==="["){if(r.nobracket===!0||!Dr().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wo("closing","]"));E=`\\${E}`}else Js("brackets");se({type:"bracket",value:E});continue}if(E==="]"){if(r.nobracket===!0||b&&b.type==="bracket"&&b.value.length===1){se({type:"text",value:E,output:`\\${E}`});continue}if(v.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wo("opening","["));se({type:"text",value:E,output:`\\${E}`});continue}Bn("brackets");let $=b.value.slice(1);if(b.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(E=`/${E}`),b.value+=E,Ws({value:E}),r.literalBrackets===!1||Nt.hasRegexChars($))continue;let ne=Nt.escapeRegex(b.value);if(v.output=v.output.slice(0,-b.value.length),r.literalBrackets===!0){v.output+=ne,b.value=ne;continue}b.value=`(${a}${ne}|${b.value})`,v.output+=b.value;continue}if(E==="{"&&r.nobrace!==!0){Js("braces");let $={type:"brace",value:E,output:"(",outputIndex:v.output.length,tokensIndex:v.tokens.length};H.push($),se($);continue}if(E==="}"){let $=H[H.length-1];if(r.nobrace===!0||!$){se({type:"text",value:E,output:E});continue}let ne=")";if($.dots===!0){let ke=i.slice(),ut=[];for(let je=ke.length-1;je>=0&&(i.pop(),ke[je].type!=="brace");je--)ke[je].type!=="dots"&&ut.unshift(ke[je].value);ne=l_(ut,r),v.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let ke=v.output.slice(0,$.outputIndex),ut=v.tokens.slice($.tokensIndex);$.value=$.output="\\{",E=ne="\\}",v.output=ke;for(let je of ut)v.output+=je.output||je.value}se({type:"brace",value:E,output:ne}),Bn("braces"),H.pop();continue}if(E==="|"){j.length>0&&j[j.length-1].conditions++,se({type:"text",value:E});continue}if(E===","){let $=E,ne=H[H.length-1];ne&&q[q.length-1]==="braces"&&(ne.comma=!0,$="|"),se({type:"comma",value:E,output:$});continue}if(E==="/"){if(b.type==="dot"&&v.index===v.start+1){v.start=v.index+1,v.consumed="",v.output="",i.pop(),b=s;continue}se({type:"slash",value:E,output:h});continue}if(E==="."){if(v.braces>0&&b.type==="dot"){b.value==="."&&(b.output=d);let $=H[H.length-1];b.type="dots",b.output+=E,b.value+=E,$.dots=!0;continue}if(v.braces+v.parens===0&&b.type!=="bos"&&b.type!=="slash"){se({type:"text",value:E,output:d});continue}se({type:"dot",value:E,output:d});continue}if(E==="?"){if(!(b&&b.value==="(")&&r.noextglob!==!0&&he()==="("&&he(2)!=="?"){Ys("qmark",E);continue}if(b&&b.type==="paren"){let ne=he(),ke=E;if(ne==="<"&&!Nt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(b.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test(Dr()))&&(ke=`\\${E}`),se({type:"text",value:E,output:ke});continue}if(r.dot!==!0&&(b.type==="slash"||b.type==="bos")){se({type:"qmark",value:E,output:F});continue}se({type:"qmark",value:E,output:x});continue}if(E==="!"){if(r.noextglob!==!0&&he()==="("&&(he(2)!=="?"||!/[!=<:]/.test(he(3)))){Ys("negate",E);continue}if(r.nonegate!==!0&&v.index===0){Mw();continue}}if(E==="+"){if(r.noextglob!==!0&&he()==="("&&he(2)!=="?"){Ys("plus",E);continue}if(b&&b.value==="("||r.regex===!1){se({type:"plus",value:E,output:p});continue}if(b&&(b.type==="bracket"||b.type==="paren"||b.type==="brace")||v.parens>0){se({type:"plus",value:E});continue}se({type:"plus",value:p});continue}if(E==="@"){if(r.noextglob!==!0&&he()==="("&&he(2)!=="?"){se({type:"at",extglob:!0,value:E,output:""});continue}se({type:"text",value:E});continue}if(E!=="*"){(E==="$"||E==="^")&&(E=`\\${E}`);let $=u_.exec(Dr());$&&(E+=$[0],v.index+=$[0].length),se({type:"text",value:E});continue}if(b&&(b.type==="globstar"||b.star===!0)){b.type="star",b.star=!0,b.value+=E,b.output=T,v.backtrack=!0,v.globstar=!0,_t(E);continue}let M=Dr();if(r.noextglob!==!0&&/^\([^?]/.test(M)){Ys("star",E);continue}if(b.type==="star"){if(r.noglobstar===!0){_t(E);continue}let $=b.prev,ne=$.prev,ke=$.type==="slash"||$.type==="bos",ut=ne&&(ne.type==="star"||ne.type==="globstar");if(r.bash===!0&&(!ke||M[0]&&M[0]!=="/")){se({type:"star",value:E,output:""});continue}let je=v.braces>0&&($.type==="comma"||$.type==="brace"),Gu=j.length&&($.type==="pipe"||$.type==="paren");if(!ke&&$.type!=="paren"&&!je&&!Gu){se({type:"star",value:E,output:""});continue}for(;M.slice(0,3)==="/**";){let Qs=e[v.index+4];if(Qs&&Qs!=="/")break;M=M.slice(3),_t("/**",3)}if($.type==="bos"&&Ie()){b.type="globstar",b.value+=E,b.output=I(r),v.output=b.output,v.globstar=!0,_t(E);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!ut&&Ie()){v.output=v.output.slice(0,-($.output+b.output).length),$.output=`(?:${$.output}`,b.type="globstar",b.output=I(r)+(r.strictSlashes?")":"|$)"),b.value+=E,v.globstar=!0,v.output+=$.output+b.output,_t(E);continue}if($.type==="slash"&&$.prev.type!=="bos"&&M[0]==="/"){let Qs=M[1]!==void 0?"|$":"";v.output=v.output.slice(0,-($.output+b.output).length),$.output=`(?:${$.output}`,b.type="globstar",b.output=`${I(r)}${h}|${h}${Qs})`,b.value+=E,v.output+=$.output+b.output,v.globstar=!0,_t(E+yr()),se({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&M[0]==="/"){b.type="globstar",b.value+=E,b.output=`(?:^|${h}|${I(r)}${h})`,v.output=b.output,v.globstar=!0,_t(E+yr()),se({type:"slash",value:"/",output:""});continue}v.output=v.output.slice(0,-b.output.length),b.type="globstar",b.output=I(r),b.value+=E,v.output+=b.output,v.globstar=!0,_t(E);continue}let Ee={type:"star",value:E,output:T};if(r.bash===!0){Ee.output=".*?",(b.type==="bos"||b.type==="slash")&&(Ee.output=N+Ee.output),se(Ee);continue}if(b&&(b.type==="bracket"||b.type==="paren")&&r.regex===!0){Ee.output=E,se(Ee);continue}(v.index===v.start||b.type==="slash"||b.type==="dot")&&(b.type==="dot"?(v.output+=D,b.output+=D):r.dot===!0?(v.output+=w,b.output+=w):(v.output+=N,b.output+=N),he()!=="*"&&(v.output+=g,b.output+=g)),se(Ee)}for(;v.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wo("closing","]"));v.output=Nt.escapeLast(v.output,"["),Bn("brackets")}for(;v.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wo("closing",")"));v.output=Nt.escapeLast(v.output,"("),Bn("parens")}for(;v.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wo("closing","}"));v.output=Nt.escapeLast(v.output,"{"),Bn("braces")}if(r.strictSlashes!==!0&&(b.type==="star"||b.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${h}?`}),v.backtrack===!0){v.output="";for(let M of v.tokens)v.output+=M.output!=null?M.output:M.value,M.suffix&&(v.output+=M.suffix)}return v};Tl.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Va,r.maxLength):Va,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Zy[e]||e;let s=Nt.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:h,START_ANCHOR:g}=Ua.globChars(s),m=r.dot?d:l,y=r.dot?p:l,D=r.capture?"":"?:",w={negated:!1,prefix:""},x=r.bash===!0?".*?":h;r.capture&&(x=`(${x})`);let F=N=>N.noglobstar===!0?x:`(${D}(?:(?!${g}${N.dot?c:i}).)*?)`,P=N=>{switch(N){case"*":return`${m}${u}${x}`;case".*":return`${i}${u}${x}`;case"*.*":return`${m}${x}${i}${u}${x}`;case"*/*":return`${m}${x}${a}${u}${y}${x}`;case"**":return m+F(r);case"**/*":return`(?:${m}${F(r)}${a})?${y}${u}${x}`;case"**/*.*":return`(?:${m}${F(r)}${a})?${y}${x}${i}${u}${x}`;case"**/.*":return`(?:${m}${F(r)}${a})?${i}${u}${x}`;default:{let k=/^(.*?)\.(\w+)$/.exec(N);if(!k)return;let T=P(k[1]);return T?T+i+k[2]:void 0}}},_=Nt.removePrefix(e,w),I=P(_);return I&&r.strictSlashes!==!0&&(I+=`${a}?`),I};Xy.exports=Tl});var rD=S((hH,tD)=>{"use strict";var d_=J("path"),p_=Qy(),Rl=eD(),Il=os(),f_=ns(),m_=e=>e&&typeof e=="object"&&!Array.isArray(e),Be=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>Be(p,t,r));return p=>{for(let h of l){let g=h(p);if(g)return g}return!1}}let n=m_(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},s=Il.isWindows(t),i=n?Be.compileRe(e,t):Be.makeRe(e,t,!1,!0),a=i.state;delete i.state;let u=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=Be(o.ignore,l,r)}let c=(l,d=!1)=>{let{isMatch:p,match:h,output:g}=Be.test(l,i,t,{glob:e,posix:s}),m={glob:e,state:a,regex:i,posix:s,input:l,output:g,match:h,isMatch:p};return typeof o.onResult=="function"&&o.onResult(m),p===!1?(m.isMatch=!1,d?m:!1):u(l)?(typeof o.onIgnore=="function"&&o.onIgnore(m),m.isMatch=!1,d?m:!1):(typeof o.onMatch=="function"&&o.onMatch(m),d?m:!0)};return r&&(c.state=a),c};Be.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},i=s.format||(o?Il.toPosixSlashes:null),a=e===n,u=a&&i?i(e):e;return a===!1&&(u=i?i(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Be.matchBase(e,t,r,o):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Be.matchBase=(e,t,r,n=Il.isWindows(r))=>(t instanceof RegExp?t:Be.makeRe(t,r)).test(d_.basename(e));Be.isMatch=(e,t,r)=>Be(t,r)(e);Be.parse=(e,t)=>Array.isArray(e)?e.map(r=>Be.parse(r,t)):Rl(e,{...t,fastpaths:!1});Be.scan=(e,t)=>p_(e,t);Be.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},s=o.contains?"":"^",i=o.contains?"":"$",a=`${s}(?:${e.output})${i}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Be.toRegex(a,t);return n===!0&&(u.state=e),u};Be.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Rl.fastpaths(e,t)),o.output||(o=Rl(e,t)),Be.compileRe(o,t,r,n)};Be.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Be.constants=f_;tD.exports=Be});var oD=S((yH,nD)=>{"use strict";nD.exports=rD()});var $l=S((DH,cD)=>{"use strict";var sD=J("util"),aD=My(),$r=oD(),kl=os(),iD=e=>e===""||e==="./",uD=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Fe=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,s=new Set,i=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let d=$r(String(t[l]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&i++;for(let h of e){let g=d(h,!0);(p?!g.isMatch:g.isMatch)&&(p?n.add(g.output):(n.delete(g.output),o.add(g.output)))}}let c=(i===t.length?[...s]:[...o]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};Fe.match=Fe;Fe.matcher=(e,t)=>$r(e,t);Fe.isMatch=(e,t,r)=>$r(t,r)(e);Fe.any=Fe.isMatch;Fe.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],s=a=>{r.onResult&&r.onResult(a),o.push(a.output)},i=new Set(Fe(e,t,{...r,onResult:s}));for(let a of o)i.has(a)||n.add(a);return[...n]};Fe.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sD.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Fe.contains(e,n,r));if(typeof t=="string"){if(iD(e)||iD(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Fe.isMatch(e,t,{...r,contains:!0})};Fe.matchKeys=(e,t,r)=>{if(!kl.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Fe(Object.keys(e),t,r),o={};for(let s of n)o[s]=e[s];return o};Fe.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let s=$r(String(o),r);if(n.some(i=>s(i)))return!0}return!1};Fe.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let s=$r(String(o),r);if(!n.every(i=>s(i)))return!1}return!0};Fe.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sD.inspect(e)}"`);return[].concat(t).every(n=>$r(n,r)(e))};Fe.capture=(e,t,r)=>{let n=kl.isWindows(r),s=$r.makeRe(String(e),{...r,capture:!0}).exec(n?kl.toPosixSlashes(t):t);if(s)return s.slice(1).map(i=>i===void 0?"":i)};Fe.makeRe=(...e)=>$r.makeRe(...e);Fe.scan=(...e)=>$r.scan(...e);Fe.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of aD(String(n),t))r.push($r.parse(o,t));return r};Fe.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!uD(e)?[e]:aD(e,t)};Fe.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Fe.braces(e,{...t,expand:!0})};Fe.hasBraces=uD;cD.exports=Fe});var dD=S((kH,lD)=>{var Jo=1e3,Yo=Jo*60,Qo=Yo*60,Zn=Qo*24,D_=Zn*7,v_=Zn*365.25;lD.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return C_(e);if(r==="number"&&isFinite(e))return t.long?w_(e):b_(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C_(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*v_;case"weeks":case"week":case"w":return r*D_;case"days":case"day":case"d":return r*Zn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Qo;case"minutes":case"minute":case"mins":case"min":case"m":return r*Yo;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function b_(e){var t=Math.abs(e);return t>=Zn?Math.round(e/Zn)+"d":t>=Qo?Math.round(e/Qo)+"h":t>=Yo?Math.round(e/Yo)+"m":t>=Jo?Math.round(e/Jo)+"s":e+"ms"}function w_(e){var t=Math.abs(e);return t>=Zn?Ha(e,t,Zn,"day"):t>=Qo?Ha(e,t,Qo,"hour"):t>=Yo?Ha(e,t,Yo,"minute"):t>=Jo?Ha(e,t,Jo,"second"):e+" ms"}function Ha(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Nl=S(($H,pD)=>{function x_(e){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=a,r.humanize=dD(),r.destroy=c,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let d=0;for(let p=0;p<l.length;p++)d=(d<<5)-d+l.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(l){let d,p=null,h,g;function m(...y){if(!m.enabled)return;let D=m,w=Number(new Date),x=w-(d||w);D.diff=x,D.prev=d,D.curr=w,d=w,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let F=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(_,I)=>{if(_==="%%")return"%";F++;let N=r.formatters[I];if(typeof N=="function"){let k=y[F];_=N.call(D,k),y.splice(F,1),F--}return _}),r.formatArgs.call(D,y),(D.log||r.log).apply(D,y)}return m.namespace=l,m.useColors=r.useColors(),m.color=r.selectColor(l),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(l)),g),set:y=>{p=y}}),typeof r.init=="function"&&r.init(m),m}function n(l,d){let p=r(this.namespace+(typeof d>"u"?":":d)+l);return p.log=this.log,p}function o(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let d=(typeof l=="string"?l:"").trim().replace(" ",",").split(",").filter(Boolean);for(let p of d)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(l,d){let p=0,h=0,g=-1,m=0;for(;p<l.length;)if(h<d.length&&(d[h]===l[p]||d[h]==="*"))d[h]==="*"?(g=h,m=p,h++):(p++,h++);else if(g!==-1)h=g+1,m++,p=m;else return!1;for(;h<d.length&&d[h]==="*";)h++;return h===d.length}function i(){let l=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),l}function a(l){for(let d of r.skips)if(s(l,d))return!1;for(let d of r.names)if(s(l,d))return!0;return!1}function u(l){return l instanceof Error?l.stack||l.message:l}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}pD.exports=x_});var fD=S((Ot,za)=>{Ot.formatArgs=E_;Ot.save=P_;Ot.load=A_;Ot.useColors=S_;Ot.storage=F_();Ot.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ot.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S_(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function E_(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+za.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ot.log=console.debug||console.log||(()=>{});function P_(e){try{e?Ot.storage.setItem("debug",e):Ot.storage.removeItem("debug")}catch{}}function A_(){let e;try{e=Ot.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function F_(){try{return localStorage}catch{}}za.exports=Nl()(Ot);var{formatters:__}=za.exports;__.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var gD=S((NH,mD)=>{"use strict";mD.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var DD=S((OH,yD)=>{"use strict";var T_=J("os"),hD=J("tty"),Gt=gD(),{env:Ge}=process,xn;Gt("no-color")||Gt("no-colors")||Gt("color=false")||Gt("color=never")?xn=0:(Gt("color")||Gt("colors")||Gt("color=true")||Gt("color=always"))&&(xn=1);"FORCE_COLOR"in Ge&&(Ge.FORCE_COLOR==="true"?xn=1:Ge.FORCE_COLOR==="false"?xn=0:xn=Ge.FORCE_COLOR.length===0?1:Math.min(parseInt(Ge.FORCE_COLOR,10),3));function Ol(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Bl(e,t){if(xn===0)return 0;if(Gt("color=16m")||Gt("color=full")||Gt("color=truecolor"))return 3;if(Gt("color=256"))return 2;if(e&&!t&&xn===void 0)return 0;let r=xn||0;if(Ge.TERM==="dumb")return r;if(process.platform==="win32"){let n=T_.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ge)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ge)||Ge.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ge)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ge.TEAMCITY_VERSION)?1:0;if(Ge.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ge){let n=parseInt((Ge.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ge.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ge.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ge.TERM)||"COLORTERM"in Ge?1:r}function R_(e){let t=Bl(e,e&&e.isTTY);return Ol(t)}yD.exports={supportsColor:R_,stdout:Ol(Bl(!0,hD.isatty(1))),stderr:Ol(Bl(!0,hD.isatty(2)))}});var CD=S((We,qa)=>{var I_=J("tty"),Ka=J("util");We.init=L_;We.log=O_;We.formatArgs=$_;We.save=B_;We.load=M_;We.useColors=k_;We.destroy=Ka.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");We.colors=[6,2,3,4,5,1];try{let e=DD();e&&(e.stderr||e).level>=2&&(We.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}We.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function k_(){return"colors"in We.inspectOpts?!!We.inspectOpts.colors:I_.isatty(process.stderr.fd)}function $_(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
15
+ `+y+"]"}return o.pop(),s=y,w}}});var rh=S((U6,th)=>{var SP=Zg(),EP=eh(),PP={parse:SP,stringify:EP};th.exports=PP});var jc=S(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.throwUnsupportedData=Dn.throwUnknownDataType=Dn.getType=void 0;function Dh(e){return Object.prototype.toString.call(e)}Dn.getType=Dh;function ZP(e){throw new TypeError("unsupported data type: "+Dh(e))}Dn.throwUnknownDataType=ZP;function XP(e){throw new TypeError("unsupported data type: "+e)}Dn.throwUnsupportedData=XP});var Kc=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.s_to_num=et.int_str_to_s=et.num_to_s=et.big_int_to_s=et.int_to_s=et.s_to_big_int=et.s_to_int=void 0;var Qr="";for(let e=0;e<10;e++){let t=String.fromCharCode(48+e);Qr+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(65+e);Qr+=t}for(let e=0;e<26;e++){let t=String.fromCharCode(97+e);Qr+=t}var zo=Qr.length,Vc={};for(let e=0;e<zo;e++){let t=Qr[e];Vc[t]=e}function Hc(e){let t=0,r=1;for(let n=e.length-1;n>=0;n--){let o=e[n],s=Vc[o];s*=r,t+=s,r*=zo}return t}et.s_to_int=Hc;function vh(e){let t=BigInt(0),r=BigInt(1),n=BigInt(zo);for(let o=e.length-1;o>=0;o--){let s=e[o],i=BigInt(Vc[s]);i*=r,t+=i,r*=n}return t}et.s_to_big_int=vh;function zc(e){if(e===0)return Qr[0];let t=[];for(;e!==0;){let r=e%zo,n=Qr[r];t.push(n),e-=r,e/=zo}return t.reverse().join("")}et.int_to_s=zc;function Ch(e){let t=BigInt(0),r=BigInt(zo);if(e===t)return Qr[0];let n=[];for(;e!==t;){let o=e%r,s=Qr[Number(o)];n.push(s),e/=r}return n.reverse().join("")}et.big_int_to_s=Ch;function bh(e){return e.split("").reverse().join("")}function wh(e){if(e<0)return"-"+wh(-e);let[t,r]=e.toString().split(".");if(!r)if(t.includes("e")){let[s,i]=t.split("e");t=s,r="0e"+i}else return zc(e);let n;r&&([r,n]=r.split("e")),t=Ea(t),r=bh(r),r=Ea(r);let o=t+"."+r;if(n){switch(o+=".",n[0]){case"+":n=n.slice(1);break;case"-":o+="-",n=n.slice(1);break}n=Ea(n),o+=n}return o}et.num_to_s=wh;function Ea(e){let t=+e;return t.toString()===e&&t+1!==t&&t-1!==t?zc(t):":"+Ch(BigInt(e))}et.int_str_to_s=Ea;function Uc(e){return e[0]===":"?vh(e.substring(1)).toString():Hc(e).toString()}function xh(e){if(e[0]==="-")return-xh(e.substr(1));let[t,r,n]=e.split(".");if(!r)return Hc(t);t=Uc(t),r=Uc(r),r=bh(r);let o=t+"."+r;if(n){o+="e";let s=!1;n[0]==="-"&&(s=!0,n=n.slice(1)),n=Uc(n),o+=s?-n:+n}return+o}et.s_to_num=xh});var Gc=S(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.decodeStr=tt.encodeStr=tt.decodeBool=tt.encodeBool=tt.decodeKey=tt.decodeNum=tt.encodeNum=void 0;var qc=Kc();function eA(e){return"n|"+(0,qc.num_to_s)(e)}tt.encodeNum=eA;function tA(e){return e=e.replace("n|",""),(0,qc.s_to_num)(e)}tt.decodeNum=tA;function rA(e){return typeof e=="number"?e:(0,qc.s_to_int)(e)}tt.decodeKey=rA;function nA(e){return e?"b|T":"b|F"}tt.encodeBool=nA;function oA(e){switch(e){case"b|T":return!0;case"b|F":return!1}return!!e}tt.decodeBool=oA;function iA(e){switch(e[0]+e[1]){case"b|":case"o|":case"n|":case"a|":case"s|":e="s|"+e}return e}tt.encodeStr=iA;function sA(e){return e[0]+e[1]==="s|"?e.substr(2):e}tt.decodeStr=sA});var Wc=S(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.config=void 0;Pa.config={sort_key:!1,error_on_nan:!1,error_on_infinite:!1}});var Zc=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.addValue=Kt.makeInMemoryMemory=Kt.makeInMemoryCache=Kt.makeInMemoryStore=Kt.memToValues=void 0;var Qc=Wc(),Jc=jc(),Yc=Gc(),aA=Kc();function uA(e){return e.store.toArray()}Kt.memToValues=uA;function Sh(){let e=[];return{forEach(t){for(let r=0;r<e.length;r++)if(t(e[r])==="break")return},add(t){e.push(t)},toArray(){return e}}}Kt.makeInMemoryStore=Sh;function Eh(){let e=Object.create(null),t=Object.create(null);return{getValue(r){return e[r]},getSchema(r){return t[r]},forEachValue(r){for(let[n,o]of Object.entries(e))if(r(n,o)==="break")return},forEachSchema(r){for(let[n,o]of Object.entries(t))if(r(n,o)==="break")return},setValue(r,n){e[r]=n},setSchema(r,n){t[r]=n},hasValue(r){return r in e},hasSchema(r){return r in t}}}Kt.makeInMemoryCache=Eh;function cA(){return{store:Sh(),cache:Eh(),keyCount:0}}Kt.makeInMemoryMemory=cA;function Jn(e,t){if(e.cache.hasValue(t))return e.cache.getValue(t);let r=e.keyCount++,n=(0,aA.num_to_s)(r);return e.store.add(t),e.cache.setValue(t,n),n}function lA(e,t){Qc.config.sort_key&&t.sort();let r=t.join(",");if(e.cache.hasSchema(r))return e.cache.getSchema(r);let n=Ji(e,t,void 0);return e.cache.setSchema(r,n),n}function Ji(e,t,r){if(t===null)return"";switch(typeof t){case"undefined":if(Array.isArray(r))return Ji(e,null,r);break;case"object":if(t===null)return Jn(e,null);if(Array.isArray(t)){let n="a";for(let o=0;o<t.length;o++){let s=t[o],i=s===null?"_":Ji(e,s,t);n+="|"+i}return n==="a"&&(n="a|"),Jn(e,n)}else{let n=Object.keys(t);if(n.length===0)return Jn(e,"o|");let o="o",s=lA(e,n);o+="|"+s;for(let i of n){let a=t[i],u=Ji(e,a,t);o+="|"+u}return Jn(e,o)}case"boolean":return Jn(e,(0,Yc.encodeBool)(t));case"number":return Number.isNaN(t)?(Qc.config.error_on_nan&&(0,Jc.throwUnsupportedData)("[number NaN]"),""):Number.POSITIVE_INFINITY===t||Number.NEGATIVE_INFINITY===t?(Qc.config.error_on_infinite&&(0,Jc.throwUnsupportedData)("[number Infinity]"),""):Jn(e,(0,Yc.encodeNum)(t));case"string":return Jn(e,(0,Yc.encodeStr)(t))}return(0,Jc.throwUnknownDataType)(t)}Kt.addValue=Ji});var el=S(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.decompress=vn.decode=vn.compress=void 0;var dA=jc(),Aa=Gc(),Xc=Zc();function pA(e){let t=(0,Xc.makeInMemoryMemory)(),r=(0,Xc.addValue)(t,e,void 0);return[(0,Xc.memToValues)(t),r]}vn.compress=pA;function fA(e,t){if(t==="o|")return{};let r={},n=t.split("|"),o=n[1],s=Yi(e,o),i=n.length;i-2===1&&!Array.isArray(s)&&(s=[s]);for(let a=2;a<i;a++){let u=s[a-2],c=n[a];c=Yi(e,c),r[u]=c}return r}function mA(e,t){if(t==="a|")return[];let r=t.split("|"),n=r.length-1,o=new Array(n);for(let s=0;s<n;s++){let i=r[s+1];i=Yi(e,i),o[s]=i}return o}function Yi(e,t){if(t===""||t==="_")return null;let r=(0,Aa.decodeKey)(t),n=e[r];if(n===null)return n;switch(typeof n){case"undefined":return n;case"number":return n;case"string":switch(n[0]+n[1]){case"b|":return(0,Aa.decodeBool)(n);case"o|":return fA(e,n);case"n|":return(0,Aa.decodeNum)(n);case"a|":return mA(e,n);default:return(0,Aa.decodeStr)(n)}}return(0,dA.throwUnknownDataType)(n)}vn.decode=Yi;function gA(e){let[t,r]=e;return Yi(t,r)}vn.decompress=gA});var Ah=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.trimUndefinedRecursively=Ko.trimUndefined=void 0;function hA(e){for(let t in e)e[t]===void 0&&delete e[t]}Ko.trimUndefined=hA;function yA(e){Ph(e,new Set)}Ko.trimUndefinedRecursively=yA;function Ph(e,t){t.add(e);for(let r in e)if(e[r]===void 0)delete e[r];else{let n=e[r];n&&typeof n=="object"&&!t.has(n)&&Ph(n,t)}}});var Th=S(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.config=rt.trimUndefinedRecursively=rt.trimUndefined=rt.addValue=rt.decode=rt.decompress=rt.compress=void 0;var Fh=el();Object.defineProperty(rt,"compress",{enumerable:!0,get:function(){return Fh.compress}});Object.defineProperty(rt,"decompress",{enumerable:!0,get:function(){return Fh.decompress}});var DA=el();Object.defineProperty(rt,"decode",{enumerable:!0,get:function(){return DA.decode}});var vA=Zc();Object.defineProperty(rt,"addValue",{enumerable:!0,get:function(){return vA.addValue}});var _h=Ah();Object.defineProperty(rt,"trimUndefined",{enumerable:!0,get:function(){return _h.trimUndefined}});Object.defineProperty(rt,"trimUndefinedRecursively",{enumerable:!0,get:function(){return _h.trimUndefinedRecursively}});var CA=Wc();Object.defineProperty(rt,"config",{enumerable:!0,get:function(){return CA.config}})});var Zh=S((bV,Qh)=>{"use strict";var Wh=Y("child_process"),WA=Wh.spawn,JA=Wh.exec;Qh.exports=function(e,t,r){if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},o={};switch(n[e]=[],o[e]=1,process.platform){case"win32":JA("taskkill /pid "+e+" /T /F",r);break;case"darwin":Yh(e,n,o,function(){qh(n,t,r)});break;default:Jh(e,n,o,function(s){return WA("ps",["-o","pid","--no-headers","--ppid",s])},function(){qh(n,t,r)});break}};function qh(e,t,r){var n={};try{Object.keys(e).forEach(function(o){e[o].forEach(function(s){n[s]||(Gh(s,t),n[s]=1)}),n[o]||(Gh(o,t),n[o]=1)})}catch(o){if(r)return r(o);throw o}if(r)return r()}function Gh(e,t){try{process.kill(parseInt(e,10),t)}catch(r){if(r.code!=="ESRCH")throw r}}function Jh(e,t,r,n,o){var s=n(e),i="";s.stdout.on("data",function(c){var c=c.toString("ascii");i+=c});var a=function(u){if(delete r[e],u!=0){Object.keys(r).length==0&&o();return}i.match(/\d+/g).forEach(function(c){c=parseInt(c,10),t[e].push(c),t[c]=[],r[c]=1,Jh(c,t,r,n,o)})};s.on("close",a)}function Yh(e,t,r,n){try{let o="";try{o=execSync("pgrep -P "+e,{encoding:"utf8",timeout:2e3,maxBuffer:1024*1024})}catch(i){if(i.status!==1)throw i}delete r[e];let s=o.trim().split(`
16
+ `).filter(Boolean);if(s.length===0){Object.keys(r).length===0&&n();return}s.forEach(function(i){let a=parseInt(i,10);isNaN(a)||(t[e].push(a),t[a]=[],r[a]=1,Yh(a,t,r,n))})}catch{delete r[e],Object.keys(r).length===0&&n()}}});var Oa=S(qt=>{"use strict";qt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;qt.find=(e,t)=>e.nodes.find(r=>r.type===t);qt.exceedsLimit=(e,t,r=1,n)=>n===!1||!qt.isInteger(e)||!qt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;qt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};qt.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;qt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;qt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;qt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);qt.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let s=n[o];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Ba=S((nH,oy)=>{"use strict";var ny=Oa();oy.exports=(e,t={})=>{let r=(n,o={})=>{let s=t.escapeInvalid&&ny.isInvalidBrace(o),i=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||i)&&ny.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var sy=S((oH,iy)=>{"use strict";iy.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var gy=S((iH,my)=>{"use strict";var ay=sy(),Yn=(e,t,r)=>{if(ay(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ay(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let o=String(n.relaxZeros),s=String(n.shorthand),i=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+o+s+i+a;if(Yn.cache.hasOwnProperty(u))return Yn.cache[u].result;let c=Math.min(e,t),l=Math.max(e,t);if(Math.abs(c-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let d=fy(e)||fy(t),p={min:e,max:t,a:c,b:l},h=[],g=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),c<0){let m=l<0?Math.abs(l):1;g=uy(m,Math.abs(c),p,n),c=p.a=0}return l>=0&&(h=uy(c,l,p,n)),p.negatives=g,p.positives=h,p.result=tF(g,h,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&h.length+g.length>1&&(p.result=`(?:${p.result})`),Yn.cache[u]=p,p.result};function tF(e,t,r){let n=Dl(e,t,"-",!1,r)||[],o=Dl(t,e,"",!1,r)||[],s=Dl(e,t,"-?",!0,r)||[];return n.concat(s).concat(o).join("|")}function rF(e,t){let r=1,n=1,o=ly(e,r),s=new Set([t]);for(;e<=o&&o<=t;)s.add(o),r+=1,o=ly(e,r);for(o=dy(t+1,n)-1;e<o&&o<=t;)s.add(o),n+=1,o=dy(t+1,n)-1;return s=[...s],s.sort(iF),s}function nF(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=oF(e,t),o=n.length,s="",i=0;for(let a=0;a<o;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=sF(u,c,r):i++}return i&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:o}}function uy(e,t,r,n){let o=rF(e,t),s=[],i=e,a;for(let u=0;u<o.length;u++){let c=o[u],l=nF(String(i),String(c),n),d="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+py(a.count),i=c+1;continue}r.isPadded&&(d=aF(c,r,n)),l.string=d+l.pattern+py(l.count),s.push(l),i=c+1,a=l}return s}function Dl(e,t,r,n,o){let s=[];for(let i of e){let{string:a}=i;!n&&!cy(t,"string",a)&&s.push(r+a),n&&cy(t,"string",a)&&s.push(r+a)}return s}function oF(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function iF(e,t){return e>t?1:t>e?-1:0}function cy(e,t,r){return e.some(n=>n[t]===r)}function ly(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function dy(e,t){return e-e%Math.pow(10,t)}function py(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function sF(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function fy(e){return/^-?(0+)\d/.test(e)}function aF(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),o=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${n}}`:`0{${n}}`}}Yn.cache={};Yn.clearCache=()=>Yn.cache={};my.exports=Yn});var bl=S((sH,wy)=>{"use strict";var uF=Y("util"),yy=gy(),hy=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),cF=e=>t=>e===!0?Number(t):String(t),vl=e=>typeof e=="number"||typeof e=="string"&&e!=="",rs=e=>Number.isInteger(+e),Cl=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},lF=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,dF=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},La=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},pF=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",o="",s="",i;return e.positives.length&&(o=e.positives.map(a=>La(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>La(String(a),r)).join("|")})`),o&&s?i=`${o}|${s}`:i=o||s,t.wrap?`(${n}${i})`:i},Dy=(e,t,r,n)=>{if(r)return yy(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let s=String.fromCharCode(t);return`[${o}-${s}]`},vy=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return yy(e,t,r)},Cy=(...e)=>new RangeError("Invalid range arguments: "+uF.inspect(...e)),by=(e,t,r)=>{if(r.strictRanges===!0)throw Cy([e,t]);return[]},fF=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},mF=(e,t,r=1,n={})=>{let o=Number(e),s=Number(t);if(!Number.isInteger(o)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Cy([e,t]);return[]}o===0&&(o=0),s===0&&(s=0);let i=o>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let l=Cl(a)||Cl(u)||Cl(c),d=l?Math.max(a.length,u.length,c.length):0,p=l===!1&&lF(e,t,n)===!1,h=n.transform||cF(p);if(n.toRegex&&r===1)return Dy(La(e,d),La(t,d),!0,n);let g={negatives:[],positives:[]},m=w=>g[w<0?"negatives":"positives"].push(Math.abs(w)),y=[],D=0;for(;i?o>=s:o<=s;)n.toRegex===!0&&r>1?m(o):y.push(dF(h(o,D),d,p)),o=i?o-r:o+r,D++;return n.toRegex===!0?r>1?pF(g,n,d):vy(y,null,{wrap:!1,...n}):y},gF=(e,t,r=1,n={})=>{if(!rs(e)&&e.length>1||!rs(t)&&t.length>1)return by(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),a=s>i,u=Math.min(s,i),c=Math.max(s,i);if(n.toRegex&&r===1)return Dy(u,c,!1,n);let l=[],d=0;for(;a?s>=i:s<=i;)l.push(o(s,d)),s=a?s-r:s+r,d++;return n.toRegex===!0?vy(l,null,{wrap:!1,options:n}):l},Ma=(e,t,r,n={})=>{if(t==null&&vl(e))return[e];if(!vl(e)||!vl(t))return by(e,t,n);if(typeof r=="function")return Ma(e,t,1,{transform:r});if(hy(r))return Ma(e,t,0,r);let o={...n};return o.capture===!0&&(o.wrap=!0),r=r||o.step||1,rs(r)?rs(e)&&rs(t)?mF(e,t,r,o):gF(e,t,Math.max(Math.abs(r),1),o):r!=null&&!hy(r)?fF(r,o):Ma(e,t,1,r)};wy.exports=Ma});var Ey=S((aH,Sy)=>{"use strict";var hF=bl(),xy=Oa(),yF=(e,t={})=>{let r=(n,o={})=>{let s=xy.isInvalidBrace(o),i=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||i===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=xy.reduce(n.nodes),d=hF(...l,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return l.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(e)};Sy.exports=yF});var Fy=S((uH,Ay)=>{"use strict";var DF=bl(),Py=Ba(),Go=Oa(),Qn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Go.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let s of o)n.push(Qn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Qn(o,s,r):o+s);return Go.flatten(n)},vF=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(o,s={})=>{o.queue=[];let i=s,a=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,a=i.queue;if(o.invalid||o.dollar){a.push(Qn(a.pop(),Py(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(Qn(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=Go.reduce(o.nodes);if(Go.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=DF(...d,t);p.length===0&&(p=Py(o,t)),a.push(Qn(a.pop(),p)),o.nodes=[];return}let u=Go.encloseBrace(o),c=o.queue,l=o;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let d=0;d<o.nodes.length;d++){let p=o.nodes[d];if(p.type==="comma"&&o.type==="brace"){d===1&&c.push(""),c.push("");continue}if(p.type==="close"){a.push(Qn(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(Qn(c.pop(),p.value));continue}p.nodes&&n(p,o)}return c};return Go.flatten(n(e))};Ay.exports=vF});var Ty=S((cH,_y)=>{"use strict";_y.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
17
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Ny=S((lH,$y)=>{"use strict";var CF=Ba(),{MAX_LENGTH:Ry,CHAR_BACKSLASH:wl,CHAR_BACKTICK:bF,CHAR_COMMA:wF,CHAR_DOT:xF,CHAR_LEFT_PARENTHESES:SF,CHAR_RIGHT_PARENTHESES:EF,CHAR_LEFT_CURLY_BRACE:PF,CHAR_RIGHT_CURLY_BRACE:AF,CHAR_LEFT_SQUARE_BRACKET:Iy,CHAR_RIGHT_SQUARE_BRACKET:ky,CHAR_DOUBLE_QUOTE:FF,CHAR_SINGLE_QUOTE:_F,CHAR_NO_BREAK_SPACE:TF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:RF}=Ty(),IF=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ry,r.maxLength):Ry;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let o={type:"root",input:e,nodes:[]},s=[o],i=o,a=o,u=0,c=e.length,l=0,d=0,p,h=()=>e[l++],g=m=>{if(m.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&m.type==="text"){a.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=a,a=m,m};for(g({type:"bos"});l<c;)if(i=s[s.length-1],p=h(),!(p===RF||p===TF)){if(p===wl){g({type:"text",value:(t.keepEscaping?p:"")+h()});continue}if(p===ky){g({type:"text",value:"\\"+p});continue}if(p===Iy){u++;let m;for(;l<c&&(m=h());){if(p+=m,m===Iy){u++;continue}if(m===wl){p+=h();continue}if(m===ky&&(u--,u===0))break}g({type:"text",value:p});continue}if(p===SF){i=g({type:"paren",nodes:[]}),s.push(i),g({type:"text",value:p});continue}if(p===EF){if(i.type!=="paren"){g({type:"text",value:p});continue}i=s.pop(),g({type:"text",value:p}),i=s[s.length-1];continue}if(p===FF||p===_F||p===bF){let m=p,y;for(t.keepQuotes!==!0&&(p="");l<c&&(y=h());){if(y===wl){p+=y+h();continue}if(y===m){t.keepQuotes===!0&&(p+=y);break}p+=y}g({type:"text",value:p});continue}if(p===PF){d++;let y={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||i.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};i=g(y),s.push(i),g({type:"open",value:p});continue}if(p===AF){if(i.type!=="brace"){g({type:"text",value:p});continue}let m="close";i=s.pop(),i.close=!0,g({type:m,value:p}),d--,i=s[s.length-1];continue}if(p===wF&&d>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:CF(i)}]}g({type:"comma",value:p}),i.commas++;continue}if(p===xF&&d>0&&i.commas===0){let m=i.nodes;if(d===0||m.length===0){g({type:"text",value:p});continue}if(a.type==="dot"){if(i.range=[],a.value+=p,a.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,a.type="text";continue}i.ranges++,i.args=[];continue}if(a.type==="range"){m.pop();let y=m[m.length-1];y.value+=a.value+p,a=y,i.ranges--;continue}g({type:"dot",value:p});continue}g({type:"text",value:p})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let m=s[s.length-1],y=m.nodes.indexOf(i);m.nodes.splice(y,1,...i.nodes)}while(s.length>0);return g({type:"eos"}),o};$y.exports=IF});var My=S((dH,By)=>{"use strict";var Oy=Ba(),kF=Ey(),$F=Fy(),NF=Ny(),$t=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=$t.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat($t.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};$t.parse=(e,t={})=>NF(e,t);$t.stringify=(e,t={})=>Oy(typeof e=="string"?$t.parse(e,t):e,t);$t.compile=(e,t={})=>(typeof e=="string"&&(e=$t.parse(e,t)),kF(e,t));$t.expand=(e,t={})=>{typeof e=="string"&&(e=$t.parse(e,t));let r=$F(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};$t.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?$t.compile(e,t):$t.expand(e,t);By.exports=$t});var ns=S((pH,Hy)=>{"use strict";var OF=Y("path"),kr="\\\\/",Ly=`[^${kr}]`,en="\\.",BF="\\+",MF="\\?",ja="\\/",LF="(?=.)",jy="[^/]",xl=`(?:${ja}|$)`,Uy=`(?:^|${ja})`,Sl=`${en}{1,2}${xl}`,jF=`(?!${en})`,UF=`(?!${Uy}${Sl})`,VF=`(?!${en}{0,1}${xl})`,HF=`(?!${Sl})`,zF=`[^.${ja}]`,KF=`${jy}*?`,Vy={DOT_LITERAL:en,PLUS_LITERAL:BF,QMARK_LITERAL:MF,SLASH_LITERAL:ja,ONE_CHAR:LF,QMARK:jy,END_ANCHOR:xl,DOTS_SLASH:Sl,NO_DOT:jF,NO_DOTS:UF,NO_DOT_SLASH:VF,NO_DOTS_SLASH:HF,QMARK_NO_DOT:zF,STAR:KF,START_ANCHOR:Uy},qF={...Vy,SLASH_LITERAL:`[${kr}]`,QMARK:Ly,STAR:`${Ly}*?`,DOTS_SLASH:`${en}{1,2}(?:[${kr}]|$)`,NO_DOT:`(?!${en})`,NO_DOTS:`(?!(?:^|[${kr}])${en}{1,2}(?:[${kr}]|$))`,NO_DOT_SLASH:`(?!${en}{0,1}(?:[${kr}]|$))`,NO_DOTS_SLASH:`(?!${en}{1,2}(?:[${kr}]|$))`,QMARK_NO_DOT:`[^.${kr}]`,START_ANCHOR:`(?:^|[${kr}])`,END_ANCHOR:`(?:[${kr}]|$)`},GF={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Hy.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:GF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:OF.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?qF:Vy}}});var os=S(vt=>{"use strict";var WF=Y("path"),JF=process.platform==="win32",{REGEX_BACKSLASH:YF,REGEX_REMOVE_BACKSLASH:QF,REGEX_SPECIAL_CHARS:ZF,REGEX_SPECIAL_CHARS_GLOBAL:XF}=ns();vt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);vt.hasRegexChars=e=>ZF.test(e);vt.isRegexChar=e=>e.length===1&&vt.hasRegexChars(e);vt.escapeRegex=e=>e.replace(XF,"\\$1");vt.toPosixSlashes=e=>e.replace(YF,"/");vt.removeBackslashes=e=>e.replace(QF,t=>t==="\\"?"":t);vt.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};vt.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:JF===!0||WF.sep==="\\";vt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?vt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};vt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};vt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",s=`${n}(?:${e})${o}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Qy=S((mH,Yy)=>{"use strict";var zy=os(),{CHAR_ASTERISK:El,CHAR_AT:e_,CHAR_BACKWARD_SLASH:is,CHAR_COMMA:t_,CHAR_DOT:Pl,CHAR_EXCLAMATION_MARK:Al,CHAR_FORWARD_SLASH:Jy,CHAR_LEFT_CURLY_BRACE:Fl,CHAR_LEFT_PARENTHESES:_l,CHAR_LEFT_SQUARE_BRACKET:r_,CHAR_PLUS:n_,CHAR_QUESTION_MARK:Ky,CHAR_RIGHT_CURLY_BRACE:o_,CHAR_RIGHT_PARENTHESES:qy,CHAR_RIGHT_SQUARE_BRACKET:i_}=ns(),Gy=e=>e===Jy||e===is,Wy=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},s_=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,s=[],i=[],a=[],u=e,c=-1,l=0,d=0,p=!1,h=!1,g=!1,m=!1,y=!1,D=!1,w=!1,x=!1,F=!1,P=!1,_=0,I,N,k={value:"",depth:0,isGlob:!1},T=()=>c>=n,v=()=>u.charCodeAt(c+1),j=()=>(I=N,u.charCodeAt(++c));for(;c<n;){N=j();let Ie;if(N===is){w=k.backslashes=!0,N=j(),N===Fl&&(D=!0);continue}if(D===!0||N===Fl){for(_++;T()!==!0&&(N=j());){if(N===is){w=k.backslashes=!0,j();continue}if(N===Fl){_++;continue}if(D!==!0&&N===Pl&&(N=j())===Pl){if(p=k.isBrace=!0,g=k.isGlob=!0,P=!0,o===!0)continue;break}if(D!==!0&&N===t_){if(p=k.isBrace=!0,g=k.isGlob=!0,P=!0,o===!0)continue;break}if(N===o_&&(_--,_===0)){D=!1,p=k.isBrace=!0,P=!0;break}}if(o===!0)continue;break}if(N===Jy){if(s.push(c),i.push(k),k={value:"",depth:0,isGlob:!1},P===!0)continue;if(I===Pl&&c===l+1){l+=2;continue}d=c+1;continue}if(r.noext!==!0&&(N===n_||N===e_||N===El||N===Ky||N===Al)===!0&&v()===_l){if(g=k.isGlob=!0,m=k.isExtglob=!0,P=!0,N===Al&&c===l&&(F=!0),o===!0){for(;T()!==!0&&(N=j());){if(N===is){w=k.backslashes=!0,N=j();continue}if(N===qy){g=k.isGlob=!0,P=!0;break}}continue}break}if(N===El){if(I===El&&(y=k.isGlobstar=!0),g=k.isGlob=!0,P=!0,o===!0)continue;break}if(N===Ky){if(g=k.isGlob=!0,P=!0,o===!0)continue;break}if(N===r_){for(;T()!==!0&&(Ie=j());){if(Ie===is){w=k.backslashes=!0,j();continue}if(Ie===i_){h=k.isBracket=!0,g=k.isGlob=!0,P=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&N===Al&&c===l){x=k.negated=!0,l++;continue}if(r.noparen!==!0&&N===_l){if(g=k.isGlob=!0,o===!0){for(;T()!==!0&&(N=j());){if(N===_l){w=k.backslashes=!0,N=j();continue}if(N===qy){P=!0;break}}continue}break}if(g===!0){if(P=!0,o===!0)continue;break}}r.noext===!0&&(m=!1,g=!1);let H=u,q="",b="";l>0&&(q=u.slice(0,l),u=u.slice(l),d-=l),H&&g===!0&&d>0?(H=u.slice(0,d),b=u.slice(d)):g===!0?(H="",b=u):H=u,H&&H!==""&&H!=="/"&&H!==u&&Gy(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),r.unescape===!0&&(b&&(b=zy.removeBackslashes(b)),H&&w===!0&&(H=zy.removeBackslashes(H)));let E={prefix:q,input:e,start:l,base:H,glob:b,isBrace:p,isBracket:h,isGlob:g,isExtglob:m,isGlobstar:y,negated:x,negatedExtglob:F};if(r.tokens===!0&&(E.maxDepth=0,Gy(N)||i.push(k),E.tokens=i),r.parts===!0||r.tokens===!0){let Ie;for(let he=0;he<s.length;he++){let yr=Ie?Ie+1:l,Dr=s[he],_t=e.slice(yr,Dr);r.tokens&&(he===0&&l!==0?(i[he].isPrefix=!0,i[he].value=q):i[he].value=_t,Wy(i[he]),E.maxDepth+=i[he].depth),(he!==0||_t!=="")&&a.push(_t),Ie=Dr}if(Ie&&Ie+1<e.length){let he=e.slice(Ie+1);a.push(he),r.tokens&&(i[i.length-1].value=he,Wy(i[i.length-1]),E.maxDepth+=i[i.length-1].depth)}E.slashes=s,E.parts=a}return E};Yy.exports=s_});var eD=S((gH,Xy)=>{"use strict";var Ua=ns(),Nt=os(),{MAX_LENGTH:Va,POSIX_REGEX_SOURCE:a_,REGEX_NON_SPECIAL_CHARS:u_,REGEX_SPECIAL_CHARS_BACKREF:c_,REPLACEMENTS:Zy}=Ua,l_=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>Nt.escapeRegex(o)).join("..")}return r},Wo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Tl=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Zy[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Va,r.maxLength):Va,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},i=[s],a=r.capture?"":"?:",u=Nt.isWindows(t),c=Ua.globChars(u),l=Ua.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:D,NO_DOTS_SLASH:w,QMARK:x,QMARK_NO_DOT:F,STAR:P,START_ANCHOR:_}=c,I=M=>`(${a}(?:(?!${_}${M.dot?m:d}).)*?)`,N=r.dot?"":y,k=r.dot?x:F,T=r.bash===!0?I(r):P;r.capture&&(T=`(${T})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let v={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Nt.removePrefix(e,v),o=e.length;let j=[],H=[],q=[],b=s,E,Ie=()=>v.index===o-1,he=v.peek=(M=1)=>e[v.index+M],yr=v.advance=()=>e[++v.index]||"",Dr=()=>e.slice(v.index+1),_t=(M="",Ee=0)=>{v.consumed+=M,v.index+=Ee},Ws=M=>{v.output+=M.output!=null?M.output:M.value,_t(M.value)},Mw=()=>{let M=1;for(;he()==="!"&&(he(2)!=="("||he(3)==="?");)yr(),v.start++,M++;return M%2===0?!1:(v.negated=!0,v.start++,!0)},Js=M=>{v[M]++,q.push(M)},Bn=M=>{v[M]--,q.pop()},se=M=>{if(b.type==="globstar"){let Ee=v.braces>0&&(M.type==="comma"||M.type==="brace"),$=M.extglob===!0||j.length&&(M.type==="pipe"||M.type==="paren");M.type!=="slash"&&M.type!=="paren"&&!Ee&&!$&&(v.output=v.output.slice(0,-b.output.length),b.type="star",b.value="*",b.output=T,v.output+=b.output)}if(j.length&&M.type!=="paren"&&(j[j.length-1].inner+=M.value),(M.value||M.output)&&Ws(M),b&&b.type==="text"&&M.type==="text"){b.value+=M.value,b.output=(b.output||"")+M.value;return}M.prev=b,i.push(M),b=M},Ys=(M,Ee)=>{let $={...l[Ee],conditions:1,inner:""};$.prev=b,$.parens=v.parens,$.output=v.output;let ne=(r.capture?"(":"")+$.open;Js("parens"),se({type:M,value:Ee,output:v.output?"":g}),se({type:"paren",extglob:!0,value:yr(),output:ne}),j.push($)},Lw=M=>{let Ee=M.close+(r.capture?")":""),$;if(M.type==="negate"){let ne=T;if(M.inner&&M.inner.length>1&&M.inner.includes("/")&&(ne=I(r)),(ne!==T||Ie()||/^\)+$/.test(Dr()))&&(Ee=M.close=`)$))${ne}`),M.inner.includes("*")&&($=Dr())&&/^\.[^\\/.]+$/.test($)){let ke=Tl($,{...t,fastpaths:!1}).output;Ee=M.close=`)${ke})${ne})`}M.prev.type==="bos"&&(v.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:E,output:Ee}),Bn("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let M=!1,Ee=e.replace(c_,($,ne,ke,ut,je,Gu)=>ut==="\\"?(M=!0,$):ut==="?"?ne?ne+ut+(je?x.repeat(je.length):""):Gu===0?k+(je?x.repeat(je.length):""):x.repeat(ke.length):ut==="."?d.repeat(ke.length):ut==="*"?ne?ne+ut+(je?T:""):T:ne?$:`\\${$}`);return M===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),Ee===e&&r.contains===!0?(v.output=e,v):(v.output=Nt.wrapOutput(Ee,v,t),v)}for(;!Ie();){if(E=yr(),E==="\0")continue;if(E==="\\"){let $=he();if($==="/"&&r.bash!==!0||$==="."||$===";")continue;if(!$){E+="\\",se({type:"text",value:E});continue}let ne=/^\\+/.exec(Dr()),ke=0;if(ne&&ne[0].length>2&&(ke=ne[0].length,v.index+=ke,ke%2!==0&&(E+="\\")),r.unescape===!0?E=yr():E+=yr(),v.brackets===0){se({type:"text",value:E});continue}}if(v.brackets>0&&(E!=="]"||b.value==="["||b.value==="[^")){if(r.posix!==!1&&E===":"){let $=b.value.slice(1);if($.includes("[")&&(b.posix=!0,$.includes(":"))){let ne=b.value.lastIndexOf("["),ke=b.value.slice(0,ne),ut=b.value.slice(ne+2),je=a_[ut];if(je){b.value=ke+je,v.backtrack=!0,yr(),!s.output&&i.indexOf(b)===1&&(s.output=g);continue}}}(E==="["&&he()!==":"||E==="-"&&he()==="]")&&(E=`\\${E}`),E==="]"&&(b.value==="["||b.value==="[^")&&(E=`\\${E}`),r.posix===!0&&E==="!"&&b.value==="["&&(E="^"),b.value+=E,Ws({value:E});continue}if(v.quotes===1&&E!=='"'){E=Nt.escapeRegex(E),b.value+=E,Ws({value:E});continue}if(E==='"'){v.quotes=v.quotes===1?0:1,r.keepQuotes===!0&&se({type:"text",value:E});continue}if(E==="("){Js("parens"),se({type:"paren",value:E});continue}if(E===")"){if(v.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wo("opening","("));let $=j[j.length-1];if($&&v.parens===$.parens+1){Lw(j.pop());continue}se({type:"paren",value:E,output:v.parens?")":"\\)"}),Bn("parens");continue}if(E==="["){if(r.nobracket===!0||!Dr().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wo("closing","]"));E=`\\${E}`}else Js("brackets");se({type:"bracket",value:E});continue}if(E==="]"){if(r.nobracket===!0||b&&b.type==="bracket"&&b.value.length===1){se({type:"text",value:E,output:`\\${E}`});continue}if(v.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wo("opening","["));se({type:"text",value:E,output:`\\${E}`});continue}Bn("brackets");let $=b.value.slice(1);if(b.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(E=`/${E}`),b.value+=E,Ws({value:E}),r.literalBrackets===!1||Nt.hasRegexChars($))continue;let ne=Nt.escapeRegex(b.value);if(v.output=v.output.slice(0,-b.value.length),r.literalBrackets===!0){v.output+=ne,b.value=ne;continue}b.value=`(${a}${ne}|${b.value})`,v.output+=b.value;continue}if(E==="{"&&r.nobrace!==!0){Js("braces");let $={type:"brace",value:E,output:"(",outputIndex:v.output.length,tokensIndex:v.tokens.length};H.push($),se($);continue}if(E==="}"){let $=H[H.length-1];if(r.nobrace===!0||!$){se({type:"text",value:E,output:E});continue}let ne=")";if($.dots===!0){let ke=i.slice(),ut=[];for(let je=ke.length-1;je>=0&&(i.pop(),ke[je].type!=="brace");je--)ke[je].type!=="dots"&&ut.unshift(ke[je].value);ne=l_(ut,r),v.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let ke=v.output.slice(0,$.outputIndex),ut=v.tokens.slice($.tokensIndex);$.value=$.output="\\{",E=ne="\\}",v.output=ke;for(let je of ut)v.output+=je.output||je.value}se({type:"brace",value:E,output:ne}),Bn("braces"),H.pop();continue}if(E==="|"){j.length>0&&j[j.length-1].conditions++,se({type:"text",value:E});continue}if(E===","){let $=E,ne=H[H.length-1];ne&&q[q.length-1]==="braces"&&(ne.comma=!0,$="|"),se({type:"comma",value:E,output:$});continue}if(E==="/"){if(b.type==="dot"&&v.index===v.start+1){v.start=v.index+1,v.consumed="",v.output="",i.pop(),b=s;continue}se({type:"slash",value:E,output:h});continue}if(E==="."){if(v.braces>0&&b.type==="dot"){b.value==="."&&(b.output=d);let $=H[H.length-1];b.type="dots",b.output+=E,b.value+=E,$.dots=!0;continue}if(v.braces+v.parens===0&&b.type!=="bos"&&b.type!=="slash"){se({type:"text",value:E,output:d});continue}se({type:"dot",value:E,output:d});continue}if(E==="?"){if(!(b&&b.value==="(")&&r.noextglob!==!0&&he()==="("&&he(2)!=="?"){Ys("qmark",E);continue}if(b&&b.type==="paren"){let ne=he(),ke=E;if(ne==="<"&&!Nt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(b.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test(Dr()))&&(ke=`\\${E}`),se({type:"text",value:E,output:ke});continue}if(r.dot!==!0&&(b.type==="slash"||b.type==="bos")){se({type:"qmark",value:E,output:F});continue}se({type:"qmark",value:E,output:x});continue}if(E==="!"){if(r.noextglob!==!0&&he()==="("&&(he(2)!=="?"||!/[!=<:]/.test(he(3)))){Ys("negate",E);continue}if(r.nonegate!==!0&&v.index===0){Mw();continue}}if(E==="+"){if(r.noextglob!==!0&&he()==="("&&he(2)!=="?"){Ys("plus",E);continue}if(b&&b.value==="("||r.regex===!1){se({type:"plus",value:E,output:p});continue}if(b&&(b.type==="bracket"||b.type==="paren"||b.type==="brace")||v.parens>0){se({type:"plus",value:E});continue}se({type:"plus",value:p});continue}if(E==="@"){if(r.noextglob!==!0&&he()==="("&&he(2)!=="?"){se({type:"at",extglob:!0,value:E,output:""});continue}se({type:"text",value:E});continue}if(E!=="*"){(E==="$"||E==="^")&&(E=`\\${E}`);let $=u_.exec(Dr());$&&(E+=$[0],v.index+=$[0].length),se({type:"text",value:E});continue}if(b&&(b.type==="globstar"||b.star===!0)){b.type="star",b.star=!0,b.value+=E,b.output=T,v.backtrack=!0,v.globstar=!0,_t(E);continue}let M=Dr();if(r.noextglob!==!0&&/^\([^?]/.test(M)){Ys("star",E);continue}if(b.type==="star"){if(r.noglobstar===!0){_t(E);continue}let $=b.prev,ne=$.prev,ke=$.type==="slash"||$.type==="bos",ut=ne&&(ne.type==="star"||ne.type==="globstar");if(r.bash===!0&&(!ke||M[0]&&M[0]!=="/")){se({type:"star",value:E,output:""});continue}let je=v.braces>0&&($.type==="comma"||$.type==="brace"),Gu=j.length&&($.type==="pipe"||$.type==="paren");if(!ke&&$.type!=="paren"&&!je&&!Gu){se({type:"star",value:E,output:""});continue}for(;M.slice(0,3)==="/**";){let Qs=e[v.index+4];if(Qs&&Qs!=="/")break;M=M.slice(3),_t("/**",3)}if($.type==="bos"&&Ie()){b.type="globstar",b.value+=E,b.output=I(r),v.output=b.output,v.globstar=!0,_t(E);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!ut&&Ie()){v.output=v.output.slice(0,-($.output+b.output).length),$.output=`(?:${$.output}`,b.type="globstar",b.output=I(r)+(r.strictSlashes?")":"|$)"),b.value+=E,v.globstar=!0,v.output+=$.output+b.output,_t(E);continue}if($.type==="slash"&&$.prev.type!=="bos"&&M[0]==="/"){let Qs=M[1]!==void 0?"|$":"";v.output=v.output.slice(0,-($.output+b.output).length),$.output=`(?:${$.output}`,b.type="globstar",b.output=`${I(r)}${h}|${h}${Qs})`,b.value+=E,v.output+=$.output+b.output,v.globstar=!0,_t(E+yr()),se({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&M[0]==="/"){b.type="globstar",b.value+=E,b.output=`(?:^|${h}|${I(r)}${h})`,v.output=b.output,v.globstar=!0,_t(E+yr()),se({type:"slash",value:"/",output:""});continue}v.output=v.output.slice(0,-b.output.length),b.type="globstar",b.output=I(r),b.value+=E,v.output+=b.output,v.globstar=!0,_t(E);continue}let Ee={type:"star",value:E,output:T};if(r.bash===!0){Ee.output=".*?",(b.type==="bos"||b.type==="slash")&&(Ee.output=N+Ee.output),se(Ee);continue}if(b&&(b.type==="bracket"||b.type==="paren")&&r.regex===!0){Ee.output=E,se(Ee);continue}(v.index===v.start||b.type==="slash"||b.type==="dot")&&(b.type==="dot"?(v.output+=D,b.output+=D):r.dot===!0?(v.output+=w,b.output+=w):(v.output+=N,b.output+=N),he()!=="*"&&(v.output+=g,b.output+=g)),se(Ee)}for(;v.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wo("closing","]"));v.output=Nt.escapeLast(v.output,"["),Bn("brackets")}for(;v.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wo("closing",")"));v.output=Nt.escapeLast(v.output,"("),Bn("parens")}for(;v.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wo("closing","}"));v.output=Nt.escapeLast(v.output,"{"),Bn("braces")}if(r.strictSlashes!==!0&&(b.type==="star"||b.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${h}?`}),v.backtrack===!0){v.output="";for(let M of v.tokens)v.output+=M.output!=null?M.output:M.value,M.suffix&&(v.output+=M.suffix)}return v};Tl.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Va,r.maxLength):Va,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Zy[e]||e;let s=Nt.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:h,START_ANCHOR:g}=Ua.globChars(s),m=r.dot?d:l,y=r.dot?p:l,D=r.capture?"":"?:",w={negated:!1,prefix:""},x=r.bash===!0?".*?":h;r.capture&&(x=`(${x})`);let F=N=>N.noglobstar===!0?x:`(${D}(?:(?!${g}${N.dot?c:i}).)*?)`,P=N=>{switch(N){case"*":return`${m}${u}${x}`;case".*":return`${i}${u}${x}`;case"*.*":return`${m}${x}${i}${u}${x}`;case"*/*":return`${m}${x}${a}${u}${y}${x}`;case"**":return m+F(r);case"**/*":return`(?:${m}${F(r)}${a})?${y}${u}${x}`;case"**/*.*":return`(?:${m}${F(r)}${a})?${y}${x}${i}${u}${x}`;case"**/.*":return`(?:${m}${F(r)}${a})?${i}${u}${x}`;default:{let k=/^(.*?)\.(\w+)$/.exec(N);if(!k)return;let T=P(k[1]);return T?T+i+k[2]:void 0}}},_=Nt.removePrefix(e,w),I=P(_);return I&&r.strictSlashes!==!0&&(I+=`${a}?`),I};Xy.exports=Tl});var rD=S((hH,tD)=>{"use strict";var d_=Y("path"),p_=Qy(),Rl=eD(),Il=os(),f_=ns(),m_=e=>e&&typeof e=="object"&&!Array.isArray(e),Be=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>Be(p,t,r));return p=>{for(let h of l){let g=h(p);if(g)return g}return!1}}let n=m_(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},s=Il.isWindows(t),i=n?Be.compileRe(e,t):Be.makeRe(e,t,!1,!0),a=i.state;delete i.state;let u=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=Be(o.ignore,l,r)}let c=(l,d=!1)=>{let{isMatch:p,match:h,output:g}=Be.test(l,i,t,{glob:e,posix:s}),m={glob:e,state:a,regex:i,posix:s,input:l,output:g,match:h,isMatch:p};return typeof o.onResult=="function"&&o.onResult(m),p===!1?(m.isMatch=!1,d?m:!1):u(l)?(typeof o.onIgnore=="function"&&o.onIgnore(m),m.isMatch=!1,d?m:!1):(typeof o.onMatch=="function"&&o.onMatch(m),d?m:!0)};return r&&(c.state=a),c};Be.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},i=s.format||(o?Il.toPosixSlashes:null),a=e===n,u=a&&i?i(e):e;return a===!1&&(u=i?i(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Be.matchBase(e,t,r,o):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Be.matchBase=(e,t,r,n=Il.isWindows(r))=>(t instanceof RegExp?t:Be.makeRe(t,r)).test(d_.basename(e));Be.isMatch=(e,t,r)=>Be(t,r)(e);Be.parse=(e,t)=>Array.isArray(e)?e.map(r=>Be.parse(r,t)):Rl(e,{...t,fastpaths:!1});Be.scan=(e,t)=>p_(e,t);Be.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},s=o.contains?"":"^",i=o.contains?"":"$",a=`${s}(?:${e.output})${i}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Be.toRegex(a,t);return n===!0&&(u.state=e),u};Be.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Rl.fastpaths(e,t)),o.output||(o=Rl(e,t)),Be.compileRe(o,t,r,n)};Be.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Be.constants=f_;tD.exports=Be});var oD=S((yH,nD)=>{"use strict";nD.exports=rD()});var $l=S((DH,cD)=>{"use strict";var sD=Y("util"),aD=My(),$r=oD(),kl=os(),iD=e=>e===""||e==="./",uD=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Fe=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,s=new Set,i=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let d=$r(String(t[l]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&i++;for(let h of e){let g=d(h,!0);(p?!g.isMatch:g.isMatch)&&(p?n.add(g.output):(n.delete(g.output),o.add(g.output)))}}let c=(i===t.length?[...s]:[...o]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return c};Fe.match=Fe;Fe.matcher=(e,t)=>$r(e,t);Fe.isMatch=(e,t,r)=>$r(t,r)(e);Fe.any=Fe.isMatch;Fe.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],s=a=>{r.onResult&&r.onResult(a),o.push(a.output)},i=new Set(Fe(e,t,{...r,onResult:s}));for(let a of o)i.has(a)||n.add(a);return[...n]};Fe.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sD.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Fe.contains(e,n,r));if(typeof t=="string"){if(iD(e)||iD(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Fe.isMatch(e,t,{...r,contains:!0})};Fe.matchKeys=(e,t,r)=>{if(!kl.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Fe(Object.keys(e),t,r),o={};for(let s of n)o[s]=e[s];return o};Fe.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let s=$r(String(o),r);if(n.some(i=>s(i)))return!0}return!1};Fe.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let s=$r(String(o),r);if(!n.every(i=>s(i)))return!1}return!0};Fe.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sD.inspect(e)}"`);return[].concat(t).every(n=>$r(n,r)(e))};Fe.capture=(e,t,r)=>{let n=kl.isWindows(r),s=$r.makeRe(String(e),{...r,capture:!0}).exec(n?kl.toPosixSlashes(t):t);if(s)return s.slice(1).map(i=>i===void 0?"":i)};Fe.makeRe=(...e)=>$r.makeRe(...e);Fe.scan=(...e)=>$r.scan(...e);Fe.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of aD(String(n),t))r.push($r.parse(o,t));return r};Fe.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!uD(e)?[e]:aD(e,t)};Fe.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Fe.braces(e,{...t,expand:!0})};Fe.hasBraces=uD;cD.exports=Fe});var dD=S((kH,lD)=>{var Jo=1e3,Yo=Jo*60,Qo=Yo*60,Zn=Qo*24,D_=Zn*7,v_=Zn*365.25;lD.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return C_(e);if(r==="number"&&isFinite(e))return t.long?w_(e):b_(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C_(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*v_;case"weeks":case"week":case"w":return r*D_;case"days":case"day":case"d":return r*Zn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Qo;case"minutes":case"minute":case"mins":case"min":case"m":return r*Yo;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function b_(e){var t=Math.abs(e);return t>=Zn?Math.round(e/Zn)+"d":t>=Qo?Math.round(e/Qo)+"h":t>=Yo?Math.round(e/Yo)+"m":t>=Jo?Math.round(e/Jo)+"s":e+"ms"}function w_(e){var t=Math.abs(e);return t>=Zn?Ha(e,t,Zn,"day"):t>=Qo?Ha(e,t,Qo,"hour"):t>=Yo?Ha(e,t,Yo,"minute"):t>=Jo?Ha(e,t,Jo,"second"):e+" ms"}function Ha(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Nl=S(($H,pD)=>{function x_(e){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=a,r.humanize=dD(),r.destroy=c,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let d=0;for(let p=0;p<l.length;p++)d=(d<<5)-d+l.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(l){let d,p=null,h,g;function m(...y){if(!m.enabled)return;let D=m,w=Number(new Date),x=w-(d||w);D.diff=x,D.prev=d,D.curr=w,d=w,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let F=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(_,I)=>{if(_==="%%")return"%";F++;let N=r.formatters[I];if(typeof N=="function"){let k=y[F];_=N.call(D,k),y.splice(F,1),F--}return _}),r.formatArgs.call(D,y),(D.log||r.log).apply(D,y)}return m.namespace=l,m.useColors=r.useColors(),m.color=r.selectColor(l),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(l)),g),set:y=>{p=y}}),typeof r.init=="function"&&r.init(m),m}function n(l,d){let p=r(this.namespace+(typeof d>"u"?":":d)+l);return p.log=this.log,p}function o(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let d=(typeof l=="string"?l:"").trim().replace(" ",",").split(",").filter(Boolean);for(let p of d)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(l,d){let p=0,h=0,g=-1,m=0;for(;p<l.length;)if(h<d.length&&(d[h]===l[p]||d[h]==="*"))d[h]==="*"?(g=h,m=p,h++):(p++,h++);else if(g!==-1)h=g+1,m++,p=m;else return!1;for(;h<d.length&&d[h]==="*";)h++;return h===d.length}function i(){let l=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),l}function a(l){for(let d of r.skips)if(s(l,d))return!1;for(let d of r.names)if(s(l,d))return!0;return!1}function u(l){return l instanceof Error?l.stack||l.message:l}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}pD.exports=x_});var fD=S((Ot,za)=>{Ot.formatArgs=E_;Ot.save=P_;Ot.load=A_;Ot.useColors=S_;Ot.storage=F_();Ot.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ot.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S_(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function E_(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+za.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ot.log=console.debug||console.log||(()=>{});function P_(e){try{e?Ot.storage.setItem("debug",e):Ot.storage.removeItem("debug")}catch{}}function A_(){let e;try{e=Ot.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function F_(){try{return localStorage}catch{}}za.exports=Nl()(Ot);var{formatters:__}=za.exports;__.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var gD=S((NH,mD)=>{"use strict";mD.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var DD=S((OH,yD)=>{"use strict";var T_=Y("os"),hD=Y("tty"),Gt=gD(),{env:Ge}=process,xn;Gt("no-color")||Gt("no-colors")||Gt("color=false")||Gt("color=never")?xn=0:(Gt("color")||Gt("colors")||Gt("color=true")||Gt("color=always"))&&(xn=1);"FORCE_COLOR"in Ge&&(Ge.FORCE_COLOR==="true"?xn=1:Ge.FORCE_COLOR==="false"?xn=0:xn=Ge.FORCE_COLOR.length===0?1:Math.min(parseInt(Ge.FORCE_COLOR,10),3));function Ol(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Bl(e,t){if(xn===0)return 0;if(Gt("color=16m")||Gt("color=full")||Gt("color=truecolor"))return 3;if(Gt("color=256"))return 2;if(e&&!t&&xn===void 0)return 0;let r=xn||0;if(Ge.TERM==="dumb")return r;if(process.platform==="win32"){let n=T_.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ge)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ge)||Ge.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ge)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ge.TEAMCITY_VERSION)?1:0;if(Ge.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ge){let n=parseInt((Ge.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ge.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ge.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ge.TERM)||"COLORTERM"in Ge?1:r}function R_(e){let t=Bl(e,e&&e.isTTY);return Ol(t)}yD.exports={supportsColor:R_,stdout:Ol(Bl(!0,hD.isatty(1))),stderr:Ol(Bl(!0,hD.isatty(2)))}});var CD=S((We,qa)=>{var I_=Y("tty"),Ka=Y("util");We.init=L_;We.log=O_;We.formatArgs=$_;We.save=B_;We.load=M_;We.useColors=k_;We.destroy=Ka.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");We.colors=[6,2,3,4,5,1];try{let e=DD();e&&(e.stderr||e).level>=2&&(We.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}We.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function k_(){return"colors"in We.inspectOpts?!!We.inspectOpts.colors:I_.isatty(process.stderr.fd)}function $_(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
18
18
  `).join(`
19
19
  `+s),e.push(o+"m+"+qa.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=N_()+t+" "+e[0]}function N_(){return We.inspectOpts.hideDate?"":new Date().toISOString()+" "}function O_(...e){return process.stderr.write(Ka.formatWithOptions(We.inspectOpts,...e)+`
20
20
  `)}function B_(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function M_(){return process.env.DEBUG}function L_(e){e.inspectOpts={};let t=Object.keys(We.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=We.inspectOpts[t[r]]}qa.exports=Nl()(We);var{formatters:vD}=qa.exports;vD.o=function(e){return this.inspectOpts.colors=this.useColors,Ka.inspect(e,this.inspectOpts).split(`
21
- `).map(t=>t.trim()).join(" ")};vD.O=function(e){return this.inspectOpts.colors=this.useColors,Ka.inspect(e,this.inspectOpts)}});var Ga=S((BH,Ml)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ml.exports=fD():Ml.exports=CD()});var wD=S((MH,bD)=>{var ss;bD.exports=function(){if(!ss){try{ss=Ga()("follow-redirects")}catch{}typeof ss!="function"&&(ss=function(){})}ss.apply(null,arguments)}});var AD=S((LH,Yl)=>{var us=J("url"),as=us.URL,j_=J("http"),U_=J("https"),Hl=J("stream").Writable,zl=J("assert"),xD=wD();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=eo(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Kl=!1;try{zl(new as(""))}catch(e){Kl=e.code==="ERR_INVALID_URL"}var V_=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ql=["abort","aborted","connect","error","socket","timeout"],Gl=Object.create(null);ql.forEach(function(e){Gl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var jl=cs("ERR_INVALID_URL","Invalid URL",TypeError),Ul=cs("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),H_=cs("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Ul),z_=cs("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),K_=cs("ERR_STREAM_WRITE_AFTER_END","write after end"),q_=Hl.prototype.destroy||ED;function Ct(e,t){Hl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof Ul?o:new Ul({cause:o}))}},this._performRequest()}Ct.prototype=Object.create(Hl.prototype);Ct.prototype.abort=function(){Jl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Ct.prototype.destroy=function(e){return Jl(this._currentRequest,e),q_.call(this,e),this};Ct.prototype.write=function(e,t,r){if(this._ending)throw new K_;if(!Xn(e)&&!J_(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(eo(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new z_),this.abort())};Ct.prototype.end=function(e,t,r){if(eo(e)?(r=e,e=t=null):eo(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};Ct.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Ct.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Ct.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Ct.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{get:function(){return this._currentRequest[e]}})});Ct.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};Ct.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of ql)n.on(o,Gl[o]);if(this._currentUrl=/^\//.test(this._options.path)?us.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;(function u(c){if(n===i._currentRequest)if(c)i.emit("error",c);else if(s<a.length){var l=a[s++];n.finished||n.write(l.data,l.encoding,u)}else i._ended&&n.end()})()}};Ct.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Jl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new H_;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ll(/^content-/i,this._options.headers));var i=Ll(/^host$/i,this._options.headers),a=Wl(this._currentUrl),u=i||a.host,c=/^\w+:/.test(r)?this._currentUrl:us.format(Object.assign(a,{host:u})),l=G_(r,c);if(xD("redirecting to",l.href),this._isRedirect=!0,Vl(l,this._options),(l.protocol!==a.protocol&&l.protocol!=="https:"||l.host!==u&&!W_(l.host,u))&&Ll(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),eo(o)){var d={headers:e.headers,statusCode:t},p={url:c,method:s,headers:n};o(this._options,d,p),this._sanitizeOptions(this._options)}this._performRequest()};function SD(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function a(c,l,d){return Y_(c)?c=Vl(c):Xn(c)?c=Vl(Wl(c)):(d=l,l=PD(c),c={protocol:o}),eo(l)&&(d=l,l=null),l=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},c,l),l.nativeProtocols=r,!Xn(l.host)&&!Xn(l.hostname)&&(l.hostname="::1"),zl.equal(l.protocol,o,"protocol mismatch"),xD("options",l),new Ct(l,d)}function u(c,l,d){var p=i.request(c,l,d);return p.end(),p}Object.defineProperties(i,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function ED(){}function Wl(e){var t;if(Kl)t=new as(e);else if(t=PD(us.parse(e)),!Xn(t.protocol))throw new jl({input:e});return t}function G_(e,t){return Kl?new as(e,t):Wl(us.resolve(t,e))}function PD(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new jl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new jl({input:e.href||e});return e}function Vl(e,t){var r=t||{};for(var n of V_)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function Ll(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function cs(e,t,r){function n(o){eo(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function Jl(e,t){for(var r of ql)e.removeListener(r,Gl[r]);e.on("error",ED),e.destroy(t)}function W_(e,t){zl(Xn(e)&&Xn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Xn(e){return typeof e=="string"||e instanceof String}function eo(e){return typeof e=="function"}function J_(e){return typeof e=="object"&&"length"in e}function Y_(e){return as&&e instanceof as}Yl.exports=SD({http:j_,https:U_});Yl.exports.wrap=SD});var ls=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isSSL=void 0;Bt.setupOutgoing=eT;Bt.setupSocket=tT;Bt.getPort=rT;Bt.hasEncryptedConnection=TD;Bt.urlJoin=RD;Bt.rewriteCookieProperty=ID;Bt.toURL=kD;var Q_=J("node:tls"),Z_=/(^|,)\s*upgrade\s*($|,)/i;Bt.isSSL=/^https|wss/;var X_="trailer",FD=[":method",":path",":scheme",":authority","connection","keep-alive"];function eT(e,t,r,n){let o=t[n||"target"];e.port=+(o.port??(o.protocol!==void 0&&Bt.isSSL.test(o.protocol)?443:80));for(let a of["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"])e[a]=o[a];e.method=t.method||r.method,e.headers={...r.headers},r.headers?.[":authority"]&&(e.headers.host=r.headers[":authority"]),t.headers&&(e.headers={...e.headers,...t.headers});for(let a in e.headers)if(X_==a.toLowerCase()){delete e.headers[a];break}if(r.httpVersionMajor>1)for(let a of FD)delete e.headers[a];t.auth&&(delete e.headers.authorization,e.auth=t.auth),t.ca&&(e.ca=t.ca),o.protocol!==void 0&&Bt.isSSL.test(o.protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!Z_.test(e.headers.connection))&&(e.headers.connection="close"));let s=o&&t.prependPath!==!1&&"pathname"in o?_D(`${o.pathname}${o.search??""}`):"/",i=t.toProxy?r.url:_D(r.url);if(i=t.ignorePath?"":i,e.path=RD(s,i??""),t.changeOrigin&&(e.headers.host=o.protocol!==void 0&&oT(e.port,o.protocol)&&!nT(e.host)?e.host+":"+e.port:e.host),e.url="href"in o&&o.href||(o.protocol==="https"?"https":"http")+"://"+e.host+(e.port?":"+e.port:""),r.httpVersionMajor>1)for(let a of FD)delete e.headers[a];return e}function tT(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e}function rT(e){let t=e.headers[":authority"]||e.headers.host,r=t?t.match(/:(\d+)/):"";return r?r[1]:TD(e)?"443":"80"}function TD(e){let t=e.connection;return t instanceof Q_.TLSSocket&&t.encrypted||!!t.pair}function RD(...e){let t=[],r="";e.forEach((o,s)=>{let i=o.indexOf("?");i!==-1&&(t.push(o.substring(i+1)),e[s]=o.substring(0,i))}),r=t.filter(Boolean).join("&");let n="";for(let o of e)o&&(n.endsWith("/")?o.startsWith("/")?n+=o.slice(1):n+=o:o.startsWith("/")?n+=o:n+="/"+o);return r?n+"?"+r:n}function ID(e,t,r){return Array.isArray(e)?e.map(n=>ID(n,t,r)):e.replace(new RegExp("(;\\s*"+r+"=)([^;]+)","i"),(n,o,s)=>{let i;if(s in t)i=t[s];else if("*"in t)i=t["*"];else return n;return i?o+i:""})}function nT(e){return!!~e.indexOf(":")}function _D(e){if(e===""||e?.startsWith("?"))return e;let t=kD(e);return`${t.pathname??""}${t.search??""}`}function kD(e){return e instanceof URL?e:(typeof e=="object"&&"href"in e&&typeof e.href=="string"&&(e=e.href),e||(e=""),typeof e!="string"&&(e=`${e}`),e.startsWith("//")&&(e=`http://base.invalid${e}`),new URL(e,"http://base.invalid"))}function oT(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443}return e!==0}});var Ql=S(pt=>{"use strict";var iT=pt&&pt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),sT=pt&&pt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),aT=pt&&pt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&iT(r,t,n[o]);return sT(r,t),r}})();Object.defineProperty(pt,"__esModule",{value:!0});pt.OUTGOING_PASSES=void 0;pt.removeChunked=$D;pt.setConnection=ND;pt.setRedirectHostRewrite=OD;pt.writeHeaders=BD;pt.writeStatusCode=MD;var Wa=aT(ls()),uT=/^201|30(1|2|7|8)$/;function $D(e,t,r){delete r.headers["transfer-encoding"]}function ND(e,t,r){e.httpVersion==="1.0"?r.headers.connection=e.headers.connection||"close":e.httpVersion!=="2.0"&&!r.headers.connection&&(r.headers.connection=e.headers.connection||"keep-alive")}function OD(e,t,r,n){if((n.hostRewrite||n.autoRewrite||n.protocolRewrite)&&r.headers.location&&uT.test(`${r.statusCode}`)){let o=Wa.toURL(n.target),s=r.headers.location;if(typeof s!="string")return;let i=Wa.toURL(s);if(o.host!=i.host)return;n.hostRewrite?i.host=n.hostRewrite:n.autoRewrite&&(i.host=e.headers[":authority"]??e.headers.host??""),n.protocolRewrite&&(i.protocol=n.protocolRewrite),r.headers.location=i.toString()}}function BD(e,t,r,n){let o=typeof n.cookieDomainRewrite=="string"?{"*":n.cookieDomainRewrite}:n.cookieDomainRewrite,s=typeof n.cookiePathRewrite=="string"?{"*":n.cookiePathRewrite}:n.cookiePathRewrite,i=n.preserveHeaderKeyCase,a=(c,l)=>{l!=null&&(o&&c.toLowerCase()==="set-cookie"&&(l=Wa.rewriteCookieProperty(l,o,"domain")),s&&c.toLowerCase()==="set-cookie"&&(l=Wa.rewriteCookieProperty(l,s,"path")),t.setHeader(String(c).trim(),l))},u;if(i&&r.rawHeaders!=null){u={};for(let c=0;c<r.rawHeaders.length;c+=2){let l=r.rawHeaders[c];u[l.toLowerCase()]=l}}for(let c in r.headers){let l=c;if(e.httpVersionMajor>1&&(l==="connection"||l==="keep-alive"))continue;let d=r.headers[l];i&&u&&(l=u[l]??l),a(l,d)}}function MD(e,t,r){t.statusCode=r.statusCode,r.statusMessage&&e.httpVersionMajor===1&&(t.statusMessage=r.statusMessage)}pt.OUTGOING_PASSES={removeChunked:$D,setConnection:ND,setRedirectHostRewrite:OD,writeHeaders:BD,writeStatusCode:MD}});var zD=S(bt=>{"use strict";var cT=bt&&bt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),lT=bt&&bt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Ja=bt&&bt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&cT(r,t,n[o]);return lT(r,t),r}})();Object.defineProperty(bt,"__esModule",{value:!0});bt.WEB_PASSES=void 0;bt.deleteLength=jD;bt.timeout=UD;bt.XHeaders=VD;bt.stream=HD;var dT=Ja(J("node:http")),pT=Ja(J("node:https")),fT=Ja(AD()),Zo=Ja(ls()),mT=Ql(),gT=J("node:stream"),LD=Object.values(mT.OUTGOING_PASSES),hT={http:dT,https:pT};function jD(e){(e.method==="DELETE"||e.method==="OPTIONS")&&!e.headers["content-length"]&&(e.headers["content-length"]="0",delete e.headers["transfer-encoding"])}function UD(e,t,r){r.timeout&&e.socket.setTimeout(r.timeout)}function VD(e,t,r){if(!r.xfwd)return;let n=Zo.hasEncryptedConnection(e),o={for:e.connection.remoteAddress||e.socket.remoteAddress,port:Zo.getPort(e),proto:n?"https":"http"};for(let s of["for","port","proto"])e.headers["x-forwarded-"+s]=(e.headers["x-forwarded-"+s]||"")+(e.headers["x-forwarded-"+s]?",":"")+o[s];e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers[":authority"]||e.headers.host||""}function HD(e,t,r,n,o,s){if(o.emit("start",e,t,r.target||r.forward),r.fetch||r.fetchOptions||process.env.FORCE_FETCH_PATH==="true")return yT(e,t,r,n,o,s);let i=r.followRedirects?fT:hT,a=i.http,u=i.https;if(r.forward){let g=r.forward.protocol==="https:"?u:a,m=Zo.setupOutgoing(r.ssl||{},r,e,"forward"),y=g.request(m),D=h(y,r.forward);if(e.on("error",D),y.on("error",D),(r.buffer||e).pipe(y),!r.target)return t.end()}let c=r.target.protocol==="https:"?u:a,l=Zo.setupOutgoing(r.ssl||{},r,e),d=c.request(l);d.on("socket",g=>{o&&!d.getHeader("expect")&&o.emit("proxyReq",d,e,t,r,g)}),r.proxyTimeout&&d.setTimeout(r.proxyTimeout,()=>{d.destroy()}),t.on("close",()=>{!t.writableFinished&&d.destroy()});let p=h(d,r.target);e.on("error",p),d.on("error",p);function h(g,m){return y=>{if(e.socket.destroyed&&y.code==="ECONNRESET"){o.emit("econnreset",y,e,t,m),g.destroy();return}s?s(y,e,t,m):o.emit("error",y,e,t,m)}}(r.buffer||e).pipe(d),d.on("response",g=>{if(o?.emit("proxyRes",g,e,t),!t.headersSent&&!r.selfHandleResponse)for(let m of LD)m(e,t,g,r);t.finished?o?.emit("end",e,t,g):(g.on("end",()=>{o?.emit("end",e,t,g)}),r.selfHandleResponse||g.pipe(t))})}async function yT(e,t,r,n,o,s){let i=(h,g)=>{let m=h;m.code===void 0&&m.cause?.code&&(m.code=m.cause.code),s?s(h,e,t,g):o.emit("error",h,e,t,g)};e.on("error",h=>{if(e.socket.destroyed&&h.code==="ECONNRESET"){let g=r.target||r.forward;g&&o.emit("econnreset",h,e,t,g);return}i(h)});let a=r.fetch||fetch,u=r.fetchOptions??{},c=h=>{let g={method:h.method,...u.requestOptions},m=new Headers(u.requestOptions?.headers);if(!u.requestOptions?.headers&&h.headers){for(let[y,D]of Object.entries(h.headers))if(typeof y=="string")if(Array.isArray(D))for(let w of D)m.append(y,w);else D!=null&&m.append(y,D)}return r.auth&&m.set("authorization",`Basic ${Buffer.from(r.auth).toString("base64")}`),r.proxyTimeout&&(g.signal=AbortSignal.timeout(r.proxyTimeout)),g.headers=m,r.buffer?g.body=r.buffer:e.method!=="GET"&&e.method!=="HEAD"&&(g.body=e,g.duplex="half"),g};if(r.forward){let h=Zo.setupOutgoing(r.ssl||{},r,e,"forward"),g=c(h),m=new URL(h.url).origin+h.path;if(m.startsWith("ws")&&(m=m.replace("ws","http")),u.onBeforeRequest)try{await u.onBeforeRequest(g,e,t,r)}catch(y){i(y,r.forward);return}try{let y=await a(m,g);if(u.onAfterResponse)try{await u.onAfterResponse(y,e,t,r)}catch(D){i(D,r.forward);return}}catch(y){i(y,r.forward)}if(!r.target)return t.end()}let l=Zo.setupOutgoing(r.ssl||{},r,e),d=c(l),p=new URL(l.url).origin+l.path;if(p.startsWith("ws")&&(p=p.replace("ws","http")),u.onBeforeRequest)try{await u.onBeforeRequest(d,e,t,r)}catch(h){i(h,r.target);return}try{let h=await a(p,d);if(u.onAfterResponse)try{await u.onAfterResponse(h,e,t,r)}catch(m){i(m,r.target);return}let g={statusCode:h.status,statusMessage:h.statusText,headers:Object.fromEntries(h.headers.entries()),rawHeaders:Object.entries(h.headers).flatMap(([m,y])=>Array.isArray(y)?y.flatMap(D=>D!=null?[m,D]:[]):y!=null?[m,y]:[])};if(o?.emit("proxyRes",g,e,t),!t.headersSent&&!r.selfHandleResponse)for(let m of LD)m(e,t,g,r);if(t.writableEnded)o?.emit("end",e,t,g);else{let m=h.body?gT.Readable.from(h.body):null;m?(m.on("error",y=>{i(y,r.target)}),m.on("end",()=>{o?.emit("end",e,t,g)}),r.selfHandleResponse?m.resume():m.pipe(t,{end:!0})):o?.emit("end",e,t,g)}}catch(h){i(h,r.target)}}bt.WEB_PASSES={deleteLength:jD,timeout:UD,XHeaders:VD,stream:HD}});var rd=S(nt=>{"use strict";var DT=nt&&nt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),vT=nt&&nt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),td=nt&&nt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&DT(r,t,n[o]);return vT(r,t),r}})(),CT=nt&&nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});nt.WS_PASSES=void 0;nt.numOpenSockets=PT;nt.checkMethodAndHeader=qD;nt.XHeaders=GD;nt.stream=WD;var bT=td(J("node:http")),wT=td(J("node:https")),Xo=td(ls()),xT=Ql(),ST=CT(Ga()),ei=(0,ST.default)("http-proxy-3:ws-incoming"),ET=Object.values(xT.OUTGOING_PASSES);function KD(e){let t=new Set;return({add:r,rm:n}={})=>(r&&(r.id||(r.id=Math.random()),t.has(r.id)||t.add(r.id)),n&&(n.id||(n.id=Math.random()),t.has(n.id)&&t.delete(n.id)),ei("socket counter:",{[e]:t.size},r?"add":n?"rm":""),t.size)}var Zl=KD("socket"),Xl=KD("proxySocket"),ed=class{constructor(){this.headers={},this.statusCode=200,this.statusMessage=""}setHeader(t,r){return this.headers[t]=r,this}};function PT(){return Zl()+Xl()}function qD(e,t){if(ei("websocket: checkMethodAndHeader"),e.method!=="GET"||!e.headers.upgrade||e.headers.upgrade.toLowerCase()!=="websocket")return t.destroy(),!0}function GD(e,t,r){if(!r.xfwd)return;ei("websocket: XHeaders");let n={for:e.connection.remoteAddress||e.socket.remoteAddress,port:Xo.getPort(e),proto:Xo.hasEncryptedConnection(e)?"wss":"ws"};for(let o of["for","port","proto"])e.headers["x-forwarded-"+o]=(e.headers["x-forwarded-"+o]||"")+(e.headers["x-forwarded-"+o]?",":"")+n[o]}function WD(e,t,r,n,o,s){ei("websocket: new stream");let i=[];Zl({add:t});let a=()=>{for(let h of i)h.end()};t.on("close",()=>{Zl({rm:t}),a()}),t.on("error",a);let u=(h,g)=>Object.keys(g).reduce((m,y)=>{let D=g[y];if(!Array.isArray(D))return m.push(y+": "+D),m;for(let w=0;w<D.length;w++)m.push(y+": "+D[w]);return m},[h]).join(`\r
21
+ `).map(t=>t.trim()).join(" ")};vD.O=function(e){return this.inspectOpts.colors=this.useColors,Ka.inspect(e,this.inspectOpts)}});var Ga=S((BH,Ml)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ml.exports=fD():Ml.exports=CD()});var wD=S((MH,bD)=>{var ss;bD.exports=function(){if(!ss){try{ss=Ga()("follow-redirects")}catch{}typeof ss!="function"&&(ss=function(){})}ss.apply(null,arguments)}});var AD=S((LH,Yl)=>{var us=Y("url"),as=us.URL,j_=Y("http"),U_=Y("https"),Hl=Y("stream").Writable,zl=Y("assert"),xD=wD();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=eo(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Kl=!1;try{zl(new as(""))}catch(e){Kl=e.code==="ERR_INVALID_URL"}var V_=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ql=["abort","aborted","connect","error","socket","timeout"],Gl=Object.create(null);ql.forEach(function(e){Gl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var jl=cs("ERR_INVALID_URL","Invalid URL",TypeError),Ul=cs("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),H_=cs("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Ul),z_=cs("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),K_=cs("ERR_STREAM_WRITE_AFTER_END","write after end"),q_=Hl.prototype.destroy||ED;function Ct(e,t){Hl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof Ul?o:new Ul({cause:o}))}},this._performRequest()}Ct.prototype=Object.create(Hl.prototype);Ct.prototype.abort=function(){Jl(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Ct.prototype.destroy=function(e){return Jl(this._currentRequest,e),q_.call(this,e),this};Ct.prototype.write=function(e,t,r){if(this._ending)throw new K_;if(!Xn(e)&&!J_(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(eo(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new z_),this.abort())};Ct.prototype.end=function(e,t,r){if(eo(e)?(r=e,e=t=null):eo(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};Ct.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Ct.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Ct.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Ct.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{get:function(){return this._currentRequest[e]}})});Ct.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};Ct.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of ql)n.on(o,Gl[o]);if(this._currentUrl=/^\//.test(this._options.path)?us.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,a=this._requestBodyBuffers;(function u(c){if(n===i._currentRequest)if(c)i.emit("error",c);else if(s<a.length){var l=a[s++];n.finished||n.write(l.data,l.encoding,u)}else i._ended&&n.end()})()}};Ct.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Jl(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new H_;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ll(/^content-/i,this._options.headers));var i=Ll(/^host$/i,this._options.headers),a=Wl(this._currentUrl),u=i||a.host,c=/^\w+:/.test(r)?this._currentUrl:us.format(Object.assign(a,{host:u})),l=G_(r,c);if(xD("redirecting to",l.href),this._isRedirect=!0,Vl(l,this._options),(l.protocol!==a.protocol&&l.protocol!=="https:"||l.host!==u&&!W_(l.host,u))&&Ll(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),eo(o)){var d={headers:e.headers,statusCode:t},p={url:c,method:s,headers:n};o(this._options,d,p),this._sanitizeOptions(this._options)}this._performRequest()};function SD(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function a(c,l,d){return Y_(c)?c=Vl(c):Xn(c)?c=Vl(Wl(c)):(d=l,l=PD(c),c={protocol:o}),eo(l)&&(d=l,l=null),l=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},c,l),l.nativeProtocols=r,!Xn(l.host)&&!Xn(l.hostname)&&(l.hostname="::1"),zl.equal(l.protocol,o,"protocol mismatch"),xD("options",l),new Ct(l,d)}function u(c,l,d){var p=i.request(c,l,d);return p.end(),p}Object.defineProperties(i,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function ED(){}function Wl(e){var t;if(Kl)t=new as(e);else if(t=PD(us.parse(e)),!Xn(t.protocol))throw new jl({input:e});return t}function G_(e,t){return Kl?new as(e,t):Wl(us.resolve(t,e))}function PD(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new jl({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new jl({input:e.href||e});return e}function Vl(e,t){var r=t||{};for(var n of V_)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function Ll(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function cs(e,t,r){function n(o){eo(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function Jl(e,t){for(var r of ql)e.removeListener(r,Gl[r]);e.on("error",ED),e.destroy(t)}function W_(e,t){zl(Xn(e)&&Xn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Xn(e){return typeof e=="string"||e instanceof String}function eo(e){return typeof e=="function"}function J_(e){return typeof e=="object"&&"length"in e}function Y_(e){return as&&e instanceof as}Yl.exports=SD({http:j_,https:U_});Yl.exports.wrap=SD});var ls=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isSSL=void 0;Bt.setupOutgoing=eT;Bt.setupSocket=tT;Bt.getPort=rT;Bt.hasEncryptedConnection=TD;Bt.urlJoin=RD;Bt.rewriteCookieProperty=ID;Bt.toURL=kD;var Q_=Y("node:tls"),Z_=/(^|,)\s*upgrade\s*($|,)/i;Bt.isSSL=/^https|wss/;var X_="trailer",FD=[":method",":path",":scheme",":authority","connection","keep-alive"];function eT(e,t,r,n){let o=t[n||"target"];e.port=+(o.port??(o.protocol!==void 0&&Bt.isSSL.test(o.protocol)?443:80));for(let a of["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"])e[a]=o[a];e.method=t.method||r.method,e.headers={...r.headers},r.headers?.[":authority"]&&(e.headers.host=r.headers[":authority"]),t.headers&&(e.headers={...e.headers,...t.headers});for(let a in e.headers)if(X_==a.toLowerCase()){delete e.headers[a];break}if(r.httpVersionMajor>1)for(let a of FD)delete e.headers[a];t.auth&&(delete e.headers.authorization,e.auth=t.auth),t.ca&&(e.ca=t.ca),o.protocol!==void 0&&Bt.isSSL.test(o.protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!Z_.test(e.headers.connection))&&(e.headers.connection="close"));let s=o&&t.prependPath!==!1&&"pathname"in o?_D(`${o.pathname}${o.search??""}`):"/",i=t.toProxy?r.url:_D(r.url);if(i=t.ignorePath?"":i,e.path=RD(s,i??""),t.changeOrigin&&(e.headers.host=o.protocol!==void 0&&oT(e.port,o.protocol)&&!nT(e.host)?e.host+":"+e.port:e.host),e.url="href"in o&&o.href||(o.protocol==="https"?"https":"http")+"://"+e.host+(e.port?":"+e.port:""),r.httpVersionMajor>1)for(let a of FD)delete e.headers[a];return e}function tT(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e}function rT(e){let t=e.headers[":authority"]||e.headers.host,r=t?t.match(/:(\d+)/):"";return r?r[1]:TD(e)?"443":"80"}function TD(e){let t=e.connection;return t instanceof Q_.TLSSocket&&t.encrypted||!!t.pair}function RD(...e){let t=[],r="";e.forEach((o,s)=>{let i=o.indexOf("?");i!==-1&&(t.push(o.substring(i+1)),e[s]=o.substring(0,i))}),r=t.filter(Boolean).join("&");let n="";for(let o of e)o&&(n.endsWith("/")?o.startsWith("/")?n+=o.slice(1):n+=o:o.startsWith("/")?n+=o:n+="/"+o);return r?n+"?"+r:n}function ID(e,t,r){return Array.isArray(e)?e.map(n=>ID(n,t,r)):e.replace(new RegExp("(;\\s*"+r+"=)([^;]+)","i"),(n,o,s)=>{let i;if(s in t)i=t[s];else if("*"in t)i=t["*"];else return n;return i?o+i:""})}function nT(e){return!!~e.indexOf(":")}function _D(e){if(e===""||e?.startsWith("?"))return e;let t=kD(e);return`${t.pathname??""}${t.search??""}`}function kD(e){return e instanceof URL?e:(typeof e=="object"&&"href"in e&&typeof e.href=="string"&&(e=e.href),e||(e=""),typeof e!="string"&&(e=`${e}`),e.startsWith("//")&&(e=`http://base.invalid${e}`),new URL(e,"http://base.invalid"))}function oT(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443}return e!==0}});var Ql=S(pt=>{"use strict";var iT=pt&&pt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),sT=pt&&pt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),aT=pt&&pt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&iT(r,t,n[o]);return sT(r,t),r}})();Object.defineProperty(pt,"__esModule",{value:!0});pt.OUTGOING_PASSES=void 0;pt.removeChunked=$D;pt.setConnection=ND;pt.setRedirectHostRewrite=OD;pt.writeHeaders=BD;pt.writeStatusCode=MD;var Wa=aT(ls()),uT=/^201|30(1|2|7|8)$/;function $D(e,t,r){delete r.headers["transfer-encoding"]}function ND(e,t,r){e.httpVersion==="1.0"?r.headers.connection=e.headers.connection||"close":e.httpVersion!=="2.0"&&!r.headers.connection&&(r.headers.connection=e.headers.connection||"keep-alive")}function OD(e,t,r,n){if((n.hostRewrite||n.autoRewrite||n.protocolRewrite)&&r.headers.location&&uT.test(`${r.statusCode}`)){let o=Wa.toURL(n.target),s=r.headers.location;if(typeof s!="string")return;let i=Wa.toURL(s);if(o.host!=i.host)return;n.hostRewrite?i.host=n.hostRewrite:n.autoRewrite&&(i.host=e.headers[":authority"]??e.headers.host??""),n.protocolRewrite&&(i.protocol=n.protocolRewrite),r.headers.location=i.toString()}}function BD(e,t,r,n){let o=typeof n.cookieDomainRewrite=="string"?{"*":n.cookieDomainRewrite}:n.cookieDomainRewrite,s=typeof n.cookiePathRewrite=="string"?{"*":n.cookiePathRewrite}:n.cookiePathRewrite,i=n.preserveHeaderKeyCase,a=(c,l)=>{l!=null&&(o&&c.toLowerCase()==="set-cookie"&&(l=Wa.rewriteCookieProperty(l,o,"domain")),s&&c.toLowerCase()==="set-cookie"&&(l=Wa.rewriteCookieProperty(l,s,"path")),t.setHeader(String(c).trim(),l))},u;if(i&&r.rawHeaders!=null){u={};for(let c=0;c<r.rawHeaders.length;c+=2){let l=r.rawHeaders[c];u[l.toLowerCase()]=l}}for(let c in r.headers){let l=c;if(e.httpVersionMajor>1&&(l==="connection"||l==="keep-alive"))continue;let d=r.headers[l];i&&u&&(l=u[l]??l),a(l,d)}}function MD(e,t,r){t.statusCode=r.statusCode,r.statusMessage&&e.httpVersionMajor===1&&(t.statusMessage=r.statusMessage)}pt.OUTGOING_PASSES={removeChunked:$D,setConnection:ND,setRedirectHostRewrite:OD,writeHeaders:BD,writeStatusCode:MD}});var zD=S(bt=>{"use strict";var cT=bt&&bt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),lT=bt&&bt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Ja=bt&&bt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&cT(r,t,n[o]);return lT(r,t),r}})();Object.defineProperty(bt,"__esModule",{value:!0});bt.WEB_PASSES=void 0;bt.deleteLength=jD;bt.timeout=UD;bt.XHeaders=VD;bt.stream=HD;var dT=Ja(Y("node:http")),pT=Ja(Y("node:https")),fT=Ja(AD()),Zo=Ja(ls()),mT=Ql(),gT=Y("node:stream"),LD=Object.values(mT.OUTGOING_PASSES),hT={http:dT,https:pT};function jD(e){(e.method==="DELETE"||e.method==="OPTIONS")&&!e.headers["content-length"]&&(e.headers["content-length"]="0",delete e.headers["transfer-encoding"])}function UD(e,t,r){r.timeout&&e.socket.setTimeout(r.timeout)}function VD(e,t,r){if(!r.xfwd)return;let n=Zo.hasEncryptedConnection(e),o={for:e.connection.remoteAddress||e.socket.remoteAddress,port:Zo.getPort(e),proto:n?"https":"http"};for(let s of["for","port","proto"])e.headers["x-forwarded-"+s]=(e.headers["x-forwarded-"+s]||"")+(e.headers["x-forwarded-"+s]?",":"")+o[s];e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers[":authority"]||e.headers.host||""}function HD(e,t,r,n,o,s){if(o.emit("start",e,t,r.target||r.forward),r.fetch||r.fetchOptions||process.env.FORCE_FETCH_PATH==="true")return yT(e,t,r,n,o,s);let i=r.followRedirects?fT:hT,a=i.http,u=i.https;if(r.forward){let g=r.forward.protocol==="https:"?u:a,m=Zo.setupOutgoing(r.ssl||{},r,e,"forward"),y=g.request(m),D=h(y,r.forward);if(e.on("error",D),y.on("error",D),(r.buffer||e).pipe(y),!r.target)return t.end()}let c=r.target.protocol==="https:"?u:a,l=Zo.setupOutgoing(r.ssl||{},r,e),d=c.request(l);d.on("socket",g=>{o&&!d.getHeader("expect")&&o.emit("proxyReq",d,e,t,r,g)}),r.proxyTimeout&&d.setTimeout(r.proxyTimeout,()=>{d.destroy()}),t.on("close",()=>{!t.writableFinished&&d.destroy()});let p=h(d,r.target);e.on("error",p),d.on("error",p);function h(g,m){return y=>{if(e.socket.destroyed&&y.code==="ECONNRESET"){o.emit("econnreset",y,e,t,m),g.destroy();return}s?s(y,e,t,m):o.emit("error",y,e,t,m)}}(r.buffer||e).pipe(d),d.on("response",g=>{if(o?.emit("proxyRes",g,e,t),!t.headersSent&&!r.selfHandleResponse)for(let m of LD)m(e,t,g,r);t.finished?o?.emit("end",e,t,g):(g.on("end",()=>{o?.emit("end",e,t,g)}),r.selfHandleResponse||g.pipe(t))})}async function yT(e,t,r,n,o,s){let i=(h,g)=>{let m=h;m.code===void 0&&m.cause?.code&&(m.code=m.cause.code),s?s(h,e,t,g):o.emit("error",h,e,t,g)};e.on("error",h=>{if(e.socket.destroyed&&h.code==="ECONNRESET"){let g=r.target||r.forward;g&&o.emit("econnreset",h,e,t,g);return}i(h)});let a=r.fetch||fetch,u=r.fetchOptions??{},c=h=>{let g={method:h.method,...u.requestOptions},m=new Headers(u.requestOptions?.headers);if(!u.requestOptions?.headers&&h.headers){for(let[y,D]of Object.entries(h.headers))if(typeof y=="string")if(Array.isArray(D))for(let w of D)m.append(y,w);else D!=null&&m.append(y,D)}return r.auth&&m.set("authorization",`Basic ${Buffer.from(r.auth).toString("base64")}`),r.proxyTimeout&&(g.signal=AbortSignal.timeout(r.proxyTimeout)),g.headers=m,r.buffer?g.body=r.buffer:e.method!=="GET"&&e.method!=="HEAD"&&(g.body=e,g.duplex="half"),g};if(r.forward){let h=Zo.setupOutgoing(r.ssl||{},r,e,"forward"),g=c(h),m=new URL(h.url).origin+h.path;if(m.startsWith("ws")&&(m=m.replace("ws","http")),u.onBeforeRequest)try{await u.onBeforeRequest(g,e,t,r)}catch(y){i(y,r.forward);return}try{let y=await a(m,g);if(u.onAfterResponse)try{await u.onAfterResponse(y,e,t,r)}catch(D){i(D,r.forward);return}}catch(y){i(y,r.forward)}if(!r.target)return t.end()}let l=Zo.setupOutgoing(r.ssl||{},r,e),d=c(l),p=new URL(l.url).origin+l.path;if(p.startsWith("ws")&&(p=p.replace("ws","http")),u.onBeforeRequest)try{await u.onBeforeRequest(d,e,t,r)}catch(h){i(h,r.target);return}try{let h=await a(p,d);if(u.onAfterResponse)try{await u.onAfterResponse(h,e,t,r)}catch(m){i(m,r.target);return}let g={statusCode:h.status,statusMessage:h.statusText,headers:Object.fromEntries(h.headers.entries()),rawHeaders:Object.entries(h.headers).flatMap(([m,y])=>Array.isArray(y)?y.flatMap(D=>D!=null?[m,D]:[]):y!=null?[m,y]:[])};if(o?.emit("proxyRes",g,e,t),!t.headersSent&&!r.selfHandleResponse)for(let m of LD)m(e,t,g,r);if(t.writableEnded)o?.emit("end",e,t,g);else{let m=h.body?gT.Readable.from(h.body):null;m?(m.on("error",y=>{i(y,r.target)}),m.on("end",()=>{o?.emit("end",e,t,g)}),r.selfHandleResponse?m.resume():m.pipe(t,{end:!0})):o?.emit("end",e,t,g)}}catch(h){i(h,r.target)}}bt.WEB_PASSES={deleteLength:jD,timeout:UD,XHeaders:VD,stream:HD}});var rd=S(nt=>{"use strict";var DT=nt&&nt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),vT=nt&&nt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),td=nt&&nt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&DT(r,t,n[o]);return vT(r,t),r}})(),CT=nt&&nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});nt.WS_PASSES=void 0;nt.numOpenSockets=PT;nt.checkMethodAndHeader=qD;nt.XHeaders=GD;nt.stream=WD;var bT=td(Y("node:http")),wT=td(Y("node:https")),Xo=td(ls()),xT=Ql(),ST=CT(Ga()),ei=(0,ST.default)("http-proxy-3:ws-incoming"),ET=Object.values(xT.OUTGOING_PASSES);function KD(e){let t=new Set;return({add:r,rm:n}={})=>(r&&(r.id||(r.id=Math.random()),t.has(r.id)||t.add(r.id)),n&&(n.id||(n.id=Math.random()),t.has(n.id)&&t.delete(n.id)),ei("socket counter:",{[e]:t.size},r?"add":n?"rm":""),t.size)}var Zl=KD("socket"),Xl=KD("proxySocket"),ed=class{constructor(){this.headers={},this.statusCode=200,this.statusMessage=""}setHeader(t,r){return this.headers[t]=r,this}};function PT(){return Zl()+Xl()}function qD(e,t){if(ei("websocket: checkMethodAndHeader"),e.method!=="GET"||!e.headers.upgrade||e.headers.upgrade.toLowerCase()!=="websocket")return t.destroy(),!0}function GD(e,t,r){if(!r.xfwd)return;ei("websocket: XHeaders");let n={for:e.connection.remoteAddress||e.socket.remoteAddress,port:Xo.getPort(e),proto:Xo.hasEncryptedConnection(e)?"wss":"ws"};for(let o of["for","port","proto"])e.headers["x-forwarded-"+o]=(e.headers["x-forwarded-"+o]||"")+(e.headers["x-forwarded-"+o]?",":"")+n[o]}function WD(e,t,r,n,o,s){ei("websocket: new stream");let i=[];Zl({add:t});let a=()=>{for(let h of i)h.end()};t.on("close",()=>{Zl({rm:t}),a()}),t.on("error",a);let u=(h,g)=>Object.keys(g).reduce((m,y)=>{let D=g[y];if(!Array.isArray(D))return m.push(y+": "+D),m;for(let w=0;w<D.length;w++)m.push(y+": "+D[w]);return m},[h]).join(`\r
22
22
  `)+`\r
23
23
  \r
24
24
  `;Xo.setupSocket(t),n&&n.length&&t.unshift(n);let c=Xo.isSSL.test(r.target.protocol)?wT:bT,l=Xo.setupOutgoing(r.ssl||{},r,e),d=c.request(l);o&&o.emit("proxyReqWs",d,e,t,r,n),d.on("error",p),d.on("upgrade",(h,g,m)=>{ei("upgrade"),Xl({add:g}),i.push(g),g.on("close",()=>{Xl({rm:g})}),g.on("error",p),g.on("end",()=>{o.emit("close",h,g,m)}),g.on("close",()=>{t.end()}),Xo.setupSocket(g),m&&m.length&&g.unshift(m),t.write(u("HTTP/1.1 101 Switching Protocols",h.headers)),g.pipe(t).pipe(g),o.emit("open",g)});function p(h){s?s(h,e,t):o.emit("error",h,e,t),t.destroySoon()}d.on("response",h=>{ei("got non-ws HTTP response",{statusCode:h.statusCode,statusMessage:h.statusMessage});let g=new ed;for(let D of ET)D(e,g,h,r);let m=D=>{t.write(D)};e.httpVersion==="1.1"&&h.headers["content-length"]===void 0&&(g.headers["transfer-encoding"]="chunked",m=D=>{t.write(D.length.toString(16)),t.write(`\r
25
25
  `),t.write(D),t.write(`\r
26
- `)});let y=u(`HTTP/${e.httpVersion} ${h.statusCode} ${h.statusMessage}`,g.headers);t.destroyed?h.resume():(t.write(y),h.on("data",D=>{m(D)}),h.on("end",()=>{m(""),t.destroySoon()}))}),d.end()}nt.WS_PASSES={checkMethodAndHeader:qD,XHeaders:GD,stream:WD}});var YD=S(Wt=>{"use strict";var AT=Wt&&Wt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),FT=Wt&&Wt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),JD=Wt&&Wt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&AT(r,t,n[o]);return FT(r,t),r}})(),_T=Wt&&Wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.ProxyServer=void 0;var TT=JD(J("node:http")),RT=JD(J("node:http2")),IT=zD(),kT=rd(),$T=J("node:events"),NT=_T(Ga()),OT=ls(),Ya=(0,NT.default)("http-proxy-3"),nd=class e extends $T.EventEmitter{constructor(t={}){super(),this.createRightProxy=r=>(Ya("createRightProxy",{type:r}),n=>(...o)=>{let s=o[0];Ya("proxy: ",{type:r,path:s.url});let i=o[1],a=r==="ws"?this.wsPasses:this.webPasses;r=="ws"&&i.on("error",p=>{this.emit("error",p,s,i)});let u=o.length-1,c,l;typeof o[u]=="function"&&(l=o[u],u--);let d;!(o[u]instanceof Buffer)&&o[u]!==i?(d={...n,...o[u]},u--):d={...n},o[u]instanceof Buffer&&(c=o[u]);for(let p of["target","forward"])typeof d[p]=="string"&&(d[p]=(0,OT.toURL)(d[p]));if(!d.target&&!d.forward){this.emit("error",new Error("Must set target or forward"),s,i);return}for(let p of a)if(p(s,i,d,c,this,l))break}),this.onError=r=>{if(this.listeners("error").length===1)throw r},this.listen=(r,n)=>{Ya("listen",{port:r,hostname:n});let o=(s,i)=>{this.web(s,i)};return this._server=this.options.ssl?RT.createSecureServer({...this.options.ssl,allowHTTP1:!0},o):TT.createServer(o),this.options.ws&&this._server.on("upgrade",(s,i,a)=>{this.ws(s,i,a)}),this._server.listen(r,n),this},this.address=()=>this._server?.address(),this.close=r=>{if(this._server==null){r?.();return}this._server.close(n=>{this._server=null,r?.(n)})},this.before=(r,n,o)=>{if(r!=="ws"&&r!=="web")throw new Error("type must be `web` or `ws`");let s=r==="ws"?this.wsPasses:this.webPasses,i=!1;if(s.forEach((a,u)=>{a.name===n&&(i=u)}),i===!1)throw new Error("No such pass");s.splice(i,0,o)},this.after=(r,n,o)=>{if(r!=="ws"&&r!=="web")throw new Error("type must be `web` or `ws`");let s=r==="ws"?this.wsPasses:this.webPasses,i=!1;if(s.forEach((a,u)=>{a.name===n&&(i=u)}),i===!1)throw new Error("No such pass");s.splice(i++,0,o)},Ya("creating a ProxyServer",t),t.prependPath=t.prependPath!==!1,this.options=t,this.web=this.createRightProxy("web")(t),this.ws=this.createRightProxy("ws")(t),this.webPasses=Object.values(IT.WEB_PASSES),this.wsPasses=Object.values(kT.WS_PASSES),this.on("error",this.onError)}static createProxyServer(t){return new e(t)}static createServer(t){return new e(t)}static createProxy(t){return new e(t)}};Wt.ProxyServer=nd});var QD=S(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.numOpenSockets=Nr.ProxyServer=void 0;Nr.createProxyServer=id;Nr.createServer=id;Nr.createProxy=id;var od=YD();Object.defineProperty(Nr,"ProxyServer",{enumerable:!0,get:function(){return od.ProxyServer}});var BT=rd();Object.defineProperty(Nr,"numOpenSockets",{enumerable:!0,get:function(){return BT.numOpenSockets}});function id(e={}){return new od.ProxyServer(e)}Nr.default=od.ProxyServer});var ev=S(sd=>{"use strict";sd.parse=zT;sd.serialize=KT;var MT=Object.prototype.toString,LT=Object.prototype.hasOwnProperty,jT=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,UT=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,VT=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,HT=/^[\u0020-\u003A\u003D-\u007E]*$/;function zT(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var o=t&&t.decode||qT,s=0,i=0,a=0;do{if(i=e.indexOf("=",s),i===-1)break;if(a=e.indexOf(";",s),a===-1)a=n;else if(i>a){s=e.lastIndexOf(";",i-1)+1;continue}var u=ZD(e,s,i),c=XD(e,i,u),l=e.slice(u,c);if(!LT.call(r,l)){var d=ZD(e,i+1,a),p=XD(e,a,d);e.charCodeAt(d)===34&&e.charCodeAt(p-1)===34&&(d++,p--);var h=e.slice(d,p);r[l]=WT(h,o)}s=a+1}while(s<n);return r}function ZD(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function XD(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function KT(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!jT.test(e))throw new TypeError("argument name is invalid");var o=n(t);if(!UT.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(!r)return s;if(r.maxAge!=null){var i=Math.floor(r.maxAge);if(!isFinite(i))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+i}if(r.domain){if(!VT.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!HT.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var a=r.expires;if(!GT(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+a.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function qT(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function GT(e){return MT.call(e)==="[object Date]"}function WT(e,t){try{return t(e)}catch{return e}}});var nv=S(Qa=>{var rv=J("crypto");Qa.sign=function(e,t){if(typeof e!="string")throw new TypeError("Cookie value must be provided as a string.");if(typeof t!="string")throw new TypeError("Secret string must be provided.");return e+"."+rv.createHmac("sha256",t).update(e).digest("base64").replace(/\=+$/,"")};Qa.unsign=function(e,t){if(typeof e!="string")throw new TypeError("Signed cookie string must be provided.");if(typeof t!="string")throw new TypeError("Secret string must be provided.");var r=e.slice(0,e.lastIndexOf(".")),n=Qa.sign(r,t);return tv(n)==tv(e)?r:!1};function tv(e){return rv.createHash("sha1").update(e).digest("hex")}});var av=S((WH,ti)=>{"use strict";var JT=ev(),YT=nv();ti.exports=QT;ti.exports.JSONCookie=ov;ti.exports.JSONCookies=ad;ti.exports.signedCookie=iv;ti.exports.signedCookies=sv;function QT(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(o,s,i){if(o.cookies)return i();var a=o.headers.cookie;if(o.secret=r[0],o.cookies=Object.create(null),o.signedCookies=Object.create(null),!a)return i();o.cookies=JT.parse(a,t),r.length!==0&&(o.signedCookies=sv(o.cookies,r),o.signedCookies=ad(o.signedCookies)),o.cookies=ad(o.cookies),i()}}function ov(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function ad(e){for(var t=Object.keys(e),r,n,o=0;o<t.length;o++)r=t[o],n=ov(e[r]),n&&(e[r]=n);return e}function iv(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],n=0;n<r.length;n++){var o=YT.unsign(e.slice(2),r[n]);if(o!==!1)return o}return!1}}function sv(e,t){for(var r=Object.keys(e),n,o,s=Object.create(null),i,a=0;a<r.length;a++)o=r[a],i=e[o],n=iv(i,t),i!==n&&(s[o]=n,delete e[o]);return s}});var vs=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.regexpCode=me.getEsmExportName=me.getProperty=me.safeStringify=me.stringify=me.strConcat=me.addCodeArg=me.str=me._=me.nil=me._Code=me.Name=me.IDENTIFIER=me._CodeOrName=void 0;var ys=class{};me._CodeOrName=ys;me.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Do=class extends ys{constructor(t){if(super(),!me.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};me.Name=Do;var er=class extends ys{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Do&&(r[n.str]=(r[n.str]||0)+1),r),{})}};me._Code=er;me.nil=new er("");function Lv(e,...t){let r=[e[0]],n=0;for(;n<t.length;)bd(r,t[n]),r.push(e[++n]);return new er(r)}me._=Lv;var Cd=new er("+");function jv(e,...t){let r=[Ds(e[0])],n=0;for(;n<t.length;)r.push(Cd),bd(r,t[n]),r.push(Cd,Ds(e[++n]));return hI(r),new er(r)}me.str=jv;function bd(e,t){t instanceof er?e.push(...t._items):t instanceof Do?e.push(t):e.push(vI(t))}me.addCodeArg=bd;function hI(e){let t=1;for(;t<e.length-1;){if(e[t]===Cd){let r=yI(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function yI(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Do||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Do))return`"${e}${t.slice(1)}`}function DI(e,t){return t.emptyStr()?e:e.emptyStr()?t:jv`${e}${t}`}me.strConcat=DI;function vI(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ds(Array.isArray(e)?e.join(","):e)}function CI(e){return new er(Ds(e))}me.stringify=CI;function Ds(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}me.safeStringify=Ds;function bI(e){return typeof e=="string"&&me.IDENTIFIER.test(e)?new er(`.${e}`):Lv`[${e}]`}me.getProperty=bI;function wI(e){if(typeof e=="string"&&me.IDENTIFIER.test(e))return new er(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}me.getEsmExportName=wI;function xI(e){return new er(e.toString())}me.regexpCode=xI});var Sd=S(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ValueScope=Pt.ValueScopeName=Pt.Scope=Pt.varKinds=Pt.UsedValueState=void 0;var Et=vs(),wd=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},uu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(uu||(Pt.UsedValueState=uu={}));Pt.varKinds={const:new Et.Name("const"),let:new Et.Name("let"),var:new Et.Name("var")};var cu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Et.Name?t:this.name(t)}name(t){return new Et.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Pt.Scope=cu;var lu=class extends Et.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Et._)`.${new Et.Name(r)}[${n}]`}};Pt.ValueScopeName=lu;var SI=(0,Et._)`\n`,xd=class extends cu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?SI:Et.nil}}get(){return this._scope}name(t){return new lu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:s}=o,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,o);let u=this._scope[s]||(this._scope[s]=[]),c=u.length;return u[c]=r.ref,o.setValue(r,{property:s,itemIndex:c}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Et._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let s=Et.nil;for(let i in t){let a=t[i];if(!a)continue;let u=n[i]=n[i]||new Map;a.forEach(c=>{if(u.has(c))return;u.set(c,uu.Started);let l=r(c);if(l){let d=this.opts.es5?Pt.varKinds.var:Pt.varKinds.const;s=(0,Et._)`${s}${d} ${c} = ${l};${this.opts._n}`}else if(l=o?.(c))s=(0,Et._)`${s}${l}${this.opts._n}`;else throw new wd(c);u.set(c,uu.Completed)})}return s}};Pt.ValueScope=xd});var te=S(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.or=re.and=re.not=re.CodeGen=re.operators=re.varKinds=re.ValueScopeName=re.ValueScope=re.Scope=re.Name=re.regexpCode=re.stringify=re.getProperty=re.nil=re.strConcat=re.str=re._=void 0;var ue=vs(),pr=Sd(),Fn=vs();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return Fn._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return Fn.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return Fn.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return Fn.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return Fn.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return Fn.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return Fn.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return Fn.Name}});var mu=Sd();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return mu.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return mu.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return mu.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return mu.varKinds}});re.operators={GT:new ue._Code(">"),GTE:new ue._Code(">="),LT:new ue._Code("<"),LTE:new ue._Code("<="),EQ:new ue._Code("==="),NEQ:new ue._Code("!=="),NOT:new ue._Code("!"),OR:new ue._Code("||"),AND:new ue._Code("&&"),ADD:new ue._Code("+")};var sn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Ed=class extends sn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?pr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=di(this.rhs,t,r)),this}get names(){return this.rhs instanceof ue._CodeOrName?this.rhs.names:{}}},du=class extends sn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ue.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=di(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ue.Name?{}:{...this.lhs.names};return fu(t,this.rhs)}},Pd=class extends du{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Ad=class extends sn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Fd=class extends sn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},_d=class extends sn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Td=class extends sn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=di(this.code,t,r),this}get names(){return this.code instanceof ue._CodeOrName?this.code.names:{}}},Cs=class extends sn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let s=n[o];s.optimizeNames(t,r)||(EI(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>bo(t,r.names),{})}},an=class extends Cs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Rd=class extends Cs{},li=class extends an{};li.kind="else";var vo=class e extends an{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new li(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Uv(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=di(this.condition,t,r),this}get names(){let t=super.names;return fu(t,this.condition),this.else&&bo(t,this.else.names),t}};vo.kind="if";var Co=class extends an{};Co.kind="for";var Id=class extends Co{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=di(this.iteration,t,r),this}get names(){return bo(super.names,this.iteration.names)}},kd=class extends Co{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?pr.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${r} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=fu(super.names,this.from);return fu(t,this.to)}},pu=class extends Co{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=di(this.iterable,t,r),this}get names(){return bo(super.names,this.iterable.names)}},bs=class extends an{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};bs.kind="func";var ws=class extends Cs{render(t){return"return "+super.render(t)}};ws.kind="return";var $d=class extends an{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&bo(t,this.catch.names),this.finally&&bo(t,this.finally.names),t}},xs=class extends an{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};xs.kind="catch";var Ss=class extends an{render(t){return"finally"+super.render(t)}};Ss.kind="finally";var Nd=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
26
+ `)});let y=u(`HTTP/${e.httpVersion} ${h.statusCode} ${h.statusMessage}`,g.headers);t.destroyed?h.resume():(t.write(y),h.on("data",D=>{m(D)}),h.on("end",()=>{m(""),t.destroySoon()}))}),d.end()}nt.WS_PASSES={checkMethodAndHeader:qD,XHeaders:GD,stream:WD}});var YD=S(Wt=>{"use strict";var AT=Wt&&Wt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),FT=Wt&&Wt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),JD=Wt&&Wt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),o=0;o<n.length;o++)n[o]!=="default"&&AT(r,t,n[o]);return FT(r,t),r}})(),_T=Wt&&Wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.ProxyServer=void 0;var TT=JD(Y("node:http")),RT=JD(Y("node:http2")),IT=zD(),kT=rd(),$T=Y("node:events"),NT=_T(Ga()),OT=ls(),Ya=(0,NT.default)("http-proxy-3"),nd=class e extends $T.EventEmitter{constructor(t={}){super(),this.createRightProxy=r=>(Ya("createRightProxy",{type:r}),n=>(...o)=>{let s=o[0];Ya("proxy: ",{type:r,path:s.url});let i=o[1],a=r==="ws"?this.wsPasses:this.webPasses;r=="ws"&&i.on("error",p=>{this.emit("error",p,s,i)});let u=o.length-1,c,l;typeof o[u]=="function"&&(l=o[u],u--);let d;!(o[u]instanceof Buffer)&&o[u]!==i?(d={...n,...o[u]},u--):d={...n},o[u]instanceof Buffer&&(c=o[u]);for(let p of["target","forward"])typeof d[p]=="string"&&(d[p]=(0,OT.toURL)(d[p]));if(!d.target&&!d.forward){this.emit("error",new Error("Must set target or forward"),s,i);return}for(let p of a)if(p(s,i,d,c,this,l))break}),this.onError=r=>{if(this.listeners("error").length===1)throw r},this.listen=(r,n)=>{Ya("listen",{port:r,hostname:n});let o=(s,i)=>{this.web(s,i)};return this._server=this.options.ssl?RT.createSecureServer({...this.options.ssl,allowHTTP1:!0},o):TT.createServer(o),this.options.ws&&this._server.on("upgrade",(s,i,a)=>{this.ws(s,i,a)}),this._server.listen(r,n),this},this.address=()=>this._server?.address(),this.close=r=>{if(this._server==null){r?.();return}this._server.close(n=>{this._server=null,r?.(n)})},this.before=(r,n,o)=>{if(r!=="ws"&&r!=="web")throw new Error("type must be `web` or `ws`");let s=r==="ws"?this.wsPasses:this.webPasses,i=!1;if(s.forEach((a,u)=>{a.name===n&&(i=u)}),i===!1)throw new Error("No such pass");s.splice(i,0,o)},this.after=(r,n,o)=>{if(r!=="ws"&&r!=="web")throw new Error("type must be `web` or `ws`");let s=r==="ws"?this.wsPasses:this.webPasses,i=!1;if(s.forEach((a,u)=>{a.name===n&&(i=u)}),i===!1)throw new Error("No such pass");s.splice(i++,0,o)},Ya("creating a ProxyServer",t),t.prependPath=t.prependPath!==!1,this.options=t,this.web=this.createRightProxy("web")(t),this.ws=this.createRightProxy("ws")(t),this.webPasses=Object.values(IT.WEB_PASSES),this.wsPasses=Object.values(kT.WS_PASSES),this.on("error",this.onError)}static createProxyServer(t){return new e(t)}static createServer(t){return new e(t)}static createProxy(t){return new e(t)}};Wt.ProxyServer=nd});var QD=S(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.numOpenSockets=Nr.ProxyServer=void 0;Nr.createProxyServer=id;Nr.createServer=id;Nr.createProxy=id;var od=YD();Object.defineProperty(Nr,"ProxyServer",{enumerable:!0,get:function(){return od.ProxyServer}});var BT=rd();Object.defineProperty(Nr,"numOpenSockets",{enumerable:!0,get:function(){return BT.numOpenSockets}});function id(e={}){return new od.ProxyServer(e)}Nr.default=od.ProxyServer});var ev=S(sd=>{"use strict";sd.parse=zT;sd.serialize=KT;var MT=Object.prototype.toString,LT=Object.prototype.hasOwnProperty,jT=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,UT=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,VT=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,HT=/^[\u0020-\u003A\u003D-\u007E]*$/;function zT(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var o=t&&t.decode||qT,s=0,i=0,a=0;do{if(i=e.indexOf("=",s),i===-1)break;if(a=e.indexOf(";",s),a===-1)a=n;else if(i>a){s=e.lastIndexOf(";",i-1)+1;continue}var u=ZD(e,s,i),c=XD(e,i,u),l=e.slice(u,c);if(!LT.call(r,l)){var d=ZD(e,i+1,a),p=XD(e,a,d);e.charCodeAt(d)===34&&e.charCodeAt(p-1)===34&&(d++,p--);var h=e.slice(d,p);r[l]=WT(h,o)}s=a+1}while(s<n);return r}function ZD(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function XD(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function KT(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!jT.test(e))throw new TypeError("argument name is invalid");var o=n(t);if(!UT.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(!r)return s;if(r.maxAge!=null){var i=Math.floor(r.maxAge);if(!isFinite(i))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+i}if(r.domain){if(!VT.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!HT.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var a=r.expires;if(!GT(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+a.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var c=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function qT(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function GT(e){return MT.call(e)==="[object Date]"}function WT(e,t){try{return t(e)}catch{return e}}});var nv=S(Qa=>{var rv=Y("crypto");Qa.sign=function(e,t){if(typeof e!="string")throw new TypeError("Cookie value must be provided as a string.");if(typeof t!="string")throw new TypeError("Secret string must be provided.");return e+"."+rv.createHmac("sha256",t).update(e).digest("base64").replace(/\=+$/,"")};Qa.unsign=function(e,t){if(typeof e!="string")throw new TypeError("Signed cookie string must be provided.");if(typeof t!="string")throw new TypeError("Secret string must be provided.");var r=e.slice(0,e.lastIndexOf(".")),n=Qa.sign(r,t);return tv(n)==tv(e)?r:!1};function tv(e){return rv.createHash("sha1").update(e).digest("hex")}});var av=S((WH,ti)=>{"use strict";var JT=ev(),YT=nv();ti.exports=QT;ti.exports.JSONCookie=ov;ti.exports.JSONCookies=ad;ti.exports.signedCookie=iv;ti.exports.signedCookies=sv;function QT(e,t){var r=!e||Array.isArray(e)?e||[]:[e];return function(o,s,i){if(o.cookies)return i();var a=o.headers.cookie;if(o.secret=r[0],o.cookies=Object.create(null),o.signedCookies=Object.create(null),!a)return i();o.cookies=JT.parse(a,t),r.length!==0&&(o.signedCookies=sv(o.cookies,r),o.signedCookies=ad(o.signedCookies)),o.cookies=ad(o.cookies),i()}}function ov(e){if(!(typeof e!="string"||e.substr(0,2)!=="j:"))try{return JSON.parse(e.slice(2))}catch{return}}function ad(e){for(var t=Object.keys(e),r,n,o=0;o<t.length;o++)r=t[o],n=ov(e[r]),n&&(e[r]=n);return e}function iv(e,t){if(typeof e=="string"){if(e.substr(0,2)!=="s:")return e;for(var r=!t||Array.isArray(t)?t||[]:[t],n=0;n<r.length;n++){var o=YT.unsign(e.slice(2),r[n]);if(o!==!1)return o}return!1}}function sv(e,t){for(var r=Object.keys(e),n,o,s=Object.create(null),i,a=0;a<r.length;a++)o=r[a],i=e[o],n=iv(i,t),i!==n&&(s[o]=n,delete e[o]);return s}});var vs=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.regexpCode=me.getEsmExportName=me.getProperty=me.safeStringify=me.stringify=me.strConcat=me.addCodeArg=me.str=me._=me.nil=me._Code=me.Name=me.IDENTIFIER=me._CodeOrName=void 0;var ys=class{};me._CodeOrName=ys;me.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Do=class extends ys{constructor(t){if(super(),!me.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};me.Name=Do;var er=class extends ys{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Do&&(r[n.str]=(r[n.str]||0)+1),r),{})}};me._Code=er;me.nil=new er("");function Lv(e,...t){let r=[e[0]],n=0;for(;n<t.length;)bd(r,t[n]),r.push(e[++n]);return new er(r)}me._=Lv;var Cd=new er("+");function jv(e,...t){let r=[Ds(e[0])],n=0;for(;n<t.length;)r.push(Cd),bd(r,t[n]),r.push(Cd,Ds(e[++n]));return hI(r),new er(r)}me.str=jv;function bd(e,t){t instanceof er?e.push(...t._items):t instanceof Do?e.push(t):e.push(vI(t))}me.addCodeArg=bd;function hI(e){let t=1;for(;t<e.length-1;){if(e[t]===Cd){let r=yI(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function yI(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Do||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Do))return`"${e}${t.slice(1)}`}function DI(e,t){return t.emptyStr()?e:e.emptyStr()?t:jv`${e}${t}`}me.strConcat=DI;function vI(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ds(Array.isArray(e)?e.join(","):e)}function CI(e){return new er(Ds(e))}me.stringify=CI;function Ds(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}me.safeStringify=Ds;function bI(e){return typeof e=="string"&&me.IDENTIFIER.test(e)?new er(`.${e}`):Lv`[${e}]`}me.getProperty=bI;function wI(e){if(typeof e=="string"&&me.IDENTIFIER.test(e))return new er(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}me.getEsmExportName=wI;function xI(e){return new er(e.toString())}me.regexpCode=xI});var Sd=S(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ValueScope=Pt.ValueScopeName=Pt.Scope=Pt.varKinds=Pt.UsedValueState=void 0;var Et=vs(),wd=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},uu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(uu||(Pt.UsedValueState=uu={}));Pt.varKinds={const:new Et.Name("const"),let:new Et.Name("let"),var:new Et.Name("var")};var cu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Et.Name?t:this.name(t)}name(t){return new Et.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Pt.Scope=cu;var lu=class extends Et.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Et._)`.${new Et.Name(r)}[${n}]`}};Pt.ValueScopeName=lu;var SI=(0,Et._)`\n`,xd=class extends cu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?SI:Et.nil}}get(){return this._scope}name(t){return new lu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:s}=o,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,o);let u=this._scope[s]||(this._scope[s]=[]),c=u.length;return u[c]=r.ref,o.setValue(r,{property:s,itemIndex:c}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Et._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let s=Et.nil;for(let i in t){let a=t[i];if(!a)continue;let u=n[i]=n[i]||new Map;a.forEach(c=>{if(u.has(c))return;u.set(c,uu.Started);let l=r(c);if(l){let d=this.opts.es5?Pt.varKinds.var:Pt.varKinds.const;s=(0,Et._)`${s}${d} ${c} = ${l};${this.opts._n}`}else if(l=o?.(c))s=(0,Et._)`${s}${l}${this.opts._n}`;else throw new wd(c);u.set(c,uu.Completed)})}return s}};Pt.ValueScope=xd});var te=S(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.or=re.and=re.not=re.CodeGen=re.operators=re.varKinds=re.ValueScopeName=re.ValueScope=re.Scope=re.Name=re.regexpCode=re.stringify=re.getProperty=re.nil=re.strConcat=re.str=re._=void 0;var ue=vs(),pr=Sd(),Fn=vs();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return Fn._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return Fn.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return Fn.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return Fn.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return Fn.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return Fn.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return Fn.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return Fn.Name}});var mu=Sd();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return mu.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return mu.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return mu.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return mu.varKinds}});re.operators={GT:new ue._Code(">"),GTE:new ue._Code(">="),LT:new ue._Code("<"),LTE:new ue._Code("<="),EQ:new ue._Code("==="),NEQ:new ue._Code("!=="),NOT:new ue._Code("!"),OR:new ue._Code("||"),AND:new ue._Code("&&"),ADD:new ue._Code("+")};var sn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Ed=class extends sn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?pr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=di(this.rhs,t,r)),this}get names(){return this.rhs instanceof ue._CodeOrName?this.rhs.names:{}}},du=class extends sn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ue.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=di(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ue.Name?{}:{...this.lhs.names};return fu(t,this.rhs)}},Pd=class extends du{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Ad=class extends sn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Fd=class extends sn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},_d=class extends sn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Td=class extends sn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=di(this.code,t,r),this}get names(){return this.code instanceof ue._CodeOrName?this.code.names:{}}},Cs=class extends sn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let s=n[o];s.optimizeNames(t,r)||(EI(t,s.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>bo(t,r.names),{})}},an=class extends Cs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Rd=class extends Cs{},li=class extends an{};li.kind="else";var vo=class e extends an{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new li(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Uv(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=di(this.condition,t,r),this}get names(){let t=super.names;return fu(t,this.condition),this.else&&bo(t,this.else.names),t}};vo.kind="if";var Co=class extends an{};Co.kind="for";var Id=class extends Co{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=di(this.iteration,t,r),this}get names(){return bo(super.names,this.iteration.names)}},kd=class extends Co{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?pr.varKinds.var:this.varKind,{name:n,from:o,to:s}=this;return`for(${r} ${n}=${o}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=fu(super.names,this.from);return fu(t,this.to)}},pu=class extends Co{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=di(this.iterable,t,r),this}get names(){return bo(super.names,this.iterable.names)}},bs=class extends an{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};bs.kind="func";var ws=class extends Cs{render(t){return"return "+super.render(t)}};ws.kind="return";var $d=class extends an{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&bo(t,this.catch.names),this.finally&&bo(t,this.finally.names),t}},xs=class extends an{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};xs.kind="catch";var Ss=class extends an{render(t){return"finally"+super.render(t)}};Ss.kind="finally";var Nd=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
27
27
  `:""},this._extScope=t,this._scope=new pr.Scope({parent:t}),this._nodes=[new Rd]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let s=this._scope.toName(r);return n!==void 0&&o&&(this._constants[s.str]=n),this._leafNode(new Ed(t,s,n)),s}const(t,r,n){return this._def(pr.varKinds.const,t,r,n)}let(t,r,n){return this._def(pr.varKinds.let,t,r,n)}var(t,r,n){return this._def(pr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new du(t,r,n))}add(t,r){return this._leafNode(new Pd(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ue.nil&&this._leafNode(new Td(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,ue.addCodeArg)(r,o));return r.push("}"),new ue._Code(r)}if(t,r,n){if(this._blockNode(new vo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new vo(t))}else(){return this._elseNode(new li)}endIf(){return this._endBlockNode(vo,li)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Id(t),r)}forRange(t,r,n,o,s=this.opts.es5?pr.varKinds.var:pr.varKinds.let){let i=this._scope.toName(t);return this._for(new kd(s,i,r,n),()=>o(i))}forOf(t,r,n,o=pr.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let i=r instanceof ue.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ue._)`${i}.length`,a=>{this.var(s,(0,ue._)`${i}[${a}]`),n(s)})}return this._for(new pu("of",o,s,r),()=>n(s))}forIn(t,r,n,o=this.opts.es5?pr.varKinds.var:pr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ue._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new pu("in",o,s,r),()=>n(s))}endFor(){return this._endBlockNode(Co)}label(t){return this._leafNode(new Ad(t))}break(t){return this._leafNode(new Fd(t))}return(t){let r=new ws;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ws)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new $d;if(this._blockNode(o),this.code(t),r){let s=this.name("e");this._currNode=o.catch=new xs(s),r(s)}return n&&(this._currNode=o.finally=new Ss,this.code(n)),this._endBlockNode(xs,Ss)}throw(t){return this._leafNode(new _d(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ue.nil,n,o){return this._blockNode(new bs(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(bs)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof vo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};re.CodeGen=Nd;function bo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function fu(e,t){return t instanceof ue._CodeOrName?bo(e,t.names):e}function di(e,t,r){if(e instanceof ue.Name)return n(e);if(!o(e))return e;return new ue._Code(e._items.reduce((s,i)=>(i instanceof ue.Name&&(i=n(i)),i instanceof ue._Code?s.push(...i._items):s.push(i),s),[]));function n(s){let i=r[s.str];return i===void 0||t[s.str]!==1?s:(delete t[s.str],i)}function o(s){return s instanceof ue._Code&&s._items.some(i=>i instanceof ue.Name&&t[i.str]===1&&r[i.str]!==void 0)}}function EI(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Uv(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ue._)`!${Od(e)}`}re.not=Uv;var PI=Vv(re.operators.AND);function AI(...e){return e.reduce(PI)}re.and=AI;var FI=Vv(re.operators.OR);function _I(...e){return e.reduce(FI)}re.or=_I;function Vv(e){return(t,r)=>t===ue.nil?r:r===ue.nil?t:(0,ue._)`${Od(t)} ${e} ${Od(r)}`}function Od(e){return e instanceof ue.Name?e:(0,ue._)`(${e})`}});var ge=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.checkStrictMode=oe.getErrorPath=oe.Type=oe.useFunc=oe.setEvaluated=oe.evaluatedPropsToName=oe.mergeEvaluated=oe.eachItem=oe.unescapeJsonPointer=oe.escapeJsonPointer=oe.escapeFragment=oe.unescapeFragment=oe.schemaRefOrVal=oe.schemaHasRulesButRef=oe.schemaHasRules=oe.checkUnknownRules=oe.alwaysValidSchema=oe.toHash=void 0;var we=te(),TI=vs();function RI(e){let t={};for(let r of e)t[r]=!0;return t}oe.toHash=RI;function II(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Kv(e,t),!qv(t,e.self.RULES.all))}oe.alwaysValidSchema=II;function Kv(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let s in t)o[s]||Jv(e,`unknown keyword: "${s}"`)}oe.checkUnknownRules=Kv;function qv(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}oe.schemaHasRules=qv;function kI(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}oe.schemaHasRulesButRef=kI;function $I({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,we._)`${r}`}return(0,we._)`${e}${t}${(0,we.getProperty)(n)}`}oe.schemaRefOrVal=$I;function NI(e){return Gv(decodeURIComponent(e))}oe.unescapeFragment=NI;function OI(e){return encodeURIComponent(Md(e))}oe.escapeFragment=OI;function Md(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}oe.escapeJsonPointer=Md;function Gv(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}oe.unescapeJsonPointer=Gv;function BI(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}oe.eachItem=BI;function Hv({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,s,i,a)=>{let u=i===void 0?s:i instanceof we.Name?(s instanceof we.Name?e(o,s,i):t(o,s,i),i):s instanceof we.Name?(t(o,i,s),s):r(s,i);return a===we.Name&&!(u instanceof we.Name)?n(o,u):u}}oe.mergeEvaluated={props:Hv({mergeNames:(e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,we._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,we._)`${r} || {}`).code((0,we._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,we._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,we._)`${r} || {}`),Ld(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Wv}),items:Hv({mergeNames:(e,t,r)=>e.if((0,we._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,we._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,we._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,we._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Wv(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,we._)`{}`);return t!==void 0&&Ld(e,r,t),r}oe.evaluatedPropsToName=Wv;function Ld(e,t,r){Object.keys(r).forEach(n=>e.assign((0,we._)`${t}${(0,we.getProperty)(n)}`,!0))}oe.setEvaluated=Ld;var zv={};function MI(e,t){return e.scopeValue("func",{ref:t,code:zv[t.code]||(zv[t.code]=new TI._Code(t.code))})}oe.useFunc=MI;var Bd;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Bd||(oe.Type=Bd={}));function LI(e,t,r){if(e instanceof we.Name){let n=t===Bd.Num;return r?n?(0,we._)`"[" + ${e} + "]"`:(0,we._)`"['" + ${e} + "']"`:n?(0,we._)`"/" + ${e}`:(0,we._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,we.getProperty)(e).toString():"/"+Md(e)}oe.getErrorPath=LI;function Jv(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}oe.checkStrictMode=Jv});var un=S(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var it=te(),jI={data:new it.Name("data"),valCxt:new it.Name("valCxt"),instancePath:new it.Name("instancePath"),parentData:new it.Name("parentData"),parentDataProperty:new it.Name("parentDataProperty"),rootData:new it.Name("rootData"),dynamicAnchors:new it.Name("dynamicAnchors"),vErrors:new it.Name("vErrors"),errors:new it.Name("errors"),this:new it.Name("this"),self:new it.Name("self"),scope:new it.Name("scope"),json:new it.Name("json"),jsonPos:new it.Name("jsonPos"),jsonLen:new it.Name("jsonLen"),jsonPart:new it.Name("jsonPart")};jd.default=jI});var Es=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.extendErrors=st.resetErrorsCount=st.reportExtraError=st.reportError=st.keyword$DataError=st.keywordError=void 0;var pe=te(),gu=ge(),ft=un();st.keywordError={message:({keyword:e})=>(0,pe.str)`must pass "${e}" keyword validation`};st.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,pe.str)`"${e}" keyword must be ${t} ($data)`:(0,pe.str)`"${e}" keyword is invalid ($data)`};function UI(e,t=st.keywordError,r,n){let{it:o}=e,{gen:s,compositeRule:i,allErrors:a}=o,u=Zv(e,t,r);n??(i||a)?Yv(s,u):Qv(o,(0,pe._)`[${u}]`)}st.reportError=UI;function VI(e,t=st.keywordError,r){let{it:n}=e,{gen:o,compositeRule:s,allErrors:i}=n,a=Zv(e,t,r);Yv(o,a),s||i||Qv(n,ft.default.vErrors)}st.reportExtraError=VI;function HI(e,t){e.assign(ft.default.errors,t),e.if((0,pe._)`${ft.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,pe._)`${ft.default.vErrors}.length`,t),()=>e.assign(ft.default.vErrors,null)))}st.resetErrorsCount=HI;function zI({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:s}){if(o===void 0)throw new Error("ajv implementation error");let i=e.name("err");e.forRange("i",o,ft.default.errors,a=>{e.const(i,(0,pe._)`${ft.default.vErrors}[${a}]`),e.if((0,pe._)`${i}.instancePath === undefined`,()=>e.assign((0,pe._)`${i}.instancePath`,(0,pe.strConcat)(ft.default.instancePath,s.errorPath))),e.assign((0,pe._)`${i}.schemaPath`,(0,pe.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,pe._)`${i}.schema`,r),e.assign((0,pe._)`${i}.data`,n))})}st.extendErrors=zI;function Yv(e,t){let r=e.const("err",t);e.if((0,pe._)`${ft.default.vErrors} === null`,()=>e.assign(ft.default.vErrors,(0,pe._)`[${r}]`),(0,pe._)`${ft.default.vErrors}.push(${r})`),e.code((0,pe._)`${ft.default.errors}++`)}function Qv(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,pe._)`new ${e.ValidationError}(${t})`):(r.assign((0,pe._)`${n}.errors`,t),r.return(!1))}var wo={keyword:new pe.Name("keyword"),schemaPath:new pe.Name("schemaPath"),params:new pe.Name("params"),propertyName:new pe.Name("propertyName"),message:new pe.Name("message"),schema:new pe.Name("schema"),parentSchema:new pe.Name("parentSchema")};function Zv(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,pe._)`{}`:KI(e,t,r)}function KI(e,t,r={}){let{gen:n,it:o}=e,s=[qI(o,r),GI(e,r)];return WI(e,t,s),n.object(...s)}function qI({errorPath:e},{instancePath:t}){let r=t?(0,pe.str)`${e}${(0,gu.getErrorPath)(t,gu.Type.Str)}`:e;return[ft.default.instancePath,(0,pe.strConcat)(ft.default.instancePath,r)]}function GI({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,pe.str)`${t}/${e}`;return r&&(o=(0,pe.str)`${o}${(0,gu.getErrorPath)(r,gu.Type.Str)}`),[wo.schemaPath,o]}function WI(e,{params:t,message:r},n){let{keyword:o,data:s,schemaValue:i,it:a}=e,{opts:u,propertyName:c,topSchemaRef:l,schemaPath:d}=a;n.push([wo.keyword,o],[wo.params,typeof t=="function"?t(e):t||(0,pe._)`{}`]),u.messages&&n.push([wo.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([wo.schema,i],[wo.parentSchema,(0,pe._)`${l}${d}`],[ft.default.data,s]),c&&n.push([wo.propertyName,c])}});var eC=S(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.boolOrEmptySchema=pi.topBoolOrEmptySchema=void 0;var JI=Es(),YI=te(),QI=un(),ZI={message:"boolean schema is false"};function XI(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Xv(e,!1):typeof r=="object"&&r.$async===!0?t.return(QI.default.data):(t.assign((0,YI._)`${n}.errors`,null),t.return(!0))}pi.topBoolOrEmptySchema=XI;function ek(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Xv(e)):r.var(t,!0)}pi.boolOrEmptySchema=ek;function Xv(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,JI.reportError)(o,ZI,void 0,t)}});var Ud=S(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.getRules=fi.isJSONType=void 0;var tk=["string","number","integer","boolean","null","object","array"],rk=new Set(tk);function nk(e){return typeof e=="string"&&rk.has(e)}fi.isJSONType=nk;function ok(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}fi.getRules=ok});var Vd=S(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.shouldUseRule=_n.shouldUseGroup=_n.schemaHasRulesForType=void 0;function ik({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&tC(e,n)}_n.schemaHasRulesForType=ik;function tC(e,t){return t.rules.some(r=>rC(e,r))}_n.shouldUseGroup=tC;function rC(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}_n.shouldUseRule=rC});var Ps=S(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.reportTypeError=at.checkDataTypes=at.checkDataType=at.coerceAndCheckDataType=at.getJSONTypes=at.getSchemaTypes=at.DataType=void 0;var sk=Ud(),ak=Vd(),uk=Es(),Q=te(),nC=ge(),mi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(mi||(at.DataType=mi={}));function ck(e){let t=oC(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}at.getSchemaTypes=ck;function oC(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(sk.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}at.getJSONTypes=oC;function lk(e,t){let{gen:r,data:n,opts:o}=e,s=dk(t,o.coerceTypes),i=t.length>0&&!(s.length===0&&t.length===1&&(0,ak.schemaHasRulesForType)(e,t[0]));if(i){let a=zd(t,n,o.strictNumbers,mi.Wrong);r.if(a,()=>{s.length?pk(e,t,s):Kd(e)})}return i}at.coerceAndCheckDataType=lk;var iC=new Set(["string","number","integer","boolean","null"]);function dk(e,t){return t?e.filter(r=>iC.has(r)||t==="array"&&r==="array"):[]}function pk(e,t,r){let{gen:n,data:o,opts:s}=e,i=n.let("dataType",(0,Q._)`typeof ${o}`),a=n.let("coerced",(0,Q._)`undefined`);s.coerceTypes==="array"&&n.if((0,Q._)`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,Q._)`${o}[0]`).assign(i,(0,Q._)`typeof ${o}`).if(zd(t,o,s.strictNumbers),()=>n.assign(a,o))),n.if((0,Q._)`${a} !== undefined`);for(let c of r)(iC.has(c)||c==="array"&&s.coerceTypes==="array")&&u(c);n.else(),Kd(e),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(o,a),fk(e,a)});function u(c){switch(c){case"string":n.elseIf((0,Q._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,Q._)`"" + ${o}`).elseIf((0,Q._)`${o} === null`).assign(a,(0,Q._)`""`);return;case"number":n.elseIf((0,Q._)`${i} == "boolean" || ${o} === null
28
28
  || (${i} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,Q._)`+${o}`);return;case"integer":n.elseIf((0,Q._)`${i} === "boolean" || ${o} === null
29
29
  || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,Q._)`+${o}`);return;case"boolean":n.elseIf((0,Q._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,Q._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Q._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Q._)`${i} === "string" || ${i} === "number"
30
30
  || ${i} === "boolean" || ${o} === null`).assign(a,(0,Q._)`[${o}]`)}}}function fk({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Q._)`${t} !== undefined`,()=>e.assign((0,Q._)`${t}[${r}]`,n))}function Hd(e,t,r,n=mi.Correct){let o=n===mi.Correct?Q.operators.EQ:Q.operators.NEQ,s;switch(e){case"null":return(0,Q._)`${t} ${o} null`;case"array":s=(0,Q._)`Array.isArray(${t})`;break;case"object":s=(0,Q._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i((0,Q._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return(0,Q._)`typeof ${t} ${o} ${e}`}return n===mi.Correct?s:(0,Q.not)(s);function i(a=Q.nil){return(0,Q.and)((0,Q._)`typeof ${t} == "number"`,a,r?(0,Q._)`isFinite(${t})`:Q.nil)}}at.checkDataType=Hd;function zd(e,t,r,n){if(e.length===1)return Hd(e[0],t,r,n);let o,s=(0,nC.toHash)(e);if(s.array&&s.object){let i=(0,Q._)`typeof ${t} != "object"`;o=s.null?i:(0,Q._)`!${t} || ${i}`,delete s.null,delete s.array,delete s.object}else o=Q.nil;s.number&&delete s.integer;for(let i in s)o=(0,Q.and)(o,Hd(i,t,r,n));return o}at.checkDataTypes=zd;var mk={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Q._)`{type: ${e}}`:(0,Q._)`{type: ${t}}`};function Kd(e){let t=gk(e);(0,uk.reportError)(t,mk)}at.reportTypeError=Kd;function gk(e){let{gen:t,data:r,schema:n}=e,o=(0,nC.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var aC=S(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.assignDefaults=void 0;var gi=te(),hk=ge();function yk(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)sC(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,s)=>sC(e,s,o.default))}hu.assignDefaults=yk;function sC(e,t,r){let{gen:n,compositeRule:o,data:s,opts:i}=e;if(r===void 0)return;let a=(0,gi._)`${s}${(0,gi.getProperty)(t)}`;if(o){(0,hk.checkStrictMode)(e,`default is ignored for: ${a}`);return}let u=(0,gi._)`${a} === undefined`;i.useDefaults==="empty"&&(u=(0,gi._)`${u} || ${a} === null || ${a} === ""`),n.if(u,(0,gi._)`${a} = ${(0,gi.stringify)(r)}`)}});var tr=S(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.validateUnion=Ce.validateArray=Ce.usePattern=Ce.callValidateCode=Ce.schemaProperties=Ce.allSchemaProperties=Ce.noPropertyInData=Ce.propertyInData=Ce.isOwnProperty=Ce.hasPropFunc=Ce.reportMissingProp=Ce.checkMissingProp=Ce.checkReportMissingProp=void 0;var _e=te(),qd=ge(),Tn=un(),Dk=ge();function vk(e,t){let{gen:r,data:n,it:o}=e;r.if(Wd(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,_e._)`${t}`},!0),e.error()})}Ce.checkReportMissingProp=vk;function Ck({gen:e,data:t,it:{opts:r}},n,o){return(0,_e.or)(...n.map(s=>(0,_e.and)(Wd(e,t,s,r.ownProperties),(0,_e._)`${o} = ${s}`)))}Ce.checkMissingProp=Ck;function bk(e,t){e.setParams({missingProperty:t},!0),e.error()}Ce.reportMissingProp=bk;function uC(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,_e._)`Object.prototype.hasOwnProperty`})}Ce.hasPropFunc=uC;function Gd(e,t,r){return(0,_e._)`${uC(e)}.call(${t}, ${r})`}Ce.isOwnProperty=Gd;function wk(e,t,r,n){let o=(0,_e._)`${t}${(0,_e.getProperty)(r)} !== undefined`;return n?(0,_e._)`${o} && ${Gd(e,t,r)}`:o}Ce.propertyInData=wk;function Wd(e,t,r,n){let o=(0,_e._)`${t}${(0,_e.getProperty)(r)} === undefined`;return n?(0,_e.or)(o,(0,_e.not)(Gd(e,t,r))):o}Ce.noPropertyInData=Wd;function cC(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ce.allSchemaProperties=cC;function xk(e,t){return cC(t).filter(r=>!(0,qd.alwaysValidSchema)(e,t[r]))}Ce.schemaProperties=xk;function Sk({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},a,u,c){let l=c?(0,_e._)`${e}, ${t}, ${n}${o}`:t,d=[[Tn.default.instancePath,(0,_e.strConcat)(Tn.default.instancePath,s)],[Tn.default.parentData,i.parentData],[Tn.default.parentDataProperty,i.parentDataProperty],[Tn.default.rootData,Tn.default.rootData]];i.opts.dynamicRef&&d.push([Tn.default.dynamicAnchors,Tn.default.dynamicAnchors]);let p=(0,_e._)`${l}, ${r.object(...d)}`;return u!==_e.nil?(0,_e._)`${a}.call(${u}, ${p})`:(0,_e._)`${a}(${p})`}Ce.callValidateCode=Sk;var Ek=(0,_e._)`new RegExp`;function Pk({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,_e._)`${o.code==="new RegExp"?Ek:(0,Dk.useFunc)(e,o)}(${r}, ${n})`})}Ce.usePattern=Pk;function Ak(e){let{gen:t,data:r,keyword:n,it:o}=e,s=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return i(()=>t.assign(a,!1)),a}return t.var(s,!0),i(()=>t.break()),s;function i(a){let u=t.const("len",(0,_e._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:n,dataProp:c,dataPropType:qd.Type.Num},s),t.if((0,_e.not)(s),a)})}}Ce.validateArray=Ak;function Fk(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,qd.alwaysValidSchema)(o,u))&&!o.opts.unevaluated)return;let i=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((u,c)=>{let l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},a);t.assign(i,(0,_e._)`${i} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,_e.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Ce.validateUnion=Fk});var pC=S(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.validateKeywordUsage=jr.validSchemaType=jr.funcKeywordCode=jr.macroKeywordCode=void 0;var mt=te(),xo=un(),_k=tr(),Tk=Es();function Rk(e,t){let{gen:r,keyword:n,schema:o,parentSchema:s,it:i}=e,a=t.macro.call(i.self,o,s,i),u=dC(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let c=r.name("valid");e.subschema({schema:a,schemaPath:mt.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}jr.macroKeywordCode=Rk;function Ik(e,t){var r;let{gen:n,keyword:o,schema:s,parentSchema:i,$data:a,it:u}=e;$k(u,t);let c=!a&&t.compile?t.compile.call(u.self,s,i,u):t.validate,l=dC(n,o,c),d=n.let("valid");e.block$data(d,p),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function p(){if(t.errors===!1)m(),t.modifying&&lC(e),y(()=>e.error());else{let D=t.async?h():g();t.modifying&&lC(e),y(()=>kk(e,D))}}function h(){let D=n.let("ruleErrs",null);return n.try(()=>m((0,mt._)`await `),w=>n.assign(d,!1).if((0,mt._)`${w} instanceof ${u.ValidationError}`,()=>n.assign(D,(0,mt._)`${w}.errors`),()=>n.throw(w))),D}function g(){let D=(0,mt._)`${l}.errors`;return n.assign(D,null),m(mt.nil),D}function m(D=t.async?(0,mt._)`await `:mt.nil){let w=u.opts.passContext?xo.default.this:xo.default.self,x=!("compile"in t&&!a||t.schema===!1);n.assign(d,(0,mt._)`${D}${(0,_k.callValidateCode)(e,l,w,x)}`,t.modifying)}function y(D){var w;n.if((0,mt.not)((w=t.valid)!==null&&w!==void 0?w:d),D)}}jr.funcKeywordCode=Ik;function lC(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,mt._)`${n.parentData}[${n.parentDataProperty}]`))}function kk(e,t){let{gen:r}=e;r.if((0,mt._)`Array.isArray(${t})`,()=>{r.assign(xo.default.vErrors,(0,mt._)`${xo.default.vErrors} === null ? ${t} : ${xo.default.vErrors}.concat(${t})`).assign(xo.default.errors,(0,mt._)`${xo.default.vErrors}.length`),(0,Tk.extendErrors)(e)},()=>e.error())}function $k({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function dC(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,mt.stringify)(r)})}function Nk(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}jr.validSchemaType=Nk;function Ok({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");let i=o.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}jr.validateKeywordUsage=Ok});var mC=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.extendSubschemaMode=Rn.extendSubschemaData=Rn.getSubschema=void 0;var Ur=te(),fC=ge();function Bk(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Ur._)`${e.schemaPath}${(0,Ur.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Ur._)`${e.schemaPath}${(0,Ur.getProperty)(t)}${(0,Ur.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,fC.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Rn.getSubschema=Bk;function Mk(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:c,dataPathArr:l,opts:d}=t,p=a.let("data",(0,Ur._)`${t.data}${(0,Ur.getProperty)(r)}`,!0);u(p),e.errorPath=(0,Ur.str)`${c}${(0,fC.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Ur._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let c=o instanceof Ur.Name?o:a.let("data",o,!0);u(c),i!==void 0&&(e.propertyName=i)}s&&(e.dataTypes=s);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Rn.extendSubschemaData=Mk;function Lk(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Rn.extendSubschemaMode=Lk});var Jd=S((XK,gC)=>{"use strict";gC.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}});var yC=S((eq,hC)=>{"use strict";var In=hC.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};yu(t,n,o,e,"",e)};In.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};In.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};In.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};In.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function yu(e,t,r,n,o,s,i,a,u,c){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,s,i,a,u,c);for(var l in n){var d=n[l];if(Array.isArray(d)){if(l in In.arrayKeywords)for(var p=0;p<d.length;p++)yu(e,t,r,d[p],o+"/"+l+"/"+p,s,o,l,n,p)}else if(l in In.propsKeywords){if(d&&typeof d=="object")for(var h in d)yu(e,t,r,d[h],o+"/"+l+"/"+jk(h),s,o,l,n,h)}else(l in In.keywords||e.allKeys&&!(l in In.skipKeywords))&&yu(e,t,r,d,o+"/"+l,s,o,l,n)}r(n,o,s,i,a,u,c)}}function jk(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var As=S(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.getSchemaRefs=At.resolveUrl=At.normalizeId=At._getFullPath=At.getFullPath=At.inlineRef=void 0;var Uk=ge(),Vk=Jd(),Hk=yC(),zk=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Kk(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Yd(e):t?DC(e)<=t:!1}At.inlineRef=Kk;var qk=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Yd(e){for(let t in e){if(qk.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Yd)||typeof r=="object"&&Yd(r))return!0}return!1}function DC(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!zk.has(r)&&(typeof e[r]=="object"&&(0,Uk.eachItem)(e[r],n=>t+=DC(n)),t===1/0))return 1/0}return t}function vC(e,t="",r){r!==!1&&(t=hi(t));let n=e.parse(t);return CC(e,n)}At.getFullPath=vC;function CC(e,t){return e.serialize(t).split("#")[0]+"#"}At._getFullPath=CC;var Gk=/#\/?$/;function hi(e){return e?e.replace(Gk,""):""}At.normalizeId=hi;function Wk(e,t,r){return r=hi(r),e.resolve(t,r)}At.resolveUrl=Wk;var Jk=/^[a-z_][-a-z0-9._]*$/i;function Yk(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=hi(e[r]||t),s={"":o},i=vC(n,o,!1),a={},u=new Set;return Hk(e,{allKeys:!0},(d,p,h,g)=>{if(g===void 0)return;let m=i+p,y=s[g];typeof d[r]=="string"&&(y=D.call(this,d[r])),w.call(this,d.$anchor),w.call(this,d.$dynamicAnchor),s[p]=y;function D(x){let F=this.opts.uriResolver.resolve;if(x=hi(y?F(y,x):x),u.has(x))throw l(x);u.add(x);let P=this.refs[x];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?c(d,P.schema,x):x!==hi(m)&&(x[0]==="#"?(c(d,a[x],x),a[x]=d):this.refs[x]=m),x}function w(x){if(typeof x=="string"){if(!Jk.test(x))throw new Error(`invalid anchor "${x}"`);D.call(this,`#${x}`)}}}),a;function c(d,p,h){if(p!==void 0&&!Vk(d,p))throw l(h)}function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}}At.getSchemaRefs=Yk});var Ts=S(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.getData=kn.KeywordCxt=kn.validateFunctionCode=void 0;var EC=eC(),bC=Ps(),Zd=Vd(),Du=Ps(),Qk=aC(),_s=pC(),Qd=mC(),U=te(),G=un(),Zk=As(),cn=ge(),Fs=Es();function Xk(e){if(FC(e)&&(_C(e),AC(e))){r$(e);return}PC(e,()=>(0,EC.topBoolOrEmptySchema)(e))}kn.validateFunctionCode=Xk;function PC({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,(0,U._)`${G.default.data}, ${G.default.valCxt}`,n.$async,()=>{e.code((0,U._)`"use strict"; ${wC(r,o)}`),t$(e,o),e.code(s)}):e.func(t,(0,U._)`${G.default.data}, ${e$(o)}`,n.$async,()=>e.code(wC(r,o)).code(s))}function e$(e){return(0,U._)`{${G.default.instancePath}="", ${G.default.parentData}, ${G.default.parentDataProperty}, ${G.default.rootData}=${G.default.data}${e.dynamicRef?(0,U._)`, ${G.default.dynamicAnchors}={}`:U.nil}}={}`}function t$(e,t){e.if(G.default.valCxt,()=>{e.var(G.default.instancePath,(0,U._)`${G.default.valCxt}.${G.default.instancePath}`),e.var(G.default.parentData,(0,U._)`${G.default.valCxt}.${G.default.parentData}`),e.var(G.default.parentDataProperty,(0,U._)`${G.default.valCxt}.${G.default.parentDataProperty}`),e.var(G.default.rootData,(0,U._)`${G.default.valCxt}.${G.default.rootData}`),t.dynamicRef&&e.var(G.default.dynamicAnchors,(0,U._)`${G.default.valCxt}.${G.default.dynamicAnchors}`)},()=>{e.var(G.default.instancePath,(0,U._)`""`),e.var(G.default.parentData,(0,U._)`undefined`),e.var(G.default.parentDataProperty,(0,U._)`undefined`),e.var(G.default.rootData,G.default.data),t.dynamicRef&&e.var(G.default.dynamicAnchors,(0,U._)`{}`)})}function r$(e){let{schema:t,opts:r,gen:n}=e;PC(e,()=>{r.$comment&&t.$comment&&RC(e),a$(e),n.let(G.default.vErrors,null),n.let(G.default.errors,0),r.unevaluated&&n$(e),TC(e),l$(e)})}function n$(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,U._)`${r}.evaluated`),t.if((0,U._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,U._)`${e.evaluated}.props`,(0,U._)`undefined`)),t.if((0,U._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,U._)`${e.evaluated}.items`,(0,U._)`undefined`))}function wC(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,U._)`/*# sourceURL=${r} */`:U.nil}function o$(e,t){if(FC(e)&&(_C(e),AC(e))){i$(e,t);return}(0,EC.boolOrEmptySchema)(e,t)}function AC({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function FC(e){return typeof e.schema!="boolean"}function i$(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&RC(e),u$(e),c$(e);let s=n.const("_errs",G.default.errors);TC(e,s),n.var(t,(0,U._)`${s} === ${G.default.errors}`)}function _C(e){(0,cn.checkUnknownRules)(e),s$(e)}function TC(e,t){if(e.opts.jtd)return xC(e,[],!1,t);let r=(0,bC.getSchemaTypes)(e.schema),n=(0,bC.coerceAndCheckDataType)(e,r);xC(e,r,!n,t)}function s$(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,cn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function a$(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,cn.checkStrictMode)(e,"default is ignored in the schema root")}function u$(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Zk.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function c$(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function RC({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let s=r.$comment;if(o.$comment===!0)e.code((0,U._)`${G.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){let i=(0,U.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,U._)`${G.default.self}.opts.$comment(${s}, ${i}, ${a}.schema)`)}}function l$(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if((0,U._)`${G.default.errors} === 0`,()=>t.return(G.default.data),()=>t.throw((0,U._)`new ${o}(${G.default.vErrors})`)):(t.assign((0,U._)`${n}.errors`,G.default.vErrors),s.unevaluated&&d$(e),t.return((0,U._)`${G.default.errors} === 0`))}function d$({gen:e,evaluated:t,props:r,items:n}){r instanceof U.Name&&e.assign((0,U._)`${t}.props`,r),n instanceof U.Name&&e.assign((0,U._)`${t}.items`,n)}function xC(e,t,r,n){let{gen:o,schema:s,data:i,allErrors:a,opts:u,self:c}=e,{RULES:l}=c;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,cn.schemaHasRulesButRef)(s,l))){o.block(()=>kC(e,"$ref",l.all.$ref.definition));return}u.jtd||p$(e,t),o.block(()=>{for(let p of l.rules)d(p);d(l.post)});function d(p){(0,Zd.shouldUseGroup)(s,p)&&(p.type?(o.if((0,Du.checkDataType)(p.type,i,u.strictNumbers)),SC(e,p),t.length===1&&t[0]===p.type&&r&&(o.else(),(0,Du.reportTypeError)(e)),o.endIf()):SC(e,p),a||o.if((0,U._)`${G.default.errors} === ${n||0}`))}}function SC(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,Qk.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Zd.shouldUseRule)(n,s)&&kC(e,s.keyword,s.definition,t.type)})}function p$(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(f$(e,t),e.opts.allowUnionTypes||m$(e,t),g$(e,e.dataTypes))}function f$(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{IC(e.dataTypes,r)||Xd(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),y$(e,t)}}function m$(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Xd(e,"use allowUnionTypes to allow union type keyword")}function g$(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Zd.shouldUseRule)(e.schema,o)){let{type:s}=o.definition;s.length&&!s.some(i=>h$(t,i))&&Xd(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function h$(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function IC(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function y$(e,t){let r=[];for(let n of e.dataTypes)IC(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Xd(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,cn.checkStrictMode)(e,t,e.opts.strictTypes)}var vu=class{constructor(t,r,n){if((0,_s.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,cn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$C(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,_s.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",G.default.errors))}result(t,r,n){this.failResult((0,U.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,U.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,U._)`${r} !== undefined && (${(0,U.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Fs.reportExtraError:Fs.reportError)(this,this.def.error,r)}$dataError(){(0,Fs.reportError)(this,this.def.$dataError||Fs.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Fs.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=U.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=U.nil,r=U.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,U.or)((0,U._)`${o} === undefined`,r)),t!==U.nil&&n.assign(t,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==U.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:s}=this;return(0,U.or)(i(),a());function i(){if(n.length){if(!(r instanceof U.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,U._)`${(0,Du.checkDataTypes)(u,r,s.opts.strictNumbers,Du.DataType.Wrong)}`}return U.nil}function a(){if(o.validateSchema){let u=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,U._)`!${u}(${r})`}return U.nil}}subschema(t,r){let n=(0,Qd.getSubschema)(this.it,t);(0,Qd.extendSubschemaData)(n,this.it,t),(0,Qd.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return o$(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=cn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=cn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,U.Name)),!0}};kn.KeywordCxt=vu;function kC(e,t,r,n){let o=new vu(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,_s.funcKeywordCode)(o,r):"macro"in r?(0,_s.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,_s.funcKeywordCode)(o,r)}var D$=/^\/(?:[^~]|~0|~1)*$/,v$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $C(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(e==="")return G.default.rootData;if(e[0]==="/"){if(!D$.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=G.default.rootData}else{let c=v$.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+c[1];if(o=c[2],o==="#"){if(l>=t)throw new Error(u("property/index",l));return n[t-l]}if(l>t)throw new Error(u("data",l));if(s=r[t-l],!o)return s}let i=s,a=o.split("/");for(let c of a)c&&(s=(0,U._)`${s}${(0,U.getProperty)((0,cn.unescapeJsonPointer)(c))}`,i=(0,U._)`${i} && ${s}`);return i;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${t}`}}kn.getData=$C});var Cu=S(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var ep=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};tp.default=ep});var Rs=S(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var rp=As(),np=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,rp.resolveUrl)(t,r,n),this.missingSchema=(0,rp.normalizeId)((0,rp.getFullPath)(t,this.missingRef))}};op.default=np});var wu=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.resolveSchema=rr.getCompilingSchema=rr.resolveRef=rr.compileSchema=rr.SchemaEnv=void 0;var fr=te(),C$=Cu(),So=un(),mr=As(),NC=ge(),b$=Ts(),yi=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,mr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};rr.SchemaEnv=yi;function sp(e){let t=OC.call(this,e);if(t)return t;let r=(0,mr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new fr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s}),a;e.$async&&(a=i.scopeValue("Error",{ref:C$.default,code:(0,fr._)`require("ajv/dist/runtime/validation_error").default`}));let u=i.scopeName("validate");e.validateName=u;let c={gen:i,allErrors:this.opts.allErrors,data:So.default.data,parentData:So.default.parentData,parentDataProperty:So.default.parentDataProperty,dataNames:[So.default.data],dataPathArr:[fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fr.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,b$.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);let d=i.toString();l=`${i.scopeRefs(So.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let h=new Function(`${So.default.self}`,`${So.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:d,scopeValues:i._values}),this.opts.unevaluated){let{props:g,items:m}=c;h.evaluated={props:g instanceof fr.Name?void 0:g,items:m instanceof fr.Name?void 0:m,dynamicProps:g instanceof fr.Name,dynamicItems:m instanceof fr.Name},h.source&&(h.source.evaluated=(0,fr.stringify)(h.evaluated))}return e.validate=h,e}catch(d){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(e)}}rr.compileSchema=sp;function w$(e,t,r){var n;r=(0,mr.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let s=E$.call(this,e,r);if(s===void 0){let i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(s=new yi({schema:i,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=x$.call(this,s)}rr.resolveRef=w$;function x$(e){return(0,mr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:sp.call(this,e)}function OC(e){for(let t of this._compilations)if(S$(t,e))return t}rr.getCompilingSchema=OC;function S$(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function E$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||bu.call(this,e,t)}function bu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,mr._getFullPath)(this.opts.uriResolver,r),o=(0,mr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return ip.call(this,r,e);let s=(0,mr.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){let a=bu.call(this,e,i);return typeof a?.schema!="object"?void 0:ip.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||sp.call(this,i),s===(0,mr.normalizeId)(t)){let{schema:a}=i,{schemaId:u}=this.opts,c=a[u];return c&&(o=(0,mr.resolveUrl)(this.opts.uriResolver,o,c)),new yi({schema:a,schemaId:u,root:e,baseId:o})}return ip.call(this,r,i)}}rr.resolveSchema=bu;var P$=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ip(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,NC.unescapeFragment)(a)];if(u===void 0)return;r=u;let c=typeof r=="object"&&r[this.opts.schemaId];!P$.has(a)&&c&&(t=(0,mr.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,NC.schemaHasRulesButRef)(r,this.RULES)){let a=(0,mr.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=bu.call(this,n,a)}let{schemaId:i}=this.opts;if(s=s||new yi({schema:r,schemaId:i,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var BC=S((sq,A$)=>{A$.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var LC=S((aq,MC)=>{"use strict";var F$={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};MC.exports={HEX:F$}});var GC=S((uq,qC)=>{"use strict";var{HEX:_$}=LC(),T$=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function HC(e){if(KC(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(T$)||[],[r]=t;return r?{host:I$(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function ap(e,t=!1){let r="",n=!0;for(let o of e){if(_$[o]===void 0)return;o!=="0"&&n===!0&&(n=!1),n||(r+=o)}return t&&r.length===0&&(r="0"),r}function R$(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],s=!1,i=!1,a=!1;function u(){if(o.length){if(s===!1){let c=ap(o);if(c!==void 0)n.push(c);else return r.error=!0,!1}o.length=0}return!0}for(let c=0;c<e.length;c++){let l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(i===!0&&(a=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}c-1>=0&&e[c-1]===":"&&(i=!0);continue}else if(l==="%"){if(!u())break;s=!0}else{o.push(l);continue}}return o.length&&(s?r.zone=o.join(""):a?n.push(o.join("")):n.push(ap(o))),r.address=n.join(""),r}function zC(e){if(KC(e,":")<2)return{host:e,isIPV6:!1};let t=R$(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function I$(e,t){let r="",n=!0,o=e.length;for(let s=0;s<o;s++){let i=e[s];i==="0"&&n?(s+1<=o&&e[s+1]===t||s+1===o)&&(r+=i,n=!1):(i===t?n=!0:n=!1,r+=i)}return r}function KC(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}var jC=/^\.\.?\//u,UC=/^\/\.(?:\/|$)/u,VC=/^\/\.\.(?:\/|$)/u,k$=/^\/?(?:.|\n)*?(?=\/|$)/u;function $$(e){let t=[];for(;e.length;)if(e.match(jC))e=e.replace(jC,"");else if(e.match(UC))e=e.replace(UC,"/");else if(e.match(VC))e=e.replace(VC,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(k$);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function N$(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function O$(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host),n=HC(r);if(n.isIPV4)r=n.host;else{let o=zC(n.host);o.isIPV6===!0?r=`[${o.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}qC.exports={recomposeAuthority:O$,normalizeComponentEncoding:N$,removeDotSegments:$$,normalizeIPv4:HC,normalizeIPv6:zC,stringArrayToHexStripped:ap}});var XC=S((cq,ZC)=>{"use strict";var B$=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,M$=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function WC(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function JC(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function YC(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function L$(e){return e.secure=WC(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function j$(e){if((e.port===(WC(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function U$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(M$);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,s=up[o];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function V$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,s=up[o];s&&(e=s.serialize(e,t));let i=e,a=e.nss;return i.path=`${n||t.nid}:${a}`,t.skipEscape=!0,i}function H$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!B$.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function z$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var QC={scheme:"http",domainHost:!0,parse:JC,serialize:YC},K$={scheme:"https",domainHost:QC.domainHost,parse:JC,serialize:YC},xu={scheme:"ws",domainHost:!0,parse:L$,serialize:j$},q$={scheme:"wss",domainHost:xu.domainHost,parse:xu.parse,serialize:xu.serialize},G$={scheme:"urn",parse:U$,serialize:V$,skipNormalize:!0},W$={scheme:"urn:uuid",parse:H$,serialize:z$,skipNormalize:!0},up={http:QC,https:K$,ws:xu,wss:q$,urn:G$,"urn:uuid":W$};ZC.exports=up});var t0=S((lq,Eu)=>{"use strict";var{normalizeIPv6:J$,normalizeIPv4:Y$,removeDotSegments:Is,recomposeAuthority:Q$,normalizeComponentEncoding:Su}=GC(),cp=XC();function Z$(e,t){return typeof e=="string"?e=Vr(ln(e,t),t):typeof e=="object"&&(e=ln(Vr(e,t),t)),e}function X$(e,t,r){let n=Object.assign({scheme:"null"},r),o=e0(ln(e,n),ln(t,n),n,!0);return Vr(o,{...n,skipEscape:!0})}function e0(e,t,r,n){let o={};return n||(e=ln(Vr(e,r),r),t=ln(Vr(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Is(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Is(t.path||""),o.query=t.query):(t.path?(t.path.charAt(0)==="/"?o.path=Is(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Is(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function eN(e,t,r){return typeof e=="string"?(e=unescape(e),e=Vr(Su(ln(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Vr(Su(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Vr(Su(ln(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Vr(Su(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Vr(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],s=cp[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let i=Q$(r);if(i!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(i),r.path&&r.path.charAt(0)!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=Is(a)),i===void 0&&(a=a.replace(/^\/\//u,"/%2F")),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var tN=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function rN(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||tN[t])return!0;return!1}var nN=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ln(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let i=e.match(nN);if(i){if(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]),n.host){let u=Y$(n.host);if(u.isIPV4===!1){let c=J$(u.host);n.host=c.host.toLowerCase(),s=c.isIPV6}else n.host=u.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=cp[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&s===!1&&rN(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!a||a&&!a.skipNormalize)&&(o&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),o&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var lp={SCHEMES:cp,normalize:Z$,resolve:X$,resolveComponents:e0,equal:eN,serialize:Vr,parse:ln};Eu.exports=lp;Eu.exports.default=lp;Eu.exports.fastUri=lp});var n0=S(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var r0=t0();r0.code='require("ajv/dist/runtime/uri").default';dp.default=r0});var d0=S(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CodeGen=Ze.Name=Ze.nil=Ze.stringify=Ze.str=Ze._=Ze.KeywordCxt=void 0;var oN=Ts();Object.defineProperty(Ze,"KeywordCxt",{enumerable:!0,get:function(){return oN.KeywordCxt}});var Di=te();Object.defineProperty(Ze,"_",{enumerable:!0,get:function(){return Di._}});Object.defineProperty(Ze,"str",{enumerable:!0,get:function(){return Di.str}});Object.defineProperty(Ze,"stringify",{enumerable:!0,get:function(){return Di.stringify}});Object.defineProperty(Ze,"nil",{enumerable:!0,get:function(){return Di.nil}});Object.defineProperty(Ze,"Name",{enumerable:!0,get:function(){return Di.Name}});Object.defineProperty(Ze,"CodeGen",{enumerable:!0,get:function(){return Di.CodeGen}});var iN=Cu(),u0=Rs(),sN=Ud(),ks=wu(),aN=te(),$s=As(),Pu=Ps(),fp=ge(),o0=BC(),uN=n0(),c0=(e,t)=>new RegExp(e,t);c0.code="new RegExp";var cN=["removeAdditional","useDefaults","coerceTypes"],lN=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),dN={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},pN={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},i0=200;function fN(e){var t,r,n,o,s,i,a,u,c,l,d,p,h,g,m,y,D,w,x,F,P,_,I,N,k;let T=e.strict,v=(t=e.code)===null||t===void 0?void 0:t.optimize,j=v===!0||v===void 0?1:v||0,H=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:c0,q=(o=e.uriResolver)!==null&&o!==void 0?o:uN.default;return{strictSchema:(i=(s=e.strictSchema)!==null&&s!==void 0?s:T)!==null&&i!==void 0?i:!0,strictNumbers:(u=(a=e.strictNumbers)!==null&&a!==void 0?a:T)!==null&&u!==void 0?u:!0,strictTypes:(l=(c=e.strictTypes)!==null&&c!==void 0?c:T)!==null&&l!==void 0?l:"log",strictTuples:(p=(d=e.strictTuples)!==null&&d!==void 0?d:T)!==null&&p!==void 0?p:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:T)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:j,regExp:H}:{optimize:j,regExp:H},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:i0,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:i0,meta:(D=e.meta)!==null&&D!==void 0?D:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(x=e.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(F=e.schemaId)!==null&&F!==void 0?F:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(_=e.validateSchema)!==null&&_!==void 0?_:!0,validateFormats:(I=e.validateFormats)!==null&&I!==void 0?I:!0,unicodeRegExp:(N=e.unicodeRegExp)!==null&&N!==void 0?N:!0,int32range:(k=e.int32range)!==null&&k!==void 0?k:!0,uriResolver:q}}var Ns=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...fN(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new aN.ValueScope({scope:{},prefixes:lN,es5:r,lines:n}),this.logger=vN(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,sN.getRules)(),s0.call(this,dN,t,"NOT SUPPORTED"),s0.call(this,pN,t,"DEPRECATED","warn"),this._metaOpts=yN.call(this),t.formats&&gN.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&hN.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),mN.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=o0;n==="id"&&(o={...o0},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(l,d){await s.call(this,l.$schema);let p=this._addSchema(l,d);return p.validate||i.call(this,p)}async function s(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function i(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof u0.default))throw d;return a.call(this,d),await u.call(this,d.missingSchema),i.call(this,l)}}function a({missingSchema:l,missingRef:d}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function u(l){let d=await c.call(this,l);this.refs[l]||await s.call(this,d.$schema),this.refs[l]||this.addSchema(d,l,r)}async function c(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let i of t)this.addSchema(i,void 0,n,o);return this}let s;if(typeof t=="object"){let{schemaId:i}=this.opts;if(s=t[i],s!==void 0&&typeof s!="string")throw new Error(`schema ${i} must be string`)}return r=(0,$s.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return o}getSchema(t){let r;for(;typeof(r=a0.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ks.SchemaEnv({schema:{},schemaId:n});if(r=ks.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=a0.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,$s.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(bN.call(this,n,r),!r)return(0,fp.eachItem)(n,s=>pp.call(this,s)),this;xN.call(this,r);let o={...r,type:(0,Pu.getJSONTypes)(r.type),schemaType:(0,Pu.getJSONTypes)(r.schemaType)};return(0,fp.eachItem)(n,o.type.length===0?s=>pp.call(this,s,o):s=>o.type.forEach(i=>pp.call(this,s,o,i))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(s=>s.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,s)=>o+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let s=o.split("/").slice(1),i=t;for(let a of s)i=i[a];for(let a in n){let u=n[a];if(typeof u!="object")continue;let{$data:c}=u.definition,l=i[a];c&&l&&(i[a]=l0(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,s=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof t=="object")i=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,$s.normalizeId)(i||n);let c=$s.getSchemaRefs.call(this,t,n);return u=new ks.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:c}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),o&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):ks.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{ks.compileSchema.call(this,t)}finally{this.opts=r}}};Ns.ValidationError=iN.default;Ns.MissingRefError=u0.default;Ze.default=Ns;function s0(e,t,r,n="error"){for(let o in e){let s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function a0(e){return e=(0,$s.normalizeId)(e),this.schemas[e]||this.refs[e]}function mN(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function gN(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function hN(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function yN(){let e={...this.opts};for(let t of cN)delete e[t];return e}var DN={log(){},warn(){},error(){}};function vN(e){if(e===!1)return DN;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var CN=/^[a-z_$][a-z0-9_$:-]*$/i;function bN(e,t){let{RULES:r}=this;if((0,fp.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!CN.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function pp(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,i=o?s.post:s.rules.find(({type:u})=>u===r);if(i||(i={type:r,rules:[]},s.rules.push(i)),s.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Pu.getJSONTypes)(t.type),schemaType:(0,Pu.getJSONTypes)(t.schemaType)}};t.before?wN.call(this,i,a,t.before):i.rules.push(a),s.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}function wN(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function xN(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=l0(t)),e.validateSchema=this.compile(t,!0))}var SN={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function l0(e){return{anyOf:[e,SN]}}});var p0=S(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var EN={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};mp.default=EN});var h0=S(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.callRef=Eo.getValidate=void 0;var PN=Rs(),f0=tr(),Ft=te(),vi=un(),m0=wu(),Au=ge(),AN={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:s,validateName:i,opts:a,self:u}=n,{root:c}=s;if((r==="#"||r==="#/")&&o===c.baseId)return d();let l=m0.resolveRef.call(u,c,o,r);if(l===void 0)throw new PN.default(n.opts.uriResolver,o,r);if(l instanceof m0.SchemaEnv)return p(l);return h(l);function d(){if(s===c)return Fu(e,i,s,s.$async);let g=t.scopeValue("root",{ref:c});return Fu(e,(0,Ft._)`${g}.validate`,c,c.$async)}function p(g){let m=g0(e,g);Fu(e,m,g,g.$async)}function h(g){let m=t.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,Ft.stringify)(g)}:{ref:g}),y=t.name("valid"),D=e.subschema({schema:g,dataTypes:[],schemaPath:Ft.nil,topSchemaRef:m,errSchemaPath:r},y);e.mergeEvaluated(D),e.ok(y)}}};function g0(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ft._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Eo.getValidate=g0;function Fu(e,t,r,n){let{gen:o,it:s}=e,{allErrors:i,schemaEnv:a,opts:u}=s,c=u.passContext?vi.default.this:Ft.nil;n?l():d();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=o.let("valid");o.try(()=>{o.code((0,Ft._)`await ${(0,f0.callValidateCode)(e,t,c)}`),h(t),i||o.assign(g,!0)},m=>{o.if((0,Ft._)`!(${m} instanceof ${s.ValidationError})`,()=>o.throw(m)),p(m),i||o.assign(g,!1)}),e.ok(g)}function d(){e.result((0,f0.callValidateCode)(e,t,c),()=>h(t),()=>p(t))}function p(g){let m=(0,Ft._)`${g}.errors`;o.assign(vi.default.vErrors,(0,Ft._)`${vi.default.vErrors} === null ? ${m} : ${vi.default.vErrors}.concat(${m})`),o.assign(vi.default.errors,(0,Ft._)`${vi.default.vErrors}.length`)}function h(g){var m;if(!s.opts.unevaluated)return;let y=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=Au.mergeEvaluated.props(o,y.props,s.props));else{let D=o.var("props",(0,Ft._)`${g}.evaluated.props`);s.props=Au.mergeEvaluated.props(o,D,s.props,Ft.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=Au.mergeEvaluated.items(o,y.items,s.items));else{let D=o.var("items",(0,Ft._)`${g}.evaluated.items`);s.items=Au.mergeEvaluated.items(o,D,s.items,Ft.Name)}}}Eo.callRef=Fu;Eo.default=AN});var y0=S(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});var FN=p0(),_N=h0(),TN=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",FN.default,_N.default];gp.default=TN});var D0=S(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var _u=te(),$n=_u.operators,Tu={maximum:{okStr:"<=",ok:$n.LTE,fail:$n.GT},minimum:{okStr:">=",ok:$n.GTE,fail:$n.LT},exclusiveMaximum:{okStr:"<",ok:$n.LT,fail:$n.GTE},exclusiveMinimum:{okStr:">",ok:$n.GT,fail:$n.LTE}},RN={message:({keyword:e,schemaCode:t})=>(0,_u.str)`must be ${Tu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,_u._)`{comparison: ${Tu[e].okStr}, limit: ${t}}`},IN={keyword:Object.keys(Tu),type:"number",schemaType:"number",$data:!0,error:RN,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,_u._)`${r} ${Tu[t].fail} ${n} || isNaN(${r})`)}};hp.default=IN});var v0=S(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});var Os=te(),kN={message:({schemaCode:e})=>(0,Os.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Os._)`{multipleOf: ${e}}`},$N={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:kN,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,s=o.opts.multipleOfPrecision,i=t.let("res"),a=s?(0,Os._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,Os._)`${i} !== parseInt(${i})`;e.fail$data((0,Os._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};yp.default=$N});var b0=S(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});function C0(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}Dp.default=C0;C0.code='require("ajv/dist/runtime/ucs2length").default'});var w0=S(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var Po=te(),NN=ge(),ON=b0(),BN={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Po.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Po._)`{limit: ${e}}`},MN={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:BN,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,s=t==="maxLength"?Po.operators.GT:Po.operators.LT,i=o.opts.unicode===!1?(0,Po._)`${r}.length`:(0,Po._)`${(0,NN.useFunc)(e.gen,ON.default)}(${r})`;e.fail$data((0,Po._)`${i} ${s} ${n}`)}};vp.default=MN});var x0=S(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var LN=tr(),Ru=te(),jN={message:({schemaCode:e})=>(0,Ru.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ru._)`{pattern: ${e}}`},UN={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:jN,code(e){let{data:t,$data:r,schema:n,schemaCode:o,it:s}=e,i=s.opts.unicodeRegExp?"u":"",a=r?(0,Ru._)`(new RegExp(${o}, ${i}))`:(0,LN.usePattern)(e,n);e.fail$data((0,Ru._)`!${a}.test(${t})`)}};Cp.default=UN});var S0=S(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var Bs=te(),VN={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Bs.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Bs._)`{limit: ${e}}`},HN={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:VN,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Bs.operators.GT:Bs.operators.LT;e.fail$data((0,Bs._)`Object.keys(${r}).length ${o} ${n}`)}};bp.default=HN});var E0=S(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Ms=tr(),Ls=te(),zN=ge(),KN={message:({params:{missingProperty:e}})=>(0,Ls.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ls._)`{missingProperty: ${e}}`},qN={keyword:"required",type:"object",schemaType:"array",$data:!0,error:KN,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:s,it:i}=e,{opts:a}=i;if(!s&&r.length===0)return;let u=r.length>=a.loopRequired;if(i.allErrors?c():l(),a.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let m of r)if(h?.[m]===void 0&&!g.has(m)){let y=i.schemaEnv.baseId+i.errSchemaPath,D=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,zN.checkStrictMode)(i,D,i.opts.strictRequired)}}function c(){if(u||s)e.block$data(Ls.nil,d);else for(let h of r)(0,Ms.checkReportMissingProp)(e,h)}function l(){let h=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>p(h,g)),e.ok(g)}else t.if((0,Ms.checkMissingProp)(e,r,h)),(0,Ms.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Ms.noPropertyInData)(t,o,h,a.ownProperties),()=>e.error())})}function p(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,Ms.propertyInData)(t,o,h,a.ownProperties)),t.if((0,Ls.not)(g),()=>{e.error(),t.break()})},Ls.nil)}}};wp.default=qN});var P0=S(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var js=te(),GN={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,js.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,js._)`{limit: ${e}}`},WN={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:GN,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?js.operators.GT:js.operators.LT;e.fail$data((0,js._)`${r}.length ${o} ${n}`)}};xp.default=WN});var Iu=S(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var A0=Jd();A0.code='require("ajv/dist/runtime/equal").default';Sp.default=A0});var F0=S(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var Ep=Ps(),Xe=te(),JN=ge(),YN=Iu(),QN={message:({params:{i:e,j:t}})=>(0,Xe.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Xe._)`{i: ${e}, j: ${t}}`},ZN={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:QN,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:s,schemaCode:i,it:a}=e;if(!n&&!o)return;let u=t.let("valid"),c=s.items?(0,Ep.getSchemaTypes)(s.items):[];e.block$data(u,l,(0,Xe._)`${i} === false`),e.ok(u);function l(){let g=t.let("i",(0,Xe._)`${r}.length`),m=t.let("j");e.setParams({i:g,j:m}),t.assign(u,!0),t.if((0,Xe._)`${g} > 1`,()=>(d()?p:h)(g,m))}function d(){return c.length>0&&!c.some(g=>g==="object"||g==="array")}function p(g,m){let y=t.name("item"),D=(0,Ep.checkDataTypes)(c,y,a.opts.strictNumbers,Ep.DataType.Wrong),w=t.const("indices",(0,Xe._)`{}`);t.for((0,Xe._)`;${g}--;`,()=>{t.let(y,(0,Xe._)`${r}[${g}]`),t.if(D,(0,Xe._)`continue`),c.length>1&&t.if((0,Xe._)`typeof ${y} == "string"`,(0,Xe._)`${y} += "_"`),t.if((0,Xe._)`typeof ${w}[${y}] == "number"`,()=>{t.assign(m,(0,Xe._)`${w}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,Xe._)`${w}[${y}] = ${g}`)})}function h(g,m){let y=(0,JN.useFunc)(t,YN.default),D=t.name("outer");t.label(D).for((0,Xe._)`;${g}--;`,()=>t.for((0,Xe._)`${m} = ${g}; ${m}--;`,()=>t.if((0,Xe._)`${y}(${r}[${g}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(D)})))}}};Pp.default=ZN});var _0=S(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var Ap=te(),XN=ge(),e2=Iu(),t2={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ap._)`{allowedValue: ${e}}`},r2={keyword:"const",$data:!0,error:t2,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,Ap._)`!${(0,XN.useFunc)(t,e2.default)}(${r}, ${o})`):e.fail((0,Ap._)`${s} !== ${r}`)}};Fp.default=r2});var T0=S(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var Us=te(),n2=ge(),o2=Iu(),i2={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Us._)`{allowedValues: ${e}}`},s2={keyword:"enum",schemaType:"array",$data:!0,error:i2,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:s,it:i}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=i.opts.loopEnum,u,c=()=>u??(u=(0,n2.useFunc)(t,o2.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,d);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let h=t.const("vSchema",s);l=(0,Us.or)(...o.map((g,m)=>p(h,m)))}e.pass(l);function d(){t.assign(l,!1),t.forOf("v",s,h=>t.if((0,Us._)`${c()}(${r}, ${h})`,()=>t.assign(l,!0).break()))}function p(h,g){let m=o[g];return typeof m=="object"&&m!==null?(0,Us._)`${c()}(${r}, ${h}[${g}])`:(0,Us._)`${r} === ${m}`}}};_p.default=s2});var R0=S(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var a2=D0(),u2=v0(),c2=w0(),l2=x0(),d2=S0(),p2=E0(),f2=P0(),m2=F0(),g2=_0(),h2=T0(),y2=[a2.default,u2.default,c2.default,l2.default,d2.default,p2.default,f2.default,m2.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},g2.default,h2.default];Tp.default=y2});var Ip=S(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.validateAdditionalItems=void 0;var Ao=te(),Rp=ge(),D2={message:({params:{len:e}})=>(0,Ao.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ao._)`{limit: ${e}}`},v2={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:D2,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Rp.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}I0(e,n)}};function I0(e,t){let{gen:r,schema:n,data:o,keyword:s,it:i}=e;i.items=!0;let a=r.const("len",(0,Ao._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ao._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Rp.alwaysValidSchema)(i,n)){let c=r.var("valid",(0,Ao._)`${a} <= ${t.length}`);r.if((0,Ao.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,a,l=>{e.subschema({keyword:s,dataProp:l,dataPropType:Rp.Type.Num},c),i.allErrors||r.if((0,Ao.not)(c),()=>r.break())})}}Vs.validateAdditionalItems=I0;Vs.default=v2});var kp=S(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.validateTuple=void 0;var k0=te(),ku=ge(),C2=tr(),b2={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return $0(e,"additionalItems",t);r.items=!0,!(0,ku.alwaysValidSchema)(r,t)&&e.ok((0,C2.validateArray)(e))}};function $0(e,t,r=e.schema){let{gen:n,parentSchema:o,data:s,keyword:i,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=ku.mergeEvaluated.items(n,r.length,a.items));let u=n.name("valid"),c=n.const("len",(0,k0._)`${s}.length`);r.forEach((d,p)=>{(0,ku.alwaysValidSchema)(a,d)||(n.if((0,k0._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},u)),e.ok(u))});function l(d){let{opts:p,errSchemaPath:h}=a,g=r.length,m=g===d.minItems&&(g===d.maxItems||d[t]===!1);if(p.strictTuples&&!m){let y=`"${i}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,ku.checkStrictMode)(a,y,p.strictTuples)}}}Hs.validateTuple=$0;Hs.default=b2});var N0=S($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var w2=kp(),x2={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,w2.validateTuple)(e,"items")};$p.default=x2});var B0=S(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var O0=te(),S2=ge(),E2=tr(),P2=Ip(),A2={message:({params:{len:e}})=>(0,O0.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,O0._)`{limit: ${e}}`},F2={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:A2,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,S2.alwaysValidSchema)(n,t)&&(o?(0,P2.validateAdditionalItems)(e,o):e.ok((0,E2.validateArray)(e)))}};Np.default=F2});var M0=S(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var nr=te(),$u=ge(),_2={message:({params:{min:e,max:t}})=>t===void 0?(0,nr.str)`must contain at least ${e} valid item(s)`:(0,nr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,nr._)`{minContains: ${e}}`:(0,nr._)`{minContains: ${e}, maxContains: ${t}}`},T2={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:_2,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e,i,a,{minContains:u,maxContains:c}=n;s.opts.next?(i=u===void 0?1:u,a=c):i=1;let l=t.const("len",(0,nr._)`${o}.length`);if(e.setParams({min:i,max:a}),a===void 0&&i===0){(0,$u.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,$u.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,$u.alwaysValidSchema)(s,r)){let m=(0,nr._)`${l} >= ${i}`;a!==void 0&&(m=(0,nr._)`${m} && ${l} <= ${a}`),e.pass(m);return}s.items=!0;let d=t.name("valid");a===void 0&&i===1?h(d,()=>t.if(d,()=>t.break())):i===0?(t.let(d,!0),a!==void 0&&t.if((0,nr._)`${o}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,()=>e.reset());function p(){let m=t.name("_valid"),y=t.let("count",0);h(m,()=>t.if(m,()=>g(y)))}function h(m,y){t.forRange("i",0,l,D=>{e.subschema({keyword:"contains",dataProp:D,dataPropType:$u.Type.Num,compositeRule:!0},m),y()})}function g(m){t.code((0,nr._)`${m}++`),a===void 0?t.if((0,nr._)`${m} >= ${i}`,()=>t.assign(d,!0).break()):(t.if((0,nr._)`${m} > ${a}`,()=>t.assign(d,!1).break()),i===1?t.assign(d,!0):t.if((0,nr._)`${m} >= ${i}`,()=>t.assign(d,!0)))}}};Op.default=T2});var U0=S(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.validateSchemaDeps=Hr.validatePropertyDeps=Hr.error=void 0;var Bp=te(),R2=ge(),zs=tr();Hr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Bp.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Bp._)`{property: ${e},
31
31
  missingProperty: ${n},
32
32
  depsCount: ${t},
33
- deps: ${r}}`};var I2={keyword:"dependencies",type:"object",schemaType:"object",error:Hr.error,code(e){let[t,r]=k2(e);L0(e,t),j0(e,r)}};function k2({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function L0(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let i in t){let a=t[i];if(a.length===0)continue;let u=(0,zs.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(u,()=>{for(let c of a)(0,zs.checkReportMissingProp)(e,c)}):(r.if((0,Bp._)`${u} && (${(0,zs.checkMissingProp)(e,a,s)})`),(0,zs.reportMissingProp)(e,s),r.else())}}Hr.validatePropertyDeps=L0;function j0(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,R2.alwaysValidSchema)(s,t[a])||(r.if((0,zs.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let u=e.subschema({keyword:o,schemaProp:a},i);e.mergeValidEvaluated(u,i)},()=>r.var(i,!0)),e.ok(i))}Hr.validateSchemaDeps=j0;Hr.default=I2});var H0=S(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var V0=te(),$2=ge(),N2={message:"property name must be valid",params:({params:e})=>(0,V0._)`{propertyName: ${e.propertyName}}`},O2={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:N2,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,$2.alwaysValidSchema)(o,r))return;let s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,V0.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};Mp.default=O2});var jp=S(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var Nu=tr(),gr=te(),B2=un(),Ou=ge(),M2={message:"must NOT have additional properties",params:({params:e})=>(0,gr._)`{additionalProperty: ${e.additionalProperty}}`},L2={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:M2,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,Ou.alwaysValidSchema)(i,r))return;let c=(0,Nu.allSchemaProperties)(n.properties),l=(0,Nu.allSchemaProperties)(n.patternProperties);d(),e.ok((0,gr._)`${s} === ${B2.default.errors}`);function d(){t.forIn("key",o,y=>{!c.length&&!l.length?g(y):t.if(p(y),()=>g(y))})}function p(y){let D;if(c.length>8){let w=(0,Ou.schemaRefOrVal)(i,n.properties,"properties");D=(0,Nu.isOwnProperty)(t,w,y)}else c.length?D=(0,gr.or)(...c.map(w=>(0,gr._)`${y} === ${w}`)):D=gr.nil;return l.length&&(D=(0,gr.or)(D,...l.map(w=>(0,gr._)`${(0,Nu.usePattern)(e,w)}.test(${y})`))),(0,gr.not)(D)}function h(y){t.code((0,gr._)`delete ${o}[${y}]`)}function g(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Ou.alwaysValidSchema)(i,r)){let D=t.name("valid");u.removeAdditional==="failing"?(m(y,D,!1),t.if((0,gr.not)(D),()=>{e.reset(),h(y)})):(m(y,D),a||t.if((0,gr.not)(D),()=>t.break()))}}function m(y,D,w){let x={keyword:"additionalProperties",dataProp:y,dataPropType:Ou.Type.Str};w===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,D)}}};Lp.default=L2});var q0=S(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var j2=Ts(),z0=tr(),Up=ge(),K0=jp(),U2={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&K0.default.code(new j2.KeywordCxt(s,K0.default,"additionalProperties"));let i=(0,z0.allSchemaProperties)(r);for(let d of i)s.definedProperties.add(d);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Up.mergeEvaluated.props(t,(0,Up.toHash)(i),s.props));let a=i.filter(d=>!(0,Up.alwaysValidSchema)(s,r[d]));if(a.length===0)return;let u=t.name("valid");for(let d of a)c(d)?l(d):(t.if((0,z0.propertyInData)(t,o,d,s.opts.ownProperties)),l(d),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function c(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};Vp.default=U2});var Y0=S(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var G0=tr(),Bu=te(),W0=ge(),J0=ge(),V2={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:s}=e,{opts:i}=s,a=(0,G0.allSchemaProperties)(r),u=a.filter(m=>(0,W0.alwaysValidSchema)(s,r[m]));if(a.length===0||u.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,l=t.name("valid");s.props!==!0&&!(s.props instanceof Bu.Name)&&(s.props=(0,J0.evaluatedPropsToName)(t,s.props));let{props:d}=s;p();function p(){for(let m of a)c&&h(m),s.allErrors?g(m):(t.var(l,!0),g(m),t.if(l))}function h(m){for(let y in c)new RegExp(m).test(y)&&(0,W0.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){t.forIn("key",n,y=>{t.if((0,Bu._)`${(0,G0.usePattern)(e,m)}.test(${y})`,()=>{let D=u.includes(m);D||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:J0.Type.Str},l),s.opts.unevaluated&&d!==!0?t.assign((0,Bu._)`${d}[${y}]`,!0):!D&&!s.allErrors&&t.if((0,Bu.not)(l),()=>t.break())})})}}};Hp.default=V2});var Q0=S(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var H2=ge(),z2={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,H2.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zp.default=z2});var Z0=S(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var K2=tr(),q2={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:K2.validateUnion,error:{message:"must match a schema in anyOf"}};Kp.default=q2});var X0=S(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var Mu=te(),G2=ge(),W2={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Mu._)`{passingSchemas: ${e.passing}}`},J2={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:W2,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let s=r,i=t.let("valid",!1),a=t.let("passing",null),u=t.name("_valid");e.setParams({passing:a}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((l,d)=>{let p;(0,G2.alwaysValidSchema)(o,l)?t.var(u,!0):p=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,Mu._)`${u} && ${i}`).assign(i,!1).assign(a,(0,Mu._)`[${a}, ${d}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(a,d),p&&e.mergeEvaluated(p,Mu.Name)})})}}};qp.default=J2});var eb=S(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var Y2=ge(),Q2={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((s,i)=>{if((0,Y2.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};Gp.default=Q2});var nb=S(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var Lu=te(),rb=ge(),Z2={message:({params:e})=>(0,Lu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lu._)`{failingKeyword: ${e.ifClause}}`},X2={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Z2,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,rb.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=tb(n,"then"),s=tb(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(u(),e.reset(),o&&s){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,c("then",l),c("else",l))}else o?t.if(a,c("then")):t.if((0,Lu.not)(a),c("else"));e.pass(i,()=>e.error(!0));function u(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function c(l,d){return()=>{let p=e.subschema({keyword:l},a);t.assign(i,a),e.mergeValidEvaluated(p,i),d?t.assign(d,(0,Lu._)`${l}`):e.setParams({ifClause:l})}}}};function tb(e,t){let r=e.schema[t];return r!==void 0&&!(0,rb.alwaysValidSchema)(e,r)}Wp.default=X2});var ob=S(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var eO=ge(),tO={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,eO.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Jp.default=tO});var ib=S(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var rO=Ip(),nO=N0(),oO=kp(),iO=B0(),sO=M0(),aO=U0(),uO=H0(),cO=jp(),lO=q0(),dO=Y0(),pO=Q0(),fO=Z0(),mO=X0(),gO=eb(),hO=nb(),yO=ob();function DO(e=!1){let t=[pO.default,fO.default,mO.default,gO.default,hO.default,yO.default,uO.default,cO.default,aO.default,lO.default,dO.default];return e?t.push(nO.default,iO.default):t.push(rO.default,oO.default),t.push(sO.default),t}Yp.default=DO});var sb=S(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Me=te(),vO={message:({schemaCode:e})=>(0,Me.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Me._)`{format: ${e}}`},CO={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:vO,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:d}=a;if(!u.validateFormats)return;o?p():h();function p(){let g=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),m=r.const("fDef",(0,Me._)`${g}[${i}]`),y=r.let("fType"),D=r.let("format");r.if((0,Me._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,Me._)`${m}.type || "string"`).assign(D,(0,Me._)`${m}.validate`),()=>r.assign(y,(0,Me._)`"string"`).assign(D,m)),e.fail$data((0,Me.or)(w(),x()));function w(){return u.strictSchema===!1?Me.nil:(0,Me._)`${i} && !${D}`}function x(){let F=l.$async?(0,Me._)`(${m}.async ? await ${D}(${n}) : ${D}(${n}))`:(0,Me._)`${D}(${n})`,P=(0,Me._)`(typeof ${D} == "function" ? ${F} : ${D}.test(${n}))`;return(0,Me._)`${D} && ${D} !== true && ${y} === ${t} && !${P}`}}function h(){let g=d.formats[s];if(!g){w();return}if(g===!0)return;let[m,y,D]=x(g);m===t&&e.pass(F());function w(){if(u.strictSchema===!1){d.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function x(P){let _=P instanceof RegExp?(0,Me.regexpCode)(P):u.code.formats?(0,Me._)`${u.code.formats}${(0,Me.getProperty)(s)}`:void 0,I=r.scopeValue("formats",{key:s,ref:P,code:_});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,Me._)`${I}.validate`]:["string",P,I]}function F(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Me._)`await ${D}(${n})`}return typeof y=="function"?(0,Me._)`${D}(${n})`:(0,Me._)`${D}.test(${n})`}}}};Qp.default=CO});var ab=S(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var bO=sb(),wO=[bO.default];Zp.default=wO});var ub=S(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.contentVocabulary=Ci.metadataVocabulary=void 0;Ci.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ci.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var lb=S(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var xO=y0(),SO=R0(),EO=ib(),PO=ab(),cb=ub(),AO=[xO.default,SO.default,(0,EO.default)(),PO.default,cb.metadataVocabulary,cb.contentVocabulary];Xp.default=AO});var pb=S(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.DiscrError=void 0;var db;(function(e){e.Tag="tag",e.Mapping="mapping"})(db||(ju.DiscrError=db={}))});var mb=S(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var bi=te(),ef=pb(),fb=wu(),FO=Rs(),_O=ge(),TO={message:({params:{discrError:e,tagName:t}})=>e===ef.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,bi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},RO={keyword:"discriminator",type:"object",schemaType:"object",error:TO,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:s}=e,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),c=t.const("tag",(0,bi._)`${r}${(0,bi.getProperty)(a)}`);t.if((0,bi._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:ef.DiscrError.Tag,tag:c,tagName:a})),e.ok(u);function l(){let h=p();t.if(!1);for(let g in h)t.elseIf((0,bi._)`${c} === ${g}`),t.assign(u,d(h[g]));t.else(),e.error(!1,{discrError:ef.DiscrError.Mapping,tag:c,tagName:a}),t.endIf()}function d(h){let g=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(m,bi.Name),g}function p(){var h;let g={},m=D(o),y=!0;for(let F=0;F<i.length;F++){let P=i[F];if(P?.$ref&&!(0,_O.schemaHasRulesButRef)(P,s.self.RULES)){let I=P.$ref;if(P=fb.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,I),P instanceof fb.SchemaEnv&&(P=P.schema),P===void 0)throw new FO.default(s.opts.uriResolver,s.baseId,I)}let _=(h=P?.properties)===null||h===void 0?void 0:h[a];if(typeof _!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(m||D(P)),w(_,F)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return g;function D({required:F}){return Array.isArray(F)&&F.includes(a)}function w(F,P){if(F.const)x(F.const,P);else if(F.enum)for(let _ of F.enum)x(_,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(F,P){if(typeof F!="string"||F in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[F]=P}}}};tf.default=RO});var gb=S((Zq,IO)=>{IO.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var nf=S((Te,rf)=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.MissingRefError=Te.ValidationError=Te.CodeGen=Te.Name=Te.nil=Te.stringify=Te.str=Te._=Te.KeywordCxt=Te.Ajv=void 0;var kO=d0(),$O=lb(),NO=mb(),hb=gb(),OO=["/properties"],Uu="http://json-schema.org/draft-07/schema",wi=class extends kO.default{_addVocabularies(){super._addVocabularies(),$O.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(NO.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(hb,OO):hb;this.addMetaSchema(t,Uu,!1),this.refs["http://json-schema.org/schema"]=Uu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Uu)?Uu:void 0)}};Te.Ajv=wi;rf.exports=Te=wi;rf.exports.Ajv=wi;Object.defineProperty(Te,"__esModule",{value:!0});Te.default=wi;var BO=Ts();Object.defineProperty(Te,"KeywordCxt",{enumerable:!0,get:function(){return BO.KeywordCxt}});var xi=te();Object.defineProperty(Te,"_",{enumerable:!0,get:function(){return xi._}});Object.defineProperty(Te,"str",{enumerable:!0,get:function(){return xi.str}});Object.defineProperty(Te,"stringify",{enumerable:!0,get:function(){return xi.stringify}});Object.defineProperty(Te,"nil",{enumerable:!0,get:function(){return xi.nil}});Object.defineProperty(Te,"Name",{enumerable:!0,get:function(){return xi.Name}});Object.defineProperty(Te,"CodeGen",{enumerable:!0,get:function(){return xi.CodeGen}});var MO=Cu();Object.defineProperty(Te,"ValidationError",{enumerable:!0,get:function(){return MO.default}});var LO=Rs();Object.defineProperty(Te,"MissingRefError",{enumerable:!0,get:function(){return LO.default}})});var Sb=S(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.formatNames=Kr.fastFormats=Kr.fullFormats=void 0;function zr(e,t){return{validate:e,compare:t}}Kr.fullFormats={date:zr(Cb,uf),time:zr(sf(!0),cf),"date-time":zr(yb(!0),wb),"iso-time":zr(sf(),bb),"iso-date-time":zr(yb(),xb),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:KO,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ZO,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:qO,int32:{type:"number",validate:JO},int64:{type:"number",validate:YO},float:{type:"number",validate:vb},double:{type:"number",validate:vb},password:!0,binary:!0};Kr.fastFormats={...Kr.fullFormats,date:zr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,uf),time:zr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cf),"date-time":zr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,wb),"iso-time":zr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,bb),"iso-date-time":zr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,xb),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Kr.formatNames=Object.keys(Kr.fullFormats);function jO(e){return e%4===0&&(e%100!==0||e%400===0)}var UO=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,VO=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Cb(e){let t=UO.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&jO(r)?29:VO[n])}function uf(e,t){if(e&&t)return e>t?1:e<t?-1:0}var of=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sf(e){return function(r){let n=of.exec(r);if(!n)return!1;let o=+n[1],s=+n[2],i=+n[3],a=n[4],u=n[5]==="-"?-1:1,c=+(n[6]||0),l=+(n[7]||0);if(c>23||l>59||e&&!a)return!1;if(o<=23&&s<=59&&i<60)return!0;let d=s-l*u,p=o-c*u-(d<0?1:0);return(p===23||p===-1)&&(d===59||d===-1)&&i<61}}function cf(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function bb(e,t){if(!(e&&t))return;let r=of.exec(e),n=of.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var af=/t|\s/i;function yb(e){let t=sf(e);return function(n){let o=n.split(af);return o.length===2&&Cb(o[0])&&t(o[1])}}function wb(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function xb(e,t){if(!(e&&t))return;let[r,n]=e.split(af),[o,s]=t.split(af),i=uf(r,o);if(i!==void 0)return i||cf(n,s)}var HO=/\/|:/,zO=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function KO(e){return HO.test(e)&&zO.test(e)}var Db=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function qO(e){return Db.lastIndex=0,Db.test(e)}var GO=-(2**31),WO=2**31-1;function JO(e){return Number.isInteger(e)&&e<=WO&&e>=GO}function YO(e){return Number.isInteger(e)}function vb(){return!0}var QO=/[^\\]\\Z/;function ZO(e){if(QO.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Eb=S(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.formatLimitDefinition=void 0;var XO=nf(),hr=te(),Nn=hr.operators,Vu={formatMaximum:{okStr:"<=",ok:Nn.LTE,fail:Nn.GT},formatMinimum:{okStr:">=",ok:Nn.GTE,fail:Nn.LT},formatExclusiveMaximum:{okStr:"<",ok:Nn.LT,fail:Nn.GTE},formatExclusiveMinimum:{okStr:">",ok:Nn.GT,fail:Nn.LTE}},eB={message:({keyword:e,schemaCode:t})=>(0,hr.str)`should be ${Vu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,hr._)`{comparison: ${Vu[e].okStr}, limit: ${t}}`};Si.formatLimitDefinition={keyword:Object.keys(Vu),type:"string",schemaType:"string",$data:!0,error:eB,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:s}=e,{opts:i,self:a}=s;if(!i.validateFormats)return;let u=new XO.KeywordCxt(s,a.RULES.all.format.definition,"format");u.$data?c():l();function c(){let p=t.scopeValue("formats",{ref:a.formats,code:i.code.formats}),h=t.const("fmt",(0,hr._)`${p}[${u.schemaCode}]`);e.fail$data((0,hr.or)((0,hr._)`typeof ${h} != "object"`,(0,hr._)`${h} instanceof RegExp`,(0,hr._)`typeof ${h}.compare != "function"`,d(h)))}function l(){let p=u.schema,h=a.formats[p];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${o}": format "${p}" does not define "compare" function`);let g=t.scopeValue("formats",{key:p,ref:h,code:i.code.formats?(0,hr._)`${i.code.formats}${(0,hr.getProperty)(p)}`:void 0});e.fail$data(d(g))}function d(p){return(0,hr._)`${p}.compare(${r}, ${n}) ${Vu[o].fail} 0`}},dependencies:["format"]};var tB=e=>(e.addKeyword(Si.formatLimitDefinition),e);Si.default=tB});var _b=S((Ks,Fb)=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Ei=Sb(),rB=Eb(),lf=te(),Pb=new lf.Name("fullFormats"),nB=new lf.Name("fastFormats"),df=(e,t={keywords:!0})=>{if(Array.isArray(t))return Ab(e,t,Ei.fullFormats,Pb),e;let[r,n]=t.mode==="fast"?[Ei.fastFormats,nB]:[Ei.fullFormats,Pb],o=t.formats||Ei.formatNames;return Ab(e,o,r,n),t.keywords&&(0,rB.default)(e),e};df.get=(e,t="full")=>{let n=(t==="fast"?Ei.fastFormats:Ei.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function Ab(e,t,r,n){var o,s;(o=(s=e.opts.code).formats)!==null&&o!==void 0||(s.formats=(0,lf._)`require("ajv-formats/dist/formats").${n}`);for(let i of t)e.addFormat(i,r[i])}Fb.exports=Ks=df;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=df});var $b=S((dG,kb)=>{kb.exports=Ib;Ib.sync=aB;var Tb=J("fs");function sB(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function Rb(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:sB(t,r)}function Ib(e,t,r){Tb.stat(e,function(n,o){r(n,n?!1:Rb(o,e,t))})}function aB(e,t){return Rb(Tb.statSync(e),e,t)}});var Lb=S((pG,Mb)=>{Mb.exports=Ob;Ob.sync=uB;var Nb=J("fs");function Ob(e,t,r){Nb.stat(e,function(n,o){r(n,n?!1:Bb(o,t))})}function uB(e,t){return Bb(Nb.statSync(e),t)}function Bb(e,t){return e.isFile()&&cB(e,t)}function cB(e,t){var r=e.mode,n=e.uid,o=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),i=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,d=r&c||r&u&&o===i||r&a&&n===s||r&l&&s===0;return d}});var Ub=S((mG,jb)=>{var fG=J("fs"),Hu;process.platform==="win32"||global.TESTING_WINDOWS?Hu=$b():Hu=Lb();jb.exports=pf;pf.sync=lB;function pf(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){pf(e,t||{},function(s,i){s?o(s):n(i)})})}Hu(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function lB(e,t){try{return Hu.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Wb=S((gG,Gb)=>{var Pi=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Vb=J("path"),dB=Pi?";":":",Hb=Ub(),zb=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Kb=(e,t)=>{let r=t.colon||dB,n=e.match(/\//)||Pi&&e.match(/\\/)?[""]:[...Pi?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Pi?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Pi?o.split(r):[""];return Pi&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:o}},qb=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:s}=Kb(e,t),i=[],a=c=>new Promise((l,d)=>{if(c===n.length)return t.all&&i.length?l(i):d(zb(e));let p=n[c],h=/^".*"$/.test(p)?p.slice(1,-1):p,g=Vb.join(h,e),m=!h&&/^\.[\\\/]/.test(e)?e.slice(0,2)+g:g;l(u(m,c,0))}),u=(c,l,d)=>new Promise((p,h)=>{if(d===o.length)return p(a(l+1));let g=o[d];Hb(c+g,{pathExt:s},(m,y)=>{if(!m&&y)if(t.all)i.push(c+g);else return p(c+g);return p(u(c,l,d+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},pB=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Kb(e,t),s=[];for(let i=0;i<r.length;i++){let a=r[i],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=Vb.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let d=0;d<n.length;d++){let p=l+n[d];try{if(Hb.sync(p,{pathExt:o}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw zb(e)};Gb.exports=qb;qb.sync=pB});var Yb=S((hG,ff)=>{"use strict";var Jb=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};ff.exports=Jb;ff.exports.default=Jb});var ew=S((yG,Xb)=>{"use strict";var Qb=J("path"),fB=Wb(),mB=Yb();function Zb(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,s=o&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let i;try{i=fB.sync(e.command,{path:r[mB({env:r})],pathExt:t?Qb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return i&&(i=Qb.resolve(o?e.options.cwd:"",i)),i}function gB(e){return Zb(e)||Zb(e,!0)}Xb.exports=gB});var tw=S((DG,gf)=>{"use strict";var mf=/([()\][%!^"`<>&|;, *?])/g;function hB(e){return e=e.replace(mf,"^$1"),e}function yB(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(mf,"^$1"),t&&(e=e.replace(mf,"^$1")),e}gf.exports.command=hB;gf.exports.argument=yB});var nw=S((vG,rw)=>{"use strict";rw.exports=/^#!(.*)/});var iw=S((CG,ow)=>{"use strict";var DB=nw();ow.exports=(e="")=>{let t=e.match(DB);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var aw=S((bG,sw)=>{"use strict";var hf=J("fs"),vB=iw();function CB(e){let r=Buffer.alloc(150),n;try{n=hf.openSync(e,"r"),hf.readSync(n,r,0,150,0),hf.closeSync(n)}catch{}return vB(r.toString())}sw.exports=CB});var dw=S((wG,lw)=>{"use strict";var bB=J("path"),uw=ew(),cw=tw(),wB=aw(),xB=process.platform==="win32",SB=/\.(?:com|exe)$/i,EB=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function PB(e){e.file=uw(e);let t=e.file&&wB(e.file);return t?(e.args.unshift(e.file),e.command=t,uw(e)):e.file}function AB(e){if(!xB)return e;let t=PB(e),r=!SB.test(t);if(e.options.forceShell||r){let n=EB.test(t);e.command=bB.normalize(e.command),e.command=cw.command(e.command),e.args=e.args.map(s=>cw.argument(s,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function FB(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:AB(n)}lw.exports=FB});var mw=S((xG,fw)=>{"use strict";var yf=process.platform==="win32";function Df(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function _B(e,t){if(!yf)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let s=pw(o,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function pw(e,t){return yf&&e===1&&!t.file?Df(t.original,"spawn"):null}function TB(e,t){return yf&&e===1&&!t.file?Df(t.original,"spawnSync"):null}fw.exports={hookChildProcess:_B,verifyENOENT:pw,verifyENOENTSync:TB,notFoundError:Df}});var yw=S((SG,Ai)=>{"use strict";var gw=J("child_process"),vf=dw(),Cf=mw();function hw(e,t,r){let n=vf(e,t,r),o=gw.spawn(n.command,n.args,n.options);return Cf.hookChildProcess(o,n),o}function RB(e,t,r){let n=vf(e,t,r),o=gw.spawnSync(n.command,n.args,n.options);return o.error=o.error||Cf.verifyENOENTSync(o.status,n),o}Ai.exports=hw;Ai.exports.spawn=hw;Ai.exports.sync=RB;Ai.exports._parse=vf;Ai.exports._enoent=Cf});var Dw=S((kG,$B)=>{$B.exports={name:"dotenv",version:"16.3.2",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var ww=S(($G,dn)=>{var vw=J("fs"),bf=J("path"),NB=J("os"),OB=J("crypto"),BB=Dw(),wf=BB.version,MB=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function LB(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
33
+ deps: ${r}}`};var I2={keyword:"dependencies",type:"object",schemaType:"object",error:Hr.error,code(e){let[t,r]=k2(e);L0(e,t),j0(e,r)}};function k2({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function L0(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let i in t){let a=t[i];if(a.length===0)continue;let u=(0,zs.propertyInData)(r,n,i,o.opts.ownProperties);e.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(u,()=>{for(let c of a)(0,zs.checkReportMissingProp)(e,c)}):(r.if((0,Bp._)`${u} && (${(0,zs.checkMissingProp)(e,a,s)})`),(0,zs.reportMissingProp)(e,s),r.else())}}Hr.validatePropertyDeps=L0;function j0(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,i=r.name("valid");for(let a in t)(0,R2.alwaysValidSchema)(s,t[a])||(r.if((0,zs.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let u=e.subschema({keyword:o,schemaProp:a},i);e.mergeValidEvaluated(u,i)},()=>r.var(i,!0)),e.ok(i))}Hr.validateSchemaDeps=j0;Hr.default=I2});var H0=S(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var V0=te(),$2=ge(),N2={message:"property name must be valid",params:({params:e})=>(0,V0._)`{propertyName: ${e.propertyName}}`},O2={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:N2,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,$2.alwaysValidSchema)(o,r))return;let s=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),t.if((0,V0.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}};Mp.default=O2});var jp=S(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var Nu=tr(),gr=te(),B2=un(),Ou=ge(),M2={message:"must NOT have additional properties",params:({params:e})=>(0,gr._)`{additionalProperty: ${e.additionalProperty}}`},L2={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:M2,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:s,it:i}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,Ou.alwaysValidSchema)(i,r))return;let c=(0,Nu.allSchemaProperties)(n.properties),l=(0,Nu.allSchemaProperties)(n.patternProperties);d(),e.ok((0,gr._)`${s} === ${B2.default.errors}`);function d(){t.forIn("key",o,y=>{!c.length&&!l.length?g(y):t.if(p(y),()=>g(y))})}function p(y){let D;if(c.length>8){let w=(0,Ou.schemaRefOrVal)(i,n.properties,"properties");D=(0,Nu.isOwnProperty)(t,w,y)}else c.length?D=(0,gr.or)(...c.map(w=>(0,gr._)`${y} === ${w}`)):D=gr.nil;return l.length&&(D=(0,gr.or)(D,...l.map(w=>(0,gr._)`${(0,Nu.usePattern)(e,w)}.test(${y})`))),(0,gr.not)(D)}function h(y){t.code((0,gr._)`delete ${o}[${y}]`)}function g(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Ou.alwaysValidSchema)(i,r)){let D=t.name("valid");u.removeAdditional==="failing"?(m(y,D,!1),t.if((0,gr.not)(D),()=>{e.reset(),h(y)})):(m(y,D),a||t.if((0,gr.not)(D),()=>t.break()))}}function m(y,D,w){let x={keyword:"additionalProperties",dataProp:y,dataPropType:Ou.Type.Str};w===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,D)}}};Lp.default=L2});var q0=S(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var j2=Ts(),z0=tr(),Up=ge(),K0=jp(),U2={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&K0.default.code(new j2.KeywordCxt(s,K0.default,"additionalProperties"));let i=(0,z0.allSchemaProperties)(r);for(let d of i)s.definedProperties.add(d);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Up.mergeEvaluated.props(t,(0,Up.toHash)(i),s.props));let a=i.filter(d=>!(0,Up.alwaysValidSchema)(s,r[d]));if(a.length===0)return;let u=t.name("valid");for(let d of a)c(d)?l(d):(t.if((0,z0.propertyInData)(t,o,d,s.opts.ownProperties)),l(d),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function c(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};Vp.default=U2});var Y0=S(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var G0=tr(),Bu=te(),W0=ge(),J0=ge(),V2={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:s}=e,{opts:i}=s,a=(0,G0.allSchemaProperties)(r),u=a.filter(m=>(0,W0.alwaysValidSchema)(s,r[m]));if(a.length===0||u.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,l=t.name("valid");s.props!==!0&&!(s.props instanceof Bu.Name)&&(s.props=(0,J0.evaluatedPropsToName)(t,s.props));let{props:d}=s;p();function p(){for(let m of a)c&&h(m),s.allErrors?g(m):(t.var(l,!0),g(m),t.if(l))}function h(m){for(let y in c)new RegExp(m).test(y)&&(0,W0.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){t.forIn("key",n,y=>{t.if((0,Bu._)`${(0,G0.usePattern)(e,m)}.test(${y})`,()=>{let D=u.includes(m);D||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:J0.Type.Str},l),s.opts.unevaluated&&d!==!0?t.assign((0,Bu._)`${d}[${y}]`,!0):!D&&!s.allErrors&&t.if((0,Bu.not)(l),()=>t.break())})})}}};Hp.default=V2});var Q0=S(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var H2=ge(),z2={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,H2.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zp.default=z2});var Z0=S(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var K2=tr(),q2={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:K2.validateUnion,error:{message:"must match a schema in anyOf"}};Kp.default=q2});var X0=S(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var Mu=te(),G2=ge(),W2={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Mu._)`{passingSchemas: ${e.passing}}`},J2={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:W2,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let s=r,i=t.let("valid",!1),a=t.let("passing",null),u=t.name("_valid");e.setParams({passing:a}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((l,d)=>{let p;(0,G2.alwaysValidSchema)(o,l)?t.var(u,!0):p=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,Mu._)`${u} && ${i}`).assign(i,!1).assign(a,(0,Mu._)`[${a}, ${d}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(a,d),p&&e.mergeEvaluated(p,Mu.Name)})})}}};qp.default=J2});var eb=S(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});var Y2=ge(),Q2={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((s,i)=>{if((0,Y2.alwaysValidSchema)(n,s))return;let a=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(a)})}};Gp.default=Q2});var nb=S(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var Lu=te(),rb=ge(),Z2={message:({params:e})=>(0,Lu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lu._)`{failingKeyword: ${e.ifClause}}`},X2={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Z2,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,rb.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=tb(n,"then"),s=tb(n,"else");if(!o&&!s)return;let i=t.let("valid",!0),a=t.name("_valid");if(u(),e.reset(),o&&s){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,c("then",l),c("else",l))}else o?t.if(a,c("then")):t.if((0,Lu.not)(a),c("else"));e.pass(i,()=>e.error(!0));function u(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function c(l,d){return()=>{let p=e.subschema({keyword:l},a);t.assign(i,a),e.mergeValidEvaluated(p,i),d?t.assign(d,(0,Lu._)`${l}`):e.setParams({ifClause:l})}}}};function tb(e,t){let r=e.schema[t];return r!==void 0&&!(0,rb.alwaysValidSchema)(e,r)}Wp.default=X2});var ob=S(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var eO=ge(),tO={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,eO.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Jp.default=tO});var ib=S(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var rO=Ip(),nO=N0(),oO=kp(),iO=B0(),sO=M0(),aO=U0(),uO=H0(),cO=jp(),lO=q0(),dO=Y0(),pO=Q0(),fO=Z0(),mO=X0(),gO=eb(),hO=nb(),yO=ob();function DO(e=!1){let t=[pO.default,fO.default,mO.default,gO.default,hO.default,yO.default,uO.default,cO.default,aO.default,lO.default,dO.default];return e?t.push(nO.default,iO.default):t.push(rO.default,oO.default),t.push(sO.default),t}Yp.default=DO});var sb=S(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var Me=te(),vO={message:({schemaCode:e})=>(0,Me.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Me._)`{format: ${e}}`},CO={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:vO,code(e,t){let{gen:r,data:n,$data:o,schema:s,schemaCode:i,it:a}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:d}=a;if(!u.validateFormats)return;o?p():h();function p(){let g=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),m=r.const("fDef",(0,Me._)`${g}[${i}]`),y=r.let("fType"),D=r.let("format");r.if((0,Me._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,Me._)`${m}.type || "string"`).assign(D,(0,Me._)`${m}.validate`),()=>r.assign(y,(0,Me._)`"string"`).assign(D,m)),e.fail$data((0,Me.or)(w(),x()));function w(){return u.strictSchema===!1?Me.nil:(0,Me._)`${i} && !${D}`}function x(){let F=l.$async?(0,Me._)`(${m}.async ? await ${D}(${n}) : ${D}(${n}))`:(0,Me._)`${D}(${n})`,P=(0,Me._)`(typeof ${D} == "function" ? ${F} : ${D}.test(${n}))`;return(0,Me._)`${D} && ${D} !== true && ${y} === ${t} && !${P}`}}function h(){let g=d.formats[s];if(!g){w();return}if(g===!0)return;let[m,y,D]=x(g);m===t&&e.pass(F());function w(){if(u.strictSchema===!1){d.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function x(P){let _=P instanceof RegExp?(0,Me.regexpCode)(P):u.code.formats?(0,Me._)`${u.code.formats}${(0,Me.getProperty)(s)}`:void 0,I=r.scopeValue("formats",{key:s,ref:P,code:_});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,Me._)`${I}.validate`]:["string",P,I]}function F(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Me._)`await ${D}(${n})`}return typeof y=="function"?(0,Me._)`${D}(${n})`:(0,Me._)`${D}.test(${n})`}}}};Qp.default=CO});var ab=S(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var bO=sb(),wO=[bO.default];Zp.default=wO});var ub=S(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.contentVocabulary=Ci.metadataVocabulary=void 0;Ci.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ci.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var lb=S(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var xO=y0(),SO=R0(),EO=ib(),PO=ab(),cb=ub(),AO=[xO.default,SO.default,(0,EO.default)(),PO.default,cb.metadataVocabulary,cb.contentVocabulary];Xp.default=AO});var pb=S(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.DiscrError=void 0;var db;(function(e){e.Tag="tag",e.Mapping="mapping"})(db||(ju.DiscrError=db={}))});var mb=S(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var bi=te(),ef=pb(),fb=wu(),FO=Rs(),_O=ge(),TO={message:({params:{discrError:e,tagName:t}})=>e===ef.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,bi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},RO={keyword:"discriminator",type:"object",schemaType:"object",error:TO,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:s}=e,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),c=t.const("tag",(0,bi._)`${r}${(0,bi.getProperty)(a)}`);t.if((0,bi._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:ef.DiscrError.Tag,tag:c,tagName:a})),e.ok(u);function l(){let h=p();t.if(!1);for(let g in h)t.elseIf((0,bi._)`${c} === ${g}`),t.assign(u,d(h[g]));t.else(),e.error(!1,{discrError:ef.DiscrError.Mapping,tag:c,tagName:a}),t.endIf()}function d(h){let g=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(m,bi.Name),g}function p(){var h;let g={},m=D(o),y=!0;for(let F=0;F<i.length;F++){let P=i[F];if(P?.$ref&&!(0,_O.schemaHasRulesButRef)(P,s.self.RULES)){let I=P.$ref;if(P=fb.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,I),P instanceof fb.SchemaEnv&&(P=P.schema),P===void 0)throw new FO.default(s.opts.uriResolver,s.baseId,I)}let _=(h=P?.properties)===null||h===void 0?void 0:h[a];if(typeof _!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(m||D(P)),w(_,F)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return g;function D({required:F}){return Array.isArray(F)&&F.includes(a)}function w(F,P){if(F.const)x(F.const,P);else if(F.enum)for(let _ of F.enum)x(_,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(F,P){if(typeof F!="string"||F in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[F]=P}}}};tf.default=RO});var gb=S((Zq,IO)=>{IO.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var nf=S((Te,rf)=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.MissingRefError=Te.ValidationError=Te.CodeGen=Te.Name=Te.nil=Te.stringify=Te.str=Te._=Te.KeywordCxt=Te.Ajv=void 0;var kO=d0(),$O=lb(),NO=mb(),hb=gb(),OO=["/properties"],Uu="http://json-schema.org/draft-07/schema",wi=class extends kO.default{_addVocabularies(){super._addVocabularies(),$O.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(NO.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(hb,OO):hb;this.addMetaSchema(t,Uu,!1),this.refs["http://json-schema.org/schema"]=Uu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Uu)?Uu:void 0)}};Te.Ajv=wi;rf.exports=Te=wi;rf.exports.Ajv=wi;Object.defineProperty(Te,"__esModule",{value:!0});Te.default=wi;var BO=Ts();Object.defineProperty(Te,"KeywordCxt",{enumerable:!0,get:function(){return BO.KeywordCxt}});var xi=te();Object.defineProperty(Te,"_",{enumerable:!0,get:function(){return xi._}});Object.defineProperty(Te,"str",{enumerable:!0,get:function(){return xi.str}});Object.defineProperty(Te,"stringify",{enumerable:!0,get:function(){return xi.stringify}});Object.defineProperty(Te,"nil",{enumerable:!0,get:function(){return xi.nil}});Object.defineProperty(Te,"Name",{enumerable:!0,get:function(){return xi.Name}});Object.defineProperty(Te,"CodeGen",{enumerable:!0,get:function(){return xi.CodeGen}});var MO=Cu();Object.defineProperty(Te,"ValidationError",{enumerable:!0,get:function(){return MO.default}});var LO=Rs();Object.defineProperty(Te,"MissingRefError",{enumerable:!0,get:function(){return LO.default}})});var Sb=S(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.formatNames=Kr.fastFormats=Kr.fullFormats=void 0;function zr(e,t){return{validate:e,compare:t}}Kr.fullFormats={date:zr(Cb,uf),time:zr(sf(!0),cf),"date-time":zr(yb(!0),wb),"iso-time":zr(sf(),bb),"iso-date-time":zr(yb(),xb),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:KO,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ZO,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:qO,int32:{type:"number",validate:JO},int64:{type:"number",validate:YO},float:{type:"number",validate:vb},double:{type:"number",validate:vb},password:!0,binary:!0};Kr.fastFormats={...Kr.fullFormats,date:zr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,uf),time:zr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cf),"date-time":zr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,wb),"iso-time":zr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,bb),"iso-date-time":zr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,xb),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Kr.formatNames=Object.keys(Kr.fullFormats);function jO(e){return e%4===0&&(e%100!==0||e%400===0)}var UO=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,VO=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Cb(e){let t=UO.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&jO(r)?29:VO[n])}function uf(e,t){if(e&&t)return e>t?1:e<t?-1:0}var of=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sf(e){return function(r){let n=of.exec(r);if(!n)return!1;let o=+n[1],s=+n[2],i=+n[3],a=n[4],u=n[5]==="-"?-1:1,c=+(n[6]||0),l=+(n[7]||0);if(c>23||l>59||e&&!a)return!1;if(o<=23&&s<=59&&i<60)return!0;let d=s-l*u,p=o-c*u-(d<0?1:0);return(p===23||p===-1)&&(d===59||d===-1)&&i<61}}function cf(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function bb(e,t){if(!(e&&t))return;let r=of.exec(e),n=of.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var af=/t|\s/i;function yb(e){let t=sf(e);return function(n){let o=n.split(af);return o.length===2&&Cb(o[0])&&t(o[1])}}function wb(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function xb(e,t){if(!(e&&t))return;let[r,n]=e.split(af),[o,s]=t.split(af),i=uf(r,o);if(i!==void 0)return i||cf(n,s)}var HO=/\/|:/,zO=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function KO(e){return HO.test(e)&&zO.test(e)}var Db=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function qO(e){return Db.lastIndex=0,Db.test(e)}var GO=-(2**31),WO=2**31-1;function JO(e){return Number.isInteger(e)&&e<=WO&&e>=GO}function YO(e){return Number.isInteger(e)}function vb(){return!0}var QO=/[^\\]\\Z/;function ZO(e){if(QO.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Eb=S(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.formatLimitDefinition=void 0;var XO=nf(),hr=te(),Nn=hr.operators,Vu={formatMaximum:{okStr:"<=",ok:Nn.LTE,fail:Nn.GT},formatMinimum:{okStr:">=",ok:Nn.GTE,fail:Nn.LT},formatExclusiveMaximum:{okStr:"<",ok:Nn.LT,fail:Nn.GTE},formatExclusiveMinimum:{okStr:">",ok:Nn.GT,fail:Nn.LTE}},eB={message:({keyword:e,schemaCode:t})=>(0,hr.str)`should be ${Vu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,hr._)`{comparison: ${Vu[e].okStr}, limit: ${t}}`};Si.formatLimitDefinition={keyword:Object.keys(Vu),type:"string",schemaType:"string",$data:!0,error:eB,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:s}=e,{opts:i,self:a}=s;if(!i.validateFormats)return;let u=new XO.KeywordCxt(s,a.RULES.all.format.definition,"format");u.$data?c():l();function c(){let p=t.scopeValue("formats",{ref:a.formats,code:i.code.formats}),h=t.const("fmt",(0,hr._)`${p}[${u.schemaCode}]`);e.fail$data((0,hr.or)((0,hr._)`typeof ${h} != "object"`,(0,hr._)`${h} instanceof RegExp`,(0,hr._)`typeof ${h}.compare != "function"`,d(h)))}function l(){let p=u.schema,h=a.formats[p];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${o}": format "${p}" does not define "compare" function`);let g=t.scopeValue("formats",{key:p,ref:h,code:i.code.formats?(0,hr._)`${i.code.formats}${(0,hr.getProperty)(p)}`:void 0});e.fail$data(d(g))}function d(p){return(0,hr._)`${p}.compare(${r}, ${n}) ${Vu[o].fail} 0`}},dependencies:["format"]};var tB=e=>(e.addKeyword(Si.formatLimitDefinition),e);Si.default=tB});var _b=S((Ks,Fb)=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Ei=Sb(),rB=Eb(),lf=te(),Pb=new lf.Name("fullFormats"),nB=new lf.Name("fastFormats"),df=(e,t={keywords:!0})=>{if(Array.isArray(t))return Ab(e,t,Ei.fullFormats,Pb),e;let[r,n]=t.mode==="fast"?[Ei.fastFormats,nB]:[Ei.fullFormats,Pb],o=t.formats||Ei.formatNames;return Ab(e,o,r,n),t.keywords&&(0,rB.default)(e),e};df.get=(e,t="full")=>{let n=(t==="fast"?Ei.fastFormats:Ei.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function Ab(e,t,r,n){var o,s;(o=(s=e.opts.code).formats)!==null&&o!==void 0||(s.formats=(0,lf._)`require("ajv-formats/dist/formats").${n}`);for(let i of t)e.addFormat(i,r[i])}Fb.exports=Ks=df;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=df});var $b=S((dG,kb)=>{kb.exports=Ib;Ib.sync=aB;var Tb=Y("fs");function sB(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function Rb(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:sB(t,r)}function Ib(e,t,r){Tb.stat(e,function(n,o){r(n,n?!1:Rb(o,e,t))})}function aB(e,t){return Rb(Tb.statSync(e),e,t)}});var Lb=S((pG,Mb)=>{Mb.exports=Ob;Ob.sync=uB;var Nb=Y("fs");function Ob(e,t,r){Nb.stat(e,function(n,o){r(n,n?!1:Bb(o,t))})}function uB(e,t){return Bb(Nb.statSync(e),t)}function Bb(e,t){return e.isFile()&&cB(e,t)}function cB(e,t){var r=e.mode,n=e.uid,o=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),i=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,d=r&c||r&u&&o===i||r&a&&n===s||r&l&&s===0;return d}});var Ub=S((mG,jb)=>{var fG=Y("fs"),Hu;process.platform==="win32"||global.TESTING_WINDOWS?Hu=$b():Hu=Lb();jb.exports=pf;pf.sync=lB;function pf(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){pf(e,t||{},function(s,i){s?o(s):n(i)})})}Hu(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function lB(e,t){try{return Hu.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Wb=S((gG,Gb)=>{var Pi=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Vb=Y("path"),dB=Pi?";":":",Hb=Ub(),zb=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Kb=(e,t)=>{let r=t.colon||dB,n=e.match(/\//)||Pi&&e.match(/\\/)?[""]:[...Pi?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Pi?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Pi?o.split(r):[""];return Pi&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:o}},qb=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:s}=Kb(e,t),i=[],a=c=>new Promise((l,d)=>{if(c===n.length)return t.all&&i.length?l(i):d(zb(e));let p=n[c],h=/^".*"$/.test(p)?p.slice(1,-1):p,g=Vb.join(h,e),m=!h&&/^\.[\\\/]/.test(e)?e.slice(0,2)+g:g;l(u(m,c,0))}),u=(c,l,d)=>new Promise((p,h)=>{if(d===o.length)return p(a(l+1));let g=o[d];Hb(c+g,{pathExt:s},(m,y)=>{if(!m&&y)if(t.all)i.push(c+g);else return p(c+g);return p(u(c,l,d+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},pB=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Kb(e,t),s=[];for(let i=0;i<r.length;i++){let a=r[i],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=Vb.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let d=0;d<n.length;d++){let p=l+n[d];try{if(Hb.sync(p,{pathExt:o}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw zb(e)};Gb.exports=qb;qb.sync=pB});var Yb=S((hG,ff)=>{"use strict";var Jb=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};ff.exports=Jb;ff.exports.default=Jb});var ew=S((yG,Xb)=>{"use strict";var Qb=Y("path"),fB=Wb(),mB=Yb();function Zb(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,s=o&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let i;try{i=fB.sync(e.command,{path:r[mB({env:r})],pathExt:t?Qb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return i&&(i=Qb.resolve(o?e.options.cwd:"",i)),i}function gB(e){return Zb(e)||Zb(e,!0)}Xb.exports=gB});var tw=S((DG,gf)=>{"use strict";var mf=/([()\][%!^"`<>&|;, *?])/g;function hB(e){return e=e.replace(mf,"^$1"),e}function yB(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(mf,"^$1"),t&&(e=e.replace(mf,"^$1")),e}gf.exports.command=hB;gf.exports.argument=yB});var nw=S((vG,rw)=>{"use strict";rw.exports=/^#!(.*)/});var iw=S((CG,ow)=>{"use strict";var DB=nw();ow.exports=(e="")=>{let t=e.match(DB);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var aw=S((bG,sw)=>{"use strict";var hf=Y("fs"),vB=iw();function CB(e){let r=Buffer.alloc(150),n;try{n=hf.openSync(e,"r"),hf.readSync(n,r,0,150,0),hf.closeSync(n)}catch{}return vB(r.toString())}sw.exports=CB});var dw=S((wG,lw)=>{"use strict";var bB=Y("path"),uw=ew(),cw=tw(),wB=aw(),xB=process.platform==="win32",SB=/\.(?:com|exe)$/i,EB=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function PB(e){e.file=uw(e);let t=e.file&&wB(e.file);return t?(e.args.unshift(e.file),e.command=t,uw(e)):e.file}function AB(e){if(!xB)return e;let t=PB(e),r=!SB.test(t);if(e.options.forceShell||r){let n=EB.test(t);e.command=bB.normalize(e.command),e.command=cw.command(e.command),e.args=e.args.map(s=>cw.argument(s,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function FB(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:AB(n)}lw.exports=FB});var mw=S((xG,fw)=>{"use strict";var yf=process.platform==="win32";function Df(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function _B(e,t){if(!yf)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let s=pw(o,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function pw(e,t){return yf&&e===1&&!t.file?Df(t.original,"spawn"):null}function TB(e,t){return yf&&e===1&&!t.file?Df(t.original,"spawnSync"):null}fw.exports={hookChildProcess:_B,verifyENOENT:pw,verifyENOENTSync:TB,notFoundError:Df}});var yw=S((SG,Ai)=>{"use strict";var gw=Y("child_process"),vf=dw(),Cf=mw();function hw(e,t,r){let n=vf(e,t,r),o=gw.spawn(n.command,n.args,n.options);return Cf.hookChildProcess(o,n),o}function RB(e,t,r){let n=vf(e,t,r),o=gw.spawnSync(n.command,n.args,n.options);return o.error=o.error||Cf.verifyENOENTSync(o.status,n),o}Ai.exports=hw;Ai.exports.spawn=hw;Ai.exports.sync=RB;Ai.exports._parse=vf;Ai.exports._enoent=Cf});var Dw=S((kG,$B)=>{$B.exports={name:"dotenv",version:"16.3.2",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var ww=S(($G,dn)=>{var vw=Y("fs"),bf=Y("path"),NB=Y("os"),OB=Y("crypto"),BB=Dw(),wf=BB.version,MB=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function LB(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
34
34
  `);let n;for(;(n=MB.exec(r))!=null;){let o=n[1],s=n[2]||"";s=s.trim();let i=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),i==='"'&&(s=s.replace(/\\n/g,`
35
- `),s=s.replace(/\\r/g,"\r")),t[o]=s}return t}function jB(e){let t=bw(e),r=Je.configDotenv({path:t});if(!r.parsed)throw new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);let n=Cw(e).split(","),o=n.length,s;for(let i=0;i<o;i++)try{let a=n[i].trim(),u=HB(r,a);s=Je.decrypt(u.ciphertext,u.key);break}catch(a){if(i+1>=o)throw a}return Je.parse(s)}function UB(e){console.log(`[dotenv@${wf}][INFO] ${e}`)}function VB(e){console.log(`[dotenv@${wf}][WARN] ${e}`)}function zu(e){console.log(`[dotenv@${wf}][DEBUG] ${e}`)}function Cw(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function HB(e,t){let r;try{r=new URL(t)}catch(a){throw a.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):a}let n=r.password;if(!n)throw new Error("INVALID_DOTENV_KEY: Missing key part");let o=r.searchParams.get("environment");if(!o)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let s=`DOTENV_VAULT_${o.toUpperCase()}`,i=e.parsed[s];if(!i)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);return{ciphertext:i,key:n}}function bw(e){let t=bf.resolve(process.cwd(),".env");return e&&e.path&&e.path.length>0&&(t=e.path),t.endsWith(".vault")?t:`${t}.vault`}function zB(e){return e[0]==="~"?bf.join(NB.homedir(),e.slice(1)):e}function KB(e){UB("Loading env from encrypted .env.vault");let t=Je._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Je.populate(r,t,e),{parsed:t}}function qB(e){let t=bf.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug);e&&(e.path!=null&&(t=zB(e.path)),e.encoding!=null?r=e.encoding:n&&zu("No encoding is specified. UTF-8 is used by default"));try{let o=Je.parse(vw.readFileSync(t,{encoding:r})),s=process.env;return e&&e.processEnv!=null&&(s=e.processEnv),Je.populate(s,o,e),{parsed:o}}catch(o){return n&&zu(`Failed to load ${t} ${o.message}`),{error:o}}}function GB(e){let t=bw(e);return Cw(e).length===0?Je.configDotenv(e):vw.existsSync(t)?Je._configVault(e):(VB(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Je.configDotenv(e))}function WB(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),o=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let i=OB.createDecipheriv("aes-256-gcm",r,o);return i.setAuthTag(s),`${i.update(n)}${i.final()}`}catch(i){let a=i instanceof RangeError,u=i.message==="Invalid key length",c=i.message==="Unsupported state or unable to authenticate data";if(a||u){let l="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(l)}else if(c){let l="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(l)}else throw console.error("Error: ",i.code),console.error("Error: ",i.message),i}}function JB(e,t,r={}){let n=!!(r&&r.debug),o=!!(r&&r.override);if(typeof t!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(o===!0&&(e[s]=t[s]),n&&zu(o===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):e[s]=t[s]}var Je={configDotenv:qB,_configVault:KB,_parseVault:jB,config:GB,decrypt:WB,parse:LB,populate:JB};dn.exports.configDotenv=Je.configDotenv;dn.exports._configVault=Je._configVault;dn.exports._parseVault=Je._parseVault;dn.exports.config=Je.config;dn.exports.decrypt=Je.decrypt;dn.exports.parse=Je.parse;dn.exports.populate=Je.populate;dn.exports=Je});var Ww="1.19.1",Mt=process.env.OVERRIDE_VERSION??Ww;import{createServer as IM,request as kM}from"node:http";var Wu="preview-url";var Fo="framework",Xs="platform",ea="node",$f="/~builder-connect",Mn="/~builder-connected",Ju="/~builder-dev-tools",Yu="/~builder-dev-tools.js",Ln="/~builder-dev-tools-close",Nf="/mappings";function ce(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function ta(e,t=""){let r=ce(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function ze(e,t,r){if(t){let n=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?n.printFile(t).trim()+`
35
+ `),s=s.replace(/\\r/g,"\r")),t[o]=s}return t}function jB(e){let t=bw(e),r=Je.configDotenv({path:t});if(!r.parsed)throw new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);let n=Cw(e).split(","),o=n.length,s;for(let i=0;i<o;i++)try{let a=n[i].trim(),u=HB(r,a);s=Je.decrypt(u.ciphertext,u.key);break}catch(a){if(i+1>=o)throw a}return Je.parse(s)}function UB(e){console.log(`[dotenv@${wf}][INFO] ${e}`)}function VB(e){console.log(`[dotenv@${wf}][WARN] ${e}`)}function zu(e){console.log(`[dotenv@${wf}][DEBUG] ${e}`)}function Cw(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function HB(e,t){let r;try{r=new URL(t)}catch(a){throw a.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):a}let n=r.password;if(!n)throw new Error("INVALID_DOTENV_KEY: Missing key part");let o=r.searchParams.get("environment");if(!o)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let s=`DOTENV_VAULT_${o.toUpperCase()}`,i=e.parsed[s];if(!i)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);return{ciphertext:i,key:n}}function bw(e){let t=bf.resolve(process.cwd(),".env");return e&&e.path&&e.path.length>0&&(t=e.path),t.endsWith(".vault")?t:`${t}.vault`}function zB(e){return e[0]==="~"?bf.join(NB.homedir(),e.slice(1)):e}function KB(e){UB("Loading env from encrypted .env.vault");let t=Je._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Je.populate(r,t,e),{parsed:t}}function qB(e){let t=bf.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug);e&&(e.path!=null&&(t=zB(e.path)),e.encoding!=null?r=e.encoding:n&&zu("No encoding is specified. UTF-8 is used by default"));try{let o=Je.parse(vw.readFileSync(t,{encoding:r})),s=process.env;return e&&e.processEnv!=null&&(s=e.processEnv),Je.populate(s,o,e),{parsed:o}}catch(o){return n&&zu(`Failed to load ${t} ${o.message}`),{error:o}}}function GB(e){let t=bw(e);return Cw(e).length===0?Je.configDotenv(e):vw.existsSync(t)?Je._configVault(e):(VB(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Je.configDotenv(e))}function WB(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),o=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let i=OB.createDecipheriv("aes-256-gcm",r,o);return i.setAuthTag(s),`${i.update(n)}${i.final()}`}catch(i){let a=i instanceof RangeError,u=i.message==="Invalid key length",c=i.message==="Unsupported state or unable to authenticate data";if(a||u){let l="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(l)}else if(c){let l="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(l)}else throw console.error("Error: ",i.code),console.error("Error: ",i.message),i}}function JB(e,t,r={}){let n=!!(r&&r.debug),o=!!(r&&r.override);if(typeof t!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let s of Object.keys(t))Object.prototype.hasOwnProperty.call(e,s)?(o===!0&&(e[s]=t[s]),n&&zu(o===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):e[s]=t[s]}var Je={configDotenv:qB,_configVault:KB,_parseVault:jB,config:GB,decrypt:WB,parse:LB,populate:JB};dn.exports.configDotenv=Je.configDotenv;dn.exports._configVault=Je._configVault;dn.exports._parseVault=Je._parseVault;dn.exports.config=Je.config;dn.exports.decrypt=Je.decrypt;dn.exports.parse=Je.parse;dn.exports.populate=Je.populate;dn.exports=Je});var Ww="1.19.2",Mt=process.env.OVERRIDE_VERSION??Ww;import{createServer as IM,request as kM}from"node:http";var Wu="preview-url";var Fo="framework",Xs="platform",ea="node",$f="/~builder-connect",Mn="/~builder-connected",Ju="/~builder-dev-tools",Yu="/~builder-dev-tools.js",Ln="/~builder-dev-tools-close",Nf="/mappings";function ce(e,t=""){return e.ts.createSourceFile("module.tsx",typeof t=="string"?t:"",e.ts.ScriptTarget.Latest,void 0)}function ta(e,t=""){let r=ce(e,t?.trim());if(r.statements.length===0)throw new Error(`No statements found in code: ${t}`);return r.statements[0]}function ze(e,t,r){if(t){let n=e.ts.createPrinter({newLine:e.ts.NewLineKind.LineFeed,removeComments:r});return e.ts.isSourceFile(t)?n.printFile(t).trim()+`
36
36
  `:n.printNode(e.ts.EmitHint.Unspecified,t,e.ts.createSourceFile("module.tsx","",e.ts.ScriptTarget.Latest)).trim()+`
37
37
  `}return""}var Lf=Ne(Bf(),1);function Lt(e){return e.endsWith(".mapper.tsx")||e.endsWith(".mapper.jsx")||e.endsWith(".mapper.ts")||e.endsWith(".mapper.js")||e.endsWith(".mapper.mjs")}function le(e,t,r){t=ir(t),r=ir(r),t=e.dirname(t);let n=e.basename(r,e.extname(r));r=e.dirname(r);let o;return n==="index"?o=e.relative(t,r):o=e.relative(t,e.join(r,n)),o=ir(e.normalize(o)),o.startsWith(".")||(o="./"+o),o}function ir(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}function jn(e,t){let r=e.extname(t),n=e.basename(t,r).split(/[\/\\]/),o=n[n.length-1];return Mf(o==="index"?e.basename(e.dirname(t)):o)}function Mf(e){return xe(e).replace(/ /g,"")}function jt(e,t){let r=e.extname(t),n=ir(e.basename(t,r)).split("/").pop();return xe(n==="index"?e.basename(e.dirname(t)):n)}function Se(e,t){let r=ir(e.relative(e.getAppRootDir(),t));r=r.split("/").filter(o=>o!=="."&&o!==".."&&o!=="").join("/"),r.endsWith(".tsx")||r.endsWith(".jsx")?r=r.slice(0,-4):(r.endsWith(".ts")||r.endsWith(".js"))&&(r=r.slice(0,-3));let n=e.getFrameworks();return r.startsWith("src/")&&(r=r.slice(4)),n.some(o=>o.name.includes("next"))?"@/"+r:"~/"+r}function De(e,t){let r=t,n=[];for(let o=0;o<2;o++){let s=e.basename(r);if(!s||s==="components")break;n.unshift(s),r=e.dirname(r)}return n.join("/")}function xe(e){for(e=e.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();e.includes(" ");)e=e.replace(/ /g," ");return e.split(" ").map(t=>t.length>2?t[0].toUpperCase()+t.slice(1):t).join("").trim()}function gt(e){return e.sort((t,r)=>t.name.toLocaleLowerCase().localeCompare(r.name.toLocaleLowerCase()))}async function be(e,t,r,n){if(typeof r!="string"||r==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${r}, ${t}`);return n&&(t=n),t=e.normalize(t),(await e.hash(t+"#"+r)).substring(0,8)}async function jf(e){return(await e.hash(e.getAppRootDir())).substring(0,8)}function Ti(e){return typeof e=="number"}function _o(e){return typeof e=="boolean"}function ct(e){return typeof e=="string"}function To(e){return typeof e=="string"?/^[A-Z][A-Za-z0-9]*$/.test(e):!1}function Tt(e){return JSON.parse(JSON.stringify(e))}function ra(e,t,r){for(let n of t)if(e.dirname(r).includes(n))return!0;return!1}function Uf(){try{let e=(0,Lf.default)();if(e?.name)return e.name}catch{}return"npm"}function Yw(){return process.platform.startsWith("win")}function $e(){return Yw()?'"@builder.io/dev-tools"':"builder.io"}function lt(e){let t=e.join(e.getAppRootDir(),"tsconfig.json");return e.exists(t)}var Qw=["node_modules","dist","build","public"];async function ht(e,t){async function r(o,s){if(s>10)return;let i=await e.readdir(o);for(let a of i){if(Qw.includes(a))continue;let u=e.join(o,a),c=await e.stat(u);if(c){if(c.isFile()&&a.startsWith("builder-registry."))return u;if(c.isDirectory()){let l=await r(u,s+1);if(l)return l}}}}let n=await r(e.getAppRootDir(),0);if(!n){let s=`builder-registry.${await lt(e)?"ts":"js"}`;return e.join(t,s)}return n}async function fn(e,t){let r=e.resolve("/");for(let n=0;n<20;n++){let o=e.join(t,"package.json"),s=await e.readFile(o);if(s)return JSON.parse(s);if(t===r)break;t=e.dirname(t)}return null}async function Vf(e,t){for(let r=0;r<20;r++){let n=e.dirname(t),o=e.join(n,"node_modules");if(await e.exists(o))return o;if(t===e.getAppRootDir())break;t=e.dirname(t)}return e.join(e.getAppRootDir(),"node_modules")}async function Ri(e,t,r){let n=await e.readdir(t);return n.includes(r)?e.join(t,r):(await Promise.all(n.map(async s=>{if(s.startsWith(".")||s==="node_modules")return;let i=e.join(t,s);if((await e.stat(i)).isDirectory()){let u=await Ri(e,i,r);if(u)return u}}))).find(s=>typeof s=="string")}async function Ue(e,t,r){if(!Array.isArray(t)||t.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${t}`);let n=await Vf(e,t[0]),o=e.join(n,"typescript","lib"),s=new Map,i={fileExists:a=>{if(a=e.normalize(a),a.includes("node_modules")){let u=Ii.get(a);if(!u){try{e.statSync(a).isFile()?u={exists:!0,content:e.readFileSync(a)}:u={exists:!1}}catch{u={exists:!1}}Ii.set(a,u)}return u.exists}if(!s.has(a))if(e.existsSync(a)){let c=e.statSync(a);s.set(a,c.isFile())}else s.set(a,!1);return s.get(a)},getCanonicalFileName:a=>e.normalize(a),getCurrentDirectory:()=>e.cwd(),getDefaultLibFileName:()=>e.join(o,"lib.d.ts"),getDefaultLibLocation:()=>o,getNewLine:()=>`
38
38
  `,getSourceFile:a=>{if(a=e.normalize(a),a.includes("node_modules")){let c=Ii.get(a);if(c)return ce(e,c.content)}let u;try{u=e.readFileSync(a)}catch{console.error(`Could not read: ${a}`),u==null}if(u==null){let c=e.basename(a),l=e.extname(c).toLowerCase();if(a.startsWith(o)&&l===".ts"&&(u=zf.get(c),u==null&&typeof self<"u"&&typeof fetch=="function"))throw new oa(c)}return a.includes("node_modules")&&(u?Ii.set(a,{exists:!0,content:u}):Ii.set(a,{exists:!1})),ce(e,u)},readFile:a=>{let u=e.readFileSync(a);return typeof u=="string"?u:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return Zw(e,i,t,r)}catch(a){if(a instanceof oa){await Xw(e,a.libName);continue}throw e.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${t[0]}`,{cause:a})}}function Zw(e,t,r,n){let o={rootNames:[...r],host:t,options:{}},s=e.ts.findConfigFile(e.dirname(r[0]),i=>e.existsSync(i));if(s){let i=Hf.get(s);if(!i){let a=e.ts.readConfigFile(s,u=>{let c=e.readFileSync(u);return typeof c=="string"?c:void 0});a.error?e.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(i=e.ts.parseJsonConfigFileContent(a.config,e.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(c,l)=>e.readdirSync(c),fileExists:c=>e.existsSync(c),readFile:c=>e.readFileSync(c)||void 0},e.dirname(s),void 0,s).options,Hf.set(s,i))}i&&(o.options=Tt(i))}return o.options.noEmit=!0,o.options.isolatedModules=!1,o.options.strict=!1,o.options.jsx=e.ts.JsxEmit.Preserve,o.options.allowJs=!0,Object.assign(o.options,n),e.ts.createProgram(o)}async function Ro(e,t,r){r||(r=await Ue(e,[t]));let n=r.getSourceFile(t);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${t}`);return{typeChecker:r.getTypeChecker(),sourceFile:n}}var oa=class{constructor(t){He(this,"libName");this.libName=t}};async function Xw(e,t){let r=`https://cdn.jsdelivr.net/npm/typescript@${e.ts.version}/lib/${t}`;na.has(t)||na.set(t,fetch(r).then(n=>n.text()).then(n=>{zf.set(t,n)})),await na.get(t),na.delete(t)}var zf=new Map,na=new Map,Ii=new Map,Hf=new Map;async function Kf(e,t){let r=await e.readFile(t.filePath);return r==null?{diagnostics:[{messageText:`Error reading: ${t.filePath}`}],code:null,output:null}:Qu(e,{code:r,filePath:t.filePath,compilerOptions:t.compilerOptions})}function Qu(e,t){let r={diagnostics:[],code:t.code,output:null};try{let n=e.ts.transpileModule(t.code,{compilerOptions:t.compilerOptions,fileName:t.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(o=>{r.diagnostics.push({messageText:String(o.messageText)})}),r.output=n.outputText}catch(n){console.error("transpileModule",n),r.diagnostics.push({messageText:String(n)})}return r}import{access as eL,mkdir as rx,readdir as tL,readFile as nx,stat as rL,unlink as nL,writeFile as ox}from"node:fs/promises";import{homedir as ix,hostname as iL}from"node:os";import Wf from"node:path";import uL from"typescript";import lL from"launch-editor";async function Io(e){let t=[],r=await fn(e,e.getRepoRootDir());if(r){let n=await Gf(r,e);t.push(...n)}return t}async function Gf(e,t){let r=[];if(e&&typeof e=="object"){let n=new Set(Object.keys({...e.dependencies,...e.devDependencies}));for(let o of ex)if(n.has(o)&&!r.some(s=>s.name===o)){let s={name:o};qf.has(o)&&(s.version=await qf.get(o)(t)),r.push(s)}}return r}function Zu(e){let t=parseInt(e);return Number.isNaN(t)?void 0:t}var qf=new Map([["next",async e=>{if(!e.spawnSync)return;let t=Uf(),r=t==="npm"?"npx":t,{stdout:n}=e.spawnSync(r,["next","-v"],{encoding:"utf8"});if(!n)return;let o=n.match(/(Next.js v)([\d.]+)/g);if(!o)return;let s=o[0].split("Next.js v")[1],[i,a,u]=s.split(".");return{major:Zu(i),minor:Zu(a),patch:Zu(u)}}]]),ex=["@shopify/remix-oxygen","@shopify/hydrogen","@builder.io/qwik-city","@remix-run/react","@sveltejs/kit","astro","gatsby","next","nuxt","@builder.io/qwik","@angular/core","react","solid-js","svelte","vue"];import*as sx from"@sentry/node";function Jf(){let e=ix();return Wf.join(e,".config","builder","dev-tools.json")}function Xu(e,t){return typeof e=="object"&&e!=null&&t in e}async function ko(){let e=Jf();try{let t=await nx(e,"utf-8");if(typeof t=="string")return JSON.parse(t)}catch(t){if(t.code==="ENOENT")return null}return null}async function ec(e){let t=Jf();e=typeof e=="object"&&e!=null?e:{},await rx(Wf.dirname(t),{recursive:!0}),await ox(t,JSON.stringify(e??{},null,2))}var z={gen1:"Gen 1",gen2:"Gen 2"},ki={CMS:"cms",VCP:"vcp",HYBRID:"hybrid"};import{debug as ax}from"node:console";import{request as ux}from"node:http";import{request as cx}from"node:https";function $o(e){let t=Date.now();return new Promise((r,n)=>{let s=lx(e.url)({protocol:e.url.protocol,host:e.url.host,port:e.url.port,path:e.url.pathname+e.url.search,method:e.method,headers:e.headers},i=>{let a="";i.on("data",u=>{a+=u}),i.on("end",()=>{if(ax(`${e.method} ${e.url.href}, duration: ${Date.now()-t}ms`),typeof i.statusCode=="number"&&i.statusCode>=200&&i.statusCode<300)if(typeof i.headers["content-type"]!="string"||!i.headers["content-type"].includes("application/json"))n(`Response from ${e.url.href} content-type is ${i.headers["content-type"]}`);else try{r(JSON.parse(a))}catch(u){n(`Response from ${e.url.href} is not valid JSON: ${a}
@@ -54,7 +54,7 @@ Restarting server after Builder Devtools update...
54
54
  <h3>How's Devtools working for you?</h3>
55
55
  <p>We'd love your feedback!</p>
56
56
  </div>
57
- \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.19.1"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
57
+ \`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.19.2"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media (max-width: 840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media (max-width: 590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
58
58
  </style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
59
59
  <aside>
60
60
  <div class="logo"></div>
@@ -93,7 +93,7 @@ Restarting server after Builder Devtools update...
93
93
  </nav>
94
94
  </section>
95
95
  </main>
96
- \`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.19.1"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.19.1"),mo());})();`)}async function am(e){return um(e,`<!doctype html>
96
+ \`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.19.2"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.19.2"),mo());})();`)}async function am(e){return um(e,`<!doctype html>
97
97
  <html lang="en" dir="ltr">
98
98
  <head>
99
99
  <meta charset="utf-8" />
@@ -1500,13 +1500,13 @@ ${(0,C.yellow)("Note:")}
1500
1500
  `),[{command:"generate URL [URL ...]",description:"Start the auto-mapping wizard for Figma Component URLs"},{command:"publish",description:"Publish your Figma Mappings to Builder.io"},{command:"migrate",description:"Migrate existing Figma Mappings into the repo as local files"},{command:"auth",description:"Authenticate with Builder.io"},{command:"auth status",description:"Check authentication status and user information"},{command:"code",description:"Generate or modify code based on Figma designs"},{command:"indexing",description:"Index your codebase to improve code generation results"},{command:"index-repo",description:"Index your entire repository to improve code generation results"},{command:"code-server",description:"Start a development server that provides project file information and code analysis"},{command:"launch",description:"Launch a development server"},{command:"connect-repo",description:"Connect your git repository to Builder.io Fusion"}].forEach(({command:r,description:n})=>{de.info(`${(0,C.cyan)("\u2192")} ${(0,C.bgGreen)((0,C.white)(` npx ${$e()} figma ${r} `))}
1501
1501
  ${(0,C.dim)(n)}
1502
1502
  `)}),de.info(`Use ${(0,C.cyan)(`npx ${$e()} figma help <command>`)} for detailed help about a command`)}pa("bye \u{1F44B}")}var BA=["steve8708/mui-vite","steve8708/carbon-vite","steve8708/vite-react-shopify-polaris","steve8708/cloudscape-demos","BuilderIO/fusion-angular-tailwind-starter","BuilderIO/fusion-svelte-tailwind-starter","BuilderIO/fusion-vue-tailwind-starter"],MA="BuilderIO/fusion-starter",ll=[...BA,MA],k7=ll.map(e=>`https://github.com/${e}`);function Xr(){}Xr.prototype={diff:function(t,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.callback;typeof o=="function"&&(s=o,o={}),this.options=o;var i=this;function a(F){return s?(setTimeout(function(){s(void 0,F)},0),!0):F}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var u=r.length,c=t.length,l=1,d=u+c;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var p=(n=o.timeout)!==null&&n!==void 0?n:1/0,h=Date.now()+p,g=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(g[0],r,t,0);if(g[0].oldPos+1>=c&&m+1>=u)return a([{value:this.join(r),count:r.length}]);var y=-1/0,D=1/0;function w(){for(var F=Math.max(y,-l);F<=Math.min(D,l);F+=2){var P=void 0,_=g[F-1],I=g[F+1];_&&(g[F-1]=void 0);var N=!1;if(I){var k=I.oldPos-F;N=I&&0<=k&&k<u}var T=_&&_.oldPos+1<c;if(!N&&!T){g[F]=void 0;continue}if(!T||N&&_.oldPos+1<I.oldPos?P=i.addToPath(I,!0,void 0,0):P=i.addToPath(_,void 0,!0,1),m=i.extractCommon(P,r,t,F),P.oldPos+1>=c&&m+1>=u)return a(LA(i,P.lastComponent,r,t,i.useLongestToken));g[F]=P,P.oldPos+1>=c&&(D=Math.min(D,F-1)),m+1>=u&&(y=Math.max(y,F+1))}l++}if(s)(function F(){setTimeout(function(){if(l>d||Date.now()>h)return s();w()||F()},0)})();else for(;l<=d&&Date.now()<=h;){var x=w();if(x)return x}},addToPath:function(t,r,n,o){var s=t.lastComponent;return s&&s.added===r&&s.removed===n?{oldPos:t.oldPos+o,lastComponent:{count:s.count+1,added:r,removed:n,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:s}}},extractCommon:function(t,r,n,o){for(var s=r.length,i=n.length,a=t.oldPos,u=a-o,c=0;u+1<s&&a+1<i&&this.equals(r[u+1],n[a+1]);)u++,a++,c++;return c&&(t.lastComponent={count:c,previousComponent:t.lastComponent}),t.oldPos=a,u},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function LA(e,t,r,n,o){for(var s=[],i;t;)s.push(t),i=t.previousComponent,delete t.previousComponent,t=i;s.reverse();for(var a=0,u=s.length,c=0,l=0;a<u;a++){var d=s[a];if(d.removed){if(d.value=e.join(n.slice(l,l+d.count)),l+=d.count,a&&s[a-1].added){var h=s[a-1];s[a-1]=s[a],s[a]=h}}else{if(!d.added&&o){var p=r.slice(c,c+d.count);p=p.map(function(m,y){var D=n[l+y];return D.length>m.length?D:m}),d.value=e.join(p)}else d.value=e.join(r.slice(c,c+d.count));c+=d.count,d.added||(l+=d.count)}}var g=s[u-1];return u>1&&typeof g.value=="string"&&(g.added||g.removed)&&e.equals("",g.value)&&(s[u-2].value+=g.value,s.pop()),s}var G7=new Xr;var Vh=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Hh=/\S/,zh=new Xr;zh.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Hh.test(e)&&!Hh.test(t)};zh.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Vh.test(t[r])&&Vh.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var Kh=new Xr;Kh.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
1503
- `));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var o=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t};var jA=new Xr;jA.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var UA=new Xr;UA.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function ka(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ka=function(t){return typeof t}:ka=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}var VA=Object.prototype.toString,ts=new Xr;ts.useLongestToken=!0;ts.tokenize=Kh.tokenize;ts.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,o=n===void 0?function(s,i){return typeof i>"u"?r:i}:n;return typeof e=="string"?e:JSON.stringify(dl(e,null,null,o),o," ")};ts.equals=function(e,t){return Xr.prototype.equals.call(ts,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function dl(e,t,r,n,o){t=t||[],r=r||[],n&&(e=n(o,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return r[s];var i;if(VA.call(e)==="[object Array]"){for(t.push(e),i=new Array(e.length),r.push(i),s=0;s<e.length;s+=1)i[s]=dl(e[s],t,r,n,o);return t.pop(),r.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),ka(e)==="object"&&e!==null){t.push(e),i={},r.push(i);var a=[],u;for(u in e)e.hasOwnProperty(u)&&a.push(u);for(a.sort(),s=0;s<a.length;s+=1)u=a[s],i[u]=dl(e[u],t,r,n,u);t.pop(),r.pop()}else i=e;return i}var pl=new Xr;pl.tokenize=function(e){return e.slice()};pl.join=pl.removeEmpty=function(e){return e};function $a(){let e=new Error("AbortError");return e.name="AbortError",e}var gl=Ne(Zh(),1);import*as YA from"@sentry/node";var hl=class{constructor(){He(this,"processes",new Set);He(this,"cleanupHandlersRegistered",!1);this.registerCleanupHandlers()}track(t){this.processes.add(t),t.on("exit",()=>{this.processes.delete(t)})}untrack(t){this.processes.delete(t)}async killAll(t){if(this.processes.size===0)return;let r=[];for(let n of this.processes)n.pid&&n.exitCode===null&&r.push(Na(t,n));await Promise.all(r),this.processes.clear()}registerCleanupHandlers(){if(this.cleanupHandlersRegistered)return;this.cleanupHandlersRegistered=!0;let t=async r=>{try{await this.killAll()}catch(n){console.error("[ProcessTracker] Error during cleanup:",n)}};process.on("SIGINT",()=>t("SIGINT")),process.on("SIGTERM",()=>t("SIGTERM")),process.on("SIGHUP",()=>t("SIGHUP")),process.on("exit",()=>{for(let r of this.processes)if(r.pid&&r.exitCode===null)try{process.kill(r.pid,"SIGKILL")}catch{}})}get count(){return this.processes.size}},xV=new hl;function QA(e){try{return process.kill(e,0),!0}catch(t){return t.code==="EPERM"}}async function Na(e,t,r,n=5e3){if(typeof t!="number"&&(!t||(ml(t)?t.getExitCode()!==null:t.exitCode!==null)))return null;if(r?.aborted)return $a();let o=new Promise((a,u)=>{r?.addEventListener("abort",()=>{u(new Error("killProcess aborted by the user"))},{once:!0})}),s,i;if(typeof t=="number"?s=t:(i=t,s=ml(i)?i.getPid():i.pid),!s){if(e?.Sentry?.captureMessage("killProcess: no pid (process never spawned or already exited)",{level:"info",extra:{procType:i?ml(i)?"DevCommandProcess":"ChildProcess":"number"}}),i)try{i.kill("SIGKILL")}catch{}return null}try{return await Promise.race([await new Promise((a,u)=>(0,gl.default)(s,"SIGTERM",c=>{c?u(c):a()})),new Promise((a,u)=>setTimeout(()=>u(new Error("SIGTERM killProcess timeout")),n)),o]),null}catch(a){if(a.code==="ESRCH")return null;e?.Sentry?.captureException(a,{level:"warning"});try{return await Promise.race([await new Promise((u,c)=>(0,gl.default)(s,"SIGKILL",l=>{l?c(l):u()})),new Promise((u,c)=>setTimeout(()=>c(new Error("SIGKILL killProcess timeout")),n)),o]),null}catch(u){return u.code==="ESRCH"||!QA(s)?null:(e?.Sentry?.captureException(u,{level:"warning"}),u instanceof Error?u:new Error("killProcess: failed to kill process: "+String(u)))}}finally{i&&i.removeAllListeners()}}var ml=e=>"type"in e;import fJ from"chokidar";var y_=Ne($l(),1);var g_=Ne($l(),1);var _H=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts";var XT=Ne(QD(),1);var ZT=Ne(av(),1),uv="/_builder.io",JH=uv+"/api";var XH=new(J("https")).Agent({rejectUnauthorized:!1});import*as oR from"@sentry/node";var f={};qw(f,{BRAND:()=>TR,DIRTY:()=>to,EMPTY_PATH:()=>uR,INVALID:()=>V,NEVER:()=>m1,OK:()=>ot,ParseStatus:()=>Qe,Schema:()=>ee,ZodAny:()=>Pn,ZodArray:()=>on,ZodBigInt:()=>no,ZodBoolean:()=>oo,ZodBranded:()=>ps,ZodCatch:()=>ho,ZodDate:()=>io,ZodDefault:()=>go,ZodDiscriminatedUnion:()=>eu,ZodEffects:()=>Qt,ZodEnum:()=>fo,ZodError:()=>wt,ZodFirstPartyTypeKind:()=>K,ZodFunction:()=>ru,ZodIntersection:()=>co,ZodIssueCode:()=>R,ZodLazy:()=>lo,ZodLiteral:()=>po,ZodMap:()=>ai,ZodNaN:()=>ci,ZodNativeEnum:()=>mo,ZodNever:()=>dr,ZodNull:()=>ao,ZodNullable:()=>Mr,ZodNumber:()=>ro,ZodObject:()=>xt,ZodOptional:()=>Jt,ZodParsedType:()=>B,ZodPipeline:()=>fs,ZodPromise:()=>An,ZodReadonly:()=>yo,ZodRecord:()=>tu,ZodSchema:()=>ee,ZodSet:()=>ui,ZodString:()=>En,ZodSymbol:()=>ii,ZodTransformer:()=>Qt,ZodTuple:()=>Br,ZodType:()=>ee,ZodUndefined:()=>so,ZodUnion:()=>uo,ZodUnknown:()=>nn,ZodVoid:()=>si,addIssueToContext:()=>O,any:()=>LR,array:()=>HR,bigint:()=>$R,boolean:()=>bv,coerce:()=>f1,custom:()=>Dv,date:()=>NR,datetimeRegex:()=>hv,defaultErrorMap:()=>tn,discriminatedUnion:()=>GR,effect:()=>i1,enum:()=>r1,function:()=>XR,getErrorMap:()=>ri,getParsedType:()=>Or,instanceof:()=>IR,intersection:()=>WR,isAborted:()=>Za,isAsync:()=>ni,isDirty:()=>Xa,isValid:()=>Sn,late:()=>RR,lazy:()=>e1,literal:()=>t1,makeIssue:()=>ds,map:()=>QR,nan:()=>kR,nativeEnum:()=>n1,never:()=>UR,null:()=>MR,nullable:()=>a1,number:()=>Cv,object:()=>zR,objectUtil:()=>ud,oboolean:()=>p1,onumber:()=>d1,optional:()=>s1,ostring:()=>l1,pipeline:()=>c1,preprocess:()=>u1,promise:()=>o1,quotelessJson:()=>iR,record:()=>YR,set:()=>ZR,setErrorMap:()=>aR,strictObject:()=>KR,string:()=>vv,symbol:()=>OR,transformer:()=>i1,tuple:()=>JR,undefined:()=>BR,union:()=>qR,unknown:()=>jR,util:()=>ie,void:()=>VR});var ie;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{let s={};for(let i of o)s[i]=i;return s},e.getValidEnumValues=o=>{let s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(let a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let s=[];for(let i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(let i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(ie||(ie={}));var ud;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(ud||(ud={}));var B=ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Or=e=>{switch(typeof e){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(e)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":return Array.isArray(e)?B.array:e===null?B.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?B.promise:typeof Map<"u"&&e instanceof Map?B.map:typeof Set<"u"&&e instanceof Set?B.set:typeof Date<"u"&&e instanceof Date?B.date:B.object;default:return B.unknown}};var R=ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),wt=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(let i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let a=n,u=0;for(;u<i.path.length;){let c=i.path[u];u===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(i))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return o(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let o of this.issues)if(o.path.length>0){let s=o.path[0];r[s]=r[s]||[],r[s].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};wt.create=e=>new wt(e);var sR=(e,t)=>{let r;switch(e.code){case R.invalid_type:e.received===B.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ie.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${ie.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ie.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${ie.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ie.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case R.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case R.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,ie.assertNever(e)}return{message:r}},tn=sR;var dv=tn;function aR(e){dv=e}function ri(){return dv}var ds=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="",u=n.filter(c=>!!c).slice().reverse();for(let c of u)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},uR=[];function O(e,t){let r=ri(),n=ds({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===tn?void 0:tn].filter(o=>!!o)});e.common.issues.push(n)}var Qe=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status==="aborted")return V;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let s=await o.key,i=await o.value;n.push({key:s,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return V;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(n[s.value]=i.value)}return{status:t.value,value:n}}},V=Object.freeze({status:"aborted"}),to=e=>({status:"dirty",value:e}),ot=e=>({status:"valid",value:e}),Za=e=>e.status==="aborted",Xa=e=>e.status==="dirty",Sn=e=>e.status==="valid",ni=e=>typeof Promise<"u"&&e instanceof Promise;var L;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(L||(L={}));var Yt=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},pv=(e,t)=>{if(Sn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new wt(e.common.issues);return this._error=r,this._error}}};function Y(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{let{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??n??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:u??r??a.defaultError}},description:o}}var ee=class{get description(){return this._def.description}_getType(t){return Or(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qe,ctx:{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(ni(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},o=this._parseSync({data:t,path:n.path,parent:n});return pv(n,o)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return Sn(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>Sn(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(ni(o)?o:Promise.resolve(o));return pv(n,s)}refine(t,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{let i=t(o),a=()=>s.addIssue({code:R.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Qt({schema:this,typeName:K.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Jt.create(this,this._def)}nullable(){return Mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return on.create(this)}promise(){return An.create(this,this._def)}or(t){return uo.create([this,t],this._def)}and(t){return co.create(this,t,this._def)}transform(t){return new Qt({...Y(this._def),schema:this,typeName:K.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new go({...Y(this._def),innerType:this,defaultValue:r,typeName:K.ZodDefault})}brand(){return new ps({typeName:K.ZodBranded,type:this,...Y(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new ho({...Y(this._def),innerType:this,catchValue:r,typeName:K.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return fs.create(this,t)}readonly(){return yo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},cR=/^c[^\s-]{8,}$/i,lR=/^[0-9a-z]+$/,dR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,pR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fR=/^[a-z0-9_-]{21}$/i,mR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,gR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,hR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,yR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",cd,DR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,CR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,bR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,mv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",SR=new RegExp(`^${mv}$`);function gv(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function ER(e){return new RegExp(`^${gv(e)}$`)}function hv(e){let t=`${mv}T${gv(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function PR(e,t){return!!((t==="v4"||!t)&&DR.test(e)||(t==="v6"||!t)&&CR.test(e))}function AR(e,t){if(!mR.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function FR(e,t){return!!((t==="v4"||!t)&&vR.test(e)||(t==="v6"||!t)&&bR.test(e))}var En=class e extends ee{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==B.string){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_type,expected:B.string,received:s.parsedType}),V}let n=new Qe,o;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?O(o,{code:R.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&O(o,{code:R.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")hR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"email",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")cd||(cd=new RegExp(yR,"u")),cd.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"emoji",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")pR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"uuid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")fR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"nanoid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")cR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"cuid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")lR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"cuid2",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")dR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"ulid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),O(o,{validation:"url",code:R.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"regex",code:R.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?hv(s).test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?SR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?ER(s).test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?gR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"duration",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?PR(t.data,s.version)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"ip",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?AR(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"jwt",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?FR(t.data,s.version)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"cidr",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?wR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"base64",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?xR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"base64url",code:R.invalid_string,message:s.message}),n.dirty()):ie.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(o=>t.test(o),{validation:r,code:R.invalid_string,...L.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...L.errToObj(t)})}url(t){return this._addCheck({kind:"url",...L.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...L.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...L.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...L.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...L.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...L.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...L.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...L.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...L.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...L.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...L.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...L.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...L.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...L.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...L.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...L.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...L.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...L.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...L.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...L.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...L.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...L.errToObj(r)})}nonempty(t){return this.min(1,L.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};En.create=e=>new En({checks:[],typeName:K.ZodString,coerce:e?.coerce??!1,...Y(e)});function _R(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),i=Number.parseInt(t.toFixed(o).replace(".",""));return s%i/10**o}var ro=class e extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==B.number){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_type,expected:B.number,received:s.parsedType}),V}let n,o=new Qe;for(let s of this._def.checks)s.kind==="int"?ie.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),O(n,{code:R.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?_R(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),O(n,{code:R.not_finite,message:s.message}),o.dirty()):ie.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,L.toString(r))}gt(t,r){return this.setLimit("min",t,!1,L.toString(r))}lte(t,r){return this.setLimit("max",t,!0,L.toString(r))}lt(t,r){return this.setLimit("max",t,!1,L.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:L.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:L.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:L.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:L.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:L.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:L.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:L.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:L.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:L.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:L.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ie.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};ro.create=e=>new ro({checks:[],typeName:K.ZodNumber,coerce:e?.coerce||!1,...Y(e)});var no=class e extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==B.bigint)return this._getInvalidInput(t);let n,o=new Qe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):ie.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return O(r,{code:R.invalid_type,expected:B.bigint,received:r.parsedType}),V}gte(t,r){return this.setLimit("min",t,!0,L.toString(r))}gt(t,r){return this.setLimit("min",t,!1,L.toString(r))}lte(t,r){return this.setLimit("max",t,!0,L.toString(r))}lt(t,r){return this.setLimit("max",t,!1,L.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:L.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:L.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:L.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:L.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:L.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:L.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};no.create=e=>new no({checks:[],typeName:K.ZodBigInt,coerce:e?.coerce??!1,...Y(e)});var oo=class extends ee{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==B.boolean){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.boolean,received:n.parsedType}),V}return ot(t.data)}};oo.create=e=>new oo({typeName:K.ZodBoolean,coerce:e?.coerce||!1,...Y(e)});var io=class e extends ee{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==B.date){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_type,expected:B.date,received:s.parsedType}),V}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_date}),V}let n=new Qe,o;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ie.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:L.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:L.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};io.create=e=>new io({checks:[],coerce:e?.coerce||!1,typeName:K.ZodDate,...Y(e)});var ii=class extends ee{_parse(t){if(this._getType(t)!==B.symbol){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.symbol,received:n.parsedType}),V}return ot(t.data)}};ii.create=e=>new ii({typeName:K.ZodSymbol,...Y(e)});var so=class extends ee{_parse(t){if(this._getType(t)!==B.undefined){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.undefined,received:n.parsedType}),V}return ot(t.data)}};so.create=e=>new so({typeName:K.ZodUndefined,...Y(e)});var ao=class extends ee{_parse(t){if(this._getType(t)!==B.null){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.null,received:n.parsedType}),V}return ot(t.data)}};ao.create=e=>new ao({typeName:K.ZodNull,...Y(e)});var Pn=class extends ee{constructor(){super(...arguments),this._any=!0}_parse(t){return ot(t.data)}};Pn.create=e=>new Pn({typeName:K.ZodAny,...Y(e)});var nn=class extends ee{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ot(t.data)}};nn.create=e=>new nn({typeName:K.ZodUnknown,...Y(e)});var dr=class extends ee{_parse(t){let r=this._getOrReturnCtx(t);return O(r,{code:R.invalid_type,expected:B.never,received:r.parsedType}),V}};dr.create=e=>new dr({typeName:K.ZodNever,...Y(e)});var si=class extends ee{_parse(t){if(this._getType(t)!==B.undefined){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.void,received:n.parsedType}),V}return ot(t.data)}};si.create=e=>new si({typeName:K.ZodVoid,...Y(e)});var on=class e extends ee{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==B.array)return O(r,{code:R.invalid_type,expected:B.array,received:r.parsedType}),V;if(o.exactLength!==null){let i=r.data.length>o.exactLength.value,a=r.data.length<o.exactLength.value;(i||a)&&(O(r,{code:i?R.too_big:R.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(O(r,{code:R.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(O(r,{code:R.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>o.type._parseAsync(new Yt(r,i,r.path,a)))).then(i=>Qe.mergeArray(n,i));let s=[...r.data].map((i,a)=>o.type._parseSync(new Yt(r,i,r.path,a)));return Qe.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:L.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:L.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:L.toString(r)}})}nonempty(t){return this.min(1,t)}};on.create=(e,t)=>new on({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...Y(t)});function oi(e){if(e instanceof xt){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Jt.create(oi(n))}return new xt({...e._def,shape:()=>t})}else return e instanceof on?new on({...e._def,type:oi(e.element)}):e instanceof Jt?Jt.create(oi(e.unwrap())):e instanceof Mr?Mr.create(oi(e.unwrap())):e instanceof Br?Br.create(e.items.map(t=>oi(t))):e}var xt=class e extends ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=ie.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==B.object){let c=this._getOrReturnCtx(t);return O(c,{code:R.invalid_type,expected:B.object,received:c.parsedType}),V}let{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof dr&&this._def.unknownKeys==="strip"))for(let c in o.data)i.includes(c)||a.push(c);let u=[];for(let c of i){let l=s[c],d=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Yt(o,d,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof dr){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of a)u.push({key:{status:"valid",value:l},value:{status:"valid",value:o.data[l]}});else if(c==="strict")a.length>0&&(O(o,{code:R.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of a){let d=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Yt(o,d,o.path,l)),alwaysSet:l in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let d=await l.key,p=await l.value;c.push({key:d,value:p,alwaysSet:l.alwaysSet})}return c}).then(c=>Qe.mergeObjectSync(n,c)):Qe.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return L.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:L.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of ie.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of ie.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return oi(this)}partial(t){let r={};for(let n of ie.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of ie.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Jt;)s=s._def.innerType;r[n]=s}return new e({...this._def,shape:()=>r})}keyof(){return yv(ie.objectKeys(this.shape))}};xt.create=(e,t)=>new xt({shape:()=>e,unknownKeys:"strip",catchall:dr.create(),typeName:K.ZodObject,...Y(t)});xt.strictCreate=(e,t)=>new xt({shape:()=>e,unknownKeys:"strict",catchall:dr.create(),typeName:K.ZodObject,...Y(t)});xt.lazycreate=(e,t)=>new xt({shape:e,unknownKeys:"strip",catchall:dr.create(),typeName:K.ZodObject,...Y(t)});var uo=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let i=s.map(a=>new wt(a.ctx.common.issues));return O(r,{code:R.invalid_union,unionErrors:i}),V}if(r.common.async)return Promise.all(n.map(async s=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let s,i=[];for(let u of n){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(u=>new wt(u));return O(r,{code:R.invalid_union,unionErrors:a}),V}}get options(){return this._def.options}};uo.create=(e,t)=>new uo({options:e,typeName:K.ZodUnion,...Y(t)});var rn=e=>e instanceof lo?rn(e.schema):e instanceof Qt?rn(e.innerType()):e instanceof po?[e.value]:e instanceof fo?e.options:e instanceof mo?ie.objectValues(e.enum):e instanceof go?rn(e._def.innerType):e instanceof so?[void 0]:e instanceof ao?[null]:e instanceof Jt?[void 0,...rn(e.unwrap())]:e instanceof Mr?[null,...rn(e.unwrap())]:e instanceof ps||e instanceof yo?rn(e.unwrap()):e instanceof ho?rn(e._def.innerType):[],eu=class e extends ee{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==B.object)return O(r,{code:R.invalid_type,expected:B.object,received:r.parsedType}),V;let n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(O(r,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),V)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let s of r){let i=rn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new e({typeName:K.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...Y(n)})}};function ld(e,t){let r=Or(e),n=Or(t);if(e===t)return{valid:!0,data:e};if(r===B.object&&n===B.object){let o=ie.objectKeys(t),s=ie.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(let a of s){let u=ld(e[a],t[a]);if(!u.valid)return{valid:!1};i[a]=u.data}return{valid:!0,data:i}}else if(r===B.array&&n===B.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let s=0;s<e.length;s++){let i=e[s],a=t[s],u=ld(i,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return r===B.date&&n===B.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var co=class extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=(s,i)=>{if(Za(s)||Za(i))return V;let a=ld(s.value,i.value);return a.valid?((Xa(s)||Xa(i))&&r.dirty(),{status:r.value,value:a.data}):(O(n,{code:R.invalid_intersection_types}),V)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};co.create=(e,t,r)=>new co({left:e,right:t,typeName:K.ZodIntersection,...Y(r)});var Br=class e extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.array)return O(n,{code:R.invalid_type,expected:B.array,received:n.parsedType}),V;if(n.data.length<this._def.items.length)return O(n,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),V;!this._def.rest&&n.data.length>this._def.items.length&&(O(n,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((i,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Yt(n,i,n.path,a)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>Qe.mergeArray(r,i)):Qe.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Br.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Br({items:e,typeName:K.ZodTuple,rest:null,...Y(t)})};var tu=class e extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.object)return O(n,{code:R.invalid_type,expected:B.object,received:n.parsedType}),V;let o=[],s=this._def.keyType,i=this._def.valueType;for(let a in n.data)o.push({key:s._parse(new Yt(n,a,n.path,a)),value:i._parse(new Yt(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Qe.mergeObjectAsync(r,o):Qe.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof ee?new e({keyType:t,valueType:r,typeName:K.ZodRecord,...Y(n)}):new e({keyType:En.create(),valueType:t,typeName:K.ZodRecord,...Y(r)})}},ai=class extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.map)return O(n,{code:R.invalid_type,expected:B.map,received:n.parsedType}),V;let o=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([a,u],c)=>({key:o._parse(new Yt(n,a,n.path,[c,"key"])),value:s._parse(new Yt(n,u,n.path,[c,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of i){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return V;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of i){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return V;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}}}};ai.create=(e,t,r)=>new ai({valueType:t,keyType:e,typeName:K.ZodMap,...Y(r)});var ui=class e extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.set)return O(n,{code:R.invalid_type,expected:B.set,received:n.parsedType}),V;let o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(O(n,{code:R.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(O(n,{code:R.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let s=this._def.valueType;function i(u){let c=new Set;for(let l of u){if(l.status==="aborted")return V;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let a=[...n.data.values()].map((u,c)=>s._parse(new Yt(n,u,n.path,c)));return n.common.async?Promise.all(a).then(u=>i(u)):i(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:L.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:L.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};ui.create=(e,t)=>new ui({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...Y(t)});var ru=class e extends ee{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==B.function)return O(r,{code:R.invalid_type,expected:B.function,received:r.parsedType}),V;function n(a,u){return ds({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ri(),tn].filter(c=>!!c),issueData:{code:R.invalid_arguments,argumentsError:u}})}function o(a,u){return ds({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ri(),tn].filter(c=>!!c),issueData:{code:R.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof An){let a=this;return ot(async function(...u){let c=new wt([]),l=await a._def.args.parseAsync(u,s).catch(h=>{throw c.addIssue(n(u,h)),c}),d=await Reflect.apply(i,this,l);return await a._def.returns._def.type.parseAsync(d,s).catch(h=>{throw c.addIssue(o(d,h)),c})})}else{let a=this;return ot(function(...u){let c=a._def.args.safeParse(u,s);if(!c.success)throw new wt([n(u,c.error)]);let l=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(l,s);if(!d.success)throw new wt([o(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Br.create(t).rest(nn.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Br.create([]).rest(nn.create()),returns:r||nn.create(),typeName:K.ZodFunction,...Y(n)})}},lo=class extends ee{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};lo.create=(e,t)=>new lo({getter:e,typeName:K.ZodLazy,...Y(t)});var po=class extends ee{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return O(r,{received:r.data,code:R.invalid_literal,expected:this._def.value}),V}return{status:"valid",value:t.data}}get value(){return this._def.value}};po.create=(e,t)=>new po({value:e,typeName:K.ZodLiteral,...Y(t)});function yv(e,t){return new fo({values:e,typeName:K.ZodEnum,...Y(t)})}var fo=class e extends ee{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return O(r,{expected:ie.joinValues(n),received:r.parsedType,code:R.invalid_type}),V}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return O(r,{received:r.data,code:R.invalid_enum_value,options:n}),V}return ot(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};fo.create=yv;var mo=class extends ee{_parse(t){let r=ie.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==B.string&&n.parsedType!==B.number){let o=ie.objectValues(r);return O(n,{expected:ie.joinValues(o),received:n.parsedType,code:R.invalid_type}),V}if(this._cache||(this._cache=new Set(ie.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=ie.objectValues(r);return O(n,{received:n.data,code:R.invalid_enum_value,options:o}),V}return ot(t.data)}get enum(){return this._def.values}};mo.create=(e,t)=>new mo({values:e,typeName:K.ZodNativeEnum,...Y(t)});var An=class extends ee{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==B.promise&&r.common.async===!1)return O(r,{code:R.invalid_type,expected:B.promise,received:r.parsedType}),V;let n=r.parsedType===B.promise?r.data:Promise.resolve(r.data);return ot(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};An.create=(e,t)=>new An({type:e,typeName:K.ZodPromise,...Y(t)});var Qt=class extends ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{O(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){let i=o.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return V;let u=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return u.status==="aborted"?V:u.status==="dirty"?to(u.value):r.value==="dirty"?to(u.value):u});{if(r.value==="aborted")return V;let a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?V:a.status==="dirty"?to(a.value):r.value==="dirty"?to(a.value):a}}if(o.type==="refinement"){let i=a=>{let u=o.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?V:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?V:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Sn(i))return V;let a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Sn(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:r.value,value:a})):V);ie.assertNever(o)}};Qt.create=(e,t,r)=>new Qt({schema:e,typeName:K.ZodEffects,effect:t,...Y(r)});Qt.createWithPreprocess=(e,t,r)=>new Qt({schema:t,effect:{type:"preprocess",transform:e},typeName:K.ZodEffects,...Y(r)});var Jt=class extends ee{_parse(t){return this._getType(t)===B.undefined?ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Jt.create=(e,t)=>new Jt({innerType:e,typeName:K.ZodOptional,...Y(t)});var Mr=class extends ee{_parse(t){return this._getType(t)===B.null?ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Mr.create=(e,t)=>new Mr({innerType:e,typeName:K.ZodNullable,...Y(t)});var go=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===B.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};go.create=(e,t)=>new go({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Y(t)});var ho=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ni(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ho.create=(e,t)=>new ho({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Y(t)});var ci=class extends ee{_parse(t){if(this._getType(t)!==B.nan){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.nan,received:n.parsedType}),V}return{status:"valid",value:t.data}}};ci.create=e=>new ci({typeName:K.ZodNaN,...Y(e)});var TR=Symbol("zod_brand"),ps=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},fs=class e extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?V:s.status==="dirty"?(r.dirty(),to(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?V:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:K.ZodPipeline})}},yo=class extends ee{_parse(t){let r=this._def.innerType._parse(t),n=o=>(Sn(o)&&(o.value=Object.freeze(o.value)),o);return ni(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};yo.create=(e,t)=>new yo({innerType:e,typeName:K.ZodReadonly,...Y(t)});function fv(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function Dv(e,t={},r){return e?Pn.create().superRefine((n,o)=>{let s=e(n);if(s instanceof Promise)return s.then(i=>{if(!i){let a=fv(t,n),u=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!s){let i=fv(t,n),a=i.fatal??r??!0;o.addIssue({code:"custom",...i,fatal:a})}}):Pn.create()}var RR={object:xt.lazycreate},K;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(K||(K={}));var IR=(e,t={message:`Input not instance of ${e.name}`})=>Dv(r=>r instanceof e,t),vv=En.create,Cv=ro.create,kR=ci.create,$R=no.create,bv=oo.create,NR=io.create,OR=ii.create,BR=so.create,MR=ao.create,LR=Pn.create,jR=nn.create,UR=dr.create,VR=si.create,HR=on.create,zR=xt.create,KR=xt.strictCreate,qR=uo.create,GR=eu.create,WR=co.create,JR=Br.create,YR=tu.create,QR=ai.create,ZR=ui.create,XR=ru.create,e1=lo.create,t1=po.create,r1=fo.create,n1=mo.create,o1=An.create,i1=Qt.create,s1=Jt.create,a1=Mr.create,u1=Qt.createWithPreprocess,c1=fs.create,l1=()=>vv().optional(),d1=()=>Cv().optional(),p1=()=>bv().optional(),f1={string:(e=>En.create({...e,coerce:!0})),number:(e=>ro.create({...e,coerce:!0})),boolean:(e=>oo.create({...e,coerce:!0})),bigint:(e=>no.create({...e,coerce:!0})),date:(e=>io.create({...e,coerce:!0}))};var m1=V;var ou="2.0",wv=f.union([f.string(),f.number().int()]),xv=f.string(),g1=f.object({progressToken:f.optional(wv)}).passthrough(),Zt=f.object({_meta:f.optional(g1)}).passthrough(),St=f.object({method:f.string(),params:f.optional(Zt)}),ms=f.object({_meta:f.optional(f.object({}).passthrough())}).passthrough(),Lr=f.object({method:f.string(),params:f.optional(ms)}),Xt=f.object({_meta:f.optional(f.object({}).passthrough())}).passthrough(),iu=f.union([f.string(),f.number().int()]),h1=f.object({jsonrpc:f.literal(ou),id:iu}).merge(St).strict();var y1=f.object({jsonrpc:f.literal(ou)}).merge(Lr).strict();var D1=f.object({jsonrpc:f.literal(ou),id:iu,result:Xt}).strict();var nu;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(nu||(nu={}));var v1=f.object({jsonrpc:f.literal(ou),id:iu,error:f.object({code:f.number().int(),message:f.string(),data:f.optional(f.unknown())})}).strict();var C1=f.union([h1,y1,D1,v1]),dd=Xt.strict(),pd=Lr.extend({method:f.literal("notifications/cancelled"),params:ms.extend({requestId:iu,reason:f.string().optional()})}),b1=f.object({src:f.string(),mimeType:f.optional(f.string()),sizes:f.optional(f.array(f.string()))}).passthrough(),gs=f.object({icons:f.array(b1).optional()}).passthrough(),hs=f.object({name:f.string(),title:f.optional(f.string())}).passthrough(),Sv=hs.extend({version:f.string(),websiteUrl:f.optional(f.string())}).merge(gs),w1=f.object({experimental:f.optional(f.object({}).passthrough()),sampling:f.optional(f.object({}).passthrough()),elicitation:f.optional(f.object({}).passthrough()),roots:f.optional(f.object({listChanged:f.optional(f.boolean())}).passthrough())}).passthrough(),x1=St.extend({method:f.literal("initialize"),params:Zt.extend({protocolVersion:f.string(),capabilities:w1,clientInfo:Sv})});var S1=f.object({experimental:f.optional(f.object({}).passthrough()),logging:f.optional(f.object({}).passthrough()),completions:f.optional(f.object({}).passthrough()),prompts:f.optional(f.object({listChanged:f.optional(f.boolean())}).passthrough()),resources:f.optional(f.object({subscribe:f.optional(f.boolean()),listChanged:f.optional(f.boolean())}).passthrough()),tools:f.optional(f.object({listChanged:f.optional(f.boolean())}).passthrough())}).passthrough(),Ev=Xt.extend({protocolVersion:f.string(),capabilities:S1,serverInfo:Sv,instructions:f.optional(f.string())}),E1=Lr.extend({method:f.literal("notifications/initialized")});var fd=St.extend({method:f.literal("ping")}),P1=f.object({progress:f.number(),total:f.optional(f.number()),message:f.optional(f.string())}).passthrough(),md=Lr.extend({method:f.literal("notifications/progress"),params:ms.merge(P1).extend({progressToken:wv})}),su=St.extend({params:Zt.extend({cursor:f.optional(xv)}).optional()}),au=Xt.extend({nextCursor:f.optional(xv)}),Pv=f.object({uri:f.string(),mimeType:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).passthrough(),Av=Pv.extend({text:f.string()}),gd=f.string().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Fv=Pv.extend({blob:gd}),_v=hs.extend({uri:f.string(),description:f.optional(f.string()),mimeType:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).merge(gs),A1=hs.extend({uriTemplate:f.string(),description:f.optional(f.string()),mimeType:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).merge(gs),F1=su.extend({method:f.literal("resources/list")}),Tv=au.extend({resources:f.array(_v)}),_1=su.extend({method:f.literal("resources/templates/list")}),Rv=au.extend({resourceTemplates:f.array(A1)}),T1=St.extend({method:f.literal("resources/read"),params:Zt.extend({uri:f.string()})}),Iv=Xt.extend({contents:f.array(f.union([Av,Fv]))}),R1=Lr.extend({method:f.literal("notifications/resources/list_changed")}),I1=St.extend({method:f.literal("resources/subscribe"),params:Zt.extend({uri:f.string()})}),k1=St.extend({method:f.literal("resources/unsubscribe"),params:Zt.extend({uri:f.string()})}),$1=Lr.extend({method:f.literal("notifications/resources/updated"),params:ms.extend({uri:f.string()})}),N1=f.object({name:f.string(),description:f.optional(f.string()),required:f.optional(f.boolean())}).passthrough(),O1=hs.extend({description:f.optional(f.string()),arguments:f.optional(f.array(N1)),_meta:f.optional(f.object({}).passthrough())}).merge(gs),B1=su.extend({method:f.literal("prompts/list")}),kv=au.extend({prompts:f.array(O1)}),M1=St.extend({method:f.literal("prompts/get"),params:Zt.extend({name:f.string(),arguments:f.optional(f.record(f.string()))})}),hd=f.object({type:f.literal("text"),text:f.string(),_meta:f.optional(f.object({}).passthrough())}).passthrough(),yd=f.object({type:f.literal("image"),data:gd,mimeType:f.string(),_meta:f.optional(f.object({}).passthrough())}).passthrough(),Dd=f.object({type:f.literal("audio"),data:gd,mimeType:f.string(),_meta:f.optional(f.object({}).passthrough())}).passthrough(),L1=f.object({type:f.literal("resource"),resource:f.union([Av,Fv]),_meta:f.optional(f.object({}).passthrough())}).passthrough(),j1=_v.extend({type:f.literal("resource_link")}),$v=f.union([hd,yd,Dd,j1,L1]),U1=f.object({role:f.enum(["user","assistant"]),content:$v}).passthrough(),Nv=Xt.extend({description:f.optional(f.string()),messages:f.array(U1)}),V1=Lr.extend({method:f.literal("notifications/prompts/list_changed")}),H1=f.object({title:f.optional(f.string()),readOnlyHint:f.optional(f.boolean()),destructiveHint:f.optional(f.boolean()),idempotentHint:f.optional(f.boolean()),openWorldHint:f.optional(f.boolean())}).passthrough(),z1=hs.extend({description:f.optional(f.string()),inputSchema:f.object({type:f.literal("object"),properties:f.optional(f.object({}).passthrough()),required:f.optional(f.array(f.string()))}).passthrough(),outputSchema:f.optional(f.object({type:f.literal("object"),properties:f.optional(f.object({}).passthrough()),required:f.optional(f.array(f.string()))}).passthrough()),annotations:f.optional(H1),_meta:f.optional(f.object({}).passthrough())}).merge(gs),K1=su.extend({method:f.literal("tools/list")}),Ov=au.extend({tools:f.array(z1)}),vd=Xt.extend({content:f.array($v).default([]),structuredContent:f.object({}).passthrough().optional(),isError:f.optional(f.boolean())}),EK=vd.or(Xt.extend({toolResult:f.unknown()})),q1=St.extend({method:f.literal("tools/call"),params:Zt.extend({name:f.string(),arguments:f.optional(f.record(f.unknown()))})}),G1=Lr.extend({method:f.literal("notifications/tools/list_changed")}),Bv=f.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),W1=St.extend({method:f.literal("logging/setLevel"),params:Zt.extend({level:Bv})}),J1=Lr.extend({method:f.literal("notifications/message"),params:ms.extend({level:Bv,logger:f.optional(f.string()),data:f.unknown()})}),Y1=f.object({name:f.string().optional()}).passthrough(),Q1=f.object({hints:f.optional(f.array(Y1)),costPriority:f.optional(f.number().min(0).max(1)),speedPriority:f.optional(f.number().min(0).max(1)),intelligencePriority:f.optional(f.number().min(0).max(1))}).passthrough(),Z1=f.object({role:f.enum(["user","assistant"]),content:f.union([hd,yd,Dd])}).passthrough(),X1=St.extend({method:f.literal("sampling/createMessage"),params:Zt.extend({messages:f.array(Z1),systemPrompt:f.optional(f.string()),includeContext:f.optional(f.enum(["none","thisServer","allServers"])),temperature:f.optional(f.number()),maxTokens:f.number().int(),stopSequences:f.optional(f.array(f.string())),metadata:f.optional(f.object({}).passthrough()),modelPreferences:f.optional(Q1)})}),eI=Xt.extend({model:f.string(),stopReason:f.optional(f.enum(["endTurn","stopSequence","maxTokens"]).or(f.string())),role:f.enum(["user","assistant"]),content:f.discriminatedUnion("type",[hd,yd,Dd])}),tI=f.object({type:f.literal("boolean"),title:f.optional(f.string()),description:f.optional(f.string()),default:f.optional(f.boolean())}).passthrough(),rI=f.object({type:f.literal("string"),title:f.optional(f.string()),description:f.optional(f.string()),minLength:f.optional(f.number()),maxLength:f.optional(f.number()),format:f.optional(f.enum(["email","uri","date","date-time"]))}).passthrough(),nI=f.object({type:f.enum(["number","integer"]),title:f.optional(f.string()),description:f.optional(f.string()),minimum:f.optional(f.number()),maximum:f.optional(f.number())}).passthrough(),oI=f.object({type:f.literal("string"),title:f.optional(f.string()),description:f.optional(f.string()),enum:f.array(f.string()),enumNames:f.optional(f.array(f.string()))}).passthrough(),iI=f.union([tI,rI,nI,oI]),sI=St.extend({method:f.literal("elicitation/create"),params:Zt.extend({message:f.string(),requestedSchema:f.object({type:f.literal("object"),properties:f.record(f.string(),iI),required:f.optional(f.array(f.string()))}).passthrough()})}),aI=Xt.extend({action:f.enum(["accept","decline","cancel"]),content:f.optional(f.record(f.string(),f.unknown()))}),uI=f.object({type:f.literal("ref/resource"),uri:f.string()}).passthrough();var cI=f.object({type:f.literal("ref/prompt"),name:f.string()}).passthrough(),lI=St.extend({method:f.literal("completion/complete"),params:Zt.extend({ref:f.union([cI,uI]),argument:f.object({name:f.string(),value:f.string()}).passthrough(),context:f.optional(f.object({arguments:f.optional(f.record(f.string(),f.string()))}))})}),Mv=Xt.extend({completion:f.object({values:f.array(f.string()).max(100),total:f.optional(f.number().int()),hasMore:f.optional(f.boolean())}).passthrough()}),dI=f.object({uri:f.string().startsWith("file://"),name:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).passthrough(),pI=St.extend({method:f.literal("roots/list")}),fI=Xt.extend({roots:f.array(dI)}),mI=Lr.extend({method:f.literal("notifications/roots/list_changed")}),PK=f.union([fd,x1,lI,W1,M1,B1,F1,_1,T1,I1,k1,q1,K1]),AK=f.union([pd,md,E1,mI]),FK=f.union([dd,eI,aI,fI]),_K=f.union([fd,X1,sI,pI]),TK=f.union([pd,md,J1,$1,R1,G1,V1]),RK=f.union([dd,Ev,Mv,Nv,kv,Tv,Rv,Iv,vd,Ov]);var oB=Ne(nf(),1),iB=Ne(_b(),1);var IB=Ne(yw(),1);import kB from"node:process";var RG=kB.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];import*as ZB from"@sentry/node";var XB=Ne(ww(),1);var eM=()=>{if(typeof globalThis<"u"&&globalThis.crypto)return globalThis.crypto;if(typeof J<"u")try{let e=J("crypto");if(e.webcrypto)return e.webcrypto}catch{}throw new Error("Web Crypto API is not available. Requires Node.js 15+ or a browser environment.")},qG=eM();import xw from"node:process";function xf(){let{env:e}=xw,{TERM:t,TERM_PROGRAM:r}=e;return xw.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Sf=Ne(Un(),1),Fi=Ne(ia(),1),qs=Ne(Un(),1),Pf=()=>{let e=Ef?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=Ef?80:120,r,n=!1,o="",s="",i="",a=y=>{let D=y>1?"Something went wrong":"Canceled";n&&h(D,y)},u=(y,D)=>{console.error(D,y),a(2)},c=()=>a(1),l=()=>{process.on("uncaughtExceptionMonitor",u),process.on("unhandledRejection",u),process.on("SIGINT",c),process.on("SIGTERM",c),process.on("exit",a)},d=()=>{process.removeListener("uncaughtExceptionMonitor",u),process.removeListener("unhandledRejection",u),process.removeListener("SIGINT",c),process.removeListener("SIGTERM",c),process.removeListener("exit",a)},p=(y="")=>{n=!0,o=y.replace(/\.+$/,""),process.stdout.write(`${Sf.default.gray(rM)}
1503
+ `));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var o=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t};var jA=new Xr;jA.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var UA=new Xr;UA.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function ka(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ka=function(t){return typeof t}:ka=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}var VA=Object.prototype.toString,ts=new Xr;ts.useLongestToken=!0;ts.tokenize=Kh.tokenize;ts.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,o=n===void 0?function(s,i){return typeof i>"u"?r:i}:n;return typeof e=="string"?e:JSON.stringify(dl(e,null,null,o),o," ")};ts.equals=function(e,t){return Xr.prototype.equals.call(ts,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function dl(e,t,r,n,o){t=t||[],r=r||[],n&&(e=n(o,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return r[s];var i;if(VA.call(e)==="[object Array]"){for(t.push(e),i=new Array(e.length),r.push(i),s=0;s<e.length;s+=1)i[s]=dl(e[s],t,r,n,o);return t.pop(),r.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),ka(e)==="object"&&e!==null){t.push(e),i={},r.push(i);var a=[],u;for(u in e)e.hasOwnProperty(u)&&a.push(u);for(a.sort(),s=0;s<a.length;s+=1)u=a[s],i[u]=dl(e[u],t,r,n,u);t.pop(),r.pop()}else i=e;return i}var pl=new Xr;pl.tokenize=function(e){return e.slice()};pl.join=pl.removeEmpty=function(e){return e};function $a(){let e=new Error("AbortError");return e.name="AbortError",e}var gl=Ne(Zh(),1);import*as YA from"@sentry/node";var hl=class{constructor(){He(this,"processes",new Set);He(this,"cleanupHandlersRegistered",!1);this.registerCleanupHandlers()}track(t){this.processes.add(t),t.on("exit",()=>{this.processes.delete(t)})}untrack(t){this.processes.delete(t)}async killAll(t){if(this.processes.size===0)return;let r=[];for(let n of this.processes)n.pid&&n.exitCode===null&&r.push(Na(t,n));await Promise.all(r),this.processes.clear()}registerCleanupHandlers(){if(this.cleanupHandlersRegistered)return;this.cleanupHandlersRegistered=!0;let t=async r=>{try{await this.killAll()}catch(n){console.error("[ProcessTracker] Error during cleanup:",n)}};process.on("SIGINT",()=>t("SIGINT")),process.on("SIGTERM",()=>t("SIGTERM")),process.on("SIGHUP",()=>t("SIGHUP")),process.on("exit",()=>{for(let r of this.processes)if(r.pid&&r.exitCode===null)try{process.kill(r.pid,"SIGKILL")}catch{}})}get count(){return this.processes.size}},xV=new hl;function QA(e){try{return process.kill(e,0),!0}catch(t){return t.code==="EPERM"}}async function Na(e,t,r,n=5e3){if(typeof t!="number"&&(!t||(ml(t)?t.getExitCode()!==null:t.exitCode!==null)))return null;if(r?.aborted)return $a();let o=new Promise((a,u)=>{r?.addEventListener("abort",()=>{u(new Error("killProcess aborted by the user"))},{once:!0})}),s,i;if(typeof t=="number"?s=t:(i=t,s=ml(i)?i.getPid():i.pid),!s){if(e?.Sentry?.captureMessage("killProcess: no pid (process never spawned or already exited)",{level:"info",extra:{procType:i?ml(i)?"DevCommandProcess":"ChildProcess":"number"}}),i)try{i.kill("SIGKILL")}catch{}return null}try{return await Promise.race([await new Promise((a,u)=>(0,gl.default)(s,"SIGTERM",c=>{c?u(c):a()})),new Promise((a,u)=>setTimeout(()=>u(new Error("SIGTERM killProcess timeout")),n)),o]),null}catch(a){if(a.code==="ESRCH")return null;e?.Sentry?.captureException(a,{level:"warning"});try{return await Promise.race([await new Promise((u,c)=>(0,gl.default)(s,"SIGKILL",l=>{l?c(l):u()})),new Promise((u,c)=>setTimeout(()=>c(new Error("SIGKILL killProcess timeout")),n)),o]),null}catch(u){return u.code==="ESRCH"||!QA(s)?null:(e?.Sentry?.captureException(u,{level:"warning"}),u instanceof Error?u:new Error("killProcess: failed to kill process: "+String(u)))}}finally{i&&i.removeAllListeners()}}var ml=e=>"type"in e;import fJ from"chokidar";var y_=Ne($l(),1);var g_=Ne($l(),1);var _H=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts";var XT=Ne(QD(),1);var ZT=Ne(av(),1),uv="/_builder.io",JH=uv+"/api";var XH=new(Y("https")).Agent({rejectUnauthorized:!1});import*as oR from"@sentry/node";var f={};qw(f,{BRAND:()=>TR,DIRTY:()=>to,EMPTY_PATH:()=>uR,INVALID:()=>V,NEVER:()=>m1,OK:()=>ot,ParseStatus:()=>Qe,Schema:()=>ee,ZodAny:()=>Pn,ZodArray:()=>on,ZodBigInt:()=>no,ZodBoolean:()=>oo,ZodBranded:()=>ps,ZodCatch:()=>ho,ZodDate:()=>io,ZodDefault:()=>go,ZodDiscriminatedUnion:()=>eu,ZodEffects:()=>Qt,ZodEnum:()=>fo,ZodError:()=>wt,ZodFirstPartyTypeKind:()=>K,ZodFunction:()=>ru,ZodIntersection:()=>co,ZodIssueCode:()=>R,ZodLazy:()=>lo,ZodLiteral:()=>po,ZodMap:()=>ai,ZodNaN:()=>ci,ZodNativeEnum:()=>mo,ZodNever:()=>dr,ZodNull:()=>ao,ZodNullable:()=>Mr,ZodNumber:()=>ro,ZodObject:()=>xt,ZodOptional:()=>Jt,ZodParsedType:()=>B,ZodPipeline:()=>fs,ZodPromise:()=>An,ZodReadonly:()=>yo,ZodRecord:()=>tu,ZodSchema:()=>ee,ZodSet:()=>ui,ZodString:()=>En,ZodSymbol:()=>ii,ZodTransformer:()=>Qt,ZodTuple:()=>Br,ZodType:()=>ee,ZodUndefined:()=>so,ZodUnion:()=>uo,ZodUnknown:()=>nn,ZodVoid:()=>si,addIssueToContext:()=>O,any:()=>LR,array:()=>HR,bigint:()=>$R,boolean:()=>bv,coerce:()=>f1,custom:()=>Dv,date:()=>NR,datetimeRegex:()=>hv,defaultErrorMap:()=>tn,discriminatedUnion:()=>GR,effect:()=>i1,enum:()=>r1,function:()=>XR,getErrorMap:()=>ri,getParsedType:()=>Or,instanceof:()=>IR,intersection:()=>WR,isAborted:()=>Za,isAsync:()=>ni,isDirty:()=>Xa,isValid:()=>Sn,late:()=>RR,lazy:()=>e1,literal:()=>t1,makeIssue:()=>ds,map:()=>QR,nan:()=>kR,nativeEnum:()=>n1,never:()=>UR,null:()=>MR,nullable:()=>a1,number:()=>Cv,object:()=>zR,objectUtil:()=>ud,oboolean:()=>p1,onumber:()=>d1,optional:()=>s1,ostring:()=>l1,pipeline:()=>c1,preprocess:()=>u1,promise:()=>o1,quotelessJson:()=>iR,record:()=>YR,set:()=>ZR,setErrorMap:()=>aR,strictObject:()=>KR,string:()=>vv,symbol:()=>OR,transformer:()=>i1,tuple:()=>JR,undefined:()=>BR,union:()=>qR,unknown:()=>jR,util:()=>ie,void:()=>VR});var ie;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function r(o){throw new Error}e.assertNever=r,e.arrayToEnum=o=>{let s={};for(let i of o)s[i]=i;return s},e.getValidEnumValues=o=>{let s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(let a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let s=[];for(let i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(let i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(ie||(ie={}));var ud;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(ud||(ud={}));var B=ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Or=e=>{switch(typeof e){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(e)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":return Array.isArray(e)?B.array:e===null?B.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?B.promise:typeof Map<"u"&&e instanceof Map?B.map:typeof Set<"u"&&e instanceof Set?B.set:typeof Date<"u"&&e instanceof Date?B.date:B.object;default:return B.unknown}};var R=ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),wt=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(s){return s.message},n={_errors:[]},o=s=>{for(let i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let a=n,u=0;for(;u<i.path.length;){let c=i.path[u];u===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(i))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return o(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ie.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let o of this.issues)if(o.path.length>0){let s=o.path[0];r[s]=r[s]||[],r[s].push(t(o))}else n.push(t(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};wt.create=e=>new wt(e);var sR=(e,t)=>{let r;switch(e.code){case R.invalid_type:e.received===B.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ie.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${ie.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ie.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${ie.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ie.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case R.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case R.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,ie.assertNever(e)}return{message:r}},tn=sR;var dv=tn;function aR(e){dv=e}function ri(){return dv}var ds=e=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,s=[...r,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="",u=n.filter(c=>!!c).slice().reverse();for(let c of u)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},uR=[];function O(e,t){let r=ri(),n=ds({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===tn?void 0:tn].filter(o=>!!o)});e.common.issues.push(n)}var Qe=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let o of r){if(o.status==="aborted")return V;o.status==="dirty"&&t.dirty(),n.push(o.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let o of r){let s=await o.key,i=await o.value;n.push({key:s,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let o of r){let{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return V;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(n[s.value]=i.value)}return{status:t.value,value:n}}},V=Object.freeze({status:"aborted"}),to=e=>({status:"dirty",value:e}),ot=e=>({status:"valid",value:e}),Za=e=>e.status==="aborted",Xa=e=>e.status==="dirty",Sn=e=>e.status==="valid",ni=e=>typeof Promise<"u"&&e instanceof Promise;var L;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(L||(L={}));var Yt=class{constructor(t,r,n,o){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},pv=(e,t)=>{if(Sn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new wt(e.common.issues);return this._error=r,this._error}}};function J(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{let{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??n??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:u??r??a.defaultError}},description:o}}var ee=class{get description(){return this._def.description}_getType(t){return Or(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qe,ctx:{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(ni(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},o=this._parseSync({data:t,path:n.path,parent:n});return pv(n,o)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return Sn(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>Sn(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},o=this._parse({data:t,path:n.path,parent:n}),s=await(ni(o)?o:Promise.resolve(o));return pv(n,s)}refine(t,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,s)=>{let i=t(o),a=()=>s.addIssue({code:R.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,o)=>t(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(t){return new Qt({schema:this,typeName:K.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Jt.create(this,this._def)}nullable(){return Mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return on.create(this)}promise(){return An.create(this,this._def)}or(t){return uo.create([this,t],this._def)}and(t){return co.create(this,t,this._def)}transform(t){return new Qt({...J(this._def),schema:this,typeName:K.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new go({...J(this._def),innerType:this,defaultValue:r,typeName:K.ZodDefault})}brand(){return new ps({typeName:K.ZodBranded,type:this,...J(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new ho({...J(this._def),innerType:this,catchValue:r,typeName:K.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return fs.create(this,t)}readonly(){return yo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},cR=/^c[^\s-]{8,}$/i,lR=/^[0-9a-z]+$/,dR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,pR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fR=/^[a-z0-9_-]{21}$/i,mR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,gR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,hR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,yR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",cd,DR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,CR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,bR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,mv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",SR=new RegExp(`^${mv}$`);function gv(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function ER(e){return new RegExp(`^${gv(e)}$`)}function hv(e){let t=`${mv}T${gv(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function PR(e,t){return!!((t==="v4"||!t)&&DR.test(e)||(t==="v6"||!t)&&CR.test(e))}function AR(e,t){if(!mR.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function FR(e,t){return!!((t==="v4"||!t)&&vR.test(e)||(t==="v6"||!t)&&bR.test(e))}var En=class e extends ee{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==B.string){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_type,expected:B.string,received:s.parsedType}),V}let n=new Qe,o;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?O(o,{code:R.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&O(o,{code:R.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")hR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"email",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")cd||(cd=new RegExp(yR,"u")),cd.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"emoji",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")pR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"uuid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")fR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"nanoid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")cR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"cuid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")lR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"cuid2",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")dR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"ulid",code:R.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),O(o,{validation:"url",code:R.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"regex",code:R.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?hv(s).test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?SR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?ER(s).test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{code:R.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?gR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"duration",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?PR(t.data,s.version)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"ip",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="jwt"?AR(t.data,s.alg)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"jwt",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="cidr"?FR(t.data,s.version)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"cidr",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?wR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"base64",code:R.invalid_string,message:s.message}),n.dirty()):s.kind==="base64url"?xR.test(t.data)||(o=this._getOrReturnCtx(t,o),O(o,{validation:"base64url",code:R.invalid_string,message:s.message}),n.dirty()):ie.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(o=>t.test(o),{validation:r,code:R.invalid_string,...L.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...L.errToObj(t)})}url(t){return this._addCheck({kind:"url",...L.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...L.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...L.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...L.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...L.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...L.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...L.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...L.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...L.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...L.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...L.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...L.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...L.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...L.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...L.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...L.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...L.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...L.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...L.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...L.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...L.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...L.errToObj(r)})}nonempty(t){return this.min(1,L.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};En.create=e=>new En({checks:[],typeName:K.ZodString,coerce:e?.coerce??!1,...J(e)});function _R(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,s=Number.parseInt(e.toFixed(o).replace(".","")),i=Number.parseInt(t.toFixed(o).replace(".",""));return s%i/10**o}var ro=class e extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==B.number){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_type,expected:B.number,received:s.parsedType}),V}let n,o=new Qe;for(let s of this._def.checks)s.kind==="int"?ie.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),O(n,{code:R.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?_R(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),O(n,{code:R.not_finite,message:s.message}),o.dirty()):ie.assertNever(s);return{status:o.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,L.toString(r))}gt(t,r){return this.setLimit("min",t,!1,L.toString(r))}lte(t,r){return this.setLimit("max",t,!0,L.toString(r))}lt(t,r){return this.setLimit("max",t,!1,L.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:L.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:L.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:L.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:L.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:L.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:L.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:L.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:L.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:L.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:L.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ie.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};ro.create=e=>new ro({checks:[],typeName:K.ZodNumber,coerce:e?.coerce||!1,...J(e)});var no=class e extends ee{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==B.bigint)return this._getInvalidInput(t);let n,o=new Qe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),O(n,{code:R.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):ie.assertNever(s);return{status:o.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return O(r,{code:R.invalid_type,expected:B.bigint,received:r.parsedType}),V}gte(t,r){return this.setLimit("min",t,!0,L.toString(r))}gt(t,r){return this.setLimit("min",t,!1,L.toString(r))}lte(t,r){return this.setLimit("max",t,!0,L.toString(r))}lt(t,r){return this.setLimit("max",t,!1,L.toString(r))}setLimit(t,r,n,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:L.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:L.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:L.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:L.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:L.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:L.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};no.create=e=>new no({checks:[],typeName:K.ZodBigInt,coerce:e?.coerce??!1,...J(e)});var oo=class extends ee{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==B.boolean){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.boolean,received:n.parsedType}),V}return ot(t.data)}};oo.create=e=>new oo({typeName:K.ZodBoolean,coerce:e?.coerce||!1,...J(e)});var io=class e extends ee{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==B.date){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_type,expected:B.date,received:s.parsedType}),V}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return O(s,{code:R.invalid_date}),V}let n=new Qe,o;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),O(o,{code:R.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ie.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:L.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:L.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};io.create=e=>new io({checks:[],coerce:e?.coerce||!1,typeName:K.ZodDate,...J(e)});var ii=class extends ee{_parse(t){if(this._getType(t)!==B.symbol){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.symbol,received:n.parsedType}),V}return ot(t.data)}};ii.create=e=>new ii({typeName:K.ZodSymbol,...J(e)});var so=class extends ee{_parse(t){if(this._getType(t)!==B.undefined){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.undefined,received:n.parsedType}),V}return ot(t.data)}};so.create=e=>new so({typeName:K.ZodUndefined,...J(e)});var ao=class extends ee{_parse(t){if(this._getType(t)!==B.null){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.null,received:n.parsedType}),V}return ot(t.data)}};ao.create=e=>new ao({typeName:K.ZodNull,...J(e)});var Pn=class extends ee{constructor(){super(...arguments),this._any=!0}_parse(t){return ot(t.data)}};Pn.create=e=>new Pn({typeName:K.ZodAny,...J(e)});var nn=class extends ee{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ot(t.data)}};nn.create=e=>new nn({typeName:K.ZodUnknown,...J(e)});var dr=class extends ee{_parse(t){let r=this._getOrReturnCtx(t);return O(r,{code:R.invalid_type,expected:B.never,received:r.parsedType}),V}};dr.create=e=>new dr({typeName:K.ZodNever,...J(e)});var si=class extends ee{_parse(t){if(this._getType(t)!==B.undefined){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.void,received:n.parsedType}),V}return ot(t.data)}};si.create=e=>new si({typeName:K.ZodVoid,...J(e)});var on=class e extends ee{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),o=this._def;if(r.parsedType!==B.array)return O(r,{code:R.invalid_type,expected:B.array,received:r.parsedType}),V;if(o.exactLength!==null){let i=r.data.length>o.exactLength.value,a=r.data.length<o.exactLength.value;(i||a)&&(O(r,{code:i?R.too_big:R.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(O(r,{code:R.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(O(r,{code:R.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,a)=>o.type._parseAsync(new Yt(r,i,r.path,a)))).then(i=>Qe.mergeArray(n,i));let s=[...r.data].map((i,a)=>o.type._parseSync(new Yt(r,i,r.path,a)));return Qe.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:L.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:L.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:L.toString(r)}})}nonempty(t){return this.min(1,t)}};on.create=(e,t)=>new on({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...J(t)});function oi(e){if(e instanceof xt){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Jt.create(oi(n))}return new xt({...e._def,shape:()=>t})}else return e instanceof on?new on({...e._def,type:oi(e.element)}):e instanceof Jt?Jt.create(oi(e.unwrap())):e instanceof Mr?Mr.create(oi(e.unwrap())):e instanceof Br?Br.create(e.items.map(t=>oi(t))):e}var xt=class e extends ee{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=ie.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==B.object){let c=this._getOrReturnCtx(t);return O(c,{code:R.invalid_type,expected:B.object,received:c.parsedType}),V}let{status:n,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof dr&&this._def.unknownKeys==="strip"))for(let c in o.data)i.includes(c)||a.push(c);let u=[];for(let c of i){let l=s[c],d=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Yt(o,d,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof dr){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of a)u.push({key:{status:"valid",value:l},value:{status:"valid",value:o.data[l]}});else if(c==="strict")a.length>0&&(O(o,{code:R.unrecognized_keys,keys:a}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of a){let d=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Yt(o,d,o.path,l)),alwaysSet:l in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let d=await l.key,p=await l.value;c.push({key:d,value:p,alwaysSet:l.alwaysSet})}return c}).then(c=>Qe.mergeObjectSync(n,c)):Qe.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return L.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:L.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of ie.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of ie.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return oi(this)}partial(t){let r={};for(let n of ie.objectKeys(this.shape)){let o=this.shape[n];t&&!t[n]?r[n]=o:r[n]=o.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of ie.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Jt;)s=s._def.innerType;r[n]=s}return new e({...this._def,shape:()=>r})}keyof(){return yv(ie.objectKeys(this.shape))}};xt.create=(e,t)=>new xt({shape:()=>e,unknownKeys:"strip",catchall:dr.create(),typeName:K.ZodObject,...J(t)});xt.strictCreate=(e,t)=>new xt({shape:()=>e,unknownKeys:"strict",catchall:dr.create(),typeName:K.ZodObject,...J(t)});xt.lazycreate=(e,t)=>new xt({shape:e,unknownKeys:"strip",catchall:dr.create(),typeName:K.ZodObject,...J(t)});var uo=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function o(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let i=s.map(a=>new wt(a.ctx.common.issues));return O(r,{code:R.invalid_union,unionErrors:i}),V}if(r.common.async)return Promise.all(n.map(async s=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let s,i=[];for(let u of n){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(u=>new wt(u));return O(r,{code:R.invalid_union,unionErrors:a}),V}}get options(){return this._def.options}};uo.create=(e,t)=>new uo({options:e,typeName:K.ZodUnion,...J(t)});var rn=e=>e instanceof lo?rn(e.schema):e instanceof Qt?rn(e.innerType()):e instanceof po?[e.value]:e instanceof fo?e.options:e instanceof mo?ie.objectValues(e.enum):e instanceof go?rn(e._def.innerType):e instanceof so?[void 0]:e instanceof ao?[null]:e instanceof Jt?[void 0,...rn(e.unwrap())]:e instanceof Mr?[null,...rn(e.unwrap())]:e instanceof ps||e instanceof yo?rn(e.unwrap()):e instanceof ho?rn(e._def.innerType):[],eu=class e extends ee{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==B.object)return O(r,{code:R.invalid_type,expected:B.object,received:r.parsedType}),V;let n=this.discriminator,o=r.data[n],s=this.optionsMap.get(o);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(O(r,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),V)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let o=new Map;for(let s of r){let i=rn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new e({typeName:K.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:o,...J(n)})}};function ld(e,t){let r=Or(e),n=Or(t);if(e===t)return{valid:!0,data:e};if(r===B.object&&n===B.object){let o=ie.objectKeys(t),s=ie.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(let a of s){let u=ld(e[a],t[a]);if(!u.valid)return{valid:!1};i[a]=u.data}return{valid:!0,data:i}}else if(r===B.array&&n===B.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let s=0;s<e.length;s++){let i=e[s],a=t[s],u=ld(i,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return r===B.date&&n===B.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var co=class extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=(s,i)=>{if(Za(s)||Za(i))return V;let a=ld(s.value,i.value);return a.valid?((Xa(s)||Xa(i))&&r.dirty(),{status:r.value,value:a.data}):(O(n,{code:R.invalid_intersection_types}),V)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};co.create=(e,t,r)=>new co({left:e,right:t,typeName:K.ZodIntersection,...J(r)});var Br=class e extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.array)return O(n,{code:R.invalid_type,expected:B.array,received:n.parsedType}),V;if(n.data.length<this._def.items.length)return O(n,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),V;!this._def.rest&&n.data.length>this._def.items.length&&(O(n,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((i,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Yt(n,i,n.path,a)):null}).filter(i=>!!i);return n.common.async?Promise.all(s).then(i=>Qe.mergeArray(r,i)):Qe.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Br.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Br({items:e,typeName:K.ZodTuple,rest:null,...J(t)})};var tu=class e extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.object)return O(n,{code:R.invalid_type,expected:B.object,received:n.parsedType}),V;let o=[],s=this._def.keyType,i=this._def.valueType;for(let a in n.data)o.push({key:s._parse(new Yt(n,a,n.path,a)),value:i._parse(new Yt(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Qe.mergeObjectAsync(r,o):Qe.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof ee?new e({keyType:t,valueType:r,typeName:K.ZodRecord,...J(n)}):new e({keyType:En.create(),valueType:t,typeName:K.ZodRecord,...J(r)})}},ai=class extends ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.map)return O(n,{code:R.invalid_type,expected:B.map,received:n.parsedType}),V;let o=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([a,u],c)=>({key:o._parse(new Yt(n,a,n.path,[c,"key"])),value:s._parse(new Yt(n,u,n.path,[c,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of i){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return V;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of i){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return V;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}}}};ai.create=(e,t,r)=>new ai({valueType:t,keyType:e,typeName:K.ZodMap,...J(r)});var ui=class e extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==B.set)return O(n,{code:R.invalid_type,expected:B.set,received:n.parsedType}),V;let o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(O(n,{code:R.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(O(n,{code:R.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let s=this._def.valueType;function i(u){let c=new Set;for(let l of u){if(l.status==="aborted")return V;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let a=[...n.data.values()].map((u,c)=>s._parse(new Yt(n,u,n.path,c)));return n.common.async?Promise.all(a).then(u=>i(u)):i(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:L.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:L.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};ui.create=(e,t)=>new ui({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...J(t)});var ru=class e extends ee{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==B.function)return O(r,{code:R.invalid_type,expected:B.function,received:r.parsedType}),V;function n(a,u){return ds({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ri(),tn].filter(c=>!!c),issueData:{code:R.invalid_arguments,argumentsError:u}})}function o(a,u){return ds({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ri(),tn].filter(c=>!!c),issueData:{code:R.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof An){let a=this;return ot(async function(...u){let c=new wt([]),l=await a._def.args.parseAsync(u,s).catch(h=>{throw c.addIssue(n(u,h)),c}),d=await Reflect.apply(i,this,l);return await a._def.returns._def.type.parseAsync(d,s).catch(h=>{throw c.addIssue(o(d,h)),c})})}else{let a=this;return ot(function(...u){let c=a._def.args.safeParse(u,s);if(!c.success)throw new wt([n(u,c.error)]);let l=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(l,s);if(!d.success)throw new wt([o(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Br.create(t).rest(nn.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Br.create([]).rest(nn.create()),returns:r||nn.create(),typeName:K.ZodFunction,...J(n)})}},lo=class extends ee{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};lo.create=(e,t)=>new lo({getter:e,typeName:K.ZodLazy,...J(t)});var po=class extends ee{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return O(r,{received:r.data,code:R.invalid_literal,expected:this._def.value}),V}return{status:"valid",value:t.data}}get value(){return this._def.value}};po.create=(e,t)=>new po({value:e,typeName:K.ZodLiteral,...J(t)});function yv(e,t){return new fo({values:e,typeName:K.ZodEnum,...J(t)})}var fo=class e extends ee{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return O(r,{expected:ie.joinValues(n),received:r.parsedType,code:R.invalid_type}),V}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return O(r,{received:r.data,code:R.invalid_enum_value,options:n}),V}return ot(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};fo.create=yv;var mo=class extends ee{_parse(t){let r=ie.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==B.string&&n.parsedType!==B.number){let o=ie.objectValues(r);return O(n,{expected:ie.joinValues(o),received:n.parsedType,code:R.invalid_type}),V}if(this._cache||(this._cache=new Set(ie.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=ie.objectValues(r);return O(n,{received:n.data,code:R.invalid_enum_value,options:o}),V}return ot(t.data)}get enum(){return this._def.values}};mo.create=(e,t)=>new mo({values:e,typeName:K.ZodNativeEnum,...J(t)});var An=class extends ee{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==B.promise&&r.common.async===!1)return O(r,{code:R.invalid_type,expected:B.promise,received:r.parsedType}),V;let n=r.parsedType===B.promise?r.data:Promise.resolve(r.data);return ot(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};An.create=(e,t)=>new An({type:e,typeName:K.ZodPromise,...J(t)});var Qt=class extends ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{O(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){let i=o.transform(n.data,s);if(n.common.async)return Promise.resolve(i).then(async a=>{if(r.value==="aborted")return V;let u=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return u.status==="aborted"?V:u.status==="dirty"?to(u.value):r.value==="dirty"?to(u.value):u});{if(r.value==="aborted")return V;let a=this._def.schema._parseSync({data:i,path:n.path,parent:n});return a.status==="aborted"?V:a.status==="dirty"?to(a.value):r.value==="dirty"?to(a.value):a}}if(o.type==="refinement"){let i=a=>{let u=o.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?V:(a.status==="dirty"&&r.dirty(),i(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?V:(a.status==="dirty"&&r.dirty(),i(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Sn(i))return V;let a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>Sn(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:r.value,value:a})):V);ie.assertNever(o)}};Qt.create=(e,t,r)=>new Qt({schema:e,typeName:K.ZodEffects,effect:t,...J(r)});Qt.createWithPreprocess=(e,t,r)=>new Qt({schema:t,effect:{type:"preprocess",transform:e},typeName:K.ZodEffects,...J(r)});var Jt=class extends ee{_parse(t){return this._getType(t)===B.undefined?ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Jt.create=(e,t)=>new Jt({innerType:e,typeName:K.ZodOptional,...J(t)});var Mr=class extends ee{_parse(t){return this._getType(t)===B.null?ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Mr.create=(e,t)=>new Mr({innerType:e,typeName:K.ZodNullable,...J(t)});var go=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===B.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};go.create=(e,t)=>new go({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...J(t)});var ho=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ni(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ho.create=(e,t)=>new ho({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...J(t)});var ci=class extends ee{_parse(t){if(this._getType(t)!==B.nan){let n=this._getOrReturnCtx(t);return O(n,{code:R.invalid_type,expected:B.nan,received:n.parsedType}),V}return{status:"valid",value:t.data}}};ci.create=e=>new ci({typeName:K.ZodNaN,...J(e)});var TR=Symbol("zod_brand"),ps=class extends ee{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},fs=class e extends ee{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?V:s.status==="dirty"?(r.dirty(),to(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?V:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:K.ZodPipeline})}},yo=class extends ee{_parse(t){let r=this._def.innerType._parse(t),n=o=>(Sn(o)&&(o.value=Object.freeze(o.value)),o);return ni(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};yo.create=(e,t)=>new yo({innerType:e,typeName:K.ZodReadonly,...J(t)});function fv(e,t){let r=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof r=="string"?{message:r}:r}function Dv(e,t={},r){return e?Pn.create().superRefine((n,o)=>{let s=e(n);if(s instanceof Promise)return s.then(i=>{if(!i){let a=fv(t,n),u=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!s){let i=fv(t,n),a=i.fatal??r??!0;o.addIssue({code:"custom",...i,fatal:a})}}):Pn.create()}var RR={object:xt.lazycreate},K;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(K||(K={}));var IR=(e,t={message:`Input not instance of ${e.name}`})=>Dv(r=>r instanceof e,t),vv=En.create,Cv=ro.create,kR=ci.create,$R=no.create,bv=oo.create,NR=io.create,OR=ii.create,BR=so.create,MR=ao.create,LR=Pn.create,jR=nn.create,UR=dr.create,VR=si.create,HR=on.create,zR=xt.create,KR=xt.strictCreate,qR=uo.create,GR=eu.create,WR=co.create,JR=Br.create,YR=tu.create,QR=ai.create,ZR=ui.create,XR=ru.create,e1=lo.create,t1=po.create,r1=fo.create,n1=mo.create,o1=An.create,i1=Qt.create,s1=Jt.create,a1=Mr.create,u1=Qt.createWithPreprocess,c1=fs.create,l1=()=>vv().optional(),d1=()=>Cv().optional(),p1=()=>bv().optional(),f1={string:(e=>En.create({...e,coerce:!0})),number:(e=>ro.create({...e,coerce:!0})),boolean:(e=>oo.create({...e,coerce:!0})),bigint:(e=>no.create({...e,coerce:!0})),date:(e=>io.create({...e,coerce:!0}))};var m1=V;var ou="2.0",wv=f.union([f.string(),f.number().int()]),xv=f.string(),g1=f.object({progressToken:f.optional(wv)}).passthrough(),Zt=f.object({_meta:f.optional(g1)}).passthrough(),St=f.object({method:f.string(),params:f.optional(Zt)}),ms=f.object({_meta:f.optional(f.object({}).passthrough())}).passthrough(),Lr=f.object({method:f.string(),params:f.optional(ms)}),Xt=f.object({_meta:f.optional(f.object({}).passthrough())}).passthrough(),iu=f.union([f.string(),f.number().int()]),h1=f.object({jsonrpc:f.literal(ou),id:iu}).merge(St).strict();var y1=f.object({jsonrpc:f.literal(ou)}).merge(Lr).strict();var D1=f.object({jsonrpc:f.literal(ou),id:iu,result:Xt}).strict();var nu;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(nu||(nu={}));var v1=f.object({jsonrpc:f.literal(ou),id:iu,error:f.object({code:f.number().int(),message:f.string(),data:f.optional(f.unknown())})}).strict();var C1=f.union([h1,y1,D1,v1]),dd=Xt.strict(),pd=Lr.extend({method:f.literal("notifications/cancelled"),params:ms.extend({requestId:iu,reason:f.string().optional()})}),b1=f.object({src:f.string(),mimeType:f.optional(f.string()),sizes:f.optional(f.array(f.string()))}).passthrough(),gs=f.object({icons:f.array(b1).optional()}).passthrough(),hs=f.object({name:f.string(),title:f.optional(f.string())}).passthrough(),Sv=hs.extend({version:f.string(),websiteUrl:f.optional(f.string())}).merge(gs),w1=f.object({experimental:f.optional(f.object({}).passthrough()),sampling:f.optional(f.object({}).passthrough()),elicitation:f.optional(f.object({}).passthrough()),roots:f.optional(f.object({listChanged:f.optional(f.boolean())}).passthrough())}).passthrough(),x1=St.extend({method:f.literal("initialize"),params:Zt.extend({protocolVersion:f.string(),capabilities:w1,clientInfo:Sv})});var S1=f.object({experimental:f.optional(f.object({}).passthrough()),logging:f.optional(f.object({}).passthrough()),completions:f.optional(f.object({}).passthrough()),prompts:f.optional(f.object({listChanged:f.optional(f.boolean())}).passthrough()),resources:f.optional(f.object({subscribe:f.optional(f.boolean()),listChanged:f.optional(f.boolean())}).passthrough()),tools:f.optional(f.object({listChanged:f.optional(f.boolean())}).passthrough())}).passthrough(),Ev=Xt.extend({protocolVersion:f.string(),capabilities:S1,serverInfo:Sv,instructions:f.optional(f.string())}),E1=Lr.extend({method:f.literal("notifications/initialized")});var fd=St.extend({method:f.literal("ping")}),P1=f.object({progress:f.number(),total:f.optional(f.number()),message:f.optional(f.string())}).passthrough(),md=Lr.extend({method:f.literal("notifications/progress"),params:ms.merge(P1).extend({progressToken:wv})}),su=St.extend({params:Zt.extend({cursor:f.optional(xv)}).optional()}),au=Xt.extend({nextCursor:f.optional(xv)}),Pv=f.object({uri:f.string(),mimeType:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).passthrough(),Av=Pv.extend({text:f.string()}),gd=f.string().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Fv=Pv.extend({blob:gd}),_v=hs.extend({uri:f.string(),description:f.optional(f.string()),mimeType:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).merge(gs),A1=hs.extend({uriTemplate:f.string(),description:f.optional(f.string()),mimeType:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).merge(gs),F1=su.extend({method:f.literal("resources/list")}),Tv=au.extend({resources:f.array(_v)}),_1=su.extend({method:f.literal("resources/templates/list")}),Rv=au.extend({resourceTemplates:f.array(A1)}),T1=St.extend({method:f.literal("resources/read"),params:Zt.extend({uri:f.string()})}),Iv=Xt.extend({contents:f.array(f.union([Av,Fv]))}),R1=Lr.extend({method:f.literal("notifications/resources/list_changed")}),I1=St.extend({method:f.literal("resources/subscribe"),params:Zt.extend({uri:f.string()})}),k1=St.extend({method:f.literal("resources/unsubscribe"),params:Zt.extend({uri:f.string()})}),$1=Lr.extend({method:f.literal("notifications/resources/updated"),params:ms.extend({uri:f.string()})}),N1=f.object({name:f.string(),description:f.optional(f.string()),required:f.optional(f.boolean())}).passthrough(),O1=hs.extend({description:f.optional(f.string()),arguments:f.optional(f.array(N1)),_meta:f.optional(f.object({}).passthrough())}).merge(gs),B1=su.extend({method:f.literal("prompts/list")}),kv=au.extend({prompts:f.array(O1)}),M1=St.extend({method:f.literal("prompts/get"),params:Zt.extend({name:f.string(),arguments:f.optional(f.record(f.string()))})}),hd=f.object({type:f.literal("text"),text:f.string(),_meta:f.optional(f.object({}).passthrough())}).passthrough(),yd=f.object({type:f.literal("image"),data:gd,mimeType:f.string(),_meta:f.optional(f.object({}).passthrough())}).passthrough(),Dd=f.object({type:f.literal("audio"),data:gd,mimeType:f.string(),_meta:f.optional(f.object({}).passthrough())}).passthrough(),L1=f.object({type:f.literal("resource"),resource:f.union([Av,Fv]),_meta:f.optional(f.object({}).passthrough())}).passthrough(),j1=_v.extend({type:f.literal("resource_link")}),$v=f.union([hd,yd,Dd,j1,L1]),U1=f.object({role:f.enum(["user","assistant"]),content:$v}).passthrough(),Nv=Xt.extend({description:f.optional(f.string()),messages:f.array(U1)}),V1=Lr.extend({method:f.literal("notifications/prompts/list_changed")}),H1=f.object({title:f.optional(f.string()),readOnlyHint:f.optional(f.boolean()),destructiveHint:f.optional(f.boolean()),idempotentHint:f.optional(f.boolean()),openWorldHint:f.optional(f.boolean())}).passthrough(),z1=hs.extend({description:f.optional(f.string()),inputSchema:f.object({type:f.literal("object"),properties:f.optional(f.object({}).passthrough()),required:f.optional(f.array(f.string()))}).passthrough(),outputSchema:f.optional(f.object({type:f.literal("object"),properties:f.optional(f.object({}).passthrough()),required:f.optional(f.array(f.string()))}).passthrough()),annotations:f.optional(H1),_meta:f.optional(f.object({}).passthrough())}).merge(gs),K1=su.extend({method:f.literal("tools/list")}),Ov=au.extend({tools:f.array(z1)}),vd=Xt.extend({content:f.array($v).default([]),structuredContent:f.object({}).passthrough().optional(),isError:f.optional(f.boolean())}),EK=vd.or(Xt.extend({toolResult:f.unknown()})),q1=St.extend({method:f.literal("tools/call"),params:Zt.extend({name:f.string(),arguments:f.optional(f.record(f.unknown()))})}),G1=Lr.extend({method:f.literal("notifications/tools/list_changed")}),Bv=f.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),W1=St.extend({method:f.literal("logging/setLevel"),params:Zt.extend({level:Bv})}),J1=Lr.extend({method:f.literal("notifications/message"),params:ms.extend({level:Bv,logger:f.optional(f.string()),data:f.unknown()})}),Y1=f.object({name:f.string().optional()}).passthrough(),Q1=f.object({hints:f.optional(f.array(Y1)),costPriority:f.optional(f.number().min(0).max(1)),speedPriority:f.optional(f.number().min(0).max(1)),intelligencePriority:f.optional(f.number().min(0).max(1))}).passthrough(),Z1=f.object({role:f.enum(["user","assistant"]),content:f.union([hd,yd,Dd])}).passthrough(),X1=St.extend({method:f.literal("sampling/createMessage"),params:Zt.extend({messages:f.array(Z1),systemPrompt:f.optional(f.string()),includeContext:f.optional(f.enum(["none","thisServer","allServers"])),temperature:f.optional(f.number()),maxTokens:f.number().int(),stopSequences:f.optional(f.array(f.string())),metadata:f.optional(f.object({}).passthrough()),modelPreferences:f.optional(Q1)})}),eI=Xt.extend({model:f.string(),stopReason:f.optional(f.enum(["endTurn","stopSequence","maxTokens"]).or(f.string())),role:f.enum(["user","assistant"]),content:f.discriminatedUnion("type",[hd,yd,Dd])}),tI=f.object({type:f.literal("boolean"),title:f.optional(f.string()),description:f.optional(f.string()),default:f.optional(f.boolean())}).passthrough(),rI=f.object({type:f.literal("string"),title:f.optional(f.string()),description:f.optional(f.string()),minLength:f.optional(f.number()),maxLength:f.optional(f.number()),format:f.optional(f.enum(["email","uri","date","date-time"]))}).passthrough(),nI=f.object({type:f.enum(["number","integer"]),title:f.optional(f.string()),description:f.optional(f.string()),minimum:f.optional(f.number()),maximum:f.optional(f.number())}).passthrough(),oI=f.object({type:f.literal("string"),title:f.optional(f.string()),description:f.optional(f.string()),enum:f.array(f.string()),enumNames:f.optional(f.array(f.string()))}).passthrough(),iI=f.union([tI,rI,nI,oI]),sI=St.extend({method:f.literal("elicitation/create"),params:Zt.extend({message:f.string(),requestedSchema:f.object({type:f.literal("object"),properties:f.record(f.string(),iI),required:f.optional(f.array(f.string()))}).passthrough()})}),aI=Xt.extend({action:f.enum(["accept","decline","cancel"]),content:f.optional(f.record(f.string(),f.unknown()))}),uI=f.object({type:f.literal("ref/resource"),uri:f.string()}).passthrough();var cI=f.object({type:f.literal("ref/prompt"),name:f.string()}).passthrough(),lI=St.extend({method:f.literal("completion/complete"),params:Zt.extend({ref:f.union([cI,uI]),argument:f.object({name:f.string(),value:f.string()}).passthrough(),context:f.optional(f.object({arguments:f.optional(f.record(f.string(),f.string()))}))})}),Mv=Xt.extend({completion:f.object({values:f.array(f.string()).max(100),total:f.optional(f.number().int()),hasMore:f.optional(f.boolean())}).passthrough()}),dI=f.object({uri:f.string().startsWith("file://"),name:f.optional(f.string()),_meta:f.optional(f.object({}).passthrough())}).passthrough(),pI=St.extend({method:f.literal("roots/list")}),fI=Xt.extend({roots:f.array(dI)}),mI=Lr.extend({method:f.literal("notifications/roots/list_changed")}),PK=f.union([fd,x1,lI,W1,M1,B1,F1,_1,T1,I1,k1,q1,K1]),AK=f.union([pd,md,E1,mI]),FK=f.union([dd,eI,aI,fI]),_K=f.union([fd,X1,sI,pI]),TK=f.union([pd,md,J1,$1,R1,G1,V1]),RK=f.union([dd,Ev,Mv,Nv,kv,Tv,Rv,Iv,vd,Ov]);var oB=Ne(nf(),1),iB=Ne(_b(),1);var IB=Ne(yw(),1);import kB from"node:process";var RG=kB.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];import*as ZB from"@sentry/node";var XB=Ne(ww(),1);var eM=()=>{if(typeof globalThis<"u"&&globalThis.crypto)return globalThis.crypto;if(typeof Y<"u")try{let e=Y("crypto");if(e.webcrypto)return e.webcrypto}catch{}throw new Error("Web Crypto API is not available. Requires Node.js 15+ or a browser environment.")},qG=eM();import xw from"node:process";function xf(){let{env:e}=xw,{TERM:t,TERM_PROGRAM:r}=e;return xw.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||r==="Terminus-Sublime"||r==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Sf=Ne(Un(),1),Fi=Ne(ia(),1),qs=Ne(Un(),1),Pf=()=>{let e=Ef?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],t=Ef?80:120,r,n=!1,o="",s="",i="",a=y=>{let D=y>1?"Something went wrong":"Canceled";n&&h(D,y)},u=(y,D)=>{console.error(D,y),a(2)},c=()=>a(1),l=()=>{process.on("uncaughtExceptionMonitor",u),process.on("unhandledRejection",u),process.on("SIGINT",c),process.on("SIGTERM",c),process.on("exit",a)},d=()=>{process.removeListener("uncaughtExceptionMonitor",u),process.removeListener("unhandledRejection",u),process.removeListener("SIGINT",c),process.removeListener("SIGTERM",c),process.removeListener("exit",a)},p=(y="")=>{n=!0,o=y.replace(/\.+$/,""),process.stdout.write(`${Sf.default.gray(rM)}
1504
1504
  `);let D=0,w=0;l(),process.env.CI||(r=setInterval(()=>{let x=Sf.default.magenta(e[D]),F=".".repeat(Math.floor(w)).slice(0,3);process.stdout.write(Fi.cursor.move(-999,-i.split(`
1505
1505
  `).length+1)),process.stdout.write(Fi.erase.down(i.split(`
1506
1506
  `).length));let P=`${x} ${o}${F}${s}`;process.stdout.write(P),D=D+1<e.length?D+1:0,w=w<e.length?w+.125:0,i=P},t))},h=(y,D=0)=>{o=y??o,n=!1,clearInterval(r);let w=D===0?(0,qs.green)(iM):D===1?(0,qs.red)(nM):(0,qs.red)(oM);process.stdout.write(Fi.cursor.move(-999,-i.split(`
1507
1507
  `).length+1)),process.stdout.write(Fi.erase.down(i.split(`
1508
1508
  `).length)),process.stdout.write(`${w} ${o}
1509
- `),i=o,d()};return{start:p,stop:h,message:(y="")=>{o=y??o},extra:(y="")=>{s=y}}},Ef=xf(),Ku=(e,t)=>Ef?e:t,rM=Ku("\u2502","|"),nM=Ku("\u25A0","x"),oM=Ku("\u25B2","x"),iM=Ku("\u25C7","o");import{spawn as sM}from"child_process";async function Af(e){try{await J("open")(e);return}catch{}let t=process.platform,r,n;return t==="darwin"?(r="open",n=[e]):t==="win32"?(r="cmd",n=["/c","start","",e]):(r="xdg-open",n=[e]),new Promise((o,s)=>{let i=sM(r,n,{stdio:"ignore",detached:!0});i.on("error",s),i.on("close",a=>{a===0?o():s(new Error(`Failed to open browser with exit code ${a}`))}),i.unref()})}import*as uM from"@sentry/node";var xY=`
1509
+ `),i=o,d()};return{start:p,stop:h,message:(y="")=>{o=y??o},extra:(y="")=>{s=y}}},Ef=xf(),Ku=(e,t)=>Ef?e:t,rM=Ku("\u2502","|"),nM=Ku("\u25A0","x"),oM=Ku("\u25B2","x"),iM=Ku("\u25C7","o");import{spawn as sM}from"child_process";async function Af(e){try{let s=(await import("open")).default;await s(e);return}catch{}let t=process.platform,r,n;if(t==="darwin")r="open",n=[e];else if(t==="win32"){let o=e.replace(/`/g,"``").replace(/"/g,'`"').replace(/\$/g,"`$");r="powershell",n=["-NoProfile","-Command",`Start-Process "${o}"`]}else r="xdg-open",n=[e];return new Promise((o,s)=>{let i=sM(r,n,{stdio:"ignore",detached:!0});i.on("error",s),i.on("close",a=>{a===0?o():s(new Error(`Failed to open browser with exit code ${a}`))}),i.unref()})}import*as uM from"@sentry/node";var xY=`
1510
1510
  `+(0,qr.dim)("ESC to interrupt");import*as or from"typescript";function Ff(e){return!(e.category!==or.DiagnosticCategory.Error||!e.file||e.code===6133||e.code===6138||e.code===6305||e.code===6196||e.code===6192||e.code===6198||e.code===6199||e.code===6205||e.code===1449||e.code===2578||e.code===7006||e.code===5074||e.code===7026||e.code===2503||e.code===2695||e.code===2322)}async function cM(e,t,r){let n=[],o=[t],s=e.relative(e.getAppRootDir(),t.fileName);for(;o.length>0;){let i=o.shift();if(mM(i,t)){let a=dM(e,i,t,r),{line:u,character:c}=t.getLineAndCharacterOfPosition(i.getStart());a&&(a.loc=`${s}:${u+1}:${c+1}`,n.push(a))}o.push(...i.getChildren(t))}return n}var lM="figmaMapping";function dM(e,t,r,n){let[o]=t.arguments;if(!o)throw new Error("Invalid figmaMapping call, no arguments found");if(!Z.isObjectLiteralExpression(o))throw new Error("Invalid figmaMapping call, argument is not an object literal");let s=o.properties;if(!s)throw new Error("Invalid figmaMapping call, argument has no properties");let i="",a,u,c,l="-",d=e.basename(r.fileName).replace(/\.mapper\.[tsxjm]+$/,""),p,h,g,m,y;if(t.typeArguments&&t.typeArguments.length>0){let I=Sw(t.typeArguments[0].getText(r));I&&(d=I)}for(let I of s){let N=I.name?.getText(r);if(!N)throw new Error("Invalid figmaMapping call, property has no name");switch(N){case"componentName":{if(!("initializer"in I))throw new Error("Invalid figmaMapping call, componentName has no initializer");let k=I.initializer;if(!Z.isStringLiteral(k))throw new Error("Invalid figmaMapping call, componentName is not a string literal");a=k.text;break}case"url":{if(!("initializer"in I))throw new Error("Invalid figmaMapping call, url has no initializer");let k=I.initializer;if(!Z.isStringLiteral(k))throw new Error("Invalid figmaMapping call, url is not a string literal");m=k.text;break}case"componentKey":{if(!("initializer"in I))throw new Error("Invalid figmaMapping call, componentKey has no initializer");let k=I.initializer;if(!Z.isStringLiteral(k))throw new Error("Invalid figmaMapping call, componentKey is not a string literal");i=k.text;break}case"meta":{if(!("initializer"in I))throw new Error("Invalid figmaMapping call, meta has no initializer");let k=I.initializer;if(Z.isObjectLiteralExpression(k)){y={imports:[]};for(let T of k.properties)Z.isPropertyAssignment(T)&&Z.isIdentifier(T.name)&&T.name.text==="imports"&&Z.isArrayLiteralExpression(T.initializer)&&(y.imports=T.initializer.elements.map(j=>{if(Z.isStringLiteral(j))return j.text;if(Z.isObjectLiteralExpression(j)){let H={};for(let q of j.properties)if(Z.isPropertyAssignment(q)&&Z.isIdentifier(q.name)){let b=q.name.text;Z.isStringLiteral(q.initializer)&&(H[b]=q.initializer.text)}return H}return null}).filter(Boolean))}break}case"mapper":if(Z.isMethodDeclaration(I)){let k=function(v){let H=n.getSymbolAtLocation(v)?.getDeclarations()?.[0];if(H){let q=fM(H);if(q?.importClause){let b=q.importClause.name?.getText(r);return b===l?(p="default",h=b):q.importClause.namedBindings&&Z.isNamedImports(q.importClause.namedBindings)&&(p="named",q.importClause.namedBindings.elements.forEach(E=>{E.name.getText(r)===l&&(h=E.name.getText(r))})),h&&Z.isStringLiteral(q.moduleSpecifier)&&(g=q.moduleSpecifier.text),!0}}return!1},T=function(v){if((Z.isJsxOpeningElement(v)||Z.isJsxSelfClosingElement(v))&&Z.isIdentifier(v.tagName)){l=v.tagName.getText(r),k(v.tagName);return}else if(Z.isTaggedTemplateExpression(v)&&Z.isIdentifier(v.tag)&&(v.tag.escapedText==="html"||v.tag.escapedText==="tmpl")){if(Z.isTemplateExpression(v.template)){let H=v.template.templateSpans.find(q=>Z.isIdentifier(q.expression)&&pM(q.expression.text)&&k(q.expression));if(H&&Z.isIdentifier(H.expression)){l=H.expression.text;return}}let j=v.template.getText(r).match(/^`\s*<([^\s]+)/);if(j){l=j[1];return}if(j=v.template.getText(r).match(/^`\s*([^\s]+)/),j){l=j[1];return}}else Z.forEachChild(v,T)};var P=k,_=T;if(I.parameters&&I.parameters.length>0&&I.parameters[0]&&I.parameters[0].type){let v=I.parameters[0].type.getText(r),j=Sw(v);j&&(d=j)}Z.forEachChild(I,T),c=I.getText(r).replace(/^mapper/,"function Mapper"),u=_f(c);break}case"designTokenMapper":if(Z.isMethodDeclaration(I)){c=I.getText(r).replace(/^designTokenMapper/,"function Mapper"),u=_f(c),i="design-tokens";break}case"genericMapper":if(Z.isMethodDeclaration(I)){c=I.getText(r).replace(/^genericMapper/,"function Mapper"),u=_f(c),i="*";break}}}if(!i&&!m)throw new Error("Invalid figmaMapping call, no componentKey or url found");if(!i&&!u)throw new Error("Invalid figmaMapping call, no mapper found");if(!i&&!c)throw new Error("Invalid figmaMapping call, no original mapper found");let D=yM(r),w=y?.imports??[],x=[],F=[];x.push(...D);for(let I of w)typeof I=="string"?F.push(I):x.push(I);return{builderName:l,figmaName:a??d,figmaKey:i,figmaUrl:m,inputMapper:u,exportType:p,importName:h,importPath:g,originalInputMapper:c,imports:x,importStrings:F.length>0?F:void 0,source:"cli"}}function pM(e){return e.charAt(0)===e.charAt(0).toUpperCase()}function _f(e){return Z.transpile(e,{target:Z.ScriptTarget.Latest,allowNonTsExtensions:!0,moduleResolution:Z.ModuleResolutionKind.NodeJs,module:Z.ModuleKind.CommonJS,noImplicitAny:!1,esModuleInterop:!0,noUnusedLocals:!1,noUnusedParameters:!1,jsx:Z.JsxEmit.React,jsxFactory:"React.createElement",jsxFragmentFactory:"React.Fragment",allowJs:!0,checkJs:!0,strict:!0,suppressImplicitAnyIndexErrors:!0,typeRoots:["node_modules/@types"],inlineSources:!0,inlineSourceMap:!0})}function fM(e){let t=e;for(;t;){if(Z.isImportDeclaration(t))return t;t=t.parent}}function mM(e,t){return Z.isCallExpression(e)&&e.expression.getText(t)===lM}async function Ew(e){let t=["node_modules","dist","build","public"];return(await e.readdirRecursive(e.getAppRootDir(),t)).filter(n=>Lt(n))}function Sw(e){let t=e.match(/^Figma(\w+)Props$/);if(t&&typeof t[1]=="string")return t[1]}async function Pw(e,t,r,n=!1){try{return r||(r=await _a(e)),(await r.setPublicApiKey({publicApiKey:t})).modifiedType==="permission-error"?{success:!1,error:"permission-error"}:(n&&await r.ensureFigmaImportPage(),{success:!0})}catch(o){let s="unknown-error";return o instanceof Error?s=o.message:typeof o=="string"&&(s=o),{success:!1,error:s}}}var gM={getCanonicalFileName:e=>e,getCurrentDirectory:()=>Z.sys.getCurrentDirectory(),getNewLine:()=>Z.sys.newLine};function hM(e){return Z.formatDiagnosticsWithColorAndContext(e,gM)}async function Aw({sys:e,mappingFiles:t,typeCheck:r}){if(e.Sentry?.setContext("findMappings",{mappingFiles:t}),!t.length)return{mapperFiles:[],figmaBuilderLinks:[],figmaLinksToResolve:[],diagnostics:[]};let n=[],o=[],s=[],i=await Ue(e,t),a=i.getTypeChecker(),u=i.getSyntacticDiagnostics().filter(Ff).filter(d=>d.file?.fileName?t.includes(d.file.fileName):!1);if(u.length>0)return de.error(`At least one of the mappings contain syntactic errors:
1511
1511
 
1512
1512
  ${hM(u)}`),Zr(1);let c=[...r?i.getSemanticDiagnostics():[]].filter(Ff);for(let d of t)try{let p=i.getSourceFile(d);if(!p){e.Sentry?.captureException(new Error("Could not find source file"),{extra:{file:d,sourceFiles:i.getSourceFiles().map(m=>m.fileName)},level:"warning"});continue}let h=p?.fileName;if(o.push({filePath:d,content:p.getText()}),h){let m=c.filter(y=>y.file?.fileName===h);m.length>0&&s.push(...m)}let g=await cM(e,p,a);n.push(...g)}catch(p){return e.Sentry?.captureException(p),await Zr(1)}let l=n.filter(d=>d.figmaUrl&&!d.figmaKey).map(d=>d.figmaUrl);return{mapperFiles:o,figmaBuilderLinks:n,figmaLinksToResolve:l,diagnostics:s}}function yM(e){let t=[];for(let r of e.statements){if(!Z.isImportDeclaration(r)||!r.importClause||r.importClause.isTypeOnly||!Z.isStringLiteral(r.moduleSpecifier))continue;let n=r.moduleSpecifier.text;if(n.startsWith("@builder.io"))continue;r.importClause.name&&t.push({importType:"default",importName:r.importClause.name.text,importPath:n});let o=r.importClause.namedBindings;if(o&&Z.isNamedImports(o))for(let s of o.elements)s.isTypeOnly||t.push({importType:"named",importName:s.name.text,importPath:n})}return t}import{randomUUID as CM}from"crypto";var bM=5294,wM=5284,Rf=4,Tf=e=>!!(process.env.CI||e.ci),xM=(e,t)=>{let r=Tf(t)?{}:kf(e),n=r.spaceName,o=t.builderUserId??process.env.BUILDER_USER_ID??r.userId,s=t.builderPublicKey??process.env.BUILDER_PUBLIC_KEY??r.builderPublicKey,i=t.builderPrivateKey??process.env.BUILDER_PRIVATE_KEY??r.builderPrivateKey,a=process.env.FIGMA_PERSONAL_TOKEN??t.figmaToken,u;return a?u={access_token:a,oauth:!1}:u=r.figmaAuth,{spaceName:n,userId:o,builderPublicKey:s,builderPrivateKey:i,figmaAuth:u,timestamp:r.timestamp}},es=async(e,t,r)=>{let{spaceName:n,userId:o,builderPublicKey:s,builderPrivateKey:i,figmaAuth:a,timestamp:u}=xM(e,t);if(r.forceSpaceId&&!t.yes&&s&&s!==r.forceSpaceId)if(de.warning(`You are currently authenticated for space ${(0,On.yellow)(s)} (${n||"unnamed"}), but this command requires space ${(0,On.green)(r.forceSpaceId)}.`),await Ni({message:"You must switch to the correct space to continue with this code generation command.",options:[{value:"switch",label:"Switch to required space",hint:"Authenticate with the correct space and continue"},{value:"exit",label:"Exit code generation",hint:"Cancel the command and stay in current space"}]})==="switch")s=r.forceSpaceId,i=void 0,n=void 0,o=void 0;else return de.info("Code generation cancelled. You can run the command again when you're ready to switch spaces."),await Zr(1);if(Tf(t)){if(!a&&r.requireFigmaAuth==="if-unset")throw new Error(`No Figma personal token found.