tsdown-preset 0.0.0-alpha.0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export const test = () => {\n console.log('hello, rollup')\n console.log(new Date())\n}"],"mappings":";AAAA,MAAa,aAAa;AACtB,SAAQ,IAAI,gBAAgB;AAC5B,SAAQ,oBAAI,IAAI,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","names":["a","__cjs_require","__cjs_createRequire","picomatch","__require","process","defu","coerce","createDebug","enable$1","__require","module","__cjs_require","__cjs_createRequire","debug$3","debug$2","debug$1","process","debug","debug$1","debug","import_binding","import_binding","#evaluateAllLazyFields","bindingifySourcemap","import_binding","filter.include","filter.exclude","filter.code","filter.id","moduleType","filter.or","filter.moduleType","filter.and","import_binding","#inputOptions","#bundler","#build","#stopWorkers","global","process$1","#process","#sigListeners","#emitter","#hupSig","#originalProcessReallyExit","#originalProcessEmit","#loaded","#processEmit","#processReallyExit","import_binding","import_binding","n","a","r","s","i","c","o","t","__cjs_createRequire"],"sources":["../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.cjs","../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.mjs","../node_modules/.pnpm/tsdown@0.20.1_synckit@0.11.12_typescript@5.9.3/node_modules/tsdown/dist/logger-DwCm1t8D.mjs","../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/core.js","../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/node.js","../node_modules/.pnpm/import-without-cache@0.2.5/node_modules/import-without-cache/dist/index.mjs","../node_modules/.pnpm/tsdown@0.20.1_synckit@0.11.12_typescript@5.9.3/node_modules/tsdown/dist/options-DjhyorFa.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/misc-CCZIsXVO.mjs","../node_modules/.pnpm/tsdown@0.20.1_synckit@0.11.12_typescript@5.9.3/node_modules/tsdown/dist/watch-FYvwDgoF.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/binding-C-UNREnT.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/logs-NH298mHo.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/normalize-string-or-regex-Dq50a7l9.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/parse-ast-index-B6LAhWD8.mjs","../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-rc.1/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/watch-B2WRkpw2.mjs","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/index.mjs","../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js","../node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/experimental-index.mjs","../node_modules/.pnpm/tsdown@0.20.1_synckit@0.11.12_typescript@5.9.3/node_modules/tsdown/dist/build-D8FjwDd9.mjs","../node_modules/.pnpm/tsdown@0.20.1_synckit@0.11.12_typescript@5.9.3/node_modules/tsdown/dist/debug-DbwOOii4.mjs","../src/index.ts"],"sourcesContent":["let e,t,r,{defineProperty:l,setPrototypeOf:n,create:o,keys:s}=Object,i=\"\",{round:c,max:a}=Math,p=e=>{let t=/([a-f\\d]{3,6})/i.exec(e)?.[1],r=t?.length,l=parseInt(6^r?3^r?\"0\":t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,16);return[l>>16&255,l>>8&255,255&l]},u=(e,t,r)=>e^t||t^r?16+36*c(e/51)+6*c(t/51)+c(r/51):8>e?16:e>248?231:c(24*(e-8)/247)+232,d=e=>{let t,r,l,n,o;return 8>e?30+e:16>e?e-8+90:(232>e?(o=(e-=16)%36,t=(e/36|0)/5,r=(o/6|0)/5,l=o%6/5):t=r=l=(10*(e-232)+8)/255,n=2*a(t,r,l),n?30+(c(l)<<2|c(r)<<1|c(t))+(2^n?0:60):30)},f=(()=>{let r=e=>o.some((t=>e.test(t))),l=globalThis,n=l.process??{},o=n.argv??[],i=n.env??{},c=-1;try{e=\",\"+s(i).join(\",\")}catch(e){i={},c=0}let a=\"FORCE_COLOR\",p={false:0,0:0,1:1,2:2,3:3}[i[a]]??-1,u=a in i&&p||r(/^--color=?(true|always)?$/);return u&&(c=p),~c||(c=((r,l,n)=>(t=r.TERM,{\"24bit\":3,truecolor:3,ansi256:2,ansi:1}[r.COLORTERM]||(r.CI?/,GITHUB/.test(e)?3:1:l&&\"dumb\"!==t?n?3:/-256/.test(t)?2:1:0)))(i,!!i.PM2_HOME||i.NEXT_RUNTIME?.includes(\"edge\")||!!n.stdout?.isTTY,\"win32\"===n.platform)),!p||i.NO_COLOR||r(/^--(no-color|color=(false|never))$/)?0:l.window?.chrome||u&&!c?3:c})(),g={open:i,close:i},h=39,b=49,O={},m=({p:e},{open:t,close:l})=>{let o=(e,...r)=>{if(!e){if(t&&t===l)return t;if((e??i)===i)return i}let n,s=e.raw?String.raw({raw:e},...r):i+e,c=o.p,a=c.o,p=c.c;if(s.includes(\"\u001b\"))for(;c;c=c.p){let{open:e,close:t}=c,r=t.length,l=i,o=0;if(r)for(;~(n=s.indexOf(t,o));o=n+r)l+=s.slice(o,n)+e;s=l+s.slice(o)}return a+(s.includes(\"\\n\")?s.replace(/(\\r?\\n)/g,p+\"$1\"+a):s)+p},s=t,c=l;return e&&(s=e.o+t,c=l+e.c),n(o,r),o.p={open:t,close:l,o:s,c,p:e},o.open=s,o.close=c,o};const w=new function e(t=f){let s={Ansis:e,level:t,isSupported:()=>a,strip:e=>e.replace(/[\u001b›][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,i),extend(e){for(let t in e){let r=e[t],l=(typeof r)[0];\"s\"===l?(c(t,T(...p(r))),c(_(t),v(...p(r)))):c(t,r,\"f\"===l)}return r=o({},O),n(s,r),s}},c=(e,t,r)=>{O[e]={get(){let n=r?(...e)=>m(this,t(...e)):m(this,t);return l(this,e,{value:n}),n}}},a=t>0,w=(e,t)=>a?{open:`\u001b[${e}m`,close:`\u001b[${t}m`}:g,y=e=>t=>e(...p(t)),R=(e,t)=>(r,l,n)=>w(`${e}8;2;${r};${l};${n}`,t),$=(e,t)=>(r,l,n)=>w(((e,t,r)=>d(u(e,t,r)))(r,l,n)+e,t),x=e=>(t,r,l)=>e(u(t,r,l)),T=R(3,h),v=R(4,b),C=e=>w(\"38;5;\"+e,h),E=e=>w(\"48;5;\"+e,b);2===t?(T=x(C),v=x(E)):1===t&&(T=$(0,h),v=$(10,b),C=e=>w(d(e),h),E=e=>w(d(e)+10,b));let M,I={fg:C,bg:E,rgb:T,bgRgb:v,hex:y(T),bgHex:y(v),visible:g,reset:w(0,0),bold:w(1,22),dim:w(2,22),italic:w(3,23),underline:w(4,24),inverse:w(7,27),hidden:w(8,28),strikethrough:w(9,29)},_=e=>\"bg\"+e[0].toUpperCase()+e.slice(1),k=\"Bright\";return\"black,red,green,yellow,blue,magenta,cyan,white,gray\".split(\",\").map(((e,t)=>{M=_(e),8>t?(I[e+k]=w(90+t,h),I[M+k]=w(100+t,b)):t=60,I[e]=w(30+t,h),I[M]=w(40+t,b)})),s.extend(I)};module.exports=w,w.default=w;\n","import a from\"./index.cjs\";export default a;export const{Ansis,fg,bg,rgb,bgRgb,hex,bgHex,reset,inverse,hidden,visible,bold,dim,italic,underline,strikethrough,black,red,green,yellow,blue,magenta,cyan,white,gray,redBright,greenBright,yellowBright,blueBright,magentaBright,cyanBright,whiteBright,bgBlack,bgRed,bgGreen,bgYellow,bgBlue,bgMagenta,bgCyan,bgWhite,bgGray,bgRedBright,bgGreenBright,bgYellowBright,bgBlueBright,bgMagentaBright,bgCyanBright,bgWhiteBright}=a;","import { createRequire as __cjs_createRequire } from \"node:module\";\nconst __cjs_require = __cjs_createRequire(import.meta.url);\nimport { createRequire } from \"node:module\";\nimport process from \"node:process\";\nimport { bgRed, bgYellow, blue, green, rgb, yellow } from \"ansis\";\nimport { pathToFileURL } from \"node:url\";\nconst picomatch = __cjs_require(\"picomatch\");\nimport readline from \"node:readline\";\n\n//#region rolldown:runtime\nvar __require = /* @__PURE__ */ createRequire(import.meta.url);\n\n//#endregion\n//#region src/utils/general.ts\nfunction toArray(val, defaultValue) {\n\tif (Array.isArray(val)) return val;\n\telse if (val == null) {\n\t\tif (defaultValue) return [defaultValue];\n\t\treturn [];\n\t} else return [val];\n}\nfunction resolveComma(arr) {\n\treturn arr.flatMap((format) => format.split(\",\"));\n}\nfunction resolveRegex(str) {\n\tif (typeof str === \"string\" && str.length > 2 && str[0] === \"/\" && str.at(-1) === \"/\") return new RegExp(str.slice(1, -1));\n\treturn str;\n}\nfunction slash(string) {\n\treturn string.replaceAll(\"\\\\\", \"/\");\n}\nconst noop = (v) => v;\nfunction matchPattern(id, patterns) {\n\treturn patterns.some((pattern) => {\n\t\tif (pattern instanceof RegExp) {\n\t\t\tpattern.lastIndex = 0;\n\t\t\treturn pattern.test(id);\n\t\t}\n\t\treturn id === pattern || picomatch(pattern)(id);\n\t});\n}\nfunction pkgExists(moduleName) {\n\ttry {\n\t\timport.meta.resolve(moduleName);\n\t\treturn true;\n\t} catch {}\n\treturn false;\n}\nasync function importWithError(moduleName, resolvePaths) {\n\tlet resolved;\n\tif (resolvePaths) resolved = pathToFileURL(__require.resolve(moduleName, { paths: resolvePaths })).href;\n\ttry {\n\t\treturn await import(resolved || moduleName);\n\t} catch (error) {\n\t\tthrow new Error(`Failed to import module \"${moduleName}\". Please ensure it is installed.`, { cause: error });\n\t}\n}\nfunction promiseWithResolvers() {\n\tlet resolve;\n\treturn {\n\t\tpromise: new Promise((res) => {\n\t\t\tresolve = res;\n\t\t}),\n\t\tresolve\n\t};\n}\n\n//#endregion\n//#region src/utils/logger.ts\nconst LogLevels = {\n\tsilent: 0,\n\terror: 1,\n\twarn: 2,\n\tinfo: 3\n};\nfunction format(msgs) {\n\treturn msgs.filter((arg) => arg !== void 0 && arg !== false).join(\" \");\n}\nfunction clearScreen() {\n\tconst repeatCount = process.stdout.rows - 2;\n\tconst blank = repeatCount > 0 ? \"\\n\".repeat(repeatCount) : \"\";\n\tconsole.info(blank);\n\treadline.cursorTo(process.stdout, 0, 0);\n\treadline.clearScreenDown(process.stdout);\n}\nconst warnedMessages = /* @__PURE__ */ new Set();\nfunction createLogger(level = \"info\", { customLogger, console = globalThis.console, failOnWarn = false, allowClearScreen = true } = {}) {\n\tif (customLogger) return customLogger;\n\tfunction output(type, msg) {\n\t\tif (LogLevels[logger.level] < LogLevels[type]) return;\n\t\tconsole[type === \"info\" ? \"log\" : type](msg);\n\t}\n\tconst clear = allowClearScreen && process.stdout.isTTY && !process.env.CI ? clearScreen : () => {};\n\tconst logger = {\n\t\tlevel,\n\t\tinfo(...msgs) {\n\t\t\toutput(\"info\", `${blue`ℹ`} ${format(msgs)}`);\n\t\t},\n\t\twarn(...msgs) {\n\t\t\tif (failOnWarn) return this.error(...msgs);\n\t\t\tconst message = format(msgs);\n\t\t\twarnedMessages.add(message);\n\t\t\toutput(\"warn\", `\\n${bgYellow` WARN `} ${message}\\n`);\n\t\t},\n\t\twarnOnce(...msgs) {\n\t\t\tconst message = format(msgs);\n\t\t\tif (warnedMessages.has(message)) return;\n\t\t\tif (failOnWarn) return this.error(...msgs);\n\t\t\twarnedMessages.add(message);\n\t\t\toutput(\"warn\", `\\n${bgYellow` WARN `} ${message}\\n`);\n\t\t},\n\t\terror(...msgs) {\n\t\t\toutput(\"error\", `\\n${bgRed` ERROR `} ${format(msgs)}\\n`);\n\t\t\tprocess.exitCode = 1;\n\t\t},\n\t\tsuccess(...msgs) {\n\t\t\toutput(\"info\", `${green`✔`} ${format(msgs)}`);\n\t\t},\n\t\tclearScreen(type) {\n\t\t\tif (LogLevels[logger.level] >= LogLevels[type]) clear();\n\t\t}\n\t};\n\treturn logger;\n}\nconst globalLogger = createLogger();\nfunction getNameLabel(ansis, name) {\n\tif (!name) return void 0;\n\treturn ansis(`[${name}]`);\n}\nfunction prettyFormat(format) {\n\tconst formatColor = format === \"es\" ? blue : format === \"cjs\" ? yellow : noop;\n\tlet formatText;\n\tswitch (format) {\n\t\tcase \"es\":\n\t\t\tformatText = \"ESM\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tformatText = format.toUpperCase();\n\t\t\tbreak;\n\t}\n\treturn formatColor(`[${formatText}]`);\n}\nconst colors = /* @__PURE__ */ new Map();\nfunction generateColor(name = \"default\") {\n\tif (colors.has(name)) return colors.get(name);\n\tlet color;\n\tif (name === \"default\") color = blue;\n\telse {\n\t\tlet hash = 0;\n\t\tfor (let i = 0; i < name.length; i++) hash = name.charCodeAt(i) + ((hash << 5) - hash);\n\t\tcolor = rgb(...hslToRgb(hash % 360, 35, 55));\n\t}\n\tcolors.set(name, color);\n\treturn color;\n}\nfunction hslToRgb(h, s, l) {\n\th = h % 360;\n\th /= 360;\n\ts /= 100;\n\tl /= 100;\n\tlet r, g, b;\n\tif (s === 0) r = g = b = l;\n\telse {\n\t\tconst q = l < .5 ? l * (1 + s) : l + s - l * s;\n\t\tconst p = 2 * l - q;\n\t\tr = hue2rgb(p, q, h + 1 / 3);\n\t\tg = hue2rgb(p, q, h);\n\t\tb = hue2rgb(p, q, h - 1 / 3);\n\t}\n\treturn [\n\t\tMath.max(0, Math.round(r * 255)),\n\t\tMath.max(0, Math.round(g * 255)),\n\t\tMath.max(0, Math.round(b * 255))\n\t];\n}\nfunction hue2rgb(p, q, t) {\n\tif (t < 0) t += 1;\n\tif (t > 1) t -= 1;\n\tif (t < 1 / 6) return p + (q - p) * 6 * t;\n\tif (t < 1 / 2) return q;\n\tif (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;\n\treturn p;\n}\n\n//#endregion\nexport { globalLogger as a, matchPattern as c, promiseWithResolvers as d, resolveComma as f, toArray as h, getNameLabel as i, noop as l, slash as m, createLogger as n, prettyFormat as o, resolveRegex as p, generateColor as r, importWithError as s, LogLevels as t, pkgExists as u };","function isPlainObject(value) {\n if (value === null || typeof value !== \"object\") {\n return false;\n }\n const prototype = Object.getPrototypeOf(value);\n if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {\n return false;\n }\n if (Symbol.iterator in value) {\n return false;\n }\n if (Symbol.toStringTag in value) {\n return Object.prototype.toString.call(value) === \"[object Module]\";\n }\n return true;\n}\n\nfunction _defu(baseObject, defaults, namespace = \".\", merger) {\n if (!isPlainObject(defaults)) {\n return _defu(baseObject, {}, namespace, merger);\n }\n const object = Object.assign({}, defaults);\n for (const key in baseObject) {\n if (key === \"__proto__\" || key === \"constructor\") {\n continue;\n }\n const value = baseObject[key];\n if (value === null || value === void 0) {\n continue;\n }\n if (merger && merger(object, key, value, namespace)) {\n continue;\n }\n if (Array.isArray(value) && Array.isArray(object[key])) {\n object[key] = [...value, ...object[key]];\n } else if (isPlainObject(value) && isPlainObject(object[key])) {\n object[key] = _defu(\n value,\n object[key],\n (namespace ? `${namespace}.` : \"\") + key.toString(),\n merger\n );\n } else {\n object[key] = value;\n }\n }\n return object;\n}\nfunction createDefu(merger) {\n return (...arguments_) => (\n // eslint-disable-next-line unicorn/no-array-reduce\n arguments_.reduce((p, c) => _defu(p, c, \"\", merger), {})\n );\n}\nconst defu = createDefu();\nconst defuFn = createDefu((object, key, currentValue) => {\n if (object[key] !== void 0 && typeof currentValue === \"function\") {\n object[key] = currentValue(object[key]);\n return true;\n }\n});\nconst defuArrayFn = createDefu((object, key, currentValue) => {\n if (Array.isArray(object[key]) && typeof currentValue === \"function\") {\n object[key] = currentValue(object[key]);\n return true;\n }\n});\n\nexport { createDefu, defu as default, defu, defuArrayFn, defuFn };\n","function coerce(value) {\n\tif (value instanceof Error) return value.stack || value.message;\n\treturn value;\n}\nfunction selectColor(colors, namespace) {\n\tlet hash = 0;\n\tfor (let i = 0; i < namespace.length; i++) {\n\t\thash = (hash << 5) - hash + namespace.charCodeAt(i);\n\t\thash |= 0;\n\t}\n\treturn colors[Math.abs(hash) % colors.length];\n}\nfunction matchesTemplate(search, template) {\n\tlet searchIndex = 0;\n\tlet templateIndex = 0;\n\tlet starIndex = -1;\n\tlet matchIndex = 0;\n\twhile (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === \"*\")) if (template[templateIndex] === \"*\") {\n\t\tstarIndex = templateIndex;\n\t\tmatchIndex = searchIndex;\n\t\ttemplateIndex++;\n\t} else {\n\t\tsearchIndex++;\n\t\ttemplateIndex++;\n\t}\n\telse if (starIndex !== -1) {\n\t\ttemplateIndex = starIndex + 1;\n\t\tmatchIndex++;\n\t\tsearchIndex = matchIndex;\n\t} else return false;\n\twhile (templateIndex < template.length && template[templateIndex] === \"*\") templateIndex++;\n\treturn templateIndex === template.length;\n}\nfunction humanize(value) {\n\tif (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;\n\treturn `${value}ms`;\n}\nlet globalNamespaces = \"\";\nfunction namespaces() {\n\treturn globalNamespaces;\n}\nfunction createDebug(namespace, options) {\n\tlet prevTime;\n\tlet enableOverride;\n\tlet namespacesCache;\n\tlet enabledCache;\n\tconst debug = (...args) => {\n\t\tif (!debug.enabled) return;\n\t\tconst curr = Date.now();\n\t\tconst diff = curr - (prevTime || curr);\n\t\tprevTime = curr;\n\t\targs[0] = coerce(args[0]);\n\t\tif (typeof args[0] !== \"string\") args.unshift(\"%O\");\n\t\tlet index = 0;\n\t\targs[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {\n\t\t\tif (match === \"%%\") return \"%\";\n\t\t\tindex++;\n\t\t\tconst formatter = options.formatters[format];\n\t\t\tif (typeof formatter === \"function\") {\n\t\t\t\tconst value = args[index];\n\t\t\t\tmatch = formatter.call(debug, value);\n\t\t\t\targs.splice(index, 1);\n\t\t\t\tindex--;\n\t\t\t}\n\t\t\treturn match;\n\t\t});\n\t\toptions.formatArgs.call(debug, diff, args);\n\t\tdebug.log(...args);\n\t};\n\tdebug.extend = function(namespace$1, delimiter = \":\") {\n\t\treturn createDebug(this.namespace + delimiter + namespace$1, {\n\t\t\tuseColors: this.useColors,\n\t\t\tcolor: this.color,\n\t\t\tformatArgs: this.formatArgs,\n\t\t\tformatters: this.formatters,\n\t\t\tinspectOpts: this.inspectOpts,\n\t\t\tlog: this.log,\n\t\t\thumanize: this.humanize\n\t\t});\n\t};\n\tObject.assign(debug, options);\n\tdebug.namespace = namespace;\n\tObject.defineProperty(debug, \"enabled\", {\n\t\tenumerable: true,\n\t\tconfigurable: false,\n\t\tget: () => {\n\t\t\tif (enableOverride != null) return enableOverride;\n\t\t\tif (namespacesCache !== globalNamespaces) {\n\t\t\t\tnamespacesCache = globalNamespaces;\n\t\t\t\tenabledCache = enabled(namespace);\n\t\t\t}\n\t\t\treturn enabledCache;\n\t\t},\n\t\tset: (v) => {\n\t\t\tenableOverride = v;\n\t\t}\n\t});\n\treturn debug;\n}\nlet names = [];\nlet skips = [];\nfunction enable(namespaces$1) {\n\tglobalNamespaces = namespaces$1;\n\tnames = [];\n\tskips = [];\n\tconst split = globalNamespaces.trim().replace(/\\s+/g, \",\").split(\",\").filter(Boolean);\n\tfor (const ns of split) if (ns[0] === \"-\") skips.push(ns.slice(1));\n\telse names.push(ns);\n}\nfunction disable() {\n\tconst namespaces$1 = [...names, ...skips.map((namespace) => `-${namespace}`)].join(\",\");\n\tenable(\"\");\n\treturn namespaces$1;\n}\nfunction enabled(name) {\n\tfor (const skip of skips) if (matchesTemplate(name, skip)) return false;\n\tfor (const ns of names) if (matchesTemplate(name, ns)) return true;\n\treturn false;\n}\nexport { namespaces as a, enabled as i, disable as n, humanize as o, enable as r, selectColor as s, createDebug as t };\n","import { a as namespaces, i as enabled, n as disable, o as humanize, r as enable$1, s as selectColor, t as createDebug$1 } from \"./core.js\";\nimport { isatty } from \"node:tty\";\nimport { formatWithOptions, inspect } from \"node:util\";\nconst colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [\n\t20,\n\t21,\n\t26,\n\t27,\n\t32,\n\t33,\n\t38,\n\t39,\n\t40,\n\t41,\n\t42,\n\t43,\n\t44,\n\t45,\n\t56,\n\t57,\n\t62,\n\t63,\n\t68,\n\t69,\n\t74,\n\t75,\n\t76,\n\t77,\n\t78,\n\t79,\n\t80,\n\t81,\n\t92,\n\t93,\n\t98,\n\t99,\n\t112,\n\t113,\n\t128,\n\t129,\n\t134,\n\t135,\n\t148,\n\t149,\n\t160,\n\t161,\n\t162,\n\t163,\n\t164,\n\t165,\n\t166,\n\t167,\n\t168,\n\t169,\n\t170,\n\t171,\n\t172,\n\t173,\n\t178,\n\t179,\n\t184,\n\t185,\n\t196,\n\t197,\n\t198,\n\t199,\n\t200,\n\t201,\n\t202,\n\t203,\n\t204,\n\t205,\n\t206,\n\t207,\n\t208,\n\t209,\n\t214,\n\t215,\n\t220,\n\t221\n] : [\n\t6,\n\t2,\n\t3,\n\t4,\n\t5,\n\t1\n];\nconst inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {\n\tconst prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());\n\tlet value = process.env[key];\n\tconst lowerCase = typeof value === \"string\" && value.toLowerCase();\n\tif (value === \"null\") value = null;\n\telse if (lowerCase === \"yes\" || lowerCase === \"on\" || lowerCase === \"true\" || lowerCase === \"enabled\") value = true;\n\telse if (lowerCase === \"no\" || lowerCase === \"off\" || lowerCase === \"false\" || lowerCase === \"disabled\") value = false;\n\telse value = Number(value);\n\tobj[prop] = value;\n\treturn obj;\n}, {});\nfunction useColors() {\n\treturn \"colors\" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);\n}\nfunction getDate() {\n\tif (inspectOpts.hideDate) return \"\";\n\treturn `${(/* @__PURE__ */ new Date()).toISOString()} `;\n}\nfunction formatArgs(diff, args) {\n\tconst { namespace: name, useColors: useColors$1 } = this;\n\tif (useColors$1) {\n\t\tconst c = this.color;\n\t\tconst colorCode = `\\u001B[3${c < 8 ? c : `8;5;${c}`}`;\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\t\targs[0] = prefix + args[0].split(\"\\n\").join(`\\n${prefix}`);\n\t\targs.push(`${colorCode}m+${this.humanize(diff)}\\u001B[0m`);\n\t} else args[0] = `${getDate()}${name} ${args[0]}`;\n}\nfunction log(...args) {\n\tprocess.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}\\n`);\n}\nconst defaultOptions = {\n\tuseColors: useColors(),\n\tformatArgs,\n\tformatters: {\n\t\to(v) {\n\t\t\tthis.inspectOpts.colors = this.useColors;\n\t\t\treturn inspect(v, this.inspectOpts).split(\"\\n\").map((str) => str.trim()).join(\" \");\n\t\t},\n\t\tO(v) {\n\t\t\tthis.inspectOpts.colors = this.useColors;\n\t\t\treturn inspect(v, this.inspectOpts);\n\t\t}\n\t},\n\tinspectOpts,\n\tlog,\n\thumanize\n};\nfunction createDebug(namespace, options) {\n\tvar _ref;\n\tconst color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);\n\treturn createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));\n}\nfunction save(namespaces$1) {\n\tif (namespaces$1) process.env.DEBUG = namespaces$1;\n\telse delete process.env.DEBUG;\n}\nfunction enable(namespaces$1) {\n\tsave(namespaces$1);\n\tenable$1(namespaces$1);\n}\nenable$1(process.env.DEBUG || \"\");\nexport { createDebug, disable, enable, enabled, namespaces };\n","import module, { createRequire } from \"node:module\";\nimport process from \"node:process\";\n\n//#region rolldown:runtime\nvar __require = /* @__PURE__ */ createRequire(import.meta.url);\n\n//#endregion\n//#region src/index.ts\nconst namespace = \"no-cache://\";\nconst namespaceLength = 11;\nconst isSupported = !!module.registerHooks;\nconst RE_NODE_MODULES = /[/\\\\]node_modules[/\\\\]/;\nlet deregister;\nfunction init({ skipNodeModules } = {}) {\n\tif (process.versions.bun) throw new Error(\"init is unnecessary in Bun, use clearRequireCache() instead.\");\n\tif (!isSupported) throw new Error(\"import-without-cache requires Node.js v22.15.0 or higher.\");\n\tif (deregister) return deregister;\n\tconst hooks = module.registerHooks({\n\t\tresolve(specifier, context, nextResolve) {\n\t\t\tlet noCache = context.importAttributes?.cache === \"no\";\n\t\t\tif (specifier.startsWith(namespace)) {\n\t\t\t\tspecifier = specifier.slice(namespaceLength);\n\t\t\t\tnoCache = true;\n\t\t\t}\n\t\t\tconst resolved = nextResolve(specifier, context);\n\t\t\tif (skipNodeModules && RE_NODE_MODULES.test(resolved.url)) return resolved;\n\t\t\tif (!resolved.url.startsWith(\"file://\")) return resolved;\n\t\t\tconst parentUUID = getParentUUID(context.parentURL);\n\t\t\tif (!noCache && !parentUUID) return resolved;\n\t\t\tresolved.url = appendUUID(resolved.url, parentUUID || crypto.randomUUID());\n\t\t\treturn resolved;\n\t\t},\n\t\tload(url, context, nextLoad) {\n\t\t\tcleanupImportAttributes(context);\n\t\t\treturn nextLoad(url, context);\n\t\t}\n\t});\n\treturn deregister = () => {\n\t\thooks.deregister();\n\t\tderegister = void 0;\n\t};\n}\nfunction unregister() {\n\tderegister?.();\n}\nfunction clearRequireCache() {\n\tfor (const key of Object.keys(__require.cache)) delete __require.cache[key];\n}\nfunction getParentUUID(parentURL) {\n\tif (!parentURL) return;\n\treturn new URL(parentURL).searchParams.get(\"no-cache\") ?? void 0;\n}\nfunction appendUUID(url, uuid) {\n\tconst parsed = new URL(url);\n\tparsed.searchParams.set(\"no-cache\", uuid);\n\treturn parsed.toString();\n}\nfunction cleanupImportAttributes(context) {\n\tif (!context.importAttributes?.cache) return;\n\tconst attrs = Object.assign(Object.create(null), context.importAttributes);\n\tdelete attrs.cache;\n\tcontext.importAttributes = attrs;\n\tObject.freeze(context.importAttributes);\n}\n\n//#endregion\nexport { clearRequireCache, init, isSupported, unregister };","import { createRequire as __cjs_createRequire } from \"node:module\";\nconst __cjs_require = __cjs_createRequire(import.meta.url);\nimport { a as globalLogger, c as matchPattern, f as resolveComma, h as toArray, i as getNameLabel, m as slash, n as createLogger, p as resolveRegex, r as generateColor, u as pkgExists } from \"./logger-DwCm1t8D.mjs\";\nimport { a as fsRemove, c as stripExtname, i as fsExists, o as fsStat, s as lowestCommonAncestor, t as detectIndentation } from \"./format-BD2e_4xO.mjs\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport process, { env } from \"node:process\";\nimport { blue, underline } from \"ansis\";\nimport { createDefu } from \"defu\";\nimport { createDebug } from \"obug\";\nimport { glob, isDynamicPattern } from \"tinyglobby\";\nimport { pathToFileURL } from \"node:url\";\nconst picomatch = __cjs_require(\"picomatch\");\nimport { readFileSync, writeFileSync } from \"node:fs\";\nimport { RE_CSS, RE_DTS } from \"rolldown-plugin-dts/filename\";\nconst minVersion = __cjs_require(\"semver/ranges/min-version.js\");\nimport { up } from \"empathic/find\";\nimport { up as up$1 } from \"empathic/package\";\nimport { init, isSupported } from \"import-without-cache\";\nimport { createConfigCoreLoader } from \"unconfig-core\";\n\n//#region node_modules/.pnpm/is-in-ci@2.0.0/node_modules/is-in-ci/index.js\nconst check = (key) => key in env && env[key] !== \"0\" && env[key] !== \"false\";\nconst isInCi = check(\"CI\") || check(\"CONTINUOUS_INTEGRATION\");\nvar is_in_ci_default = isInCi;\n\n//#endregion\n//#region src/features/clean.ts\nconst debug$3 = createDebug(\"tsdown:clean\");\nconst RE_LAST_SLASH = /[/\\\\]$/;\nasync function cleanOutDir(configs) {\n\tconst removes = /* @__PURE__ */ new Set();\n\tfor (const config of configs) {\n\t\tif (config.devtools && (config.devtools.clean ?? true)) config.clean.push(\"node_modules/.rolldown\");\n\t\tif (!config.clean.length) continue;\n\t\tconst files = await glob(config.clean, {\n\t\t\tcwd: config.cwd,\n\t\t\tabsolute: true,\n\t\t\tonlyFiles: false,\n\t\t\tdot: true\n\t\t});\n\t\tconst normalizedOutDir = config.outDir.replace(RE_LAST_SLASH, \"\");\n\t\tfor (const file of files) if (file.replace(RE_LAST_SLASH, \"\") !== normalizedOutDir) removes.add(file);\n\t}\n\tif (!removes.size) return;\n\tglobalLogger.info(`Cleaning ${removes.size} files`);\n\tawait Promise.all([...removes].map(async (file) => {\n\t\tdebug$3(\"Removing\", file);\n\t\tawait fsRemove(file);\n\t}));\n\tdebug$3(\"Removed %d files\", removes.size);\n}\nfunction resolveClean(clean, outDir, cwd) {\n\tif (clean === true) clean = [slash(outDir)];\n\telse if (!clean) clean = [];\n\tif (clean.some((item) => path.resolve(item) === cwd)) throw new Error(\"Cannot clean the current working directory. Please specify a different path to clean option.\");\n\treturn clean;\n}\nasync function cleanChunks(outDir, chunks) {\n\tawait Promise.all(chunks.map(async (chunk) => {\n\t\tconst filePath = path.resolve(outDir, chunk.fileName);\n\t\tdebug$3(\"Removing chunk file\", filePath);\n\t\tawait fsRemove(filePath);\n\t}));\n}\n\n//#endregion\n//#region src/features/css/index.ts\nconst defaultCssBundleName = \"style.css\";\nfunction resolveCssOptions(options = {}) {\n\treturn {\n\t\tsplitting: options.splitting ?? true,\n\t\tfileName: options.fileName ?? defaultCssBundleName\n\t};\n}\n\n//#endregion\n//#region src/features/entry.ts\nasync function resolveEntry(logger, entry, cwd, color, nameLabel) {\n\tif (!entry || Object.keys(entry).length === 0) {\n\t\tconst defaultEntry = path.resolve(cwd, \"src/index.ts\");\n\t\tif (await fsExists(defaultEntry)) entry = { index: defaultEntry };\n\t\telse throw new Error(`${nameLabel} No input files, try \"tsdown <your-file>\" or create src/index.ts`);\n\t}\n\tconst entryMap = await toObjectEntry(entry, cwd);\n\tconst entries = Object.values(entryMap);\n\tif (entries.length === 0) throw new Error(`${nameLabel} Cannot find entry: ${JSON.stringify(entry)}`);\n\tlogger.info(nameLabel, `entry: ${color(entries.map((entry) => path.relative(cwd, entry)).join(\", \"))}`);\n\treturn entryMap;\n}\nfunction toObjectEntry(entry, cwd) {\n\tif (typeof entry === \"string\") entry = [entry];\n\tif (!Array.isArray(entry)) return resolveObjectEntry(entry, cwd);\n\treturn resolveArrayEntry(entry, cwd);\n}\nasync function resolveObjectEntry(entries, cwd) {\n\treturn Object.fromEntries((await Promise.all(Object.entries(entries).map(async ([key, value]) => {\n\t\tif (!key.includes(\"*\")) {\n\t\t\tif (Array.isArray(value)) throw new TypeError(`Object entry \"${key}\" cannot have an array value when the key is not a glob pattern.`);\n\t\t\treturn [[key, value]];\n\t\t}\n\t\tconst patterns = toArray(value);\n\t\tconst files = await glob(patterns, {\n\t\t\tcwd,\n\t\t\texpandDirectories: false\n\t\t});\n\t\tif (!files.length) throw new Error(`Cannot find files for entry key \"${key}\" with patterns: ${JSON.stringify(patterns)}`);\n\t\tlet valueGlobBase;\n\t\tfor (const pattern of patterns) {\n\t\t\tif (pattern.startsWith(\"!\")) continue;\n\t\t\tconst base = picomatch.scan(pattern).base;\n\t\t\tif (valueGlobBase === void 0) valueGlobBase = base;\n\t\t\telse if (valueGlobBase !== base) throw new Error(`When using object entry with glob pattern key \"${key}\", all value glob patterns must have the same base directory.`);\n\t\t}\n\t\tif (valueGlobBase === void 0) throw new Error(`Cannot determine base directory for value glob patterns of key \"${key}\".`);\n\t\treturn files.map((file) => [slash(key.replaceAll(\"*\", stripExtname(path.relative(valueGlobBase, file)))), path.resolve(cwd, file)]);\n\t}))).flat());\n}\nasync function resolveArrayEntry(entries, cwd) {\n\tconst stringEntries = [];\n\tconst objectEntries = [];\n\tfor (const e of entries) if (typeof e === \"string\") stringEntries.push(e);\n\telse objectEntries.push(e);\n\tconst isGlob = stringEntries.some((e) => isDynamicPattern(e));\n\tlet resolvedEntries;\n\tif (isGlob) resolvedEntries = (await glob(stringEntries, {\n\t\tcwd,\n\t\texpandDirectories: false,\n\t\tabsolute: true\n\t})).map((file) => path.resolve(file));\n\telse resolvedEntries = stringEntries;\n\tconst base = lowestCommonAncestor(...resolvedEntries);\n\tconst arrayEntryMap = Object.fromEntries(resolvedEntries.map((file) => {\n\t\treturn [slash(stripExtname(path.relative(base, file))), file];\n\t}));\n\treturn Object.assign({}, arrayEntryMap, ...await Promise.all(objectEntries.map((entry) => resolveObjectEntry(entry, cwd))));\n}\n\n//#endregion\n//#region src/features/pkg/exports.ts\nasync function writeExports(options, chunks) {\n\tconst { pkg } = options;\n\tconst { publishExports, ...generated } = await generateExports(pkg, chunks, options);\n\tconst updatedPkg = {\n\t\t...pkg,\n\t\t...generated,\n\t\tpackageJsonPath: void 0\n\t};\n\tif (publishExports) {\n\t\tupdatedPkg.publishConfig ||= {};\n\t\tupdatedPkg.publishConfig.exports = publishExports;\n\t}\n\tconst original = readFileSync(pkg.packageJsonPath, \"utf8\");\n\tlet contents = JSON.stringify(updatedPkg, null, detectIndentation(original));\n\tif (original.endsWith(\"\\n\")) contents += \"\\n\";\n\tif (contents !== original) writeFileSync(pkg.packageJsonPath, contents, \"utf8\");\n}\nfunction shouldExclude(fileName, exclude) {\n\tif (!exclude?.length) return false;\n\treturn matchPattern(fileName, exclude);\n}\nasync function generateExports(pkg, chunks, options) {\n\tlet { exports: { devExports, all, packageJson = true, exclude, customExports, legacy }, css, logger } = options;\n\tconst pkgRoot = path.dirname(pkg.packageJsonPath);\n\tlet main, module, cjsTypes, esmTypes;\n\tconst exportsMap = /* @__PURE__ */ new Map();\n\tconst formats = Object.keys(chunks);\n\tif (!formats.includes(\"cjs\") && !formats.includes(\"es\")) logger.warn(`No CJS or ESM formats found in chunks for package ${pkg.name}`);\n\tconst isPureESM = formats.length === 1 && formats[0] === \"es\";\n\tlegacy ??= !isPureESM;\n\tfor (const [format, chunksByFormat] of Object.entries(chunks)) {\n\t\tif (format !== \"es\" && format !== \"cjs\") continue;\n\t\tconst filteredChunks = chunksByFormat.filter((chunk) => {\n\t\t\tif (chunk.type !== \"chunk\" || !chunk.isEntry) return false;\n\t\t\tconst [name] = getExportName(chunk);\n\t\t\treturn !shouldExclude(name, exclude);\n\t\t});\n\t\tconst onlyOneEntry = filteredChunks.filter((chunk) => !RE_DTS.test(chunk.fileName)).length === 1;\n\t\tfor (const chunk of filteredChunks) {\n\t\t\tlet [name, normalizedName, isDts] = getExportName(chunk);\n\t\t\tconst isIndex = onlyOneEntry || name === \"index\";\n\t\t\tconst distFile = join(pkgRoot, chunk.outDir, normalizedName);\n\t\t\tif (isIndex) {\n\t\t\t\tname = \".\";\n\t\t\t\tif (format === \"cjs\") if (isDts) cjsTypes = distFile;\n\t\t\t\telse main = distFile;\n\t\t\t\telse if (format === \"es\") if (isDts) esmTypes = distFile;\n\t\t\t\telse module = distFile;\n\t\t\t} else if (name.endsWith(\"/index\")) name = `./${name.slice(0, -6)}`;\n\t\t\telse name = `./${name}`;\n\t\t\tlet subExport = exportsMap.get(name);\n\t\t\tif (!subExport) {\n\t\t\t\tsubExport = {};\n\t\t\t\texportsMap.set(name, subExport);\n\t\t\t}\n\t\t\tif (!isDts) {\n\t\t\t\tsubExport[format] = distFile;\n\t\t\t\tif (chunk.facadeModuleId && !subExport.src) subExport.src = `./${slash(path.relative(pkgRoot, chunk.facadeModuleId))}`;\n\t\t\t}\n\t\t}\n\t}\n\tconst sortedExportsMap = Array.from(exportsMap.entries()).toSorted(([a], [b]) => {\n\t\tif (a === \"index\") return -1;\n\t\treturn a.localeCompare(b);\n\t});\n\tlet exports = Object.fromEntries(sortedExportsMap.map(([name, subExport]) => [name, genSubExport(devExports, subExport)]));\n\texportMeta(exports, all, packageJson);\n\texportCss(exports, chunks, css, pkgRoot);\n\tif (customExports) exports = await customExports(exports, {\n\t\tpkg,\n\t\tchunks,\n\t\tisPublish: false\n\t});\n\tlet publishExports;\n\tif (devExports) {\n\t\tpublishExports = Object.fromEntries(sortedExportsMap.map(([name, subExport]) => [name, genSubExport(false, subExport)]));\n\t\texportMeta(publishExports, all, packageJson);\n\t\texportCss(publishExports, chunks, css, pkgRoot);\n\t\tif (customExports) publishExports = await customExports(publishExports, {\n\t\t\tpkg,\n\t\t\tchunks,\n\t\t\tisPublish: true\n\t\t});\n\t}\n\treturn {\n\t\tmain: legacy ? main || module || pkg.main : void 0,\n\t\tmodule: legacy ? module || pkg.module : void 0,\n\t\ttypes: legacy ? cjsTypes || esmTypes || pkg.types : pkg.types,\n\t\texports,\n\t\tpublishExports\n\t};\n}\nfunction genSubExport(devExports, { src, es, cjs }) {\n\tif (devExports === true) return src;\n\tlet value;\n\tconst dualFormat = es && cjs;\n\tif (!dualFormat && !devExports) value = cjs || es;\n\telse {\n\t\tvalue = {};\n\t\tif (typeof devExports === \"string\") value[devExports] = src;\n\t\tif (cjs) value[dualFormat ? \"require\" : \"default\"] = cjs;\n\t\tif (es) value[dualFormat ? \"import\" : \"default\"] = es;\n\t}\n\treturn value;\n}\nfunction exportMeta(exports, all, packageJson) {\n\tif (all) exports[\"./*\"] = \"./*\";\n\telse if (packageJson) exports[\"./package.json\"] = \"./package.json\";\n}\nfunction exportCss(exports, chunks, { splitting }, pkgRoot) {\n\tif (splitting) return;\n\tfor (const chunksByFormat of Object.values(chunks)) for (const chunk of chunksByFormat) if (chunk.type === \"asset\" && RE_CSS.test(chunk.fileName)) {\n\t\tconst filename = slash(chunk.fileName);\n\t\texports[`./${filename}`] = join(pkgRoot, chunk.outDir, filename);\n\t\treturn;\n\t}\n}\nfunction hasExportsTypes(pkg) {\n\tconst exports = pkg?.exports;\n\tif (!exports) return false;\n\tif (typeof exports === \"object\" && exports !== null && !Array.isArray(exports)) {\n\t\tif (\"types\" in exports) return true;\n\t\tif (\".\" in exports) {\n\t\t\tconst mainExport = exports[\".\"];\n\t\t\tif (typeof mainExport === \"object\" && mainExport !== null && \"types\" in mainExport) return true;\n\t\t}\n\t}\n\treturn false;\n}\nfunction getExportName(chunk) {\n\tconst normalizedName = slash(chunk.fileName);\n\tlet name = stripExtname(normalizedName);\n\tconst isDts = name.endsWith(\".d\");\n\tif (isDts) name = name.slice(0, -2);\n\treturn [\n\t\tname,\n\t\tnormalizedName,\n\t\tisDts\n\t];\n}\nfunction join(pkgRoot, outDir, fileName) {\n\tconst outDirRelative = slash(path.relative(pkgRoot, outDir));\n\treturn `${outDirRelative ? `./${outDirRelative}` : \".\"}/${fileName}`;\n}\n\n//#endregion\n//#region src/features/target.ts\nfunction resolveTarget(logger, target, color, pkg, nameLabel) {\n\tif (target === false) return;\n\tif (target == null) {\n\t\tconst pkgTarget = resolvePackageTarget(pkg);\n\t\tif (pkgTarget) target = pkgTarget;\n\t\telse return;\n\t}\n\tif (typeof target === \"number\") throw new TypeError(`Invalid target: ${target}`);\n\tconst targets = resolveComma(toArray(target));\n\tif (targets.length) logger.info(nameLabel, `target${targets.length > 1 ? \"s\" : \"\"}: ${color(targets.join(\", \"))}`);\n\treturn targets;\n}\nfunction resolvePackageTarget(pkg) {\n\tconst nodeVersion = pkg?.engines?.node;\n\tif (!nodeVersion) return;\n\tconst nodeMinVersion = minVersion(nodeVersion);\n\tif (!nodeMinVersion) return;\n\tif (nodeMinVersion.version === \"0.0.0\") return;\n\treturn `node${nodeMinVersion.version}`;\n}\n\n//#endregion\n//#region src/features/tsconfig.ts\nfunction findTsconfig(cwd, name = \"tsconfig.json\") {\n\treturn up(name, { cwd }) || false;\n}\nasync function resolveTsconfig(logger, tsconfig, cwd, color, nameLabel) {\n\tconst original = tsconfig;\n\tif (tsconfig !== false) {\n\t\tif (tsconfig === true || tsconfig == null) {\n\t\t\ttsconfig = findTsconfig(cwd);\n\t\t\tif (original && !tsconfig) logger.warn(`No tsconfig found in ${blue(cwd)}`);\n\t\t} else {\n\t\t\tconst tsconfigPath = path.resolve(cwd, tsconfig);\n\t\t\tconst stat = await fsStat(tsconfigPath);\n\t\t\tif (stat?.isFile()) tsconfig = tsconfigPath;\n\t\t\telse if (stat?.isDirectory()) {\n\t\t\t\ttsconfig = findTsconfig(tsconfigPath);\n\t\t\t\tif (!tsconfig) logger.warn(`No tsconfig found in ${blue(tsconfigPath)}`);\n\t\t\t} else {\n\t\t\t\ttsconfig = findTsconfig(cwd, tsconfig);\n\t\t\t\tif (!tsconfig) logger.warn(`tsconfig ${blue(original)} doesn't exist`);\n\t\t\t}\n\t\t}\n\t\tif (tsconfig) logger.info(nameLabel, `tsconfig: ${color(path.relative(cwd, tsconfig))}`);\n\t}\n\treturn tsconfig;\n}\n\n//#endregion\n//#region src/utils/package.ts\nconst debug$2 = createDebug(\"tsdown:package\");\nasync function readPackageJson(dir) {\n\tconst packageJsonPath = up$1({ cwd: dir });\n\tif (!packageJsonPath) return;\n\tdebug$2(\"Reading package.json:\", packageJsonPath);\n\tconst contents = await readFile(packageJsonPath, \"utf8\");\n\treturn {\n\t\t...JSON.parse(contents),\n\t\tpackageJsonPath\n\t};\n}\nfunction getPackageType(pkg) {\n\tif (pkg?.type) {\n\t\tif (![\"module\", \"commonjs\"].includes(pkg.type)) throw new Error(`Invalid package.json type: ${pkg.type}`);\n\t\treturn pkg.type;\n\t}\n}\nfunction normalizeFormat(format) {\n\tswitch (format) {\n\t\tcase \"es\":\n\t\tcase \"esm\":\n\t\tcase \"module\": return \"es\";\n\t\tcase \"cjs\":\n\t\tcase \"commonjs\": return \"cjs\";\n\t\tdefault: return format;\n\t}\n}\n\n//#endregion\n//#region src/config/file.ts\nconst debug$1 = createDebug(\"tsdown:config:file\");\nasync function loadViteConfig(prefix, cwd, configLoader) {\n\tconst loader = resolveConfigLoader(configLoader);\n\tdebug$1(\"Loading Vite config via loader: \", loader);\n\tconst parser = createParser(loader);\n\tconst [result] = await createConfigCoreLoader({\n\t\tsources: [{\n\t\t\tfiles: [`${prefix}.config`],\n\t\t\textensions: [\n\t\t\t\t\"js\",\n\t\t\t\t\"mjs\",\n\t\t\t\t\"ts\",\n\t\t\t\t\"cjs\",\n\t\t\t\t\"mts\",\n\t\t\t\t\"cts\"\n\t\t\t],\n\t\t\tparser\n\t\t}],\n\t\tcwd\n\t}).load(true);\n\tif (!result) return;\n\tconst { config, source } = result;\n\tglobalLogger.info(`Using Vite config: ${underline(source)}`);\n\tconst resolved = await config;\n\tif (typeof resolved === \"function\") return resolved({\n\t\tcommand: \"build\",\n\t\tmode: \"production\"\n\t});\n\treturn resolved;\n}\nconst configPrefix = \"tsdown.config\";\nasync function loadConfigFile(inlineConfig, workspace) {\n\tlet cwd = inlineConfig.cwd || process.cwd();\n\tlet overrideConfig = false;\n\tlet { config: filePath } = inlineConfig;\n\tif (filePath === false) return { configs: [{}] };\n\tif (typeof filePath === \"string\") {\n\t\tconst stats = await fsStat(filePath);\n\t\tif (stats) {\n\t\t\tconst resolved = path.resolve(filePath);\n\t\t\tif (stats.isFile()) {\n\t\t\t\toverrideConfig = true;\n\t\t\t\tfilePath = resolved;\n\t\t\t\tcwd = path.dirname(filePath);\n\t\t\t} else if (stats.isDirectory()) cwd = resolved;\n\t\t}\n\t}\n\tconst loader = resolveConfigLoader(inlineConfig.configLoader);\n\tdebug$1(\"Using config loader:\", loader);\n\tconst parser = createParser(loader);\n\tconst [result] = await createConfigCoreLoader({\n\t\tsources: overrideConfig ? [{\n\t\t\tfiles: [filePath],\n\t\t\textensions: [],\n\t\t\tparser\n\t\t}] : [{\n\t\t\tfiles: [configPrefix],\n\t\t\textensions: [\n\t\t\t\t\"ts\",\n\t\t\t\t\"mts\",\n\t\t\t\t\"cts\",\n\t\t\t\t\"js\",\n\t\t\t\t\"mjs\",\n\t\t\t\t\"cjs\",\n\t\t\t\t\"json\"\n\t\t\t],\n\t\t\tparser\n\t\t}, {\n\t\t\tfiles: [\"package.json\"],\n\t\t\tparser\n\t\t}],\n\t\tcwd,\n\t\tstopAt: workspace && path.dirname(workspace)\n\t}).load(true);\n\tlet exported = [];\n\tlet file;\n\tif (result) {\n\t\t({config: exported, source: file} = result);\n\t\tglobalLogger.info(`config file: ${underline(file)}`, loader === \"native\" ? \"\" : `(${loader})`);\n\t\texported = await exported;\n\t\tif (typeof exported === \"function\") exported = await exported(inlineConfig, { ci: is_in_ci_default });\n\t}\n\texported = toArray(exported);\n\tif (exported.length === 0) exported.push({});\n\tif (exported.some((config) => typeof config === \"function\")) throw new Error(\"Function should not be nested within multiple tsdown configurations. It must be at the top level.\\nExample: export default defineConfig(() => [...])\");\n\treturn {\n\t\tconfigs: exported.map((config) => ({\n\t\t\t...config,\n\t\t\tcwd: config.cwd ? path.resolve(cwd, config.cwd) : cwd\n\t\t})),\n\t\tfile\n\t};\n}\nconst isBun = !!process.versions.bun;\nconst nativeTS = process.features.typescript || process.versions.deno;\nconst autoLoader = isBun || nativeTS && isSupported ? \"native\" : \"unrun\";\nfunction resolveConfigLoader(configLoader = \"auto\") {\n\tif (configLoader === \"auto\") return autoLoader;\n\telse return configLoader === \"native\" ? \"native\" : \"unrun\";\n}\nfunction createParser(loader) {\n\treturn async (filepath) => {\n\t\tconst basename = path.basename(filepath);\n\t\tconst isPkgJson = basename === \"package.json\";\n\t\tif (basename === configPrefix || isPkgJson || basename.endsWith(\".json\")) {\n\t\t\tconst contents = await readFile(filepath, \"utf8\");\n\t\t\tconst parsed = JSON.parse(contents);\n\t\t\tif (isPkgJson) return parsed?.tsdown;\n\t\t\treturn parsed;\n\t\t}\n\t\tif (loader === \"native\") return nativeImport(filepath);\n\t\treturn unrunImport(filepath);\n\t};\n}\nasync function nativeImport(id) {\n\tconst url = pathToFileURL(id);\n\tconst importAttributes = Object.create(null);\n\tif (isSupported) {\n\t\timportAttributes.cache = \"no\";\n\t\tinit({ skipNodeModules: true });\n\t} else if (!isBun) url.searchParams.set(\"no-cache\", crypto.randomUUID());\n\tconst mod = await import(url.href, { with: importAttributes }).catch((error) => {\n\t\tif (error?.message?.includes?.(\"Cannot find module\")) throw new Error(`Failed to load the config file. Try setting the --config-loader CLI flag to \\`unrun\\`.\\n\\n${error.message}`, { cause: error });\n\t\telse throw error;\n\t});\n\treturn mod.default || mod;\n}\nasync function unrunImport(id) {\n\tconst { unrun } = await import(\"unrun\");\n\tconst { module } = await unrun({ path: pathToFileURL(id).href });\n\treturn module;\n}\n\n//#endregion\n//#region src/config/options.ts\nconst debug = createDebug(\"tsdown:config:options\");\nconst parseEnv = process.getBuiltinModule(\"node:util\").parseEnv;\n/**\n* Resolve user config into resolved configs\n*\n* **Internal API, not for public use**\n* @private\n*/\nasync function resolveUserConfig(userConfig, inlineConfig) {\n\tlet { entry, format = [\"es\"], plugins = [], clean = true, logLevel = \"info\", failOnWarn = \"ci-only\", customLogger, treeshake = true, platform = \"node\", outDir = \"dist\", sourcemap = false, dts, unused = false, watch = false, ignoreWatch, shims = false, skipNodeModulesBundle = false, publint = false, attw = false, fromVite, alias, tsconfig, report = true, target, env = {}, envFile, envPrefix = \"TSDOWN_\", copy, publicDir, hash = true, cwd = process.cwd(), name, workspace, external, noExternal, exports = false, bundle, unbundle = typeof bundle === \"boolean\" ? !bundle : false, removeNodeProtocol, nodeProtocol, cjsDefault = true, globImport = true, inlineOnly, css, fixedExtension = platform === \"node\", devtools = false, write = true } = userConfig;\n\tconst pkg = await readPackageJson(cwd);\n\tif (workspace) name ||= pkg?.name;\n\tconst color = generateColor(name);\n\tconst nameLabel = getNameLabel(color, name);\n\tif (!filterConfig(inlineConfig.filter, cwd, name)) {\n\t\tdebug(\"[filter] skipping config %s\", cwd);\n\t\treturn [];\n\t}\n\tconst logger = createLogger(logLevel, {\n\t\tcustomLogger,\n\t\tfailOnWarn: resolveFeatureOption(failOnWarn, true)\n\t});\n\tif (typeof bundle === \"boolean\") logger.warn(\"`bundle` option is deprecated. Use `unbundle` instead.\");\n\tif (removeNodeProtocol) {\n\t\tif (nodeProtocol) throw new TypeError(\"`removeNodeProtocol` is deprecated. Please only use `nodeProtocol` instead.\");\n\t\tlogger.warn(\"`removeNodeProtocol` is deprecated. Use `nodeProtocol: \\\"strip\\\"` instead.\");\n\t}\n\tnodeProtocol = nodeProtocol ?? (removeNodeProtocol ? \"strip\" : false);\n\toutDir = path.resolve(cwd, outDir);\n\tclean = resolveClean(clean, outDir, cwd);\n\tconst resolvedEntry = await resolveEntry(logger, entry, cwd, color, nameLabel);\n\tif (dts == null) dts = !!(pkg?.types || pkg?.typings || hasExportsTypes(pkg));\n\ttarget = resolveTarget(logger, target, color, pkg, nameLabel);\n\ttsconfig = await resolveTsconfig(logger, tsconfig, cwd, color, nameLabel);\n\tif (typeof external === \"string\") external = resolveRegex(external);\n\tif (typeof noExternal === \"string\") noExternal = resolveRegex(noExternal);\n\tpublint = resolveFeatureOption(publint, {});\n\tattw = resolveFeatureOption(attw, {});\n\texports = resolveFeatureOption(exports, {});\n\tunused = resolveFeatureOption(unused, {});\n\treport = resolveFeatureOption(report, {});\n\tdts = resolveFeatureOption(dts, {});\n\tif (!pkg) {\n\t\tif (exports) throw new Error(\"`package.json` not found, cannot write exports\");\n\t\tif (publint) logger.warn(nameLabel, \"publint is enabled but package.json is not found\");\n\t\tif (attw) logger.warn(nameLabel, \"attw is enabled but package.json is not found\");\n\t}\n\tif (publicDir) if (copy) throw new TypeError(\"`publicDir` is deprecated. Cannot be used with `copy`\");\n\telse logger.warn(`${blue`publicDir`} is deprecated. Use ${blue`copy`} instead.`);\n\tenvPrefix = toArray(envPrefix);\n\tif (envPrefix.includes(\"\")) logger.warn(\"`envPrefix` includes an empty string; filtering is disabled. All environment variables from the env file and process.env will be injected into the build. Ensure this is intended to avoid accidental leakage of sensitive information.\");\n\tconst envFromProcess = filterEnv(process.env, envPrefix);\n\tif (envFile) {\n\t\tif (!parseEnv) throw new Error(`Your runtime does not support 'util.parseEnv()'. Please upgrade to Node.js v20.12.0 or later.`);\n\t\tconst resolvedPath = path.resolve(cwd, envFile);\n\t\tlogger.info(nameLabel, `env file: ${color(resolvedPath)}`);\n\t\tenv = {\n\t\t\t...filterEnv(parseEnv(await readFile(resolvedPath, \"utf8\")), envPrefix),\n\t\t\t...envFromProcess,\n\t\t\t...env\n\t\t};\n\t} else env = {\n\t\t...envFromProcess,\n\t\t...env\n\t};\n\tdebug(`Environment variables: %O`, env);\n\tif (fromVite) {\n\t\tconst viteUserConfig = await loadViteConfig(fromVite === true ? \"vite\" : fromVite, cwd, inlineConfig.configLoader);\n\t\tif (viteUserConfig) {\n\t\t\tconst viteAlias = viteUserConfig.resolve?.alias;\n\t\t\tif (Array.isArray(viteAlias)) throw new TypeError(\"Unsupported resolve.alias in Vite config. Use object instead of array\");\n\t\t\tif (viteAlias) alias = {\n\t\t\t\t...alias,\n\t\t\t\t...viteAlias\n\t\t\t};\n\t\t\tif (viteUserConfig.plugins) plugins = [viteUserConfig.plugins, plugins];\n\t\t}\n\t}\n\tignoreWatch = toArray(ignoreWatch).map((ignore) => {\n\t\tignore = resolveRegex(ignore);\n\t\tif (typeof ignore === \"string\") return path.resolve(cwd, ignore);\n\t\treturn ignore;\n\t});\n\tif (noExternal != null && typeof noExternal !== \"function\") {\n\t\tconst noExternalPatterns = toArray(noExternal);\n\t\tnoExternal = (id) => matchPattern(id, noExternalPatterns);\n\t}\n\tif (inlineOnly != null && inlineOnly !== false) inlineOnly = toArray(inlineOnly);\n\tdevtools = resolveFeatureOption(devtools, {});\n\tif (devtools) if (watch) {\n\t\tif (devtools.ui) logger.warn(\"Devtools UI is not supported in watch mode, disabling it.\");\n\t\tdevtools.ui = false;\n\t} else devtools.ui ??= !!pkgExists(\"@vitejs/devtools/cli\");\n\tconst config = {\n\t\t...userConfig,\n\t\talias,\n\t\tattw,\n\t\tcjsDefault,\n\t\tclean,\n\t\tcopy: publicDir || copy,\n\t\tcss: resolveCssOptions(css),\n\t\tcwd,\n\t\tdevtools,\n\t\tdts,\n\t\tentry: resolvedEntry,\n\t\tenv,\n\t\texports,\n\t\texternal,\n\t\tfixedExtension,\n\t\tglobImport,\n\t\thash,\n\t\tignoreWatch,\n\t\tinlineOnly,\n\t\tlogger,\n\t\tname,\n\t\tnameLabel,\n\t\tnodeProtocol,\n\t\tnoExternal,\n\t\toutDir,\n\t\tpkg,\n\t\tplatform,\n\t\tplugins,\n\t\tpublint,\n\t\treport,\n\t\tshims,\n\t\tskipNodeModulesBundle,\n\t\tsourcemap,\n\t\ttarget,\n\t\ttreeshake,\n\t\ttsconfig,\n\t\tunbundle,\n\t\tunused,\n\t\twatch,\n\t\twrite\n\t};\n\tconst objectFormat = typeof format === \"object\" && !Array.isArray(format);\n\treturn (objectFormat ? Object.keys(format) : resolveComma(toArray(format, \"es\"))).map((fmt, idx) => {\n\t\tconst once = idx === 0;\n\t\tconst overrides = objectFormat ? format[fmt] : void 0;\n\t\treturn {\n\t\t\t...config,\n\t\t\tcopy: once ? config.copy : void 0,\n\t\t\tonSuccess: once ? config.onSuccess : void 0,\n\t\t\tformat: normalizeFormat(fmt),\n\t\t\t...overrides\n\t\t};\n\t});\n}\n/** filter env variables by prefixes */\nfunction filterEnv(envDict, envPrefixes) {\n\tconst env = {};\n\tfor (const [key, value] of Object.entries(envDict)) if (value != null && envPrefixes.some((prefix) => key.startsWith(prefix))) env[key] = value;\n\treturn env;\n}\nconst defu = createDefu((obj, key, value) => {\n\tif (Array.isArray(obj[key]) && Array.isArray(value)) {\n\t\tobj[key] = value;\n\t\treturn true;\n\t}\n});\nfunction mergeConfig(defaults, overrides) {\n\treturn defu(overrides, defaults);\n}\nasync function mergeUserOptions(defaults, user, args) {\n\tconst userOutputOptions = typeof user === \"function\" ? await user(defaults, ...args) : user;\n\tif (!userOutputOptions) return defaults;\n\treturn defu(userOutputOptions, defaults);\n}\nfunction resolveFeatureOption(value, defaults) {\n\tif (typeof value === \"object\" && value !== null) return resolveCIOption(value.enabled ?? true) ? value : false;\n\treturn resolveCIOption(value) ? defaults : false;\n}\nfunction resolveCIOption(value) {\n\tif (value === \"ci-only\") return is_in_ci_default ? true : false;\n\tif (value === \"local-only\") return is_in_ci_default ? false : true;\n\treturn value;\n}\nfunction filterConfig(filter, configCwd, name) {\n\tif (!filter) return true;\n\tlet cwd = path.relative(process.cwd(), configCwd);\n\tif (cwd === \"\") cwd = \".\";\n\tif (filter instanceof RegExp) return name && filter.test(name) || filter.test(cwd);\n\treturn toArray(filter).some((value) => name && name === value || cwd === value);\n}\n\n//#endregion\nexport { getPackageType as a, cleanChunks as c, loadConfigFile as i, cleanOutDir as l, mergeUserOptions as n, writeExports as o, resolveUserConfig as r, defaultCssBundleName as s, mergeConfig as t };","//#region src/utils/misc.ts\nfunction arraify(value) {\n\treturn Array.isArray(value) ? value : [value];\n}\nfunction isPromiseLike(value) {\n\treturn value && (typeof value === \"object\" || typeof value === \"function\") && typeof value.then === \"function\";\n}\nfunction unimplemented(info) {\n\tif (info) throw new Error(`unimplemented: ${info}`);\n\tthrow new Error(\"unimplemented\");\n}\nfunction unreachable(info) {\n\tif (info) throw new Error(`unreachable: ${info}`);\n\tthrow new Error(\"unreachable\");\n}\nfunction unsupported(info) {\n\tthrow new Error(`UNSUPPORTED: ${info}`);\n}\nfunction noop(..._args) {}\n\n//#endregion\nexport { unreachable as a, unimplemented as i, isPromiseLike as n, unsupported as o, noop as r, arraify as t };","import { c as matchPattern, f as resolveComma, h as toArray, l as noop, m as slash, o as prettyFormat } from \"./logger-DwCm1t8D.mjs\";\nimport { i as fsExists, n as formatBytes } from \"./format-BD2e_4xO.mjs\";\nimport { builtinModules, isBuiltin } from \"node:module\";\nimport { chmod } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { blue, bold, dim, green, underline, yellow } from \"ansis\";\nimport { createDebug } from \"obug\";\nimport { RE_DTS, RE_NODE_MODULES } from \"rolldown-plugin-dts/filename\";\nimport { promisify } from \"node:util\";\nimport { and, id, importerId, include } from \"rolldown/filter\";\nimport { Buffer } from \"node:buffer\";\nimport { brotliCompress, gzip } from \"node:zlib\";\n\n//#region src/features/shims.ts\nconst shimFile = path.resolve(import.meta.dirname, \"..\", \"esm-shims.js\");\nfunction getShimsInject(format, platform) {\n\tif (format === \"es\" && platform === \"node\") return {\n\t\t__dirname: [shimFile, \"__dirname\"],\n\t\t__filename: [shimFile, \"__filename\"]\n\t};\n}\n\n//#endregion\n//#region src/features/dep.ts\nconst debug$1 = createDebug(\"tsdown:dep\");\nfunction DepPlugin({ pkg, noExternal, inlineOnly, skipNodeModulesBundle, logger, nameLabel }) {\n\tconst deps = pkg && Array.from(getProductionDeps(pkg));\n\treturn {\n\t\tname: \"tsdown:external\",\n\t\tresolveId: {\n\t\t\tfilter: [include(and(id(/^[^.]/), importerId(/./)))],\n\t\t\tasync handler(id, importer, extraOptions) {\n\t\t\t\tif (extraOptions.isEntry) return;\n\t\t\t\tconst shouldExternal = await externalStrategy(this, id, importer, extraOptions);\n\t\t\t\tconst nodeBuiltinModule = isBuiltin(id);\n\t\t\t\tdebug$1(\"shouldExternal: %o = %o\", id, shouldExternal);\n\t\t\t\tif (shouldExternal === true || shouldExternal === \"absolute\") return {\n\t\t\t\t\tid,\n\t\t\t\t\texternal: shouldExternal,\n\t\t\t\t\tmoduleSideEffects: nodeBuiltinModule ? false : void 0\n\t\t\t\t};\n\t\t\t}\n\t\t},\n\t\tgenerateBundle: inlineOnly === false ? void 0 : {\n\t\t\torder: \"post\",\n\t\t\thandler(options, bundle) {\n\t\t\t\tconst deps = /* @__PURE__ */ new Set();\n\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\t\tif (chunk.type === \"asset\") continue;\n\t\t\t\t\tfor (const id of chunk.moduleIds) {\n\t\t\t\t\t\tif (!RE_NODE_MODULES.test(id)) continue;\n\t\t\t\t\t\tconst parts = slash(id).split(\"/node_modules/\").at(-1)?.split(\"/\");\n\t\t\t\t\t\tif (!parts) continue;\n\t\t\t\t\t\tlet dep;\n\t\t\t\t\t\tif (parts[0][0] === \"@\") dep = `${parts[0]}/${parts[1]}`;\n\t\t\t\t\t\telse dep = parts[0];\n\t\t\t\t\t\tdeps.add(dep);\n\t\t\t\t\t\tconst module = this.getModuleInfo(id);\n\t\t\t\t\t\tif (module) importers.set(dep, new Set([...module.importers, ...importers.get(dep) || []]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdebug$1(\"found deps in bundle: %o\", deps);\n\t\t\t\tif (inlineOnly) {\n\t\t\t\t\tconst errors = Array.from(deps).filter((dep) => !matchPattern(dep, inlineOnly)).map((dep) => `${yellow(dep)} is located in ${blue`node_modules`} but is not included in ${blue`inlineOnly`} option.\\nTo fix this, either add it to ${blue`inlineOnly`}, declare it as a production or peer dependency in your package.json, or externalize it manually.\\nImported by\\n${[...importers.get(dep) || []].map((s) => `- ${underline(s)}`).join(\"\\n\")}`);\n\t\t\t\t\tif (errors.length) this.error(errors.join(\"\\n\\n\"));\n\t\t\t\t} else if (deps.size) logger.warn(nameLabel, `Consider adding ${blue`inlineOnly`} option to avoid unintended bundling of dependencies, or set ${blue`inlineOnly: false`} to disable this warning.\\nDetected dependencies in bundle:\\n${Array.from(deps).map((dep) => `- ${yellow(dep)}`).join(\"\\n\")}`);\n\t\t\t}\n\t\t}\n\t};\n\t/**\n\t* - `true`: always external\n\t* - `false`: skip, let other plugins handle it\n\t* - `'absolute'`: external as absolute path\n\t* - `'no-external'`: skip, but mark as non-external for inlineOnly check\n\t*/\n\tasync function externalStrategy(context, id, importer, extraOptions) {\n\t\tif (id === shimFile) return false;\n\t\tif (noExternal?.(id, importer)) return \"no-external\";\n\t\tif (skipNodeModulesBundle) {\n\t\t\tconst resolved = await context.resolve(id, importer, extraOptions);\n\t\t\tif (resolved && (resolved.external || RE_NODE_MODULES.test(resolved.id))) return true;\n\t\t}\n\t\tif (deps && (deps.includes(id) || deps.some((dep) => id.startsWith(`${dep}/`)))) return true;\n\t\treturn false;\n\t}\n}\nfunction getProductionDeps(pkg) {\n\treturn new Set([...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})]);\n}\n\n//#endregion\n//#region src/features/node-protocol.ts\n/**\n* The `node:` protocol was added in Node.js v14.18.0.\n* @see https://nodejs.org/api/esm.html#node-imports\n*/\nfunction NodeProtocolPlugin(nodeProtocolOption) {\n\tconst modulesWithoutProtocol = builtinModules.filter((mod) => !mod.startsWith(\"node:\"));\n\treturn {\n\t\tname: `tsdown:node-protocol`,\n\t\tresolveId: {\n\t\t\torder: \"pre\",\n\t\t\tfilter: { id: nodeProtocolOption === \"strip\" ? new RegExp(`^node:(${modulesWithoutProtocol.join(\"|\")})$`) : new RegExp(`^(${modulesWithoutProtocol.join(\"|\")})$`) },\n\t\t\thandler: nodeProtocolOption === \"strip\" ? (id) => {\n\t\t\t\treturn {\n\t\t\t\t\tid: id.slice(5),\n\t\t\t\t\texternal: true,\n\t\t\t\t\tmoduleSideEffects: false\n\t\t\t\t};\n\t\t\t} : (id) => {\n\t\t\t\treturn {\n\t\t\t\t\tid: `node:${id}`,\n\t\t\t\t\texternal: true,\n\t\t\t\t\tmoduleSideEffects: false\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t};\n}\n\n//#endregion\n//#region src/features/report.ts\nconst debug = createDebug(\"tsdown:report\");\nconst brotliCompressAsync = promisify(brotliCompress);\nconst gzipAsync = promisify(gzip);\nconst defaultOptions = {\n\tgzip: true,\n\tbrotli: false,\n\tmaxCompressSize: 1e6\n};\nfunction ReportPlugin(userOptions, logger, cwd, cjsDts, nameLabel, isDualFormat) {\n\tconst options = {\n\t\t...defaultOptions,\n\t\t...userOptions\n\t};\n\treturn {\n\t\tname: \"tsdown:report\",\n\t\tasync writeBundle(outputOptions, bundle) {\n\t\t\tconst outDir = path.relative(cwd, outputOptions.file ? path.resolve(cwd, outputOptions.file, \"..\") : path.resolve(cwd, outputOptions.dir));\n\t\t\tconst sizes = [];\n\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\tconst size = await calcSize(options, chunk);\n\t\t\t\tsizes.push(size);\n\t\t\t}\n\t\t\tconst filenameLength = Math.max(...sizes.map((size) => size.filename.length));\n\t\t\tconst rawTextLength = Math.max(...sizes.map((size) => size.rawText.length));\n\t\t\tconst gzipTextLength = Math.max(...sizes.map((size) => size.gzipText == null ? 0 : size.gzipText.length));\n\t\t\tconst brotliTextLength = Math.max(...sizes.map((size) => size.brotliText == null ? 0 : size.brotliText.length));\n\t\t\tlet totalRaw = 0;\n\t\t\tfor (const size of sizes) {\n\t\t\t\tsize.rawText = size.rawText.padStart(rawTextLength);\n\t\t\t\tsize.gzipText = size.gzipText?.padStart(gzipTextLength);\n\t\t\t\tsize.brotliText = size.brotliText?.padStart(brotliTextLength);\n\t\t\t\ttotalRaw += size.raw;\n\t\t\t}\n\t\t\tsizes.sort((a, b) => {\n\t\t\t\tif (a.dts !== b.dts) return a.dts ? 1 : -1;\n\t\t\t\tif (a.isEntry !== b.isEntry) return a.isEntry ? -1 : 1;\n\t\t\t\treturn b.raw - a.raw;\n\t\t\t});\n\t\t\tconst formatLabel = isDualFormat && prettyFormat(cjsDts ? \"cjs\" : outputOptions.format);\n\t\t\tfor (const size of sizes) {\n\t\t\t\tconst filenameColor = size.dts ? green : noop;\n\t\t\t\tconst filename = path.normalize(size.filename);\n\t\t\t\tlogger.info(nameLabel, formatLabel, dim(outDir + path.sep) + filenameColor((size.isEntry ? bold : noop)(filename)), ` `.repeat(filenameLength - size.filename.length), dim(size.rawText), options.gzip && size.gzipText && dim`│ gzip: ${size.gzipText}`, options.brotli && size.brotliText && dim`│ brotli: ${size.brotliText}`);\n\t\t\t}\n\t\t\tconst totalSizeText = formatBytes(totalRaw);\n\t\t\tlogger.info(nameLabel, formatLabel, `${sizes.length} files, total: ${totalSizeText}`);\n\t\t}\n\t};\n}\nasync function calcSize(options, chunk) {\n\tdebug(`Calculating size for`, chunk.fileName);\n\tconst content = chunk.type === \"chunk\" ? chunk.code : chunk.source;\n\tconst raw = Buffer.byteLength(content, \"utf8\");\n\tdebug(\"[size]\", chunk.fileName, raw);\n\tlet gzip = Infinity;\n\tlet brotli = Infinity;\n\tif (raw > options.maxCompressSize) debug(chunk.fileName, \"file size exceeds limit, skip gzip/brotli\");\n\telse {\n\t\tif (options.gzip) {\n\t\t\tgzip = (await gzipAsync(content)).length;\n\t\t\tdebug(\"[gzip]\", chunk.fileName, gzip);\n\t\t}\n\t\tif (options.brotli) {\n\t\t\tbrotli = (await brotliCompressAsync(content)).length;\n\t\t\tdebug(\"[brotli]\", chunk.fileName, brotli);\n\t\t}\n\t}\n\treturn {\n\t\tfilename: chunk.fileName,\n\t\tdts: RE_DTS.test(chunk.fileName),\n\t\tisEntry: chunk.type === \"chunk\" && chunk.isEntry,\n\t\traw,\n\t\trawText: formatBytes(raw),\n\t\tgzip,\n\t\tgzipText: formatBytes(gzip),\n\t\tbrotli,\n\t\tbrotliText: formatBytes(brotli)\n\t};\n}\n\n//#endregion\n//#region src/features/shebang.ts\nconst RE_SHEBANG = /^#!.*/;\nfunction ShebangPlugin(logger, cwd, nameLabel, isDualFormat) {\n\treturn {\n\t\tname: \"tsdown:shebang\",\n\t\tasync writeBundle(options, bundle) {\n\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\tif (chunk.type !== \"chunk\" || !chunk.isEntry) continue;\n\t\t\t\tif (!RE_SHEBANG.test(chunk.code)) continue;\n\t\t\t\tconst filepath = path.resolve(cwd, options.file || path.join(options.dir, chunk.fileName));\n\t\t\t\tif (await fsExists(filepath)) {\n\t\t\t\t\tlogger.info(nameLabel, isDualFormat && prettyFormat(options.format), `Granting execute permission to ${underline(path.relative(cwd, filepath))}`);\n\t\t\t\t\tawait chmod(filepath, 493);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\n//#endregion\n//#region src/utils/chunks.ts\nfunction addOutDirToChunks(chunks, outDir) {\n\treturn chunks.map((chunk) => {\n\t\tchunk.outDir = outDir;\n\t\treturn chunk;\n\t});\n}\n\n//#endregion\n//#region src/features/watch.ts\nconst endsWithConfig = /[\\\\/](?:tsdown\\.config.*|package\\.json|tsconfig\\.json)$/;\nfunction WatchPlugin(configFiles, { config, chunks }) {\n\treturn {\n\t\tname: \"tsdown:watch\",\n\t\toptions: config.ignoreWatch.length ? (inputOptions) => {\n\t\t\tinputOptions.watch ||= {};\n\t\t\tinputOptions.watch.exclude = toArray(inputOptions.watch.exclude);\n\t\t\tinputOptions.watch.exclude.push(...config.ignoreWatch);\n\t\t} : void 0,\n\t\tbuildStart() {\n\t\t\tconfig.tsconfig && this.addWatchFile(config.tsconfig);\n\t\t\tfor (const file of configFiles) this.addWatchFile(file);\n\t\t\tif (typeof config.watch !== \"boolean\") for (const file of resolveComma(toArray(config.watch))) this.addWatchFile(file);\n\t\t\tif (config.pkg) this.addWatchFile(config.pkg.packageJsonPath);\n\t\t},\n\t\tgenerateBundle: {\n\t\t\torder: \"post\",\n\t\t\thandler(outputOptions, bundle) {\n\t\t\t\tchunks.push(...addOutDirToChunks(Object.values(bundle), config.outDir));\n\t\t\t}\n\t\t}\n\t};\n}\n\n//#endregion\nexport { ReportPlugin as a, getShimsInject as c, ShebangPlugin as i, endsWithConfig as n, NodeProtocolPlugin as o, addOutDirToChunks as r, DepPlugin as s, WatchPlugin as t };","import { createRequire } from \"node:module\";\n\n//#region rolldown:runtime\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\t\tkey = keys[i];\n\t\t\tif (!__hasOwnProp.call(to, key) && key !== except) {\n\t\t\t\t__defProp(to, key, {\n\t\t\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\nvar __require = /* @__PURE__ */ createRequire(import.meta.url);\n\n//#endregion\n//#region src/webcontainer-fallback.cjs\nvar require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tconst fs = __require(\"node:fs\");\n\tconst childProcess = __require(\"node:child_process\");\n\tconst version = JSON.parse(fs.readFileSync(__require.resolve(\"rolldown/package.json\"), \"utf-8\")).version;\n\tconst baseDir = `/tmp/rolldown-${version}`;\n\tconst bindingEntry = `${baseDir}/node_modules/@rolldown/binding-wasm32-wasi/rolldown-binding.wasi.cjs`;\n\tif (!fs.existsSync(bindingEntry)) {\n\t\tconst bindingPkg = `@rolldown/binding-wasm32-wasi@${version}`;\n\t\tfs.rmSync(baseDir, {\n\t\t\trecursive: true,\n\t\t\tforce: true\n\t\t});\n\t\tfs.mkdirSync(baseDir, { recursive: true });\n\t\tconsole.log(`[rolldown] Downloading ${bindingPkg} on WebContainer...`);\n\t\tchildProcess.execFileSync(\"pnpm\", [\"i\", bindingPkg], {\n\t\t\tcwd: baseDir,\n\t\t\tstdio: \"inherit\"\n\t\t});\n\t}\n\tmodule.exports = __require(bindingEntry);\n}));\n\n//#endregion\n//#region src/binding.cjs\nvar require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {\n\tconst { readFileSync } = __require(\"node:fs\");\n\tlet nativeBinding = null;\n\tconst loadErrors = [];\n\tconst isMusl = () => {\n\t\tlet musl = false;\n\t\tif (process.platform === \"linux\") {\n\t\t\tmusl = isMuslFromFilesystem();\n\t\t\tif (musl === null) musl = isMuslFromReport();\n\t\t\tif (musl === null) musl = isMuslFromChildProcess();\n\t\t}\n\t\treturn musl;\n\t};\n\tconst isFileMusl = (f) => f.includes(\"libc.musl-\") || f.includes(\"ld-musl-\");\n\tconst isMuslFromFilesystem = () => {\n\t\ttry {\n\t\t\treturn readFileSync(\"/usr/bin/ldd\", \"utf-8\").includes(\"musl\");\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t};\n\tconst isMuslFromReport = () => {\n\t\tlet report = null;\n\t\tif (typeof process.report?.getReport === \"function\") {\n\t\t\tprocess.report.excludeNetwork = true;\n\t\t\treport = process.report.getReport();\n\t\t}\n\t\tif (!report) return null;\n\t\tif (report.header && report.header.glibcVersionRuntime) return false;\n\t\tif (Array.isArray(report.sharedObjects)) {\n\t\t\tif (report.sharedObjects.some(isFileMusl)) return true;\n\t\t}\n\t\treturn false;\n\t};\n\tconst isMuslFromChildProcess = () => {\n\t\ttry {\n\t\t\treturn __require(\"child_process\").execSync(\"ldd --version\", { encoding: \"utf8\" }).includes(\"musl\");\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n\tfunction requireNative() {\n\t\tif (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {\n\t\t\treturn __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);\n\t\t} catch (err) {\n\t\t\tloadErrors.push(err);\n\t\t}\n\t\telse if (process.platform === \"android\") if (process.arch === \"arm64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.android-arm64.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-android-arm64\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-android-arm64/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else if (process.arch === \"arm\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.android-arm-eabi.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-android-arm-eabi\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-android-arm-eabi/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));\n\t\telse if (process.platform === \"win32\") if (process.arch === \"x64\") if (process.config?.variables?.shlib_suffix === \"dll.a\" || process.config?.variables?.node_target_type === \"shared_library\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.win32-x64-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-win32-x64-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-win32-x64-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.win32-x64-msvc.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-win32-x64-msvc\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-win32-x64-msvc/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t}\n\t\telse if (process.arch === \"ia32\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.win32-ia32-msvc.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-win32-ia32-msvc\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-win32-ia32-msvc/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else if (process.arch === \"arm64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.win32-arm64-msvc.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-win32-arm64-msvc\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-win32-arm64-msvc/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));\n\t\telse if (process.platform === \"darwin\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.darwin-universal.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-darwin-universal\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-darwin-universal/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\tif (process.arch === \"x64\") {\n\t\t\t\ttry {\n\t\t\t\t\treturn __require(\"./rolldown-binding.darwin-x64.node\");\n\t\t\t\t} catch (e) {\n\t\t\t\t\tloadErrors.push(e);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst binding = __require(\"@rolldown/binding-darwin-x64\");\n\t\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-darwin-x64/package.json\").version;\n\t\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\t\treturn binding;\n\t\t\t\t} catch (e) {\n\t\t\t\t\tloadErrors.push(e);\n\t\t\t\t}\n\t\t\t} else if (process.arch === \"arm64\") {\n\t\t\t\ttry {\n\t\t\t\t\treturn __require(\"./rolldown-binding.darwin-arm64.node\");\n\t\t\t\t} catch (e) {\n\t\t\t\t\tloadErrors.push(e);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst binding = __require(\"@rolldown/binding-darwin-arm64\");\n\t\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-darwin-arm64/package.json\").version;\n\t\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\t\treturn binding;\n\t\t\t\t} catch (e) {\n\t\t\t\t\tloadErrors.push(e);\n\t\t\t\t}\n\t\t\t} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on macOS: ${process.arch}`));\n\t\t} else if (process.platform === \"freebsd\") if (process.arch === \"x64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.freebsd-x64.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-freebsd-x64\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-freebsd-x64/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else if (process.arch === \"arm64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.freebsd-arm64.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-freebsd-arm64\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-freebsd-arm64/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));\n\t\telse if (process.platform === \"linux\") if (process.arch === \"x64\") if (isMusl()) {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-x64-musl.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-x64-musl\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-x64-musl/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn __require(\"../rolldown-binding.linux-x64-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-x64-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-x64-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t}\n\t\telse if (process.arch === \"arm64\") if (isMusl()) {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-arm64-musl.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-arm64-musl\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-arm64-musl/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-arm64-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-arm64-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-arm64-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t}\n\t\telse if (process.arch === \"arm\") if (isMusl()) {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-arm-musleabihf.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-arm-musleabihf\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-arm-musleabihf/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-arm-gnueabihf.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-arm-gnueabihf\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-arm-gnueabihf/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t}\n\t\telse if (process.arch === \"loong64\") if (isMusl()) {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-loong64-musl.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-loong64-musl\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-loong64-musl/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-loong64-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-loong64-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-loong64-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t}\n\t\telse if (process.arch === \"riscv64\") if (isMusl()) {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-riscv64-musl.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-riscv64-musl\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-riscv64-musl/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-riscv64-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-riscv64-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-riscv64-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t}\n\t\telse if (process.arch === \"ppc64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-ppc64-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-ppc64-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-ppc64-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else if (process.arch === \"s390x\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.linux-s390x-gnu.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-linux-s390x-gnu\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-linux-s390x-gnu/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));\n\t\telse if (process.platform === \"openharmony\") if (process.arch === \"arm64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.openharmony-arm64.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-openharmony-arm64\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-openharmony-arm64/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else if (process.arch === \"x64\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.openharmony-x64.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-openharmony-x64\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-openharmony-x64/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else if (process.arch === \"arm\") {\n\t\t\ttry {\n\t\t\t\treturn __require(\"./rolldown-binding.openharmony-arm.node\");\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconst binding = __require(\"@rolldown/binding-openharmony-arm\");\n\t\t\t\tconst bindingPackageVersion = __require(\"@rolldown/binding-openharmony-arm/package.json\").version;\n\t\t\t\tif (bindingPackageVersion !== \"1.0.0-rc.1\" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== \"0\") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);\n\t\t\t\treturn binding;\n\t\t\t} catch (e) {\n\t\t\t\tloadErrors.push(e);\n\t\t\t}\n\t\t} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));\n\t\telse loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));\n\t}\n\tnativeBinding = requireNative();\n\tif (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {\n\t\tlet wasiBinding = null;\n\t\tlet wasiBindingError = null;\n\t\ttry {\n\t\t\twasiBinding = __require(\"../rolldown-binding.wasi.cjs\");\n\t\t\tnativeBinding = wasiBinding;\n\t\t} catch (err) {\n\t\t\tif (process.env.NAPI_RS_FORCE_WASI) wasiBindingError = err;\n\t\t}\n\t\tif (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) try {\n\t\t\twasiBinding = __require(\"@rolldown/binding-wasm32-wasi\");\n\t\t\tnativeBinding = wasiBinding;\n\t\t} catch (err) {\n\t\t\tif (process.env.NAPI_RS_FORCE_WASI) {\n\t\t\t\tif (!wasiBindingError) wasiBindingError = err;\n\t\t\t\telse wasiBindingError.cause = err;\n\t\t\t\tloadErrors.push(err);\n\t\t\t}\n\t\t}\n\t\tif (process.env.NAPI_RS_FORCE_WASI === \"error\" && !wasiBinding) {\n\t\t\tconst error = /* @__PURE__ */ new Error(\"WASI binding not found and NAPI_RS_FORCE_WASI is set to error\");\n\t\t\terror.cause = wasiBindingError;\n\t\t\tthrow error;\n\t\t}\n\t}\n\tif (!nativeBinding && globalThis.process?.versions?.[\"webcontainer\"]) try {\n\t\tnativeBinding = require_webcontainer_fallback();\n\t} catch (err) {\n\t\tloadErrors.push(err);\n\t}\n\tif (!nativeBinding) {\n\t\tif (loadErrors.length > 0) throw new Error(\"Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.\", { cause: loadErrors.reduce((err, cur) => {\n\t\t\tcur.cause = err;\n\t\t\treturn cur;\n\t\t}) });\n\t\tthrow new Error(`Failed to load native binding`);\n\t}\n\tmodule.exports = nativeBinding;\n\tmodule.exports.minify = nativeBinding.minify;\n\tmodule.exports.minifySync = nativeBinding.minifySync;\n\tmodule.exports.Severity = nativeBinding.Severity;\n\tmodule.exports.ParseResult = nativeBinding.ParseResult;\n\tmodule.exports.ExportExportNameKind = nativeBinding.ExportExportNameKind;\n\tmodule.exports.ExportImportNameKind = nativeBinding.ExportImportNameKind;\n\tmodule.exports.ExportLocalNameKind = nativeBinding.ExportLocalNameKind;\n\tmodule.exports.ImportNameKind = nativeBinding.ImportNameKind;\n\tmodule.exports.parse = nativeBinding.parse;\n\tmodule.exports.parseSync = nativeBinding.parseSync;\n\tmodule.exports.rawTransferSupported = nativeBinding.rawTransferSupported;\n\tmodule.exports.ResolverFactory = nativeBinding.ResolverFactory;\n\tmodule.exports.EnforceExtension = nativeBinding.EnforceExtension;\n\tmodule.exports.ModuleType = nativeBinding.ModuleType;\n\tmodule.exports.sync = nativeBinding.sync;\n\tmodule.exports.HelperMode = nativeBinding.HelperMode;\n\tmodule.exports.isolatedDeclaration = nativeBinding.isolatedDeclaration;\n\tmodule.exports.isolatedDeclarationSync = nativeBinding.isolatedDeclarationSync;\n\tmodule.exports.moduleRunnerTransform = nativeBinding.moduleRunnerTransform;\n\tmodule.exports.moduleRunnerTransformSync = nativeBinding.moduleRunnerTransformSync;\n\tmodule.exports.transform = nativeBinding.transform;\n\tmodule.exports.transformSync = nativeBinding.transformSync;\n\tmodule.exports.BindingBundleEndEventData = nativeBinding.BindingBundleEndEventData;\n\tmodule.exports.BindingBundleErrorEventData = nativeBinding.BindingBundleErrorEventData;\n\tmodule.exports.BindingBundler = nativeBinding.BindingBundler;\n\tmodule.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;\n\tmodule.exports.BindingChunkingContext = nativeBinding.BindingChunkingContext;\n\tmodule.exports.BindingDecodedMap = nativeBinding.BindingDecodedMap;\n\tmodule.exports.BindingDevEngine = nativeBinding.BindingDevEngine;\n\tmodule.exports.BindingMagicString = nativeBinding.BindingMagicString;\n\tmodule.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;\n\tmodule.exports.BindingNormalizedOptions = nativeBinding.BindingNormalizedOptions;\n\tmodule.exports.BindingOutputAsset = nativeBinding.BindingOutputAsset;\n\tmodule.exports.BindingOutputChunk = nativeBinding.BindingOutputChunk;\n\tmodule.exports.BindingPluginContext = nativeBinding.BindingPluginContext;\n\tmodule.exports.BindingRenderedChunk = nativeBinding.BindingRenderedChunk;\n\tmodule.exports.BindingRenderedChunkMeta = nativeBinding.BindingRenderedChunkMeta;\n\tmodule.exports.BindingRenderedModule = nativeBinding.BindingRenderedModule;\n\tmodule.exports.BindingSourceMap = nativeBinding.BindingSourceMap;\n\tmodule.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;\n\tmodule.exports.BindingWatcher = nativeBinding.BindingWatcher;\n\tmodule.exports.BindingWatcherBundler = nativeBinding.BindingWatcherBundler;\n\tmodule.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;\n\tmodule.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;\n\tmodule.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;\n\tmodule.exports.ScheduledBuild = nativeBinding.ScheduledBuild;\n\tmodule.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;\n\tmodule.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;\n\tmodule.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;\n\tmodule.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;\n\tmodule.exports.BindingLogLevel = nativeBinding.BindingLogLevel;\n\tmodule.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;\n\tmodule.exports.BindingPropertyReadSideEffects = nativeBinding.BindingPropertyReadSideEffects;\n\tmodule.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;\n\tmodule.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;\n\tmodule.exports.createTokioRuntime = nativeBinding.createTokioRuntime;\n\tmodule.exports.FilterTokenKind = nativeBinding.FilterTokenKind;\n\tmodule.exports.initTraceSubscriber = nativeBinding.initTraceSubscriber;\n\tmodule.exports.registerPlugins = nativeBinding.registerPlugins;\n\tmodule.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;\n\tmodule.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;\n}));\n\n//#endregion\nexport { __toESM as n, require_binding as t };","//#region src/utils/code-frame.ts\nfunction spaces(index) {\n\tlet result = \"\";\n\twhile (index--) result += \" \";\n\treturn result;\n}\nfunction tabsToSpaces(value) {\n\treturn value.replace(/^\\t+/, (match) => match.split(\"\t\").join(\" \"));\n}\nconst LINE_TRUNCATE_LENGTH = 120;\nconst MIN_CHARACTERS_SHOWN_AFTER_LOCATION = 10;\nconst ELLIPSIS = \"...\";\nfunction getCodeFrame(source, line, column) {\n\tlet lines = source.split(\"\\n\");\n\tif (line > lines.length) return \"\";\n\tconst maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length + MIN_CHARACTERS_SHOWN_AFTER_LOCATION + 3, LINE_TRUNCATE_LENGTH);\n\tconst frameStart = Math.max(0, line - 3);\n\tlet frameEnd = Math.min(line + 2, lines.length);\n\tlines = lines.slice(frameStart, frameEnd);\n\twhile (!/\\S/.test(lines[lines.length - 1])) {\n\t\tlines.pop();\n\t\tframeEnd -= 1;\n\t}\n\tconst digits = String(frameEnd).length;\n\treturn lines.map((sourceLine, index) => {\n\t\tconst isErrorLine = frameStart + index + 1 === line;\n\t\tlet lineNumber = String(index + frameStart + 1);\n\t\twhile (lineNumber.length < digits) lineNumber = ` ${lineNumber}`;\n\t\tlet displayedLine = tabsToSpaces(sourceLine);\n\t\tif (displayedLine.length > maxLineLength) displayedLine = `${displayedLine.slice(0, maxLineLength - 3)}${ELLIPSIS}`;\n\t\tif (isErrorLine) {\n\t\t\tconst indicator = spaces(digits + 2 + tabsToSpaces(sourceLine.slice(0, column)).length) + \"^\";\n\t\t\treturn `${lineNumber}: ${displayedLine}\\n${indicator}`;\n\t\t}\n\t\treturn `${lineNumber}: ${displayedLine}`;\n\t}).join(\"\\n\");\n}\n\n//#endregion\n//#region src/log/locate-character/index.js\n/** @typedef {import('./types').Location} Location */\n/**\n* @param {import('./types').Range} range\n* @param {number} index\n*/\nfunction rangeContains(range, index) {\n\treturn range.start <= index && index < range.end;\n}\n/**\n* @param {string} source\n* @param {import('./types').Options} [options]\n*/\nfunction getLocator(source, options = {}) {\n\tconst { offsetLine = 0, offsetColumn = 0 } = options;\n\tlet start = 0;\n\tconst ranges = source.split(\"\\n\").map((line, i) => {\n\t\tconst end = start + line.length + 1;\n\t\t/** @type {import('./types').Range} */\n\t\tconst range = {\n\t\t\tstart,\n\t\t\tend,\n\t\t\tline: i\n\t\t};\n\t\tstart = end;\n\t\treturn range;\n\t});\n\tlet i = 0;\n\t/**\n\t* @param {string | number} search\n\t* @param {number} [index]\n\t* @returns {Location | undefined}\n\t*/\n\tfunction locator(search, index) {\n\t\tif (typeof search === \"string\") search = source.indexOf(search, index ?? 0);\n\t\tif (search === -1) return void 0;\n\t\tlet range = ranges[i];\n\t\tconst d = search >= range.end ? 1 : -1;\n\t\twhile (range) {\n\t\t\tif (rangeContains(range, search)) return {\n\t\t\t\tline: offsetLine + range.line,\n\t\t\t\tcolumn: offsetColumn + search - range.start,\n\t\t\t\tcharacter: search\n\t\t\t};\n\t\t\ti += d;\n\t\t\trange = ranges[i];\n\t\t}\n\t}\n\treturn locator;\n}\n/**\n* @param {string} source\n* @param {string | number} search\n* @param {import('./types').Options} [options]\n* @returns {Location | undefined}\n*/\nfunction locate(source, search, options) {\n\treturn getLocator(source, options)(search, options && options.startIndex);\n}\n\n//#endregion\n//#region src/log/logs.ts\nconst INVALID_LOG_POSITION = \"INVALID_LOG_POSITION\", PLUGIN_ERROR = \"PLUGIN_ERROR\", INPUT_HOOK_IN_OUTPUT_PLUGIN = \"INPUT_HOOK_IN_OUTPUT_PLUGIN\", CYCLE_LOADING = \"CYCLE_LOADING\", MULTIPLY_NOTIFY_OPTION = \"MULTIPLY_NOTIFY_OPTION\", PARSE_ERROR = \"PARSE_ERROR\", NO_FS_IN_BROWSER = \"NO_FS_IN_BROWSER\";\nfunction logParseError(message, id, pos) {\n\treturn {\n\t\tcode: PARSE_ERROR,\n\t\tid,\n\t\tmessage,\n\t\tpos\n\t};\n}\nfunction logInvalidLogPosition(pluginName) {\n\treturn {\n\t\tcode: INVALID_LOG_POSITION,\n\t\tmessage: `Plugin \"${pluginName}\" tried to add a file position to a log or warning. This is only supported in the \"transform\" hook at the moment and will be ignored.`\n\t};\n}\nfunction logInputHookInOutputPlugin(pluginName, hookName) {\n\treturn {\n\t\tcode: INPUT_HOOK_IN_OUTPUT_PLUGIN,\n\t\tmessage: `The \"${hookName}\" hook used by the output plugin ${pluginName} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`\n\t};\n}\nfunction logCycleLoading(pluginName, moduleId) {\n\treturn {\n\t\tcode: CYCLE_LOADING,\n\t\tmessage: `Found the module \"${moduleId}\" cycle loading at ${pluginName} plugin, it maybe blocking fetching modules.`\n\t};\n}\nfunction logMultiplyNotifyOption() {\n\treturn {\n\t\tcode: MULTIPLY_NOTIFY_OPTION,\n\t\tmessage: `Found multiply notify option at watch options, using first one to start notify watcher.`\n\t};\n}\nfunction logPluginError(error, plugin, { hook, id } = {}) {\n\ttry {\n\t\tconst code = error.code;\n\t\tif (!error.pluginCode && code != null && (typeof code !== \"string\" || !code.startsWith(\"PLUGIN_\"))) error.pluginCode = code;\n\t\terror.code = PLUGIN_ERROR;\n\t\terror.plugin = plugin;\n\t\tif (hook) error.hook = hook;\n\t\tif (id) error.id = id;\n\t} catch (_) {} finally {\n\t\treturn error;\n\t}\n}\nfunction error(base) {\n\tif (!(base instanceof Error)) {\n\t\tbase = Object.assign(new Error(base.message), base);\n\t\tObject.defineProperty(base, \"name\", {\n\t\t\tvalue: \"RollupError\",\n\t\t\twritable: true\n\t\t});\n\t}\n\tthrow base;\n}\nfunction augmentCodeLocation(properties, pos, source, id) {\n\tif (typeof pos === \"object\") {\n\t\tconst { line, column } = pos;\n\t\tproperties.loc = {\n\t\t\tcolumn,\n\t\t\tfile: id,\n\t\t\tline\n\t\t};\n\t} else {\n\t\tproperties.pos = pos;\n\t\tconst location = locate(source, pos, { offsetLine: 1 });\n\t\tif (!location) return;\n\t\tconst { line, column } = location;\n\t\tproperties.loc = {\n\t\t\tcolumn,\n\t\t\tfile: id,\n\t\t\tline\n\t\t};\n\t}\n\tif (properties.frame === void 0) {\n\t\tconst { line, column } = properties.loc;\n\t\tproperties.frame = getCodeFrame(source, line, column);\n\t}\n}\n\n//#endregion\nexport { logInvalidLogPosition as a, logPluginError as c, logInputHookInOutputPlugin as i, locate as l, error as n, logMultiplyNotifyOption as o, logCycleLoading as r, logParseError as s, augmentCodeLocation as t, getCodeFrame as u };","import { n as __toESM, t as require_binding } from \"./binding-C-UNREnT.mjs\";\nimport { c as logPluginError, n as error } from \"./logs-NH298mHo.mjs\";\n\n//#region src/builtin-plugin/utils.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);\nvar BuiltinPlugin = class {\n\t/** Vite-specific option to control plugin ordering */\n\tenforce;\n\tconstructor(name, _options) {\n\t\tthis.name = name;\n\t\tthis._options = _options;\n\t}\n};\nfunction makeBuiltinPluginCallable(plugin) {\n\tlet callablePlugin = new import_binding.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));\n\tconst wrappedPlugin = plugin;\n\tfor (const key in callablePlugin) wrappedPlugin[key] = async function(...args) {\n\t\ttry {\n\t\t\treturn await callablePlugin[key](...args);\n\t\t} catch (e) {\n\t\t\tif (e instanceof Error && !e.stack?.includes(\"at \")) Error.captureStackTrace(e, wrappedPlugin[key]);\n\t\t\treturn error(logPluginError(e, plugin.name, {\n\t\t\t\thook: key,\n\t\t\t\tid: key === \"transform\" ? args[2] : void 0\n\t\t\t}));\n\t\t}\n\t};\n\treturn wrappedPlugin;\n}\nfunction bindingifyBuiltInPlugin(plugin) {\n\treturn {\n\t\t__name: plugin.name,\n\t\toptions: plugin._options\n\t};\n}\nfunction bindingifyManifestPlugin(plugin, pluginContextData) {\n\tconst { isOutputOptionsForLegacyChunks, ...options } = plugin._options;\n\treturn {\n\t\t__name: plugin.name,\n\t\toptions: {\n\t\t\t...options,\n\t\t\tisLegacy: isOutputOptionsForLegacyChunks ? (opts) => {\n\t\t\t\treturn isOutputOptionsForLegacyChunks(pluginContextData.getOutputOptions(opts));\n\t\t\t} : void 0\n\t\t}\n\t};\n}\n\n//#endregion\n//#region src/utils/normalize-string-or-regex.ts\nfunction normalizedStringOrRegex(pattern) {\n\tif (!pattern) return;\n\tif (!isReadonlyArray(pattern)) return [pattern];\n\treturn pattern;\n}\nfunction isReadonlyArray(input) {\n\treturn Array.isArray(input);\n}\n\n//#endregion\nexport { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };","import { n as __toESM, t as require_binding } from \"./binding-C-UNREnT.mjs\";\nimport { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from \"./logs-NH298mHo.mjs\";\n\n//#region ../../node_modules/.pnpm/oxc-parser@0.110.0/node_modules/oxc-parser/src-js/wrap.js\nfunction wrap$1(result) {\n\tlet program, module, comments, errors;\n\treturn {\n\t\tget program() {\n\t\t\tif (!program) program = jsonParseAst(result.program);\n\t\t\treturn program;\n\t\t},\n\t\tget module() {\n\t\t\tif (!module) module = result.module;\n\t\t\treturn module;\n\t\t},\n\t\tget comments() {\n\t\t\tif (!comments) comments = result.comments;\n\t\t\treturn comments;\n\t\t},\n\t\tget errors() {\n\t\t\tif (!errors) errors = result.errors;\n\t\t\treturn errors;\n\t\t}\n\t};\n}\nfunction jsonParseAst(programJson) {\n\tconst { node: program, fixes } = JSON.parse(programJson);\n\tfor (const fixPath of fixes) applyFix(program, fixPath);\n\treturn program;\n}\nfunction applyFix(program, fixPath) {\n\tlet node = program;\n\tfor (const key of fixPath) node = node[key];\n\tif (node.bigint) node.value = BigInt(node.bigint);\n\telse try {\n\t\tnode.value = RegExp(node.regex.pattern, node.regex.flags);\n\t} catch {}\n}\n\n//#endregion\n//#region src/utils/parse.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);\n/**\n* Parse asynchronously.\n*\n* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.\n*/\nasync function parse(filename, sourceText, options) {\n\treturn wrap$1(await (0, import_binding.parse)(filename, sourceText, options));\n}\n/** Parse synchronously. */\nfunction parseSync(filename, sourceText, options) {\n\treturn wrap$1((0, import_binding.parseSync)(filename, sourceText, options));\n}\n\n//#endregion\n//#region src/parse-ast-index.ts\nfunction wrap(result, filename, sourceText) {\n\tif (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);\n\treturn result.program;\n}\nfunction normalizeParseError(filename, sourceText, errors) {\n\tlet message = `Parse failed with ${errors.length} error${errors.length < 2 ? \"\" : \"s\"}:\\n`;\n\tconst pos = errors[0]?.labels?.[0]?.start;\n\tfor (let i = 0; i < errors.length; i++) {\n\t\tif (i >= 5) {\n\t\t\tmessage += \"\\n...\";\n\t\t\tbreak;\n\t\t}\n\t\tconst e = errors[i];\n\t\tmessage += e.message + \"\\n\" + e.labels.map((label) => {\n\t\t\tconst location = locate(sourceText, label.start, { offsetLine: 1 });\n\t\t\tif (!location) return;\n\t\t\treturn getCodeFrame(sourceText, location.line, location.column);\n\t\t}).filter(Boolean).join(\"\\n\");\n\t}\n\tconst log = logParseError(message, filename, pos);\n\tif (pos !== void 0 && filename) augmentCodeLocation(log, pos, sourceText, filename);\n\treturn error(log);\n}\nconst defaultParserOptions = {\n\tlang: \"js\",\n\tpreserveParens: false\n};\nfunction parseAst(sourceText, options, filename) {\n\treturn wrap(parseSync(filename ?? \"file.js\", sourceText, {\n\t\t...defaultParserOptions,\n\t\t...options\n\t}), filename, sourceText);\n}\nasync function parseAstAsync(sourceText, options, filename) {\n\treturn wrap(await parse(filename ?? \"file.js\", sourceText, {\n\t\t...defaultParserOptions,\n\t\t...options\n\t}), filename, sourceText);\n}\n\n//#endregion\nexport { parseSync as i, parseAstAsync as n, parse as r, parseAst as t };","import { cleanUrl, extractQueryWithoutFragment } from \"../utils.js\";\nclass And {\n kind;\n args;\n constructor(...args) {\n if (args.length === 0) {\n throw new Error('`And` expects at least one operand');\n }\n this.args = args;\n this.kind = 'and';\n }\n}\nclass Or {\n kind;\n args;\n constructor(...args) {\n if (args.length === 0) {\n throw new Error('`Or` expects at least one operand');\n }\n this.args = args;\n this.kind = 'or';\n }\n}\nclass Not {\n kind;\n expr;\n constructor(expr) {\n this.expr = expr;\n this.kind = 'not';\n }\n}\nclass Id {\n kind;\n pattern;\n params;\n constructor(pattern, params) {\n this.pattern = pattern;\n this.kind = 'id';\n this.params = params ?? {\n cleanUrl: false,\n };\n }\n}\nclass ImporterId {\n kind;\n pattern;\n params;\n constructor(pattern, params) {\n this.pattern = pattern;\n this.kind = 'importerId';\n this.params = params ?? {\n cleanUrl: false,\n };\n }\n}\nclass ModuleType {\n kind;\n pattern;\n constructor(pattern) {\n this.pattern = pattern;\n this.kind = 'moduleType';\n }\n}\nclass Code {\n kind;\n pattern;\n constructor(expr) {\n this.pattern = expr;\n this.kind = 'code';\n }\n}\nclass Query {\n kind;\n key;\n pattern;\n constructor(key, pattern) {\n this.pattern = pattern;\n this.key = key;\n this.kind = 'query';\n }\n}\nclass Include {\n kind;\n expr;\n constructor(expr) {\n this.expr = expr;\n this.kind = 'include';\n }\n}\nclass Exclude {\n kind;\n expr;\n constructor(expr) {\n this.expr = expr;\n this.kind = 'exclude';\n }\n}\nexport function and(...args) {\n return new And(...args);\n}\nexport function or(...args) {\n return new Or(...args);\n}\nexport function not(expr) {\n return new Not(expr);\n}\nexport function id(pattern, params) {\n return new Id(pattern, params);\n}\nexport function importerId(pattern, params) {\n return new ImporterId(pattern, params);\n}\nexport function moduleType(pattern) {\n return new ModuleType(pattern);\n}\nexport function code(pattern) {\n return new Code(pattern);\n}\n/*\n * There are three kinds of conditions are supported:\n * 1. `boolean`: if the value is `true`, the key must exist and be truthy. if the value is `false`, the key must not exist or be falsy.\n * 2. `string`: the key must exist and be equal to the value.\n * 3. `RegExp`: the key must exist and match the value.\n */\nexport function query(key, pattern) {\n return new Query(key, pattern);\n}\nexport function include(expr) {\n return new Include(expr);\n}\nexport function exclude(expr) {\n return new Exclude(expr);\n}\n/**\n * convert a queryObject to FilterExpression like\n * ```js\n * and(query(k1, v1), query(k2, v2))\n * ```\n * @param queryFilterObject The query filter object needs to be matched.\n * @returns a `And` FilterExpression\n */\nexport function queries(queryFilter) {\n let arr = Object.entries(queryFilter).map(([key, value]) => {\n return new Query(key, value);\n });\n return and(...arr);\n}\nexport function interpreter(exprs, code, id, moduleType, importerId) {\n let arr = [];\n if (Array.isArray(exprs)) {\n arr = exprs;\n }\n else {\n arr = [exprs];\n }\n return interpreterImpl(arr, code, id, moduleType, importerId);\n}\nexport function interpreterImpl(expr, code, id, moduleType, importerId, ctx = {}) {\n let hasInclude = false;\n for (const e of expr) {\n switch (e.kind) {\n case 'include': {\n hasInclude = true;\n if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) {\n return true;\n }\n break;\n }\n case 'exclude': {\n if (exprInterpreter(e.expr, code, id, moduleType, importerId, ctx)) {\n return false;\n }\n break;\n }\n }\n }\n return !hasInclude;\n}\nexport function exprInterpreter(expr, code, id, moduleType, importerId, ctx = {}) {\n switch (expr.kind) {\n case 'and': {\n return expr.args.every((e) => exprInterpreter(e, code, id, moduleType, importerId, ctx));\n }\n case 'or': {\n return expr.args.some((e) => exprInterpreter(e, code, id, moduleType, importerId, ctx));\n }\n case 'not': {\n return !exprInterpreter(expr.expr, code, id, moduleType, importerId, ctx);\n }\n case 'id': {\n if (id === undefined) {\n throw new Error('`id` is required for `id` expression');\n }\n let idToMatch = id;\n if (expr.params.cleanUrl) {\n idToMatch = cleanUrl(idToMatch);\n }\n return typeof expr.pattern === 'string'\n ? idToMatch === expr.pattern\n : expr.pattern.test(idToMatch);\n }\n case 'importerId': {\n if (importerId === undefined) {\n return false; // Entry files have no importer, so no match\n }\n let importerIdToMatch = importerId;\n if (expr.params.cleanUrl) {\n importerIdToMatch = cleanUrl(importerIdToMatch);\n }\n return typeof expr.pattern === 'string'\n ? importerIdToMatch === expr.pattern\n : expr.pattern.test(importerIdToMatch);\n }\n case 'moduleType': {\n if (moduleType === undefined) {\n throw new Error('`moduleType` is required for `moduleType` expression');\n }\n return moduleType === expr.pattern;\n }\n case 'code': {\n if (code === undefined) {\n throw new Error('`code` is required for `code` expression');\n }\n return typeof expr.pattern === 'string'\n ? code.includes(expr.pattern)\n : expr.pattern.test(code);\n }\n case 'query': {\n if (id === undefined) {\n throw new Error('`id` is required for `Query` expression');\n }\n if (!ctx.urlSearchParamsCache) {\n let queryString = extractQueryWithoutFragment(id);\n ctx.urlSearchParamsCache = new URLSearchParams(queryString);\n }\n let urlParams = ctx.urlSearchParamsCache;\n if (typeof expr.pattern === 'boolean') {\n if (expr.pattern) {\n return urlParams.has(expr.key);\n }\n else {\n return !urlParams.has(expr.key);\n }\n }\n else if (typeof expr.pattern === 'string') {\n return urlParams.get(expr.key) === expr.pattern;\n }\n else {\n return expr.pattern.test(urlParams.get(expr.key) ?? '');\n }\n }\n default: {\n throw new Error(`Expression ${JSON.stringify(expr)} is not expected.`);\n }\n }\n}\n","import { n as __toESM, t as require_binding } from \"./binding-C-UNREnT.mjs\";\nimport { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from \"./logs-NH298mHo.mjs\";\nimport { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from \"./normalize-string-or-regex-Dq50a7l9.mjs\";\nimport { a as unreachable, o as unsupported, r as noop, t as arraify } from \"./misc-CCZIsXVO.mjs\";\nimport { t as parseAst } from \"./parse-ast-index-B6LAhWD8.mjs\";\nimport path from \"node:path\";\nimport * as filter from \"@rolldown/pluginutils\";\nimport fsp from \"node:fs/promises\";\n\n//#region package.json\nvar version = \"1.0.0-rc.1\";\nvar description = \"Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.\";\n\n//#endregion\n//#region src/version.ts\n/**\n* The version of Rolldown.\n* @example `'1.0.0'`\n*\n* @category Plugin APIs\n*/\nconst VERSION = version;\n\n//#endregion\n//#region src/log/logging.ts\nconst LOG_LEVEL_SILENT = \"silent\";\nconst LOG_LEVEL_ERROR = \"error\";\nconst LOG_LEVEL_WARN = \"warn\";\nconst LOG_LEVEL_INFO = \"info\";\nconst LOG_LEVEL_DEBUG = \"debug\";\nconst logLevelPriority = {\n\t[LOG_LEVEL_DEBUG]: 0,\n\t[LOG_LEVEL_INFO]: 1,\n\t[LOG_LEVEL_WARN]: 2,\n\t[LOG_LEVEL_SILENT]: 3\n};\n\n//#endregion\n//#region src/log/log-handler.ts\nconst normalizeLog = (log) => typeof log === \"string\" ? { message: log } : typeof log === \"function\" ? normalizeLog(log()) : log;\nfunction getLogHandler(level, code, logger, pluginName, logLevel) {\n\tif (logLevelPriority[level] < logLevelPriority[logLevel]) return noop;\n\treturn (log, pos) => {\n\t\tif (pos != null) logger(LOG_LEVEL_WARN, logInvalidLogPosition(pluginName));\n\t\tlog = normalizeLog(log);\n\t\tif (log.code && !log.pluginCode) log.pluginCode = log.code;\n\t\tlog.code = code;\n\t\tlog.plugin = pluginName;\n\t\tlogger(level, log);\n\t};\n}\n\n//#endregion\n//#region src/utils/normalize-hook.ts\nfunction normalizeHook(hook) {\n\tif (typeof hook === \"function\" || typeof hook === \"string\") return {\n\t\thandler: hook,\n\t\toptions: {},\n\t\tmeta: {}\n\t};\n\tif (typeof hook === \"object\" && hook !== null) {\n\t\tconst { handler, order, ...options } = hook;\n\t\treturn {\n\t\t\thandler,\n\t\t\toptions,\n\t\t\tmeta: { order }\n\t\t};\n\t}\n\tunreachable(\"Invalid hook type\");\n}\n\n//#endregion\n//#region src/plugin/minimal-plugin-context.ts\nvar MinimalPluginContextImpl = class {\n\tinfo;\n\twarn;\n\tdebug;\n\tmeta;\n\tconstructor(onLog, logLevel, pluginName, watchMode, hookName) {\n\t\tthis.pluginName = pluginName;\n\t\tthis.hookName = hookName;\n\t\tthis.debug = getLogHandler(LOG_LEVEL_DEBUG, \"PLUGIN_LOG\", onLog, pluginName, logLevel);\n\t\tthis.info = getLogHandler(LOG_LEVEL_INFO, \"PLUGIN_LOG\", onLog, pluginName, logLevel);\n\t\tthis.warn = getLogHandler(LOG_LEVEL_WARN, \"PLUGIN_WARNING\", onLog, pluginName, logLevel);\n\t\tthis.meta = {\n\t\t\trollupVersion: \"4.23.0\",\n\t\t\trolldownVersion: VERSION,\n\t\t\twatchMode\n\t\t};\n\t}\n\terror(e) {\n\t\treturn error(logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));\n\t}\n};\n\n//#endregion\n//#region src/types/plain-object-like.ts\nconst LAZY_FIELDS_KEY = Symbol(\"__lazy_fields__\");\n/**\n* Base class for classes that use `@lazyProp` decorated properties.\n*\n* **Design Pattern in Rolldown:**\n* This is a common pattern in Rolldown due to its three-layer architecture:\n* TypeScript API → NAPI Bindings → Rust Core\n*\n* **Why we use getters:**\n* For performance - to lazily fetch data from Rust bindings only when needed,\n* rather than eagerly fetching all data during object construction.\n*\n* **The problem:**\n* Getters defined on class prototypes are non-enumerable by default, which breaks:\n* - Object spread operators ({...obj})\n* - Object.keys() and similar methods\n* - Standard JavaScript object semantics\n*\n* **The solution:**\n* This base class automatically converts `@lazyProp` decorated getters into\n* own enumerable getters on each instance during construction.\n*\n* **Result:**\n* Objects get both lazy-loading performance benefits AND plain JavaScript object behavior.\n*\n* @example\n* ```typescript\n* class MyClass extends PlainObjectLike {\n* @lazyProp\n* get myProp() {\n* return fetchFromRustBinding();\n* }\n* }\n* ```\n*/\nvar PlainObjectLike = class {\n\tconstructor() {\n\t\tsetupLazyProperties(this);\n\t}\n};\n/**\n* Set up lazy properties as own getters on an instance.\n* This is called automatically by the `PlainObjectLike` base class constructor.\n*\n* @param instance - The instance to set up lazy properties on\n* @internal\n*/\nfunction setupLazyProperties(instance) {\n\tconst lazyFields = instance.constructor[LAZY_FIELDS_KEY];\n\tif (!lazyFields) return;\n\tfor (const [propertyKey, originalGetter] of lazyFields.entries()) {\n\t\tlet cachedValue;\n\t\tlet hasValue = false;\n\t\tObject.defineProperty(instance, propertyKey, {\n\t\t\tget() {\n\t\t\t\tif (!hasValue) {\n\t\t\t\t\tcachedValue = originalGetter.call(this);\n\t\t\t\t\thasValue = true;\n\t\t\t\t}\n\t\t\t\treturn cachedValue;\n\t\t\t},\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n}\n/**\n* Get all lazy field names from a class instance.\n*\n* @param instance - Instance to inspect\n* @returns Set of lazy property names\n*/\nfunction getLazyFields(instance) {\n\tconst lazyFields = instance.constructor[LAZY_FIELDS_KEY];\n\treturn lazyFields ? new Set(lazyFields.keys()) : /* @__PURE__ */ new Set();\n}\n\n//#endregion\n//#region src/decorators/lazy.ts\n/**\n* Decorator that marks a getter as lazy-evaluated and cached.\n*\n* **What \"lazy\" means here:**\n* 1. Data is lazily fetched from Rust bindings only when the property is accessed (not eagerly on construction)\n* 2. Once fetched, the data is cached for subsequent accesses (performance optimization)\n* 3. Despite being a getter, it behaves like a plain object property (enumerable, appears in Object.keys())\n*\n* **Important**: Properties decorated with `@lazyProp` are defined as own enumerable\n* properties on each instance (not on the prototype). This ensures they:\n* - Appear in Object.keys() and Object.getOwnPropertyNames()\n* - Are included in object spreads ({...obj})\n* - Are enumerable in for...in loops\n*\n* Classes using this decorator must extend `PlainObjectLike` base class.\n*\n* @example\n* ```typescript\n* class MyClass extends PlainObjectLike {\n* @lazyProp\n* get expensiveValue() {\n* return someExpensiveComputation();\n* }\n* }\n* ```\n*/\nfunction lazyProp(target, propertyKey, descriptor) {\n\tif (!target.constructor[LAZY_FIELDS_KEY]) target.constructor[LAZY_FIELDS_KEY] = /* @__PURE__ */ new Map();\n\tconst originalGetter = descriptor.get;\n\ttarget.constructor[LAZY_FIELDS_KEY].set(propertyKey, originalGetter);\n\treturn {\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t};\n}\n\n//#endregion\n//#region src/utils/asset-source.ts\nfunction transformAssetSource(bindingAssetSource) {\n\treturn bindingAssetSource.inner;\n}\nfunction bindingAssetSource(source) {\n\treturn { inner: source };\n}\n\n//#endregion\n//#region \\0@oxc-project+runtime@0.110.0/helpers/decorate.js\nfunction __decorate(decorators, target, key, desc) {\n\tvar c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n\tif (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n\telse for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n\treturn c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\n//#endregion\n//#region src/types/output-asset-impl.ts\nvar OutputAssetImpl = class extends PlainObjectLike {\n\ttype = \"asset\";\n\tconstructor(bindingAsset) {\n\t\tsuper();\n\t\tthis.bindingAsset = bindingAsset;\n\t}\n\tget fileName() {\n\t\treturn this.bindingAsset.getFileName();\n\t}\n\tget originalFileName() {\n\t\treturn this.bindingAsset.getOriginalFileName() || null;\n\t}\n\tget originalFileNames() {\n\t\treturn this.bindingAsset.getOriginalFileNames();\n\t}\n\tget name() {\n\t\treturn this.bindingAsset.getName() ?? void 0;\n\t}\n\tget names() {\n\t\treturn this.bindingAsset.getNames();\n\t}\n\tget source() {\n\t\treturn transformAssetSource(this.bindingAsset.getSource());\n\t}\n\t__rolldown_external_memory_handle__(keepDataAlive) {\n\t\tif (keepDataAlive) this.#evaluateAllLazyFields();\n\t\treturn this.bindingAsset.dropInner();\n\t}\n\t#evaluateAllLazyFields() {\n\t\tfor (const field of getLazyFields(this)) this[field];\n\t}\n};\n__decorate([lazyProp], OutputAssetImpl.prototype, \"fileName\", null);\n__decorate([lazyProp], OutputAssetImpl.prototype, \"originalFileName\", null);\n__decorate([lazyProp], OutputAssetImpl.prototype, \"originalFileNames\", null);\n__decorate([lazyProp], OutputAssetImpl.prototype, \"name\", null);\n__decorate([lazyProp], OutputAssetImpl.prototype, \"names\", null);\n__decorate([lazyProp], OutputAssetImpl.prototype, \"source\", null);\n\n//#endregion\n//#region src/utils/transform-rendered-module.ts\nfunction transformToRenderedModule(bindingRenderedModule) {\n\treturn {\n\t\tget code() {\n\t\t\treturn bindingRenderedModule.code;\n\t\t},\n\t\tget renderedLength() {\n\t\t\treturn bindingRenderedModule.code?.length || 0;\n\t\t},\n\t\tget renderedExports() {\n\t\t\treturn bindingRenderedModule.renderedExports;\n\t\t}\n\t};\n}\n\n//#endregion\n//#region src/utils/transform-rendered-chunk.ts\nfunction transformRenderedChunk(chunk) {\n\tlet modules = null;\n\treturn {\n\t\ttype: \"chunk\",\n\t\tget name() {\n\t\t\treturn chunk.name;\n\t\t},\n\t\tget isEntry() {\n\t\t\treturn chunk.isEntry;\n\t\t},\n\t\tget isDynamicEntry() {\n\t\t\treturn chunk.isDynamicEntry;\n\t\t},\n\t\tget facadeModuleId() {\n\t\t\treturn chunk.facadeModuleId;\n\t\t},\n\t\tget moduleIds() {\n\t\t\treturn chunk.moduleIds;\n\t\t},\n\t\tget exports() {\n\t\t\treturn chunk.exports;\n\t\t},\n\t\tget fileName() {\n\t\t\treturn chunk.fileName;\n\t\t},\n\t\tget imports() {\n\t\t\treturn chunk.imports;\n\t\t},\n\t\tget dynamicImports() {\n\t\t\treturn chunk.dynamicImports;\n\t\t},\n\t\tget modules() {\n\t\t\tif (!modules) modules = transformChunkModules(chunk.modules);\n\t\t\treturn modules;\n\t\t}\n\t};\n}\nfunction transformChunkModules(modules) {\n\tconst result = {};\n\tfor (let i = 0; i < modules.values.length; i++) {\n\t\tlet key = modules.keys[i];\n\t\tconst mod = modules.values[i];\n\t\tresult[key] = transformToRenderedModule(mod);\n\t}\n\treturn result;\n}\n\n//#endregion\n//#region src/types/output-chunk-impl.ts\nvar OutputChunkImpl = class extends PlainObjectLike {\n\ttype = \"chunk\";\n\tconstructor(bindingChunk) {\n\t\tsuper();\n\t\tthis.bindingChunk = bindingChunk;\n\t}\n\tget fileName() {\n\t\treturn this.bindingChunk.getFileName();\n\t}\n\tget name() {\n\t\treturn this.bindingChunk.getName();\n\t}\n\tget exports() {\n\t\treturn this.bindingChunk.getExports();\n\t}\n\tget isEntry() {\n\t\treturn this.bindingChunk.getIsEntry();\n\t}\n\tget facadeModuleId() {\n\t\treturn this.bindingChunk.getFacadeModuleId() || null;\n\t}\n\tget isDynamicEntry() {\n\t\treturn this.bindingChunk.getIsDynamicEntry();\n\t}\n\tget sourcemapFileName() {\n\t\treturn this.bindingChunk.getSourcemapFileName() || null;\n\t}\n\tget preliminaryFileName() {\n\t\treturn this.bindingChunk.getPreliminaryFileName();\n\t}\n\tget code() {\n\t\treturn this.bindingChunk.getCode();\n\t}\n\tget modules() {\n\t\treturn transformChunkModules(this.bindingChunk.getModules());\n\t}\n\tget imports() {\n\t\treturn this.bindingChunk.getImports();\n\t}\n\tget dynamicImports() {\n\t\treturn this.bindingChunk.getDynamicImports();\n\t}\n\tget moduleIds() {\n\t\treturn this.bindingChunk.getModuleIds();\n\t}\n\tget map() {\n\t\tconst mapString = this.bindingChunk.getMap();\n\t\treturn mapString ? transformToRollupSourceMap(mapString) : null;\n\t}\n\t__rolldown_external_memory_handle__(keepDataAlive) {\n\t\tif (keepDataAlive) this.#evaluateAllLazyFields();\n\t\treturn this.bindingChunk.dropInner();\n\t}\n\t#evaluateAllLazyFields() {\n\t\tfor (const field of getLazyFields(this)) this[field];\n\t}\n};\n__decorate([lazyProp], OutputChunkImpl.prototype, \"fileName\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"name\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"exports\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"isEntry\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"facadeModuleId\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"isDynamicEntry\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"sourcemapFileName\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"preliminaryFileName\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"code\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"modules\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"imports\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"dynamicImports\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"moduleIds\", null);\n__decorate([lazyProp], OutputChunkImpl.prototype, \"map\", null);\n\n//#endregion\n//#region src/types/sourcemap.ts\nfunction bindingifySourcemap(map) {\n\tif (map == null) return;\n\treturn { inner: typeof map === \"string\" ? map : {\n\t\tfile: map.file ?? void 0,\n\t\tmappings: map.mappings,\n\t\tsourceRoot: \"sourceRoot\" in map ? map.sourceRoot ?? void 0 : void 0,\n\t\tsources: map.sources?.map((s) => s ?? void 0),\n\t\tsourcesContent: map.sourcesContent?.map((s) => s ?? void 0),\n\t\tnames: map.names,\n\t\tx_google_ignoreList: map.x_google_ignoreList,\n\t\tdebugId: \"debugId\" in map ? map.debugId : void 0\n\t} };\n}\n\n//#endregion\n//#region src/utils/transform-to-rollup-output.ts\nfunction transformToRollupSourceMap(map) {\n\tconst obj = {\n\t\t...JSON.parse(map),\n\t\ttoString() {\n\t\t\treturn JSON.stringify(obj);\n\t\t},\n\t\ttoUrl() {\n\t\t\treturn `data:application/json;charset=utf-8;base64,${Buffer.from(obj.toString(), \"utf-8\").toString(\"base64\")}`;\n\t\t}\n\t};\n\treturn obj;\n}\nfunction transformToRollupOutputChunk(bindingChunk) {\n\treturn new OutputChunkImpl(bindingChunk);\n}\nfunction transformToMutableRollupOutputChunk(bindingChunk, changed) {\n\tconst chunk = {\n\t\ttype: \"chunk\",\n\t\tget code() {\n\t\t\treturn bindingChunk.getCode();\n\t\t},\n\t\tfileName: bindingChunk.getFileName(),\n\t\tname: bindingChunk.getName(),\n\t\tget modules() {\n\t\t\treturn transformChunkModules(bindingChunk.getModules());\n\t\t},\n\t\tget imports() {\n\t\t\treturn bindingChunk.getImports();\n\t\t},\n\t\tget dynamicImports() {\n\t\t\treturn bindingChunk.getDynamicImports();\n\t\t},\n\t\texports: bindingChunk.getExports(),\n\t\tisEntry: bindingChunk.getIsEntry(),\n\t\tfacadeModuleId: bindingChunk.getFacadeModuleId() || null,\n\t\tisDynamicEntry: bindingChunk.getIsDynamicEntry(),\n\t\tget moduleIds() {\n\t\t\treturn bindingChunk.getModuleIds();\n\t\t},\n\t\tget map() {\n\t\t\tconst map = bindingChunk.getMap();\n\t\t\treturn map ? transformToRollupSourceMap(map) : null;\n\t\t},\n\t\tsourcemapFileName: bindingChunk.getSourcemapFileName() || null,\n\t\tpreliminaryFileName: bindingChunk.getPreliminaryFileName()\n\t};\n\tconst cache = {};\n\treturn new Proxy(chunk, {\n\t\tget(target, p) {\n\t\t\tif (p in cache) return cache[p];\n\t\t\tconst value = target[p];\n\t\t\tcache[p] = value;\n\t\t\treturn value;\n\t\t},\n\t\tset(_target, p, newValue) {\n\t\t\tcache[p] = newValue;\n\t\t\tchanged.updated.add(bindingChunk.getFileName());\n\t\t\treturn true;\n\t\t},\n\t\thas(target, p) {\n\t\t\tif (p in cache) return true;\n\t\t\treturn p in target;\n\t\t}\n\t});\n}\nfunction transformToRollupOutputAsset(bindingAsset) {\n\treturn new OutputAssetImpl(bindingAsset);\n}\nfunction transformToMutableRollupOutputAsset(bindingAsset, changed) {\n\tconst asset = {\n\t\ttype: \"asset\",\n\t\tfileName: bindingAsset.getFileName(),\n\t\toriginalFileName: bindingAsset.getOriginalFileName() || null,\n\t\toriginalFileNames: bindingAsset.getOriginalFileNames(),\n\t\tget source() {\n\t\t\treturn transformAssetSource(bindingAsset.getSource());\n\t\t},\n\t\tname: bindingAsset.getName() ?? void 0,\n\t\tnames: bindingAsset.getNames()\n\t};\n\tconst cache = {};\n\treturn new Proxy(asset, {\n\t\tget(target, p) {\n\t\t\tif (p in cache) return cache[p];\n\t\t\tconst value = target[p];\n\t\t\tcache[p] = value;\n\t\t\treturn value;\n\t\t},\n\t\tset(_target, p, newValue) {\n\t\t\tcache[p] = newValue;\n\t\t\tchanged.updated.add(bindingAsset.getFileName());\n\t\t\treturn true;\n\t\t}\n\t});\n}\nfunction transformToRollupOutput(output) {\n\tconst { chunks, assets } = output;\n\treturn { output: [...chunks.map((chunk) => transformToRollupOutputChunk(chunk)), ...assets.map((asset) => transformToRollupOutputAsset(asset))] };\n}\nfunction transformToMutableRollupOutput(output, changed) {\n\tconst { chunks, assets } = output;\n\treturn { output: [...chunks.map((chunk) => transformToMutableRollupOutputChunk(chunk, changed)), ...assets.map((asset) => transformToMutableRollupOutputAsset(asset, changed))] };\n}\nfunction transformToOutputBundle(context, output, changed) {\n\tconst bundle = Object.fromEntries(transformToMutableRollupOutput(output, changed).output.map((item) => [item.fileName, item]));\n\treturn new Proxy(bundle, {\n\t\tset(_target, _p, _newValue, _receiver) {\n\t\t\tconst originalStackTraceLimit = Error.stackTraceLimit;\n\t\t\tError.stackTraceLimit = 2;\n\t\t\tconst message = \"This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.\";\n\t\t\tconst stack = new Error(message).stack ?? message;\n\t\t\tError.stackTraceLimit = originalStackTraceLimit;\n\t\t\tcontext.warn({\n\t\t\t\tmessage: stack,\n\t\t\t\tcode: \"UNSUPPORTED_BUNDLE_ASSIGNMENT\"\n\t\t\t});\n\t\t\treturn true;\n\t\t},\n\t\tdeleteProperty(target, property) {\n\t\t\tif (typeof property === \"string\") changed.deleted.add(property);\n\t\t\treturn true;\n\t\t}\n\t});\n}\nfunction collectChangedBundle(changed, bundle) {\n\tconst changes = {};\n\tfor (const key in bundle) {\n\t\tif (changed.deleted.has(key) || !changed.updated.has(key)) continue;\n\t\tconst item = bundle[key];\n\t\tif (item.type === \"asset\") changes[key] = {\n\t\t\tfilename: item.fileName,\n\t\t\toriginalFileNames: item.originalFileNames,\n\t\t\tsource: bindingAssetSource(item.source),\n\t\t\tnames: item.names\n\t\t};\n\t\telse changes[key] = {\n\t\t\tcode: item.code,\n\t\t\tfilename: item.fileName,\n\t\t\tname: item.name,\n\t\t\tisEntry: item.isEntry,\n\t\t\texports: item.exports,\n\t\t\tmodules: {},\n\t\t\timports: item.imports,\n\t\t\tdynamicImports: item.dynamicImports,\n\t\t\tfacadeModuleId: item.facadeModuleId || void 0,\n\t\t\tisDynamicEntry: item.isDynamicEntry,\n\t\t\tmoduleIds: item.moduleIds,\n\t\t\tmap: bindingifySourcemap(item.map),\n\t\t\tsourcemapFilename: item.sourcemapFileName || void 0,\n\t\t\tpreliminaryFilename: item.preliminaryFileName\n\t\t};\n\t}\n\treturn {\n\t\tchanges,\n\t\tdeleted: changed.deleted\n\t};\n}\n\n//#endregion\n//#region src/utils/error.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);\nfunction unwrapBindingResult(container) {\n\tif (typeof container === \"object\" && container !== null && \"isBindingErrors\" in container && container.isBindingErrors) throw aggregateBindingErrorsIntoJsError(container.errors);\n\treturn container;\n}\nfunction normalizeBindingResult(container) {\n\tif (typeof container === \"object\" && container !== null && \"isBindingErrors\" in container && container.isBindingErrors) return aggregateBindingErrorsIntoJsError(container.errors);\n\treturn container;\n}\nfunction normalizeBindingError(e) {\n\treturn e.type === \"JsError\" ? e.field0 : Object.assign(/* @__PURE__ */ new Error(), {\n\t\tcode: e.field0.kind,\n\t\tkind: e.field0.kind,\n\t\tmessage: e.field0.message,\n\t\tid: e.field0.id,\n\t\texporter: e.field0.exporter,\n\t\tloc: e.field0.loc,\n\t\tpos: e.field0.pos,\n\t\tstack: void 0\n\t});\n}\nfunction aggregateBindingErrorsIntoJsError(rawErrors) {\n\tconst errors = rawErrors.map(normalizeBindingError);\n\tlet summary = `Build failed with ${errors.length} error${errors.length < 2 ? \"\" : \"s\"}:\\n`;\n\tfor (let i = 0; i < errors.length; i++) {\n\t\tsummary += \"\\n\";\n\t\tif (i >= 5) {\n\t\t\tsummary += \"...\";\n\t\t\tbreak;\n\t\t}\n\t\tsummary += getErrorMessage(errors[i]);\n\t}\n\tconst wrapper = new Error(summary);\n\tObject.defineProperty(wrapper, \"errors\", {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\tget: () => errors,\n\t\tset: (value) => Object.defineProperty(wrapper, \"errors\", {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: true,\n\t\t\tvalue\n\t\t})\n\t});\n\treturn wrapper;\n}\nfunction getErrorMessage(e) {\n\tif (Object.hasOwn(e, \"kind\")) return e.message;\n\tlet s = \"\";\n\tif (e.plugin) s += `[plugin ${e.plugin}]`;\n\tconst id = e.id ?? e.loc?.file;\n\tif (id) {\n\t\ts += \" \" + id;\n\t\tif (e.loc) s += `:${e.loc.line}:${e.loc.column}`;\n\t}\n\tif (s) s += \"\\n\";\n\tconst message = `${e.name ?? \"Error\"}: ${e.message}`;\n\ts += message;\n\tif (e.frame) s = joinNewLine(s, e.frame);\n\tif (e.stack) s = joinNewLine(s, e.stack.replace(message, \"\"));\n\tif (e.cause) {\n\t\ts = joinNewLine(s, \"Caused by:\");\n\t\ts = joinNewLine(s, getErrorMessage(e.cause).split(\"\\n\").map((line) => \" \" + line).join(\"\\n\"));\n\t}\n\treturn s;\n}\nfunction joinNewLine(s1, s2) {\n\treturn s1.replace(/\\n+$/, \"\") + \"\\n\" + s2.replace(/^\\n+/, \"\");\n}\n\n//#endregion\n//#region src/utils/transform-module-info.ts\nfunction transformModuleInfo(info, option) {\n\treturn {\n\t\tget ast() {\n\t\t\treturn unsupported(\"ModuleInfo#ast\");\n\t\t},\n\t\tget code() {\n\t\t\treturn info.code;\n\t\t},\n\t\tid: info.id,\n\t\timporters: info.importers,\n\t\tdynamicImporters: info.dynamicImporters,\n\t\timportedIds: info.importedIds,\n\t\tdynamicallyImportedIds: info.dynamicallyImportedIds,\n\t\texports: info.exports,\n\t\tisEntry: info.isEntry,\n\t\t...option\n\t};\n}\n\n//#endregion\n//#region src/utils/transform-sourcemap.ts\nfunction isEmptySourcemapFiled(array) {\n\tif (!array) return true;\n\tif (array.length === 0 || !array[0]) return true;\n\treturn false;\n}\nfunction normalizeTransformHookSourcemap(id, originalCode, rawMap) {\n\tif (!rawMap) return;\n\tlet map = typeof rawMap === \"object\" ? rawMap : JSON.parse(rawMap);\n\tif (isEmptySourcemapFiled(map.sourcesContent)) map.sourcesContent = [originalCode];\n\tif (isEmptySourcemapFiled(map.sources) || map.sources && map.sources.length === 1 && map.sources[0] !== id) map.sources = [id];\n\treturn map;\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js\nfunction e(e, t, n) {\n\tlet r = (n) => e(n, ...t);\n\treturn n === void 0 ? r : Object.assign(r, {\n\t\tlazy: n,\n\t\tlazyArgs: t\n\t});\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/purry-GjwKKIlp.js\nfunction t$1(t, n, r) {\n\tlet i = t.length - n.length;\n\tif (i === 0) return t(...n);\n\tif (i === 1) return e(t, n, r);\n\tthrow Error(`Wrong number of arguments`);\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/remeda@2.33.4/node_modules/remeda/dist/partition.js\nfunction t(...t) {\n\treturn t$1(n, t);\n}\nconst n = (e, t) => {\n\tlet n = [[], []];\n\tfor (let [r, i] of e.entries()) t(i, r, e) ? n[0].push(i) : n[1].push(i);\n\treturn n;\n};\n\n//#endregion\n//#region src/plugin/bindingify-hook-filter.ts\nfunction generalHookFilterMatcherToFilterExprs(matcher, stringKind) {\n\tif (typeof matcher === \"string\" || matcher instanceof RegExp) return [filter.include(generateAtomMatcher(stringKind, matcher))];\n\tif (Array.isArray(matcher)) return matcher.map((m) => filter.include(generateAtomMatcher(stringKind, m)));\n\tlet ret = [];\n\tif (matcher.exclude) ret.push(...arraify(matcher.exclude).map((m) => filter.exclude(generateAtomMatcher(stringKind, m))));\n\tif (matcher.include) ret.push(...arraify(matcher.include).map((m) => filter.include(generateAtomMatcher(stringKind, m))));\n\treturn ret;\n}\nfunction generateAtomMatcher(kind, matcher) {\n\treturn kind === \"code\" ? filter.code(matcher) : filter.id(matcher);\n}\nfunction transformFilterMatcherToFilterExprs(filterOption) {\n\tif (!filterOption) return;\n\tif (Array.isArray(filterOption)) return filterOption;\n\tconst { id, code, moduleType } = filterOption;\n\tlet ret = [];\n\tlet idIncludes = [];\n\tlet idExcludes = [];\n\tlet codeIncludes = [];\n\tlet codeExcludes = [];\n\tif (id) [idIncludes, idExcludes] = t(generalHookFilterMatcherToFilterExprs(id, \"id\") ?? [], (m) => m.kind === \"include\");\n\tif (code) [codeIncludes, codeExcludes] = t(generalHookFilterMatcherToFilterExprs(code, \"code\") ?? [], (m) => m.kind === \"include\");\n\tret.push(...idExcludes);\n\tret.push(...codeExcludes);\n\tlet andExprList = [];\n\tif (moduleType) {\n\t\tlet moduleTypes = Array.isArray(moduleType) ? moduleType : moduleType.include ?? [];\n\t\tandExprList.push(filter.or(...moduleTypes.map((m) => filter.moduleType(m))));\n\t}\n\tif (idIncludes.length) andExprList.push(filter.or(...idIncludes.map((item) => item.expr)));\n\tif (codeIncludes.length) andExprList.push(filter.or(...codeIncludes.map((item) => item.expr)));\n\tif (andExprList.length) ret.push(filter.include(filter.and(...andExprList)));\n\treturn ret;\n}\nfunction bindingifyGeneralHookFilter(stringKind, pattern) {\n\tlet filterExprs = generalHookFilterMatcherToFilterExprs(pattern, stringKind);\n\tlet ret = [];\n\tif (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);\n\treturn ret.length > 0 ? { value: ret } : void 0;\n}\nfunction bindingifyFilterExpr(expr) {\n\tlet list = [];\n\tbindingifyFilterExprImpl(expr, list);\n\treturn list;\n}\nfunction containsImporterId(expr) {\n\tswitch (expr.kind) {\n\t\tcase \"and\":\n\t\tcase \"or\": return expr.args.some(containsImporterId);\n\t\tcase \"not\":\n\t\tcase \"include\":\n\t\tcase \"exclude\": return containsImporterId(expr.expr);\n\t\tcase \"importerId\": return true;\n\t\tdefault: return false;\n\t}\n}\nfunction assertNoImporterId(filterExprs, hookName) {\n\tif (filterExprs?.some(containsImporterId)) throw new Error(`The \\`importerId\\` filter can only be used with the \\`resolveId\\` hook, but it was used with the \\`${hookName}\\` hook.`);\n}\nfunction bindingifyFilterExprImpl(expr, list) {\n\tswitch (expr.kind) {\n\t\tcase \"and\": {\n\t\t\tlet args = expr.args;\n\t\t\tfor (let i = args.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args[i], list);\n\t\t\tlist.push({\n\t\t\t\tkind: \"And\",\n\t\t\t\tpayload: args.length\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase \"or\": {\n\t\t\tlet args = expr.args;\n\t\t\tfor (let i = args.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args[i], list);\n\t\t\tlist.push({\n\t\t\t\tkind: \"Or\",\n\t\t\t\tpayload: args.length\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase \"not\":\n\t\t\tbindingifyFilterExprImpl(expr.expr, list);\n\t\t\tlist.push({ kind: \"Not\" });\n\t\t\tbreak;\n\t\tcase \"id\":\n\t\t\tlist.push({\n\t\t\t\tkind: \"Id\",\n\t\t\t\tpayload: expr.pattern\n\t\t\t});\n\t\t\tif (expr.params.cleanUrl) list.push({ kind: \"CleanUrl\" });\n\t\t\tbreak;\n\t\tcase \"importerId\":\n\t\t\tlist.push({\n\t\t\t\tkind: \"ImporterId\",\n\t\t\t\tpayload: expr.pattern\n\t\t\t});\n\t\t\tif (expr.params.cleanUrl) list.push({ kind: \"CleanUrl\" });\n\t\t\tbreak;\n\t\tcase \"moduleType\":\n\t\t\tlist.push({\n\t\t\t\tkind: \"ModuleType\",\n\t\t\t\tpayload: expr.pattern\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"code\":\n\t\t\tlist.push({\n\t\t\t\tkind: \"Code\",\n\t\t\t\tpayload: expr.pattern\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"include\":\n\t\t\tbindingifyFilterExprImpl(expr.expr, list);\n\t\t\tlist.push({ kind: \"Include\" });\n\t\t\tbreak;\n\t\tcase \"exclude\":\n\t\t\tbindingifyFilterExprImpl(expr.expr, list);\n\t\t\tlist.push({ kind: \"Exclude\" });\n\t\t\tbreak;\n\t\tcase \"query\":\n\t\t\tlist.push({\n\t\t\t\tkind: \"QueryKey\",\n\t\t\t\tpayload: expr.key\n\t\t\t});\n\t\t\tlist.push({\n\t\t\t\tkind: \"QueryValue\",\n\t\t\t\tpayload: expr.pattern\n\t\t\t});\n\t\t\tbreak;\n\t\tdefault: throw new Error(`Unknown filter expression: ${expr}`);\n\t}\n}\nfunction bindingifyResolveIdFilter(filterOption) {\n\tif (!filterOption) return;\n\tif (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };\n\treturn filterOption.id ? bindingifyGeneralHookFilter(\"id\", filterOption.id) : void 0;\n}\nfunction bindingifyLoadFilter(filterOption) {\n\tif (!filterOption) return;\n\tif (Array.isArray(filterOption)) {\n\t\tassertNoImporterId(filterOption, \"load\");\n\t\treturn { value: filterOption.map(bindingifyFilterExpr) };\n\t}\n\treturn filterOption.id ? bindingifyGeneralHookFilter(\"id\", filterOption.id) : void 0;\n}\nfunction bindingifyTransformFilter(filterOption) {\n\tif (!filterOption) return;\n\tlet filterExprs = transformFilterMatcherToFilterExprs(filterOption);\n\tassertNoImporterId(filterExprs, \"transform\");\n\tlet ret = [];\n\tif (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);\n\treturn { value: ret.length > 0 ? ret : void 0 };\n}\nfunction bindingifyRenderChunkFilter(filterOption) {\n\tif (!filterOption) return;\n\tif (Array.isArray(filterOption)) {\n\t\tassertNoImporterId(filterOption, \"renderChunk\");\n\t\treturn { value: filterOption.map(bindingifyFilterExpr) };\n\t}\n\treturn filterOption.code ? bindingifyGeneralHookFilter(\"code\", filterOption.code) : void 0;\n}\n\n//#endregion\n//#region src/plugin/bindingify-plugin-hook-meta.ts\nfunction bindingifyPluginHookMeta(options) {\n\treturn { order: bindingPluginOrder(options.order) };\n}\nfunction bindingPluginOrder(order) {\n\tswitch (order) {\n\t\tcase \"post\": return import_binding.BindingPluginOrder.Post;\n\t\tcase \"pre\": return import_binding.BindingPluginOrder.Pre;\n\t\tcase null:\n\t\tcase void 0: return;\n\t\tdefault: throw new Error(`Unknown plugin order: ${order}`);\n\t}\n}\n\n//#endregion\n//#region src/plugin/fs.ts\nconst fsModule = {\n\tappendFile: fsp.appendFile,\n\tcopyFile: fsp.copyFile,\n\tmkdir: fsp.mkdir,\n\tmkdtemp: fsp.mkdtemp,\n\treaddir: fsp.readdir,\n\treadFile: fsp.readFile,\n\trealpath: fsp.realpath,\n\trename: fsp.rename,\n\trmdir: fsp.rmdir,\n\tstat: fsp.stat,\n\tlstat: fsp.lstat,\n\tunlink: fsp.unlink,\n\twriteFile: fsp.writeFile\n};\n\n//#endregion\n//#region src/plugin/plugin-context.ts\nvar PluginContextImpl = class extends MinimalPluginContextImpl {\n\tfs = fsModule;\n\tgetModuleInfo;\n\tconstructor(outputOptions, context, plugin, data, onLog, logLevel, watchMode, currentLoadingModule) {\n\t\tsuper(onLog, logLevel, plugin.name, watchMode);\n\t\tthis.outputOptions = outputOptions;\n\t\tthis.context = context;\n\t\tthis.data = data;\n\t\tthis.onLog = onLog;\n\t\tthis.currentLoadingModule = currentLoadingModule;\n\t\tthis.getModuleInfo = (id) => this.data.getModuleInfo(id, context);\n\t}\n\tasync load(options) {\n\t\tconst id = options.id;\n\t\tif (id === this.currentLoadingModule) this.onLog(LOG_LEVEL_WARN, logCycleLoading(this.pluginName, this.currentLoadingModule));\n\t\tconst moduleInfo = this.data.getModuleInfo(id, this.context);\n\t\tif (moduleInfo && moduleInfo.code !== null) return moduleInfo;\n\t\tconst rawOptions = {\n\t\t\tmeta: options.meta || {},\n\t\t\tmoduleSideEffects: options.moduleSideEffects || null,\n\t\t\tinvalidate: false\n\t\t};\n\t\tthis.data.updateModuleOption(id, rawOptions);\n\t\tlet loadPromise = this.data.loadModulePromiseMap.get(id);\n\t\tif (!loadPromise) {\n\t\t\tloadPromise = this.context.load(id, options.moduleSideEffects ?? void 0, options.packageJsonPath ?? void 0).catch(() => {\n\t\t\t\tthis.data.loadModulePromiseMap.delete(id);\n\t\t\t});\n\t\t\tthis.data.loadModulePromiseMap.set(id, loadPromise);\n\t\t}\n\t\tawait loadPromise;\n\t\treturn this.data.getModuleInfo(id, this.context);\n\t}\n\tasync resolve(source, importer, options) {\n\t\tlet receipt = void 0;\n\t\tif (options != null) receipt = this.data.saveResolveOptions(options);\n\t\tconst vitePluginCustom = Object.entries(options?.custom ?? {}).reduce((acc, [key, value]) => {\n\t\t\tif (key.startsWith(\"vite:\")) (acc ??= {})[key] = value;\n\t\t\treturn acc;\n\t\t}, void 0);\n\t\tconst res = await this.context.resolve(source, importer, {\n\t\t\timportKind: options?.kind,\n\t\t\tcustom: receipt,\n\t\t\tisEntry: options?.isEntry,\n\t\t\tskipSelf: options?.skipSelf,\n\t\t\tvitePluginCustom\n\t\t});\n\t\tif (receipt != null) this.data.removeSavedResolveOptions(receipt);\n\t\tif (res == null) return null;\n\t\tconst info = this.data.getModuleOption(res.id) || {};\n\t\treturn {\n\t\t\t...res,\n\t\t\texternal: res.external === \"relative\" ? unreachable(`The PluginContext resolve result external couldn't be 'relative'`) : res.external,\n\t\t\t...info,\n\t\t\tmoduleSideEffects: info.moduleSideEffects ?? res.moduleSideEffects ?? null,\n\t\t\tpackageJsonPath: res.packageJsonPath\n\t\t};\n\t}\n\temitFile = (file) => {\n\t\tif (file.type === \"prebuilt-chunk\") return this.context.emitPrebuiltChunk({\n\t\t\tfileName: file.fileName,\n\t\t\tcode: file.code,\n\t\t\texports: file.exports,\n\t\t\tmap: bindingifySourcemap(file.map),\n\t\t\tsourcemapFileName: file.sourcemapFileName\n\t\t});\n\t\tif (file.type === \"chunk\") return this.context.emitChunk({\n\t\t\tpreserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),\n\t\t\t...file\n\t\t});\n\t\tconst fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== \"function\" ? void 0 : this.outputOptions.sanitizeFileName(file.name || \"asset\");\n\t\tconst filename = file.fileName ? void 0 : this.getAssetFileNames(file);\n\t\treturn this.context.emitFile({\n\t\t\t...file,\n\t\t\toriginalFileName: file.originalFileName || void 0,\n\t\t\tsource: bindingAssetSource(file.source)\n\t\t}, filename, fnSanitizedFileName);\n\t};\n\tgetAssetFileNames(file) {\n\t\tif (typeof this.outputOptions.assetFileNames === \"function\") return this.outputOptions.assetFileNames({\n\t\t\ttype: \"asset\",\n\t\t\tname: file.name,\n\t\t\tnames: file.name ? [file.name] : [],\n\t\t\toriginalFileName: file.originalFileName,\n\t\t\toriginalFileNames: file.originalFileName ? [file.originalFileName] : [],\n\t\t\tsource: file.source\n\t\t});\n\t}\n\tgetFileName(referenceId) {\n\t\treturn this.context.getFileName(referenceId);\n\t}\n\tgetModuleIds() {\n\t\treturn this.data.getModuleIds(this.context);\n\t}\n\taddWatchFile(id) {\n\t\tthis.context.addWatchFile(id);\n\t}\n\tparse(input, options) {\n\t\treturn parseAst(input, options);\n\t}\n};\n\n//#endregion\n//#region src/plugin/transform-plugin-context.ts\nvar TransformPluginContextImpl = class extends PluginContextImpl {\n\tconstructor(outputOptions, context, plugin, data, inner, moduleId, moduleSource, onLog, LogLevelOption, watchMode) {\n\t\tsuper(outputOptions, context, plugin, data, onLog, LogLevelOption, watchMode, moduleId);\n\t\tthis.inner = inner;\n\t\tthis.moduleId = moduleId;\n\t\tthis.moduleSource = moduleSource;\n\t\tconst getLogHandler = (handler) => (log, pos) => {\n\t\t\tlog = normalizeLog(log);\n\t\t\tif (pos) augmentCodeLocation(log, pos, moduleSource, moduleId);\n\t\t\tlog.id = moduleId;\n\t\t\tlog.hook = \"transform\";\n\t\t\thandler(log);\n\t\t};\n\t\tthis.debug = getLogHandler(this.debug);\n\t\tthis.warn = getLogHandler(this.warn);\n\t\tthis.info = getLogHandler(this.info);\n\t}\n\terror(e, pos) {\n\t\tif (typeof e === \"string\") e = { message: e };\n\t\tif (pos) augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);\n\t\te.id = this.moduleId;\n\t\te.hook = \"transform\";\n\t\treturn error(logPluginError(normalizeLog(e), this.pluginName));\n\t}\n\tgetCombinedSourcemap() {\n\t\treturn JSON.parse(this.inner.getCombinedSourcemap());\n\t}\n\taddWatchFile(id) {\n\t\tthis.inner.addWatchFile(id);\n\t}\n\tsendMagicString(s) {\n\t\tthis.inner.sendMagicString(s);\n\t}\n};\n\n//#endregion\n//#region src/plugin/bindingify-build-hooks.ts\nfunction bindingifyBuildStart(args) {\n\tconst hook = args.plugin.buildStart;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, opts) => {\n\t\t\tawait handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), args.pluginContextData.getInputOptions(opts));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyBuildEnd(args) {\n\tconst hook = args.plugin.buildEnd;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, err) => {\n\t\t\tawait handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), err ? aggregateBindingErrorsIntoJsError(err) : void 0);\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyResolveId(args) {\n\tconst hook = args.plugin.resolveId;\n\tif (!hook) return {};\n\tconst { handler, meta, options } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, specifier, importer, extraOptions) => {\n\t\t\tconst contextResolveOptions = extraOptions.custom != null ? args.pluginContextData.getSavedResolveOptions(extraOptions.custom) : void 0;\n\t\t\tconst ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), specifier, importer ?? void 0, {\n\t\t\t\t...extraOptions,\n\t\t\t\tcustom: contextResolveOptions?.custom\n\t\t\t});\n\t\t\tif (ret == null) return;\n\t\t\tif (ret === false) return {\n\t\t\t\tid: specifier,\n\t\t\t\texternal: true,\n\t\t\t\tnormalizeExternalId: true\n\t\t\t};\n\t\t\tif (typeof ret === \"string\") return {\n\t\t\t\tid: ret,\n\t\t\t\tnormalizeExternalId: false\n\t\t\t};\n\t\t\tlet exist = args.pluginContextData.updateModuleOption(ret.id, {\n\t\t\t\tmeta: ret.meta || {},\n\t\t\t\tmoduleSideEffects: ret.moduleSideEffects ?? null,\n\t\t\t\tinvalidate: false\n\t\t\t});\n\t\t\treturn {\n\t\t\t\tid: ret.id,\n\t\t\t\texternal: ret.external,\n\t\t\t\tnormalizeExternalId: false,\n\t\t\t\tmoduleSideEffects: exist.moduleSideEffects ?? void 0,\n\t\t\t\tpackageJsonPath: ret.packageJsonPath\n\t\t\t};\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta),\n\t\tfilter: bindingifyResolveIdFilter(options.filter)\n\t};\n}\nfunction bindingifyResolveDynamicImport(args) {\n\tconst hook = args.plugin.resolveDynamicImport;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, specifier, importer) => {\n\t\t\tconst ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), specifier, importer ?? void 0);\n\t\t\tif (ret == null) return;\n\t\t\tif (ret === false) return {\n\t\t\t\tid: specifier,\n\t\t\t\texternal: true\n\t\t\t};\n\t\t\tif (typeof ret === \"string\") return { id: ret };\n\t\t\tconst result = {\n\t\t\t\tid: ret.id,\n\t\t\t\texternal: ret.external,\n\t\t\t\tpackageJsonPath: ret.packageJsonPath\n\t\t\t};\n\t\t\tif (ret.moduleSideEffects !== null) result.moduleSideEffects = ret.moduleSideEffects;\n\t\t\targs.pluginContextData.updateModuleOption(ret.id, {\n\t\t\t\tmeta: ret.meta || {},\n\t\t\t\tmoduleSideEffects: ret.moduleSideEffects || null,\n\t\t\t\tinvalidate: false\n\t\t\t});\n\t\t\treturn result;\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyTransform(args) {\n\tconst hook = args.plugin.transform;\n\tif (!hook) return {};\n\tconst { handler, meta, options } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, code, id, meta) => {\n\t\t\tlet magicStringInstance, astInstance;\n\t\t\tObject.defineProperties(meta, {\n\t\t\t\tmagicString: { get() {\n\t\t\t\t\tif (magicStringInstance) return magicStringInstance;\n\t\t\t\t\tmagicStringInstance = new import_binding.BindingMagicString(code);\n\t\t\t\t\treturn magicStringInstance;\n\t\t\t\t} },\n\t\t\t\tast: { get() {\n\t\t\t\t\tif (astInstance) return astInstance;\n\t\t\t\t\tlet lang = \"js\";\n\t\t\t\t\tswitch (meta.moduleType) {\n\t\t\t\t\t\tcase \"js\":\n\t\t\t\t\t\tcase \"jsx\":\n\t\t\t\t\t\tcase \"ts\":\n\t\t\t\t\t\tcase \"tsx\":\n\t\t\t\t\t\t\tlang = meta.moduleType;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault: break;\n\t\t\t\t\t}\n\t\t\t\t\tastInstance = parseAst(code, {\n\t\t\t\t\t\tastType: meta.moduleType.includes(\"ts\") ? \"ts\" : \"js\",\n\t\t\t\t\t\tlang\n\t\t\t\t\t});\n\t\t\t\t\treturn astInstance;\n\t\t\t\t} }\n\t\t\t});\n\t\t\tconst transformCtx = new TransformPluginContextImpl(args.outputOptions, ctx.inner(), args.plugin, args.pluginContextData, ctx, id, code, args.onLog, args.logLevel, args.watchMode);\n\t\t\tconst ret = await handler.call(transformCtx, code, id, meta);\n\t\t\tif (ret == null) return;\n\t\t\tif (typeof ret === \"string\") return { code: ret };\n\t\t\tlet moduleOption = args.pluginContextData.updateModuleOption(id, {\n\t\t\t\tmeta: ret.meta ?? {},\n\t\t\t\tmoduleSideEffects: ret.moduleSideEffects ?? null,\n\t\t\t\tinvalidate: false\n\t\t\t});\n\t\t\tlet normalizedCode = void 0;\n\t\t\tlet map = ret.map;\n\t\t\tif (typeof ret.code === \"string\") normalizedCode = ret.code;\n\t\t\telse if (ret.code instanceof import_binding.BindingMagicString) {\n\t\t\t\tlet magicString = ret.code;\n\t\t\t\tnormalizedCode = magicString.toString();\n\t\t\t\tlet fallbackSourcemap = ctx.sendMagicString(magicString);\n\t\t\t\tif (fallbackSourcemap != void 0) map = fallbackSourcemap;\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tcode: normalizedCode,\n\t\t\t\tmap: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)),\n\t\t\t\tmoduleSideEffects: moduleOption.moduleSideEffects ?? void 0,\n\t\t\t\tmoduleType: ret.moduleType\n\t\t\t};\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta),\n\t\tfilter: bindingifyTransformFilter(options.filter)\n\t};\n}\nfunction bindingifyLoad(args) {\n\tconst hook = args.plugin.load;\n\tif (!hook) return {};\n\tconst { handler, meta, options } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, id) => {\n\t\t\tconst ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode, id), id);\n\t\t\tif (ret == null) return;\n\t\t\tif (typeof ret === \"string\") return { code: ret };\n\t\t\tlet moduleOption = args.pluginContextData.updateModuleOption(id, {\n\t\t\t\tmeta: ret.meta || {},\n\t\t\t\tmoduleSideEffects: ret.moduleSideEffects ?? null,\n\t\t\t\tinvalidate: false\n\t\t\t});\n\t\t\tlet map = preProcessSourceMap(ret, id);\n\t\t\treturn {\n\t\t\t\tcode: ret.code,\n\t\t\t\tmap: bindingifySourcemap(map),\n\t\t\t\tmoduleType: ret.moduleType,\n\t\t\t\tmoduleSideEffects: moduleOption.moduleSideEffects ?? void 0\n\t\t\t};\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta),\n\t\tfilter: bindingifyLoadFilter(options.filter)\n\t};\n}\nfunction preProcessSourceMap(ret, id) {\n\tif (!ret.map) return;\n\tlet map = typeof ret.map === \"object\" ? ret.map : JSON.parse(ret.map);\n\tif (!isEmptySourcemapFiled(map.sources)) {\n\t\tconst directory = path.dirname(id) || \".\";\n\t\tconst sourceRoot = map.sourceRoot || \".\";\n\t\tmap.sources = map.sources.map((source) => path.resolve(directory, sourceRoot, source));\n\t}\n\treturn map;\n}\nfunction bindingifyModuleParsed(args) {\n\tconst hook = args.plugin.moduleParsed;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, moduleInfo) => {\n\t\t\tawait handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformModuleInfo(moduleInfo, args.pluginContextData.getModuleOption(moduleInfo.id)));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\n\n//#endregion\n//#region src/plugin/bindingify-output-hooks.ts\nfunction bindingifyRenderStart(args) {\n\tconst hook = args.plugin.renderStart;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, opts) => {\n\t\t\thandler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), args.pluginContextData.getOutputOptions(opts), args.pluginContextData.getInputOptions(opts));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyRenderChunk(args) {\n\tconst hook = args.plugin.renderChunk;\n\tif (!hook) return {};\n\tconst { handler, meta, options } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, code, chunk, opts, meta) => {\n\t\t\tif (args.pluginContextData.getRenderChunkMeta() == null) args.pluginContextData.setRenderChunkMeta({ chunks: Object.fromEntries(Object.entries(meta.chunks).map(([key, value]) => [key, transformRenderedChunk(value)])) });\n\t\t\tconst renderChunkMeta = args.pluginContextData.getRenderChunkMeta();\n\t\t\tlet magicStringInstance;\n\t\t\tif (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, \"magicString\", {\n\t\t\t\tget() {\n\t\t\t\t\tif (magicStringInstance) return magicStringInstance;\n\t\t\t\t\tmagicStringInstance = new import_binding.BindingMagicString(code);\n\t\t\t\t\treturn magicStringInstance;\n\t\t\t\t},\n\t\t\t\tconfigurable: true\n\t\t\t});\n\t\t\tconst ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);\n\t\t\tif (ret == null) return;\n\t\t\tif (ret instanceof import_binding.BindingMagicString) {\n\t\t\t\tconst normalizedCode = ret.toString();\n\t\t\t\tconst generatedMap = ret.generateMap();\n\t\t\t\treturn {\n\t\t\t\t\tcode: normalizedCode,\n\t\t\t\t\tmap: bindingifySourcemap({\n\t\t\t\t\t\tfile: generatedMap.file,\n\t\t\t\t\t\tmappings: generatedMap.mappings,\n\t\t\t\t\t\tnames: generatedMap.names,\n\t\t\t\t\t\tsources: generatedMap.sources,\n\t\t\t\t\t\tsourcesContent: generatedMap.sourcesContent.map((s) => s ?? null)\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (typeof ret === \"string\") return { code: ret };\n\t\t\tif (ret.code instanceof import_binding.BindingMagicString) {\n\t\t\t\tconst magicString = ret.code;\n\t\t\t\tconst normalizedCode = magicString.toString();\n\t\t\t\tif (ret.map === null) return { code: normalizedCode };\n\t\t\t\tif (ret.map === void 0) {\n\t\t\t\t\tconst generatedMap = magicString.generateMap();\n\t\t\t\t\treturn {\n\t\t\t\t\t\tcode: normalizedCode,\n\t\t\t\t\t\tmap: bindingifySourcemap({\n\t\t\t\t\t\t\tfile: generatedMap.file,\n\t\t\t\t\t\t\tmappings: generatedMap.mappings,\n\t\t\t\t\t\t\tnames: generatedMap.names,\n\t\t\t\t\t\t\tsources: generatedMap.sources,\n\t\t\t\t\t\t\tsourcesContent: generatedMap.sourcesContent.map((s) => s ?? null)\n\t\t\t\t\t\t})\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\tcode: normalizedCode,\n\t\t\t\t\tmap: bindingifySourcemap(ret.map)\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (!ret.map) return { code: ret.code };\n\t\t\treturn {\n\t\t\t\tcode: ret.code,\n\t\t\t\tmap: bindingifySourcemap(ret.map)\n\t\t\t};\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta),\n\t\tfilter: bindingifyRenderChunkFilter(options.filter)\n\t};\n}\nfunction bindingifyAugmentChunkHash(args) {\n\tconst hook = args.plugin.augmentChunkHash;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, chunk) => {\n\t\t\treturn handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyRenderError(args) {\n\tconst hook = args.plugin.renderError;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, err) => {\n\t\t\thandler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), aggregateBindingErrorsIntoJsError(err));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyGenerateBundle(args) {\n\tconst hook = args.plugin.generateBundle;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, bundle, isWrite, opts) => {\n\t\t\tconst changed = {\n\t\t\t\tupdated: /* @__PURE__ */ new Set(),\n\t\t\t\tdeleted: /* @__PURE__ */ new Set()\n\t\t\t};\n\t\t\tconst context = new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode);\n\t\t\tconst output = transformToOutputBundle(context, unwrapBindingResult(bundle), changed);\n\t\t\tawait handler.call(context, args.pluginContextData.getOutputOptions(opts), output, isWrite);\n\t\t\treturn collectChangedBundle(changed, output);\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyWriteBundle(args) {\n\tconst hook = args.plugin.writeBundle;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, bundle, opts) => {\n\t\t\tconst changed = {\n\t\t\t\tupdated: /* @__PURE__ */ new Set(),\n\t\t\t\tdeleted: /* @__PURE__ */ new Set()\n\t\t\t};\n\t\t\tconst context = new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode);\n\t\t\tconst output = transformToOutputBundle(context, unwrapBindingResult(bundle), changed);\n\t\t\tawait handler.call(context, args.pluginContextData.getOutputOptions(opts), output);\n\t\t\treturn collectChangedBundle(changed, output);\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyCloseBundle(args) {\n\tconst hook = args.plugin.closeBundle;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, err) => {\n\t\t\tawait handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), err ? aggregateBindingErrorsIntoJsError(err) : void 0);\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyBanner(args) {\n\tconst hook = args.plugin.banner;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, chunk) => {\n\t\t\tif (typeof handler === \"string\") return handler;\n\t\t\treturn handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyFooter(args) {\n\tconst hook = args.plugin.footer;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, chunk) => {\n\t\t\tif (typeof handler === \"string\") return handler;\n\t\t\treturn handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyIntro(args) {\n\tconst hook = args.plugin.intro;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, chunk) => {\n\t\t\tif (typeof handler === \"string\") return handler;\n\t\t\treturn handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyOutro(args) {\n\tconst hook = args.plugin.outro;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, chunk) => {\n\t\t\tif (typeof handler === \"string\") return handler;\n\t\t\treturn handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), transformRenderedChunk(chunk));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\n\n//#endregion\n//#region src/plugin/bindingify-watch-hooks.ts\nfunction bindingifyWatchChange(args) {\n\tconst hook = args.plugin.watchChange;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx, id, event) => {\n\t\t\tawait handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), id, { event });\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\nfunction bindingifyCloseWatcher(args) {\n\tconst hook = args.plugin.closeWatcher;\n\tif (!hook) return {};\n\tconst { handler, meta } = normalizeHook(hook);\n\treturn {\n\t\tplugin: async (ctx) => {\n\t\t\tawait handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode));\n\t\t},\n\t\tmeta: bindingifyPluginHookMeta(meta)\n\t};\n}\n\n//#endregion\n//#region src/plugin/generated/hook-usage.ts\nlet HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {\n\tHookUsageKind[HookUsageKind[\"buildStart\"] = 1] = \"buildStart\";\n\tHookUsageKind[HookUsageKind[\"resolveId\"] = 2] = \"resolveId\";\n\tHookUsageKind[HookUsageKind[\"resolveDynamicImport\"] = 4] = \"resolveDynamicImport\";\n\tHookUsageKind[HookUsageKind[\"load\"] = 8] = \"load\";\n\tHookUsageKind[HookUsageKind[\"transform\"] = 16] = \"transform\";\n\tHookUsageKind[HookUsageKind[\"moduleParsed\"] = 32] = \"moduleParsed\";\n\tHookUsageKind[HookUsageKind[\"buildEnd\"] = 64] = \"buildEnd\";\n\tHookUsageKind[HookUsageKind[\"renderStart\"] = 128] = \"renderStart\";\n\tHookUsageKind[HookUsageKind[\"renderError\"] = 256] = \"renderError\";\n\tHookUsageKind[HookUsageKind[\"renderChunk\"] = 512] = \"renderChunk\";\n\tHookUsageKind[HookUsageKind[\"augmentChunkHash\"] = 1024] = \"augmentChunkHash\";\n\tHookUsageKind[HookUsageKind[\"generateBundle\"] = 2048] = \"generateBundle\";\n\tHookUsageKind[HookUsageKind[\"writeBundle\"] = 4096] = \"writeBundle\";\n\tHookUsageKind[HookUsageKind[\"closeBundle\"] = 8192] = \"closeBundle\";\n\tHookUsageKind[HookUsageKind[\"watchChange\"] = 16384] = \"watchChange\";\n\tHookUsageKind[HookUsageKind[\"closeWatcher\"] = 32768] = \"closeWatcher\";\n\tHookUsageKind[HookUsageKind[\"transformAst\"] = 65536] = \"transformAst\";\n\tHookUsageKind[HookUsageKind[\"banner\"] = 131072] = \"banner\";\n\tHookUsageKind[HookUsageKind[\"footer\"] = 262144] = \"footer\";\n\tHookUsageKind[HookUsageKind[\"intro\"] = 524288] = \"intro\";\n\tHookUsageKind[HookUsageKind[\"outro\"] = 1048576] = \"outro\";\n\treturn HookUsageKind;\n}({});\nvar HookUsage = class {\n\tbitflag = BigInt(0);\n\tconstructor() {}\n\tunion(kind) {\n\t\tthis.bitflag |= BigInt(kind);\n\t}\n\tinner() {\n\t\treturn Number(this.bitflag);\n\t}\n};\nfunction extractHookUsage(plugin) {\n\tlet hookUsage = new HookUsage();\n\tif (plugin.buildStart) hookUsage.union(HookUsageKind.buildStart);\n\tif (plugin.resolveId) hookUsage.union(HookUsageKind.resolveId);\n\tif (plugin.resolveDynamicImport) hookUsage.union(HookUsageKind.resolveDynamicImport);\n\tif (plugin.load) hookUsage.union(HookUsageKind.load);\n\tif (plugin.transform) hookUsage.union(HookUsageKind.transform);\n\tif (plugin.moduleParsed) hookUsage.union(HookUsageKind.moduleParsed);\n\tif (plugin.buildEnd) hookUsage.union(HookUsageKind.buildEnd);\n\tif (plugin.renderStart) hookUsage.union(HookUsageKind.renderStart);\n\tif (plugin.renderError) hookUsage.union(HookUsageKind.renderError);\n\tif (plugin.renderChunk) hookUsage.union(HookUsageKind.renderChunk);\n\tif (plugin.augmentChunkHash) hookUsage.union(HookUsageKind.augmentChunkHash);\n\tif (plugin.generateBundle) hookUsage.union(HookUsageKind.generateBundle);\n\tif (plugin.writeBundle) hookUsage.union(HookUsageKind.writeBundle);\n\tif (plugin.closeBundle) hookUsage.union(HookUsageKind.closeBundle);\n\tif (plugin.watchChange) hookUsage.union(HookUsageKind.watchChange);\n\tif (plugin.closeWatcher) hookUsage.union(HookUsageKind.closeWatcher);\n\tif (plugin.banner) hookUsage.union(HookUsageKind.banner);\n\tif (plugin.footer) hookUsage.union(HookUsageKind.footer);\n\tif (plugin.intro) hookUsage.union(HookUsageKind.intro);\n\tif (plugin.outro) hookUsage.union(HookUsageKind.outro);\n\treturn hookUsage;\n}\n\n//#endregion\n//#region src/plugin/bindingify-plugin.ts\nfunction bindingifyPlugin(plugin, options, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {\n\tconst args = {\n\t\tplugin,\n\t\toptions,\n\t\toutputOptions,\n\t\tpluginContextData,\n\t\tonLog,\n\t\tlogLevel,\n\t\twatchMode,\n\t\tnormalizedOutputPlugins\n\t};\n\tconst { plugin: buildStart, meta: buildStartMeta } = bindingifyBuildStart(args);\n\tconst { plugin: resolveId, meta: resolveIdMeta, filter: resolveIdFilter } = bindingifyResolveId(args);\n\tconst { plugin: resolveDynamicImport, meta: resolveDynamicImportMeta } = bindingifyResolveDynamicImport(args);\n\tconst { plugin: buildEnd, meta: buildEndMeta } = bindingifyBuildEnd(args);\n\tconst { plugin: transform, meta: transformMeta, filter: transformFilter } = bindingifyTransform(args);\n\tconst { plugin: moduleParsed, meta: moduleParsedMeta } = bindingifyModuleParsed(args);\n\tconst { plugin: load, meta: loadMeta, filter: loadFilter } = bindingifyLoad(args);\n\tconst { plugin: renderChunk, meta: renderChunkMeta, filter: renderChunkFilter } = bindingifyRenderChunk(args);\n\tconst { plugin: augmentChunkHash, meta: augmentChunkHashMeta } = bindingifyAugmentChunkHash(args);\n\tconst { plugin: renderStart, meta: renderStartMeta } = bindingifyRenderStart(args);\n\tconst { plugin: renderError, meta: renderErrorMeta } = bindingifyRenderError(args);\n\tconst { plugin: generateBundle, meta: generateBundleMeta } = bindingifyGenerateBundle(args);\n\tconst { plugin: writeBundle, meta: writeBundleMeta } = bindingifyWriteBundle(args);\n\tconst { plugin: closeBundle, meta: closeBundleMeta } = bindingifyCloseBundle(args);\n\tconst { plugin: banner, meta: bannerMeta } = bindingifyBanner(args);\n\tconst { plugin: footer, meta: footerMeta } = bindingifyFooter(args);\n\tconst { plugin: intro, meta: introMeta } = bindingifyIntro(args);\n\tconst { plugin: outro, meta: outroMeta } = bindingifyOutro(args);\n\tconst { plugin: watchChange, meta: watchChangeMeta } = bindingifyWatchChange(args);\n\tconst { plugin: closeWatcher, meta: closeWatcherMeta } = bindingifyCloseWatcher(args);\n\tlet hookUsage = extractHookUsage(plugin).inner();\n\treturn wrapHandlers({\n\t\tname: plugin.name,\n\t\tbuildStart,\n\t\tbuildStartMeta,\n\t\tresolveId,\n\t\tresolveIdMeta,\n\t\tresolveIdFilter,\n\t\tresolveDynamicImport,\n\t\tresolveDynamicImportMeta,\n\t\tbuildEnd,\n\t\tbuildEndMeta,\n\t\ttransform,\n\t\ttransformMeta,\n\t\ttransformFilter,\n\t\tmoduleParsed,\n\t\tmoduleParsedMeta,\n\t\tload,\n\t\tloadMeta,\n\t\tloadFilter,\n\t\trenderChunk,\n\t\trenderChunkMeta,\n\t\trenderChunkFilter,\n\t\taugmentChunkHash,\n\t\taugmentChunkHashMeta,\n\t\trenderStart,\n\t\trenderStartMeta,\n\t\trenderError,\n\t\trenderErrorMeta,\n\t\tgenerateBundle,\n\t\tgenerateBundleMeta,\n\t\twriteBundle,\n\t\twriteBundleMeta,\n\t\tcloseBundle,\n\t\tcloseBundleMeta,\n\t\tbanner,\n\t\tbannerMeta,\n\t\tfooter,\n\t\tfooterMeta,\n\t\tintro,\n\t\tintroMeta,\n\t\toutro,\n\t\toutroMeta,\n\t\twatchChange,\n\t\twatchChangeMeta,\n\t\tcloseWatcher,\n\t\tcloseWatcherMeta,\n\t\thookUsage\n\t});\n}\nfunction wrapHandlers(plugin) {\n\tfor (const hookName of [\n\t\t\"buildStart\",\n\t\t\"resolveId\",\n\t\t\"resolveDynamicImport\",\n\t\t\"buildEnd\",\n\t\t\"transform\",\n\t\t\"moduleParsed\",\n\t\t\"load\",\n\t\t\"renderChunk\",\n\t\t\"augmentChunkHash\",\n\t\t\"renderStart\",\n\t\t\"renderError\",\n\t\t\"generateBundle\",\n\t\t\"writeBundle\",\n\t\t\"closeBundle\",\n\t\t\"banner\",\n\t\t\"footer\",\n\t\t\"intro\",\n\t\t\"outro\",\n\t\t\"watchChange\",\n\t\t\"closeWatcher\"\n\t]) {\n\t\tconst handler = plugin[hookName];\n\t\tif (handler) plugin[hookName] = async (...args) => {\n\t\t\ttry {\n\t\t\t\treturn await handler(...args);\n\t\t\t} catch (e) {\n\t\t\t\treturn error(logPluginError(e, plugin.name, {\n\t\t\t\t\thook: hookName,\n\t\t\t\t\tid: hookName === \"transform\" ? args[2] : void 0\n\t\t\t\t}));\n\t\t\t}\n\t\t};\n\t}\n\treturn plugin;\n}\n\n//#endregion\n//#region src/options/normalized-input-options.ts\nvar NormalizedInputOptionsImpl = class extends PlainObjectLike {\n\tinner;\n\tconstructor(inner, onLog) {\n\t\tsuper();\n\t\tthis.onLog = onLog;\n\t\tthis.inner = inner;\n\t}\n\tget shimMissingExports() {\n\t\treturn this.inner.shimMissingExports;\n\t}\n\tget input() {\n\t\treturn this.inner.input;\n\t}\n\tget cwd() {\n\t\treturn this.inner.cwd;\n\t}\n\tget platform() {\n\t\treturn this.inner.platform;\n\t}\n\tget context() {\n\t\treturn this.inner.context;\n\t}\n};\n__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, \"shimMissingExports\", null);\n__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, \"input\", null);\n__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, \"cwd\", null);\n__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, \"platform\", null);\n__decorate([lazyProp], NormalizedInputOptionsImpl.prototype, \"context\", null);\n\n//#endregion\n//#region src/options/normalized-output-options.ts\nvar NormalizedOutputOptionsImpl = class extends PlainObjectLike {\n\tconstructor(inner, outputOptions, normalizedOutputPlugins) {\n\t\tsuper();\n\t\tthis.inner = inner;\n\t\tthis.outputOptions = outputOptions;\n\t\tthis.normalizedOutputPlugins = normalizedOutputPlugins;\n\t}\n\tget dir() {\n\t\treturn this.inner.dir ?? void 0;\n\t}\n\tget entryFileNames() {\n\t\treturn this.inner.entryFilenames || this.outputOptions.entryFileNames;\n\t}\n\tget chunkFileNames() {\n\t\treturn this.inner.chunkFilenames || this.outputOptions.chunkFileNames;\n\t}\n\tget assetFileNames() {\n\t\treturn this.inner.assetFilenames || this.outputOptions.assetFileNames;\n\t}\n\tget format() {\n\t\treturn this.inner.format;\n\t}\n\tget exports() {\n\t\treturn this.inner.exports;\n\t}\n\tget sourcemap() {\n\t\treturn this.inner.sourcemap;\n\t}\n\tget sourcemapBaseUrl() {\n\t\treturn this.inner.sourcemapBaseUrl ?? void 0;\n\t}\n\tget cssEntryFileNames() {\n\t\treturn this.inner.cssEntryFilenames || this.outputOptions.cssEntryFileNames;\n\t}\n\tget cssChunkFileNames() {\n\t\treturn this.inner.cssChunkFilenames || this.outputOptions.cssChunkFileNames;\n\t}\n\tget shimMissingExports() {\n\t\treturn this.inner.shimMissingExports;\n\t}\n\tget name() {\n\t\treturn this.inner.name ?? void 0;\n\t}\n\tget file() {\n\t\treturn this.inner.file ?? void 0;\n\t}\n\tget codeSplitting() {\n\t\treturn this.inner.codeSplitting;\n\t}\n\t/**\n\t* @deprecated Use `codeSplitting` instead.\n\t*/\n\tget inlineDynamicImports() {\n\t\treturn !this.inner.codeSplitting;\n\t}\n\tget dynamicImportInCjs() {\n\t\treturn this.inner.dynamicImportInCjs;\n\t}\n\tget externalLiveBindings() {\n\t\treturn this.inner.externalLiveBindings;\n\t}\n\tget banner() {\n\t\treturn normalizeAddon(this.outputOptions.banner);\n\t}\n\tget footer() {\n\t\treturn normalizeAddon(this.outputOptions.footer);\n\t}\n\tget postBanner() {\n\t\treturn normalizeAddon(this.outputOptions.postBanner);\n\t}\n\tget postFooter() {\n\t\treturn normalizeAddon(this.outputOptions.postFooter);\n\t}\n\tget intro() {\n\t\treturn normalizeAddon(this.outputOptions.intro);\n\t}\n\tget outro() {\n\t\treturn normalizeAddon(this.outputOptions.outro);\n\t}\n\tget esModule() {\n\t\treturn this.inner.esModule;\n\t}\n\tget extend() {\n\t\treturn this.inner.extend;\n\t}\n\tget globals() {\n\t\treturn this.inner.globals || this.outputOptions.globals;\n\t}\n\tget paths() {\n\t\treturn this.outputOptions.paths;\n\t}\n\tget hashCharacters() {\n\t\treturn this.inner.hashCharacters;\n\t}\n\tget sourcemapDebugIds() {\n\t\treturn this.inner.sourcemapDebugIds;\n\t}\n\tget sourcemapIgnoreList() {\n\t\treturn this.outputOptions.sourcemapIgnoreList;\n\t}\n\tget sourcemapPathTransform() {\n\t\treturn this.outputOptions.sourcemapPathTransform;\n\t}\n\tget minify() {\n\t\tlet ret = this.inner.minify;\n\t\tif (typeof ret === \"object\" && ret !== null) {\n\t\t\tdelete ret[\"codegen\"];\n\t\t\tdelete ret[\"module\"];\n\t\t\tdelete ret[\"sourcemap\"];\n\t\t}\n\t\treturn ret;\n\t}\n\tget legalComments() {\n\t\treturn this.inner.legalComments;\n\t}\n\tget polyfillRequire() {\n\t\treturn this.inner.polyfillRequire;\n\t}\n\tget plugins() {\n\t\treturn this.normalizedOutputPlugins;\n\t}\n\tget preserveModules() {\n\t\treturn this.inner.preserveModules;\n\t}\n\tget preserveModulesRoot() {\n\t\treturn this.inner.preserveModulesRoot;\n\t}\n\tget virtualDirname() {\n\t\treturn this.inner.virtualDirname;\n\t}\n\tget topLevelVar() {\n\t\treturn this.inner.topLevelVar ?? false;\n\t}\n\tget minifyInternalExports() {\n\t\treturn this.inner.minifyInternalExports ?? false;\n\t}\n};\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"dir\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"entryFileNames\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"chunkFileNames\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"assetFileNames\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"format\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"exports\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"sourcemap\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"sourcemapBaseUrl\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"cssEntryFileNames\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"cssChunkFileNames\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"shimMissingExports\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"name\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"file\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"codeSplitting\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"inlineDynamicImports\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"dynamicImportInCjs\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"externalLiveBindings\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"banner\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"footer\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"postBanner\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"postFooter\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"intro\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"outro\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"esModule\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"extend\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"globals\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"paths\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"hashCharacters\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"sourcemapDebugIds\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"sourcemapIgnoreList\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"sourcemapPathTransform\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"minify\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"legalComments\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"polyfillRequire\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"plugins\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"preserveModules\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"preserveModulesRoot\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"virtualDirname\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"topLevelVar\", null);\n__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, \"minifyInternalExports\", null);\nfunction normalizeAddon(value) {\n\tif (typeof value === \"function\") return value;\n\treturn () => value || \"\";\n}\n\n//#endregion\n//#region src/plugin/plugin-context-data.ts\nvar PluginContextData = class {\n\tmoduleOptionMap = /* @__PURE__ */ new Map();\n\tresolveOptionsMap = /* @__PURE__ */ new Map();\n\tloadModulePromiseMap = /* @__PURE__ */ new Map();\n\trenderedChunkMeta = null;\n\tnormalizedInputOptions = null;\n\tnormalizedOutputOptions = null;\n\tconstructor(onLog, outputOptions, normalizedOutputPlugins) {\n\t\tthis.onLog = onLog;\n\t\tthis.outputOptions = outputOptions;\n\t\tthis.normalizedOutputPlugins = normalizedOutputPlugins;\n\t}\n\tupdateModuleOption(id, option) {\n\t\tconst existing = this.moduleOptionMap.get(id);\n\t\tif (existing) {\n\t\t\tif (option.moduleSideEffects != null) existing.moduleSideEffects = option.moduleSideEffects;\n\t\t\tif (option.meta != null) Object.assign(existing.meta, option.meta);\n\t\t\tif (option.invalidate != null) existing.invalidate = option.invalidate;\n\t\t} else {\n\t\t\tthis.moduleOptionMap.set(id, option);\n\t\t\treturn option;\n\t\t}\n\t\treturn existing;\n\t}\n\tgetModuleOption(id) {\n\t\tconst option = this.moduleOptionMap.get(id);\n\t\tif (!option) {\n\t\t\tconst raw = {\n\t\t\t\tmoduleSideEffects: null,\n\t\t\t\tmeta: {}\n\t\t\t};\n\t\t\tthis.moduleOptionMap.set(id, raw);\n\t\t\treturn raw;\n\t\t}\n\t\treturn option;\n\t}\n\tgetModuleInfo(id, context) {\n\t\tconst bindingInfo = context.getModuleInfo(id);\n\t\tif (bindingInfo) {\n\t\t\tconst info = transformModuleInfo(bindingInfo, this.getModuleOption(id));\n\t\t\treturn this.proxyModuleInfo(id, info);\n\t\t}\n\t\treturn null;\n\t}\n\tproxyModuleInfo(id, info) {\n\t\tlet moduleSideEffects = info.moduleSideEffects;\n\t\tObject.defineProperty(info, \"moduleSideEffects\", {\n\t\t\tget() {\n\t\t\t\treturn moduleSideEffects;\n\t\t\t},\n\t\t\tset: (v) => {\n\t\t\t\tthis.updateModuleOption(id, {\n\t\t\t\t\tmoduleSideEffects: v,\n\t\t\t\t\tmeta: info.meta,\n\t\t\t\t\tinvalidate: true\n\t\t\t\t});\n\t\t\t\tmoduleSideEffects = v;\n\t\t\t}\n\t\t});\n\t\treturn info;\n\t}\n\tgetModuleIds(context) {\n\t\treturn context.getModuleIds().values();\n\t}\n\tsaveResolveOptions(options) {\n\t\tconst index = this.resolveOptionsMap.size;\n\t\tthis.resolveOptionsMap.set(index, options);\n\t\treturn index;\n\t}\n\tgetSavedResolveOptions(receipt) {\n\t\treturn this.resolveOptionsMap.get(receipt);\n\t}\n\tremoveSavedResolveOptions(receipt) {\n\t\tthis.resolveOptionsMap.delete(receipt);\n\t}\n\tsetRenderChunkMeta(meta) {\n\t\tthis.renderedChunkMeta = meta;\n\t}\n\tgetRenderChunkMeta() {\n\t\treturn this.renderedChunkMeta;\n\t}\n\tgetInputOptions(opts) {\n\t\tthis.normalizedInputOptions ??= new NormalizedInputOptionsImpl(opts, this.onLog);\n\t\treturn this.normalizedInputOptions;\n\t}\n\tgetOutputOptions(opts) {\n\t\tthis.normalizedOutputOptions ??= new NormalizedOutputOptionsImpl(opts, this.outputOptions, this.normalizedOutputPlugins);\n\t\treturn this.normalizedOutputOptions;\n\t}\n\tclear() {\n\t\tthis.renderedChunkMeta = null;\n\t\tthis.loadModulePromiseMap.clear();\n\t}\n};\n\n//#endregion\n//#region src/utils/normalize-transform-options.ts\n/**\n* Normalizes transform options by extracting `define`, `inject`, and `dropLabels` separately from OXC transform options.\n*\n* Prioritizes values from `transform.define`, `transform.inject`, and `transform.dropLabels` over deprecated top-level options.\n*/\nfunction normalizeTransformOptions(inputOptions) {\n\tconst transform = inputOptions.transform;\n\tconst define = transform?.define ? Object.entries(transform.define) : void 0;\n\tconst inject = transform?.inject;\n\tconst dropLabels = transform?.dropLabels;\n\tlet oxcTransformOptions;\n\tif (transform) {\n\t\tconst { define: _define, inject: _inject, dropLabels: _dropLabels, ...rest } = transform;\n\t\tif (Object.keys(rest).length > 0) {\n\t\t\tif (rest.jsx === false) rest.jsx = \"disable\";\n\t\t\toxcTransformOptions = rest;\n\t\t}\n\t}\n\treturn {\n\t\tdefine,\n\t\tinject,\n\t\tdropLabels,\n\t\toxcTransformOptions\n\t};\n}\n\n//#endregion\n//#region src/utils/bindingify-input-options.ts\nfunction bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {\n\tconst pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);\n\tconst plugins = rawPlugins.map((plugin) => {\n\t\tif (\"_parallel\" in plugin) return;\n\t\tif (plugin instanceof BuiltinPlugin) switch (plugin.name) {\n\t\t\tcase \"builtin:vite-manifest\": return bindingifyManifestPlugin(plugin, pluginContextData);\n\t\t\tdefault: return bindingifyBuiltInPlugin(plugin);\n\t\t}\n\t\treturn bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);\n\t});\n\tconst normalizedTransform = normalizeTransformOptions(inputOptions);\n\treturn {\n\t\tinput: bindingifyInput(inputOptions.input),\n\t\tplugins,\n\t\tcwd: inputOptions.cwd ?? process.cwd(),\n\t\texternal: bindingifyExternal(inputOptions.external),\n\t\tresolve: bindingifyResolve(inputOptions.resolve),\n\t\tplatform: inputOptions.platform,\n\t\tshimMissingExports: inputOptions.shimMissingExports,\n\t\tlogLevel: bindingifyLogLevel(logLevel),\n\t\tonLog: async (level, log) => onLog(level, log),\n\t\ttreeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),\n\t\tmoduleTypes: inputOptions.moduleTypes,\n\t\tdefine: normalizedTransform.define,\n\t\tinject: bindingifyInject(normalizedTransform.inject),\n\t\texperimental: bindingifyExperimental(inputOptions.experimental),\n\t\tprofilerNames: outputOptions.generatedCode?.profilerNames,\n\t\ttransform: normalizedTransform.oxcTransformOptions,\n\t\twatch: bindingifyWatch(inputOptions.watch),\n\t\tdropLabels: normalizedTransform.dropLabels,\n\t\tkeepNames: outputOptions.keepNames,\n\t\tchecks: inputOptions.checks,\n\t\tdeferSyncScanData: () => {\n\t\t\tlet ret = [];\n\t\t\tpluginContextData.moduleOptionMap.forEach((value, key) => {\n\t\t\t\tif (value.invalidate) ret.push({\n\t\t\t\t\tid: key,\n\t\t\t\t\tsideEffects: value.moduleSideEffects ?? void 0\n\t\t\t\t});\n\t\t\t});\n\t\t\treturn ret;\n\t\t},\n\t\tmakeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),\n\t\tdevtools: inputOptions.devtools,\n\t\tinvalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),\n\t\tpreserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),\n\t\toptimization: inputOptions.optimization,\n\t\tcontext: inputOptions.context,\n\t\ttsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig\n\t};\n}\nfunction bindingifyDevMode(devMode) {\n\tif (devMode) {\n\t\tif (typeof devMode === \"boolean\") return devMode ? {} : void 0;\n\t\treturn devMode;\n\t}\n}\nfunction bindingifyAttachDebugInfo(attachDebugInfo) {\n\tswitch (attachDebugInfo) {\n\t\tcase void 0: return;\n\t\tcase \"full\": return import_binding.BindingAttachDebugInfo.Full;\n\t\tcase \"simple\": return import_binding.BindingAttachDebugInfo.Simple;\n\t\tcase \"none\": return import_binding.BindingAttachDebugInfo.None;\n\t}\n}\nfunction bindingifyExternal(external) {\n\tif (external) {\n\t\tif (typeof external === \"function\") return (id, importer, isResolved) => {\n\t\t\tif (id.startsWith(\"\\0\")) return false;\n\t\t\treturn external(id, importer, isResolved) ?? false;\n\t\t};\n\t\treturn arraify(external);\n\t}\n}\nfunction bindingifyExperimental(experimental) {\n\tlet chunkModulesOrder = import_binding.BindingChunkModuleOrderBy.ExecOrder;\n\tif (experimental?.chunkModulesOrder) switch (experimental.chunkModulesOrder) {\n\t\tcase \"exec-order\":\n\t\t\tchunkModulesOrder = import_binding.BindingChunkModuleOrderBy.ExecOrder;\n\t\t\tbreak;\n\t\tcase \"module-id\":\n\t\t\tchunkModulesOrder = import_binding.BindingChunkModuleOrderBy.ModuleId;\n\t\t\tbreak;\n\t\tdefault: throw new Error(`Unexpected chunkModulesOrder: ${experimental.chunkModulesOrder}`);\n\t}\n\treturn {\n\t\tviteMode: experimental?.viteMode,\n\t\tresolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,\n\t\tdevMode: bindingifyDevMode(experimental?.devMode),\n\t\tattachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),\n\t\tchunkModulesOrder,\n\t\tchunkImportMap: experimental?.chunkImportMap,\n\t\tonDemandWrapping: experimental?.onDemandWrapping,\n\t\tincrementalBuild: experimental?.incrementalBuild,\n\t\tnativeMagicString: experimental?.nativeMagicString,\n\t\tchunkOptimization: experimental?.chunkOptimization\n\t};\n}\nfunction bindingifyResolve(resolve) {\n\tconst yarnPnp = typeof process === \"object\" && !!process.versions?.pnp;\n\tif (resolve) {\n\t\tconst { alias, extensionAlias, ...rest } = resolve;\n\t\treturn {\n\t\t\talias: alias ? Object.entries(alias).map(([name, replacement]) => ({\n\t\t\t\tfind: name,\n\t\t\t\treplacements: replacement === false ? [void 0] : arraify(replacement)\n\t\t\t})) : void 0,\n\t\t\textensionAlias: extensionAlias ? Object.entries(extensionAlias).map(([name, value]) => ({\n\t\t\t\ttarget: name,\n\t\t\t\treplacements: value\n\t\t\t})) : void 0,\n\t\t\tyarnPnp,\n\t\t\t...rest\n\t\t};\n\t} else return { yarnPnp };\n}\nfunction bindingifyInject(inject) {\n\tif (inject) return Object.entries(inject).map(([alias, item]) => {\n\t\tif (Array.isArray(item)) {\n\t\t\tif (item[1] === \"*\") return {\n\t\t\t\ttagNamespace: true,\n\t\t\t\talias,\n\t\t\t\tfrom: item[0]\n\t\t\t};\n\t\t\treturn {\n\t\t\t\ttagNamed: true,\n\t\t\t\talias,\n\t\t\t\tfrom: item[0],\n\t\t\t\timported: item[1]\n\t\t\t};\n\t\t} else return {\n\t\t\ttagNamed: true,\n\t\t\timported: \"default\",\n\t\t\talias,\n\t\t\tfrom: item\n\t\t};\n\t});\n}\nfunction bindingifyLogLevel(logLevel) {\n\tswitch (logLevel) {\n\t\tcase \"silent\": return import_binding.BindingLogLevel.Silent;\n\t\tcase \"debug\": return import_binding.BindingLogLevel.Debug;\n\t\tcase \"warn\": return import_binding.BindingLogLevel.Warn;\n\t\tcase \"info\": return import_binding.BindingLogLevel.Info;\n\t\tdefault: throw new Error(`Unexpected log level: ${logLevel}`);\n\t}\n}\nfunction bindingifyInput(input) {\n\tif (input === void 0) return [];\n\tif (typeof input === \"string\") return [{ import: input }];\n\tif (Array.isArray(input)) return input.map((src) => ({ import: src }));\n\treturn Object.entries(input).map(([name, import_path]) => {\n\t\treturn {\n\t\t\tname,\n\t\t\timport: import_path\n\t\t};\n\t});\n}\nfunction bindingifyWatch(watch) {\n\tif (watch) return {\n\t\tbuildDelay: watch.buildDelay,\n\t\tskipWrite: watch.skipWrite,\n\t\tinclude: normalizedStringOrRegex(watch.include),\n\t\texclude: normalizedStringOrRegex(watch.exclude),\n\t\tonInvalidate: (...args) => watch.onInvalidate?.(...args)\n\t};\n}\nfunction bindingifyTreeshakeOptions(config) {\n\tif (config === false) return;\n\tif (config === true || config === void 0) return { moduleSideEffects: true };\n\tlet normalizedConfig = {\n\t\tmoduleSideEffects: true,\n\t\tannotations: config.annotations,\n\t\tmanualPureFunctions: config.manualPureFunctions,\n\t\tunknownGlobalSideEffects: config.unknownGlobalSideEffects,\n\t\tinvalidImportSideEffects: config.invalidImportSideEffects,\n\t\tcommonjs: config.commonjs\n\t};\n\tswitch (config.propertyReadSideEffects) {\n\t\tcase \"always\":\n\t\t\tnormalizedConfig.propertyReadSideEffects = import_binding.BindingPropertyReadSideEffects.Always;\n\t\t\tbreak;\n\t\tcase false:\n\t\t\tnormalizedConfig.propertyReadSideEffects = import_binding.BindingPropertyReadSideEffects.False;\n\t\t\tbreak;\n\t\tdefault:\n\t}\n\tswitch (config.propertyWriteSideEffects) {\n\t\tcase \"always\":\n\t\t\tnormalizedConfig.propertyWriteSideEffects = import_binding.BindingPropertyWriteSideEffects.Always;\n\t\t\tbreak;\n\t\tcase false:\n\t\t\tnormalizedConfig.propertyWriteSideEffects = import_binding.BindingPropertyWriteSideEffects.False;\n\t\t\tbreak;\n\t\tdefault:\n\t}\n\tif (config.moduleSideEffects === void 0) normalizedConfig.moduleSideEffects = true;\n\telse if (config.moduleSideEffects === \"no-external\") normalizedConfig.moduleSideEffects = [{\n\t\texternal: true,\n\t\tsideEffects: false\n\t}, {\n\t\texternal: false,\n\t\tsideEffects: true\n\t}];\n\telse normalizedConfig.moduleSideEffects = config.moduleSideEffects;\n\treturn normalizedConfig;\n}\nfunction bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative) {\n\tif (makeAbsoluteExternalsRelative === \"ifRelativeSource\") return { type: \"IfRelativeSource\" };\n\tif (typeof makeAbsoluteExternalsRelative === \"boolean\") return {\n\t\ttype: \"Bool\",\n\t\tfield0: makeAbsoluteExternalsRelative\n\t};\n}\nfunction bindingifyPreserveEntrySignatures(preserveEntrySignatures) {\n\tif (preserveEntrySignatures == void 0) return;\n\telse if (typeof preserveEntrySignatures === \"string\") return {\n\t\ttype: \"String\",\n\t\tfield0: preserveEntrySignatures\n\t};\n\telse return {\n\t\ttype: \"Bool\",\n\t\tfield0: preserveEntrySignatures\n\t};\n}\n\n//#endregion\nexport { description as C, VERSION as S, LOG_LEVEL_DEBUG as _, aggregateBindingErrorsIntoJsError as a, LOG_LEVEL_WARN as b, transformToRollupOutput as c, transformAssetSource as d, lazyProp as f, normalizeLog as g, normalizeHook as h, transformModuleInfo as i, transformRenderedChunk as l, MinimalPluginContextImpl as m, PluginContextData as n, normalizeBindingResult as o, PlainObjectLike as p, bindingifyPlugin as r, unwrapBindingResult as s, bindingifyInputOptions as t, __decorate as u, LOG_LEVEL_ERROR as v, version as w, logLevelPriority as x, LOG_LEVEL_INFO as y };","import { n as __toESM, t as require_binding } from \"./binding-C-UNREnT.mjs\";\nimport { i as logInputHookInOutputPlugin, n as error } from \"./logs-NH298mHo.mjs\";\nimport { n as BuiltinPlugin } from \"./normalize-string-or-regex-Dq50a7l9.mjs\";\nimport { S as VERSION, _ as LOG_LEVEL_DEBUG, b as LOG_LEVEL_WARN, c as transformToRollupOutput, d as transformAssetSource, f as lazyProp, g as normalizeLog, h as normalizeHook, i as transformModuleInfo, l as transformRenderedChunk, m as MinimalPluginContextImpl, p as PlainObjectLike, s as unwrapBindingResult, t as bindingifyInputOptions, u as __decorate, v as LOG_LEVEL_ERROR, x as logLevelPriority, y as LOG_LEVEL_INFO } from \"./bindingify-input-options-Cb-01HR1.mjs\";\nimport { i as unimplemented } from \"./misc-CCZIsXVO.mjs\";\nimport { Worker } from \"node:worker_threads\";\nimport path from \"node:path\";\nimport { styleText } from \"node:util\";\nimport os from \"node:os\";\n\n//#region src/log/logger.ts\nfunction getLogger(plugins, onLog, logLevel, watchMode) {\n\tconst minimalPriority = logLevelPriority[logLevel];\n\tconst logger = (level, log, skipped = /* @__PURE__ */ new Set()) => {\n\t\tif (logLevelPriority[level] < minimalPriority) return;\n\t\tfor (const plugin of getSortedPlugins(\"onLog\", plugins)) {\n\t\t\tif (skipped.has(plugin)) continue;\n\t\t\tconst { onLog: pluginOnLog } = plugin;\n\t\t\tif (pluginOnLog) {\n\t\t\t\tconst getLogHandler = (level) => {\n\t\t\t\t\tif (logLevelPriority[level] < minimalPriority) return () => {};\n\t\t\t\t\treturn (log) => logger(level, normalizeLog(log), new Set(skipped).add(plugin));\n\t\t\t\t};\n\t\t\t\tif ((\"handler\" in pluginOnLog ? pluginOnLog.handler : pluginOnLog).call({\n\t\t\t\t\tdebug: getLogHandler(LOG_LEVEL_DEBUG),\n\t\t\t\t\terror: (log) => error(normalizeLog(log)),\n\t\t\t\t\tinfo: getLogHandler(LOG_LEVEL_INFO),\n\t\t\t\t\tmeta: {\n\t\t\t\t\t\trollupVersion: \"4.23.0\",\n\t\t\t\t\t\trolldownVersion: VERSION,\n\t\t\t\t\t\twatchMode\n\t\t\t\t\t},\n\t\t\t\t\twarn: getLogHandler(LOG_LEVEL_WARN),\n\t\t\t\t\tpluginName: plugin.name || \"unknown\"\n\t\t\t\t}, level, log) === false) return;\n\t\t\t}\n\t\t}\n\t\tonLog(level, log);\n\t};\n\treturn logger;\n}\nconst getOnLog = (config, logLevel, printLog = defaultPrintLog) => {\n\tconst { onwarn, onLog } = config;\n\tconst defaultOnLog = getDefaultOnLog(printLog, onwarn);\n\tif (onLog) {\n\t\tconst minimalPriority = logLevelPriority[logLevel];\n\t\treturn (level, log) => onLog(level, addLogToString(log), (level, handledLog) => {\n\t\t\tif (level === LOG_LEVEL_ERROR) return error(normalizeLog(handledLog));\n\t\t\tif (logLevelPriority[level] >= minimalPriority) defaultOnLog(level, normalizeLog(handledLog));\n\t\t});\n\t}\n\treturn defaultOnLog;\n};\nconst getDefaultOnLog = (printLog, onwarn) => onwarn ? (level, log) => {\n\tif (level === LOG_LEVEL_WARN) onwarn(addLogToString(log), (warning) => printLog(LOG_LEVEL_WARN, normalizeLog(warning)));\n\telse printLog(level, log);\n} : printLog;\nconst addLogToString = (log) => {\n\tObject.defineProperty(log, \"toString\", {\n\t\tvalue: () => getExtendedLogMessage(log),\n\t\twritable: true\n\t});\n\treturn log;\n};\nconst defaultPrintLog = (level, log) => {\n\tconst message = getExtendedLogMessage(log);\n\tswitch (level) {\n\t\tcase LOG_LEVEL_WARN: return console.warn(message);\n\t\tcase LOG_LEVEL_DEBUG: return console.debug(message);\n\t\tdefault: return console.info(message);\n\t}\n};\nconst getExtendedLogMessage = (log) => {\n\tlet prefix = \"\";\n\tif (log.plugin) prefix += `(${log.plugin} plugin) `;\n\tif (log.loc) prefix += `${relativeId(log.loc.file)} (${log.loc.line}:${log.loc.column}) `;\n\treturn prefix + log.message;\n};\nfunction relativeId(id) {\n\tif (!path.isAbsolute(id)) return id;\n\treturn path.relative(path.resolve(), id);\n}\n\n//#endregion\n//#region src/constants/plugin.ts\nconst ENUMERATED_INPUT_PLUGIN_HOOK_NAMES = [\n\t\"options\",\n\t\"buildStart\",\n\t\"resolveId\",\n\t\"load\",\n\t\"transform\",\n\t\"moduleParsed\",\n\t\"buildEnd\",\n\t\"onLog\",\n\t\"resolveDynamicImport\",\n\t\"closeBundle\",\n\t\"closeWatcher\",\n\t\"watchChange\"\n];\nconst ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES = [\n\t\"augmentChunkHash\",\n\t\"outputOptions\",\n\t\"renderChunk\",\n\t\"renderStart\",\n\t\"renderError\",\n\t\"writeBundle\",\n\t\"generateBundle\"\n];\nconst ENUMERATED_PLUGIN_HOOK_NAMES = [\n\t...ENUMERATED_INPUT_PLUGIN_HOOK_NAMES,\n\t...ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES,\n\t\"footer\",\n\t\"banner\",\n\t\"intro\",\n\t\"outro\"\n];\n/**\n* Names of all defined hooks. It's like\n* ```js\n* const DEFINED_HOOK_NAMES ={\n* options: 'options',\n* buildStart: 'buildStart',\n* ...\n* }\n* ```\n*/\nconst DEFINED_HOOK_NAMES = {\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[0]]: ENUMERATED_PLUGIN_HOOK_NAMES[0],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[1]]: ENUMERATED_PLUGIN_HOOK_NAMES[1],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[2]]: ENUMERATED_PLUGIN_HOOK_NAMES[2],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[3]]: ENUMERATED_PLUGIN_HOOK_NAMES[3],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[4]]: ENUMERATED_PLUGIN_HOOK_NAMES[4],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[5]]: ENUMERATED_PLUGIN_HOOK_NAMES[5],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[6]]: ENUMERATED_PLUGIN_HOOK_NAMES[6],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[7]]: ENUMERATED_PLUGIN_HOOK_NAMES[7],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[8]]: ENUMERATED_PLUGIN_HOOK_NAMES[8],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[9]]: ENUMERATED_PLUGIN_HOOK_NAMES[9],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[10]]: ENUMERATED_PLUGIN_HOOK_NAMES[10],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[11]]: ENUMERATED_PLUGIN_HOOK_NAMES[11],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[12]]: ENUMERATED_PLUGIN_HOOK_NAMES[12],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[13]]: ENUMERATED_PLUGIN_HOOK_NAMES[13],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[14]]: ENUMERATED_PLUGIN_HOOK_NAMES[14],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[15]]: ENUMERATED_PLUGIN_HOOK_NAMES[15],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[16]]: ENUMERATED_PLUGIN_HOOK_NAMES[16],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[17]]: ENUMERATED_PLUGIN_HOOK_NAMES[17],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[18]]: ENUMERATED_PLUGIN_HOOK_NAMES[18],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[19]]: ENUMERATED_PLUGIN_HOOK_NAMES[19],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[20]]: ENUMERATED_PLUGIN_HOOK_NAMES[20],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[21]]: ENUMERATED_PLUGIN_HOOK_NAMES[21],\n\t[ENUMERATED_PLUGIN_HOOK_NAMES[22]]: ENUMERATED_PLUGIN_HOOK_NAMES[22]\n};\n\n//#endregion\n//#region src/utils/async-flatten.ts\nasync function asyncFlatten(array) {\n\tdo\n\t\tarray = (await Promise.all(array)).flat(Infinity);\n\twhile (array.some((v) => v?.then));\n\treturn array;\n}\n\n//#endregion\n//#region src/utils/normalize-plugin-option.ts\nconst normalizePluginOption = async (plugins) => (await asyncFlatten([plugins])).filter(Boolean);\nfunction checkOutputPluginOption(plugins, onLog) {\n\tfor (const plugin of plugins) for (const hook of ENUMERATED_INPUT_PLUGIN_HOOK_NAMES) if (hook in plugin) {\n\t\tdelete plugin[hook];\n\t\tonLog(LOG_LEVEL_WARN, logInputHookInOutputPlugin(plugin.name, hook));\n\t}\n\treturn plugins;\n}\nfunction normalizePlugins(plugins, anonymousPrefix) {\n\tfor (const [index, plugin] of plugins.entries()) {\n\t\tif (\"_parallel\" in plugin) continue;\n\t\tif (plugin instanceof BuiltinPlugin) continue;\n\t\tif (!plugin.name) plugin.name = `${anonymousPrefix}${index + 1}`;\n\t}\n\treturn plugins;\n}\nconst ANONYMOUS_PLUGIN_PREFIX = \"at position \";\nconst ANONYMOUS_OUTPUT_PLUGIN_PREFIX = \"at output position \";\n\n//#endregion\n//#region src/plugin/plugin-driver.ts\nvar PluginDriver = class {\n\tstatic async callOptionsHook(inputOptions, watchMode = false) {\n\t\tconst logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;\n\t\tconst plugins = getSortedPlugins(\"options\", getObjectPlugins(await normalizePluginOption(inputOptions.plugins)));\n\t\tconst logger = getLogger(plugins, getOnLog(inputOptions, logLevel), logLevel, watchMode);\n\t\tfor (const plugin of plugins) {\n\t\t\tconst name = plugin.name || \"unknown\";\n\t\t\tconst options = plugin.options;\n\t\t\tif (options) {\n\t\t\t\tconst { handler } = normalizeHook(options);\n\t\t\t\tconst result = await handler.call(new MinimalPluginContextImpl(logger, logLevel, name, watchMode, \"onLog\"), inputOptions);\n\t\t\t\tif (result) inputOptions = result;\n\t\t\t}\n\t\t}\n\t\treturn inputOptions;\n\t}\n\tstatic callOutputOptionsHook(rawPlugins, outputOptions, onLog, logLevel, watchMode) {\n\t\tconst sortedPlugins = getSortedPlugins(\"outputOptions\", getObjectPlugins(rawPlugins));\n\t\tfor (const plugin of sortedPlugins) {\n\t\t\tconst name = plugin.name || \"unknown\";\n\t\t\tconst options = plugin.outputOptions;\n\t\t\tif (options) {\n\t\t\t\tconst { handler } = normalizeHook(options);\n\t\t\t\tconst result = handler.call(new MinimalPluginContextImpl(onLog, logLevel, name, watchMode), outputOptions);\n\t\t\t\tif (result) outputOptions = result;\n\t\t\t}\n\t\t}\n\t\treturn outputOptions;\n\t}\n};\nfunction getObjectPlugins(plugins) {\n\treturn plugins.filter((plugin) => {\n\t\tif (!plugin) return;\n\t\tif (\"_parallel\" in plugin) return;\n\t\tif (plugin instanceof BuiltinPlugin) return;\n\t\treturn plugin;\n\t});\n}\nfunction getSortedPlugins(hookName, plugins) {\n\tconst pre = [];\n\tconst normal = [];\n\tconst post = [];\n\tfor (const plugin of plugins) {\n\t\tconst hook = plugin[hookName];\n\t\tif (hook) {\n\t\t\tif (typeof hook === \"object\") {\n\t\t\t\tif (hook.order === \"pre\") {\n\t\t\t\t\tpre.push(plugin);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (hook.order === \"post\") {\n\t\t\t\t\tpost.push(plugin);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnormal.push(plugin);\n\t\t}\n\t}\n\treturn [\n\t\t...pre,\n\t\t...normal,\n\t\t...post\n\t];\n}\n\n//#endregion\n//#region ../../node_modules/.pnpm/valibot@1.2.0_typescript@5.9.3/node_modules/valibot/dist/index.mjs\nlet store$4;\n/**\n* Returns the global configuration.\n*\n* @param config The config to merge.\n*\n* @returns The configuration.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getGlobalConfig(config$1) {\n\treturn {\n\t\tlang: config$1?.lang ?? store$4?.lang,\n\t\tmessage: config$1?.message,\n\t\tabortEarly: config$1?.abortEarly ?? store$4?.abortEarly,\n\t\tabortPipeEarly: config$1?.abortPipeEarly ?? store$4?.abortPipeEarly\n\t};\n}\nlet store$3;\n/**\n* Returns a global error message.\n*\n* @param lang The language of the message.\n*\n* @returns The error message.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getGlobalMessage(lang) {\n\treturn store$3?.get(lang);\n}\nlet store$2;\n/**\n* Returns a schema error message.\n*\n* @param lang The language of the message.\n*\n* @returns The error message.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getSchemaMessage(lang) {\n\treturn store$2?.get(lang);\n}\nlet store$1;\n/**\n* Returns a specific error message.\n*\n* @param reference The identifier reference.\n* @param lang The language of the message.\n*\n* @returns The error message.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getSpecificMessage(reference, lang) {\n\treturn store$1?.get(reference)?.get(lang);\n}\n/**\n* Stringifies an unknown input to a literal or type string.\n*\n* @param input The unknown input.\n*\n* @returns A literal or type string.\n*\n* @internal\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction _stringify(input) {\n\tconst type = typeof input;\n\tif (type === \"string\") return `\"${input}\"`;\n\tif (type === \"number\" || type === \"bigint\" || type === \"boolean\") return `${input}`;\n\tif (type === \"object\" || type === \"function\") return (input && Object.getPrototypeOf(input)?.constructor?.name) ?? \"null\";\n\treturn type;\n}\n/**\n* Adds an issue to the dataset.\n*\n* @param context The issue context.\n* @param label The issue label.\n* @param dataset The input dataset.\n* @param config The configuration.\n* @param other The optional props.\n*\n* @internal\n*/\nfunction _addIssue(context, label, dataset, config$1, other) {\n\tconst input = other && \"input\" in other ? other.input : dataset.value;\n\tconst expected = other?.expected ?? context.expects ?? null;\n\tconst received = other?.received ?? /* @__PURE__ */ _stringify(input);\n\tconst issue = {\n\t\tkind: context.kind,\n\t\ttype: context.type,\n\t\tinput,\n\t\texpected,\n\t\treceived,\n\t\tmessage: `Invalid ${label}: ${expected ? `Expected ${expected} but r` : \"R\"}eceived ${received}`,\n\t\trequirement: context.requirement,\n\t\tpath: other?.path,\n\t\tissues: other?.issues,\n\t\tlang: config$1.lang,\n\t\tabortEarly: config$1.abortEarly,\n\t\tabortPipeEarly: config$1.abortPipeEarly\n\t};\n\tconst isSchema = context.kind === \"schema\";\n\tconst message$1 = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config$1.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);\n\tif (message$1 !== void 0) issue.message = typeof message$1 === \"function\" ? message$1(issue) : message$1;\n\tif (isSchema) dataset.typed = false;\n\tif (dataset.issues) dataset.issues.push(issue);\n\telse dataset.issues = [issue];\n}\n/**\n* Returns the Standard Schema properties.\n*\n* @param context The schema context.\n*\n* @returns The Standard Schema properties.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction _getStandardProps(context) {\n\treturn {\n\t\tversion: 1,\n\t\tvendor: \"valibot\",\n\t\tvalidate(value$1) {\n\t\t\treturn context[\"~run\"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());\n\t\t}\n\t};\n}\n/**\n* Disallows inherited object properties and prevents object prototype\n* pollution by disallowing certain keys.\n*\n* @param object The object to check.\n* @param key The key to check.\n*\n* @returns Whether the key is allowed.\n*\n* @internal\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction _isValidObjectKey(object$1, key) {\n\treturn Object.hasOwn(object$1, key) && key !== \"__proto__\" && key !== \"prototype\" && key !== \"constructor\";\n}\n/**\n* Joins multiple `expects` values with the given separator.\n*\n* @param values The `expects` values.\n* @param separator The separator.\n*\n* @returns The joined `expects` property.\n*\n* @internal\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction _joinExpects(values$1, separator) {\n\tconst list = [...new Set(values$1)];\n\tif (list.length > 1) return `(${list.join(` ${separator} `)})`;\n\treturn list[0] ?? \"never\";\n}\n/**\n* A Valibot error with useful information.\n*/\nvar ValiError = class extends Error {\n\t/**\n\t* Creates a Valibot error with useful information.\n\t*\n\t* @param issues The error issues.\n\t*/\n\tconstructor(issues) {\n\t\tsuper(issues[0].message);\n\t\tthis.name = \"ValiError\";\n\t\tthis.issues = issues;\n\t}\n};\n/* @__NO_SIDE_EFFECTS__ */\nfunction args(schema) {\n\treturn {\n\t\tkind: \"transformation\",\n\t\ttype: \"args\",\n\t\treference: args,\n\t\tasync: false,\n\t\tschema,\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst func = dataset.value;\n\t\t\tdataset.value = (...args_) => {\n\t\t\t\tconst argsDataset = this.schema[\"~run\"]({ value: args_ }, config$1);\n\t\t\t\tif (argsDataset.issues) throw new ValiError(argsDataset.issues);\n\t\t\t\treturn func(...argsDataset.value);\n\t\t\t};\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/**\n* Creates an await transformation action.\n*\n* @returns An await action.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction awaitAsync() {\n\treturn {\n\t\tkind: \"transformation\",\n\t\ttype: \"await\",\n\t\treference: awaitAsync,\n\t\tasync: true,\n\t\tasync \"~run\"(dataset) {\n\t\t\tdataset.value = await dataset.value;\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/**\n* Creates a description metadata action.\n*\n* @param description_ The description text.\n*\n* @returns A description action.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction description(description_) {\n\treturn {\n\t\tkind: \"metadata\",\n\t\ttype: \"description\",\n\t\treference: description,\n\t\tdescription: description_\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction returns(schema) {\n\treturn {\n\t\tkind: \"transformation\",\n\t\ttype: \"returns\",\n\t\treference: returns,\n\t\tasync: false,\n\t\tschema,\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst func = dataset.value;\n\t\t\tdataset.value = (...args_) => {\n\t\t\t\tconst returnsDataset = this.schema[\"~run\"]({ value: func(...args_) }, config$1);\n\t\t\t\tif (returnsDataset.issues) throw new ValiError(returnsDataset.issues);\n\t\t\t\treturn returnsDataset.value;\n\t\t\t};\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction returnsAsync(schema) {\n\treturn {\n\t\tkind: \"transformation\",\n\t\ttype: \"returns\",\n\t\treference: returnsAsync,\n\t\tasync: false,\n\t\tschema,\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst func = dataset.value;\n\t\t\tdataset.value = async (...args_) => {\n\t\t\t\tconst returnsDataset = await this.schema[\"~run\"]({ value: await func(...args_) }, config$1);\n\t\t\t\tif (returnsDataset.issues) throw new ValiError(returnsDataset.issues);\n\t\t\t\treturn returnsDataset.value;\n\t\t\t};\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/**\n* Returns the fallback value of the schema.\n*\n* @param schema The schema to get it from.\n* @param dataset The output dataset if available.\n* @param config The config if available.\n*\n* @returns The fallback value.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getFallback(schema, dataset, config$1) {\n\treturn typeof schema.fallback === \"function\" ? schema.fallback(dataset, config$1) : schema.fallback;\n}\n/**\n* Returns the default value of the schema.\n*\n* @param schema The schema to get it from.\n* @param dataset The input dataset if available.\n* @param config The config if available.\n*\n* @returns The default value.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction getDefault(schema, dataset, config$1) {\n\treturn typeof schema.default === \"function\" ? schema.default(dataset, config$1) : schema.default;\n}\n/**\n* Creates an any schema.\n*\n* Hint: This schema function exists only for completeness and is not\n* recommended in practice. Instead, `unknown` should be used to accept\n* unknown data.\n*\n* @returns An any schema.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction any() {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"any\",\n\t\treference: any,\n\t\texpects: \"any\",\n\t\tasync: false,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset) {\n\t\t\tdataset.typed = true;\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction array(item, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"array\",\n\t\treference: array,\n\t\texpects: \"Array\",\n\t\tasync: false,\n\t\titem,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst input = dataset.value;\n\t\t\tif (Array.isArray(input)) {\n\t\t\t\tdataset.typed = true;\n\t\t\t\tdataset.value = [];\n\t\t\t\tfor (let key = 0; key < input.length; key++) {\n\t\t\t\t\tconst value$1 = input[key];\n\t\t\t\t\tconst itemDataset = this.item[\"~run\"]({ value: value$1 }, config$1);\n\t\t\t\t\tif (itemDataset.issues) {\n\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\ttype: \"array\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\tvalue: value$1\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (const issue of itemDataset.issues) {\n\t\t\t\t\t\t\tif (issue.path) issue.path.unshift(pathItem);\n\t\t\t\t\t\t\telse issue.path = [pathItem];\n\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!dataset.issues) dataset.issues = itemDataset.issues;\n\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!itemDataset.typed) dataset.typed = false;\n\t\t\t\t\tdataset.value.push(itemDataset.value);\n\t\t\t\t}\n\t\t\t} else _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction boolean(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: boolean,\n\t\texpects: \"boolean\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (typeof dataset.value === \"boolean\") dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction custom(check$1, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"custom\",\n\t\treference: custom,\n\t\texpects: \"unknown\",\n\t\tasync: false,\n\t\tcheck: check$1,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (this.check(dataset.value)) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction function_(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"function\",\n\t\treference: function_,\n\t\texpects: \"Function\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (typeof dataset.value === \"function\") dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction instance(class_, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"instance\",\n\t\treference: instance,\n\t\texpects: class_.name,\n\t\tasync: false,\n\t\tclass: class_,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value instanceof this.class) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction literal(literal_, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: literal,\n\t\texpects: /* @__PURE__ */ _stringify(literal_),\n\t\tasync: false,\n\t\tliteral: literal_,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value === this.literal) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction looseObject(entries$1, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"loose_object\",\n\t\treference: looseObject,\n\t\texpects: \"Object\",\n\t\tasync: false,\n\t\tentries: entries$1,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst input = dataset.value;\n\t\t\tif (input && typeof input === \"object\") {\n\t\t\t\tdataset.typed = true;\n\t\t\t\tdataset.value = {};\n\t\t\t\tfor (const key in this.entries) {\n\t\t\t\t\tconst valueSchema = this.entries[key];\n\t\t\t\t\tif (key in input || (valueSchema.type === \"exact_optional\" || valueSchema.type === \"optional\" || valueSchema.type === \"nullish\") && valueSchema.default !== void 0) {\n\t\t\t\t\t\tconst value$1 = key in input ? input[key] : /* @__PURE__ */ getDefault(valueSchema);\n\t\t\t\t\t\tconst valueDataset = valueSchema[\"~run\"]({ value: value$1 }, config$1);\n\t\t\t\t\t\tif (valueDataset.issues) {\n\t\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: value$1\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (const issue of valueDataset.issues) {\n\t\t\t\t\t\t\t\tif (issue.path) issue.path.unshift(pathItem);\n\t\t\t\t\t\t\t\telse issue.path = [pathItem];\n\t\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!dataset.issues) dataset.issues = valueDataset.issues;\n\t\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!valueDataset.typed) dataset.typed = false;\n\t\t\t\t\t\tdataset.value[key] = valueDataset.value;\n\t\t\t\t\t} else if (valueSchema.fallback !== void 0) dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);\n\t\t\t\t\telse if (valueSchema.type !== \"exact_optional\" && valueSchema.type !== \"optional\" && valueSchema.type !== \"nullish\") {\n\t\t\t\t\t\t_addIssue(this, \"key\", dataset, config$1, {\n\t\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\t\texpected: `\"${key}\"`,\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: input[key]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (config$1.abortEarly) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!dataset.issues || !config$1.abortEarly) {\n\t\t\t\t\tfor (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];\n\t\t\t\t}\n\t\t\t} else _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction never(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"never\",\n\t\treference: never,\n\t\texpects: \"never\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\t_addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction nullish(wrapped, default_) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"nullish\",\n\t\treference: nullish,\n\t\texpects: `(${wrapped.expects} | null | undefined)`,\n\t\tasync: false,\n\t\twrapped,\n\t\tdefault: default_,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value === null || dataset.value === void 0) {\n\t\t\t\tif (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);\n\t\t\t\tif (dataset.value === null || dataset.value === void 0) {\n\t\t\t\t\tdataset.typed = true;\n\t\t\t\t\treturn dataset;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this.wrapped[\"~run\"](dataset, config$1);\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction number(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: number,\n\t\texpects: \"number\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (typeof dataset.value === \"number\" && !isNaN(dataset.value)) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction object(entries$1, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"object\",\n\t\treference: object,\n\t\texpects: \"Object\",\n\t\tasync: false,\n\t\tentries: entries$1,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst input = dataset.value;\n\t\t\tif (input && typeof input === \"object\") {\n\t\t\t\tdataset.typed = true;\n\t\t\t\tdataset.value = {};\n\t\t\t\tfor (const key in this.entries) {\n\t\t\t\t\tconst valueSchema = this.entries[key];\n\t\t\t\t\tif (key in input || (valueSchema.type === \"exact_optional\" || valueSchema.type === \"optional\" || valueSchema.type === \"nullish\") && valueSchema.default !== void 0) {\n\t\t\t\t\t\tconst value$1 = key in input ? input[key] : /* @__PURE__ */ getDefault(valueSchema);\n\t\t\t\t\t\tconst valueDataset = valueSchema[\"~run\"]({ value: value$1 }, config$1);\n\t\t\t\t\t\tif (valueDataset.issues) {\n\t\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: value$1\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (const issue of valueDataset.issues) {\n\t\t\t\t\t\t\t\tif (issue.path) issue.path.unshift(pathItem);\n\t\t\t\t\t\t\t\telse issue.path = [pathItem];\n\t\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!dataset.issues) dataset.issues = valueDataset.issues;\n\t\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!valueDataset.typed) dataset.typed = false;\n\t\t\t\t\t\tdataset.value[key] = valueDataset.value;\n\t\t\t\t\t} else if (valueSchema.fallback !== void 0) dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);\n\t\t\t\t\telse if (valueSchema.type !== \"exact_optional\" && valueSchema.type !== \"optional\" && valueSchema.type !== \"nullish\") {\n\t\t\t\t\t\t_addIssue(this, \"key\", dataset, config$1, {\n\t\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\t\texpected: `\"${key}\"`,\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: input[key]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (config$1.abortEarly) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction optional(wrapped, default_) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: optional,\n\t\texpects: `(${wrapped.expects} | undefined)`,\n\t\tasync: false,\n\t\twrapped,\n\t\tdefault: default_,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value === void 0) {\n\t\t\t\tif (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);\n\t\t\t\tif (dataset.value === void 0) {\n\t\t\t\t\tdataset.typed = true;\n\t\t\t\t\treturn dataset;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this.wrapped[\"~run\"](dataset, config$1);\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction picklist(options, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"picklist\",\n\t\treference: picklist,\n\t\texpects: /* @__PURE__ */ _joinExpects(options.map(_stringify), \"|\"),\n\t\tasync: false,\n\t\toptions,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (this.options.includes(dataset.value)) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction promise(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"promise\",\n\t\treference: promise,\n\t\texpects: \"Promise\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value instanceof Promise) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction record(key, value$1, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: record,\n\t\texpects: \"Object\",\n\t\tasync: false,\n\t\tkey,\n\t\tvalue: value$1,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst input = dataset.value;\n\t\t\tif (input && typeof input === \"object\") {\n\t\t\t\tdataset.typed = true;\n\t\t\t\tdataset.value = {};\n\t\t\t\tfor (const entryKey in input) if (/* @__PURE__ */ _isValidObjectKey(input, entryKey)) {\n\t\t\t\t\tconst entryValue = input[entryKey];\n\t\t\t\t\tconst keyDataset = this.key[\"~run\"]({ value: entryKey }, config$1);\n\t\t\t\t\tif (keyDataset.issues) {\n\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tkey: entryKey,\n\t\t\t\t\t\t\tvalue: entryValue\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (const issue of keyDataset.issues) {\n\t\t\t\t\t\t\tissue.path = [pathItem];\n\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!dataset.issues) dataset.issues = keyDataset.issues;\n\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tconst valueDataset = this.value[\"~run\"]({ value: entryValue }, config$1);\n\t\t\t\t\tif (valueDataset.issues) {\n\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tkey: entryKey,\n\t\t\t\t\t\t\tvalue: entryValue\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (const issue of valueDataset.issues) {\n\t\t\t\t\t\t\tif (issue.path) issue.path.unshift(pathItem);\n\t\t\t\t\t\t\telse issue.path = [pathItem];\n\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!dataset.issues) dataset.issues = valueDataset.issues;\n\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!keyDataset.typed || !valueDataset.typed) dataset.typed = false;\n\t\t\t\t\tif (keyDataset.typed) dataset.value[keyDataset.value] = valueDataset.value;\n\t\t\t\t}\n\t\t\t} else _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction strictObject(entries$1, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: strictObject,\n\t\texpects: \"Object\",\n\t\tasync: false,\n\t\tentries: entries$1,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst input = dataset.value;\n\t\t\tif (input && typeof input === \"object\") {\n\t\t\t\tdataset.typed = true;\n\t\t\t\tdataset.value = {};\n\t\t\t\tfor (const key in this.entries) {\n\t\t\t\t\tconst valueSchema = this.entries[key];\n\t\t\t\t\tif (key in input || (valueSchema.type === \"exact_optional\" || valueSchema.type === \"optional\" || valueSchema.type === \"nullish\") && valueSchema.default !== void 0) {\n\t\t\t\t\t\tconst value$1 = key in input ? input[key] : /* @__PURE__ */ getDefault(valueSchema);\n\t\t\t\t\t\tconst valueDataset = valueSchema[\"~run\"]({ value: value$1 }, config$1);\n\t\t\t\t\t\tif (valueDataset.issues) {\n\t\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: value$1\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (const issue of valueDataset.issues) {\n\t\t\t\t\t\t\t\tif (issue.path) issue.path.unshift(pathItem);\n\t\t\t\t\t\t\t\telse issue.path = [pathItem];\n\t\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!dataset.issues) dataset.issues = valueDataset.issues;\n\t\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!valueDataset.typed) dataset.typed = false;\n\t\t\t\t\t\tdataset.value[key] = valueDataset.value;\n\t\t\t\t\t} else if (valueSchema.fallback !== void 0) dataset.value[key] = /* @__PURE__ */ getFallback(valueSchema);\n\t\t\t\t\telse if (valueSchema.type !== \"exact_optional\" && valueSchema.type !== \"optional\" && valueSchema.type !== \"nullish\") {\n\t\t\t\t\t\t_addIssue(this, \"key\", dataset, config$1, {\n\t\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\t\texpected: `\"${key}\"`,\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: input[key]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (config$1.abortEarly) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!dataset.issues || !config$1.abortEarly) {\n\t\t\t\t\tfor (const key in input) if (!(key in this.entries)) {\n\t\t\t\t\t\t_addIssue(this, \"key\", dataset, config$1, {\n\t\t\t\t\t\t\tinput: key,\n\t\t\t\t\t\t\texpected: \"never\",\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\t\tvalue: input[key]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction string(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: string,\n\t\texpects: \"string\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (typeof dataset.value === \"string\") dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction tuple(items, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"tuple\",\n\t\treference: tuple,\n\t\texpects: \"Array\",\n\t\tasync: false,\n\t\titems,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tconst input = dataset.value;\n\t\t\tif (Array.isArray(input)) {\n\t\t\t\tdataset.typed = true;\n\t\t\t\tdataset.value = [];\n\t\t\t\tfor (let key = 0; key < this.items.length; key++) {\n\t\t\t\t\tconst value$1 = input[key];\n\t\t\t\t\tconst itemDataset = this.items[key][\"~run\"]({ value: value$1 }, config$1);\n\t\t\t\t\tif (itemDataset.issues) {\n\t\t\t\t\t\tconst pathItem = {\n\t\t\t\t\t\t\ttype: \"array\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\tvalue: value$1\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (const issue of itemDataset.issues) {\n\t\t\t\t\t\t\tif (issue.path) issue.path.unshift(pathItem);\n\t\t\t\t\t\t\telse issue.path = [pathItem];\n\t\t\t\t\t\t\tdataset.issues?.push(issue);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!dataset.issues) dataset.issues = itemDataset.issues;\n\t\t\t\t\t\tif (config$1.abortEarly) {\n\t\t\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!itemDataset.typed) dataset.typed = false;\n\t\t\t\t\tdataset.value.push(itemDataset.value);\n\t\t\t\t}\n\t\t\t} else _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction undefined_(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"undefined\",\n\t\treference: undefined_,\n\t\texpects: \"undefined\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value === void 0) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/**\n* Returns the sub issues of the provided datasets for the union issue.\n*\n* @param datasets The datasets.\n*\n* @returns The sub issues.\n*\n* @internal\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction _subIssues(datasets) {\n\tlet issues;\n\tif (datasets) for (const dataset of datasets) if (issues) issues.push(...dataset.issues);\n\telse issues = dataset.issues;\n\treturn issues;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction union(options, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: union,\n\t\texpects: /* @__PURE__ */ _joinExpects(options.map((option) => option.expects), \"|\"),\n\t\tasync: false,\n\t\toptions,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tlet validDataset;\n\t\t\tlet typedDatasets;\n\t\t\tlet untypedDatasets;\n\t\t\tfor (const schema of this.options) {\n\t\t\t\tconst optionDataset = schema[\"~run\"]({ value: dataset.value }, config$1);\n\t\t\t\tif (optionDataset.typed) if (optionDataset.issues) if (typedDatasets) typedDatasets.push(optionDataset);\n\t\t\t\telse typedDatasets = [optionDataset];\n\t\t\t\telse {\n\t\t\t\t\tvalidDataset = optionDataset;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (untypedDatasets) untypedDatasets.push(optionDataset);\n\t\t\t\telse untypedDatasets = [optionDataset];\n\t\t\t}\n\t\t\tif (validDataset) return validDataset;\n\t\t\tif (typedDatasets) {\n\t\t\t\tif (typedDatasets.length === 1) return typedDatasets[0];\n\t\t\t\t_addIssue(this, \"type\", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(typedDatasets) });\n\t\t\t\tdataset.typed = true;\n\t\t\t} else if (untypedDatasets?.length === 1) return untypedDatasets[0];\n\t\t\telse _addIssue(this, \"type\", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(untypedDatasets) });\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction unionAsync(options, message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: unionAsync,\n\t\texpects: /* @__PURE__ */ _joinExpects(options.map((option) => option.expects), \"|\"),\n\t\tasync: true,\n\t\toptions,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\tasync \"~run\"(dataset, config$1) {\n\t\t\tlet validDataset;\n\t\t\tlet typedDatasets;\n\t\t\tlet untypedDatasets;\n\t\t\tfor (const schema of this.options) {\n\t\t\t\tconst optionDataset = await schema[\"~run\"]({ value: dataset.value }, config$1);\n\t\t\t\tif (optionDataset.typed) if (optionDataset.issues) if (typedDatasets) typedDatasets.push(optionDataset);\n\t\t\t\telse typedDatasets = [optionDataset];\n\t\t\t\telse {\n\t\t\t\t\tvalidDataset = optionDataset;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (untypedDatasets) untypedDatasets.push(optionDataset);\n\t\t\t\telse untypedDatasets = [optionDataset];\n\t\t\t}\n\t\t\tif (validDataset) return validDataset;\n\t\t\tif (typedDatasets) {\n\t\t\t\tif (typedDatasets.length === 1) return typedDatasets[0];\n\t\t\t\t_addIssue(this, \"type\", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(typedDatasets) });\n\t\t\t\tdataset.typed = true;\n\t\t\t} else if (untypedDatasets?.length === 1) return untypedDatasets[0];\n\t\t\telse _addIssue(this, \"type\", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(untypedDatasets) });\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction void_(message$1) {\n\treturn {\n\t\tkind: \"schema\",\n\t\ttype: \"void\",\n\t\treference: void_,\n\t\texpects: \"void\",\n\t\tasync: false,\n\t\tmessage: message$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tif (dataset.value === void 0) dataset.typed = true;\n\t\t\telse _addIssue(this, \"type\", dataset, config$1);\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction keyof(schema, message$1) {\n\treturn /* @__PURE__ */ picklist(Object.keys(schema.entries), message$1);\n}\n/**\n* Creates a modified copy of an object schema that does not contain the\n* selected entries.\n*\n* @param schema The schema to omit from.\n* @param keys The selected entries.\n*\n* @returns An object schema.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction omit(schema, keys) {\n\tconst entries$1 = { ...schema.entries };\n\tfor (const key of keys) delete entries$1[key];\n\treturn {\n\t\t...schema,\n\t\tentries: entries$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction partial(schema, keys) {\n\tconst entries$1 = {};\n\tfor (const key in schema.entries) entries$1[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optional(schema.entries[key]) : schema.entries[key];\n\treturn {\n\t\t...schema,\n\t\tentries: entries$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction pipe(...pipe$1) {\n\treturn {\n\t\t...pipe$1[0],\n\t\tpipe: pipe$1,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\t\"~run\"(dataset, config$1) {\n\t\t\tfor (const item of pipe$1) if (item.kind !== \"metadata\") {\n\t\t\t\tif (dataset.issues && (item.kind === \"schema\" || item.kind === \"transformation\")) {\n\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (!dataset.issues || !config$1.abortEarly && !config$1.abortPipeEarly) dataset = item[\"~run\"](dataset, config$1);\n\t\t\t}\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction pipeAsync(...pipe$1) {\n\treturn {\n\t\t...pipe$1[0],\n\t\tpipe: pipe$1,\n\t\tasync: true,\n\t\tget \"~standard\"() {\n\t\t\treturn /* @__PURE__ */ _getStandardProps(this);\n\t\t},\n\t\tasync \"~run\"(dataset, config$1) {\n\t\t\tfor (const item of pipe$1) if (item.kind !== \"metadata\") {\n\t\t\t\tif (dataset.issues && (item.kind === \"schema\" || item.kind === \"transformation\")) {\n\t\t\t\t\tdataset.typed = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (!dataset.issues || !config$1.abortEarly && !config$1.abortPipeEarly) dataset = await item[\"~run\"](dataset, config$1);\n\t\t\t}\n\t\t\treturn dataset;\n\t\t}\n\t};\n}\n/**\n* Parses an unknown input based on a schema.\n*\n* @param schema The schema to be used.\n* @param input The input to be parsed.\n* @param config The parse configuration.\n*\n* @returns The parse result.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction safeParse(schema, input, config$1) {\n\tconst dataset = schema[\"~run\"]({ value: input }, /* @__PURE__ */ getGlobalConfig(config$1));\n\treturn {\n\t\ttyped: dataset.typed,\n\t\tsuccess: !dataset.issues,\n\t\toutput: dataset.value,\n\t\tissues: dataset.issues\n\t};\n}\n\n//#endregion\n//#region src/utils/flatten-valibot-schema.ts\nfunction unwrapSchema(schema) {\n\tif (!schema) return schema;\n\tif (schema.type === \"optional\" && schema.wrapped) return unwrapSchema(schema.wrapped);\n\tif (schema.type === \"nullable\" && schema.wrapped) return unwrapSchema(schema.wrapped);\n\tif (schema.type === \"nullish\" && schema.wrapped) return unwrapSchema(schema.wrapped);\n\treturn schema;\n}\nfunction getValibotSchemaType(schema) {\n\tif (!schema) return \"any\";\n\tif (schema.type) switch (schema.type) {\n\t\tcase \"string\": return \"string\";\n\t\tcase \"number\": return \"number\";\n\t\tcase \"boolean\": return \"boolean\";\n\t\tcase \"array\": return \"array\";\n\t\tcase \"object\":\n\t\tcase \"strict_object\":\n\t\tcase \"loose_object\": return \"object\";\n\t\tcase \"union\": return \"union\";\n\t\tcase \"literal\": return typeof schema.literal;\n\t\tcase \"record\": return \"object\";\n\t\tcase \"optional\": return getValibotSchemaType(schema.wrapped);\n\t\tcase \"nullable\": return getValibotSchemaType(schema.wrapped);\n\t\tcase \"nullish\": return getValibotSchemaType(schema.wrapped);\n\t\tcase \"never\": return \"never\";\n\t\tcase \"any\": return \"any\";\n\t\tcase \"custom\": return \"any\";\n\t\tcase \"function\": return \"never\";\n\t\tcase \"instance\": return \"object\";\n\t\tdefault: return \"any\";\n\t}\n\treturn \"any\";\n}\nfunction getValibotDescription(schema) {\n\tif (!schema) return void 0;\n\tif (schema.pipe && Array.isArray(schema.pipe)) {\n\t\tfor (const action of schema.pipe) if (action.type === \"description\" && action.description) return action.description;\n\t}\n\tif (schema.type === \"optional\" && schema.wrapped) return getValibotDescription(schema.wrapped);\n}\nfunction flattenValibotSchema(schema, result = {}, prefix = \"\") {\n\tif (!schema || typeof schema !== \"object\") return result;\n\tif (schema.type === \"strict_object\" || schema.type === \"object\" || schema.type === \"loose_object\") {\n\t\tif (schema.entries && typeof schema.entries === \"object\") for (const [key, value] of Object.entries(schema.entries)) {\n\t\t\tconst fullKey = prefix ? `${prefix}.${key}` : key;\n\t\t\tconst valueSchema = value;\n\t\t\tconst type = getValibotSchemaType(valueSchema);\n\t\t\tconst description = getValibotDescription(valueSchema);\n\t\t\tif (type === \"object\") {\n\t\t\t\tconst unwrappedSchema = unwrapSchema(valueSchema);\n\t\t\t\tif (unwrappedSchema && unwrappedSchema.entries) flattenValibotSchema(unwrappedSchema, result, fullKey);\n\t\t\t\telse result[fullKey] = {\n\t\t\t\t\ttype,\n\t\t\t\t\tdescription\n\t\t\t\t};\n\t\t\t} else result[fullKey] = {\n\t\t\t\ttype,\n\t\t\t\tdescription\n\t\t\t};\n\t\t}\n\t}\n\treturn result;\n}\n\n//#endregion\n//#region src/utils/style-text.ts\n/**\n* Cross-platform styleText utility that works in both Node.js and browser environments\n* In Node.js, it uses the native `styleText` from `node:util`\n* In browser, it provides empty styling functions for compatibility\n*/\nfunction styleText$1(...args) {\n\treturn styleText(...args);\n}\n\n//#endregion\n//#region src/utils/validator.ts\nconst StringOrRegExpSchema = union([string(), instance(RegExp)]);\nfunction vFunction() {\n\treturn function_();\n}\nconst LogLevelSchema = union([\n\tliteral(\"debug\"),\n\tliteral(\"info\"),\n\tliteral(\"warn\")\n]);\nconst LogLevelOptionSchema = union([LogLevelSchema, literal(\"silent\")]);\nconst LogLevelWithErrorSchema = union([LogLevelSchema, literal(\"error\")]);\nconst RollupLogSchema = any();\nconst RollupLogWithStringSchema = union([RollupLogSchema, string()]);\nconst InputOptionSchema = union([\n\tstring(),\n\tarray(string()),\n\trecord(string(), string())\n]);\nconst ExternalOptionFunctionSchema = pipe(vFunction(), args(tuple([\n\tstring(),\n\toptional(string()),\n\tboolean()\n])), returns(nullish(boolean())));\nconst ExternalOptionSchema = union([\n\tStringOrRegExpSchema,\n\tarray(StringOrRegExpSchema),\n\tExternalOptionFunctionSchema\n]);\nconst ModuleTypesSchema = record(string(), union([\n\tliteral(\"asset\"),\n\tliteral(\"base64\"),\n\tliteral(\"binary\"),\n\tliteral(\"css\"),\n\tliteral(\"dataurl\"),\n\tliteral(\"empty\"),\n\tliteral(\"js\"),\n\tliteral(\"json\"),\n\tliteral(\"jsx\"),\n\tliteral(\"text\"),\n\tliteral(\"ts\"),\n\tliteral(\"tsx\")\n]));\nconst JsxOptionsSchema = strictObject({\n\truntime: pipe(optional(union([literal(\"classic\"), literal(\"automatic\")])), description(\"Which runtime to use\")),\n\tdevelopment: pipe(optional(boolean()), description(\"Development specific information\")),\n\tthrowIfNamespace: pipe(optional(boolean()), description(\"Toggles whether to throw an error when a tag name uses an XML namespace\")),\n\timportSource: pipe(optional(string()), description(\"Import the factory of element and fragment if mode is classic\")),\n\tpragma: pipe(optional(string()), description(\"Jsx element transformation\")),\n\tpragmaFrag: pipe(optional(string()), description(\"Jsx fragment transformation\")),\n\trefresh: pipe(optional(boolean()), description(\"Enable react fast refresh\"))\n});\nconst HelperModeSchema = union([literal(\"Runtime\"), literal(\"External\")]);\nconst DecoratorOptionSchema = object({\n\tlegacy: optional(boolean()),\n\temitDecoratorMetadata: optional(boolean())\n});\nconst HelpersSchema = object({ mode: optional(HelperModeSchema) });\nconst RewriteImportExtensionsSchema = union([\n\tliteral(\"rewrite\"),\n\tliteral(\"remove\"),\n\tboolean()\n]);\nconst TypescriptSchema = object({\n\tjsxPragma: optional(string()),\n\tjsxPragmaFrag: optional(string()),\n\tonlyRemoveTypeImports: optional(boolean()),\n\tallowNamespaces: optional(boolean()),\n\tallowDeclareFields: optional(boolean()),\n\tdeclaration: optional(object({\n\t\tstripInternal: optional(boolean()),\n\t\tsourcemap: optional(boolean())\n\t})),\n\trewriteImportExtensions: optional(RewriteImportExtensionsSchema)\n});\nconst AssumptionsSchema = object({\n\tignoreFunctionLength: optional(boolean()),\n\tnoDocumentAll: optional(boolean()),\n\tobjectRestNoSymbols: optional(boolean()),\n\tpureGetters: optional(boolean()),\n\tsetPublicClassFields: optional(boolean())\n});\nconst TransformOptionsSchema = object({\n\tassumptions: optional(AssumptionsSchema),\n\ttypescript: optional(TypescriptSchema),\n\thelpers: optional(HelpersSchema),\n\tdecorators: optional(DecoratorOptionSchema),\n\tjsx: optional(union([\n\t\tliteral(false),\n\t\tliteral(\"preserve\"),\n\t\tliteral(\"react\"),\n\t\tliteral(\"react-jsx\"),\n\t\tJsxOptionsSchema\n\t])),\n\ttarget: pipe(optional(union([string(), array(string())])), description(\"The JavaScript target environment\")),\n\tdefine: pipe(optional(record(string(), string())), description(\"Define global variables (syntax: key=value,key2=value2)\")),\n\tinject: pipe(optional(record(string(), union([string(), tuple([string(), string()])]))), description(\"Inject import statements on demand\")),\n\tdropLabels: pipe(optional(array(string())), description(\"Remove labeled statements with these label names\"))\n});\nconst WatchOptionsSchema = strictObject({\n\tchokidar: optional(never(`The \"watch.chokidar\" option is deprecated, please use \"watch.notify\" instead of it`)),\n\texclude: optional(union([StringOrRegExpSchema, array(StringOrRegExpSchema)])),\n\tinclude: optional(union([StringOrRegExpSchema, array(StringOrRegExpSchema)])),\n\tnotify: pipe(optional(strictObject({\n\t\tcompareContents: optional(boolean()),\n\t\tpollInterval: optional(number())\n\t})), description(\"Notify options\")),\n\tskipWrite: pipe(optional(boolean()), description(\"Skip the bundle.write() step\")),\n\tbuildDelay: pipe(optional(number()), description(\"Throttle watch rebuilds\")),\n\tclearScreen: pipe(optional(boolean()), description(\"Whether to clear the screen when a rebuild is triggered\")),\n\tonInvalidate: pipe(optional(pipe(function_(), args(tuple([string()])))), description(\"An optional function that will be called immediately every time a module changes that is part of the build.\"))\n});\nconst ChecksOptionsSchema = strictObject({\n\tcircularDependency: pipe(optional(boolean()), description(\"Whether to emit warnings when detecting circular dependency\")),\n\teval: pipe(optional(boolean()), description(\"Whether to emit warnings when detecting uses of direct `eval`s\")),\n\tmissingGlobalName: pipe(optional(boolean()), description(\"Whether to emit warnings when the `output.globals` option is missing when needed\")),\n\tmissingNameOptionForIifeExport: pipe(optional(boolean()), description(\"Whether to emit warnings when the `output.name` option is missing when needed\")),\n\tmixedExports: pipe(optional(boolean()), description(\"Whether to emit warnings when the way to export values is ambiguous\")),\n\tunresolvedEntry: pipe(optional(boolean()), description(\"Whether to emit warnings when an entrypoint cannot be resolved\")),\n\tunresolvedImport: pipe(optional(boolean()), description(\"Whether to emit warnings when an import cannot be resolved\")),\n\tfilenameConflict: pipe(optional(boolean()), description(\"Whether to emit warnings when files generated have the same name with different contents\")),\n\tcommonJsVariableInEsm: pipe(optional(boolean()), description(\"Whether to emit warnings when a CommonJS variable is used in an ES module\")),\n\timportIsUndefined: pipe(optional(boolean()), description(\"Whether to emit warnings when an imported variable is not exported\")),\n\temptyImportMeta: pipe(optional(boolean()), description(\"Whether to emit warnings when `import.meta` is not supported with the output format and is replaced with an empty object (`{}`)\")),\n\ttoleratedTransform: pipe(optional(boolean()), description(\"Whether to emit warnings when detecting tolerated transform\")),\n\tcannotCallNamespace: pipe(optional(boolean()), description(\"Whether to emit warnings when a namespace is called as a function\")),\n\tconfigurationFieldConflict: pipe(optional(boolean()), description(\"Whether to emit warnings when a config value is overridden by another config value with a higher priority\")),\n\tpreferBuiltinFeature: pipe(optional(boolean()), description(\"Whether to emit warnings when a plugin that is covered by a built-in feature is used\")),\n\tcouldNotCleanDirectory: pipe(optional(boolean()), description(\"Whether to emit warnings when Rolldown could not clean the output directory\")),\n\tpluginTimings: pipe(optional(boolean()), description(\"Whether to emit warnings when plugins take significant time during the build process\"))\n});\nconst CompressOptionsKeepNamesSchema = strictObject({\n\tfunction: boolean(),\n\tclass: boolean()\n});\nconst CompressOptionsSchema = strictObject({\n\ttarget: optional(union([\n\t\tliteral(\"esnext\"),\n\t\tliteral(\"es2015\"),\n\t\tliteral(\"es2016\"),\n\t\tliteral(\"es2017\"),\n\t\tliteral(\"es2018\"),\n\t\tliteral(\"es2019\"),\n\t\tliteral(\"es2020\"),\n\t\tliteral(\"es2021\"),\n\t\tliteral(\"es2022\"),\n\t\tliteral(\"es2023\"),\n\t\tliteral(\"es2024\")\n\t])),\n\tdropConsole: optional(boolean()),\n\tdropDebugger: optional(boolean()),\n\tkeepNames: optional(CompressOptionsKeepNamesSchema),\n\tunused: optional(union([boolean(), literal(\"keep_assign\")]))\n});\nconst MangleOptionsKeepNamesSchema = strictObject({\n\tfunction: boolean(),\n\tclass: boolean()\n});\nconst MangleOptionsSchema = strictObject({\n\ttoplevel: optional(boolean()),\n\tkeepNames: optional(union([boolean(), MangleOptionsKeepNamesSchema])),\n\tdebug: optional(boolean())\n});\nconst CodegenOptionsSchema = strictObject({ removeWhitespace: optional(boolean()) });\nconst MinifyOptionsSchema = strictObject({\n\tcompress: optional(union([boolean(), CompressOptionsSchema])),\n\tmangle: optional(union([boolean(), MangleOptionsSchema])),\n\tcodegen: optional(union([boolean(), CodegenOptionsSchema]))\n});\nconst ResolveOptionsSchema = strictObject({\n\talias: optional(record(string(), union([\n\t\tliteral(false),\n\t\tstring(),\n\t\tarray(string())\n\t]))),\n\taliasFields: optional(array(array(string()))),\n\tconditionNames: optional(array(string())),\n\textensionAlias: optional(record(string(), array(string()))),\n\texportsFields: optional(array(array(string()))),\n\textensions: optional(array(string())),\n\tmainFields: optional(array(string())),\n\tmainFiles: optional(array(string())),\n\tmodules: optional(array(string())),\n\tsymlinks: optional(boolean()),\n\tyarnPnp: optional(boolean())\n});\nconst TreeshakingOptionsSchema = union([boolean(), looseObject({\n\tannotations: optional(boolean()),\n\tmanualPureFunctions: optional(array(string())),\n\tunknownGlobalSideEffects: optional(boolean()),\n\tinvalidImportSideEffects: optional(boolean()),\n\tcommonjs: optional(boolean()),\n\tpropertyReadSideEffects: optional(union([literal(false), literal(\"always\")])),\n\tpropertyWriteSideEffects: optional(union([literal(false), literal(\"always\")]))\n})]);\nconst OptimizationOptionsSchema = strictObject({\n\tinlineConst: pipe(optional(union([boolean(), strictObject({\n\t\tmode: optional(union([literal(\"all\"), literal(\"smart\")])),\n\t\tpass: optional(number())\n\t})])), description(\"Enable crossmodule constant inlining\")),\n\tpifeForModuleWrappers: pipe(optional(boolean()), description(\"Use PIFE pattern for module wrappers\"))\n});\nconst LogOrStringHandlerSchema = pipe(vFunction(), args(tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));\nconst OnLogSchema = pipe(vFunction(), args(tuple([\n\tLogLevelSchema,\n\tRollupLogSchema,\n\tLogOrStringHandlerSchema\n])));\nconst OnwarnSchema = pipe(vFunction(), args(tuple([RollupLogSchema, pipe(vFunction(), args(tuple([union([RollupLogWithStringSchema, pipe(vFunction(), returns(RollupLogWithStringSchema))])])))])));\nconst DevModeSchema = union([boolean(), strictObject({\n\tport: optional(number()),\n\thost: optional(string()),\n\timplement: optional(string()),\n\tlazy: optional(boolean())\n})]);\nconst InputOptionsSchema = strictObject({\n\tinput: optional(InputOptionSchema),\n\tplugins: optional(custom(() => true)),\n\texternal: optional(ExternalOptionSchema),\n\tmakeAbsoluteExternalsRelative: optional(union([boolean(), literal(\"ifRelativeSource\")])),\n\tresolve: optional(ResolveOptionsSchema),\n\tcwd: pipe(optional(string()), description(\"Current working directory\")),\n\tplatform: pipe(optional(union([\n\t\tliteral(\"browser\"),\n\t\tliteral(\"neutral\"),\n\t\tliteral(\"node\")\n\t])), description(`Platform for which the code should be generated (node, ${styleText$1(\"underline\", \"browser\")}, neutral)`)),\n\tshimMissingExports: pipe(optional(boolean()), description(\"Create shim variables for missing exports\")),\n\ttreeshake: optional(TreeshakingOptionsSchema),\n\toptimization: optional(OptimizationOptionsSchema),\n\tlogLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${styleText$1(\"dim\", \"silent\")}, ${styleText$1([\"underline\", \"gray\"], \"info\")}, debug, ${styleText$1(\"yellow\", \"warn\")})`)),\n\tonLog: optional(OnLogSchema),\n\tonwarn: optional(OnwarnSchema),\n\tmoduleTypes: pipe(optional(ModuleTypesSchema), description(\"Module types for customized extensions\")),\n\texperimental: optional(strictObject({\n\t\tenableComposingJsPlugins: optional(boolean()),\n\t\tviteMode: optional(boolean()),\n\t\tresolveNewUrlToAsset: optional(boolean()),\n\t\tstrictExecutionOrder: optional(boolean()),\n\t\tonDemandWrapping: optional(boolean()),\n\t\tincrementalBuild: optional(boolean()),\n\t\tdevMode: optional(DevModeSchema),\n\t\tattachDebugInfo: optional(union([\n\t\t\tliteral(\"none\"),\n\t\t\tliteral(\"simple\"),\n\t\t\tliteral(\"full\")\n\t\t])),\n\t\tchunkModulesOrder: optional(union([literal(\"module-id\"), literal(\"exec-order\")])),\n\t\tchunkImportMap: optional(union([boolean(), object({\n\t\t\tbaseUrl: optional(string()),\n\t\t\tfileName: optional(string())\n\t\t})])),\n\t\tnativeMagicString: optional(boolean()),\n\t\tchunkOptimization: optional(boolean())\n\t})),\n\ttransform: optional(TransformOptionsSchema),\n\twatch: optional(union([WatchOptionsSchema, literal(false)])),\n\tchecks: optional(ChecksOptionsSchema),\n\tdevtools: pipe(optional(object({ sessionId: pipe(optional(string()), description(\"Used to name the build.\")) })), description(\"Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.\")),\n\tpreserveEntrySignatures: pipe(optional(union([\n\t\tliteral(\"strict\"),\n\t\tliteral(\"allow-extension\"),\n\t\tliteral(\"exports-only\"),\n\t\tliteral(false)\n\t]))),\n\ttsconfig: pipe(optional(union([boolean(), string()])), description(\"Path to the tsconfig.json file.\"))\n});\nconst InputCliOverrideSchema = strictObject({\n\tinput: pipe(optional(array(string())), description(\"Entry file\")),\n\texternal: pipe(optional(array(string())), description(\"Comma-separated list of module ids to exclude from the bundle `<module-id>,...`\")),\n\ttreeshake: pipe(optional(boolean()), description(\"enable treeshaking\")),\n\tmakeAbsoluteExternalsRelative: pipe(optional(boolean()), description(\"Prevent normalization of external imports\")),\n\tpreserveEntrySignatures: pipe(optional(literal(false)), description(\"Avoid facade chunks for entry points\")),\n\tcontext: pipe(optional(string()), description(\"The entity top-level `this` represents.\"))\n});\nconst InputCliOptionsSchema = omit(strictObject({\n\t...InputOptionsSchema.entries,\n\t...InputCliOverrideSchema.entries\n}), [\n\t\"plugins\",\n\t\"onwarn\",\n\t\"onLog\",\n\t\"resolve\",\n\t\"experimental\",\n\t\"watch\"\n]);\nconst ModuleFormatSchema = union([\n\tliteral(\"es\"),\n\tliteral(\"cjs\"),\n\tliteral(\"esm\"),\n\tliteral(\"module\"),\n\tliteral(\"commonjs\"),\n\tliteral(\"iife\"),\n\tliteral(\"umd\")\n]);\nconst AddonFunctionSchema = pipe(vFunction(), args(tuple([custom(() => true)])), returnsAsync(unionAsync([string(), pipeAsync(promise(), awaitAsync(), string())])));\nconst ChunkFileNamesFunctionSchema = pipe(vFunction(), args(tuple([custom(() => true)])), returns(string()));\nconst ChunkFileNamesSchema = union([string(), ChunkFileNamesFunctionSchema]);\nconst AssetFileNamesFunctionSchema = pipe(vFunction(), args(tuple([custom(() => true)])), returns(string()));\nconst AssetFileNamesSchema = union([string(), AssetFileNamesFunctionSchema]);\nconst SanitizeFileNameFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(string()));\nconst SanitizeFileNameSchema = union([boolean(), SanitizeFileNameFunctionSchema]);\nconst GlobalsFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(string()));\nconst PathsFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(string()));\nconst ManualChunksFunctionSchema = pipe(vFunction(), args(tuple([string(), object({})])), returns(nullish(string())));\nconst AdvancedChunksNameFunctionSchema = pipe(vFunction(), args(tuple([string(), object({})])), returns(nullish(string())));\nconst AdvancedChunksTestFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(union([\n\tboolean(),\n\tvoid_(),\n\tundefined_()\n])));\nconst AdvancedChunksSchema = strictObject({\n\tincludeDependenciesRecursively: optional(boolean()),\n\tminSize: optional(number()),\n\tmaxSize: optional(number()),\n\tminModuleSize: optional(number()),\n\tmaxModuleSize: optional(number()),\n\tminShareCount: optional(number()),\n\tgroups: optional(array(strictObject({\n\t\tname: union([string(), AdvancedChunksNameFunctionSchema]),\n\t\ttest: optional(union([StringOrRegExpSchema, AdvancedChunksTestFunctionSchema])),\n\t\tpriority: optional(number()),\n\t\tminSize: optional(number()),\n\t\tminShareCount: optional(number()),\n\t\tmaxSize: optional(number()),\n\t\tminModuleSize: optional(number()),\n\t\tmaxModuleSize: optional(number())\n\t})))\n});\nconst GeneratedCodePresetSchema = union([literal(\"es5\"), literal(\"es2015\")]);\nconst GeneratedCodeOptionsSchema = strictObject({\n\tsymbols: pipe(optional(boolean()), description(\"Whether to use Symbol.toStringTag for namespace objects\")),\n\tpreset: GeneratedCodePresetSchema,\n\tprofilerNames: pipe(optional(boolean()), description(\"Whether to add readable names to internal variables for profiling purposes\"))\n});\nconst OutputOptionsSchema = strictObject({\n\tdir: pipe(optional(string()), description(\"Output directory, defaults to `dist` if `file` is not set\")),\n\tfile: pipe(optional(string()), description(\"Single output file\")),\n\texports: pipe(optional(union([\n\t\tliteral(\"auto\"),\n\t\tliteral(\"named\"),\n\t\tliteral(\"default\"),\n\t\tliteral(\"none\")\n\t])), description(`Specify a export mode (${styleText$1(\"underline\", \"auto\")}, named, default, none)`)),\n\thashCharacters: pipe(optional(union([\n\t\tliteral(\"base64\"),\n\t\tliteral(\"base36\"),\n\t\tliteral(\"hex\")\n\t])), description(\"Use the specified character set for file hashes\")),\n\tformat: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${styleText$1(\"underline\", \"esm\")}, cjs, and iife)`)),\n\tsourcemap: pipe(optional(union([\n\t\tboolean(),\n\t\tliteral(\"inline\"),\n\t\tliteral(\"hidden\")\n\t])), description(`Generate sourcemap (\\`-s inline\\` for inline, or ${styleText$1(\"bold\", \"pass the `-s` on the last argument if you want to generate `.map` file\")})`)),\n\tsourcemapBaseUrl: pipe(optional(string()), description(\"Base URL used to prefix sourcemap paths\")),\n\tsourcemapDebugIds: pipe(optional(boolean()), description(\"Inject sourcemap debug IDs\")),\n\tsourcemapIgnoreList: optional(union([\n\t\tboolean(),\n\t\tcustom(() => true),\n\t\tStringOrRegExpSchema\n\t])),\n\tsourcemapPathTransform: optional(custom(() => true)),\n\tbanner: optional(union([string(), AddonFunctionSchema])),\n\tfooter: optional(union([string(), AddonFunctionSchema])),\n\tpostBanner: optional(union([string(), AddonFunctionSchema])),\n\tpostFooter: optional(union([string(), AddonFunctionSchema])),\n\tintro: optional(union([string(), AddonFunctionSchema])),\n\toutro: optional(union([string(), AddonFunctionSchema])),\n\textend: pipe(optional(boolean()), description(\"Extend global variable defined by name in IIFE / UMD formats\")),\n\tesModule: optional(union([boolean(), literal(\"if-default-prop\")])),\n\tassetFileNames: optional(AssetFileNamesSchema),\n\tentryFileNames: optional(ChunkFileNamesSchema),\n\tchunkFileNames: optional(ChunkFileNamesSchema),\n\tcssEntryFileNames: optional(ChunkFileNamesSchema),\n\tcssChunkFileNames: optional(ChunkFileNamesSchema),\n\tsanitizeFileName: optional(SanitizeFileNameSchema),\n\tminify: pipe(optional(union([\n\t\tboolean(),\n\t\tliteral(\"dce-only\"),\n\t\tMinifyOptionsSchema\n\t])), description(\"Minify the bundled file\")),\n\tname: pipe(optional(string()), description(\"Name for UMD / IIFE format outputs\")),\n\tglobals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description(\"Global variable of UMD / IIFE dependencies (syntax: `key=value`)\")),\n\tpaths: pipe(optional(union([record(string(), string()), PathsFunctionSchema])), description(\"Maps external module IDs to paths\")),\n\tgeneratedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description(\"Generated code options\")),\n\texternalLiveBindings: pipe(optional(boolean()), description(\"external live bindings\")),\n\tinlineDynamicImports: pipe(optional(boolean()), description(\"Inline dynamic imports\")),\n\tdynamicImportInCjs: pipe(optional(boolean()), description(\"Dynamic import in CJS output\")),\n\tmanualChunks: optional(ManualChunksFunctionSchema),\n\tcodeSplitting: optional(union([boolean(), AdvancedChunksSchema])),\n\tadvancedChunks: optional(AdvancedChunksSchema),\n\tlegalComments: pipe(optional(union([literal(\"none\"), literal(\"inline\")])), description(\"Control comments in the output\")),\n\tplugins: optional(custom(() => true)),\n\tpolyfillRequire: pipe(optional(boolean()), description(\"Disable require polyfill injection\")),\n\thoistTransitiveImports: optional(literal(false)),\n\tpreserveModules: pipe(optional(boolean()), description(\"Preserve module structure\")),\n\tpreserveModulesRoot: pipe(optional(string()), description(\"Put preserved modules under this path at root level\")),\n\tvirtualDirname: optional(string()),\n\tminifyInternalExports: pipe(optional(boolean()), description(\"Minify internal exports\")),\n\ttopLevelVar: pipe(optional(boolean()), description(\"Rewrite top-level declarations to use `var`.\")),\n\tcleanDir: pipe(optional(boolean()), description(\"Clean output directory before emitting output\")),\n\tkeepNames: pipe(optional(boolean()), description(\"Keep function and class names after bundling\"))\n});\nconst getAddonDescription = (placement, wrapper) => {\n\treturn `Code to insert the ${styleText$1(\"bold\", placement)} of the bundled file (${styleText$1(\"bold\", wrapper)} the wrapper function)`;\n};\nconst OutputCliOverrideSchema = strictObject({\n\tassetFileNames: pipe(optional(string()), description(\"Name pattern for asset files\")),\n\tentryFileNames: pipe(optional(string()), description(\"Name pattern for emitted entry chunks\")),\n\tchunkFileNames: pipe(optional(string()), description(\"Name pattern for emitted secondary chunks\")),\n\tcssEntryFileNames: pipe(optional(string()), description(\"Name pattern for emitted css entry chunks\")),\n\tcssChunkFileNames: pipe(optional(string()), description(\"Name pattern for emitted css secondary chunks\")),\n\tsanitizeFileName: pipe(optional(boolean()), description(\"Sanitize file name\")),\n\tbanner: pipe(optional(string()), description(getAddonDescription(\"top\", \"outside\"))),\n\tfooter: pipe(optional(string()), description(getAddonDescription(\"bottom\", \"outside\"))),\n\tpostBanner: pipe(optional(string()), description(\"A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification\")),\n\tpostFooter: pipe(optional(string()), description(\"A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification\")),\n\tintro: pipe(optional(string()), description(getAddonDescription(\"top\", \"inside\"))),\n\toutro: pipe(optional(string()), description(getAddonDescription(\"bottom\", \"inside\"))),\n\tesModule: pipe(optional(boolean()), description(\"Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)\")),\n\tglobals: pipe(optional(record(string(), string())), description(\"Global variable of UMD / IIFE dependencies (syntax: `key=value`)\")),\n\tcodeSplitting: pipe(optional(union([boolean(), strictObject({\n\t\tminSize: pipe(optional(number()), description(\"Minimum size of the chunk\")),\n\t\tminShareCount: pipe(optional(number()), description(\"Minimum share count of the chunk\"))\n\t})])), description(\"Code splitting options (true, false, or object)\")),\n\tadvancedChunks: pipe(optional(strictObject({\n\t\tminSize: pipe(optional(number()), description(\"Minimum size of the chunk\")),\n\t\tminShareCount: pipe(optional(number()), description(\"Minimum share count of the chunk\"))\n\t})), description(\"Deprecated: use codeSplitting instead\")),\n\tminify: pipe(optional(boolean()), description(\"Minify the bundled file\"))\n});\nconst OutputCliOptionsSchema = omit(strictObject({\n\t...OutputOptionsSchema.entries,\n\t...OutputCliOverrideSchema.entries\n}), [\n\t\"sourcemapIgnoreList\",\n\t\"sourcemapPathTransform\",\n\t\"plugins\",\n\t\"hoistTransitiveImports\"\n]);\nconst CliOptionsSchema = strictObject({\n\tconfig: pipe(optional(union([string(), boolean()])), description(\"Path to the config file (default: `rolldown.config.js`)\")),\n\thelp: pipe(optional(boolean()), description(\"Show help\")),\n\tenvironment: pipe(optional(union([string(), array(string())])), description(\"Pass additional settings to the config file via process.ENV.\")),\n\tversion: pipe(optional(boolean()), description(\"Show version number\")),\n\twatch: pipe(optional(boolean()), description(\"Watch files in bundle and rebuild on changes\")),\n\t...InputCliOptionsSchema.entries,\n\t...OutputCliOptionsSchema.entries\n});\nfunction validateCliOptions(options) {\n\tlet parsed = safeParse(CliOptionsSchema, options);\n\treturn [parsed.output, parsed.issues?.map((issue) => {\n\t\treturn `Invalid value for option ${issue.path?.map((pathItem) => pathItem.key).join(\" \")}: ${issue.message}`;\n\t})];\n}\nconst inputHelperMsgRecord = {\n\toutput: { ignored: true },\n\t\"resolve.tsconfigFilename\": { issueMsg: \"It is deprecated. Please use the top-level `tsconfig` option instead.\" }\n};\nconst outputHelperMsgRecord = {};\nfunction validateOption(key, options) {\n\tif (typeof options !== \"object\") throw new Error(`Invalid ${key} options. Expected an Object but received ${JSON.stringify(options)}.`);\n\tif (globalThis.process?.env?.ROLLUP_TEST) return;\n\tlet parsed = safeParse(key === \"input\" ? InputOptionsSchema : OutputOptionsSchema, options);\n\tif (!parsed.success) {\n\t\tconst errors = parsed.issues.map((issue) => {\n\t\t\tlet issueMsg = issue.message;\n\t\t\tconst issuePaths = issue.path.map((path) => path.key);\n\t\t\tif (issue.type === \"union\") {\n\t\t\t\tconst subIssue = issue.issues?.find((i) => !(i.type !== issue.received && i.input === issue.input));\n\t\t\t\tif (subIssue) {\n\t\t\t\t\tif (subIssue.path) issuePaths.push(subIssue.path.map((path) => path.key));\n\t\t\t\t\tissueMsg = subIssue.message;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst stringPath = issuePaths.join(\".\");\n\t\t\tconst helper = key === \"input\" ? inputHelperMsgRecord[stringPath] : outputHelperMsgRecord[stringPath];\n\t\t\tif (helper && helper.ignored) return \"\";\n\t\t\treturn `- For the \"${stringPath}\". ${helper?.issueMsg || issueMsg + \".\"} ${helper?.help ? `\\n Help: ${helper.help}` : \"\"}`;\n\t\t}).filter(Boolean);\n\t\tif (errors.length) console.warn(`\\x1b[33mWarning: Invalid ${key} options (${errors.length} issue${errors.length === 1 ? \"\" : \"s\"} found)\\n${errors.join(\"\\n\")}\\x1b[0m`);\n\t}\n}\nfunction getInputCliKeys() {\n\treturn keyof(InputCliOptionsSchema).options;\n}\nfunction getOutputCliKeys() {\n\treturn keyof(OutputCliOptionsSchema).options;\n}\nfunction getCliSchemaInfo() {\n\treturn flattenValibotSchema(CliOptionsSchema);\n}\n\n//#endregion\n//#region src/types/rolldown-output-impl.ts\nvar RolldownOutputImpl = class extends PlainObjectLike {\n\tconstructor(bindingOutputs) {\n\t\tsuper();\n\t\tthis.bindingOutputs = bindingOutputs;\n\t}\n\tget output() {\n\t\treturn transformToRollupOutput(this.bindingOutputs).output;\n\t}\n\t__rolldown_external_memory_handle__(keepDataAlive) {\n\t\tconst results = this.output.map((item) => item.__rolldown_external_memory_handle__(keepDataAlive));\n\t\tif (!results.every((r) => r.freed)) {\n\t\t\tconst reasons = results.filter((r) => !r.freed).map((r) => r.reason).filter(Boolean);\n\t\t\treturn {\n\t\t\t\tfreed: false,\n\t\t\t\treason: `Failed to free ${reasons.length} item(s): ${reasons.join(\"; \")}`\n\t\t\t};\n\t\t}\n\t\treturn { freed: true };\n\t}\n};\n__decorate([lazyProp], RolldownOutputImpl.prototype, \"output\", null);\n\n//#endregion\n//#region src/types/chunking-context.ts\nvar ChunkingContextImpl = class {\n\tconstructor(context) {\n\t\tthis.context = context;\n\t}\n\tgetModuleInfo(moduleId) {\n\t\tconst bindingInfo = this.context.getModuleInfo(moduleId);\n\t\tif (bindingInfo) return transformModuleInfo(bindingInfo, {\n\t\t\tmoduleSideEffects: null,\n\t\t\tmeta: {}\n\t\t});\n\t\treturn null;\n\t}\n};\n\n//#endregion\n//#region src/utils/bindingify-output-options.ts\nfunction bindingifyOutputOptions(outputOptions) {\n\tconst { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;\n\tconst { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);\n\treturn {\n\t\tdir,\n\t\tfile: file == null ? void 0 : file,\n\t\tformat: bindingifyFormat(format),\n\t\texports,\n\t\thashCharacters,\n\t\tsourcemap: bindingifySourcemap(sourcemap),\n\t\tsourcemapBaseUrl,\n\t\tsourcemapDebugIds,\n\t\tsourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,\n\t\tsourcemapPathTransform,\n\t\tbanner: bindingifyAddon(banner),\n\t\tfooter: bindingifyAddon(footer),\n\t\tpostBanner: bindingifyAddon(postBanner),\n\t\tpostFooter: bindingifyAddon(postFooter),\n\t\tintro: bindingifyAddon(intro),\n\t\toutro: bindingifyAddon(outro),\n\t\textend: outputOptions.extend,\n\t\tglobals,\n\t\tpaths,\n\t\tgeneratedCode,\n\t\tesModule,\n\t\tname,\n\t\tassetFileNames: bindingifyAssetFilenames(assetFileNames),\n\t\tentryFileNames,\n\t\tchunkFileNames,\n\t\tcssEntryFileNames,\n\t\tcssChunkFileNames,\n\t\tplugins: [],\n\t\tminify: outputOptions.minify,\n\t\texternalLiveBindings: outputOptions.externalLiveBindings,\n\t\tinlineDynamicImports,\n\t\tdynamicImportInCjs: outputOptions.dynamicImportInCjs,\n\t\tmanualCodeSplitting: advancedChunks,\n\t\tpolyfillRequire: outputOptions.polyfillRequire,\n\t\tsanitizeFileName,\n\t\tpreserveModules,\n\t\tvirtualDirname,\n\t\tlegalComments,\n\t\tpreserveModulesRoot,\n\t\ttopLevelVar,\n\t\tminifyInternalExports: outputOptions.minifyInternalExports,\n\t\tcleanDir,\n\t\tstrictExecutionOrder\n\t};\n}\nfunction bindingifyAddon(configAddon) {\n\tif (configAddon == null || configAddon === \"\") return;\n\tif (typeof configAddon === \"function\") return async (chunk) => configAddon(transformRenderedChunk(chunk));\n\treturn configAddon;\n}\nfunction bindingifyFormat(format) {\n\tswitch (format) {\n\t\tcase void 0:\n\t\tcase \"es\":\n\t\tcase \"esm\":\n\t\tcase \"module\": return \"es\";\n\t\tcase \"cjs\":\n\t\tcase \"commonjs\": return \"cjs\";\n\t\tcase \"iife\": return \"iife\";\n\t\tcase \"umd\": return \"umd\";\n\t\tdefault: unimplemented(`output.format: ${format}`);\n\t}\n}\nfunction bindingifySourcemap(sourcemap) {\n\tswitch (sourcemap) {\n\t\tcase true: return \"file\";\n\t\tcase \"inline\": return \"inline\";\n\t\tcase false:\n\t\tcase void 0: return;\n\t\tcase \"hidden\": return \"hidden\";\n\t\tdefault: throw new Error(`unknown sourcemap: ${sourcemap}`);\n\t}\n}\nfunction bindingifyAssetFilenames(assetFileNames) {\n\tif (typeof assetFileNames === \"function\") return (asset) => {\n\t\treturn assetFileNames({\n\t\t\tname: asset.name,\n\t\t\tnames: asset.names,\n\t\t\toriginalFileName: asset.originalFileName,\n\t\t\toriginalFileNames: asset.originalFileNames,\n\t\t\tsource: transformAssetSource(asset.source),\n\t\t\ttype: \"asset\"\n\t\t});\n\t};\n\treturn assetFileNames;\n}\nfunction bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks) {\n\tlet inlineDynamicImports;\n\tlet effectiveChunksOption;\n\tif (codeSplitting === false) {\n\t\tif (inlineDynamicImportsOption != null) console.warn(\"`inlineDynamicImports` option is ignored because `codeSplitting: false` is set.\");\n\t\tif (manualChunks != null) throw new Error(\"Invalid configuration: \\\"output.manualChunks\\\" cannot be used when \\\"output.codeSplitting\\\" is set to false.\");\n\t\tif (advancedChunks != null) console.warn(\"`advancedChunks` option is ignored because `codeSplitting` is set to `false`.\");\n\t\treturn {\n\t\t\tinlineDynamicImports: true,\n\t\t\tadvancedChunks: void 0\n\t\t};\n\t} else if (codeSplitting === true) {\n\t\tif (inlineDynamicImportsOption != null) console.warn(\"`inlineDynamicImports` option is ignored because `codeSplitting: true` is set.\");\n\t} else if (codeSplitting == null) {\n\t\tif (inlineDynamicImportsOption != null) {\n\t\t\tconsole.warn(\"`inlineDynamicImports` option is deprecated, please use `codeSplitting: false` instead.\");\n\t\t\tinlineDynamicImports = inlineDynamicImportsOption;\n\t\t}\n\t} else {\n\t\teffectiveChunksOption = codeSplitting;\n\t\tif (inlineDynamicImportsOption != null) console.warn(\"`inlineDynamicImports` option is ignored because the `codeSplitting` option is specified.\");\n\t}\n\tif (inlineDynamicImports === true && manualChunks != null) throw new Error(\"Invalid value \\\"true\\\" for option \\\"output.inlineDynamicImports\\\" - this option is not supported for \\\"output.manualChunks\\\".\");\n\tif (effectiveChunksOption == null) {\n\t\tif (advancedChunks != null) {\n\t\t\tconsole.warn(\"`advancedChunks` option is deprecated, please use `codeSplitting` instead.\");\n\t\t\teffectiveChunksOption = advancedChunks;\n\t\t}\n\t} else if (advancedChunks != null) console.warn(\"`advancedChunks` option is ignored because the `codeSplitting` option is specified.\");\n\tif (manualChunks != null && effectiveChunksOption != null) console.warn(\"`manualChunks` option is ignored because the `codeSplitting` option is specified.\");\n\telse if (manualChunks != null) effectiveChunksOption = { groups: [{ name(moduleId, ctx) {\n\t\treturn manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });\n\t} }] };\n\tlet advancedChunksResult;\n\tif (effectiveChunksOption != null) {\n\t\tconst { groups, ...restOptions } = effectiveChunksOption;\n\t\tadvancedChunksResult = {\n\t\t\t...restOptions,\n\t\t\tgroups: groups?.map((group) => {\n\t\t\t\tconst { name, ...restGroup } = group;\n\t\t\t\treturn {\n\t\t\t\t\t...restGroup,\n\t\t\t\t\tname: typeof name === \"function\" ? (id, ctx) => name(id, new ChunkingContextImpl(ctx)) : name\n\t\t\t\t};\n\t\t\t})\n\t\t};\n\t}\n\treturn {\n\t\tinlineDynamicImports,\n\t\tadvancedChunks: advancedChunksResult\n\t};\n}\n\n//#endregion\n//#region src/utils/initialize-parallel-plugins.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);\nasync function initializeParallelPlugins(plugins) {\n\tconst pluginInfos = [];\n\tfor (const [index, plugin] of plugins.entries()) if (\"_parallel\" in plugin) {\n\t\tconst { fileUrl, options } = plugin._parallel;\n\t\tpluginInfos.push({\n\t\t\tindex,\n\t\t\tfileUrl,\n\t\t\toptions\n\t\t});\n\t}\n\tif (pluginInfos.length <= 0) return;\n\tconst count = availableParallelism();\n\tconst parallelJsPluginRegistry = new import_binding.ParallelJsPluginRegistry(count);\n\tconst registryId = parallelJsPluginRegistry.id;\n\tconst workers = await initializeWorkers(registryId, count, pluginInfos);\n\tconst stopWorkers = async () => {\n\t\tawait Promise.all(workers.map((worker) => worker.terminate()));\n\t};\n\treturn {\n\t\tregistry: parallelJsPluginRegistry,\n\t\tstopWorkers\n\t};\n}\nfunction initializeWorkers(registryId, count, pluginInfos) {\n\treturn Promise.all(Array.from({ length: count }, (_, i) => initializeWorker(registryId, pluginInfos, i)));\n}\nasync function initializeWorker(registryId, pluginInfos, threadNumber) {\n\tconst urlString = import.meta.resolve(\"#parallel-plugin-worker\");\n\tconst workerData = {\n\t\tregistryId,\n\t\tpluginInfos,\n\t\tthreadNumber\n\t};\n\tlet worker;\n\ttry {\n\t\tworker = new Worker(new URL(urlString), { workerData });\n\t\tworker.unref();\n\t\tawait new Promise((resolve, reject) => {\n\t\t\tworker.once(\"message\", async (message) => {\n\t\t\t\tif (message.type === \"error\") reject(message.error);\n\t\t\t\telse resolve();\n\t\t\t});\n\t\t});\n\t\treturn worker;\n\t} catch (e) {\n\t\tworker?.terminate();\n\t\tthrow e;\n\t}\n}\nconst availableParallelism = () => {\n\tlet availableParallelism = 1;\n\ttry {\n\t\tavailableParallelism = os.availableParallelism();\n\t} catch {\n\t\tconst cpus = os.cpus();\n\t\tif (Array.isArray(cpus) && cpus.length > 0) availableParallelism = cpus.length;\n\t}\n\treturn Math.min(availableParallelism, 8);\n};\n\n//#endregion\n//#region src/utils/create-bundler-option.ts\nasync function createBundlerOptions(inputOptions, outputOptions, watchMode) {\n\tconst inputPlugins = await normalizePluginOption(inputOptions.plugins);\n\tconst outputPlugins = await normalizePluginOption(outputOptions.plugins);\n\tconst logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;\n\tconst onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);\n\toutputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);\n\tconst normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);\n\tlet plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(normalizedOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];\n\tconst parallelPluginInitResult = await initializeParallelPlugins(plugins);\n\tif (inputOptions.experimental?.strictExecutionOrder !== void 0) console.warn(\"`experimental.strictExecutionOrder` has been stabilized and moved to `output.strictExecutionOrder`. Please update your configuration.\");\n\ttry {\n\t\treturn {\n\t\t\tbundlerOptions: {\n\t\t\t\tinputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode),\n\t\t\t\toutputOptions: bindingifyOutputOptions(outputOptions),\n\t\t\t\tparallelPluginsRegistry: parallelPluginInitResult?.registry\n\t\t\t},\n\t\t\tinputOptions,\n\t\t\tonLog,\n\t\t\tstopWorkers: parallelPluginInitResult?.stopWorkers\n\t\t};\n\t} catch (e) {\n\t\tawait parallelPluginInitResult?.stopWorkers();\n\t\tthrow e;\n\t}\n}\n\n//#endregion\n//#region src/api/rolldown/rolldown-build.ts\nSymbol.asyncDispose ??= Symbol(\"Symbol.asyncDispose\");\n/**\n* The bundle object returned by {@linkcode rolldown} function.\n*\n* @category Programmatic APIs\n*/\nvar RolldownBuild = class RolldownBuild {\n\t#inputOptions;\n\t#bundler;\n\t#stopWorkers;\n\t/** @internal */\n\tstatic asyncRuntimeShutdown = false;\n\t/** @hidden should not be used directly */\n\tconstructor(inputOptions) {\n\t\tthis.#inputOptions = inputOptions;\n\t\tthis.#bundler = new import_binding.BindingBundler();\n\t}\n\t/**\n\t* Whether the bundle has been closed.\n\t*\n\t* If the bundle is closed, calling other methods will throw an error.\n\t*/\n\tget closed() {\n\t\treturn this.#bundler.closed;\n\t}\n\t/**\n\t* Generate bundles in-memory.\n\t*\n\t* If you directly want to write bundles to disk, use the {@linkcode write} method instead.\n\t*\n\t* @param outputOptions The output options.\n\t* @returns The generated bundle.\n\t* @throws {@linkcode RolldownError} When an error occurs during the build.\n\t*/\n\tasync generate(outputOptions = {}) {\n\t\treturn this.#build(false, outputOptions);\n\t}\n\t/**\n\t* Generate and write bundles to disk.\n\t*\n\t* If you want to generate bundles in-memory, use the {@linkcode generate} method instead.\n\t*\n\t* @param outputOptions The output options.\n\t* @returns The generated bundle.\n\t* @throws {@linkcode RolldownError} When an error occurs during the build.\n\t*/\n\tasync write(outputOptions = {}) {\n\t\treturn this.#build(true, outputOptions);\n\t}\n\t/**\n\t* Close the bundle and free resources.\n\t*\n\t* This method is called automatically when using `using` syntax.\n\t*\n\t* @example\n\t* ```js\n\t* import { rolldown } from 'rolldown';\n\t*\n\t* {\n\t* using bundle = await rolldown({ input: 'src/main.js' });\n\t* const output = await bundle.generate({ format: 'esm' });\n\t* console.log(output);\n\t* // bundle.close() is called automatically here\n\t* }\n\t* ```\n\t*/\n\tasync close() {\n\t\tawait this.#stopWorkers?.();\n\t\tawait this.#bundler.close();\n\t\t(0, import_binding.shutdownAsyncRuntime)();\n\t\tRolldownBuild.asyncRuntimeShutdown = true;\n\t\tthis.#stopWorkers = void 0;\n\t}\n\t/** @hidden documented in close method */\n\tasync [Symbol.asyncDispose]() {\n\t\tawait this.close();\n\t}\n\t/**\n\t* @experimental\n\t* @hidden not ready for public usage yet\n\t*/\n\tget watchFiles() {\n\t\treturn Promise.resolve(this.#bundler.getWatchFiles());\n\t}\n\tasync #build(isWrite, outputOptions) {\n\t\tvalidateOption(\"output\", outputOptions);\n\t\tawait this.#stopWorkers?.();\n\t\tconst option = await createBundlerOptions(this.#inputOptions, outputOptions, false);\n\t\tif (RolldownBuild.asyncRuntimeShutdown) (0, import_binding.startAsyncRuntime)();\n\t\ttry {\n\t\t\tthis.#stopWorkers = option.stopWorkers;\n\t\t\tlet output;\n\t\t\tif (isWrite) output = await this.#bundler.write(option.bundlerOptions);\n\t\t\telse output = await this.#bundler.generate(option.bundlerOptions);\n\t\t\treturn new RolldownOutputImpl(unwrapBindingResult(output));\n\t\t} catch (e) {\n\t\t\tawait option.stopWorkers?.();\n\t\t\tthrow e;\n\t\t}\n\t}\n};\n\n//#endregion\nexport { getOutputCliKeys as a, styleText$1 as c, getInputCliKeys as i, PluginDriver as l, createBundlerOptions as n, validateCliOptions as o, getCliSchemaInfo as r, validateOption as s, RolldownBuild as t };","import { n as __toESM, t as require_binding } from \"./binding-C-UNREnT.mjs\";\nimport { o as logMultiplyNotifyOption } from \"./logs-NH298mHo.mjs\";\nimport { a as aggregateBindingErrorsIntoJsError, b as LOG_LEVEL_WARN } from \"./bindingify-input-options-Cb-01HR1.mjs\";\nimport { t as arraify } from \"./misc-CCZIsXVO.mjs\";\nimport { l as PluginDriver, n as createBundlerOptions } from \"./rolldown-build-KB1YaNe-.mjs\";\n\n//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js\n/**\n* This is not the set of all possible signals.\n*\n* It IS, however, the set of all signals that trigger\n* an exit on either Linux or BSD systems. Linux is a\n* superset of the signal names supported on BSD, and\n* the unknown signals just fail to register, so we can\n* catch that easily enough.\n*\n* Windows signals are a different set, since there are\n* signals that terminate Windows processes, but don't\n* terminate (or don't even exist) on Posix systems.\n*\n* Don't bother with SIGKILL. It's uncatchable, which\n* means that we can't fire any callbacks anyway.\n*\n* If a user does happen to register a handler on a non-\n* fatal signal like SIGWINCH or something, and then\n* exit, it'll end up firing `process.emit('exit')`, so\n* the handler will be fired anyway.\n*\n* SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n* artificially, inherently leave the process in a\n* state from which it is not safe to try and enter JS\n* listeners.\n*/\nconst signals = [];\nsignals.push(\"SIGHUP\", \"SIGINT\", \"SIGTERM\");\nif (process.platform !== \"win32\") signals.push(\"SIGALRM\", \"SIGABRT\", \"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") signals.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\");\n\n//#endregion\n//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js\nconst processOk = (process) => !!process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\nconst kExitEmitter = Symbol.for(\"signal-exit emitter\");\nconst global = globalThis;\nconst ObjectDefineProperty = Object.defineProperty.bind(Object);\nvar Emitter = class {\n\temitted = {\n\t\tafterExit: false,\n\t\texit: false\n\t};\n\tlisteners = {\n\t\tafterExit: [],\n\t\texit: []\n\t};\n\tcount = 0;\n\tid = Math.random();\n\tconstructor() {\n\t\tif (global[kExitEmitter]) return global[kExitEmitter];\n\t\tObjectDefineProperty(global, kExitEmitter, {\n\t\t\tvalue: this,\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: false\n\t\t});\n\t}\n\ton(ev, fn) {\n\t\tthis.listeners[ev].push(fn);\n\t}\n\tremoveListener(ev, fn) {\n\t\tconst list = this.listeners[ev];\n\t\tconst i = list.indexOf(fn);\n\t\t/* c8 ignore start */\n\t\tif (i === -1) return;\n\t\t/* c8 ignore stop */\n\t\tif (i === 0 && list.length === 1) list.length = 0;\n\t\telse list.splice(i, 1);\n\t}\n\temit(ev, code, signal) {\n\t\tif (this.emitted[ev]) return false;\n\t\tthis.emitted[ev] = true;\n\t\tlet ret = false;\n\t\tfor (const fn of this.listeners[ev]) ret = fn(code, signal) === true || ret;\n\t\tif (ev === \"exit\") ret = this.emit(\"afterExit\", code, signal) || ret;\n\t\treturn ret;\n\t}\n};\nvar SignalExitBase = class {};\nconst signalExitWrap = (handler) => {\n\treturn {\n\t\tonExit(cb, opts) {\n\t\t\treturn handler.onExit(cb, opts);\n\t\t},\n\t\tload() {\n\t\t\treturn handler.load();\n\t\t},\n\t\tunload() {\n\t\t\treturn handler.unload();\n\t\t}\n\t};\n};\nvar SignalExitFallback = class extends SignalExitBase {\n\tonExit() {\n\t\treturn () => {};\n\t}\n\tload() {}\n\tunload() {}\n};\nvar SignalExit = class extends SignalExitBase {\n\t/* c8 ignore start */\n\t#hupSig = process$1.platform === \"win32\" ? \"SIGINT\" : \"SIGHUP\";\n\t/* c8 ignore stop */\n\t#emitter = new Emitter();\n\t#process;\n\t#originalProcessEmit;\n\t#originalProcessReallyExit;\n\t#sigListeners = {};\n\t#loaded = false;\n\tconstructor(process) {\n\t\tsuper();\n\t\tthis.#process = process;\n\t\tthis.#sigListeners = {};\n\t\tfor (const sig of signals) this.#sigListeners[sig] = () => {\n\t\t\tconst listeners = this.#process.listeners(sig);\n\t\t\tlet { count } = this.#emitter;\n\t\t\t/* c8 ignore start */\n\t\t\tconst p = process;\n\t\t\tif (typeof p.__signal_exit_emitter__ === \"object\" && typeof p.__signal_exit_emitter__.count === \"number\") count += p.__signal_exit_emitter__.count;\n\t\t\t/* c8 ignore stop */\n\t\t\tif (listeners.length === count) {\n\t\t\t\tthis.unload();\n\t\t\t\tconst ret = this.#emitter.emit(\"exit\", null, sig);\n\t\t\t\t/* c8 ignore start */\n\t\t\t\tconst s = sig === \"SIGHUP\" ? this.#hupSig : sig;\n\t\t\t\tif (!ret) process.kill(process.pid, s);\n\t\t\t}\n\t\t};\n\t\tthis.#originalProcessReallyExit = process.reallyExit;\n\t\tthis.#originalProcessEmit = process.emit;\n\t}\n\tonExit(cb, opts) {\n\t\t/* c8 ignore start */\n\t\tif (!processOk(this.#process)) return () => {};\n\t\t/* c8 ignore stop */\n\t\tif (this.#loaded === false) this.load();\n\t\tconst ev = opts?.alwaysLast ? \"afterExit\" : \"exit\";\n\t\tthis.#emitter.on(ev, cb);\n\t\treturn () => {\n\t\t\tthis.#emitter.removeListener(ev, cb);\n\t\t\tif (this.#emitter.listeners[\"exit\"].length === 0 && this.#emitter.listeners[\"afterExit\"].length === 0) this.unload();\n\t\t};\n\t}\n\tload() {\n\t\tif (this.#loaded) return;\n\t\tthis.#loaded = true;\n\t\tthis.#emitter.count += 1;\n\t\tfor (const sig of signals) try {\n\t\t\tconst fn = this.#sigListeners[sig];\n\t\t\tif (fn) this.#process.on(sig, fn);\n\t\t} catch (_) {}\n\t\tthis.#process.emit = (ev, ...a) => {\n\t\t\treturn this.#processEmit(ev, ...a);\n\t\t};\n\t\tthis.#process.reallyExit = (code) => {\n\t\t\treturn this.#processReallyExit(code);\n\t\t};\n\t}\n\tunload() {\n\t\tif (!this.#loaded) return;\n\t\tthis.#loaded = false;\n\t\tsignals.forEach((sig) => {\n\t\t\tconst listener = this.#sigListeners[sig];\n\t\t\t/* c8 ignore start */\n\t\t\tif (!listener) throw new Error(\"Listener not defined for signal: \" + sig);\n\t\t\t/* c8 ignore stop */\n\t\t\ttry {\n\t\t\t\tthis.#process.removeListener(sig, listener);\n\t\t\t} catch (_) {}\n\t\t\t/* c8 ignore stop */\n\t\t});\n\t\tthis.#process.emit = this.#originalProcessEmit;\n\t\tthis.#process.reallyExit = this.#originalProcessReallyExit;\n\t\tthis.#emitter.count -= 1;\n\t}\n\t#processReallyExit(code) {\n\t\t/* c8 ignore start */\n\t\tif (!processOk(this.#process)) return 0;\n\t\tthis.#process.exitCode = code || 0;\n\t\t/* c8 ignore stop */\n\t\tthis.#emitter.emit(\"exit\", this.#process.exitCode, null);\n\t\treturn this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);\n\t}\n\t#processEmit(ev, ...args) {\n\t\tconst og = this.#originalProcessEmit;\n\t\tif (ev === \"exit\" && processOk(this.#process)) {\n\t\t\tif (typeof args[0] === \"number\") this.#process.exitCode = args[0];\n\t\t\t/* c8 ignore start */\n\t\t\tconst ret = og.call(this.#process, ev, ...args);\n\t\t\t/* c8 ignore start */\n\t\t\tthis.#emitter.emit(\"exit\", this.#process.exitCode, null);\n\t\t\t/* c8 ignore stop */\n\t\t\treturn ret;\n\t\t} else return og.call(this.#process, ev, ...args);\n\t}\n};\nconst process$1 = globalThis.process;\nconst { onExit: onExit$1, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());\n\n//#endregion\n//#region src/utils/signal-exit.ts\nfunction onExit(...args) {\n\tif (typeof process === \"object\" && process.versions.webcontainer) {\n\t\tprocess.on(\"exit\", (code) => {\n\t\t\targs[0](code, null);\n\t\t});\n\t\treturn;\n\t}\n\tonExit$1(...args);\n}\n\n//#endregion\n//#region src/api/watch/watch-emitter.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding());\nvar WatcherEmitter = class {\n\tlisteners = /* @__PURE__ */ new Map();\n\ttimer;\n\tconstructor() {\n\t\tthis.timer = setInterval(() => {}, 1e9);\n\t}\n\ton(event, listener) {\n\t\tconst listeners = this.listeners.get(event);\n\t\tif (listeners) listeners.push(listener);\n\t\telse this.listeners.set(event, [listener]);\n\t\treturn this;\n\t}\n\toff(event, listener) {\n\t\tconst listeners = this.listeners.get(event);\n\t\tif (listeners) {\n\t\t\tconst index = listeners.indexOf(listener);\n\t\t\tif (index !== -1) listeners.splice(index, 1);\n\t\t}\n\t\treturn this;\n\t}\n\tclear(event) {\n\t\tif (this.listeners.has(event)) this.listeners.delete(event);\n\t}\n\tasync onEvent(event) {\n\t\tconst listeners = this.listeners.get(event.eventKind());\n\t\tif (listeners) switch (event.eventKind()) {\n\t\t\tcase \"close\":\n\t\t\tcase \"restart\":\n\t\t\t\tfor (const listener of listeners) await listener();\n\t\t\t\tbreak;\n\t\t\tcase \"event\":\n\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\tconst code = event.bundleEventKind();\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\tcase \"BUNDLE_END\":\n\t\t\t\t\t\t\tconst { duration, output, result } = event.bundleEndData();\n\t\t\t\t\t\t\tawait listener({\n\t\t\t\t\t\t\t\tcode: \"BUNDLE_END\",\n\t\t\t\t\t\t\t\tduration,\n\t\t\t\t\t\t\t\toutput: [output],\n\t\t\t\t\t\t\t\tresult\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ERROR\":\n\t\t\t\t\t\t\tconst data = event.bundleErrorData();\n\t\t\t\t\t\t\tawait listener({\n\t\t\t\t\t\t\t\tcode: \"ERROR\",\n\t\t\t\t\t\t\t\terror: aggregateBindingErrorsIntoJsError(data.error),\n\t\t\t\t\t\t\t\tresult: data.result\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tawait listener({ code });\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"change\":\n\t\t\t\tfor (const listener of listeners) {\n\t\t\t\t\tconst { path, kind } = event.watchChangeData();\n\t\t\t\t\tawait listener(path, { event: kind });\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault: throw new Error(`Unknown event: ${event}`);\n\t\t}\n\t}\n\tasync close() {\n\t\tclearInterval(this.timer);\n\t}\n};\n\n//#endregion\n//#region src/api/watch/watcher.ts\nvar Watcher = class {\n\tclosed;\n\tinner;\n\temitter;\n\tstopWorkers;\n\tconstructor(emitter, inner, stopWorkers) {\n\t\tthis.closed = false;\n\t\tthis.inner = inner;\n\t\tthis.emitter = emitter;\n\t\tconst originClose = emitter.close.bind(emitter);\n\t\temitter.close = async () => {\n\t\t\tawait this.close();\n\t\t\toriginClose();\n\t\t};\n\t\tthis.stopWorkers = stopWorkers;\n\t}\n\tasync close() {\n\t\tif (this.closed) return;\n\t\tthis.closed = true;\n\t\tfor (const stop of this.stopWorkers) await stop?.();\n\t\tawait this.inner.close();\n\t\t(0, import_binding.shutdownAsyncRuntime)();\n\t}\n\tstart() {\n\t\tprocess.nextTick(() => this.inner.start(this.emitter.onEvent.bind(this.emitter)));\n\t}\n};\nasync function createWatcher(emitter, input) {\n\tconst options = arraify(input);\n\tconst bundlerOptions = await Promise.all(options.map((option) => arraify(option.output || {}).map(async (output) => {\n\t\treturn createBundlerOptions(await PluginDriver.callOptionsHook(option, true), output, true);\n\t})).flat());\n\tconst notifyOptions = getValidNotifyOption(bundlerOptions);\n\tnew Watcher(emitter, new import_binding.BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions), bundlerOptions.map((option) => option.stopWorkers)).start();\n}\nfunction getValidNotifyOption(bundlerOptions) {\n\tlet result;\n\tfor (const option of bundlerOptions) if (option.inputOptions.watch) {\n\t\tconst notifyOption = option.inputOptions.watch.notify;\n\t\tif (notifyOption) if (result) {\n\t\t\toption.onLog(LOG_LEVEL_WARN, logMultiplyNotifyOption());\n\t\t\treturn result;\n\t\t} else result = notifyOption;\n\t}\n}\n\n//#endregion\n//#region src/api/watch/index.ts\n/**\n* The API compatible with Rollup's `watch` function.\n*\n* This function will rebuild the bundle when it detects that the individual modules have changed on disk.\n*\n* Note that when using this function, it is your responsibility to call `event.result.close()` in response to the `BUNDLE_END` event to avoid resource leaks.\n*\n* @param input The watch options object or the list of them.\n* @returns A watcher object.\n*\n* @example\n* ```js\n* import { watch } from 'rolldown';\n*\n* const watcher = watch({ /* ... *\\/ });\n* watcher.on('event', (event) => {\n* if (event.code === 'BUNDLE_END') {\n* console.log(event.duration);\n* event.result.close();\n* }\n* });\n*\n* // Stop watching\n* watcher.close();\n* ```\n*\n* @experimental\n* @category Programmatic APIs\n*/\nconst watch = (input) => {\n\tconst emitter = new WatcherEmitter();\n\tcreateWatcher(emitter, input);\n\treturn emitter;\n};\n\n//#endregion\nexport { onExit as n, watch as t };","import { n as __toESM, t as require_binding } from \"./shared/binding-C-UNREnT.mjs\";\nimport { n as onExit, t as watch } from \"./shared/watch-B2WRkpw2.mjs\";\nimport \"./shared/normalize-string-or-regex-Dq50a7l9.mjs\";\nimport { S as VERSION } from \"./shared/bindingify-input-options-Cb-01HR1.mjs\";\nimport \"./shared/rolldown-build-KB1YaNe-.mjs\";\nimport \"./shared/parse-ast-index-B6LAhWD8.mjs\";\nimport { t as rolldown } from \"./shared/rolldown-CIC_OHw3.mjs\";\nimport { t as defineConfig } from \"./shared/define-config-BVG4QvnP.mjs\";\nimport { isMainThread } from \"node:worker_threads\";\n\n//#region src/setup.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);\nif (isMainThread) {\n\tconst subscriberGuard = (0, import_binding.initTraceSubscriber)();\n\tonExit(() => {\n\t\tsubscriberGuard?.close();\n\t});\n}\n\n//#endregion\n//#region src/api/build.ts\n/**\n* The API similar to esbuild's `build` function.\n*\n* @example\n* ```js\n* import { build } from 'rolldown';\n*\n* const result = await build({\n* input: 'src/main.js',\n* output: {\n* file: 'bundle.js',\n* },\n* });\n* console.log(result);\n* ```\n*\n* @experimental\n* @category Programmatic APIs\n*/\nasync function build(options) {\n\tif (Array.isArray(options)) return Promise.all(options.map((opts) => build(opts)));\n\telse {\n\t\tconst { output, write = true, ...inputOptions } = options;\n\t\tconst build = await rolldown(inputOptions);\n\t\ttry {\n\t\t\tif (write) return await build.write(output);\n\t\t\telse return await build.generate(output);\n\t\t} finally {\n\t\t\tawait build.close();\n\t\t}\n\t}\n}\n\n//#endregion\nvar BindingMagicString = import_binding.BindingMagicString;\nexport { BindingMagicString, VERSION, build, defineConfig, rolldown, watch };","import { createRequire as e } from \"module\";\nimport { spawn as t } from \"node:child_process\";\nimport { delimiter as n, dirname as r, normalize as i, resolve as a } from \"node:path\";\nimport { cwd as o } from \"node:process\";\nimport { PassThrough as s } from \"node:stream\";\nimport c from \"node:readline\";\nvar l = Object.create;\nvar u = Object.defineProperty;\nvar d = Object.getOwnPropertyDescriptor;\nvar f = Object.getOwnPropertyNames;\nvar p = Object.getPrototypeOf;\nvar m = Object.prototype.hasOwnProperty;\nvar h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);\nvar g = (e, t, n, r) => {\n\tif (t && typeof t === \"object\" || typeof t === \"function\") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {\n\t\ts = i[a];\n\t\tif (!m.call(e, s) && s !== n) u(e, s, {\n\t\t\tget: ((e) => t[e]).bind(null, s),\n\t\t\tenumerable: !(r = d(t, s)) || r.enumerable\n\t\t});\n\t}\n\treturn e;\n};\nvar _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, \"default\", {\n\tvalue: e,\n\tenumerable: true\n}) : n, e));\nvar v = /* @__PURE__ */ e(import.meta.url);\nconst y = /^path$/i;\nconst b = {\n\tkey: \"PATH\",\n\tvalue: \"\"\n};\nfunction x(e) {\n\tfor (const t in e) {\n\t\tif (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;\n\t\tconst n = e[t];\n\t\tif (!n) return b;\n\t\treturn {\n\t\t\tkey: t,\n\t\t\tvalue: n\n\t\t};\n\t}\n\treturn b;\n}\nfunction S(e, t) {\n\tconst i = t.value.split(n);\n\tlet o = e;\n\tlet s;\n\tdo {\n\t\ti.push(a(o, \"node_modules\", \".bin\"));\n\t\ts = o;\n\t\to = r(o);\n\t} while (o !== s);\n\treturn {\n\t\tkey: t.key,\n\t\tvalue: i.join(n)\n\t};\n}\nfunction C(e, t) {\n\tconst n = {\n\t\t...process.env,\n\t\t...t\n\t};\n\tconst r = S(e, x(n));\n\tn[r.key] = r.value;\n\treturn n;\n}\nconst w = (e) => {\n\tlet t = e.length;\n\tconst n = new s();\n\tconst r = () => {\n\t\tif (--t === 0) n.emit(\"end\");\n\t};\n\tfor (const t of e) {\n\t\tt.pipe(n, { end: false });\n\t\tt.on(\"end\", r);\n\t}\n\treturn n;\n};\nvar T = h((exports, t) => {\n\tt.exports = a;\n\ta.sync = o;\n\tvar n = v(\"fs\");\n\tfunction r(e, t) {\n\t\tvar n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;\n\t\tif (!n) return true;\n\t\tn = n.split(\";\");\n\t\tif (n.indexOf(\"\") !== -1) return true;\n\t\tfor (var r = 0; r < n.length; r++) {\n\t\t\tvar i = n[r].toLowerCase();\n\t\t\tif (i && e.substr(-i.length).toLowerCase() === i) return true;\n\t\t}\n\t\treturn false;\n\t}\n\tfunction i(e, t, n) {\n\t\tif (!e.isSymbolicLink() && !e.isFile()) return false;\n\t\treturn r(t, n);\n\t}\n\tfunction a(e, t, r) {\n\t\tn.stat(e, function(n, a) {\n\t\t\tr(n, n ? false : i(a, e, t));\n\t\t});\n\t}\n\tfunction o(e, t) {\n\t\treturn i(n.statSync(e), e, t);\n\t}\n});\nvar E = h((exports, t) => {\n\tt.exports = r;\n\tr.sync = i;\n\tvar n = v(\"fs\");\n\tfunction r(e, t, r) {\n\t\tn.stat(e, function(e, n) {\n\t\t\tr(e, e ? false : a(n, t));\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\treturn a(n.statSync(e), t);\n\t}\n\tfunction a(e, t) {\n\t\treturn e.isFile() && o(e, t);\n\t}\n\tfunction o(e, t) {\n\t\tvar n = e.mode;\n\t\tvar r = e.uid;\n\t\tvar i = e.gid;\n\t\tvar a = t.uid !== void 0 ? t.uid : process.getuid && process.getuid();\n\t\tvar o = t.gid !== void 0 ? t.gid : process.getgid && process.getgid();\n\t\tvar s = parseInt(\"100\", 8);\n\t\tvar c = parseInt(\"010\", 8);\n\t\tvar l = parseInt(\"001\", 8);\n\t\tvar u = s | c;\n\t\tvar d = n & l || n & c && i === o || n & s && r === a || n & u && a === 0;\n\t\treturn d;\n\t}\n});\nvar D = h((exports, t) => {\n\tvar n = v(\"fs\");\n\tvar r;\n\tif (process.platform === \"win32\" || global.TESTING_WINDOWS) r = T();\n\telse r = E();\n\tt.exports = i;\n\ti.sync = a;\n\tfunction i(e, t, n) {\n\t\tif (typeof t === \"function\") {\n\t\t\tn = t;\n\t\t\tt = {};\n\t\t}\n\t\tif (!n) {\n\t\t\tif (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n\t\t\treturn new Promise(function(n, r) {\n\t\t\t\ti(e, t || {}, function(e, t) {\n\t\t\t\t\tif (e) r(e);\n\t\t\t\t\telse n(t);\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\tr(e, t || {}, function(e, r) {\n\t\t\tif (e) {\n\t\t\t\tif (e.code === \"EACCES\" || t && t.ignoreErrors) {\n\t\t\t\t\te = null;\n\t\t\t\t\tr = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tn(e, r);\n\t\t});\n\t}\n\tfunction a(e, t) {\n\t\ttry {\n\t\t\treturn r.sync(e, t || {});\n\t\t} catch (e) {\n\t\t\tif (t && t.ignoreErrors || e.code === \"EACCES\") return false;\n\t\t\telse throw e;\n\t\t}\n\t}\n});\nvar O = h((exports, t) => {\n\tconst n = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\tconst r = v(\"path\");\n\tconst i = n ? \";\" : \":\";\n\tconst a = D();\n\tconst o = (e) => Object.assign(new Error(`not found: ${e}`), { code: \"ENOENT\" });\n\tconst s = (e, t) => {\n\t\tconst r = t.colon || i;\n\t\tconst a = e.match(/\\//) || n && e.match(/\\\\/) ? [\"\"] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || \"\").split(r)];\n\t\tconst o = n ? t.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n\t\tconst s = n ? o.split(r) : [\"\"];\n\t\tif (n) {\n\t\t\tif (e.indexOf(\".\") !== -1 && s[0] !== \"\") s.unshift(\"\");\n\t\t}\n\t\treturn {\n\t\t\tpathEnv: a,\n\t\t\tpathExt: s,\n\t\t\tpathExtExe: o\n\t\t};\n\t};\n\tconst c = (e, t, n) => {\n\t\tif (typeof t === \"function\") {\n\t\t\tn = t;\n\t\t\tt = {};\n\t\t}\n\t\tif (!t) t = {};\n\t\tconst { pathEnv: i, pathExt: c, pathExtExe: l } = s(e, t);\n\t\tconst u = [];\n\t\tconst d = (n) => new Promise((a, s) => {\n\t\t\tif (n === i.length) return t.all && u.length ? a(u) : s(o(e));\n\t\t\tconst c = i[n];\n\t\t\tconst l = /^\".*\"$/.test(c) ? c.slice(1, -1) : c;\n\t\t\tconst d = r.join(l, e);\n\t\t\tconst p = !l && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d;\n\t\t\ta(f(p, n, 0));\n\t\t});\n\t\tconst f = (e, n, r) => new Promise((i, o) => {\n\t\t\tif (r === c.length) return i(d(n + 1));\n\t\t\tconst s = c[r];\n\t\t\ta(e + s, { pathExt: l }, (a, o) => {\n\t\t\t\tif (!a && o) if (t.all) u.push(e + s);\n\t\t\t\telse return i(e + s);\n\t\t\t\treturn i(f(e, n, r + 1));\n\t\t\t});\n\t\t});\n\t\treturn n ? d(0).then((e) => n(null, e), n) : d(0);\n\t};\n\tconst l = (e, t) => {\n\t\tt = t || {};\n\t\tconst { pathEnv: n, pathExt: i, pathExtExe: c } = s(e, t);\n\t\tconst l = [];\n\t\tfor (let o = 0; o < n.length; o++) {\n\t\t\tconst s = n[o];\n\t\t\tconst u = /^\".*\"$/.test(s) ? s.slice(1, -1) : s;\n\t\t\tconst d = r.join(u, e);\n\t\t\tconst f = !u && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d;\n\t\t\tfor (let e = 0; e < i.length; e++) {\n\t\t\t\tconst n = f + i[e];\n\t\t\t\ttry {\n\t\t\t\t\tconst e = a.sync(n, { pathExt: c });\n\t\t\t\t\tif (e) if (t.all) l.push(n);\n\t\t\t\t\telse return n;\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\t\t}\n\t\tif (t.all && l.length) return l;\n\t\tif (t.nothrow) return null;\n\t\tthrow o(e);\n\t};\n\tt.exports = c;\n\tc.sync = l;\n});\nvar k = h((exports, t) => {\n\tconst n = (e = {}) => {\n\t\tconst t = e.env || process.env;\n\t\tconst n = e.platform || process.platform;\n\t\tif (n !== \"win32\") return \"PATH\";\n\t\treturn Object.keys(t).reverse().find((e) => e.toUpperCase() === \"PATH\") || \"Path\";\n\t};\n\tt.exports = n;\n\tt.exports.default = n;\n});\nvar A = h((exports, t) => {\n\tconst n = v(\"path\");\n\tconst r = O();\n\tconst i = k();\n\tfunction a(e, t) {\n\t\tconst a = e.options.env || process.env;\n\t\tconst o = process.cwd();\n\t\tconst s = e.options.cwd != null;\n\t\tconst c = s && process.chdir !== void 0 && !process.chdir.disabled;\n\t\tif (c) try {\n\t\t\tprocess.chdir(e.options.cwd);\n\t\t} catch (e) {}\n\t\tlet l;\n\t\ttry {\n\t\t\tl = r.sync(e.command, {\n\t\t\t\tpath: a[i({ env: a })],\n\t\t\t\tpathExt: t ? n.delimiter : void 0\n\t\t\t});\n\t\t} catch (e) {} finally {\n\t\t\tif (c) process.chdir(o);\n\t\t}\n\t\tif (l) l = n.resolve(s ? e.options.cwd : \"\", l);\n\t\treturn l;\n\t}\n\tfunction o(e) {\n\t\treturn a(e) || a(e, true);\n\t}\n\tt.exports = o;\n});\nvar j = h((exports, t) => {\n\tconst n = /([()\\][%!^\"`<>&|;, *?])/g;\n\tfunction r(e) {\n\t\te = e.replace(n, \"^$1\");\n\t\treturn e;\n\t}\n\tfunction i(e, t) {\n\t\te = `${e}`;\n\t\te = e.replace(/(\\\\*)\"/g, \"$1$1\\\\\\\"\");\n\t\te = e.replace(/(\\\\*)$/, \"$1$1\");\n\t\te = `\"${e}\"`;\n\t\te = e.replace(n, \"^$1\");\n\t\tif (t) e = e.replace(n, \"^$1\");\n\t\treturn e;\n\t}\n\tt.exports.command = r;\n\tt.exports.argument = i;\n});\nvar M = h((exports, t) => {\n\tt.exports = /^#!(.*)/;\n});\nvar N = h((exports, t) => {\n\tconst n = M();\n\tt.exports = (e = \"\") => {\n\t\tconst t = e.match(n);\n\t\tif (!t) return null;\n\t\tconst [r, i] = t[0].replace(/#! ?/, \"\").split(\" \");\n\t\tconst a = r.split(\"/\").pop();\n\t\tif (a === \"env\") return i;\n\t\treturn i ? `${a} ${i}` : a;\n\t};\n});\nvar P = h((exports, t) => {\n\tconst n = v(\"fs\");\n\tconst r = N();\n\tfunction i(e) {\n\t\tconst t = 150;\n\t\tconst i = Buffer.alloc(t);\n\t\tlet a;\n\t\ttry {\n\t\t\ta = n.openSync(e, \"r\");\n\t\t\tn.readSync(a, i, 0, t, 0);\n\t\t\tn.closeSync(a);\n\t\t} catch (e) {}\n\t\treturn r(i.toString());\n\t}\n\tt.exports = i;\n});\nvar F = h((exports, t) => {\n\tconst n = v(\"path\");\n\tconst r = A();\n\tconst i = j();\n\tconst a = P();\n\tconst o = process.platform === \"win32\";\n\tconst s = /\\.(?:com|exe)$/i;\n\tconst c = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\tfunction l(e) {\n\t\te.file = r(e);\n\t\tconst t = e.file && a(e.file);\n\t\tif (t) {\n\t\t\te.args.unshift(e.file);\n\t\t\te.command = t;\n\t\t\treturn r(e);\n\t\t}\n\t\treturn e.file;\n\t}\n\tfunction u(e) {\n\t\tif (!o) return e;\n\t\tconst t = l(e);\n\t\tconst r = !s.test(t);\n\t\tif (e.options.forceShell || r) {\n\t\t\tconst r = c.test(t);\n\t\t\te.command = n.normalize(e.command);\n\t\t\te.command = i.command(e.command);\n\t\t\te.args = e.args.map((e) => i.argument(e, r));\n\t\t\tconst a = [e.command].concat(e.args).join(\" \");\n\t\t\te.args = [\n\t\t\t\t\"/d\",\n\t\t\t\t\"/s\",\n\t\t\t\t\"/c\",\n\t\t\t\t`\"${a}\"`\n\t\t\t];\n\t\t\te.command = process.env.comspec || \"cmd.exe\";\n\t\t\te.options.windowsVerbatimArguments = true;\n\t\t}\n\t\treturn e;\n\t}\n\tfunction d(e, t, n) {\n\t\tif (t && !Array.isArray(t)) {\n\t\t\tn = t;\n\t\t\tt = null;\n\t\t}\n\t\tt = t ? t.slice(0) : [];\n\t\tn = Object.assign({}, n);\n\t\tconst r = {\n\t\t\tcommand: e,\n\t\t\targs: t,\n\t\t\toptions: n,\n\t\t\tfile: void 0,\n\t\t\toriginal: {\n\t\t\t\tcommand: e,\n\t\t\t\targs: t\n\t\t\t}\n\t\t};\n\t\treturn n.shell ? r : u(r);\n\t}\n\tt.exports = d;\n});\nvar I = h((exports, t) => {\n\tconst n = process.platform === \"win32\";\n\tfunction r(e, t) {\n\t\treturn Object.assign(new Error(`${t} ${e.command} ENOENT`), {\n\t\t\tcode: \"ENOENT\",\n\t\t\terrno: \"ENOENT\",\n\t\t\tsyscall: `${t} ${e.command}`,\n\t\t\tpath: e.command,\n\t\t\tspawnargs: e.args\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\tif (!n) return;\n\t\tconst r = e.emit;\n\t\te.emit = function(n, i) {\n\t\t\tif (n === \"exit\") {\n\t\t\t\tconst n = a(i, t, \"spawn\");\n\t\t\t\tif (n) return r.call(e, \"error\", n);\n\t\t\t}\n\t\t\treturn r.apply(e, arguments);\n\t\t};\n\t}\n\tfunction a(e, t) {\n\t\tif (n && e === 1 && !t.file) return r(t.original, \"spawn\");\n\t\treturn null;\n\t}\n\tfunction o(e, t) {\n\t\tif (n && e === 1 && !t.file) return r(t.original, \"spawnSync\");\n\t\treturn null;\n\t}\n\tt.exports = {\n\t\thookChildProcess: i,\n\t\tverifyENOENT: a,\n\t\tverifyENOENTSync: o,\n\t\tnotFoundError: r\n\t};\n});\nvar L = h((exports, t) => {\n\tconst n = v(\"child_process\");\n\tconst r = F();\n\tconst i = I();\n\tfunction a(e, t, a) {\n\t\tconst o = r(e, t, a);\n\t\tconst s = n.spawn(o.command, o.args, o.options);\n\t\ti.hookChildProcess(s, o);\n\t\treturn s;\n\t}\n\tfunction o(e, t, a) {\n\t\tconst o = r(e, t, a);\n\t\tconst s = n.spawnSync(o.command, o.args, o.options);\n\t\ts.error = s.error || i.verifyENOENTSync(s.status, o);\n\t\treturn s;\n\t}\n\tt.exports = a;\n\tt.exports.spawn = a;\n\tt.exports.sync = o;\n\tt.exports._parse = r;\n\tt.exports._enoent = i;\n});\nvar R = _(L(), 1);\nvar z = class extends Error {\n\tresult;\n\toutput;\n\tget exitCode() {\n\t\tif (this.result.exitCode !== null) return this.result.exitCode;\n\t\treturn void 0;\n\t}\n\tconstructor(e, t) {\n\t\tsuper(`Process exited with non-zero status (${e.exitCode})`);\n\t\tthis.result = e;\n\t\tthis.output = t;\n\t}\n};\nconst B = {\n\ttimeout: void 0,\n\tpersist: false\n};\nconst V = { windowsHide: true };\nfunction H(e, t) {\n\tconst n = i(e);\n\tconst r = t ?? [];\n\treturn {\n\t\tcommand: n,\n\t\targs: r\n\t};\n}\nfunction U(e) {\n\tconst t = new AbortController();\n\tfor (const n of e) {\n\t\tif (n.aborted) {\n\t\t\tt.abort();\n\t\t\treturn n;\n\t\t}\n\t\tconst e = () => {\n\t\t\tt.abort(n.reason);\n\t\t};\n\t\tn.addEventListener(\"abort\", e, { signal: t.signal });\n\t}\n\treturn t.signal;\n}\nasync function W(e) {\n\tlet t = \"\";\n\tfor await (const n of e) t += n.toString();\n\treturn t;\n}\nvar G = class {\n\t_process;\n\t_aborted = false;\n\t_options;\n\t_command;\n\t_args;\n\t_resolveClose;\n\t_processClosed;\n\t_thrownError;\n\tget process() {\n\t\treturn this._process;\n\t}\n\tget pid() {\n\t\treturn this._process?.pid;\n\t}\n\tget exitCode() {\n\t\tif (this._process && this._process.exitCode !== null) return this._process.exitCode;\n\t\treturn void 0;\n\t}\n\tconstructor(e, t, n) {\n\t\tthis._options = {\n\t\t\t...B,\n\t\t\t...n\n\t\t};\n\t\tthis._command = e;\n\t\tthis._args = t ?? [];\n\t\tthis._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t});\n\t}\n\tkill(e) {\n\t\treturn this._process?.kill(e) === true;\n\t}\n\tget aborted() {\n\t\treturn this._aborted;\n\t}\n\tget killed() {\n\t\treturn this._process?.killed === true;\n\t}\n\tpipe(e, t, n) {\n\t\treturn q(e, t, {\n\t\t\t...n,\n\t\t\tstdin: this\n\t\t});\n\t}\n\tasync *[Symbol.asyncIterator]() {\n\t\tconst e = this._process;\n\t\tif (!e) return;\n\t\tconst t = [];\n\t\tif (this._streamErr) t.push(this._streamErr);\n\t\tif (this._streamOut) t.push(this._streamOut);\n\t\tconst n = w(t);\n\t\tconst r = c.createInterface({ input: n });\n\t\tfor await (const e of r) yield e.toString();\n\t\tawait this._processClosed;\n\t\te.removeAllListeners();\n\t\tif (this._thrownError) throw this._thrownError;\n\t\tif (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);\n\t}\n\tasync _waitForOutput() {\n\t\tconst e = this._process;\n\t\tif (!e) throw new Error(\"No process was started\");\n\t\tconst [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : \"\", this._streamErr ? W(this._streamErr) : \"\"]);\n\t\tawait this._processClosed;\n\t\tif (this._options?.stdin) await this._options.stdin;\n\t\te.removeAllListeners();\n\t\tif (this._thrownError) throw this._thrownError;\n\t\tconst r = {\n\t\t\tstderr: n,\n\t\t\tstdout: t,\n\t\t\texitCode: this.exitCode\n\t\t};\n\t\tif (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);\n\t\treturn r;\n\t}\n\tthen(e, t) {\n\t\treturn this._waitForOutput().then(e, t);\n\t}\n\t_streamOut;\n\t_streamErr;\n\tspawn() {\n\t\tconst e = o();\n\t\tconst n = this._options;\n\t\tconst r = {\n\t\t\t...V,\n\t\t\t...n.nodeOptions\n\t\t};\n\t\tconst i = [];\n\t\tthis._resetState();\n\t\tif (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));\n\t\tif (n.signal !== void 0) i.push(n.signal);\n\t\tif (n.persist === true) r.detached = true;\n\t\tif (i.length > 0) r.signal = U(i);\n\t\tr.env = C(e, r.env);\n\t\tconst { command: a, args: s } = H(this._command, this._args);\n\t\tconst c = (0, R._parse)(a, s, r);\n\t\tconst l = t(c.command, c.args, c.options);\n\t\tif (l.stderr) this._streamErr = l.stderr;\n\t\tif (l.stdout) this._streamOut = l.stdout;\n\t\tthis._process = l;\n\t\tl.once(\"error\", this._onError);\n\t\tl.once(\"close\", this._onClose);\n\t\tif (n.stdin !== void 0 && l.stdin && n.stdin.process) {\n\t\t\tconst { stdout: e } = n.stdin.process;\n\t\t\tif (e) e.pipe(l.stdin);\n\t\t}\n\t}\n\t_resetState() {\n\t\tthis._aborted = false;\n\t\tthis._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t});\n\t\tthis._thrownError = void 0;\n\t}\n\t_onError = (e) => {\n\t\tif (e.name === \"AbortError\" && (!(e.cause instanceof Error) || e.cause.name !== \"TimeoutError\")) {\n\t\t\tthis._aborted = true;\n\t\t\treturn;\n\t\t}\n\t\tthis._thrownError = e;\n\t};\n\t_onClose = () => {\n\t\tif (this._resolveClose) this._resolveClose();\n\t};\n};\nconst K = (e, t, n) => {\n\tconst r = new G(e, t, n);\n\tr.spawn();\n\treturn r;\n};\nconst q = K;\nexport { G as ExecProcess, z as NonZeroExitError, q as exec, K as x };\n","import { n as __toESM, t as require_binding } from \"./shared/binding-C-UNREnT.mjs\";\nimport { n as BuiltinPlugin, t as normalizedStringOrRegex } from \"./shared/normalize-string-or-regex-Dq50a7l9.mjs\";\nimport { c as transformToRollupOutput, o as normalizeBindingResult, s as unwrapBindingResult } from \"./shared/bindingify-input-options-Cb-01HR1.mjs\";\nimport { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from \"./shared/rolldown-build-KB1YaNe-.mjs\";\nimport { i as parseSync, r as parse } from \"./shared/parse-ast-index-B6LAhWD8.mjs\";\nimport { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWasmHelperPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from \"./shared/constructors-aZ82R2dj.mjs\";\nimport { pathToFileURL } from \"node:url\";\n\n//#region src/api/dev/dev-engine.ts\nvar import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);\nvar DevEngine = class DevEngine {\n\t#inner;\n\t#cachedBuildFinishPromise = null;\n\tstatic async create(inputOptions, outputOptions = {}, devOptions = {}) {\n\t\tinputOptions = await PluginDriver.callOptionsHook(inputOptions);\n\t\tconst options = await createBundlerOptions(inputOptions, outputOptions, false);\n\t\tconst userOnHmrUpdates = devOptions.onHmrUpdates;\n\t\tconst bindingOnHmrUpdates = userOnHmrUpdates ? function(rawResult) {\n\t\t\tconst result = normalizeBindingResult(rawResult);\n\t\t\tif (result instanceof Error) {\n\t\t\t\tuserOnHmrUpdates(result);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst [updates, changedFiles] = result;\n\t\t\tuserOnHmrUpdates({\n\t\t\t\tupdates,\n\t\t\t\tchangedFiles\n\t\t\t});\n\t\t} : void 0;\n\t\tconst userOnOutput = devOptions.onOutput;\n\t\tconst bindingDevOptions = {\n\t\t\tonHmrUpdates: bindingOnHmrUpdates,\n\t\t\tonOutput: userOnOutput ? function(rawResult) {\n\t\t\t\tconst result = normalizeBindingResult(rawResult);\n\t\t\t\tif (result instanceof Error) {\n\t\t\t\t\tuserOnOutput(result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tuserOnOutput(transformToRollupOutput(result));\n\t\t\t} : void 0,\n\t\t\trebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === \"always\" ? import_binding.BindingRebuildStrategy.Always : devOptions.rebuildStrategy === \"auto\" ? import_binding.BindingRebuildStrategy.Auto : import_binding.BindingRebuildStrategy.Never : void 0,\n\t\t\twatch: devOptions.watch && {\n\t\t\t\tskipWrite: devOptions.watch.skipWrite,\n\t\t\t\tusePolling: devOptions.watch.usePolling,\n\t\t\t\tpollInterval: devOptions.watch.pollInterval,\n\t\t\t\tuseDebounce: devOptions.watch.useDebounce,\n\t\t\t\tdebounceDuration: devOptions.watch.debounceDuration,\n\t\t\t\tcompareContentsForPolling: devOptions.watch.compareContentsForPolling,\n\t\t\t\tdebounceTickRate: devOptions.watch.debounceTickRate\n\t\t\t}\n\t\t};\n\t\treturn new DevEngine(new import_binding.BindingDevEngine(options.bundlerOptions, bindingDevOptions));\n\t}\n\tconstructor(inner) {\n\t\tthis.#inner = inner;\n\t}\n\tasync run() {\n\t\tawait this.#inner.run();\n\t}\n\tasync ensureCurrentBuildFinish() {\n\t\tif (this.#cachedBuildFinishPromise) return this.#cachedBuildFinishPromise;\n\t\tconst promise = this.#inner.ensureCurrentBuildFinish().then(() => {\n\t\t\tthis.#cachedBuildFinishPromise = null;\n\t\t});\n\t\tthis.#cachedBuildFinishPromise = promise;\n\t\treturn promise;\n\t}\n\tasync getBundleState() {\n\t\treturn this.#inner.getBundleState();\n\t}\n\tasync ensureLatestBuildOutput() {\n\t\tawait this.#inner.ensureLatestBuildOutput();\n\t}\n\tasync invalidate(file, firstInvalidatedBy) {\n\t\treturn this.#inner.invalidate(file, firstInvalidatedBy);\n\t}\n\tasync registerModules(clientId, modules) {\n\t\tawait this.#inner.registerModules(clientId, modules);\n\t}\n\tasync removeClient(clientId) {\n\t\tawait this.#inner.removeClient(clientId);\n\t}\n\tasync close() {\n\t\tawait this.#inner.close();\n\t}\n\t/**\n\t* Compile a lazy entry module and return HMR-style patch code.\n\t*\n\t* This is called when a dynamically imported module is first requested at runtime.\n\t* The module was previously stubbed with a proxy, and now we need to compile the\n\t* actual module and its dependencies.\n\t*\n\t* @param moduleId - The absolute file path of the module to compile\n\t* @param clientId - The client ID requesting this compilation\n\t* @returns The compiled JavaScript code as a string (HMR patch format)\n\t*/\n\tasync compileEntry(moduleId, clientId) {\n\t\treturn this.#inner.compileEntry(moduleId, clientId);\n\t}\n};\n\n//#endregion\n//#region src/api/dev/index.ts\nconst dev = (...args) => DevEngine.create(...args);\n\n//#endregion\n//#region src/types/external-memory-handle.ts\nconst symbolForExternalMemoryHandle = \"__rolldown_external_memory_handle__\";\n/**\n* Frees the external memory held by the given handle.\n*\n* This is useful when you want to manually release memory held by Rust objects\n* (like `OutputChunk` or `OutputAsset`) before they are garbage collected.\n*\n* @param handle - The object with external memory to free\n* @param keepDataAlive - If true, evaluates all lazy fields before freeing memory (default: false).\n* This will take time to copy data from Rust to JavaScript, but prevents errors\n* when accessing properties after the memory is freed.\n* @returns Status object with `freed` boolean and optional `reason` string.\n* - `{ freed: true }` if memory was successfully freed\n* - `{ freed: false, reason: \"...\" }` if memory couldn't be freed (e.g., already freed or other references exist)\n*\n* @example\n* ```typescript\n* import { freeExternalMemory } from 'rolldown/experimental';\n*\n* const output = await bundle.generate();\n* const chunk = output.output[0];\n*\n* // Use the chunk...\n*\n* // Manually free the memory (fast, but accessing properties after will throw)\n* const status = freeExternalMemory(chunk); // { freed: true }\n* const statusAgain = freeExternalMemory(chunk); // { freed: false, reason: \"Memory has already been freed\" }\n*\n* // Keep data alive before freeing (slower, but data remains accessible)\n* freeExternalMemory(chunk, true); // Evaluates all lazy fields first\n* console.log(chunk.code); // OK - data was copied to JavaScript before freeing\n*\n* // Without keepDataAlive, accessing chunk properties after freeing will throw an error\n* ```\n*/\nfunction freeExternalMemory(handle, keepDataAlive = false) {\n\treturn handle[symbolForExternalMemoryHandle](keepDataAlive);\n}\n\n//#endregion\n//#region src/api/experimental.ts\n/**\n* This is an experimental API. Its behavior may change in the future.\n*\n* - Calling this API will only execute the `scan/build` stage of rolldown.\n* - `scan` will clean up all resources automatically, but if you want to ensure timely cleanup, you need to wait for the returned promise to resolve.\n*\n* @example To ensure cleanup of resources, use the returned promise to wait for the scan to complete.\n* ```ts\n* import { scan } from 'rolldown/api/experimental';\n*\n* const cleanupPromise = await scan(...);\n* await cleanupPromise;\n* // Now all resources have been cleaned up.\n* ```\n*/\nconst scan = async (rawInputOptions, rawOutputOptions = {}) => {\n\tvalidateOption(\"input\", rawInputOptions);\n\tvalidateOption(\"output\", rawOutputOptions);\n\tconst ret = await createBundlerOptions(await PluginDriver.callOptionsHook(rawInputOptions), rawOutputOptions, false);\n\tconst bundler = new import_binding.BindingBundler();\n\tif (RolldownBuild.asyncRuntimeShutdown) (0, import_binding.startAsyncRuntime)();\n\tasync function cleanup() {\n\t\tawait bundler.close();\n\t\tawait ret.stopWorkers?.();\n\t\t(0, import_binding.shutdownAsyncRuntime)();\n\t\tRolldownBuild.asyncRuntimeShutdown = true;\n\t}\n\tlet cleanupPromise = Promise.resolve();\n\ttry {\n\t\tunwrapBindingResult(await bundler.scan(ret.bundlerOptions));\n\t} catch (err) {\n\t\tawait cleanup();\n\t\tthrow err;\n\t} finally {\n\t\tcleanupPromise = cleanup();\n\t}\n\treturn cleanupPromise;\n};\n\n//#endregion\n//#region src/plugin/parallel-plugin.ts\nfunction defineParallelPlugin(pluginPath) {\n\treturn (options) => {\n\t\treturn { _parallel: {\n\t\t\tfileUrl: pathToFileURL(pluginPath).href,\n\t\t\toptions\n\t\t} };\n\t};\n}\n\n//#endregion\n//#region src/builtin-plugin/alias-plugin.ts\nfunction viteAliasPlugin(config) {\n\treturn new BuiltinPlugin(\"builtin:vite-alias\", config);\n}\n\n//#endregion\n//#region src/builtin-plugin/transform-plugin.ts\nfunction viteTransformPlugin(config) {\n\treturn new BuiltinPlugin(\"builtin:vite-transform\", {\n\t\t...config,\n\t\tinclude: normalizedStringOrRegex(config.include),\n\t\texclude: normalizedStringOrRegex(config.exclude),\n\t\tjsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),\n\t\tjsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),\n\t\tyarnPnp: typeof process === \"object\" && !!process.versions?.pnp\n\t});\n}\n\n//#endregion\n//#region src/builtin-plugin/vite-manifest-plugin.ts\nfunction viteManifestPlugin(config) {\n\treturn new BuiltinPlugin(\"builtin:vite-manifest\", config);\n}\n\n//#endregion\n//#region src/experimental-index.ts\n/**\n* In-memory file system for browser builds.\n*\n* This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.\n* It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.\n*\n* - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)\n* - `volume`: The underlying `Volume` instance that stores the filesystem state\n*\n* Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).\n*\n* @example\n* ```typescript\n* import { memfs } from 'rolldown/experimental';\n*\n* // Write files to virtual filesystem before bundling\n* memfs?.volume.fromJSON({\n* '/src/index.js': 'export const foo = 42;',\n* '/package.json': '{\"name\": \"my-app\"}'\n* });\n*\n* // Read files from the virtual filesystem\n* const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');\n* ```\n*\n* @see {@link https://github.com/streamich/memfs} for more information on the memfs API.\n*/\nconst memfs = void 0;\n\n//#endregion\nvar BindingRebuildStrategy = import_binding.BindingRebuildStrategy;\nvar ResolverFactory = import_binding.ResolverFactory;\nvar createTokioRuntime = import_binding.createTokioRuntime;\nvar isolatedDeclaration = import_binding.isolatedDeclaration;\nvar isolatedDeclarationSync = import_binding.isolatedDeclarationSync;\nvar minify = import_binding.minify;\nvar minifySync = import_binding.minifySync;\nvar moduleRunnerTransform = import_binding.moduleRunnerTransform;\nvar transform = import_binding.transform;\nvar transformSync = import_binding.transformSync;\nexport { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };","import { createRequire as __cjs_createRequire } from \"node:module\";\nconst __cjs_require = __cjs_createRequire(import.meta.url);\nimport { a as globalLogger, d as promiseWithResolvers, h as toArray, m as slash, s as importWithError, t as LogLevels } from \"./logger-DwCm1t8D.mjs\";\nimport { a as getPackageType, c as cleanChunks, i as loadConfigFile, l as cleanOutDir, n as mergeUserOptions, o as writeExports, r as resolveUserConfig, s as defaultCssBundleName } from \"./options-DjhyorFa.mjs\";\nimport { a as fsRemove, r as fsCopy, s as lowestCommonAncestor } from \"./format-BD2e_4xO.mjs\";\nimport { t as version } from \"./package-CyV9GzRT.mjs\";\nimport { a as ReportPlugin, c as getShimsInject, i as ShebangPlugin, n as endsWithConfig, o as NodeProtocolPlugin, r as addOutDirToChunks, s as DepPlugin, t as WatchPlugin } from \"./watch-FYvwDgoF.mjs\";\nimport { mkdtemp, readFile, writeFile } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport process from \"node:process\";\nimport { bold, dim, green } from \"ansis\";\nimport { createDebug } from \"obug\";\nimport { glob, isDynamicPattern } from \"tinyglobby\";\nimport readline from \"node:readline\";\nimport { RE_CSS, RE_DTS, RE_JS } from \"rolldown-plugin-dts/filename\";\nimport { clearRequireCache } from \"import-without-cache\";\nimport { VERSION, build, watch } from \"rolldown\";\nconst coerce = __cjs_require(\"semver/functions/coerce.js\");\nconst satisfies = __cjs_require(\"semver/functions/satisfies.js\");\nimport { Hookable } from \"hookable\";\nimport { exec } from \"tinyexec\";\nconst treeKill = __cjs_require(\"tree-kill\");\nimport { formatWithOptions, inspect } from \"node:util\";\nimport { tmpdir } from \"node:os\";\nimport { importGlobPlugin } from \"rolldown/experimental\";\n\n//#region src/config/workspace.ts\nconst debug$4 = createDebug(\"tsdown:config:workspace\");\nconst DEFAULT_EXCLUDE_WORKSPACE = [\n\t\"**/node_modules/**\",\n\t\"**/dist/**\",\n\t\"**/test?(s)/**\",\n\t\"**/t?(e)mp/**\"\n];\nasync function resolveWorkspace(config, inlineConfig) {\n\tconst normalized = {\n\t\t...config,\n\t\t...inlineConfig\n\t};\n\tconst rootCwd = normalized.cwd || process.cwd();\n\tlet { workspace } = normalized;\n\tif (!workspace) return {\n\t\tconfigs: [normalized],\n\t\tfiles: []\n\t};\n\tif (workspace === true) workspace = {};\n\telse if (typeof workspace === \"string\" || Array.isArray(workspace)) workspace = { include: workspace };\n\tlet { include: packages = \"auto\", exclude = DEFAULT_EXCLUDE_WORKSPACE, config: workspaceConfig } = workspace;\n\tif (packages === \"auto\") packages = (await glob(\"**/package.json\", {\n\t\tignore: exclude,\n\t\tcwd: rootCwd,\n\t\texpandDirectories: false\n\t})).filter((file) => file !== \"package.json\").map((file) => slash(path.resolve(rootCwd, file, \"..\")));\n\telse packages = (await glob(packages, {\n\t\tignore: exclude,\n\t\tcwd: rootCwd,\n\t\tonlyDirectories: true,\n\t\tabsolute: true,\n\t\texpandDirectories: false\n\t})).map((file) => slash(path.resolve(file)));\n\tif (packages.length === 0) throw new Error(\"No workspace packages found, please check your config\");\n\tconst files = [];\n\treturn {\n\t\tconfigs: (await Promise.all(packages.map(async (cwd) => {\n\t\t\tdebug$4(\"loading workspace config %s\", cwd);\n\t\t\tconst { configs, file } = await loadConfigFile({\n\t\t\t\t...inlineConfig,\n\t\t\t\tconfig: workspaceConfig,\n\t\t\t\tcwd\n\t\t\t}, cwd);\n\t\t\tif (file) {\n\t\t\t\tdebug$4(\"loaded workspace config file %s\", file);\n\t\t\t\tfiles.push(file);\n\t\t\t} else debug$4(\"no workspace config file found in %s\", cwd);\n\t\t\treturn configs.map((config) => ({\n\t\t\t\t...normalized,\n\t\t\t\t...config\n\t\t\t}));\n\t\t}))).flat(),\n\t\tfiles\n\t};\n}\n\n//#endregion\n//#region src/config/index.ts\nconst debug$3 = createDebug(\"tsdown:config\");\nasync function resolveConfig(inlineConfig) {\n\tdebug$3(\"inline config %O\", inlineConfig);\n\tif (inlineConfig.cwd) inlineConfig.cwd = path.resolve(inlineConfig.cwd);\n\tconst { configs: rootConfigs, file } = await loadConfigFile(inlineConfig);\n\tconst files = [];\n\tif (file) {\n\t\tfiles.push(file);\n\t\tdebug$3(\"loaded root user config file %s\", file);\n\t\tdebug$3(\"root user configs %O\", rootConfigs);\n\t} else debug$3(\"no root user config file found\");\n\tconst configs = (await Promise.all(rootConfigs.map(async (rootConfig) => {\n\t\tconst { configs: workspaceConfigs, files: workspaceFiles } = await resolveWorkspace(rootConfig, inlineConfig);\n\t\tdebug$3(\"workspace configs %O\", workspaceConfigs);\n\t\tif (workspaceFiles) files.push(...workspaceFiles);\n\t\treturn (await Promise.all(workspaceConfigs.filter((config) => !config.workspace || config.entry).map((config) => resolveUserConfig(config, inlineConfig)))).flat().filter((config) => !!config);\n\t}))).flat();\n\tdebug$3(\"resolved configs %O\", configs);\n\tif (configs.length === 0) throw new Error(\"No valid configuration found.\");\n\treturn {\n\t\tconfigs,\n\t\tfiles\n\t};\n}\n\n//#endregion\n//#region src/features/cjs.ts\nfunction warnLegacyCJS(config) {\n\tif (!config.target || !(config.checks?.legacyCjs ?? true) || !config.format.includes(\"cjs\")) return;\n\tif (config.target.some((t) => {\n\t\tconst version = coerce(t.split(\"node\")[1]);\n\t\treturn version && satisfies(version, \"^20.19.0 || >=22.12.0\");\n\t})) config.logger.warnOnce(\"We recommend using the ESM format instead of CommonJS.\\nThe ESM format is compatible with modern platforms and runtimes, and most new libraries are now distributed only in ESM format.\\nLearn more at https://nodejs.org/en/learn/modules/publishing-a-package#how-did-we-get-here\");\n}\n\n//#endregion\n//#region src/features/copy.ts\nasync function copy(options) {\n\tif (!options.copy) return;\n\tconst copy = typeof options.copy === \"function\" ? await options.copy(options) : options.copy;\n\tconst resolved = (await Promise.all(toArray(copy).map(async (entry) => {\n\t\tif (typeof entry === \"string\") entry = { from: [entry] };\n\t\tlet from = toArray(entry.from);\n\t\tif (from.some((f) => isDynamicPattern(f))) from = await glob(from, {\n\t\t\tcwd: options.cwd,\n\t\t\tonlyFiles: true,\n\t\t\texpandDirectories: false\n\t\t});\n\t\treturn from.map((file) => resolveCopyEntry({\n\t\t\t...entry,\n\t\t\tfrom: file\n\t\t}));\n\t}))).flat();\n\tif (!resolved.length) {\n\t\toptions.logger.warn(options.nameLabel, `No files matched for copying.`);\n\t\treturn;\n\t}\n\tawait Promise.all(resolved.map(({ from, to, verbose }) => {\n\t\tif (verbose) options.logger.info(options.nameLabel, `Copying files from ${path.relative(options.cwd, from)} to ${path.relative(options.cwd, to)}`);\n\t\treturn fsCopy(from, to);\n\t}));\n\tfunction resolveCopyEntry(entry) {\n\t\tconst { flatten = true, rename } = entry;\n\t\tconst from = path.resolve(options.cwd, entry.from);\n\t\tconst to = entry.to ? path.resolve(options.cwd, entry.to) : options.outDir;\n\t\tconst { base, dir } = path.parse(path.relative(options.cwd, from));\n\t\tconst destFolder = flatten || !flatten && !dir ? to : dir.replace(dir.split(path.sep)[0], to);\n\t\tconst dest = path.join(destFolder, rename ? renameTarget(base, rename, from) : base);\n\t\treturn {\n\t\t\t...entry,\n\t\t\tfrom,\n\t\t\tto: dest\n\t\t};\n\t}\n}\nfunction renameTarget(target, rename, src) {\n\tconst parsedPath = path.parse(target);\n\treturn typeof rename === \"string\" ? rename : rename(parsedPath.name, parsedPath.ext.replace(\".\", \"\"), src);\n}\n\n//#endregion\n//#region src/features/devtools.ts\nasync function startDevtoolsUI(config) {\n\tconst { start } = await importWithError(\"@vitejs/devtools/cli-commands\");\n\tawait start({\n\t\thost: \"127.0.0.1\",\n\t\topen: true,\n\t\t...typeof config.ui === \"object\" ? config.ui : {}\n\t});\n}\n\n//#endregion\n//#region src/features/hooks.ts\nasync function createHooks(options) {\n\tconst hooks = new Hookable();\n\tif (typeof options.hooks === \"object\") hooks.addHooks(options.hooks);\n\telse if (typeof options.hooks === \"function\") await options.hooks(hooks);\n\treturn {\n\t\thooks,\n\t\tcontext: {\n\t\t\toptions,\n\t\t\thooks\n\t\t}\n\t};\n}\nfunction executeOnSuccess(config) {\n\tif (!config.onSuccess) return;\n\tconst ab = new AbortController();\n\tif (typeof config.onSuccess === \"string\") {\n\t\tconst p = exec(config.onSuccess, [], { nodeOptions: {\n\t\t\tshell: true,\n\t\t\tstdio: \"inherit\"\n\t\t} });\n\t\tp.then(({ exitCode }) => {\n\t\t\tif (exitCode) process.exitCode = exitCode;\n\t\t});\n\t\tab.signal.addEventListener(\"abort\", () => {\n\t\t\tif (typeof p.pid === \"number\") treeKill(p.pid);\n\t\t});\n\t} else config.onSuccess(config, ab.signal);\n\treturn ab;\n}\n\n//#endregion\n//#region src/features/pkg/attw.ts\nconst debug$2 = createDebug(\"tsdown:attw\");\nconst label$1 = dim`[attw]`;\nconst problemFlags = {\n\tNoResolution: \"no-resolution\",\n\tUntypedResolution: \"untyped-resolution\",\n\tFalseCJS: \"false-cjs\",\n\tFalseESM: \"false-esm\",\n\tCJSResolvesToESM: \"cjs-resolves-to-esm\",\n\tFallbackCondition: \"fallback-condition\",\n\tCJSOnlyExportsDefault: \"cjs-only-exports-default\",\n\tNamedExports: \"named-exports\",\n\tFalseExportDefault: \"false-export-default\",\n\tMissingExportEquals: \"missing-export-equals\",\n\tUnexpectedModuleSyntax: \"unexpected-module-syntax\",\n\tInternalResolutionError: \"internal-resolution-error\"\n};\n/**\n* ATTW profiles.\n* Defines the resolution modes to ignore for each profile.\n*\n* @see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/packages/cli/README.md#profiles\n*/\nconst profiles = {\n\tstrict: [],\n\tnode16: [\"node10\"],\n\t\"esm-only\": [\"node10\", \"node16-cjs\"]\n};\nasync function attw(options) {\n\tif (!options.attw) return;\n\tif (!options.pkg) {\n\t\toptions.logger.warn(\"attw is enabled but package.json is not found\");\n\t\treturn;\n\t}\n\tconst { profile = \"strict\", level = \"warn\", ignoreRules = [], ...attwOptions } = options.attw;\n\tconst invalidRules = ignoreRules.filter((rule) => !Object.values(problemFlags).includes(rule));\n\tif (invalidRules.length) options.logger.warn(`attw config option 'ignoreRules' contains invalid value '${invalidRules.join(\", \")}'.`);\n\tconst t = performance.now();\n\tdebug$2(\"Running attw check\");\n\tconst tempDir = await mkdtemp(path.join(tmpdir(), \"tsdown-attw-\"));\n\tconst attwCore = await importWithError(\"@arethetypeswrong/core\", options.attw.resolvePaths);\n\tlet checkResult;\n\ttry {\n\t\tconst { stdout: tarballInfo } = await exec(\"npm\", [\n\t\t\t\"pack\",\n\t\t\t\"--json\",\n\t\t\t\"--ignore-scripts\",\n\t\t\t\"--pack-destination\",\n\t\t\ttempDir\n\t\t], { nodeOptions: { cwd: options.cwd } });\n\t\tconst parsed = JSON.parse(tarballInfo);\n\t\tif (!Array.isArray(parsed) || !parsed[0]?.filename) throw new Error(\"Invalid npm pack output format\");\n\t\tconst tarball = await readFile(path.join(tempDir, parsed[0].filename));\n\t\tconst pkg = attwCore.createPackageFromTarballData(tarball);\n\t\tcheckResult = await attwCore.checkPackage(pkg, attwOptions);\n\t} catch (error) {\n\t\toptions.logger.error(\"ATTW check failed:\", error);\n\t\treturn;\n\t} finally {\n\t\tawait fsRemove(tempDir);\n\t}\n\tlet errorMessage;\n\tif (checkResult.types) {\n\t\tconst problems = checkResult.problems.filter((problem) => {\n\t\t\tif (ignoreRules.includes(problemFlags[problem.kind])) return false;\n\t\t\tif (\"resolutionKind\" in problem) return !profiles[profile]?.includes(problem.resolutionKind);\n\t\t\treturn true;\n\t\t});\n\t\tif (problems.length) errorMessage = `problems found:\\n${problems.map((problem) => formatProblem(checkResult.packageName, problem)).join(\"\\n\")}`;\n\t} else errorMessage = `Package has no types`;\n\tif (errorMessage) options.logger[level](options.nameLabel, label$1, errorMessage);\n\telse options.logger.success(options.nameLabel, label$1, \"No problems found\", dim`(${Math.round(performance.now() - t)}ms)`);\n}\n/**\n* Format an ATTW problem for display\n*/\nfunction formatProblem(packageName, problem) {\n\tconst resolutionKind = \"resolutionKind\" in problem ? ` (${problem.resolutionKind})` : \"\";\n\tconst entrypoint = \"entrypoint\" in problem ? ` at ${slash(path.join(packageName, problem.entrypoint))}` : \"\";\n\tswitch (problem.kind) {\n\t\tcase \"NoResolution\": return ` ❌ No resolution${resolutionKind}${entrypoint}`;\n\t\tcase \"UntypedResolution\": return ` ⚠️ Untyped resolution${resolutionKind}${entrypoint}`;\n\t\tcase \"FalseESM\": return ` 🔄 False ESM: Types indicate ESM (${problem.typesModuleKind}) but implementation is CJS (${problem.implementationModuleKind})\\n Types: ${problem.typesFileName} | Implementation: ${problem.implementationFileName}`;\n\t\tcase \"FalseCJS\": return ` 🔄 False CJS: Types indicate CJS (${problem.typesModuleKind}) but implementation is ESM (${problem.implementationModuleKind})\\n Types: ${problem.typesFileName} | Implementation: ${problem.implementationFileName}`;\n\t\tcase \"CJSResolvesToESM\": return ` ⚡ CJS resolves to ESM${resolutionKind}${entrypoint}`;\n\t\tcase \"NamedExports\": {\n\t\t\tconst missingExports = problem.missing?.length > 0 ? ` Missing: ${problem.missing.join(\", \")}` : \"\";\n\t\t\treturn ` 📤 Named exports problem${problem.isMissingAllNamed ? \" (all named exports missing)\" : \"\"}${missingExports}\\n Types: ${problem.typesFileName} | Implementation: ${problem.implementationFileName}`;\n\t\t}\n\t\tcase \"FallbackCondition\": return ` 🎯 Fallback condition used${resolutionKind}${entrypoint}`;\n\t\tcase \"FalseExportDefault\": return ` 🎭 False export default\\n Types: ${problem.typesFileName} | Implementation: ${problem.implementationFileName}`;\n\t\tcase \"MissingExportEquals\": return ` 📝 Missing export equals\\n Types: ${problem.typesFileName} | Implementation: ${problem.implementationFileName}`;\n\t\tcase \"InternalResolutionError\": return ` 💥 Internal resolution error in ${problem.fileName} (${problem.resolutionOption})\\n Module: ${problem.moduleSpecifier} | Mode: ${problem.resolutionMode}`;\n\t\tcase \"UnexpectedModuleSyntax\": return ` 📋 Unexpected module syntax in ${problem.fileName}\\n Expected: ${problem.moduleKind} | Found: ${problem.syntax === 99 ? \"ESM\" : \"CJS\"}`;\n\t\tcase \"CJSOnlyExportsDefault\": return ` 🏷️ CJS only exports default in ${problem.fileName}`;\n\t\tdefault: return ` ❓ Unknown problem: ${JSON.stringify(problem)}`;\n\t}\n}\n\n//#endregion\n//#region src/features/pkg/publint.ts\nconst debug$1 = createDebug(\"tsdown:publint\");\nconst label = dim`[publint]`;\nasync function publint(options) {\n\tif (!options.publint) return;\n\tif (!options.pkg) {\n\t\toptions.logger.warn(options.nameLabel, \"publint is enabled but package.json is not found\");\n\t\treturn;\n\t}\n\tconst t = performance.now();\n\tdebug$1(\"Running publint\");\n\tconst { publint } = await importWithError(\"publint\", options.publint.resolvePaths);\n\tconst { formatMessage } = await importWithError(\"publint/utils\", options.publint.resolvePaths);\n\tconst { messages } = await publint({\n\t\t...options.publint,\n\t\tpkgDir: path.dirname(options.pkg.packageJsonPath)\n\t});\n\tdebug$1(\"Found %d issues\", messages.length);\n\tif (!messages.length) {\n\t\toptions.logger.success(options.nameLabel, label, \"No issues found\", dim`(${Math.round(performance.now() - t)}ms)`);\n\t\treturn;\n\t}\n\tfor (const message of messages) {\n\t\tconst formattedMessage = formatMessage(message, options.pkg);\n\t\tconst logType = {\n\t\t\terror: \"error\",\n\t\t\twarning: \"warn\",\n\t\t\tsuggestion: \"info\"\n\t\t}[message.type];\n\t\toptions.logger[logType](options.nameLabel, label, formattedMessage);\n\t}\n}\n\n//#endregion\n//#region src/features/pkg/index.ts\nfunction initBundleByPkg(configs) {\n\tconst map = {};\n\tfor (const config of configs) {\n\t\tconst pkgJson = config.pkg?.packageJsonPath;\n\t\tif (!pkgJson) continue;\n\t\tif (!map[pkgJson]) {\n\t\t\tconst { promise, resolve } = promiseWithResolvers();\n\t\t\tmap[pkgJson] = {\n\t\t\t\tpromise,\n\t\t\t\tresolve,\n\t\t\t\tcount: 0,\n\t\t\t\tformats: /* @__PURE__ */ new Set(),\n\t\t\t\tbundles: []\n\t\t\t};\n\t\t}\n\t\tmap[pkgJson].count++;\n\t\tmap[pkgJson].formats.add(config.format);\n\t}\n\treturn map;\n}\nasync function bundleDone(bundleByPkg, bundle) {\n\tconst pkg = bundle.config.pkg;\n\tif (!pkg) return;\n\tconst ctx = bundleByPkg[pkg.packageJsonPath];\n\tctx.bundles.push(bundle);\n\tif (ctx.bundles.length < ctx.count) return ctx.promise;\n\tconst configs = ctx.bundles.map(({ config }) => config);\n\tconst exportsConfigs = dedupeConfigs(configs, \"exports\");\n\tif (exportsConfigs.length) {\n\t\tif (exportsConfigs.length > 1) throw new Error(`Conflicting exports options for package at ${pkg.packageJsonPath}. Please merge them:\\n${exportsConfigs.map((config) => `- ${formatWithOptions({ colors: true }, config.exports)}`).join(\"\\n\")}`);\n\t\tconst chunks = {};\n\t\tfor (const bundle of ctx.bundles) {\n\t\t\tif (!bundle.config.exports) continue;\n\t\t\tchunks[bundle.config.format] ||= [];\n\t\t\tchunks[bundle.config.format].push(...bundle.chunks);\n\t\t}\n\t\tawait writeExports(exportsConfigs[0], chunks);\n\t}\n\tconst publintConfigs = dedupeConfigs(configs, \"publint\");\n\tconst attwConfigs = dedupeConfigs(configs, \"attw\");\n\tif (publintConfigs.length > 1 || attwConfigs.length > 1) publintConfigs[1].logger.warn(`Multiple publint or attw configurations found for package at ${pkg.packageJsonPath}. Consider merging them for better consistency and performance.`);\n\tawait Promise.all([...publintConfigs.map((config) => publint(config)), ...attwConfigs.map((config) => attw(config))]);\n\tctx.resolve();\n}\nfunction dedupeConfigs(configs, key) {\n\tconst filtered = configs.filter((config) => config[key]);\n\tif (!filtered.length) return [];\n\tconst seen = /* @__PURE__ */ new Set();\n\tconst results = filtered.filter((config) => {\n\t\tif (!Object.keys(config[key]).length) return false;\n\t\tif (seen.has(config[key])) return false;\n\t\tseen.add(config[key]);\n\t\treturn true;\n\t});\n\tif (results.length === 0) return [filtered[0]];\n\treturn results;\n}\n\n//#endregion\n//#region src/utils/lightningcss.ts\n/**\n* Converts esbuild target [^1] (which is also used by Rolldown [^2]) to Lightning CSS targets [^3].\n*\n* [^1]: https://esbuild.github.io/api/#target\n* [^2]: https://github.com/rolldown/rolldown/blob/v1.0.0-beta.8/packages/rolldown/src/binding.d.ts#L1429-L1431\n* [^3]: https://lightningcss.dev/transpilation.html\n*/\nfunction esbuildTargetToLightningCSS(target) {\n\tlet targets;\n\tconst matches = [...target.join(\" \").toLowerCase().matchAll(TARGET_REGEX)];\n\tfor (const match of matches) {\n\t\tconst browser = ESBUILD_LIGHTNINGCSS_MAPPING[match[1]];\n\t\tif (!browser) continue;\n\t\tconst version = match[2];\n\t\tconst versionInt = parseVersion(version);\n\t\tif (versionInt == null) continue;\n\t\ttargets = targets || {};\n\t\ttargets[browser] = versionInt;\n\t}\n\treturn targets;\n}\nconst TARGET_REGEX = /([a-z]+)(\\d+(?:\\.\\d+)*)/g;\nconst ESBUILD_LIGHTNINGCSS_MAPPING = {\n\tchrome: \"chrome\",\n\tedge: \"edge\",\n\tfirefox: \"firefox\",\n\tie: \"ie\",\n\tios: \"ios_saf\",\n\topera: \"opera\",\n\tsafari: \"safari\"\n};\nfunction parseVersion(version) {\n\tconst [major, minor = 0, patch = 0] = version.split(\"-\")[0].split(\".\").map((v) => Number.parseInt(v, 10));\n\tif (Number.isNaN(major) || Number.isNaN(minor) || Number.isNaN(patch)) return null;\n\treturn major << 16 | minor << 8 | patch;\n}\n\n//#endregion\n//#region src/features/css/lightningcss.ts\nasync function LightningCSSPlugin(options) {\n\tconst LightningCSS = await import(\"unplugin-lightningcss/rolldown\").catch(() => void 0);\n\tif (!LightningCSS) return;\n\tconst targets = options.target && esbuildTargetToLightningCSS(options.target);\n\tif (!targets) return;\n\treturn LightningCSS.default({ options: { targets } });\n}\n\n//#endregion\n//#region src/features/css/splitting.ts\n/**\n* CSS Code Split Plugin\n*\n* When css.splitting is false, this plugin merges all CSS files into a single file.\n* When css.splitting is true (default), CSS code splitting is preserved.\n* Based on Vite's implementation.\n*/\nfunction CssCodeSplitPlugin(config) {\n\tconst { splitting, fileName } = config.css;\n\tif (splitting) return;\n\treturn {\n\t\tname: \"tsdown:css:splitting\",\n\t\tgenerateBundle(_outputOptions, bundle) {\n\t\t\tconst chunks = Object.values(bundle);\n\t\t\tconst cssAssets = /* @__PURE__ */ new Map();\n\t\t\tfor (const asset of chunks) if (asset.type === \"asset\" && typeof asset.source === \"string\" && RE_CSS.test(fileName)) cssAssets.set(asset.fileName, asset.source);\n\t\t\tif (!cssAssets.size) return;\n\t\t\tconst chunkCSSMap = /* @__PURE__ */ new Map();\n\t\t\tfor (const chunk of chunks) {\n\t\t\t\tif (chunk.type !== \"chunk\") continue;\n\t\t\t\tfor (const moduleId of chunk.moduleIds) if (RE_CSS.test(moduleId)) {\n\t\t\t\t\tif (!chunkCSSMap.has(chunk.fileName)) chunkCSSMap.set(chunk.fileName, []);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (const cssFileName of cssAssets.keys()) {\n\t\t\t\tconst cssBaseName = normalizeCssFileName(cssFileName);\n\t\t\t\tfor (const chunkFileName of chunkCSSMap.keys()) if (normalizeChunkFileName(chunkFileName) === cssBaseName || chunkFileName.startsWith(`${cssBaseName}-`)) {\n\t\t\t\t\tchunkCSSMap.get(chunkFileName).push(cssFileName);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlet extractedCss = \"\";\n\t\t\tconst collected = /* @__PURE__ */ new Set();\n\t\t\tconst dynamicImports = /* @__PURE__ */ new Set();\n\t\t\tfunction collect(chunk) {\n\t\t\t\tif (!chunk || chunk.type !== \"chunk\" || collected.has(chunk)) return;\n\t\t\t\tcollected.add(chunk);\n\t\t\t\tchunk.imports.forEach((importName) => {\n\t\t\t\t\tcollect(bundle[importName]);\n\t\t\t\t});\n\t\t\t\tchunk.dynamicImports.forEach((importName) => {\n\t\t\t\t\tdynamicImports.add(importName);\n\t\t\t\t});\n\t\t\t\tconst files = chunkCSSMap.get(chunk.fileName);\n\t\t\t\tif (files && files.length > 0) for (const filename of files) extractedCss += cssAssets.get(filename) ?? \"\";\n\t\t\t}\n\t\t\tfor (const chunk of chunks) if (chunk.type === \"chunk\" && chunk.isEntry) collect(chunk);\n\t\t\tfor (const chunkName of dynamicImports) collect(bundle[chunkName]);\n\t\t\tif (extractedCss) {\n\t\t\t\tfor (const fileName of cssAssets.keys()) delete bundle[fileName];\n\t\t\t\tthis.emitFile({\n\t\t\t\t\ttype: \"asset\",\n\t\t\t\t\tsource: extractedCss,\n\t\t\t\t\tfileName,\n\t\t\t\t\toriginalFileName: defaultCssBundleName\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t};\n}\nconst RE_CSS_HASH = /-[\\w-]+\\.css$/;\nconst RE_CHUNK_HASH = /-[\\w-]+\\.(m?js|cjs)$/;\nconst RE_CHUNK_EXT = /\\.(m?js|cjs)$/;\n/**\n* Normalize CSS file name by removing hash pattern and extension.\n* e.g., \"async-DcjEOEdU.css\" -> \"async\"\n*/\nfunction normalizeCssFileName(cssFileName) {\n\treturn cssFileName.replace(RE_CSS_HASH, \"\").replace(RE_CSS, \"\");\n}\n/**\n* Normalize chunk file name by removing hash pattern and extension.\n* e.g., \"async-CvIfFAic.mjs\" -> \"async\"\n*/\nfunction normalizeChunkFileName(chunkFileName) {\n\treturn chunkFileName.replace(RE_CHUNK_HASH, \"\").replace(RE_CHUNK_EXT, \"\");\n}\n\n//#endregion\n//#region src/features/output.ts\nfunction resolveJsOutputExtension(packageType, format, fixedExtension) {\n\tswitch (format) {\n\t\tcase \"es\": return !fixedExtension && packageType === \"module\" ? \"js\" : \"mjs\";\n\t\tcase \"cjs\": return fixedExtension || packageType === \"module\" ? \"cjs\" : \"js\";\n\t\tdefault: return \"js\";\n\t}\n}\nfunction resolveChunkFilename({ outExtensions, fixedExtension, pkg, hash }, inputOptions, format) {\n\tconst packageType = getPackageType(pkg);\n\tlet jsExtension;\n\tlet dtsExtension;\n\tif (outExtensions) {\n\t\tconst { js, dts } = outExtensions({\n\t\t\toptions: inputOptions,\n\t\t\tformat,\n\t\t\tpkgType: packageType\n\t\t}) || {};\n\t\tjsExtension = js;\n\t\tdtsExtension = dts;\n\t}\n\tjsExtension ??= `.${resolveJsOutputExtension(packageType, format, fixedExtension)}`;\n\tconst suffix = format === \"iife\" || format === \"umd\" ? `.${format}` : \"\";\n\treturn [createChunkFilename(`[name]${suffix}`, jsExtension, dtsExtension), createChunkFilename(`[name]${suffix}${hash ? \"-[hash]\" : \"\"}`, jsExtension, dtsExtension)];\n}\nfunction createChunkFilename(basename, jsExtension, dtsExtension) {\n\tif (dtsExtension === void 0) return `${basename}${jsExtension}`;\n\treturn (chunk) => {\n\t\treturn `${basename}${chunk.name.endsWith(\".d\") ? dtsExtension : jsExtension}`;\n\t};\n}\nfunction resolveChunkAddon(chunkAddon, format) {\n\tif (!chunkAddon) return;\n\treturn (chunk) => {\n\t\tif (typeof chunkAddon === \"function\") chunkAddon = chunkAddon({\n\t\t\tformat,\n\t\t\tfileName: chunk.fileName\n\t\t});\n\t\tif (typeof chunkAddon === \"string\") return chunkAddon;\n\t\tswitch (true) {\n\t\t\tcase RE_JS.test(chunk.fileName): return chunkAddon?.js || \"\";\n\t\t\tcase RE_CSS.test(chunk.fileName): return chunkAddon?.css || \"\";\n\t\t\tcase RE_DTS.test(chunk.fileName): return chunkAddon?.dts || \"\";\n\t\t\tdefault: return \"\";\n\t\t}\n\t};\n}\n\n//#endregion\n//#region src/features/rolldown.ts\nconst debug = createDebug(\"tsdown:rolldown\");\nasync function getBuildOptions(config, format, configFiles, bundle, cjsDts = false, isDualFormat) {\n\tconst inputOptions = await resolveInputOptions(config, format, configFiles, bundle, cjsDts, isDualFormat);\n\tconst outputOptions = await resolveOutputOptions(inputOptions, config, format, cjsDts);\n\tconst rolldownConfig = {\n\t\t...inputOptions,\n\t\toutput: outputOptions,\n\t\twrite: config.write\n\t};\n\tdebug(\"rolldown config with format \\\"%s\\\" %O\", cjsDts ? \"cjs dts\" : format, rolldownConfig);\n\treturn rolldownConfig;\n}\nasync function resolveInputOptions(config, format, configFiles, bundle, cjsDts, isDualFormat) {\n\tconst { alias, checks: { legacyCjs, ...checks } = {}, cjsDefault, cwd, devtools, dts, entry, env, external, globImport, loader, logger, nameLabel, nodeProtocol, platform, plugins: userPlugins, report, shims, target, treeshake, tsconfig, unused, watch } = config;\n\tconst plugins = [];\n\tif (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));\n\tif (config.pkg || config.skipNodeModulesBundle) plugins.push(DepPlugin(config));\n\tif (dts) {\n\t\tconst { dts: dtsPlugin } = await import(\"rolldown-plugin-dts\");\n\t\tconst options = {\n\t\t\ttsconfig,\n\t\t\t...dts\n\t\t};\n\t\tif (format === \"es\") plugins.push(dtsPlugin(options));\n\t\telse if (cjsDts) plugins.push(dtsPlugin({\n\t\t\t...options,\n\t\t\temitDtsOnly: true,\n\t\t\tcjsDefault\n\t\t}));\n\t}\n\tif (!cjsDts) {\n\t\tif (unused) {\n\t\t\tconst { Unused } = await importWithError(\"unplugin-unused\");\n\t\t\tplugins.push(Unused.rolldown({\n\t\t\t\troot: cwd,\n\t\t\t\t...unused\n\t\t\t}));\n\t\t}\n\t\tif (target) plugins.push(await LightningCSSPlugin({ target }));\n\t\tconst cssPlugin = CssCodeSplitPlugin(config);\n\t\tif (cssPlugin) plugins.push(cssPlugin);\n\t\tplugins.push(ShebangPlugin(logger, cwd, nameLabel, isDualFormat));\n\t\tif (globImport) plugins.push(importGlobPlugin({ root: cwd }));\n\t}\n\tif (report && LogLevels[logger.level] >= 3) plugins.push(ReportPlugin(report, logger, cwd, cjsDts, nameLabel, isDualFormat));\n\tif (watch) plugins.push(WatchPlugin(configFiles, bundle));\n\tif (!cjsDts) plugins.push(userPlugins);\n\tconst define = {\n\t\t...config.define,\n\t\t...Object.keys(env).reduce((acc, key) => {\n\t\t\tconst value = JSON.stringify(env[key]);\n\t\t\tacc[`process.env.${key}`] = value;\n\t\t\tacc[`import.meta.env.${key}`] = value;\n\t\t\treturn acc;\n\t\t}, Object.create(null))\n\t};\n\tconst inject = shims && !cjsDts ? getShimsInject(format, platform) : void 0;\n\treturn await mergeUserOptions({\n\t\tinput: entry,\n\t\tcwd,\n\t\texternal,\n\t\tresolve: { alias },\n\t\ttsconfig: tsconfig || void 0,\n\t\ttreeshake,\n\t\tplatform: cjsDts || format === \"cjs\" ? \"node\" : platform,\n\t\ttransform: {\n\t\t\ttarget,\n\t\t\tdefine,\n\t\t\tinject\n\t\t},\n\t\tplugins,\n\t\tmoduleTypes: loader,\n\t\tlogLevel: logger.level === \"error\" ? \"silent\" : logger.level,\n\t\tonLog: cjsDefault ? (level, log, defaultHandler) => {\n\t\t\tif (log.code === \"MIXED_EXPORT\") return;\n\t\t\tdefaultHandler(level, log);\n\t\t} : void 0,\n\t\tdevtools: devtools || void 0,\n\t\tchecks\n\t}, config.inputOptions, [format, { cjsDts }]);\n}\nasync function resolveOutputOptions(inputOptions, config, format, cjsDts) {\n\tconst { banner, cjsDefault, entry, footer, minify, outDir, sourcemap, unbundle } = config;\n\tconst [entryFileNames, chunkFileNames] = resolveChunkFilename(config, inputOptions, format);\n\treturn await mergeUserOptions({\n\t\tformat: cjsDts ? \"es\" : format,\n\t\tname: config.globalName,\n\t\tsourcemap,\n\t\tdir: outDir,\n\t\texports: cjsDefault ? \"auto\" : \"named\",\n\t\tminify: !cjsDts && minify,\n\t\tentryFileNames,\n\t\tchunkFileNames,\n\t\tpreserveModules: unbundle,\n\t\tpreserveModulesRoot: unbundle ? lowestCommonAncestor(...Object.values(entry)) : void 0,\n\t\tpostBanner: resolveChunkAddon(banner, format),\n\t\tpostFooter: resolveChunkAddon(footer, format)\n\t}, config.outputOptions, [format, { cjsDts }]);\n}\nasync function getDebugRolldownDir() {\n\tif (!debug.enabled) return;\n\treturn await mkdtemp(path.join(tmpdir(), \"tsdown-config-\"));\n}\nasync function debugBuildOptions(dir, name, format, buildOptions) {\n\tconst outFile = path.join(dir, `rolldown.config.${format}.js`);\n\thandlePluginInspect(buildOptions.plugins);\n\tconst serialized = formatWithOptions({\n\t\tdepth: null,\n\t\tmaxArrayLength: null,\n\t\tmaxStringLength: null\n\t}, buildOptions);\n\tawait writeFile(outFile, `/*\nAuto-generated rolldown config for tsdown debug purposes\ntsdown v${version}, rolldown v${VERSION}\nGenerated on ${(/* @__PURE__ */ new Date()).toISOString()}\nPackage name: ${name || \"not specified\"}\n*/\n\nexport default ${serialized}\\n`);\n\tdebug(\"Wrote debug rolldown config for \\\"%s\\\" (%s) -> %s\", name || \"default name\", format, outFile);\n}\nfunction handlePluginInspect(plugins) {\n\tif (Array.isArray(plugins)) for (const plugin of plugins) handlePluginInspect(plugin);\n\telse if (typeof plugins === \"object\" && plugins !== null && \"name\" in plugins) plugins[inspect.custom] = function(depth, options, inspect) {\n\t\tif (\"_options\" in plugins) return inspect({\n\t\t\tname: plugins.name,\n\t\t\toptions: plugins._options\n\t\t}, options);\n\t\telse return `\"rolldown plugin: ${plugins.name}\"`;\n\t};\n}\n\n//#endregion\n//#region src/features/shortcuts.ts\nfunction shortcuts(restart) {\n\tlet actionRunning = false;\n\tasync function onInput(input) {\n\t\tif (actionRunning) return;\n\t\tinput = input.trim().toLowerCase();\n\t\tconst SHORTCUTS = [\n\t\t\t{\n\t\t\t\tkey: \"r\",\n\t\t\t\tdescription: \"reload config and rebuild\",\n\t\t\t\taction() {\n\t\t\t\t\trestart();\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: \"c\",\n\t\t\t\tdescription: \"clear console\",\n\t\t\t\taction() {\n\t\t\t\t\tconsole.clear();\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: \"q\",\n\t\t\t\tdescription: \"quit\",\n\t\t\t\taction() {\n\t\t\t\t\tprocess.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t];\n\t\tif (input === \"h\") {\n\t\t\tconst loggedKeys = /* @__PURE__ */ new Set();\n\t\t\tglobalLogger.info(\" Shortcuts\");\n\t\t\tfor (const shortcut of SHORTCUTS) {\n\t\t\t\tif (loggedKeys.has(shortcut.key)) continue;\n\t\t\t\tloggedKeys.add(shortcut.key);\n\t\t\t\tif (shortcut.action == null) continue;\n\t\t\t\tglobalLogger.info(dim` press ` + bold`${shortcut.key} + enter` + dim` to ${shortcut.description}`);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tconst shortcut = SHORTCUTS.find((shortcut) => shortcut.key === input);\n\t\tif (!shortcut) return;\n\t\tactionRunning = true;\n\t\tawait shortcut.action();\n\t\tactionRunning = false;\n\t}\n\tconst rl = readline.createInterface({ input: process.stdin });\n\trl.on(\"line\", onInput);\n\treturn () => rl.close();\n}\n\n//#endregion\n//#region src/build.ts\nconst asyncDispose = Symbol.asyncDispose || Symbol.for(\"Symbol.asyncDispose\");\n/**\n* Build with tsdown.\n*/\nasync function build$1(inlineConfig = {}) {\n\tglobalLogger.level = inlineConfig.logLevel || \"info\";\n\tconst { configs, files: configFiles } = await resolveConfig(inlineConfig);\n\treturn buildWithConfigs(configs, configFiles, () => build$1(inlineConfig));\n}\n/**\n* Build with `ResolvedConfigs`.\n*\n* **Internal API, not for public use**\n* @private\n*/\nasync function buildWithConfigs(configs, configFiles, _restart) {\n\tlet cleanPromise;\n\tconst clean = () => {\n\t\tif (cleanPromise) return cleanPromise;\n\t\treturn cleanPromise = cleanOutDir(configs);\n\t};\n\tconst disposeCbs = [];\n\tlet restarting = false;\n\tasync function restart() {\n\t\tif (restarting) return;\n\t\trestarting = true;\n\t\tawait Promise.all(disposeCbs.map((cb) => cb()));\n\t\tclearRequireCache();\n\t\t_restart();\n\t}\n\tconst configChunksByPkg = initBundleByPkg(configs);\n\tfunction done(bundle) {\n\t\treturn bundleDone(configChunksByPkg, bundle);\n\t}\n\tglobalLogger.info(\"Build start\");\n\tconst bundles = await Promise.all(configs.map((options) => {\n\t\treturn buildSingle(options, configFiles, options.pkg ? configChunksByPkg[options.pkg.packageJsonPath].formats.size > 1 : true, clean, restart, done);\n\t}));\n\tconst firstDevtoolsConfig = configs.find((config) => config.devtools && config.devtools.ui);\n\tif (configs.some((config) => config.watch)) {\n\t\tdisposeCbs.push(shortcuts(restart));\n\t\tfor (const bundle of bundles) disposeCbs.push(bundle[asyncDispose]);\n\t} else if (firstDevtoolsConfig) startDevtoolsUI(firstDevtoolsConfig.devtools);\n\treturn bundles;\n}\n/**\n* Build a single configuration, without watch and shortcuts features.\n* @param config Resolved options\n*/\nasync function buildSingle(config, configFiles, isDualFormat, clean, restart, done) {\n\tconst { format, dts, watch: watch$1, logger, outDir } = config;\n\tconst { hooks, context } = await createHooks(config);\n\twarnLegacyCJS(config);\n\tconst startTime = performance.now();\n\tawait hooks.callHook(\"build:prepare\", context);\n\tawait clean();\n\tconst debugRolldownConfigDir = await getDebugRolldownDir();\n\tconst chunks = [];\n\tlet watcher;\n\tlet ab;\n\tlet updated = false;\n\tconst bundle = {\n\t\tchunks,\n\t\tconfig,\n\t\tasync [asyncDispose]() {\n\t\t\tab?.abort();\n\t\t\tawait watcher?.close();\n\t\t}\n\t};\n\tconst configs = await initBuildOptions();\n\tif (watch$1) {\n\t\twatcher = watch(configs);\n\t\thandleWatcher(watcher);\n\t} else {\n\t\tconst outputs = await build(configs);\n\t\tfor (const { output } of outputs) chunks.push(...addOutDirToChunks(output, outDir));\n\t}\n\tif (!watch$1) {\n\t\tlogger.success(config.nameLabel, `Build complete in ${green(`${Math.round(performance.now() - startTime)}ms`)}`);\n\t\tawait postBuild();\n\t}\n\treturn bundle;\n\tfunction handleWatcher(watcher) {\n\t\tconst changedFile = [];\n\t\tlet hasError = false;\n\t\twatcher.on(\"change\", (id, event) => {\n\t\t\tif (event.event === \"update\") changedFile.push(id);\n\t\t\tif (configFiles.includes(id) || endsWithConfig.test(id)) {\n\t\t\t\tglobalLogger.info(`Reload config: ${id}, restarting...`);\n\t\t\t\trestart();\n\t\t\t}\n\t\t});\n\t\twatcher.on(\"event\", async (event) => {\n\t\t\tswitch (event.code) {\n\t\t\t\tcase \"START\":\n\t\t\t\t\tif (config.clean.length) await cleanChunks(config.outDir, chunks);\n\t\t\t\t\tchunks.length = 0;\n\t\t\t\t\thasError = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"END\":\n\t\t\t\t\tif (!hasError) await postBuild();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"BUNDLE_START\":\n\t\t\t\t\tif (changedFile.length) {\n\t\t\t\t\t\tlogger.clearScreen(\"info\");\n\t\t\t\t\t\tlogger.info(`Found ${bold(changedFile.join(\", \"))} changed, rebuilding...`);\n\t\t\t\t\t}\n\t\t\t\t\tchangedFile.length = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"BUNDLE_END\":\n\t\t\t\t\tawait event.result.close();\n\t\t\t\t\tlogger.success(config.nameLabel, `Rebuilt in ${event.duration}ms.`);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ERROR\":\n\t\t\t\t\tawait event.result.close();\n\t\t\t\t\tlogger.error(event.error);\n\t\t\t\t\thasError = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t});\n\t}\n\tasync function initBuildOptions() {\n\t\tconst buildOptions = await getBuildOptions(config, format, configFiles, bundle, false, isDualFormat);\n\t\tawait hooks.callHook(\"build:before\", {\n\t\t\t...context,\n\t\t\tbuildOptions\n\t\t});\n\t\tif (debugRolldownConfigDir) await debugBuildOptions(debugRolldownConfigDir, config.name, format, buildOptions);\n\t\tconst configs = [buildOptions];\n\t\tif (format === \"cjs\" && dts) configs.push(await getBuildOptions(config, format, configFiles, bundle, true, isDualFormat));\n\t\treturn configs;\n\t}\n\tasync function postBuild() {\n\t\tawait copy(config);\n\t\tif (!updated) await done(bundle);\n\t\tawait hooks.callHook(\"build:done\", {\n\t\t\t...context,\n\t\t\tchunks\n\t\t});\n\t\tupdated = true;\n\t\tab?.abort();\n\t\tab = executeOnSuccess(config);\n\t}\n}\n\n//#endregion\nexport { buildWithConfigs as n, build$1 as t };","import { f as resolveComma, h as toArray } from \"./logger-DwCm1t8D.mjs\";\nimport { createDebug, enable, namespaces } from \"obug\";\n\n//#region src/features/debug.ts\nconst debugLog = createDebug(\"tsdown:debug\");\nfunction enableDebug(debug) {\n\tif (!debug) return;\n\tlet namespace;\n\tif (debug === true) namespace = \"tsdown:*\";\n\telse namespace = resolveComma(toArray(debug)).map((v) => `tsdown:${v}`).join(\",\");\n\tconst ns = namespaces();\n\tif (ns) namespace += `,${ns}`;\n\tenable(namespace);\n\tdebugLog(\"Debugging enabled\", namespace);\n}\n\n//#endregion\nexport { enableDebug as t };","import type { UserConfig } from 'tsdown'\nimport { mergeConfig } from 'tsdown'\n\nexport const baseConfig = (overrides: UserConfig = {}): UserConfig => {\n return mergeConfig({\n exports: true,\n dts: true,\n sourcemap: true,\n }, overrides)\n}\n\nexport const vue = (overrides: UserConfig = {}): UserConfig => {\n return baseConfig({\n platform: 'neutral',\n fromVite: true,\n dts: {\n vue: true,\n },\n ...overrides,\n })\n}\n\nexport const cli = (overrides: UserConfig = {}): UserConfig => {\n return baseConfig({\n entry: 'src/cli.ts',\n platform: 'node',\n ...overrides,\n })\n}\n\nexport const lib = (over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