@ampt/cli 1.1.8 → 1.1.10

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.
@@ -16,5 +16,5 @@ var kn=Object.create;var Sr=Object.defineProperty;var Un=Object.getOwnPropertyDe
16
16
  `+w+"]"}return n.pop(),o=w,L}}});var kr=m((Ps,Ir)=>{var Yn=Rr(),eo=qr(),uo={parse:Yn,stringify:eo};Ir.exports=uo});var $r=m((xs,Ur)=>{"use strict";Ur.exports=u=>{if(typeof u!="string")throw new TypeError("Expected a string, got "+typeof u);return u.charCodeAt(0)===65279?u.slice(1):u}});var $u=m(le=>{"use strict";var we=le&&le.__assign||function(){return we=Object.assign||function(u){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n])}return u},we.apply(this,arguments)};Object.defineProperty(le,"__esModule",{value:!0});le.loadTsconfig=le.walkForTsConfig=le.tsConfigLoader=void 0;var se=P("path"),He=P("fs"),ro=kr(),to=$r();function no(u){var e=u.getEnv,r=u.cwd,t=u.loadSync,n=t===void 0?oo:t,o=e("TS_NODE_PROJECT"),i=e("TS_NODE_BASEURL"),s=n(r,o,i);return s}le.tsConfigLoader=no;function oo(u,e,r){var t=io(u,e);if(!t)return{tsConfigPath:void 0,baseUrl:void 0,paths:void 0};var n=Uu(t);return{tsConfigPath:t,baseUrl:r||n&&n.compilerOptions&&n.compilerOptions.baseUrl,paths:n&&n.compilerOptions&&n.compilerOptions.paths}}function io(u,e){if(e){var r=He.lstatSync(e).isDirectory()?se.resolve(e,"./tsconfig.json"):se.resolve(u,e);return r}if(He.statSync(u).isFile())return se.resolve(u);var t=ku(u);return t?se.resolve(t):void 0}function ku(u,e){e===void 0&&(e=He.readdirSync);for(var r=e(u),t=["tsconfig.json","jsconfig.json"],n=0,o=t;n<o.length;n++){var i=o[n];if(r.indexOf(i)!==-1)return se.join(u,i)}var s=se.dirname(u);if(u!==s)return ku(s,e)}le.walkForTsConfig=ku;function Uu(u,e,r){if(e===void 0&&(e=He.existsSync),r===void 0&&(r=function(a){return He.readFileSync(a,"utf8")}),!!e(u)){var t=r(u),n=to(t),o;try{o=ro.parse(n)}catch(a){throw new Error("".concat(u," is malformed ").concat(a.message))}var i=o.extends;if(i){var s=void 0;return Array.isArray(i)?s=i.reduce(function(a,c){return zr(a,Gr(u,c,e,r))},{}):s=Gr(u,i,e,r),zr(s,o)}return o}}le.loadTsconfig=Uu;function Gr(u,e,r,t){var n;typeof e=="string"&&e.indexOf(".json")===-1&&(e+=".json");var o=se.dirname(u),i=se.join(o,e);e.indexOf("/")!==-1&&e.indexOf(".")!==-1&&!r(i)&&(i=se.join(o,"node_modules",e));var s=Uu(i,r,t)||{};if(!((n=s.compilerOptions)===null||n===void 0)&&n.baseUrl){var a=se.dirname(e);s.compilerOptions.baseUrl=se.join(a,s.compilerOptions.baseUrl)}return s}function zr(u,e){return u=u||{},e=e||{},we(we(we({},u),e),{compilerOptions:we(we({},u.compilerOptions),e.compilerOptions)})}});var Cu=m(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.removeExtension=ne.fileExistsAsync=ne.readJsonFromDiskAsync=ne.readJsonFromDiskSync=ne.fileExistsSync=void 0;var Qe=P("fs");function so(u){if(!Qe.existsSync(u))return!1;try{var e=Qe.statSync(u);return e.isFile()}catch{return!1}}ne.fileExistsSync=so;function ao(u){if(Qe.existsSync(u))return P(u)}ne.readJsonFromDiskSync=ao;function co(u,e){Qe.readFile(u,"utf8",function(r,t){if(r||!t)return e();var n=JSON.parse(t);return e(void 0,n)})}ne.readJsonFromDiskAsync=co;function lo(u,e){Qe.stat(u,function(r,t){if(r)return e(void 0,!1);e(void 0,t?t.isFile():!1)})}ne.fileExistsAsync=lo;function fo(u){return u.substring(0,u.lastIndexOf("."))||u}ne.removeExtension=fo});var Gu=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.getAbsoluteMappingEntries=void 0;var Do=P("path");function po(u,e,r){for(var t=ho(Object.keys(e)),n=[],o=0,i=t;o<i.length;o++){var s=i[o];n.push({pattern:s,paths:e[s].map(function(a){return Do.resolve(u,a)})})}return!e["*"]&&r&&n.push({pattern:"*",paths:["".concat(u.replace(/\/$/,""),"/*")]}),n}vu.getAbsoluteMappingEntries=po;function ho(u){return u.concat().sort(function(e,r){return Jr(r)-Jr(e)})}function Jr(u){var e=u.indexOf("*");return u.substr(0,e).length}});var zu=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.exhaustiveTypeException=Ae.getStrippedPath=Ae.getPathsToTry=void 0;var Kr=P("path"),Co=P("path"),vo=Cu();function go(u,e,r){if(!(!e||!r||r[0]===".")){for(var t=[],n=0,o=e;n<o.length;n++){var i=o[n],s=i.pattern===r?"":Ao(i.pattern,r);if(s!==void 0)for(var a=function(D){var h=D.replace("*",s);t.push({type:"file",path:h}),t.push.apply(t,u.map(function(v){return{type:"extension",path:h+v}})),t.push({type:"package",path:Kr.join(h,"/package.json")});var S=Kr.join(h,"/index");t.push.apply(t,u.map(function(v){return{type:"index",path:S+v}}))},c=0,f=i.paths;c<f.length;c++){var p=f[c];a(p)}}return t.length===0?void 0:t}}Ae.getPathsToTry=go;function Fo(u){return u.type==="index"?(0,Co.dirname)(u.path):u.type==="file"?u.path:u.type==="extension"?(0,vo.removeExtension)(u.path):u.type==="package"?u.path:Vr(u.type)}Ae.getStrippedPath=Fo;function Vr(u){throw new Error("Unknown type ".concat(u))}Ae.exhaustiveTypeException=Vr;function Ao(u,e){if(!(e.length<u.length)){if(u==="*")return e;var r=u.indexOf("*");if(r!==-1){var t=u.substring(0,r),n=u.substring(r+1);if(e.substr(0,r)===t&&e.substr(e.length-n.length)===n)return e.substr(r,e.length-n.length)}}}});var Vu=m(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.matchFromAbsolutePaths=je.createMatchPath=void 0;var Wr=P("path"),Ju=Cu(),Eo=Gu(),Ku=zu();function mo(u,e,r,t){r===void 0&&(r=["main"]),t===void 0&&(t=!0);var n=Eo.getAbsoluteMappingEntries(u,e,t);return function(o,i,s,a){return Hr(n,o,i,s,a,r)}}je.createMatchPath=mo;function Hr(u,e,r,t,n,o){r===void 0&&(r=Ju.readJsonFromDiskSync),t===void 0&&(t=Ju.fileExistsSync),n===void 0&&(n=Object.keys(P.extensions)),o===void 0&&(o=["main"]);var i=Ku.getPathsToTry(n,u,e);if(i)return _o(i,r,t,o)}je.matchFromAbsolutePaths=Hr;function yo(u,e,r,t){for(var n=0;n<e.length;n++){var o=e[n],i=typeof o=="string"?u[o]:o.reduce(function(a,c){return a[c]},u);if(i&&typeof i=="string"){var s=Wr.join(Wr.dirname(r),i);if(t(s))return s}}}function _o(u,e,r,t){e===void 0&&(e=Ju.readJsonFromDiskSync),t===void 0&&(t=["main"]);for(var n=0,o=u;n<o.length;n++){var i=o[n];if(i.type==="file"||i.type==="extension"||i.type==="index"){if(r(i.path))return Ku.getStrippedPath(i)}else if(i.type==="package"){var s=e(i.path);if(s){var a=yo(s,t,i.path,r);if(a)return a}}else Ku.exhaustiveTypeException(i.type)}}});var et=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.matchFromAbsolutePathsAsync=Re.createMatchPathAsync=void 0;var Qr=P("path"),Wu=zu(),Bo=Gu(),Zr=Cu();function So(u,e,r,t){r===void 0&&(r=["main"]),t===void 0&&(t=!0);var n=Bo.getAbsoluteMappingEntries(u,e,t);return function(o,i,s,a,c){return Xr(n,o,i,s,a,c,r)}}Re.createMatchPathAsync=So;function Xr(u,e,r,t,n,o,i){r===void 0&&(r=Zr.readJsonFromDiskAsync),t===void 0&&(t=Zr.fileExistsAsync),n===void 0&&(n=Object.keys(P.extensions)),i===void 0&&(i=["main"]);var s=Wu.getPathsToTry(n,u,e);if(!s)return o();gu(s,r,t,o,0,i)}Re.matchFromAbsolutePathsAsync=Xr;function Yr(u,e,r,t,n,o){if(o===void 0&&(o=0),o>=e.length)return n(void 0,void 0);var i=function(){return Yr(u,e,r,t,n,o+1)},s=e[o],a=typeof s=="string"?u[s]:s.reduce(function(f,p){return f[p]},u);if(typeof a!="string")return i();var c=Qr.join(Qr.dirname(r),a);t(c,function(f,p){return f?n(f):p?n(void 0,c):i()})}function gu(u,e,r,t,n,o){n===void 0&&(n=0),o===void 0&&(o=["main"]);var i=u[n];i.type==="file"||i.type==="extension"||i.type==="index"?r(i.path,function(s,a){return s?t(s):a?t(void 0,Wu.getStrippedPath(i)):n===u.length-1?t():gu(u,e,r,t,n+1,o)}):i.type==="package"?e(i.path,function(s,a){return s?t(s):a?Yr(a,o,i.path,r,function(c,f){return c?t(c):f?t(void 0,f):gu(u,e,r,t,n+1,o)}):gu(u,e,r,t,n+1,o)}):Wu.exhaustiveTypeException(i.type)}});var Hu=m(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.configLoader=Te.loadConfig=void 0;var wo=$u(),Fu=P("path");function bo(u){return u===void 0&&(u=process.cwd()),ut({cwd:u})}Te.loadConfig=bo;function ut(u){var e=u.cwd,r=u.explicitParams,t=u.tsConfigLoader,n=t===void 0?wo.tsConfigLoader:t;if(r){var o=Fu.isAbsolute(r.baseUrl)?r.baseUrl:Fu.join(e,r.baseUrl);return{resultType:"success",configFileAbsolutePath:"",baseUrl:r.baseUrl,absoluteBaseUrl:o,paths:r.paths,mainFields:r.mainFields,addMatchAll:r.addMatchAll}}var i=n({cwd:e,getEnv:function(s){return process.env[s]}});return i.tsConfigPath?{resultType:"success",configFileAbsolutePath:i.tsConfigPath,baseUrl:i.baseUrl,absoluteBaseUrl:Fu.resolve(Fu.dirname(i.tsConfigPath),i.baseUrl||""),paths:i.paths||{},addMatchAll:i.baseUrl!==void 0}:{resultType:"failed",message:"Couldn't find tsconfig.json"}}Te.configLoader=ut});var ot=m((zs,nt)=>{"use strict";function Oo(u,e){var r=u;e.slice(0,-1).forEach(function(n){r=r[n]||{}});var t=e[e.length-1];return t in r}function rt(u){return typeof u=="number"||/^0x[0-9a-f]+$/i.test(u)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(u)}function tt(u,e){return e==="constructor"&&typeof u[e]=="function"||e==="__proto__"}nt.exports=function(u,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(g){r.bools[g]=!0});var t={};function n(g){return t[g].some(function(y){return r.bools[y]})}Object.keys(e.alias||{}).forEach(function(g){t[g]=[].concat(e.alias[g]),t[g].forEach(function(y){t[y]=[g].concat(t[g].filter(function(N){return y!==N}))})}),[].concat(e.string).filter(Boolean).forEach(function(g){r.strings[g]=!0,t[g]&&[].concat(t[g]).forEach(function(y){r.strings[y]=!0})});var o=e.default||{},i={_:[]};function s(g,y){return r.allBools&&/^--[^=]+$/.test(y)||r.strings[g]||r.bools[g]||t[g]}function a(g,y,N){for(var F=g,j=0;j<y.length-1;j++){var b=y[j];if(tt(F,b))return;F[b]===void 0&&(F[b]={}),(F[b]===Object.prototype||F[b]===Number.prototype||F[b]===String.prototype)&&(F[b]={}),F[b]===Array.prototype&&(F[b]=[]),F=F[b]}var G=y[y.length-1];tt(F,G)||((F===Object.prototype||F===Number.prototype||F===String.prototype)&&(F={}),F===Array.prototype&&(F=[]),F[G]===void 0||r.bools[G]||typeof F[G]=="boolean"?F[G]=N:Array.isArray(F[G])?F[G].push(N):F[G]=[F[G],N])}function c(g,y,N){if(!(N&&r.unknownFn&&!s(g,N)&&r.unknownFn(N)===!1)){var F=!r.strings[g]&&rt(y)?Number(y):y;a(i,g.split("."),F),(t[g]||[]).forEach(function(j){a(i,j.split("."),F)})}}Object.keys(r.bools).forEach(function(g){c(g,o[g]===void 0?!1:o[g])});var f=[];u.indexOf("--")!==-1&&(f=u.slice(u.indexOf("--")+1),u=u.slice(0,u.indexOf("--")));for(var p=0;p<u.length;p++){var D=u[p],h,S;if(/^--.+=/.test(D)){var v=D.match(/^--([^=]+)=([\s\S]*)$/);h=v[1];var w=v[2];r.bools[h]&&(w=w!=="false"),c(h,w,D)}else if(/^--no-.+/.test(D))h=D.match(/^--no-(.+)/)[1],c(h,!1,D);else if(/^--.+/.test(D))h=D.match(/^--(.+)/)[1],S=u[p+1],S!==void 0&&!/^(-|--)[^-]/.test(S)&&!r.bools[h]&&!r.allBools&&(!t[h]||!n(h))?(c(h,S,D),p+=1):/^(true|false)$/.test(S)?(c(h,S==="true",D),p+=1):c(h,r.strings[h]?"":!0,D);else if(/^-[^-]+/.test(D)){for(var d=D.slice(1,-1).split(""),L=!1,E=0;E<d.length;E++){if(S=D.slice(E+2),S==="-"){c(d[E],S,D);continue}if(/[A-Za-z]/.test(d[E])&&S[0]==="="){c(d[E],S.slice(1),D),L=!0;break}if(/[A-Za-z]/.test(d[E])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(S)){c(d[E],S,D),L=!0;break}if(d[E+1]&&d[E+1].match(/\W/)){c(d[E],D.slice(E+2),D),L=!0;break}else c(d[E],r.strings[d[E]]?"":!0,D)}h=D.slice(-1)[0],!L&&h!=="-"&&(u[p+1]&&!/^(-|--)[^-]/.test(u[p+1])&&!r.bools[h]&&(!t[h]||!n(h))?(c(h,u[p+1],D),p+=1):u[p+1]&&/^(true|false)$/.test(u[p+1])?(c(h,u[p+1]==="true",D),p+=1):c(h,r.strings[h]?"":!0,D))}else if((!r.unknownFn||r.unknownFn(D)!==!1)&&i._.push(r.strings._||!rt(D)?D:Number(D)),e.stopEarly){i._.push.apply(i._,u.slice(p+1));break}}return Object.keys(o).forEach(function(g){Oo(i,g.split("."))||(a(i,g.split("."),o[g]),(t[g]||[]).forEach(function(y){a(i,y.split("."),o[g])}))}),e["--"]?i["--"]=f.slice():f.forEach(function(g){i._.push(g)}),i}});var it=m(qe=>{"use strict";var Mo=qe&&qe.__spreadArray||function(u,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,o;t<n;t++)(o||!(t in e))&&(o||(o=Array.prototype.slice.call(e,0,t)),o[t]=e[t]);return u.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(qe,"__esModule",{value:!0});qe.register=void 0;var Lo=Vu(),Po=Hu(),xo=function(){};function No(u){u=u||["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"];for(var e={},r=0,t=u;r<t.length;r++){var n=t[r];e[n]=!0}return e}function jo(u){var e,r;if(u)e=u.cwd,(u.baseUrl||u.paths)&&(r=u);else{var t=ot(),n=t(process.argv.slice(2),{string:["project"],alias:{project:["P"]}});e=n.project}var o=(0,Po.configLoader)({cwd:e??process.cwd(),explicitParams:r});if(o.resultType==="failed")return console.warn("".concat(o.message,". tsconfig-paths will be skipped")),xo;var i=(0,Lo.createMatchPath)(o.absoluteBaseUrl,o.paths,o.mainFields,o.addMatchAll),s=P("module"),a=s._resolveFilename,c=No(s.builtinModules);return s._resolveFilename=function(f,p){var D=c.hasOwnProperty(f);if(!D){var h=i(f);if(h){var S=Mo([h],[].slice.call(arguments,1),!0);return a.apply(this,S)}}return a.apply(this,arguments)},function(){s._resolveFilename=a}}qe.register=jo});var ct=m(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.loadConfig=ee.register=ee.matchFromAbsolutePathsAsync=ee.createMatchPathAsync=ee.matchFromAbsolutePaths=ee.createMatchPath=void 0;var st=Vu();Object.defineProperty(ee,"createMatchPath",{enumerable:!0,get:function(){return st.createMatchPath}});Object.defineProperty(ee,"matchFromAbsolutePaths",{enumerable:!0,get:function(){return st.matchFromAbsolutePaths}});var at=et();Object.defineProperty(ee,"createMatchPathAsync",{enumerable:!0,get:function(){return at.createMatchPathAsync}});Object.defineProperty(ee,"matchFromAbsolutePathsAsync",{enumerable:!0,get:function(){return at.matchFromAbsolutePathsAsync}});var Ro=it();Object.defineProperty(ee,"register",{enumerable:!0,get:function(){return Ro.register}});var To=Hu();Object.defineProperty(ee,"loadConfig",{enumerable:!0,get:function(){return To.loadConfig}})});var Qu=m((Vs,lt)=>{"use strict";var qo=P("os");lt.exports=qo.homedir||function(){var e=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(r?"/Users/"+r:null):process.platform==="linux"?e||(process.getuid()===0?"/root":r?"/home/"+r:null):e||null}});var Zu=m((Ws,ft)=>{ft.exports=function(){var u=Error.prepareStackTrace;Error.prepareStackTrace=function(r,t){return t};var e=new Error().stack;return Error.prepareStackTrace=u,e[2].getFileName()}});var Dt=m((Hs,Ze)=>{"use strict";var Io=process.platform==="win32",ko=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Xu={};function Uo(u){return ko.exec(u).slice(1)}Xu.parse=function(u){if(typeof u!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof u);var e=Uo(u);if(!e||e.length!==5)throw new TypeError("Invalid path '"+u+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var $o=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Yu={};function Go(u){return $o.exec(u).slice(1)}Yu.parse=function(u){if(typeof u!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof u);var e=Go(u);if(!e||e.length!==5)throw new TypeError("Invalid path '"+u+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Io?Ze.exports=Xu.parse:Ze.exports=Yu.parse;Ze.exports.posix=Yu.parse;Ze.exports.win32=Xu.parse});var er=m((Qs,Ct)=>{var ht=P("path"),dt=ht.parse||Dt(),pt=function(e,r){var t="/";/^([A-Za-z]:)/.test(e)?t="":/^\\\\/.test(e)&&(t="\\\\");for(var n=[e],o=dt(e);o.dir!==n[n.length-1];)n.push(o.dir),o=dt(o.dir);return n.reduce(function(i,s){return i.concat(r.map(function(a){return ht.resolve(t,s,a)}))},[])};Ct.exports=function(e,r,t){var n=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(t,e,function(){return pt(e,n)},r);var o=pt(e,n);return r&&r.paths?o.concat(r.paths):o}});var ur=m((Zs,vt)=>{vt.exports=function(u,e){return e||{}}});var At=m((Xs,Ft)=>{"use strict";var zo="Function.prototype.bind called on incompatible ",Jo=Object.prototype.toString,Ko=Math.max,Vo="[object Function]",gt=function(e,r){for(var t=[],n=0;n<e.length;n+=1)t[n]=e[n];for(var o=0;o<r.length;o+=1)t[o+e.length]=r[o];return t},Wo=function(e,r){for(var t=[],n=r||0,o=0;n<e.length;n+=1,o+=1)t[o]=e[n];return t},Ho=function(u,e){for(var r="",t=0;t<u.length;t+=1)r+=u[t],t+1<u.length&&(r+=e);return r};Ft.exports=function(e){var r=this;if(typeof r!="function"||Jo.apply(r)!==Vo)throw new TypeError(zo+r);for(var t=Wo(arguments,1),n,o=function(){if(this instanceof n){var f=r.apply(this,gt(t,arguments));return Object(f)===f?f:this}return r.apply(e,gt(t,arguments))},i=Ko(0,r.length-t.length),s=[],a=0;a<i;a++)s[a]="$"+a;if(n=Function("binder","return function ("+Ho(s,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var c=function(){};c.prototype=r.prototype,n.prototype=new c,c.prototype=null}return n}});var mt=m((Ys,Et)=>{"use strict";var Qo=At();Et.exports=Function.prototype.bind||Qo});var _t=m((ea,yt)=>{"use strict";var Zo=Function.prototype.call,Xo=Object.prototype.hasOwnProperty,Yo=mt();yt.exports=Yo.call(Zo,Xo)});var Bt=m((ua,ei)=>{ei.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Xe=m((ra,bt)=>{"use strict";var ui=_t();function ri(u,e){for(var r=u.split("."),t=e.split(" "),n=t.length>1?t[0]:"=",o=(t.length>1?t[1]:t[0]).split("."),i=0;i<3;++i){var s=parseInt(r[i]||0,10),a=parseInt(o[i]||0,10);if(s!==a)return n==="<"?s<a:n===">="?s>=a:!1}return n===">="}function St(u,e){var r=e.split(/ ?&& ?/);if(r.length===0)return!1;for(var t=0;t<r.length;++t)if(!ri(u,r[t]))return!1;return!0}function ti(u,e){if(typeof e=="boolean")return e;var r=typeof u>"u"?process.versions&&process.versions.node:u;if(typeof r!="string")throw new TypeError(typeof u>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var t=0;t<e.length;++t)if(St(r,e[t]))return!0;return!1}return St(r,e)}var wt=Bt();bt.exports=function(e,r){return ui(wt,e)&&ti(r,wt[e])}});var Lt=m((ta,Mt)=>{var be=P("fs"),ni=Qu(),z=P("path"),oi=Zu(),ii=er(),si=ur(),ai=Xe(),ci=process.platform!=="win32"&&be.realpath&&typeof be.realpath.native=="function"?be.realpath.native:be.realpath,Ot=ni(),li=function(){return[z.join(Ot,".node_modules"),z.join(Ot,".node_libraries")]},fi=function(e,r){be.stat(e,function(t,n){return t?t.code==="ENOENT"||t.code==="ENOTDIR"?r(null,!1):r(t):r(null,n.isFile()||n.isFIFO())})},Di=function(e,r){be.stat(e,function(t,n){return t?t.code==="ENOENT"||t.code==="ENOTDIR"?r(null,!1):r(t):r(null,n.isDirectory())})},di=function(e,r){ci(e,function(t,n){t&&t.code!=="ENOENT"?r(t):r(null,t?e:n)})},Ye=function(e,r,t,n){t&&t.preserveSymlinks===!1?e(r,n):n(null,r)},pi=function(e,r,t){e(r,function(n,o){if(n)t(n);else try{var i=JSON.parse(o);t(null,i)}catch{t(null)}})},hi=function(e,r,t){for(var n=ii(r,t,e),o=0;o<n.length;o++)n[o]=z.join(n[o],e);return n};Mt.exports=function(e,r,t){var n=t,o=r;if(typeof r=="function"&&(n=o,o={}),typeof e!="string"){var i=new TypeError("Path must be a string.");return process.nextTick(function(){n(i)})}o=si(e,o);var s=o.isFile||fi,a=o.isDirectory||Di,c=o.readFile||be.readFile,f=o.realpath||di,p=o.readPackage||pi;if(o.readFile&&o.readPackage){var D=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){n(D)})}var h=o.packageIterator,S=o.extensions||[".js"],v=o.includeCoreModules!==!1,w=o.basedir||z.dirname(oi()),d=o.filename||w;o.paths=o.paths||li();var L=z.resolve(w);Ye(f,L,o,function(A,O){A?n(A):g(O)});var E;function g(A){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))E=z.resolve(A,e),(e==="."||e===".."||e.slice(-1)==="/")&&(E+="/"),/\/$/.test(e)&&E===A?j(E,o.package,y):N(E,o.package,y);else{if(v&&ai(e))return n(null,e);G(e,A,function(O,U,x){if(O)n(O);else{if(U)return Ye(f,U,o,function(te,$){te?n(te):n(null,$,x)});var I=new Error("Cannot find module '"+e+"' from '"+d+"'");I.code="MODULE_NOT_FOUND",n(I)}})}}function y(A,O,U){A?n(A):O?n(null,O,U):j(E,function(x,I,te){if(x)n(x);else if(I)Ye(f,I,o,function(k,Y){k?n(k):n(null,Y,te)});else{var $=new Error("Cannot find module '"+e+"' from '"+d+"'");$.code="MODULE_NOT_FOUND",n($)}})}function N(A,O,U){var x=O,I=U;typeof x=="function"&&(I=x,x=void 0);var te=[""].concat(S);$(te,A,x);function $(k,Y,De){if(k.length===0)return I(null,void 0,De);var _e=Y+k[0],ce=De;ce?H(null,ce):F(z.dirname(_e),H);function H(ge,Ne,de){if(ce=Ne,ge)return I(ge);if(de&&ce&&o.pathFilter){var cu=z.relative(de,_e),lu=cu.slice(0,cu.length-k[0].length),ze=o.pathFilter(ce,Y,lu);if(ze)return $([""].concat(S.slice()),z.resolve(de,ze),ce)}s(_e,au)}function au(ge,Ne){if(ge)return I(ge);if(Ne)return I(null,_e,ce);$(k.slice(1),Y,ce)}}}function F(A,O){if(A===""||A==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(A)||/[/\\]node_modules[/\\]*$/.test(A))return O(null);Ye(f,A,o,function(U,x){if(U)return F(z.dirname(A),O);var I=z.join(x,"package.json");s(I,function(te,$){if(!$)return F(z.dirname(A),O);p(c,I,function(k,Y){k&&O(k);var De=Y;De&&o.packageFilter&&(De=o.packageFilter(De,I)),O(null,De,A)})})})}function j(A,O,U){var x=U,I=O;typeof I=="function"&&(x=I,I=o.package),Ye(f,A,o,function(te,$){if(te)return x(te);var k=z.join($,"package.json");s(k,function(Y,De){if(Y)return x(Y);if(!De)return N(z.join(A,"index"),I,x);p(c,k,function(_e,ce){if(_e)return x(_e);var H=ce;if(H&&o.packageFilter&&(H=o.packageFilter(H,k)),H&&H.main){if(typeof H.main!="string"){var au=new TypeError("package \u201C"+H.name+"\u201D `main` must be a string");return au.code="INVALID_PACKAGE_MAIN",x(au)}(H.main==="."||H.main==="./")&&(H.main="index"),N(z.resolve(A,H.main),H,function(ge,Ne,de){if(ge)return x(ge);if(Ne)return x(null,Ne,de);if(!de)return N(z.join(A,"index"),de,x);var cu=z.resolve(A,de.main);j(cu,de,function(lu,ze,Br){if(lu)return x(lu);if(ze)return x(null,ze,Br);N(z.join(A,"index"),Br,x)})});return}N(z.join(A,"/index"),H,x)})})})}function b(A,O){if(O.length===0)return A(null,void 0);var U=O[0];a(z.dirname(U),x);function x($,k){if($)return A($);if(!k)return b(A,O.slice(1));N(U,o.package,I)}function I($,k,Y){if($)return A($);if(k)return A(null,k,Y);j(U,o.package,te)}function te($,k,Y){if($)return A($);if(k)return A(null,k,Y);b(A,O.slice(1))}}function G(A,O,U){var x=function(){return hi(A,O,o)};b(U,h?h(A,O,x,o):x())}}});var Pt=m((na,Ci)=>{Ci.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Rt=m((oa,jt)=>{"use strict";var vi=Xe(),xt=Pt(),Nt={};for(Au in xt)Object.prototype.hasOwnProperty.call(xt,Au)&&(Nt[Au]=vi(Au));var Au;jt.exports=Nt});var qt=m((ia,Tt)=>{var gi=Xe();Tt.exports=function(e){return gi(e)}});var Ut=m((sa,kt)=>{var Fi=Xe(),Oe=P("fs"),Q=P("path"),Ai=Qu(),Ei=Zu(),mi=er(),yi=ur(),_i=process.platform!=="win32"&&Oe.realpathSync&&typeof Oe.realpathSync.native=="function"?Oe.realpathSync.native:Oe.realpathSync,It=Ai(),Bi=function(){return[Q.join(It,".node_modules"),Q.join(It,".node_libraries")]},Si=function(e){try{var r=Oe.statSync(e,{throwIfNoEntry:!1})}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return!1;throw t}return!!r&&(r.isFile()||r.isFIFO())},wi=function(e){try{var r=Oe.statSync(e,{throwIfNoEntry:!1})}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return!1;throw t}return!!r&&r.isDirectory()},bi=function(e){try{return _i(e)}catch(r){if(r.code!=="ENOENT")throw r}return e},eu=function(e,r,t){return t&&t.preserveSymlinks===!1?e(r):r},Oi=function(e,r){var t=e(r);try{var n=JSON.parse(t);return n}catch{}},Mi=function(e,r,t){for(var n=mi(r,t,e),o=0;o<n.length;o++)n[o]=Q.join(n[o],e);return n};kt.exports=function(e,r){if(typeof e!="string")throw new TypeError("Path must be a string.");var t=yi(e,r),n=t.isFile||Si,o=t.readFileSync||Oe.readFileSync,i=t.isDirectory||wi,s=t.realpathSync||bi,a=t.readPackageSync||Oi;if(t.readFileSync&&t.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var c=t.packageIterator,f=t.extensions||[".js"],p=t.includeCoreModules!==!1,D=t.basedir||Q.dirname(Ei()),h=t.filename||D;t.paths=t.paths||Bi();var S=eu(s,Q.resolve(D),t);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var v=Q.resolve(S,e);(e==="."||e===".."||e.slice(-1)==="/")&&(v+="/");var w=E(v)||y(v);if(w)return eu(s,w,t)}else{if(p&&Fi(e))return e;var d=N(e,S);if(d)return eu(s,d,t)}var L=new Error("Cannot find module '"+e+"' from '"+h+"'");throw L.code="MODULE_NOT_FOUND",L;function E(F){var j=g(Q.dirname(F));if(j&&j.dir&&j.pkg&&t.pathFilter){var b=Q.relative(j.dir,F),G=t.pathFilter(j.pkg,F,b);G&&(F=Q.resolve(j.dir,G))}if(n(F))return F;for(var A=0;A<f.length;A++){var O=F+f[A];if(n(O))return O}}function g(F){if(!(F===""||F==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(F))&&!/[/\\]node_modules[/\\]*$/.test(F)){var j=Q.join(eu(s,F,t),"package.json");if(!n(j))return g(Q.dirname(F));var b=a(o,j);return b&&t.packageFilter&&(b=t.packageFilter(b,F)),{pkg:b,dir:F}}}function y(F){var j=Q.join(eu(s,F,t),"/package.json");if(n(j)){try{var b=a(o,j)}catch{}if(b&&t.packageFilter&&(b=t.packageFilter(b,F)),b&&b.main){if(typeof b.main!="string"){var G=new TypeError("package \u201C"+b.name+"\u201D `main` must be a string");throw G.code="INVALID_PACKAGE_MAIN",G}(b.main==="."||b.main==="./")&&(b.main="index");try{var A=E(Q.resolve(F,b.main));if(A)return A;var O=y(Q.resolve(F,b.main));if(O)return O}catch{}}}return E(Q.join(F,"/index"))}function N(F,j){for(var b=function(){return Mi(F,j,t)},G=c?c(F,j,b,t):b(),A=0;A<G.length;A++){var O=G[A];if(i(Q.dirname(O))){var U=E(O);if(U)return U;var x=y(O);if(x)return x}}}}});var Gt=m((aa,$t)=>{var Eu=Lt();Eu.core=Rt();Eu.isCore=qt();Eu.sync=Ut();$t.exports=Eu});var un=m(rr=>{var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");rr.encode=function(u){if(0<=u&&u<en.length)return en[u];throw new TypeError("Must be between 0 and 63: "+u)};rr.decode=function(u){var e=65,r=90,t=97,n=122,o=48,i=57,s=43,a=47,c=26,f=52;return e<=u&&u<=r?u-e:t<=u&&u<=n?u-t+c:o<=u&&u<=i?u-o+f:u==s?62:u==a?63:-1}});var or=m(nr=>{var rn=un(),tr=5,tn=1<<tr,nn=tn-1,on=tn;function ji(u){return u<0?(-u<<1)+1:(u<<1)+0}function Ri(u){var e=(u&1)===1,r=u>>1;return e?-r:r}nr.encode=function(e){var r="",t,n=ji(e);do t=n&nn,n>>>=tr,n>0&&(t|=on),r+=rn.encode(t);while(n>0);return r};nr.decode=function(e,r,t){var n=e.length,o=0,i=0,s,a;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(a=rn.decode(e.charCodeAt(r++)),a===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));s=!!(a&on),a&=nn,o=o+(a<<i),i+=tr}while(s);t.value=Ri(o),t.rest=r}});var Ue=m(Z=>{function Ti(u,e,r){if(e in u)return u[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}Z.getArg=Ti;var sn=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,qi=/^data:.+\,.+$/;function tu(u){var e=u.match(sn);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Z.urlParse=tu;function Ie(u){var e="";return u.scheme&&(e+=u.scheme+":"),e+="//",u.auth&&(e+=u.auth+"@"),u.host&&(e+=u.host),u.port&&(e+=":"+u.port),u.path&&(e+=u.path),e}Z.urlGenerate=Ie;function ir(u){var e=u,r=tu(u);if(r){if(!r.path)return u;e=r.path}for(var t=Z.isAbsolute(e),n=e.split(/\/+/),o,i=0,s=n.length-1;s>=0;s--)o=n[s],o==="."?n.splice(s,1):o===".."?i++:i>0&&(o===""?(n.splice(s+1,i),i=0):(n.splice(s,2),i--));return e=n.join("/"),e===""&&(e=t?"/":"."),r?(r.path=e,Ie(r)):e}Z.normalize=ir;function an(u,e){u===""&&(u="."),e===""&&(e=".");var r=tu(e),t=tu(u);if(t&&(u=t.path||"/"),r&&!r.scheme)return t&&(r.scheme=t.scheme),Ie(r);if(r||e.match(qi))return e;if(t&&!t.host&&!t.path)return t.host=e,Ie(t);var n=e.charAt(0)==="/"?e:ir(u.replace(/\/+$/,"")+"/"+e);return t?(t.path=n,Ie(t)):n}Z.join=an;Z.isAbsolute=function(u){return u.charAt(0)==="/"||sn.test(u)};function Ii(u,e){u===""&&(u="."),u=u.replace(/\/$/,"");for(var r=0;e.indexOf(u+"/")!==0;){var t=u.lastIndexOf("/");if(t<0||(u=u.slice(0,t),u.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(u.length+1)}Z.relative=Ii;var cn=function(){var u=Object.create(null);return!("__proto__"in u)}();function ln(u){return u}function ki(u){return fn(u)?"$"+u:u}Z.toSetString=cn?ln:ki;function Ui(u){return fn(u)?u.slice(1):u}Z.fromSetString=cn?ln:Ui;function fn(u){if(!u)return!1;var e=u.length;if(e<9||u.charCodeAt(e-1)!==95||u.charCodeAt(e-2)!==95||u.charCodeAt(e-3)!==111||u.charCodeAt(e-4)!==116||u.charCodeAt(e-5)!==111||u.charCodeAt(e-6)!==114||u.charCodeAt(e-7)!==112||u.charCodeAt(e-8)!==95||u.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(u.charCodeAt(r)!==36)return!1;return!0}function $i(u,e,r){var t=ke(u.source,e.source);return t!==0||(t=u.originalLine-e.originalLine,t!==0)||(t=u.originalColumn-e.originalColumn,t!==0||r)||(t=u.generatedColumn-e.generatedColumn,t!==0)||(t=u.generatedLine-e.generatedLine,t!==0)?t:ke(u.name,e.name)}Z.compareByOriginalPositions=$i;function Gi(u,e,r){var t=u.generatedLine-e.generatedLine;return t!==0||(t=u.generatedColumn-e.generatedColumn,t!==0||r)||(t=ke(u.source,e.source),t!==0)||(t=u.originalLine-e.originalLine,t!==0)||(t=u.originalColumn-e.originalColumn,t!==0)?t:ke(u.name,e.name)}Z.compareByGeneratedPositionsDeflated=Gi;function ke(u,e){return u===e?0:u===null?1:e===null?-1:u>e?1:-1}function zi(u,e){var r=u.generatedLine-e.generatedLine;return r!==0||(r=u.generatedColumn-e.generatedColumn,r!==0)||(r=ke(u.source,e.source),r!==0)||(r=u.originalLine-e.originalLine,r!==0)||(r=u.originalColumn-e.originalColumn,r!==0)?r:ke(u.name,e.name)}Z.compareByGeneratedPositionsInflated=zi;function Ji(u){return JSON.parse(u.replace(/^\)]}'[^\n]*\n/,""))}Z.parseSourceMapInput=Ji;function Ki(u,e,r){if(e=e||"",u&&(u[u.length-1]!=="/"&&e[0]!=="/"&&(u+="/"),e=u+e),r){var t=tu(r);if(!t)throw new Error("sourceMapURL could not be parsed");if(t.path){var n=t.path.lastIndexOf("/");n>=0&&(t.path=t.path.substring(0,n+1))}e=an(Ie(t),e)}return ir(e)}Z.computeSourceURL=Ki});var cr=m(Dn=>{var sr=Ue(),ar=Object.prototype.hasOwnProperty,Me=typeof Map<"u";function ve(){this._array=[],this._set=Me?new Map:Object.create(null)}ve.fromArray=function(e,r){for(var t=new ve,n=0,o=e.length;n<o;n++)t.add(e[n],r);return t};ve.prototype.size=function(){return Me?this._set.size:Object.getOwnPropertyNames(this._set).length};ve.prototype.add=function(e,r){var t=Me?e:sr.toSetString(e),n=Me?this.has(e):ar.call(this._set,t),o=this._array.length;(!n||r)&&this._array.push(e),n||(Me?this._set.set(e,o):this._set[t]=o)};ve.prototype.has=function(e){if(Me)return this._set.has(e);var r=sr.toSetString(e);return ar.call(this._set,r)};ve.prototype.indexOf=function(e){if(Me){var r=this._set.get(e);if(r>=0)return r}else{var t=sr.toSetString(e);if(ar.call(this._set,t))return this._set[t]}throw new Error('"'+e+'" is not in the set.')};ve.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ve.prototype.toArray=function(){return this._array.slice()};Dn.ArraySet=ve});var hn=m(pn=>{var dn=Ue();function Vi(u,e){var r=u.generatedLine,t=e.generatedLine,n=u.generatedColumn,o=e.generatedColumn;return t>r||t==r&&o>=n||dn.compareByGeneratedPositionsInflated(u,e)<=0}function _u(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}_u.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};_u.prototype.add=function(e){Vi(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};_u.prototype.toArray=function(){return this._sorted||(this._array.sort(dn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};pn.MappingList=_u});var lr=m(Cn=>{var nu=or(),J=Ue(),Bu=cr().ArraySet,Wi=hn().MappingList;function oe(u){u||(u={}),this._file=J.getArg(u,"file",null),this._sourceRoot=J.getArg(u,"sourceRoot",null),this._skipValidation=J.getArg(u,"skipValidation",!1),this._sources=new Bu,this._names=new Bu,this._mappings=new Wi,this._sourcesContents=null}oe.prototype._version=3;oe.fromSourceMap=function(e){var r=e.sourceRoot,t=new oe({file:e.file,sourceRoot:r});return e.eachMapping(function(n){var o={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(o.source=n.source,r!=null&&(o.source=J.relative(r,o.source)),o.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(o.name=n.name)),t.addMapping(o)}),e.sources.forEach(function(n){var o=n;r!==null&&(o=J.relative(r,n)),t._sources.has(o)||t._sources.add(o);var i=e.sourceContentFor(n);i!=null&&t.setSourceContent(n,i)}),t};oe.prototype.addMapping=function(e){var r=J.getArg(e,"generated"),t=J.getArg(e,"original",null),n=J.getArg(e,"source",null),o=J.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,t,n,o),n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:t!=null&&t.line,originalColumn:t!=null&&t.column,source:n,name:o})};oe.prototype.setSourceContent=function(e,r){var t=e;this._sourceRoot!=null&&(t=J.relative(this._sourceRoot,t)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[J.toSetString(t)]=r):this._sourcesContents&&(delete this._sourcesContents[J.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};oe.prototype.applySourceMap=function(e,r,t){var n=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=e.file}var o=this._sourceRoot;o!=null&&(n=J.relative(o,n));var i=new Bu,s=new Bu;this._mappings.unsortedForEach(function(a){if(a.source===n&&a.originalLine!=null){var c=e.originalPositionFor({line:a.originalLine,column:a.originalColumn});c.source!=null&&(a.source=c.source,t!=null&&(a.source=J.join(t,a.source)),o!=null&&(a.source=J.relative(o,a.source)),a.originalLine=c.line,a.originalColumn=c.column,c.name!=null&&(a.name=c.name))}var f=a.source;f!=null&&!i.has(f)&&i.add(f);var p=a.name;p!=null&&!s.has(p)&&s.add(p)},this),this._sources=i,this._names=s,e.sources.forEach(function(a){var c=e.sourceContentFor(a);c!=null&&(t!=null&&(a=J.join(t,a)),o!=null&&(a=J.relative(o,a)),this.setSourceContent(a,c))},this)};oe.prototype._validateMapping=function(e,r,t,n){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!t&&!n)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&t)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:r,name:n}))}};oe.prototype._serializeMappings=function(){for(var e=0,r=1,t=0,n=0,o=0,i=0,s="",a,c,f,p,D=this._mappings.toArray(),h=0,S=D.length;h<S;h++){if(c=D[h],a="",c.generatedLine!==r)for(e=0;c.generatedLine!==r;)a+=";",r++;else if(h>0){if(!J.compareByGeneratedPositionsInflated(c,D[h-1]))continue;a+=","}a+=nu.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(p=this._sources.indexOf(c.source),a+=nu.encode(p-i),i=p,a+=nu.encode(c.originalLine-1-n),n=c.originalLine-1,a+=nu.encode(c.originalColumn-t),t=c.originalColumn,c.name!=null&&(f=this._names.indexOf(c.name),a+=nu.encode(f-o),o=f)),s+=a}return s};oe.prototype._generateSourcesContent=function(e,r){return e.map(function(t){if(!this._sourcesContents)return null;r!=null&&(t=J.relative(r,t));var n=J.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};oe.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};oe.prototype.toString=function(){return JSON.stringify(this.toJSON())};Cn.SourceMapGenerator=oe});var vn=m(Le=>{Le.GREATEST_LOWER_BOUND=1;Le.LEAST_UPPER_BOUND=2;function fr(u,e,r,t,n,o){var i=Math.floor((e-u)/2)+u,s=n(r,t[i],!0);return s===0?i:s>0?e-i>1?fr(i,e,r,t,n,o):o==Le.LEAST_UPPER_BOUND?e<t.length?e:-1:i:i-u>1?fr(u,i,r,t,n,o):o==Le.LEAST_UPPER_BOUND?i:u<0?-1:u}Le.search=function(e,r,t,n){if(r.length===0)return-1;var o=fr(-1,r.length,e,r,t,n||Le.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&t(r[o],r[o-1],!0)===0;)--o;return o}});var Fn=m(gn=>{function Dr(u,e,r){var t=u[e];u[e]=u[r],u[r]=t}function Hi(u,e){return Math.round(u+Math.random()*(e-u))}function dr(u,e,r,t){if(r<t){var n=Hi(r,t),o=r-1;Dr(u,n,t);for(var i=u[t],s=r;s<t;s++)e(u[s],i)<=0&&(o+=1,Dr(u,o,s));Dr(u,o+1,s);var a=o+1;dr(u,e,r,a-1),dr(u,e,a+1,t)}}gn.quickSort=function(u,e){dr(u,e,0,u.length-1)}});var En=m(Su=>{var C=Ue(),pr=vn(),$e=cr().ArraySet,Qi=or(),ou=Fn().quickSort;function q(u,e){var r=u;return typeof u=="string"&&(r=C.parseSourceMapInput(u)),r.sections!=null?new ae(r,e):new W(r,e)}q.fromSourceMap=function(u,e){return W.fromSourceMap(u,e)};q.prototype._version=3;q.prototype.__generatedMappings=null;Object.defineProperty(q.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});q.prototype.__originalMappings=null;Object.defineProperty(q.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});q.prototype._charIsMappingSeparator=function(e,r){var t=e.charAt(r);return t===";"||t===","};q.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};q.GENERATED_ORDER=1;q.ORIGINAL_ORDER=2;q.GREATEST_LOWER_BOUND=1;q.LEAST_UPPER_BOUND=2;q.prototype.eachMapping=function(e,r,t){var n=r||null,o=t||q.GENERATED_ORDER,i;switch(o){case q.GENERATED_ORDER:i=this._generatedMappings;break;case q.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;i.map(function(a){var c=a.source===null?null:this._sources.at(a.source);return c=C.computeSourceURL(s,c,this._sourceMapURL),{source:c,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name===null?null:this._names.at(a.name)}},this).forEach(e,n)};q.prototype.allGeneratedPositionsFor=function(e){var r=C.getArg(e,"line"),t={source:C.getArg(e,"source"),originalLine:r,originalColumn:C.getArg(e,"column",0)};if(t.source=this._findSourceIndex(t.source),t.source<0)return[];var n=[],o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",C.compareByOriginalPositions,pr.LEAST_UPPER_BOUND);if(o>=0){var i=this._originalMappings[o];if(e.column===void 0)for(var s=i.originalLine;i&&i.originalLine===s;)n.push({line:C.getArg(i,"generatedLine",null),column:C.getArg(i,"generatedColumn",null),lastColumn:C.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var a=i.originalColumn;i&&i.originalLine===r&&i.originalColumn==a;)n.push({line:C.getArg(i,"generatedLine",null),column:C.getArg(i,"generatedColumn",null),lastColumn:C.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return n};Su.SourceMapConsumer=q;function W(u,e){var r=u;typeof u=="string"&&(r=C.parseSourceMapInput(u));var t=C.getArg(r,"version"),n=C.getArg(r,"sources"),o=C.getArg(r,"names",[]),i=C.getArg(r,"sourceRoot",null),s=C.getArg(r,"sourcesContent",null),a=C.getArg(r,"mappings"),c=C.getArg(r,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);i&&(i=C.normalize(i)),n=n.map(String).map(C.normalize).map(function(f){return i&&C.isAbsolute(i)&&C.isAbsolute(f)?C.relative(i,f):f}),this._names=$e.fromArray(o.map(String),!0),this._sources=$e.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(f){return C.computeSourceURL(i,f,e)}),this.sourceRoot=i,this.sourcesContent=s,this._mappings=a,this._sourceMapURL=e,this.file=c}W.prototype=Object.create(q.prototype);W.prototype.consumer=q;W.prototype._findSourceIndex=function(u){var e=u;if(this.sourceRoot!=null&&(e=C.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==u)return r;return-1};W.fromSourceMap=function(e,r){var t=Object.create(W.prototype),n=t._names=$e.fromArray(e._names.toArray(),!0),o=t._sources=$e.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t._sourceMapURL=r,t._absoluteSources=t._sources.toArray().map(function(h){return C.computeSourceURL(t.sourceRoot,h,r)});for(var i=e._mappings.toArray().slice(),s=t.__generatedMappings=[],a=t.__originalMappings=[],c=0,f=i.length;c<f;c++){var p=i[c],D=new An;D.generatedLine=p.generatedLine,D.generatedColumn=p.generatedColumn,p.source&&(D.source=o.indexOf(p.source),D.originalLine=p.originalLine,D.originalColumn=p.originalColumn,p.name&&(D.name=n.indexOf(p.name)),a.push(D)),s.push(D)}return ou(t.__originalMappings,C.compareByOriginalPositions),t};W.prototype._version=3;Object.defineProperty(W.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function An(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}W.prototype._parseMappings=function(e,r){for(var t=1,n=0,o=0,i=0,s=0,a=0,c=e.length,f=0,p={},D={},h=[],S=[],v,w,d,L,E;f<c;)if(e.charAt(f)===";")t++,f++,n=0;else if(e.charAt(f)===",")f++;else{for(v=new An,v.generatedLine=t,L=f;L<c&&!this._charIsMappingSeparator(e,L);L++);if(w=e.slice(f,L),d=p[w],d)f+=w.length;else{for(d=[];f<L;)Qi.decode(e,f,D),E=D.value,f=D.rest,d.push(E);if(d.length===2)throw new Error("Found a source, but no line and column");if(d.length===3)throw new Error("Found a source and line, but no column");p[w]=d}v.generatedColumn=n+d[0],n=v.generatedColumn,d.length>1&&(v.source=s+d[1],s+=d[1],v.originalLine=o+d[2],o=v.originalLine,v.originalLine+=1,v.originalColumn=i+d[3],i=v.originalColumn,d.length>4&&(v.name=a+d[4],a+=d[4])),S.push(v),typeof v.originalLine=="number"&&h.push(v)}ou(S,C.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,ou(h,C.compareByOriginalPositions),this.__originalMappings=h};W.prototype._findMapping=function(e,r,t,n,o,i){if(e[t]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[t]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return pr.search(e,r,o,i)};W.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var t=this._generatedMappings[e+1];if(r.generatedLine===t.generatedLine){r.lastGeneratedColumn=t.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};W.prototype.originalPositionFor=function(e){var r={generatedLine:C.getArg(e,"line"),generatedColumn:C.getArg(e,"column")},t=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",C.compareByGeneratedPositionsDeflated,C.getArg(e,"bias",q.GREATEST_LOWER_BOUND));if(t>=0){var n=this._generatedMappings[t];if(n.generatedLine===r.generatedLine){var o=C.getArg(n,"source",null);o!==null&&(o=this._sources.at(o),o=C.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var i=C.getArg(n,"name",null);return i!==null&&(i=this._names.at(i)),{source:o,line:C.getArg(n,"originalLine",null),column:C.getArg(n,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}};W.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};W.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];var n=e;this.sourceRoot!=null&&(n=C.relative(this.sourceRoot,n));var o;if(this.sourceRoot!=null&&(o=C.urlParse(this.sourceRoot))){var i=n.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!o.path||o.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(r)return null;throw new Error('"'+n+'" is not in the SourceMap.')};W.prototype.generatedPositionFor=function(e){var r=C.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var t={source:r,originalLine:C.getArg(e,"line"),originalColumn:C.getArg(e,"column")},n=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",C.compareByOriginalPositions,C.getArg(e,"bias",q.GREATEST_LOWER_BOUND));if(n>=0){var o=this._originalMappings[n];if(o.source===t.source)return{line:C.getArg(o,"generatedLine",null),column:C.getArg(o,"generatedColumn",null),lastColumn:C.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Su.BasicSourceMapConsumer=W;function ae(u,e){var r=u;typeof u=="string"&&(r=C.parseSourceMapInput(u));var t=C.getArg(r,"version"),n=C.getArg(r,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new $e,this._names=new $e;var o={line:-1,column:0};this._sections=n.map(function(i){if(i.url)throw new Error("Support for url field in sections not implemented.");var s=C.getArg(i,"offset"),a=C.getArg(s,"line"),c=C.getArg(s,"column");if(a<o.line||a===o.line&&c<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=s,{generatedOffset:{generatedLine:a+1,generatedColumn:c+1},consumer:new q(C.getArg(i,"map"),e)}})}ae.prototype=Object.create(q.prototype);ae.prototype.constructor=q;ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:function(){for(var u=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)u.push(this._sections[e].consumer.sources[r]);return u}});ae.prototype.originalPositionFor=function(e){var r={generatedLine:C.getArg(e,"line"),generatedColumn:C.getArg(e,"column")},t=pr.search(r,this._sections,function(o,i){var s=o.generatedLine-i.generatedOffset.generatedLine;return s||o.generatedColumn-i.generatedOffset.generatedColumn}),n=this._sections[t];return n?n.consumer.originalPositionFor({line:r.generatedLine-(n.generatedOffset.generatedLine-1),column:r.generatedColumn-(n.generatedOffset.generatedLine===r.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};ae.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};ae.prototype.sourceContentFor=function(e,r){for(var t=0;t<this._sections.length;t++){var n=this._sections[t],o=n.consumer.sourceContentFor(e,!0);if(o)return o}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};ae.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var t=this._sections[r];if(t.consumer._findSourceIndex(C.getArg(e,"source"))!==-1){var n=t.consumer.generatedPositionFor(e);if(n){var o={line:n.line+(t.generatedOffset.generatedLine-1),column:n.column+(t.generatedOffset.generatedLine===n.line?t.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};ae.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var t=0;t<this._sections.length;t++)for(var n=this._sections[t],o=n.consumer._generatedMappings,i=0;i<o.length;i++){var s=o[i],a=n.consumer._sources.at(s.source);a=C.computeSourceURL(n.consumer.sourceRoot,a,this._sourceMapURL),this._sources.add(a),a=this._sources.indexOf(a);var c=null;s.name&&(c=n.consumer._names.at(s.name),this._names.add(c),c=this._names.indexOf(c));var f={source:a,generatedLine:s.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(n.generatedOffset.generatedLine===s.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:c};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}ou(this.__generatedMappings,C.compareByGeneratedPositionsDeflated),ou(this.__originalMappings,C.compareByOriginalPositions)};Su.IndexedSourceMapConsumer=ae});var yn=m(mn=>{var Zi=lr().SourceMapGenerator,wu=Ue(),Xi=/(\r?\n)/,Yi=10,Ge="$$$isSourceNode$$$";function re(u,e,r,t,n){this.children=[],this.sourceContents={},this.line=u??null,this.column=e??null,this.source=r??null,this.name=n??null,this[Ge]=!0,t!=null&&this.add(t)}re.fromStringWithSourceMap=function(e,r,t){var n=new re,o=e.split(Xi),i=0,s=function(){var D=S(),h=S()||"";return D+h;function S(){return i<o.length?o[i++]:void 0}},a=1,c=0,f=null;return r.eachMapping(function(D){if(f!==null)if(a<D.generatedLine)p(f,s()),a++,c=0;else{var h=o[i]||"",S=h.substr(0,D.generatedColumn-c);o[i]=h.substr(D.generatedColumn-c),c=D.generatedColumn,p(f,S),f=D;return}for(;a<D.generatedLine;)n.add(s()),a++;if(c<D.generatedColumn){var h=o[i]||"";n.add(h.substr(0,D.generatedColumn)),o[i]=h.substr(D.generatedColumn),c=D.generatedColumn}f=D},this),i<o.length&&(f&&p(f,s()),n.add(o.splice(i).join(""))),r.sources.forEach(function(D){var h=r.sourceContentFor(D);h!=null&&(t!=null&&(D=wu.join(t,D)),n.setSourceContent(D,h))}),n;function p(D,h){if(D===null||D.source===void 0)n.add(h);else{var S=t?wu.join(t,D.source):D.source;n.add(new re(D.originalLine,D.originalColumn,S,h,D.name))}}};re.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Ge]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};re.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Ge]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};re.prototype.walk=function(e){for(var r,t=0,n=this.children.length;t<n;t++)r=this.children[t],r[Ge]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};re.prototype.join=function(e){var r,t,n=this.children.length;if(n>0){for(r=[],t=0;t<n-1;t++)r.push(this.children[t]),r.push(e);r.push(this.children[t]),this.children=r}return this};re.prototype.replaceRight=function(e,r){var t=this.children[this.children.length-1];return t[Ge]?t.replaceRight(e,r):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,r):this.children.push("".replace(e,r)),this};re.prototype.setSourceContent=function(e,r){this.sourceContents[wu.toSetString(e)]=r};re.prototype.walkSourceContents=function(e){for(var r=0,t=this.children.length;r<t;r++)this.children[r][Ge]&&this.children[r].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),r=0,t=n.length;r<t;r++)e(wu.fromSetString(n[r]),this.sourceContents[n[r]])};re.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};re.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},t=new Zi(e),n=!1,o=null,i=null,s=null,a=null;return this.walk(function(c,f){r.code+=c,f.source!==null&&f.line!==null&&f.column!==null?((o!==f.source||i!==f.line||s!==f.column||a!==f.name)&&t.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),o=f.source,i=f.line,s=f.column,a=f.name,n=!0):n&&(t.addMapping({generated:{line:r.line,column:r.column}}),o=null,n=!1);for(var p=0,D=c.length;p<D;p++)c.charCodeAt(p)===Yi?(r.line++,r.column=0,p+1===D?(o=null,n=!1):n&&t.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(c,f){t.setSourceContent(c,f)}),{code:r.code,map:t}};mn.SourceNode=re});var _n=m(bu=>{bu.SourceMapGenerator=lr().SourceMapGenerator;bu.SourceMapConsumer=En().SourceMapConsumer;bu.SourceNode=yn().SourceNode});var Sn=m((_a,Bn)=>{var es=Object.prototype.toString,hr=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function us(u){return es.call(u).slice(8,-1)==="ArrayBuffer"}function rs(u,e,r){e>>>=0;var t=u.byteLength-e;if(t<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=t;else if(r>>>=0,r>t)throw new RangeError("'length' is out of bounds");return hr?Buffer.from(u.slice(e,e+r)):new Buffer(new Uint8Array(u.slice(e,e+r)))}function ts(u,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return hr?Buffer.from(u,e):new Buffer(u,e)}function ns(u,e,r){if(typeof u=="number")throw new TypeError('"value" argument must not be a number');return us(u)?rs(u,e,r):typeof u=="string"?ts(u,e):hr?Buffer.from(u):new Buffer(u)}Bn.exports=ns});var Nn=m((xe,Fr)=>{var os=_n().SourceMapConsumer,Cr=P("path"),fe;try{fe=P("fs"),(!fe.existsSync||!fe.readFileSync)&&(fe=null)}catch{}var is=Sn();function wn(u,e){return u.require(e)}var bn=!1,On=!1,vr=!1,iu="auto",Pe={},su={},ss=/^data:application\/json[^,]+base64,/,Ee=[],me=[];function Ar(){return iu==="browser"?!0:iu==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function as(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function cs(){return typeof process=="object"&&process!==null?process.version:""}function ls(){if(typeof process=="object"&&process!==null)return process.stderr}function fs(u){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(u)}function Ou(u){return function(e){for(var r=0;r<u.length;r++){var t=u[r](e);if(t)return t}return null}}var Er=Ou(Ee);Ee.push(function(u){if(u=u.trim(),/^file:/.test(u)&&(u=u.replace(/file:\/\/\/(\w:)?/,function(t,n){return n?"":"/"})),u in Pe)return Pe[u];var e="";try{if(fe)fe.existsSync(u)&&(e=fe.readFileSync(u,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",u,!1),r.send(null),r.readyState===4&&r.status===200&&(e=r.responseText)}}catch{}return Pe[u]=e});function gr(u,e){if(!u)return e;var r=Cr.dirname(u),t=/^\w+:\/\/[^\/]*/.exec(r),n=t?t[0]:"",o=r.slice(n.length);return n&&/^\/\w\:/.test(o)?(n+="/",n+Cr.resolve(r.slice(n.length),e).replace(/\\/g,"/")):n+Cr.resolve(r.slice(n.length),e)}function Ds(u){var e;if(Ar())try{var r=new XMLHttpRequest;r.open("GET",u,!1),r.send(null),e=r.readyState===4?r.responseText:null;var t=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(t)return t}catch{}e=Er(u);for(var n=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,o,i;i=n.exec(e);)o=i;return o?o[1]:null}var mr=Ou(me);me.push(function(u){var e=Ds(u);if(!e)return null;var r;if(ss.test(e)){var t=e.slice(e.indexOf(",")+1);r=is(t,"base64").toString(),e=u}else e=gr(u,e),r=Er(e);return r?{url:e,map:r}:null});function yr(u){var e=su[u.source];if(!e){var r=mr(u.source);r?(e=su[u.source]={url:r.url,map:new os(r.map)},e.map.sourcesContent&&e.map.sources.forEach(function(n,o){var i=e.map.sourcesContent[o];if(i){var s=gr(e.url,n);Pe[s]=i}})):e=su[u.source]={url:null,map:null}}if(e&&e.map&&typeof e.map.originalPositionFor=="function"){var t=e.map.originalPositionFor(u);if(t.source!==null)return t.source=gr(e.url,t.source),t}return u}function Ln(u){var e=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(u);if(e){var r=yr({source:e[2],line:+e[3],column:e[4]-1});return"eval at "+e[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return e=/^eval at ([^(]+) \((.+)\)$/.exec(u),e?"eval at "+e[1]+" ("+Ln(e[2])+")":u}function ds(){var u,e="";if(this.isNative())e="native";else{u=this.getScriptNameOrSourceURL(),!u&&this.isEval()&&(e=this.getEvalOrigin(),e+=", "),u?e+=u:e+="<anonymous>";var r=this.getLineNumber();if(r!=null){e+=":"+r;var t=this.getColumnNumber();t&&(e+=":"+t)}}var n="",o=this.getFunctionName(),i=!0,s=this.isConstructor(),a=!(this.isToplevel()||s);if(a){var c=this.getTypeName();c==="[object Object]"&&(c="null");var f=this.getMethodName();o?(c&&o.indexOf(c)!=0&&(n+=c+"."),n+=o,f&&o.indexOf("."+f)!=o.length-f.length-1&&(n+=" [as "+f+"]")):n+=c+"."+(f||"<anonymous>")}else s?n+="new "+(o||"<anonymous>"):o?n+=o:(n+=e,i=!1);return i&&(n+=" ("+e+")"),n}function Mn(u){var e={};return Object.getOwnPropertyNames(Object.getPrototypeOf(u)).forEach(function(r){e[r]=/^(?:is|get)/.test(r)?function(){return u[r].call(u)}:u[r]}),e.toString=ds,e}function Pn(u,e){if(e===void 0&&(e={nextPosition:null,curPosition:null}),u.isNative())return e.curPosition=null,u;var r=u.getFileName()||u.getScriptNameOrSourceURL();if(r){var t=u.getLineNumber(),n=u.getColumnNumber()-1,o=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,i=o.test(cs())?0:62;t===1&&n>i&&!Ar()&&!u.isEval()&&(n-=i);var s=yr({source:r,line:t,column:n});e.curPosition=s,u=Mn(u);var a=u.getFunctionName;return u.getFunctionName=function(){return e.nextPosition==null?a():e.nextPosition.name||a()},u.getFileName=function(){return s.source},u.getLineNumber=function(){return s.line},u.getColumnNumber=function(){return s.column+1},u.getScriptNameOrSourceURL=function(){return s.source},u}var c=u.isEval()&&u.getEvalOrigin();return c&&(c=Ln(c),u=Mn(u),u.getEvalOrigin=function(){return c}),u}function ps(u,e){vr&&(Pe={},su={});for(var r=u.name||"Error",t=u.message||"",n=r+": "+t,o={nextPosition:null,curPosition:null},i=[],s=e.length-1;s>=0;s--)i.push(`
17
17
  at `+Pn(e[s],o)),o.nextPosition=o.curPosition;return o.curPosition=o.nextPosition=null,n+i.reverse().join("")}function xn(u){var e=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(u.stack);if(e){var r=e[1],t=+e[2],n=+e[3],o=Pe[r];if(!o&&fe&&fe.existsSync(r))try{o=fe.readFileSync(r,"utf8")}catch{o=""}if(o){var i=o.split(/(?:\r\n|\r|\n)/)[t-1];if(i)return r+":"+t+`
18
18
  `+i+`
19
- `+new Array(n).join(" ")+"^"}}return null}function hs(u){var e=xn(u),r=ls();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(u.stack),fs(1)}function Cs(){var u=process.emit;process.emit=function(e){if(e==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,t=this.listeners(e).length>0;if(r&&!t)return hs(arguments[1])}return u.apply(this,arguments)}}var vs=Ee.slice(0),gs=me.slice(0);xe.wrapCallSite=Pn;xe.getErrorSource=xn;xe.mapSourcePosition=yr;xe.retrieveSourceMap=mr;xe.install=function(u){if(u=u||{},u.environment&&(iu=u.environment,["node","browser","auto"].indexOf(iu)===-1))throw new Error("environment "+iu+" was unknown. Available options are {auto, browser, node}");if(u.retrieveFile&&(u.overrideRetrieveFile&&(Ee.length=0),Ee.unshift(u.retrieveFile)),u.retrieveSourceMap&&(u.overrideRetrieveSourceMap&&(me.length=0),me.unshift(u.retrieveSourceMap)),u.hookRequire&&!Ar()){var e=wn(Fr,"module"),r=e.prototype._compile;r.__sourceMapSupport||(e.prototype._compile=function(o,i){return Pe[i]=o,su[i]=void 0,r.call(this,o,i)},e.prototype._compile.__sourceMapSupport=!0)}if(vr||(vr="emptyCacheBetweenOperations"in u?u.emptyCacheBetweenOperations:!1),bn||(bn=!0,Error.prepareStackTrace=ps),!On){var t="handleUncaughtExceptions"in u?u.handleUncaughtExceptions:!0;try{var n=wn(Fr,"worker_threads");n.isMainThread===!1&&(t=!1)}catch{}t&&as()&&(On=!0,Cs())}};xe.resetRetrieveHandlers=function(){Ee.length=0,me.length=0,Ee=vs.slice(0),me=gs.slice(0),mr=Ou(me),Er=Ou(Ee)}});import Fs from"node:fs";import As from"node:module";import{extname as Es}from"node:path";import{pathToFileURL as _r,fileURLToPath as In}from"node:url";import{cwd as ms}from"node:process";import{transform as ys}from"esbuild";var Jt=Je(Or(),1),Kt=Je($u(),1),Vt=Je(ct(),1),Wt=Je(Gt(),1);import mu from"node:fs";import{dirname as uu,extname as Li,resolve as Pi}from"node:path";var ru=new Jt.default,zt={};function Ht(u){let e=mu.statSync(u,{throwIfNoEntry:!1});return e?e.isDirectory():!1}var yu=[".js",".jsx",".mjs",".cjs",".ts",".tsx",".mts",".cts",".json",".node"],xi=new Set(yu);function Ni(u){for(let e of[...yu,...yu.map(r=>`/index${r}`)]){let r=`${u}${e}`;if(mu.existsSync(r))return r}}function Qt(u,e){try{return Wt.default.sync(u,{basedir:uu(e),extensions:[...yu,".json"]})}catch{return}}function Zt(u,e){let r=Ht(e)?e:uu(e||process.cwd()),t=[ru.resolveSync(["tsconfig.json"],r),ru.resolveSync(["jsconfig.json"],r)];for(let n of t)if(n){let o=zt[n];if(!o){let i=Kt.default.loadTsconfig(n);if(i){let{baseUrl:s,paths:a}=i.compilerOptions??{};if(a){let c=s?Pi(uu(n),s):uu(n);o=(0,Vt.createMatchPath)(c,a),zt[n]=o}}}if(o){let i=o(u);if(i){if(xi.has(Li(i)))return i;let s=Ni(i);return s||i}}}}function Xt(u){let{data:e={}}=ru.loadSync(["package.json"],u);return e.type==="module"}function Yt(u){let e=Ht(u)?u:uu(u||process.cwd());for(let r of[ru.resolveSync(["tsconfig.json"],e),ru.resolveSync(["jsconfig.json"],e)])if(r&&mu.existsSync(r))return mu.readFileSync(r).toString("utf8")}var Rn=Je(Nn(),1);import jn from"node:fs";var ye;function Tn(){ye||(ye=new Map,Rn.default.install({handleUncaughtExceptions:!1,environment:"node",retrieveSourceMap(u){if(!ye)return null;if(ye.has(u))return{url:u,map:ye.get(u)};{let e=`${u}.map`;if(jn.existsSync(e)){let r=JSON.parse(jn.readFileSync(e).toString("utf8"));return ye.set(u,r),{url:u,map:r}}}return null}}))}function qn(u,e){ye&&ye.set(u,e)}Tn();var _s=_r(ms()+"/").href;async function ka(u,e,r){if(u==="@serverless/cloud")return r("@ampt/cloud",e);let{parentURL:t=_s}=e,n=In(t);try{return await r(u,e)}catch(o){if(!As.isBuiltin(u)){let i=Qt(u,n);if(i)return{shortCircuit:!0,url:_r(i).href};if(!u.startsWith("file://")){let s=Zt(u,n);if(s)return{shortCircuit:!0,url:_r(s).href}}}throw o}}var Bs={".jsx":{loader:"jsx",tsconfig:!0},".ts":{loader:"ts",tsconfig:!0},".tsx":{loader:"tsx",tsconfig:!0},".cts":{loader:"ts",esm:!1},".mts":{loader:"ts",esm:!0}};async function Ua(u,e,r){if(u.startsWith("file://")){let t=In(u),n=Es(t),o=Bs[n];if(o){let i=e.format==="module"||o.esm===!0||o.esm===void 0&&Xt(t);if(i){let s=o.tsconfig?Yt(t):void 0,a=Fs.readFileSync(t).toString("utf8"),{code:c,warnings:f,map:p}=await ys(a,{sourcefile:u,format:i?"esm":"cjs",sourcemap:!0,sourcesContent:!1,loader:o.loader,target:`node${process.version.slice(1)}`,tsconfigRaw:s});if(qn(u,p),f&&f.length>0)for(let D of f)console.log(D.location),console.log(D.text);return{shortCircuit:!0,source:c,format:i?"module":"commonjs"}}else return{shortCircuit:!0,format:"commonjs",source:null}}}return r(u,e)}export{Ua as load,ka as resolve};
19
+ `+new Array(n).join(" ")+"^"}}return null}function hs(u){var e=xn(u),r=ls();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(u.stack),fs(1)}function Cs(){var u=process.emit;process.emit=function(e){if(e==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,t=this.listeners(e).length>0;if(r&&!t)return hs(arguments[1])}return u.apply(this,arguments)}}var vs=Ee.slice(0),gs=me.slice(0);xe.wrapCallSite=Pn;xe.getErrorSource=xn;xe.mapSourcePosition=yr;xe.retrieveSourceMap=mr;xe.install=function(u){if(u=u||{},u.environment&&(iu=u.environment,["node","browser","auto"].indexOf(iu)===-1))throw new Error("environment "+iu+" was unknown. Available options are {auto, browser, node}");if(u.retrieveFile&&(u.overrideRetrieveFile&&(Ee.length=0),Ee.unshift(u.retrieveFile)),u.retrieveSourceMap&&(u.overrideRetrieveSourceMap&&(me.length=0),me.unshift(u.retrieveSourceMap)),u.hookRequire&&!Ar()){var e=wn(Fr,"module"),r=e.prototype._compile;r.__sourceMapSupport||(e.prototype._compile=function(o,i){return Pe[i]=o,su[i]=void 0,r.call(this,o,i)},e.prototype._compile.__sourceMapSupport=!0)}if(vr||(vr="emptyCacheBetweenOperations"in u?u.emptyCacheBetweenOperations:!1),bn||(bn=!0,Error.prepareStackTrace=ps),!On){var t="handleUncaughtExceptions"in u?u.handleUncaughtExceptions:!0;try{var n=wn(Fr,"worker_threads");n.isMainThread===!1&&(t=!1)}catch{}t&&as()&&(On=!0,Cs())}};xe.resetRetrieveHandlers=function(){Ee.length=0,me.length=0,Ee=vs.slice(0),me=gs.slice(0),mr=Ou(me),Er=Ou(Ee)}});import Fs from"node:fs";import As from"node:module";import{extname as Es}from"node:path";import{pathToFileURL as _r,fileURLToPath as In}from"node:url";import{cwd as ms}from"node:process";import{transform as ys}from"esbuild";var Jt=Je(Or(),1),Kt=Je($u(),1),Vt=Je(ct(),1),Wt=Je(Gt(),1);import mu from"node:fs";import{dirname as uu,extname as Li,resolve as Pi}from"node:path";var ru=new Jt.default,zt={};function Ht(u){let e=mu.statSync(u,{throwIfNoEntry:!1});return e?e.isDirectory():!1}var yu=[".js",".jsx",".mjs",".cjs",".ts",".tsx",".mts",".cts",".json",".node"],xi=new Set(yu);function Ni(u){for(let e of[...yu,...yu.map(r=>`/index${r}`)]){let r=`${u}${e}`;if(mu.existsSync(r))return r}}function Qt(u,e){try{return Wt.default.sync(u,{basedir:uu(e),extensions:[...yu,".json"]})}catch{return}}function Zt(u,e){let r=Ht(e)?e:uu(e||process.cwd()),t=[ru.resolveSync(["tsconfig.json"],r),ru.resolveSync(["jsconfig.json"],r)];for(let n of t)if(n){let o=zt[n];if(!o){let i=Kt.default.loadTsconfig(n);if(i){let{baseUrl:s,paths:a}=i.compilerOptions??{};if(a){let c=s?Pi(uu(n),s):uu(n);o=(0,Vt.createMatchPath)(c,a),zt[n]=o}}}if(o){let i=o(u);if(i){if(xi.has(Li(i)))return i;let s=Ni(i);return s||i}}}}function Xt(u){let{data:e={}}=ru.loadSync(["package.json"],u);return e.type==="module"}function Yt(u){let e=Ht(u)?u:uu(u||process.cwd());for(let r of[ru.resolveSync(["tsconfig.json"],e),ru.resolveSync(["jsconfig.json"],e)])if(r&&mu.existsSync(r))return mu.readFileSync(r).toString("utf8")}var Rn=Je(Nn(),1);import jn from"node:fs";var ye;function Tn(){ye||(ye=new Map,Rn.default.install({handleUncaughtExceptions:!1,environment:"node",retrieveSourceMap(u){if(!ye)return null;if(ye.has(u))return{url:u,map:ye.get(u)};{let e=`${u}.map`;if(jn.existsSync(e)){let r=JSON.parse(jn.readFileSync(e).toString("utf8"));return ye.set(u,r),{url:u,map:r}}}return null}}))}function qn(u,e){ye&&ye.set(u,e)}Tn();var _s=_r(ms()+"/").href;async function ka(u,e,r){if(u==="@serverless/cloud")return r("@ampt/cloud",e);let{parentURL:t=_s}=e,n=In(t);try{return await r(u,e)}catch(o){if(!As.isBuiltin(u)){let i=Qt(u,n);if(i)return{shortCircuit:!0,url:_r(i).href};if(!u.startsWith("file://")){let s=Zt(u,n);if(s)return{shortCircuit:!0,url:_r(s).href}}}throw o}}var Bs={".jsx":{loader:"jsx",tsconfig:!0},".ts":{loader:"ts",tsconfig:!0},".tsx":{loader:"tsx",tsconfig:!0},".cts":{loader:"ts",esm:!1},".mts":{loader:"ts",esm:!0}};async function Ua(u,e,r){if(u.startsWith("file://")){let t=In(u),n=Es(t),o=Bs[n];if(n===".node")return{shortCircuit:!0,format:"commonjs",source:null};if(o){let i=e.format==="module"||o.esm===!0||o.esm===void 0&&Xt(t);if(i){let s=o.tsconfig?Yt(t):void 0,a=Fs.readFileSync(t).toString("utf8"),{code:c,warnings:f,map:p}=await ys(a,{sourcefile:u,format:i?"esm":"cjs",sourcemap:!0,sourcesContent:!1,loader:o.loader,target:`node${process.version.slice(1)}`,tsconfigRaw:s});if(qn(u,p),f&&f.length>0)for(let D of f)console.log(D.location),console.log(D.text);return{shortCircuit:!0,source:c,format:i?"module":"commonjs"}}else return{shortCircuit:!0,format:"commonjs",source:null}}}return r(u,e)}export{Ua as load,ka as resolve};
20
20
  //# sourceMappingURL=esm-loader.mjs.map