appos 0.3.6-0 → 0.3.7-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/bin/main.mjs +3 -3
- package/dist/bin/youch-handler-D7REmh8Z.mjs +2 -0
- package/dist/exports/tests/api.d.mts +1 -1
- package/dist/exports/tests/api.mjs +14 -14
- package/dist/exports/tests/{auth-schema-DUCJw-_2.mjs → auth-schema-B_qHPoa4.mjs} +1 -1
- package/dist/exports/tests/{conditions-B0ffVJ5E.mjs → conditions-BeWxRN_Z.mjs} +1 -1
- package/dist/exports/tests/{extract-blob-metadata-Dv343Vcn.mjs → extract-blob-metadata-6xQrarjB.mjs} +2 -2
- package/dist/exports/tests/{generate-image-variant-cQc8q0kh.mjs → generate-image-variant-KQITLmCx.mjs} +1 -1
- package/dist/exports/tests/{generate-preview-HaTMd2hS.mjs → generate-preview-YnujQo5I.mjs} +1 -1
- package/dist/exports/tests/mock-BvoS23fi.mjs +1 -0
- package/dist/exports/tests/mock.mjs +1 -1
- package/dist/exports/tests/{purge-attachment-D4uOzHRi.mjs → purge-attachment-DTSmCl-z.mjs} +1 -1
- package/dist/exports/tests/{purge-audit-logs-DiPcc09d.mjs → purge-audit-logs-D0_UUhN2.mjs} +1 -1
- package/dist/exports/tests/{purge-unattached-blobs-CqW6tlIC.mjs → purge-unattached-blobs-IENmSB8K.mjs} +1 -1
- package/dist/exports/tests/react.mjs +1 -1
- package/dist/exports/tests/setup.mjs +2 -2
- package/dist/exports/tests/{track-db-changes-Bd4W-P1q.mjs → track-db-changes-Td9Q3DLd.mjs} +1 -1
- package/dist/exports/tests/youch-handler-efUxKCCs.mjs +1 -0
- package/dist/exports/vite/index.mjs +4 -4
- package/dist/exports/vite/{lib-DuBRr9dH.mjs → lib-B0s0q6aX.mjs} +73 -73
- package/dist/exports/vite/lib-BkrbWMaV.mjs +1 -0
- package/dist/exports/vitest/config.mjs +1 -77
- package/dist/exports/vitest/index.mjs +1 -348
- package/package.json +1 -7
- package/dist/bin/youch-handler-DrYdbUhe.mjs +0 -2
- package/dist/exports/devtools/BaseTanStackRouterDevtoolsPanel-BBz1qLry-DUwdvyLv.js +0 -2090
- package/dist/exports/devtools/EIDV623S-B7f6114d.js +0 -2497
- package/dist/exports/devtools/FloatingTanStackRouterDevtools-DymJEvfG-BHuQHiRR.js +0 -237
- package/dist/exports/devtools/MIMHJGAX-Cb3wf11F.js +0 -10903
- package/dist/exports/devtools/Q7LWSL4U-BoEO3rNq.js +0 -37
- package/dist/exports/devtools/VLTTJS3N-CIyRc84e.js +0 -44
- package/dist/exports/devtools/index.d.ts +0 -3
- package/dist/exports/devtools/index.js +0 -1725
- package/dist/exports/devtools/utils-YRTCpRgb.js +0 -1670
- package/dist/exports/tests/magic-string.es-D6VRmdiF.mjs +0 -14
- package/dist/exports/tests/mock-BvkO5nlm.mjs +0 -1
- package/dist/exports/tests/vi.2VT5v0um-Cme1b0Dl.mjs +0 -348
- package/dist/exports/tests/youch-handler-Ch5yf6im.mjs +0 -1
- package/dist/exports/vite/api-DGRU_RdM.mjs +0 -27
- package/dist/exports/vite/build-CxJAu2Bn.mjs +0 -1
- package/dist/exports/vite/build2-BMK0OFVt.mjs +0 -16
- package/dist/exports/vite/chunk-CxnlK1Zi.mjs +0 -1
- package/dist/exports/vite/chunk-PtveFMYu.mjs +0 -1
- package/dist/exports/vite/dist-Bxp8DqWh.mjs +0 -114
- package/dist/exports/vite/dist-CX51FKbX.mjs +0 -1
- package/dist/exports/vite/dist-DcyNr-KR.mjs +0 -1
- package/dist/exports/vite/dist-j3-Khlzt.mjs +0 -1
- package/dist/exports/vite/experimental-index-3KsfmUbz.mjs +0 -1
- package/dist/exports/vite/false-BNJbUKYT.mjs +0 -1
- package/dist/exports/vite/false-BvrPEDU6.mjs +0 -1
- package/dist/exports/vite/internal-C5cVwRiK.mjs +0 -1
- package/dist/exports/vite/jiti-BjSPrFvg.mjs +0 -9
- package/dist/exports/vite/lexer-DQCqS3nf-C6xCDOEQ.mjs +0 -3
- package/dist/exports/vite/lib-CMv7Sfwa.mjs +0 -1
- package/dist/exports/vite/lib-D9TnS-7w.mjs +0 -1
- package/dist/exports/vite/node-DI8AnY_i.mjs +0 -437
- package/dist/exports/vite/postcss-BtmDpj-c.mjs +0 -32
- package/dist/exports/vite/postcss-import-Bk_ZCd6c.mjs +0 -5
- package/dist/exports/vite/rolldown-build-CNW2eye_-CJNfyXdF.mjs +0 -13
- package/dist/exports/vitest/api-CPv6lnxG.mjs +0 -27
- package/dist/exports/vitest/build2-28i3OiJ3.mjs +0 -16
- package/dist/exports/vitest/chunk-_e2jlDPK.mjs +0 -1
- package/dist/exports/vitest/chunk-jwDkFoXW.mjs +0 -1
- package/dist/exports/vitest/dist-L-OpshPJ.mjs +0 -114
- package/dist/exports/vitest/jiti-eNGOyHIo.mjs +0 -9
- package/dist/exports/vitest/lexer-DQCqS3nf-TWLyIqlY.mjs +0 -3
- package/dist/exports/vitest/lib-C3G64csm.mjs +0 -1
- package/dist/exports/vitest/magic-string.es-CxM5Ubyl.mjs +0 -14
- package/dist/exports/vitest/module-runner-DsF4L04D.mjs +0 -1
- package/dist/exports/vitest/postcss-BxLp_Too.mjs +0 -32
- package/dist/exports/vitest/postcss-import-5pKj3f5q.mjs +0 -5
- /package/dist/exports/tests/{constants-DHjjg05J.mjs → constants-D_m07gCJ.mjs} +0 -0
- /package/dist/exports/tests/{dist-EfrRkq5c.mjs → dist-Cx2HEBOB.mjs} +0 -0
- /package/dist/exports/tests/{dist-D6vgKv3t.mjs → dist-DnACOvNW.mjs} +0 -0
- /package/dist/exports/tests/{pdf-BDsS3vjF.mjs → pdf-lZ-as2o7.mjs} +0 -0
- /package/dist/exports/tests/{table-CbU04119.mjs → table-CmPSf_pE.mjs} +0 -0
- /package/dist/exports/tests/{workflow-DwZxTqdH.mjs → workflow-BWRWyC83.mjs} +0 -0
- /package/dist/exports/tests/{zod-DcpxsMPz.mjs → zod-CkJO9qpV.mjs} +0 -0
|
@@ -1,77 +1 @@
|
|
|
1
|
-
import{a as e,i as t}from"./chunk-_e2jlDPK.mjs";import{a as n,i as r,n as i,o as a,r as o,s,t as c}from"./chunk-jwDkFoXW.mjs";import"./module-runner-DsF4L04D.mjs";import{builtinModules as l,createRequire as u}from"node:module";import d from"node:os";import f,{readFileSync as p}from"node:fs";import m,{posix as h,resolve as g}from"node:path";import{fileURLToPath as _,pathToFileURL as v}from"node:url";import y,{constants as b}from"node:fs/promises";import{Worker as x,isMainThread as S}from"node:worker_threads";import{format as C,formatWithOptions as w,inspect as T,promisify as E,styleText as ee}from"node:util";import D from"node:crypto";import O from"node:net";import k,{exec as A,execFile as j}from"node:child_process";import{isatty as M}from"node:tty";import N,{win32 as P}from"path";import{createRequire as te}from"module";import ne from"node:assert";import re from"node:process";import F from"node:v8";import{Buffer as ie}from"node:buffer";const ae=Object.create(null),oe=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?ae:globalThis),se=new Proxy(ae,{get(e,t){return oe()[t]??ae[t]},has(e,t){return t in oe()||t in ae},set(e,t,n){let r=oe(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=oe(!0);return delete n[t],!0},ownKeys(){let e=oe(!0);return Object.keys(e)}}),ce=typeof process<`u`&&process.env&&process.env.NODE_ENV||``,le=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:!0}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:!0}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:!0}],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`HUDSON`,`HUDSON_URL`],[`JENKINS`,`JENKINS_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:!1}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:!1}],[`VERCEL`,`VERCEL_ENV`,{ci:!1}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:!1}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:!1}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:!0}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:!0}]];function ue(){if(globalThis.process?.env)for(let e of le){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL===`/bin/jsh`&&globalThis.process?.versions?.webcontainer?{name:`stackblitz`,ci:!1}:{name:``,ci:!1}}const de=ue();de.name;function fe(e){return e?e!==`false`:!1}const pe=globalThis.process?.platform||``,me=fe(se.CI)||de.ci!==!1,he=fe(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);se.DEBUG,ce===`test`||se.TEST,se.MINIMAL;const ge=/^win/i.test(pe);/^linux/i.test(pe),/^darwin/i.test(pe),!fe(se.NO_COLOR)&&(fe(se.FORCE_COLOR)||(he||ge)&&se.TERM);const _e=(globalThis.process?.versions?.node||``).replace(/^v/,``)||null;Number(_e?.split(`.`)[0]);const ve=globalThis.process||Object.create(null),ye={versions:{}};new Proxy(ve,{get(e,t){if(t===`env`)return se;if(t in e)return e[t];if(t in ye)return ye[t]}});const be=globalThis.process?.release?.name===`node`,xe=!!globalThis.Bun||!!globalThis.process?.versions?.bun,Se=!!globalThis.Deno,Ce=!!globalThis.fastly,we=!!globalThis.Netlify,Te=!!globalThis.EdgeRuntime,Ee=globalThis.navigator?.userAgent===`Cloudflare-Workers`,De=[[we,`netlify`],[Te,`edge-light`],[Ee,`workerd`],[Ce,`fastly`],[Se,`deno`],[xe,`bun`],[be,`node`]];function Oe(){let e=De.find(e=>e[0]);if(e)return{name:e[1]}}Oe()?.name;const ke=[`**/*.{test,spec}.?(c|m)[jt]s?(x)`],Ae=[`**/node_modules/**`,`**/.git/**`],je={provider:`v8`,enabled:!1,clean:!0,cleanOnRerun:!0,reportsDirectory:`./coverage`,exclude:[],reportOnFailure:!1,reporter:[[`text`,{}],[`html`,{}],[`clover`,{}],[`json`,{}]],allowExternal:!1,excludeAfterRemap:!1,processingConcurrency:Math.min(20,d.availableParallelism?.()??d.cpus().length)},Me=Object.freeze({allowOnly:!me,isolate:!0,watch:!me&&process.stdin.isTTY,globals:!1,environment:`node`,clearMocks:!1,restoreMocks:!1,mockReset:!1,unstubGlobals:!1,unstubEnvs:!1,include:ke,exclude:Ae,teardownTimeout:1e4,forceRerunTriggers:[`**/package.json/**`,`**/{vitest,vite}.config.*/**`],update:!1,reporters:[],silent:!1,hideSkippedTests:!1,api:!1,ui:!1,uiBase:`/__vitest__/`,open:!me,css:{include:[]},coverage:je,fakeTimers:{loopLimit:1e4,shouldClearNativeTimers:!0},maxConcurrency:5,dangerouslyIgnoreUnhandledErrors:!1,typecheck:{checker:`tsc`,include:[`**/*.{test,spec}-d.?(c|m)[jt]s?(x)`],exclude:Ae},slowTestThreshold:300,disableConsoleIntercept:!1});var I=c(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c}));const{version:Ne}=JSON.parse(p(new URL(`../../package.json`,new URL(`../../../src/node/constants.ts`,import.meta.url))).toString()),Pe=[`browser`,`module`,`jsnext:main`,`jsnext`];Object.freeze(Pe),Object.freeze(Pe.filter(e=>e!==`browser`));const Fe=[`module`,`browser`,`node`,`development|production`];Object.freeze(Fe.filter(e=>e!==`node`)),Object.freeze(Fe.filter(e=>e!==`browser`));const Ie=Object.freeze([`node`,`module-sync`]),Le=[`.mjs`,`.js`,`.mts`,`.ts`,`.jsx`,`.tsx`,`.json`],Re=/\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,ze=`/@fs/`,Be=g(_(new URL(`../../../src/node/constants.ts`,import.meta.url)),`../../..`),Ve=g(Be,`dist/client/client.mjs`),He=g(Be,`dist/client/env.mjs`),Ue=m.dirname(Ve),We=`apng.bmp.png.jpe?g.jfif.pjpeg.pjp.gif.svg.ico.webp.avif.cur.jxl.mp4.webm.ogg.mp3.wav.flac.aac.opus.mov.m4a.vtt.woff2?.eot.ttf.otf.webmanifest.pdf.txt`.split(`.`);RegExp(`\\.(`+We.join(`|`)+`)(\\?.*)?$`,`i`);const Ge=/^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/;I();var Ke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),L=u(import.meta.url),qe=Ke(((e,t)=>{let n=L(`node:fs`),r=L(`node:child_process`),i=JSON.parse(n.readFileSync(L.resolve(`rolldown/package.json`),`utf-8`)).version,a=`/tmp/rolldown-${i}`,o=`${a}/node_modules/@rolldown/binding-wasm32-wasi/rolldown-binding.wasi.cjs`;if(!n.existsSync(o)){let e=`@rolldown/binding-wasm32-wasi@${i}`;n.rmSync(a,{recursive:!0,force:!0}),n.mkdirSync(a,{recursive:!0}),console.log(`[rolldown] Downloading ${e} on WebContainer...`),r.execFileSync(`pnpm`,[`i`,e],{cwd:a,stdio:`inherit`})}t.exports=L(o)})),Je=Ke(((e,t)=>{let{readFileSync:n}=L(`node:fs`),r=null,i=[],a=()=>{let e=!1;return process.platform===`linux`&&(e=s(),e===null&&(e=c()),e===null&&(e=l())),e},o=e=>e.includes(`libc.musl-`)||e.includes(`ld-musl-`),s=()=>{try{return n(`/usr/bin/ldd`,`utf-8`).includes(`musl`)}catch{return null}},c=()=>{let e=null;return typeof process.report?.getReport==`function`&&(process.report.excludeNetwork=!0,e=process.report.getReport()),e?e.header&&e.header.glibcVersionRuntime?!1:!!(Array.isArray(e.sharedObjects)&&e.sharedObjects.some(o)):null},l=()=>{try{return L(`child_process`).execSync(`ldd --version`,{encoding:`utf8`}).includes(`musl`)}catch{return!1}};function u(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return L(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(e){i.push(e)}else if(process.platform===`android`)if(process.arch===`arm64`){try{return L(`./rolldown-binding.android-arm64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-android-arm64`),t=L(`@rolldown/binding-android-arm64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm`){try{return L(`./rolldown-binding.android-arm-eabi.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-android-arm-eabi`),t=L(`@rolldown/binding-android-arm-eabi/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform===`win32`)if(process.arch===`x64`)if(process.config?.variables?.shlib_suffix===`dll.a`||process.config?.variables?.node_target_type===`shared_library`){try{return L(`./rolldown-binding.win32-x64-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-win32-x64-gnu`),t=L(`@rolldown/binding-win32-x64-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return L(`./rolldown-binding.win32-x64-msvc.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-win32-x64-msvc`),t=L(`@rolldown/binding-win32-x64-msvc/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`ia32`){try{return L(`./rolldown-binding.win32-ia32-msvc.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-win32-ia32-msvc`),t=L(`@rolldown/binding-win32-ia32-msvc/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`){try{return L(`./rolldown-binding.win32-arm64-msvc.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-win32-arm64-msvc`),t=L(`@rolldown/binding-win32-arm64-msvc/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform===`darwin`){try{return L(`./rolldown-binding.darwin-universal.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-darwin-universal`),t=L(`@rolldown/binding-darwin-universal/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}if(process.arch===`x64`){try{return L(`./rolldown-binding.darwin-x64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-darwin-x64`),t=L(`@rolldown/binding-darwin-x64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`){try{return L(`./rolldown-binding.darwin-arm64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-darwin-arm64`),t=L(`@rolldown/binding-darwin-arm64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform===`freebsd`)if(process.arch===`x64`){try{return L(`./rolldown-binding.freebsd-x64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-freebsd-x64`),t=L(`@rolldown/binding-freebsd-x64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`){try{return L(`./rolldown-binding.freebsd-arm64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-freebsd-arm64`),t=L(`@rolldown/binding-freebsd-arm64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform===`linux`)if(process.arch===`x64`)if(a()){try{return L(`./rolldown-binding.linux-x64-musl.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-x64-musl`),t=L(`@rolldown/binding-linux-x64-musl/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return L(`../rolldown-binding.linux-x64-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-x64-gnu`),t=L(`@rolldown/binding-linux-x64-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm64`)if(a()){try{return L(`./rolldown-binding.linux-arm64-musl.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-arm64-musl`),t=L(`@rolldown/binding-linux-arm64-musl/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return L(`./rolldown-binding.linux-arm64-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-arm64-gnu`),t=L(`@rolldown/binding-linux-arm64-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm`)if(a()){try{return L(`./rolldown-binding.linux-arm-musleabihf.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-arm-musleabihf`),t=L(`@rolldown/binding-linux-arm-musleabihf/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return L(`./rolldown-binding.linux-arm-gnueabihf.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-arm-gnueabihf`),t=L(`@rolldown/binding-linux-arm-gnueabihf/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`loong64`)if(a()){try{return L(`./rolldown-binding.linux-loong64-musl.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-loong64-musl`),t=L(`@rolldown/binding-linux-loong64-musl/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return L(`./rolldown-binding.linux-loong64-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-loong64-gnu`),t=L(`@rolldown/binding-linux-loong64-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`riscv64`)if(a()){try{return L(`./rolldown-binding.linux-riscv64-musl.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-riscv64-musl`),t=L(`@rolldown/binding-linux-riscv64-musl/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else{try{return L(`./rolldown-binding.linux-riscv64-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-riscv64-gnu`),t=L(`@rolldown/binding-linux-riscv64-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`ppc64`){try{return L(`./rolldown-binding.linux-ppc64-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-ppc64-gnu`),t=L(`@rolldown/binding-linux-ppc64-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`s390x`){try{return L(`./rolldown-binding.linux-s390x-gnu.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-linux-s390x-gnu`),t=L(`@rolldown/binding-linux-s390x-gnu/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform===`openharmony`)if(process.arch===`arm64`){try{return L(`./rolldown-binding.openharmony-arm64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-openharmony-arm64`),t=L(`@rolldown/binding-openharmony-arm64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`x64`){try{return L(`./rolldown-binding.openharmony-x64.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-openharmony-x64`),t=L(`@rolldown/binding-openharmony-x64/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else if(process.arch===`arm`){try{return L(`./rolldown-binding.openharmony-arm.node`)}catch(e){i.push(e)}try{let e=L(`@rolldown/binding-openharmony-arm`),t=L(`@rolldown/binding-openharmony-arm/package.json`).version;if(t!==`1.0.0-beta.53`&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!==`0`)throw Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${t}. You can reinstall dependencies to fix this issue.`);return e}catch(e){i.push(e)}}else i.push(Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else i.push(Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}if(r=u(),!r||process.env.NAPI_RS_FORCE_WASI){let e=null,t=null;try{e=L(`../rolldown-binding.wasi.cjs`),r=e}catch(e){process.env.NAPI_RS_FORCE_WASI&&(t=e)}if(!r)try{e=L(`@rolldown/binding-wasm32-wasi`),r=e}catch(e){process.env.NAPI_RS_FORCE_WASI&&(t.cause=e,i.push(e))}if(process.env.NAPI_RS_FORCE_WASI===`error`&&!e){let e=Error(`WASI binding not found and NAPI_RS_FORCE_WASI is set to error`);throw e.cause=t,e}}if(!r&&globalThis.process?.versions?.webcontainer)try{r=qe()}catch(e){i.push(e)}if(!r)throw i.length>0?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:i.reduce((e,t)=>(t.cause=e,t))}):Error(`Failed to load native binding`);t.exports=r,t.exports.minify=r.minify,t.exports.minifySync=r.minifySync,t.exports.Severity=r.Severity,t.exports.ParseResult=r.ParseResult,t.exports.ExportExportNameKind=r.ExportExportNameKind,t.exports.ExportImportNameKind=r.ExportImportNameKind,t.exports.ExportLocalNameKind=r.ExportLocalNameKind,t.exports.ImportNameKind=r.ImportNameKind,t.exports.parse=r.parse,t.exports.parseSync=r.parseSync,t.exports.rawTransferSupported=r.rawTransferSupported,t.exports.ResolverFactory=r.ResolverFactory,t.exports.EnforceExtension=r.EnforceExtension,t.exports.ModuleType=r.ModuleType,t.exports.sync=r.sync,t.exports.HelperMode=r.HelperMode,t.exports.isolatedDeclaration=r.isolatedDeclaration,t.exports.isolatedDeclarationSync=r.isolatedDeclarationSync,t.exports.moduleRunnerTransform=r.moduleRunnerTransform,t.exports.moduleRunnerTransformSync=r.moduleRunnerTransformSync,t.exports.transform=r.transform,t.exports.transformSync=r.transformSync,t.exports.BindingBundleEndEventData=r.BindingBundleEndEventData,t.exports.BindingBundleErrorEventData=r.BindingBundleErrorEventData,t.exports.BindingBundler=r.BindingBundler,t.exports.BindingCallableBuiltinPlugin=r.BindingCallableBuiltinPlugin,t.exports.BindingChunkingContext=r.BindingChunkingContext,t.exports.BindingDevEngine=r.BindingDevEngine,t.exports.BindingMagicString=r.BindingMagicString,t.exports.BindingModuleInfo=r.BindingModuleInfo,t.exports.BindingNormalizedOptions=r.BindingNormalizedOptions,t.exports.BindingOutputAsset=r.BindingOutputAsset,t.exports.BindingOutputChunk=r.BindingOutputChunk,t.exports.BindingPluginContext=r.BindingPluginContext,t.exports.BindingRenderedChunk=r.BindingRenderedChunk,t.exports.BindingRenderedChunkMeta=r.BindingRenderedChunkMeta,t.exports.BindingRenderedModule=r.BindingRenderedModule,t.exports.BindingTransformPluginContext=r.BindingTransformPluginContext,t.exports.BindingUrlResolver=r.BindingUrlResolver,t.exports.BindingWatcher=r.BindingWatcher,t.exports.BindingWatcherBundler=r.BindingWatcherBundler,t.exports.BindingWatcherChangeData=r.BindingWatcherChangeData,t.exports.BindingWatcherEvent=r.BindingWatcherEvent,t.exports.ParallelJsPluginRegistry=r.ParallelJsPluginRegistry,t.exports.ScheduledBuild=r.ScheduledBuild,t.exports.TraceSubscriberGuard=r.TraceSubscriberGuard,t.exports.BindingAttachDebugInfo=r.BindingAttachDebugInfo,t.exports.BindingBuiltinPluginName=r.BindingBuiltinPluginName,t.exports.BindingChunkModuleOrderBy=r.BindingChunkModuleOrderBy,t.exports.BindingLogLevel=r.BindingLogLevel,t.exports.BindingPluginOrder=r.BindingPluginOrder,t.exports.BindingPropertyReadSideEffects=r.BindingPropertyReadSideEffects,t.exports.BindingPropertyWriteSideEffects=r.BindingPropertyWriteSideEffects,t.exports.BindingRebuildStrategy=r.BindingRebuildStrategy,t.exports.createTokioRuntime=r.createTokioRuntime,t.exports.FilterTokenKind=r.FilterTokenKind,t.exports.initTraceSubscriber=r.initTraceSubscriber,t.exports.registerPlugins=r.registerPlugins,t.exports.shutdownAsyncRuntime=r.shutdownAsyncRuntime,t.exports.startAsyncRuntime=r.startAsyncRuntime}));function Ye(e){let t=``;for(;e--;)t+=` `;return t}function Xe(e){return e.replace(/^\t+/,e=>e.split(` `).join(` `))}function Ze(e,t){return e.start<=t&&t<e.end}function Qe(e,t={}){let{offsetLine:n=0,offsetColumn:r=0}=t,i=0,a=e.split(`
|
|
2
|
-
`).map((e,t)=>{let n=i+e.length+1,r={start:i,end:n,line:t};return i=n,r}),o=0;function s(t,i){if(typeof t==`string`&&(t=e.indexOf(t,i??0)),t===-1)return;let s=a[o],c=t>=s.end?1:-1;for(;s;){if(Ze(s,t))return{line:n+s.line,column:r+t-s.start,character:t};o+=c,s=a[o]}}return s}function $e(e,t){let n=e;for(let e of t)n=n[e];if(n.bigint)n.value=BigInt(n.bigint);else try{n.value=RegExp(n.regex.pattern,n.regex.flags)}catch{}}Je();const et=e=>typeof e==`string`?{message:e}:typeof e==`function`?et(e()):e,tt=Symbol(`__lazy_fields__`);var nt=class{constructor(){rt(this)}};function rt(e){let t=e.constructor[tt];if(t)for(let[n,r]of t.entries()){let t,i=!1;Object.defineProperty(e,n,{get(){return i||=(t=r.call(this),!0),t},enumerable:!0,configurable:!0})}}function it(e){let t=e.constructor[tt];return t?new Set(t.keys()):new Set}function R(e,t,n){e.constructor[tt]||(e.constructor[tt]=new Map);let r=n.get;return e.constructor[tt].set(t,r),{enumerable:!1,configurable:!0}}function at(e){return e.inner}function z(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ot=class extends nt{type=`asset`;constructor(e){super(),this.bindingAsset=e}get fileName(){return this.bindingAsset.getFileName()}get originalFileName(){return this.bindingAsset.getOriginalFileName()||null}get originalFileNames(){return this.bindingAsset.getOriginalFileNames()}get name(){return this.bindingAsset.getName()??void 0}get names(){return this.bindingAsset.getNames()}get source(){return at(this.bindingAsset.getSource())}__rolldown_external_memory_handle__(e){return e&&this.#e(),this.bindingAsset.dropInner()}#e(){for(let e of it(this))this[e]}};z([R],ot.prototype,`fileName`,null),z([R],ot.prototype,`originalFileName`,null),z([R],ot.prototype,`originalFileNames`,null),z([R],ot.prototype,`name`,null),z([R],ot.prototype,`names`,null),z([R],ot.prototype,`source`,null);function st(e){return{get code(){return e.code},get renderedLength(){return e.code?.length||0},get renderedExports(){return e.renderedExports}}}function ct(e){let t={};for(let n=0;n<e.values.length;n++){let r=e.keys[n],i=e.values[n];t[r]=st(i)}return t}var lt=class extends nt{type=`chunk`;constructor(e){super(),this.bindingChunk=e}get fileName(){return this.bindingChunk.getFileName()}get name(){return this.bindingChunk.getName()}get exports(){return this.bindingChunk.getExports()}get isEntry(){return this.bindingChunk.getIsEntry()}get facadeModuleId(){return this.bindingChunk.getFacadeModuleId()||null}get isDynamicEntry(){return this.bindingChunk.getIsDynamicEntry()}get sourcemapFileName(){return this.bindingChunk.getSourcemapFileName()||null}get preliminaryFileName(){return this.bindingChunk.getPreliminaryFileName()}get code(){return this.bindingChunk.getCode()}get modules(){return ct(this.bindingChunk.getModules())}get imports(){return this.bindingChunk.getImports()}get dynamicImports(){return this.bindingChunk.getDynamicImports()}get moduleIds(){return this.bindingChunk.getModuleIds()}get map(){let e=this.bindingChunk.getMap();return e?ut(e):null}__rolldown_external_memory_handle__(e){return e&&this.#e(),this.bindingChunk.dropInner()}#e(){for(let e of it(this))this[e]}};z([R],lt.prototype,`fileName`,null),z([R],lt.prototype,`name`,null),z([R],lt.prototype,`exports`,null),z([R],lt.prototype,`isEntry`,null),z([R],lt.prototype,`facadeModuleId`,null),z([R],lt.prototype,`isDynamicEntry`,null),z([R],lt.prototype,`sourcemapFileName`,null),z([R],lt.prototype,`preliminaryFileName`,null),z([R],lt.prototype,`code`,null),z([R],lt.prototype,`modules`,null),z([R],lt.prototype,`imports`,null),z([R],lt.prototype,`dynamicImports`,null),z([R],lt.prototype,`moduleIds`,null),z([R],lt.prototype,`map`,null);function ut(e){let t={...JSON.parse(e),toString(){return JSON.stringify(t)},toUrl(){return`data:application/json;charset=utf-8;base64,${Buffer.from(t.toString(),`utf-8`).toString(`base64`)}`}};return t}function dt(e){return new lt(e)}function ft(e){return new ot(e)}function pt(e){let{chunks:t,assets:n}=e;return{output:[...t.map(e=>dt(e)),...n.map(e=>ft(e))]}}Je();function mt(e){if(Object.hasOwn(e,`kind`))return e.message;let t=``;e.plugin&&(t+=`[plugin ${e.plugin}]`);let n=e.id??e.loc?.file;n&&(t+=` `+n,e.loc&&(t+=`:${e.loc.line}:${e.loc.column}`)),t&&(t+=`
|
|
3
|
-
`);let r=`${e.name??`Error`}: ${e.message}`;return t+=r,e.frame&&(t=ht(t,e.frame)),e.stack&&(t=ht(t,e.stack.replace(r,``))),e.cause&&(t=ht(t,`Caused by:`),t=ht(t,mt(e.cause).split(`
|
|
4
|
-
`).map(e=>` `+e).join(`
|
|
5
|
-
`))),t}function ht(e,t){return e.replace(/\n+$/,``)+`
|
|
6
|
-
`+t.replace(/^\n+/,``)}function gt(e,t){switch(e.kind){case`and`:{let n=e.args;for(let e=n.length-1;e>=0;e--)gt(n[e],t);t.push({kind:`And`,payload:n.length});break}case`or`:{let n=e.args;for(let e=n.length-1;e>=0;e--)gt(n[e],t);t.push({kind:`Or`,payload:n.length});break}case`not`:gt(e.expr,t),t.push({kind:`Not`});break;case`id`:t.push({kind:`Id`,payload:e.pattern}),e.params.cleanUrl&&t.push({kind:`CleanUrl`});break;case`moduleType`:t.push({kind:`ModuleType`,payload:e.pattern});break;case`code`:t.push({kind:`Code`,payload:e.pattern});break;case`include`:gt(e.expr,t),t.push({kind:`Include`});break;case`exclude`:gt(e.expr,t),t.push({kind:`Exclude`});break;case`query`:t.push({kind:`QueryKey`,payload:e.key}),t.push({kind:`QueryValue`,payload:e.pattern});break;default:throw Error(`Unknown filter expression: ${e}`)}}Je(),y.appendFile,y.copyFile,y.mkdir,y.mkdtemp,y.readdir,y.readFile,y.realpath,y.rename,y.rmdir,y.stat,y.lstat,y.unlink,y.writeFile,Je();var _t=class extends nt{inner;constructor(e,t){super(),this.onLog=t,this.inner=e}get shimMissingExports(){return this.inner.shimMissingExports}get input(){return this.inner.input}get cwd(){return this.inner.cwd??void 0}get platform(){return this.inner.platform}get context(){return this.inner.context}};z([R],_t.prototype,`shimMissingExports`,null),z([R],_t.prototype,`input`,null),z([R],_t.prototype,`cwd`,null),z([R],_t.prototype,`platform`,null),z([R],_t.prototype,`context`,null);var B=class extends nt{constructor(e,t,n){super(),this.inner=e,this.outputOptions=t,this.normalizedOutputPlugins=n}get dir(){return this.inner.dir??void 0}get entryFileNames(){return this.inner.entryFilenames||this.outputOptions.entryFileNames}get chunkFileNames(){return this.inner.chunkFilenames||this.outputOptions.chunkFileNames}get assetFileNames(){return this.inner.assetFilenames||this.outputOptions.assetFileNames}get format(){return this.inner.format}get exports(){return this.inner.exports}get sourcemap(){return this.inner.sourcemap}get sourcemapBaseUrl(){return this.inner.sourcemapBaseUrl??void 0}get cssEntryFileNames(){return this.inner.cssEntryFilenames||this.outputOptions.cssEntryFileNames}get cssChunkFileNames(){return this.inner.cssChunkFilenames||this.outputOptions.cssChunkFileNames}get shimMissingExports(){return this.inner.shimMissingExports}get name(){return this.inner.name??void 0}get file(){return this.inner.file??void 0}get inlineDynamicImports(){return this.inner.inlineDynamicImports}get externalLiveBindings(){return this.inner.externalLiveBindings}get banner(){return vt(this.outputOptions.banner)}get footer(){return vt(this.outputOptions.footer)}get intro(){return vt(this.outputOptions.intro)}get outro(){return vt(this.outputOptions.outro)}get esModule(){return this.inner.esModule}get extend(){return this.inner.extend}get globals(){return this.inner.globals||this.outputOptions.globals}get paths(){return this.outputOptions.paths}get hashCharacters(){return this.inner.hashCharacters}get sourcemapDebugIds(){return this.inner.sourcemapDebugIds}get sourcemapIgnoreList(){return this.outputOptions.sourcemapIgnoreList}get sourcemapPathTransform(){return this.outputOptions.sourcemapPathTransform}get minify(){let e=this.inner.minify;return typeof e==`object`&&e&&(delete e.codegen,delete e.module,delete e.sourcemap),e}get legalComments(){return this.inner.legalComments}get polyfillRequire(){return this.inner.polyfillRequire}get plugins(){return this.normalizedOutputPlugins}get preserveModules(){return this.inner.preserveModules}get preserveModulesRoot(){return this.inner.preserveModulesRoot}get virtualDirname(){return this.inner.virtualDirname}get topLevelVar(){return this.inner.topLevelVar??!1}get minifyInternalExports(){return this.inner.minifyInternalExports??!1}};z([R],B.prototype,`dir`,null),z([R],B.prototype,`entryFileNames`,null),z([R],B.prototype,`chunkFileNames`,null),z([R],B.prototype,`assetFileNames`,null),z([R],B.prototype,`format`,null),z([R],B.prototype,`exports`,null),z([R],B.prototype,`sourcemap`,null),z([R],B.prototype,`sourcemapBaseUrl`,null),z([R],B.prototype,`cssEntryFileNames`,null),z([R],B.prototype,`cssChunkFileNames`,null),z([R],B.prototype,`shimMissingExports`,null),z([R],B.prototype,`name`,null),z([R],B.prototype,`file`,null),z([R],B.prototype,`inlineDynamicImports`,null),z([R],B.prototype,`externalLiveBindings`,null),z([R],B.prototype,`banner`,null),z([R],B.prototype,`footer`,null),z([R],B.prototype,`intro`,null),z([R],B.prototype,`outro`,null),z([R],B.prototype,`esModule`,null),z([R],B.prototype,`extend`,null),z([R],B.prototype,`globals`,null),z([R],B.prototype,`paths`,null),z([R],B.prototype,`hashCharacters`,null),z([R],B.prototype,`sourcemapDebugIds`,null),z([R],B.prototype,`sourcemapIgnoreList`,null),z([R],B.prototype,`sourcemapPathTransform`,null),z([R],B.prototype,`minify`,null),z([R],B.prototype,`legalComments`,null),z([R],B.prototype,`polyfillRequire`,null),z([R],B.prototype,`plugins`,null),z([R],B.prototype,`preserveModules`,null),z([R],B.prototype,`preserveModulesRoot`,null),z([R],B.prototype,`virtualDirname`,null),z([R],B.prototype,`topLevelVar`,null),z([R],B.prototype,`minifyInternalExports`,null);function vt(e){return typeof e==`function`?e:()=>e||``}Je();const yt=[`options`,`buildStart`,`resolveId`,`load`,`transform`,`moduleParsed`,`buildEnd`,`onLog`,`resolveDynamicImport`,`closeBundle`,`closeWatcher`,`watchChange`],bt=[`augmentChunkHash`,`outputOptions`,`renderChunk`,`renderStart`,`renderError`,`writeBundle`,`generateBundle`],V=[...yt,...bt,`footer`,`banner`,`intro`,`outro`];V[0],V[0],V[1],V[1],V[2],V[2],V[3],V[3],V[4],V[4],V[5],V[5],V[6],V[6],V[7],V[7],V[8],V[8],V[9],V[9],V[10],V[10],V[11],V[11],V[12],V[12],V[13],V[13],V[14],V[14],V[15],V[15],V[16],V[16],V[17],V[17],V[18],V[18],V[19],V[19],V[20],V[20],V[21],V[21],V[22],V[22];function xt(e){return{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}}function St(e){return(void 0)?.get(e)}function Ct(e){return(void 0)?.get(e)}function wt(e,t){return(void 0)?.get(e)?.get(t)}function Tt(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function H(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??Tt(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??wt(e.reference,c.lang)??(l?Ct(c.lang):null)??r.message??St(c.lang);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function U(e){return{version:1,vendor:`valibot`,validate(t){return e[`~run`]({value:t},xt())}}}function Et(e,t){return Object.hasOwn(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function Dt(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}var Ot=class extends Error{constructor(e){super(e[0].message),this.name=`ValiError`,this.issues=e}};function kt(e){return{kind:`transformation`,type:`args`,reference:kt,async:!1,schema:e,"~run"(e,t){let n=e.value;return e.value=(...e)=>{let r=this.schema[`~run`]({value:e},t);if(r.issues)throw new Ot(r.issues);return n(...r.value)},e}}}function At(){return{kind:`transformation`,type:`await`,reference:At,async:!0,async"~run"(e){return e.value=await e.value,e}}}function W(e){return{kind:`metadata`,type:`description`,reference:W,description:e}}function jt(e){return{kind:`transformation`,type:`returns`,reference:jt,async:!1,schema:e,"~run"(e,t){let n=e.value;return e.value=(...e)=>{let r=this.schema[`~run`]({value:n(...e)},t);if(r.issues)throw new Ot(r.issues);return r.value},e}}}function Mt(e){return{kind:`transformation`,type:`returns`,reference:Mt,async:!1,schema:e,"~run"(e,t){let n=e.value;return e.value=async(...e)=>{let r=await this.schema[`~run`]({value:await n(...e)},t);if(r.issues)throw new Ot(r.issues);return r.value},e}}}function Nt(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function Pt(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function Ft(){return{kind:`schema`,type:`any`,reference:Ft,expects:`any`,async:!1,get"~standard"(){return U(this)},"~run"(e){return e.typed=!0,e}}}function G(e,t){return{kind:`schema`,type:`array`,reference:G,expects:`Array`,async:!1,item:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else H(this,`type`,e,t);return e}}}function K(e){return{kind:`schema`,type:`boolean`,reference:K,expects:`boolean`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:H(this,`type`,e,t),e}}}function It(e,t){return{kind:`schema`,type:`custom`,reference:It,expects:`unknown`,async:!1,check:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:H(this,`type`,e,t),e}}}function Lt(e){return{kind:`schema`,type:`function`,reference:Lt,expects:`Function`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return typeof e.value==`function`?e.typed=!0:H(this,`type`,e,t),e}}}function Rt(e,t){return{kind:`schema`,type:`instance`,reference:Rt,expects:e.name,async:!1,class:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){return e.value instanceof this.class?e.typed=!0:H(this,`type`,e,t),e}}}function q(e,t){return{kind:`schema`,type:`literal`,reference:q,expects:Tt(e),async:!1,literal:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){return e.value===this.literal?e.typed=!0:H(this,`type`,e,t),e}}}function zt(e,t){return{kind:`schema`,type:`loose_object`,reference:zt,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:Pt(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Nt(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(H(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly)for(let t in n)Et(n,t)&&!(t in this.entries)&&(e.value[t]=n[t])}else H(this,`type`,e,t);return e}}}function Bt(e){return{kind:`schema`,type:`never`,reference:Bt,expects:`never`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return H(this,`type`,e,t),e}}}function Vt(e,t){return{kind:`schema`,type:`nullish`,reference:Vt,expects:`(${e.expects} | null | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return U(this)},"~run"(e,t){return(e.value===null||e.value===void 0)&&(this.default!==void 0&&(e.value=Pt(this,e,t)),e.value===null||e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function Ht(e){return{kind:`schema`,type:`number`,reference:Ht,expects:`number`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:H(this,`type`,e,t),e}}}function Ut(e,t){return{kind:`schema`,type:`object`,reference:Ut,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`)for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:Pt(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Nt(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(H(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}else H(this,`type`,e,t);return e}}}function J(e,t){return{kind:`schema`,type:`optional`,reference:J,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return U(this)},"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=Pt(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function Wt(e){return{kind:`schema`,type:`promise`,reference:Wt,expects:`Promise`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return e.value instanceof Promise?e.typed=!0:H(this,`type`,e,t),e}}}function Gt(e,t,n){return{kind:`schema`,type:`record`,reference:Gt,expects:`Object`,async:!1,key:e,value:t,message:n,get"~standard"(){return U(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){for(let r in e.typed=!0,e.value={},n)if(Et(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}(!a.typed||!o.typed)&&(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else H(this,`type`,e,t);return e}}}function Y(e,t){return{kind:`schema`,type:`strict_object`,reference:Y,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:Pt(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Nt(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(H(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly){for(let r in n)if(!(r in this.entries)){H(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else H(this,`type`,e,t);return e}}}function X(e){return{kind:`schema`,type:`string`,reference:X,expects:`string`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return typeof e.value==`string`?e.typed=!0:H(this,`type`,e,t),e}}}function Kt(e,t){return{kind:`schema`,type:`tuple`,reference:Kt,expects:`Array`,async:!1,items:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<this.items.length;r++){let i=n[r],a=this.items[r][`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else H(this,`type`,e,t);return e}}}function qt(e){return{kind:`schema`,type:`undefined`,reference:qt,expects:`undefined`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:H(this,`type`,e,t),e}}}function Jt(e){let t;if(e)for(let n of e)t?t.push(...n.issues):t=n.issues;return t}function Z(e,t){return{kind:`schema`,type:`union`,reference:Z,expects:Dt(e.map(e=>e.expects),`|`),async:!1,options:e,message:t,get"~standard"(){return U(this)},"~run"(e,t){let n,r,i;for(let a of this.options){let o=a[`~run`]({value:e.value},t);if(o.typed)if(o.issues)r?r.push(o):r=[o];else{n=o;break}else i?i.push(o):i=[o]}if(n)return n;if(r){if(r.length===1)return r[0];H(this,`type`,e,t,{issues:Jt(r)}),e.typed=!0}else if(i?.length===1)return i[0];else H(this,`type`,e,t,{issues:Jt(i)});return e}}}function Yt(e,t){return{kind:`schema`,type:`union`,reference:Yt,expects:Dt(e.map(e=>e.expects),`|`),async:!0,options:e,message:t,get"~standard"(){return U(this)},async"~run"(e,t){let n,r,i;for(let a of this.options){let o=await a[`~run`]({value:e.value},t);if(o.typed)if(o.issues)r?r.push(o):r=[o];else{n=o;break}else i?i.push(o):i=[o]}if(n)return n;if(r){if(r.length===1)return r[0];H(this,`type`,e,t,{issues:Jt(r)}),e.typed=!0}else if(i?.length===1)return i[0];else H(this,`type`,e,t,{issues:Jt(i)});return e}}}function Xt(e){return{kind:`schema`,type:`void`,reference:Xt,expects:`void`,async:!1,message:e,get"~standard"(){return U(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:H(this,`type`,e,t),e}}}function Zt(e,t){let n={...e.entries};for(let e of t)delete n[e];return{...e,entries:n,get"~standard"(){return U(this)}}}function Qt(e,t){let n={};for(let r in e.entries)n[r]=!t||t.includes(r)?J(e.entries[r]):e.entries[r];return{...e,entries:n,get"~standard"(){return U(this)}}}function Q(...e){return{...e[0],pipe:e,get"~standard"(){return U(this)},"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r[`~run`](t,n))}return t}}}function $t(...e){return{...e[0],pipe:e,async:!0,get"~standard"(){return U(this)},async"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=await r[`~run`](t,n))}return t}}}function en(...e){return ee(...e)}const tn=Z([X(),Rt(RegExp)]);function nn(){return Lt()}const rn=Z([q(`debug`),q(`info`),q(`warn`)]),an=Z([rn,q(`silent`)]),on=Z([rn,q(`error`)]),sn=Ft(),cn=Z([sn,X()]),ln=Z([X(),G(X()),Gt(X(),X())]),un=Q(nn(),kt(Kt([X(),J(X()),K()])),jt(Vt(K()))),dn=Z([tn,G(tn),un]),fn=Gt(X(),Z([q(`asset`),q(`base64`),q(`binary`),q(`css`),q(`dataurl`),q(`empty`),q(`js`),q(`json`),q(`jsx`),q(`text`),q(`ts`),q(`tsx`)])),pn=Ut({assumptions:J(Ut({ignoreFunctionLength:J(K()),noDocumentAll:J(K()),objectRestNoSymbols:J(K()),pureGetters:J(K()),setPublicClassFields:J(K())})),typescript:J(Ut({jsxPragma:J(X()),jsxPragmaFrag:J(X()),onlyRemoveTypeImports:J(K()),allowNamespaces:J(K()),allowDeclareFields:J(K()),declaration:J(Ut({stripInternal:J(K()),sourcemap:J(K())})),rewriteImportExtensions:J(Z([q(`rewrite`),q(`remove`),K()]))})),helpers:J(Ut({mode:J(Z([q(`Runtime`),q(`External`)]))})),decorators:J(Ut({legacy:J(K()),emitDecoratorMetadata:J(K())})),jsx:J(Z([q(!1),q(`preserve`),q(`react`),q(`react-jsx`),Y({runtime:Q(J(Z([q(`classic`),q(`automatic`)])),W(`Which runtime to use`)),development:Q(J(K()),W(`Development specific information`)),throwIfNamespace:Q(J(K()),W(`Toggles whether to throw an error when a tag name uses an XML namespace`)),importSource:Q(J(X()),W(`Import the factory of element and fragment if mode is classic`)),pragma:Q(J(X()),W(`Jsx element transformation`)),pragmaFrag:Q(J(X()),W(`Jsx fragment transformation`)),refresh:Q(J(K()),W(`Enable react fast refresh`))})])),target:Q(J(Z([X(),G(X())])),W(`The JavaScript target environment`)),define:Q(J(Gt(X(),X())),W(`Define global variables`)),inject:Q(J(Gt(X(),Z([X(),Kt([X(),X()])]))),W(`Inject import statements on demand`)),dropLabels:Q(J(G(X())),W(`Remove labeled statements with these label names`))}),mn=Y({chokidar:J(Bt(`The "watch.chokidar" option is deprecated, please use "watch.notify" instead of it`)),exclude:J(Z([tn,G(tn)])),include:J(Z([tn,G(tn)])),notify:Q(J(Y({compareContents:J(K()),pollInterval:J(Ht())})),W(`Notify options`)),skipWrite:Q(J(K()),W(`Skip the bundle.write() step`)),buildDelay:Q(J(Ht()),W(`Throttle watch rebuilds`)),clearScreen:Q(J(K()),W(`Whether to clear the screen when a rebuild is triggered`)),onInvalidate:Q(J(Q(Lt(),kt(Kt([X()])))),W(`An optional function that will be called immediately every time a module changes that is part of the build.`))}),hn=Y({circularDependency:Q(J(K()),W(`Whether to emit warning when detecting circular dependency`)),eval:Q(J(K()),W(`Whether to emit warning when detecting eval`)),missingGlobalName:Q(J(K()),W(`Whether to emit warning when detecting missing global name`)),missingNameOptionForIifeExport:Q(J(K()),W(`Whether to emit warning when detecting missing name option for iife export`)),mixedExport:Q(J(K()),W(`Whether to emit warning when detecting mixed export`)),unresolvedEntry:Q(J(K()),W(`Whether to emit warning when detecting unresolved entry`)),unresolvedImport:Q(J(K()),W(`Whether to emit warning when detecting unresolved import`)),filenameConflict:Q(J(K()),W(`Whether to emit warning when detecting filename conflict`)),commonJsVariableInEsm:Q(J(K()),W(`Whether to emit warning when detecting common js variable in esm`)),importIsUndefined:Q(J(K()),W(`Whether to emit warning when detecting import is undefined`)),emptyImportMeta:Q(J(K()),W(`Whether to emit warning when detecting empty import meta`)),configurationFieldConflict:Q(J(K()),W(`Whether to emit warning when detecting configuration field conflict`)),preferBuiltinFeature:Q(J(K()),W(`Whether to emit warning when detecting prefer builtin feature`)),couldNotCleanDirectory:Q(J(K()),W(`Whether to emit warning when detecting could not clean directory`))}),gn=Y({compress:J(Z([K(),Y({target:J(Z([q(`esnext`),q(`es2015`),q(`es2016`),q(`es2017`),q(`es2018`),q(`es2019`),q(`es2020`),q(`es2021`),q(`es2022`),q(`es2023`),q(`es2024`)])),dropConsole:J(K()),dropDebugger:J(K()),keepNames:J(Y({function:K(),class:K()})),unused:J(Z([K(),q(`keep_assign`)]))})])),mangle:J(Z([K(),Y({toplevel:J(K()),keepNames:J(Z([K(),Y({function:K(),class:K()})])),debug:J(K())})])),codegen:J(Z([K(),Y({removeWhitespace:J(K())})]))}),_n=Y({alias:J(Gt(X(),Z([q(!1),X(),G(X())]))),aliasFields:J(G(G(X()))),conditionNames:J(G(X())),extensionAlias:J(Gt(X(),G(X()))),exportsFields:J(G(G(X()))),extensions:J(G(X())),mainFields:J(G(X())),mainFiles:J(G(X())),modules:J(G(X())),symlinks:J(K()),yarnPnp:J(K())}),vn=Z([K(),zt({annotations:J(K()),manualPureFunctions:J(G(X())),unknownGlobalSideEffects:J(K()),commonjs:J(K()),propertyReadSideEffects:J(Z([q(!1),q(`always`)])),propertyWriteSideEffects:J(Z([q(!1),q(`always`)]))})]),yn=Y({inlineConst:Q(J(Z([K(),Y({mode:J(Z([q(`all`),q(`smart`)])),pass:J(Ht())})])),W(`Enable crossmodule constant inlining`)),pifeForModuleWrappers:Q(J(K()),W(`Use PIFE pattern for module wrappers`))}),bn=Q(nn(),kt(Kt([on,cn]))),xn=Q(nn(),kt(Kt([rn,sn,bn]))),Sn=Q(nn(),kt(Kt([sn,Q(nn(),kt(Kt([Z([cn,Q(nn(),jt(cn))])])))]))),Cn=Z([K(),Y({new:J(K()),port:J(Ht()),host:J(X()),implement:J(X())})]),wn=Y({input:J(ln),plugins:J(It(()=>!0)),external:J(dn),makeAbsoluteExternalsRelative:J(Z([K(),q(`ifRelativeSource`)])),resolve:J(_n),cwd:Q(J(X()),W(`Current working directory`)),platform:Q(J(Z([q(`browser`),q(`neutral`),q(`node`)])),W(`Platform for which the code should be generated (node, ${en(`underline`,`browser`)}, neutral)`)),shimMissingExports:Q(J(K()),W(`Create shim variables for missing exports`)),treeshake:J(vn),optimization:J(yn),logLevel:Q(J(an),W(`Log level (${en(`dim`,`silent`)}, ${en([`underline`,`gray`],`info`)}, debug, ${en(`yellow`,`warn`)})`)),onLog:J(xn),onwarn:J(Sn),moduleTypes:Q(J(fn),W(`Module types for customized extensions`)),experimental:J(Y({disableLiveBindings:J(K()),enableComposingJsPlugins:J(K()),viteMode:J(K()),resolveNewUrlToAsset:J(K()),strictExecutionOrder:J(K()),onDemandWrapping:J(K()),incrementalBuild:J(K()),hmr:J(Cn),attachDebugInfo:J(Z([q(`none`),q(`simple`),q(`full`)])),chunkModulesOrder:J(Z([q(`module-id`),q(`exec-order`)])),chunkImportMap:J(Z([K(),Ut({baseUrl:J(X()),fileName:J(X())})])),nativeMagicString:J(K())})),transform:J(pn),watch:J(Z([mn,q(!1)])),checks:J(hn),debug:Q(J(Ut({sessionId:Q(J(X()),W(`Used to name the build.`))})),W(`Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.`)),preserveEntrySignatures:Q(J(Z([q(`strict`),q(`allow-extension`),q(`exports-only`),q(!1)]))),tsconfig:Q(J(Z([q(!0),X()])),W(`Path to the tsconfig.json file.`))}),Tn=Y({input:Q(J(G(X())),W(`Entry file`)),external:Q(J(G(X())),W("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),treeshake:Q(J(K()),W(`enable treeshaking`)),makeAbsoluteExternalsRelative:Q(J(K()),W(`Prevent normalization of external imports`)),preserveEntrySignatures:Q(J(q(!1)),W(`Avoid facade chunks for entry points`)),context:Q(J(X()),W("The entity top-level `this` represents."))}),En=Zt(Y({...wn.entries,...Tn.entries}),[`plugins`,`onwarn`,`onLog`,`resolve`,`experimental`,`watch`]),Dn=Z([q(`es`),q(`cjs`),q(`esm`),q(`module`),q(`commonjs`),q(`iife`),q(`umd`)]),On=Q(nn(),kt(Kt([It(()=>!0)])),Mt(Yt([X(),$t(Wt(),At(),X())]))),kn=Q(nn(),kt(Kt([It(()=>!0)])),jt(X())),An=Z([X(),kn]),jn=Q(nn(),kt(Kt([It(()=>!0)])),jt(X())),Mn=Z([X(),jn]),Nn=Q(nn(),kt(Kt([X()])),jt(X())),Pn=Z([K(),Nn]),Fn=Q(nn(),kt(Kt([X()])),jt(X())),In=Q(nn(),kt(Kt([X()])),jt(X())),Ln=Q(nn(),kt(Kt([X(),Ut({})])),jt(Vt(X()))),Rn=Q(nn(),kt(Kt([X(),Ut({})])),jt(Vt(X()))),zn=Q(nn(),kt(Kt([X()])),jt(Z([K(),Xt(),qt()]))),Bn=Y({includeDependenciesRecursively:J(K()),minSize:J(Ht()),maxSize:J(Ht()),minModuleSize:J(Ht()),maxModuleSize:J(Ht()),minShareCount:J(Ht()),groups:J(G(Y({name:Z([X(),Rn]),test:J(Z([tn,zn])),priority:J(Ht()),minSize:J(Ht()),minShareCount:J(Ht()),maxSize:J(Ht()),minModuleSize:J(Ht()),maxModuleSize:J(Ht())})))}),Vn=Y({symbols:Q(J(K()),W(`Whether to use Symbol.toStringTag for namespace objects`)),preset:Z([q(`es5`),q(`es2015`)]),profilerNames:Q(J(K()),W(`Whether to add readable names to internal variables for profiling purposes`))}),Hn=Y({dir:Q(J(X()),W("Output directory, defaults to `dist` if `file` is not set")),file:Q(J(X()),W(`Single output file`)),exports:Q(J(Z([q(`auto`),q(`named`),q(`default`),q(`none`)])),W(`Specify a export mode (${en(`underline`,`auto`)}, named, default, none)`)),hashCharacters:Q(J(Z([q(`base64`),q(`base36`),q(`hex`)])),W(`Use the specified character set for file hashes`)),format:Q(J(Dn),W(`Output format of the generated bundle (supports ${en(`underline`,`esm`)}, cjs, and iife)`)),sourcemap:Q(J(Z([K(),q(`inline`),q(`hidden`)])),W(`Generate sourcemap (\`-s inline\` for inline, or ${en(`bold`,"pass the `-s` on the last argument if you want to generate `.map` file")})`)),sourcemapBaseUrl:Q(J(X()),W(`Base URL used to prefix sourcemap paths`)),sourcemapDebugIds:Q(J(K()),W(`Inject sourcemap debug IDs`)),sourcemapIgnoreList:J(Z([K(),It(()=>!0),tn])),sourcemapPathTransform:J(It(()=>!0)),banner:J(Z([X(),On])),footer:J(Z([X(),On])),intro:J(Z([X(),On])),outro:J(Z([X(),On])),extend:Q(J(K()),W(`Extend global variable defined by name in IIFE / UMD formats`)),esModule:J(Z([K(),q(`if-default-prop`)])),assetFileNames:J(Mn),entryFileNames:J(An),chunkFileNames:J(An),cssEntryFileNames:J(An),cssChunkFileNames:J(An),sanitizeFileName:J(Pn),minify:Q(J(Z([K(),q(`dce-only`),gn])),W(`Minify the bundled file`)),name:Q(J(X()),W(`Name for UMD / IIFE format outputs`)),globals:Q(J(Z([Gt(X(),X()),Fn])),W("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),paths:Q(J(Z([Gt(X(),X()),In])),W(`Maps external module IDs to paths`)),generatedCode:Q(J(Qt(Vn)),W(`Generated code options`)),externalLiveBindings:Q(J(K()),W(`external live bindings`)),inlineDynamicImports:Q(J(K()),W(`Inline dynamic imports`)),manualChunks:J(Ln),advancedChunks:J(Bn),legalComments:Q(J(Z([q(`none`),q(`inline`)])),W(`Control comments in the output`)),plugins:J(It(()=>!0)),polyfillRequire:Q(J(K()),W(`Disable require polyfill injection`)),hoistTransitiveImports:J(q(!1)),preserveModules:Q(J(K()),W(`Preserve module structure`)),preserveModulesRoot:Q(J(X()),W(`Put preserved modules under this path at root level`)),virtualDirname:J(X()),minifyInternalExports:Q(J(K()),W(`Minify internal exports`)),topLevelVar:Q(J(K()),W("Rewrite top-level declarations to use `var`.")),cleanDir:Q(J(K()),W(`Clean output directory before emitting output`)),keepNames:Q(J(K()),W(`Keep function and class names after bundling`))}),Un=(e,t)=>`Code to insert the ${en(`bold`,e)} of the bundled file (${en(`bold`,t)} the wrapper function)`,Wn=Y({assetFileNames:Q(J(X()),W(`Name pattern for asset files`)),entryFileNames:Q(J(X()),W(`Name pattern for emitted entry chunks`)),chunkFileNames:Q(J(X()),W(`Name pattern for emitted secondary chunks`)),cssEntryFileNames:Q(J(X()),W(`Name pattern for emitted css entry chunks`)),cssChunkFileNames:Q(J(X()),W(`Name pattern for emitted css secondary chunks`)),sanitizeFileName:Q(J(K()),W(`Sanitize file name`)),banner:Q(J(X()),W(Un(`top`,`outside`))),footer:Q(J(X()),W(Un(`bottom`,`outside`))),intro:Q(J(X()),W(Un(`top`,`inside`))),outro:Q(J(X()),W(Un(`bottom`,`inside`))),esModule:Q(J(K()),W("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),globals:Q(J(Gt(X(),X())),W("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),advancedChunks:Q(J(Y({minSize:Q(J(Ht()),W(`Minimum size of the chunk`)),minShareCount:Q(J(Ht()),W(`Minimum share count of the chunk`))})),W("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),minify:Q(J(K()),W(`Minify the bundled file`))}),Gn=Zt(Y({...Hn.entries,...Wn.entries}),[`sourcemapIgnoreList`,`sourcemapPathTransform`,`plugins`,`hoistTransitiveImports`]);({...En.entries,...Gn.entries}),z([R],class extends nt{constructor(e){super(),this.bindingOutputs=e}get output(){return pt(this.bindingOutputs).output}__rolldown_external_memory_handle__(e){let t=this.output.map(t=>t.__rolldown_external_memory_handle__(e));if(!t.every(e=>e.freed)){let e=t.filter(e=>!e.freed).map(e=>e.reason).filter(Boolean);return{freed:!1,reason:`Failed to free ${e.length} item(s): ${e.join(`; `)}`}}return{freed:!0}}}.prototype,`output`,null),Je(),Je(),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`),Symbol.asyncDispose,Je(),Je();var Kn=Je();Kn.BindingRebuildStrategy,Kn.ResolverFactory,Kn.createTokioRuntime,Kn.isolatedDeclaration,Kn.isolatedDeclarationSync,Kn.minify,Kn.minifySync,Kn.moduleRunnerTransform,Kn.transform,Kn.transformSync;const qn=[];qn.push(`SIGHUP`,`SIGINT`,`SIGTERM`),process.platform!==`win32`&&qn.push(`SIGALRM`,`SIGABRT`,`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&qn.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`);const Jn=e=>!!e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`,Yn=Symbol.for(`signal-exit emitter`),Xn=globalThis,Zn=Object.defineProperty.bind(Object);var Qn=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Xn[Yn])return Xn[Yn];Zn(Xn,Yn,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let n=this.listeners[e],r=n.indexOf(t);r!==-1&&(r===0&&n.length===1?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let i of this.listeners[e])r=i(t,n)===!0||r;return e===`exit`&&(r=this.emit(`afterExit`,t,n)||r),r}},$n=class{};const er=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}});var tr=class extends $n{onExit(){return()=>{}}load(){}unload(){}},nr=class extends $n{#e=rr.platform===`win32`?`SIGINT`:`SIGHUP`;#t=new Qn;#n;#r;#i;#a={};#o=!1;constructor(e){super(),this.#n=e,this.#a={};for(let t of qn)this.#a[t]=()=>{let n=this.#n.listeners(t),{count:r}=this.#t,i=e;if(typeof i.__signal_exit_emitter__==`object`&&typeof i.__signal_exit_emitter__.count==`number`&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();let n=this.#t.emit(`exit`,null,t),r=t===`SIGHUP`?this.#e:t;n||e.kill(e.pid,r)}};this.#i=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!Jn(this.#n))return()=>{};this.#o===!1&&this.load();let n=t?.alwaysLast?`afterExit`:`exit`;return this.#t.on(n,e),()=>{this.#t.removeListener(n,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(let e of qn)try{let t=this.#a[e];t&&this.#n.on(e,t)}catch{}this.#n.emit=(e,...t)=>this.#c(e,...t),this.#n.reallyExit=e=>this.#s(e)}}unload(){this.#o&&(this.#o=!1,qn.forEach(e=>{let t=this.#a[e];if(!t)throw Error(`Listener not defined for signal: `+e);try{this.#n.removeListener(e,t)}catch{}}),this.#n.emit=this.#r,this.#n.reallyExit=this.#i,--this.#t.count)}#s(e){return Jn(this.#n)?(this.#n.exitCode=e||0,this.#t.emit(`exit`,this.#n.exitCode,null),this.#i.call(this.#n,this.#n.exitCode)):0}#c(e,...t){let n=this.#r;if(e===`exit`&&Jn(this.#n)){typeof t[0]==`number`&&(this.#n.exitCode=t[0]);let r=n.call(this.#n,e,...t);return this.#t.emit(`exit`,this.#n.exitCode,null),r}else return n.call(this.#n,e,...t)}};const rr=globalThis.process,{onExit:ir,load:ar,unload:or}=er(Jn(rr)?new nr(rr):new tr);Je();var sr=Je();if(S){let e=(0,sr.initTraceSubscriber)();ir(()=>{e?.close()})}Je().BindingMagicString;let cr=`sourceMa`;cr+=`ppingURL`;const lr=typeof process<`u`&&process.platform===`win32`,ur=/\\/g;function dr(e){return e.replace(ur,`/`)}const fr=`vite-module-runner:import-meta-resolve/v1/`;`${JSON.stringify(fr)}${JSON.stringify(fr)}`,`${fr}`;var pr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,mr=new Uint8Array(64),hr=new Uint8Array(128);for(let e=0;e<pr.length;e++){let t=pr.charCodeAt(e);mr[e]=t,hr[t]=e}function gr(e){return e instanceof Error?e.stack||e.message:e}function _r(e,t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e[Math.abs(n)%e.length]}function vr(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function yr(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}function br(e,t,n,r,i,a,o){let s=r=>{let i,a,c,l,u=(...e)=>{if(!u.enabled)return;let t=Date.now();u.diff=t-(i||t),u.prev=i,u.curr=t,i=t,e[0]=gr(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let n=0;e[0]=e[0].replace(/%([a-z%])/gi,(t,r)=>{if(t===`%%`)return`%`;n++;let i=s.formatters[r];if(typeof i==`function`){let r=e[n];t=i.call(u,r),e.splice(n,1),n--}return t}),s.formatArgs.call(u,e),(u.log||s.log).apply(u,e)};function d(e,t=`:`){let n=s(this.namespace+t+e);return n.log=this.log,n}return u.namespace=r,u.useColors=e,u.color=_r(t,r),u.extend=d,u.log=n,Object.defineProperty(u,`enabled`,{enumerable:!0,configurable:!1,get:()=>a??(c!==s.namespaces&&(c=s.namespaces,l=s.enabled(r)),l),set:e=>{a=e}}),o&&o(u),u};function c(e){i(e),s.namespaces=e,s.names=[],s.skips=[];let t=e.trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?s.skips.push(e.slice(1)):s.names.push(e)}function l(){let e=[...s.names,...s.skips.map(e=>`-${e}`)].join(`,`);return s.enable(``),e}function u(e){for(let t of s.skips)if(vr(e,t))return!1;for(let t of s.names)if(vr(e,t))return!0;return!1}return s.namespaces=``,s.formatters={},s.enable=c,s.disable=l,s.enabled=u,s.names=[],s.skips=[],s.selectColor=e=>_r(t,e),s.formatArgs=a,s.log=n,s.enable(r()),s}var xr=i((()=>{})),Sr=o({createDebug:()=>Pr,default:()=>Fr,formatArgs:()=>Dr,log:()=>Cr,"module.exports":()=>Pr});function Cr(...e){process.stderr.write(`${w(Mr,...e)}\n`)}function wr(){return process.env.DEBUG||``}function Tr(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Er(){return`colors`in Mr?!!Mr.colors:M(process.stderr.fd)}function Dr(e){let{namespace:t,useColors:n}=this;if(n){let n=this.color,r=`\u001B[3${n<8?n:`8;5;${n}`}`,i=` ${r};1m${t} \u001B[0m`;e[0]=i+e[0].split(`
|
|
7
|
-
`).join(`\n${i}`),e.push(`${r}m+${Nr(this.diff)}\u001B[0m`)}else e[0]=`${Or()}${t} ${e[0]}`}function Or(){return Mr.hideDate?``:`${new Date().toISOString()} `}function kr(e){e.inspectOpts=Object.assign({},Mr)}var Ar,jr,Mr,Nr,Pr,Fr,Ir=i((()=>{xr(),Ar=u(import.meta.url),jr=process.stderr.getColorDepth&&process.stderr.getColorDepth()>2?[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]:[6,2,3,4,5,1],Mr=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.slice(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=r===`null`?null:/^yes|on|true|enabled$/i.test(r)?!0:/^no|off|false|disabled$/i.test(r)?!1:Number(r),e[n]=r,e},{});try{Nr=Ar(`ms`)}catch{Nr=yr}Pr=br(Er(),jr,Cr,wr,Tr,Dr,kr),Pr.inspectOpts=Mr,Pr.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,T(e,this.inspectOpts).split(`
|
|
8
|
-
`).map(e=>e.trim()).join(` `)},Pr.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,T(e,this.inspectOpts)},Fr=Pr,Pr.default=Pr,Pr.debug=Pr}));if(RegExp(`\\${P.sep}`,`g`),new Set(`break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl`.split(` `)).add(``),`isWellFormed`in String.prototype,process.versions.pnp)try{u(import.meta.url)(`pnpapi`)}catch{}I(),Ir(),[...l.filter(e=>!e.includes(`:`))],m.dirname(_(import.meta.url));const Lr=process.env.VITE_DEBUG_FILTER,Rr=process.env.DEBUG;function $(e,t={}){let n=Fr(e),{onlyWhenFocused:r,depth:i}=t;i&&n.inspectOpts&&n.inspectOpts.depth==null&&(n.inspectOpts.depth=t.depth);let a=n.enabled;if(a&&r&&(a=!!Rr?.includes(typeof r==`string`?r:e)),a)return(...e)=>{(!Lr||e.some(e=>e?.includes?.(Lr)))&&n(...e)}}function zr(){if(!Ve.endsWith(`client.mjs`))throw Error(`cannot test case insensitive FS, CLIENT_ENTRY const doesn't contain client.mjs`);if(!f.existsSync(Ve))throw Error(`cannot test case insensitive FS, CLIENT_ENTRY does not point to an existing file: `+Ve);return f.existsSync(Ve.replace(`client.mjs`,`cLiEnT.mjs`))}zr();function Br(e){return m.posix.normalize(lr?dr(e):e)}const Vr=/^([a-z]+:)?\/\//,Hr=e=>Vr.test(e),Ur=/^\s*data:/i,Wr=e=>Ur.test(e);`${[ze,`/@id/`,`/@vite/client`,`/@vite/env`].join(`|`)}`;async function Gr(e,t,n){let r,i=e,a=``;for(;r=t.exec(i);)a+=i.slice(0,r.index),a+=await n(r),i=i.slice(r.index+r[0].length);return a+=i,a}function Kr(e){return Object.prototype.toString.call(e)===`[object Object]`}lr||f.realpathSync.native;function qr(e){return e.map(({url:e,descriptor:t})=>e+(t?` ${t}`:``)).join(`, `)}const Jr=/(?:^|\s|(?<=,))(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Yr=/(?: |\\t|\\n|\\f|\\r)+/g;function Xr(e){let t=e.trim().replace(Yr,` `).replace(/\r?\n/,``).replace(/,\s+/,`, `).replaceAll(/\s+/g,` `).matchAll(Jr);return Array.from(t,({groups:e})=>({url:e?.url?.trim()??``,descriptor:e?.descriptor?.trim()??``})).filter(({url:e})=>!!e)}function Zr(e,t){return Promise.all(Xr(e).map(async({url:e,descriptor:n})=>({url:await t({url:e,descriptor:n}),descriptor:n}))).then(qr)}function Qr(e){return Array.isArray(e)?e:[e]}function $r(e){return Array.isArray(e)?e:typeof e==`function`?e():[]}const ei=/^environments\.[^.]+$/,ti=new Set([`optimizeDeps`,`ssr.optimizeDeps`]),ni=(()=>()=>{let e=process.env.VITE_DEPRECATION_TRACE?`trace`:`warn`;console[e]("`optimizeDeps.rollupOptions` / `ssr.optimizeDeps.rollupOptions` is deprecated. Use `optimizeDeps.rolldownOptions` instead. Note that this option may be set by a plugin. "+(e===`trace`?`Showing trace because VITE_DEPRECATION_TRACE is set.`:`Set VITE_DEPRECATION_TRACE=1 to see where it is called.`))})();function ri(e,t){e.rolldownOptions??=e.rollupOptions,ti.has(t)&&e.rollupOptions&&e.rolldownOptions!==e.rollupOptions&&ni(),Object.defineProperty(e,`rollupOptions`,{get(){return e.rolldownOptions},set(n){ti.has(t)&&ni(),e.rolldownOptions=n},configurable:!0,enumerable:!0})}const ii=new Set([`build`,`worker`,`optimizeDeps`,`ssr.optimizeDeps`]);function ai(e,t,n){let r={...e};for(let e in ii.has(n)&&ri(r,n),t){let i=t[e];if(i==null)continue;let a=r[e];if(e===`rollupOptions`&&ii.has(n)){if(t.rolldownOptions)continue;a=r.rolldownOptions}if(a==null){r[e]=i;continue}if(e===`alias`&&(n===`resolve`||n===``)){r[e]=si(a,i);continue}else if(e===`assetsInclude`&&n===``){r[e]=[].concat(a,i);continue}else if(((e===`noExternal`||e===`external`)&&(n===`ssr`||n===`resolve`)||e===`allowedHosts`&&n===`server`)&&(a===!0||i===!0)){r[e]=!0;continue}else if(e===`plugins`&&n===`worker`){r[e]=()=>[...$r(a),...$r(i)];continue}else if(e===`server`&&n===`server.hmr`){r[e]=i;continue}if(Array.isArray(a)||Array.isArray(i)){r[e]=[...Qr(a),...Qr(i)];continue}if(Kr(a)&&Kr(i)){r[e]=ai(a,i,n&&!ei.test(n)?`${n}.${e}`:e);continue}r[e]=i}return r}function oi(e,t,n=!0){if(typeof e==`function`||typeof t==`function`)throw Error(`Cannot merge config in form of callback`);return ai(e,t,n?``:`.`)}function si(e,t){return e?t?Kr(e)&&Kr(t)?{...e,...t}:[...ci(t),...ci(e)]:e:t}function ci(e=[]){return Array.isArray(e)?e.map(li):Object.keys(e).map(t=>li({find:t,replacement:e[t]}))}function li({find:e,replacement:t,customResolver:n}){typeof e==`string`&&e.endsWith(`/`)&&t.endsWith(`/`)&&(e=e.slice(0,e.length-1),t=t.slice(0,t.length-1));let r={find:e,replacement:t};return n&&(r.customResolver=n),r}var ui=s(I(),1);ui.default.green,ui.default.magenta,ui.default.cyan,RegExp(`\\`+m.posix.sep,`g`),RegExp(`\\`+m.sep,`g`);const di=[`.ts`,`.tsx`,`.mts`,`.cts`],fi=di.concat([`.js`,`.jsx`,`.mjs`,`.cjs`]);`${di.map(e=>e.substring(1)).join(`|`)}`,`${fi.map(e=>e.substring(1)).join(`|`)}`,m.posix.sep,m.sep,I(),$(`vite:esbuild`),async function(){}.constructor;const pi={}.hasOwnProperty,mi=/^([A-Z][a-z\d]*)+$/,hi=new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),gi={};function _i(e,t=`and`){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}const vi=new Map;let yi;gi.ERR_INVALID_ARG_TYPE=bi(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{ne(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let r=`The `;if(e.endsWith(` argument`))r+=`${e} `;else{let t=e.includes(`.`)?`property`:`argument`;r+=`"${e}" ${t} `}r+=`must be `;let i=[],a=[],o=[];for(let e of t)ne(typeof e==`string`,`All expected entries have to be of type string`),hi.has(e)?i.push(e.toLowerCase()):mi.exec(e)===null?(ne(e!==`object`,`The value "object" should be written as "Object"`),o.push(e)):a.push(e);if(a.length>0){let e=i.indexOf(`object`);e!==-1&&(i.slice(e,1),a.push(`Object`))}return i.length>0&&(r+=`${i.length>1?`one of type`:`of type`} ${_i(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${_i(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${_i(o,`or`)}`:(o[0].toLowerCase()!==o[0]&&(r+=`an `),r+=`${o[0]}`)),r+=`. Received ${Ei(n)}`,r},TypeError),gi.ERR_INVALID_MODULE_SPECIFIER=bi(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),gi.ERR_INVALID_PACKAGE_CONFIG=bi(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),gi.ERR_INVALID_PACKAGE_TARGET=bi(`ERR_INVALID_PACKAGE_TARGET`,(e,t,n,r=!1,i=void 0)=>{let a=typeof n==`string`&&!r&&n.length>0&&!n.startsWith(`./`);return t===`.`?(ne(r===!1),`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`):`Invalid "${r?`imports`:`exports`}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`},Error),gi.ERR_MODULE_NOT_FOUND=bi(`ERR_MODULE_NOT_FOUND`,(e,t,n=!1)=>`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`,Error),gi.ERR_NETWORK_IMPORT_DISALLOWED=bi(`ERR_NETWORK_IMPORT_DISALLOWED`,`import of '%s' by %s is not supported: %s`,Error),gi.ERR_PACKAGE_IMPORT_NOT_DEFINED=bi(`ERR_PACKAGE_IMPORT_NOT_DEFINED`,(e,t,n)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:``} imported from ${n}`,TypeError),gi.ERR_PACKAGE_PATH_NOT_EXPORTED=bi(`ERR_PACKAGE_PATH_NOT_EXPORTED`,(e,t,n=void 0)=>t===`.`?`No "exports" main defined in ${e}package.json${n?` imported from ${n}`:``}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?` imported from ${n}`:``}`,Error),gi.ERR_UNSUPPORTED_DIR_IMPORT=bi(`ERR_UNSUPPORTED_DIR_IMPORT`,`Directory import '%s' is not supported resolving ES modules imported from %s`,Error),gi.ERR_UNSUPPORTED_RESOLVE_REQUEST=bi(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),gi.ERR_UNKNOWN_FILE_EXTENSION=bi(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),gi.ERR_INVALID_ARG_VALUE=bi(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=T(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);function bi(e,t,n){return vi.set(e,t),xi(n,e)}function xi(e,t){return n;function n(...n){let r=Error.stackTraceLimit;Si()&&(Error.stackTraceLimit=0);let i=new e;Si()&&(Error.stackTraceLimit=r);let a=Ti(t,n,i);return Object.defineProperties(i,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),wi(i),i.code=t,i}}function Si(){try{if(F.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):pi.call(e,`writable`)&&e.writable!==void 0?e.writable:e.set!==void 0}function Ci(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,`name`,{value:t}),e}const wi=Ci(function(e){let t=Si();return t&&(yi=Error.stackTraceLimit,Error.stackTraceLimit=1/0),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=yi),e});function Ti(e,t,n){let r=vi.get(e);if(ne(r!==void 0,"expected `message` to be found"),typeof r==`function`)return ne(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,n,t);let i=/%[dfijoOs]/g,a=0;for(;i.exec(r)!==null;)a++;return ne(a===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${a}).`),t.length===0?r:(t.unshift(r),Reflect.apply(C,null,t))}function Ei(e){if(e==null)return String(e);if(typeof e==`function`&&e.name)return`function ${e.name}`;if(typeof e==`object`)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${T(e,{depth:-1})}`;let t=T(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Di;(function(e){e[e.Static=1]=`Static`,e[e.Dynamic=2]=`Dynamic`,e[e.ImportMeta=3]=`ImportMeta`,e[e.StaticSourcePhase=4]=`StaticSourcePhase`,e[e.DynamicSourcePhase=5]=`DynamicSourcePhase`,e[e.StaticDeferPhase=6]=`StaticDeferPhase`,e[e.DynamicDeferPhase=7]=`DynamicDeferPhase`})(Di||={}),new Uint8Array(new Uint16Array([1]).buffer)[0],WebAssembly.compile((()=>{return e=`AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKzkQwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9AlBACAFQSRqNgKICiAEQSBqQeAJIAQbIAU2AgBBACgC1AkhBEEAKALQCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGIgAbIAQgA0YiBBs2AgwgBSADNgIUIAVBADYCECAFIAI2AgQgBUEANgIgIAVBA0EBQQIgABsgBBs2AhwgBUEAKALQCSADRiICOgAYAkACQCACDQBBACgC1AkgA0cNAQtBAEEBOgCMCgsLXgEBf0EAKAL4CSIEQRBqQeQJIAQbQQAoAogKIgQ2AgBBACAENgL4CUEAIARBFGo2AogKQQBBAToAjAogBEEANgIQIAQgAzYCDCAEIAI2AgggBCABNgIEIAQgADYCAAsIAEEAKAKQCgsVAEEAKALoCSgCAEEAKALcCWtBAXULHgEBf0EAKALoCSgCBCIAQQAoAtwJa0EBdUF/IAAbCxUAQQAoAugJKAIIQQAoAtwJa0EBdQseAQF/QQAoAugJKAIMIgBBACgC3AlrQQF1QX8gABsLCwBBACgC6AkoAhwLHgEBf0EAKALoCSgCECIAQQAoAtwJa0EBdUF/IAAbCzsBAX8CQEEAKALoCSgCFCIAQQAoAtAJRw0AQX8PCwJAIABBACgC1AlHDQBBfg8LIABBACgC3AlrQQF1CwsAQQAoAugJLQAYCxUAQQAoAuwJKAIAQQAoAtwJa0EBdQsVAEEAKALsCSgCBEEAKALcCWtBAXULHgEBf0EAKALsCSgCCCIAQQAoAtwJa0EBdUF/IAAbCx4BAX9BACgC7AkoAgwiAEEAKALcCWtBAXVBfyAAGwslAQF/QQBBACgC6AkiAEEgakHgCSAAGygCACIANgLoCSAAQQBHCyUBAX9BAEEAKALsCSIAQRBqQeQJIAAbKAIAIgA2AuwJIABBAEcLCABBAC0AlAoLCABBAC0AjAoL3Q0BBX8jAEGA0ABrIgAkAEEAQQE6AJQKQQBBACgC2Ak2ApwKQQBBACgC3AlBfmoiATYCsApBACABQQAoAoAKQQF0aiICNgK0CkEAQQA6AIwKQQBBADsBlgpBAEEAOwGYCkEAQQA6AKAKQQBBADYCkApBAEEAOgD8CUEAIABBgBBqNgKkCkEAIAA2AqgKQQBBADoArAoCQAJAAkACQANAQQAgAUECaiIDNgKwCiABIAJPDQECQCADLwEAIgJBd2pBBUkNAAJAAkACQAJAAkAgAkGbf2oOBQEICAgCAAsgAkEgRg0EIAJBL0YNAyACQTtGDQIMBwtBAC8BmAoNASADEBVFDQEgAUEEakGCCEEKEC8NARAWQQAtAJQKDQFBAEEAKAKwCiIBNgKcCgwHCyADEBVFDQAgAUEEakGMCEEKEC8NABAXC0EAQQAoArAKNgKcCgwBCwJAIAEvAQQiA0EqRg0AIANBL0cNBBAYDAELQQEQGQtBACgCtAohAkEAKAKwCiEBDAALC0EAIQIgAyEBQQAtAPwJDQIMAQtBACABNgKwCkEAQQA6AJQKCwNAQQAgAUECaiIDNgKwCgJAAkACQAJAAkACQAJAIAFBACgCtApPDQAgAy8BACICQXdqQQVJDQYCQAJAAkACQAJAAkACQAJAAkACQCACQWBqDgoQDwYPDw8PBQECAAsCQAJAAkACQCACQaB/ag4KCxISAxIBEhISAgALIAJBhX9qDgMFEQYJC0EALwGYCg0QIAMQFUUNECABQQRqQYIIQQoQLw0QEBYMEAsgAxAVRQ0PIAFBBGpBjAhBChAvDQ8QFwwPCyADEBVFDQ4gASkABELsgISDsI7AOVINDiABLwEMIgNBd2oiAUEXSw0MQQEgAXRBn4CABHFFDQwMDQtBAEEALwGYCiIBQQFqOwGYCkEAKAKkCiABQQN0aiIBQQE2AgAgAUEAKAKcCjYCBAwNC0EALwGYCiIDRQ0JQQAgA0F/aiIDOwGYCkEALwGWCiICRQ0MQQAoAqQKIANB//8DcUEDdGooAgBBBUcNDAJAIAJBAnRBACgCqApqQXxqKAIAIgMoAgQNACADQQAoApwKQQJqNgIEC0EAIAJBf2o7AZYKIAMgAUEEajYCDAwMCwJAQQAoApwKIgEvAQBBKUcNAEEAKALwCSIDRQ0AIAMoAgQgAUcNAEEAQQAoAvQJIgM2AvAJAkAgA0UNACADQQA2AiAMAQtBAEEANgLgCQtBAEEALwGYCiIDQQFqOwGYCkEAKAKkCiADQQN0aiIDQQZBAkEALQCsChs2AgAgAyABNgIEQQBBADoArAoMCwtBAC8BmAoiAUUNB0EAIAFBf2oiATsBmApBACgCpAogAUH//wNxQQN0aigCAEEERg0EDAoLQScQGgwJC0EiEBoMCAsgAkEvRw0HAkACQCABLwEEIgFBKkYNACABQS9HDQEQGAwKC0EBEBkMCQsCQAJAAkACQEEAKAKcCiIBLwEAIgMQG0UNAAJAAkAgA0FVag4EAAkBAwkLIAFBfmovAQBBK0YNAwwICyABQX5qLwEAQS1GDQIMBwsgA0EpRw0BQQAoAqQKQQAvAZgKIgJBA3RqKAIEEBxFDQIMBgsgAUF+ai8BAEFQakH//wNxQQpPDQULQQAvAZgKIQILAkACQCACQf//A3EiAkUNACADQeYARw0AQQAoAqQKIAJBf2pBA3RqIgQoAgBBAUcNACABQX5qLwEAQe8ARw0BIAQoAgRBlghBAxAdRQ0BDAULIANB/QBHDQBBACgCpAogAkEDdGoiAigCBBAeDQQgAigCAEEGRg0ECyABEB8NAyADRQ0DIANBL0ZBAC0AoApBAEdxDQMCQEEAKAL4CSICRQ0AIAEgAigCAEkNACABIAIoAgRNDQQLIAFBfmohAUEAKALcCSECAkADQCABQQJqIgQgAk0NAUEAIAE2ApwKIAEvAQAhAyABQX5qIgQhASADECBFDQALIARBAmohBAsCQCADQf//A3EQIUUNACAEQX5qIQECQANAIAFBAmoiAyACTQ0BQQAgATYCnAogAS8BACEDIAFBfmoiBCEBIAMQIQ0ACyAEQQJqIQMLIAMQIg0EC0EAQQE6AKAKDAcLQQAoAqQKQQAvAZgKIgFBA3QiA2pBACgCnAo2AgRBACABQQFqOwGYCkEAKAKkCiADakEDNgIACxAjDAULQQAtAPwJQQAvAZYKQQAvAZgKcnJFIQIMBwsQJEEAQQA6AKAKDAMLECVBACECDAULIANBoAFHDQELQQBBAToArAoLQQBBACgCsAo2ApwKC0EAKAKwCiEBDAALCyAAQYDQAGokACACCxoAAkBBACgC3AkgAEcNAEEBDwsgAEF+ahAmC/4KAQZ/QQBBACgCsAoiAEEMaiIBNgKwCkEAKAL4CSECQQEQKSEDAkACQAJAAkACQAJAAkACQAJAQQAoArAKIgQgAUcNACADEChFDQELAkACQAJAAkACQAJAAkAgA0EqRg0AIANB+wBHDQFBACAEQQJqNgKwCkEBECkhA0EAKAKwCiEEA0ACQAJAIANB//8DcSIDQSJGDQAgA0EnRg0AIAMQLBpBACgCsAohAwwBCyADEBpBAEEAKAKwCkECaiIDNgKwCgtBARApGgJAIAQgAxAtIgNBLEcNAEEAQQAoArAKQQJqNgKwCkEBECkhAwsgA0H9AEYNA0EAKAKwCiIFIARGDQ8gBSEEIAVBACgCtApNDQAMDwsLQQAgBEECajYCsApBARApGkEAKAKwCiIDIAMQLRoMAgtBAEEAOgCUCgJAAkACQAJAAkACQCADQZ9/ag4MAgsEAQsDCwsLCwsFAAsgA0H2AEYNBAwKC0EAIARBDmoiAzYCsAoCQAJAAkBBARApQZ9/ag4GABICEhIBEgtBACgCsAoiBSkAAkLzgOSD4I3AMVINESAFLwEKECFFDRFBACAFQQpqNgKwCkEAECkaC0EAKAKwCiIFQQJqQbIIQQ4QLw0QIAUvARAiAkF3aiIBQRdLDQ1BASABdEGfgIAEcUUNDQwOC0EAKAKwCiIFKQACQuyAhIOwjsA5Ug0PIAUvAQoiAkF3aiIBQRdNDQYMCgtBACAEQQpqNgKwCkEAECkaQQAoArAKIQQLQQAgBEEQajYCsAoCQEEBECkiBEEqRw0AQQBBACgCsApBAmo2ArAKQQEQKSEEC0EAKAKwCiEDIAQQLBogA0EAKAKwCiIEIAMgBBACQQBBACgCsApBfmo2ArAKDwsCQCAEKQACQuyAhIOwjsA5Ug0AIAQvAQoQIEUNAEEAIARBCmo2ArAKQQEQKSEEQQAoArAKIQMgBBAsGiADQQAoArAKIgQgAyAEEAJBAEEAKAKwCkF+ajYCsAoPC0EAIARBBGoiBDYCsAoLQQAgBEEGajYCsApBAEEAOgCUCkEBECkhBEEAKAKwCiEDIAQQLCEEQQAoArAKIQIgBEHf/wNxIgFB2wBHDQNBACACQQJqNgKwCkEBECkhBUEAKAKwCiEDQQAhBAwEC0EAQQE6AIwKQQBBACgCsApBAmo2ArAKC0EBECkhBEEAKAKwCiEDAkAgBEHmAEcNACADQQJqQawIQQYQLw0AQQAgA0EIajYCsAogAEEBEClBABArIAJBEGpB5AkgAhshAwNAIAMoAgAiA0UNBSADQgA3AgggA0EQaiEDDAALC0EAIANBfmo2ArAKDAMLQQEgAXRBn4CABHFFDQMMBAtBASEECwNAAkACQCAEDgIAAQELIAVB//8DcRAsGkEBIQQMAQsCQAJAQQAoArAKIgQgA0YNACADIAQgAyAEEAJBARApIQQCQCABQdsARw0AIARBIHJB/QBGDQQLQQAoArAKIQMCQCAEQSxHDQBBACADQQJqNgKwCkEBECkhBUEAKAKwCiEDIAVBIHJB+wBHDQILQQAgA0F+ajYCsAoLIAFB2wBHDQJBACACQX5qNgKwCg8LQQAhBAwACwsPCyACQaABRg0AIAJB+wBHDQQLQQAgBUEKajYCsApBARApIgVB+wBGDQMMAgsCQCACQVhqDgMBAwEACyACQaABRw0CC0EAIAVBEGo2ArAKAkBBARApIgVBKkcNAEEAQQAoArAKQQJqNgKwCkEBECkhBQsgBUEoRg0BC0EAKAKwCiEBIAUQLBpBACgCsAoiBSABTQ0AIAQgAyABIAUQAkEAQQAoArAKQX5qNgKwCg8LIAQgA0EAQQAQAkEAIARBDGo2ArAKDwsQJQuFDAEKf0EAQQAoArAKIgBBDGoiATYCsApBARApIQJBACgCsAohAwJAAkACQAJAAkACQAJAAkAgAkEuRw0AQQAgA0ECajYCsAoCQEEBECkiAkHkAEYNAAJAIAJB8wBGDQAgAkHtAEcNB0EAKAKwCiICQQJqQZwIQQYQLw0HAkBBACgCnAoiAxAqDQAgAy8BAEEuRg0ICyAAIAAgAkEIakEAKALUCRABDwtBACgCsAoiAkECakGiCEEKEC8NBgJAQQAoApwKIgMQKg0AIAMvAQBBLkYNBwtBACEEQQAgAkEMajYCsApBASEFQQUhBkEBECkhAkEAIQdBASEIDAILQQAoArAKIgIpAAJC5YCYg9CMgDlSDQUCQEEAKAKcCiIDECoNACADLwEAQS5GDQYLQQAhBEEAIAJBCmo2ArAKQQIhCEEHIQZBASEHQQEQKSECQQEhBQwBCwJAAkACQAJAIAJB8wBHDQAgAyABTQ0AIANBAmpBoghBChAvDQACQCADLwEMIgRBd2oiB0EXSw0AQQEgB3RBn4CABHENAgsgBEGgAUYNAQtBACEHQQchBkEBIQQgAkHkAEYNAQwCC0EAIQRBACADQQxqIgI2ArAKQQEhBUEBECkhCQJAQQAoArAKIgYgAkYNAEHmACECAkAgCUHmAEYNAEEFIQZBACEHQQEhCCAJIQIMBAtBACEHQQEhCCAGQQJqQawIQQYQLw0EIAYvAQgQIEUNBAtBACEHQQAgAzYCsApBByEGQQEhBEEAIQVBACEIIAkhAgwCCyADIABBCmpNDQBBACEIQeQAIQICQCADKQACQuWAmIPQjIA5Ug0AAkACQCADLwEKIgRBd2oiB0EXSw0AQQEgB3RBn4CABHENAQtBACEIIARBoAFHDQELQQAhBUEAIANBCmo2ArAKQSohAkEBIQdBAiEIQQEQKSIJQSpGDQRBACADNgKwCkEBIQRBACEHQQAhCCAJIQIMAgsgAyEGQQAhBwwCC0EAIQVBACEICwJAIAJBKEcNAEEAKAKkCkEALwGYCiICQQN0aiIDQQAoArAKNgIEQQAgAkEBajsBmAogA0EFNgIAQQAoApwKLwEAQS5GDQRBAEEAKAKwCiIDQQJqNgKwCkEBECkhAiAAQQAoArAKQQAgAxABAkACQCAFDQBBACgC8AkhAQwBC0EAKALwCSIBIAY2AhwLQQBBAC8BlgoiA0EBajsBlgpBACgCqAogA0ECdGogATYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKwCkF+ajYCsAoPCyACEBpBAEEAKAKwCkECaiICNgKwCgJAAkACQEEBEClBV2oOBAECAgACC0EAQQAoArAKQQJqNgKwCkEBECkaQQAoAvAJIgMgAjYCBCADQQE6ABggA0EAKAKwCiICNgIQQQAgAkF+ajYCsAoPC0EAKALwCSIDIAI2AgQgA0EBOgAYQQBBAC8BmApBf2o7AZgKIANBACgCsApBAmo2AgxBAEEALwGWCkF/ajsBlgoPC0EAQQAoArAKQX5qNgKwCg8LAkAgBEEBcyACQfsAR3INAEEAKAKwCiECQQAvAZgKDQUDQAJAAkACQCACQQAoArQKTw0AQQEQKSICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKwCkECajYCsAoLQQEQKSEDQQAoArAKIQICQCADQeYARw0AIAJBAmpBrAhBBhAvDQcLQQAgAkEIajYCsAoCQEEBECkiAkEiRg0AIAJBJ0cNBwsgACACQQAQKw8LIAIQGgtBAEEAKAKwCkECaiICNgKwCgwACwsCQAJAIAJBWWoOBAMBAQMACyACQSJGDQILQQAoArAKIQYLIAYgAUcNAEEAIABBCmo2ArAKDwsgAkEqRyAHcQ0DQQAvAZgKQf//A3ENA0EAKAKwCiECQQAoArQKIQEDQCACIAFPDQECQAJAIAIvAQAiA0EnRg0AIANBIkcNAQsgACADIAgQKw8LQQAgAkECaiICNgKwCgwACwsQJQsPC0EAIAJBfmo2ArAKDwtBAEEAKAKwCkF+ajYCsAoLRwEDf0EAKAKwCkECaiEAQQAoArQKIQECQANAIAAiAkF+aiABTw0BIAJBAmohACACLwEAQXZqDgQBAAABAAsLQQAgAjYCsAoLmAEBA39BAEEAKAKwCiIBQQJqNgKwCiABQQZqIQFBACgCtAohAgNAAkACQAJAIAFBfGogAk8NACABQX5qLwEAIQMCQAJAIAANACADQSpGDQEgA0F2ag4EAgQEAgQLIANBKkcNAwsgAS8BAEEvRw0CQQAgAUF+ajYCsAoMAQsgAUF+aiEBC0EAIAE2ArAKDwsgAUECaiEBDAALC4gBAQR/QQAoArAKIQFBACgCtAohAgJAAkADQCABIgNBAmohASADIAJPDQEgAS8BACIEIABGDQICQCAEQdwARg0AIARBdmoOBAIBAQIBCyADQQRqIQEgAy8BBEENRw0AIANBBmogASADLwEGQQpGGyEBDAALC0EAIAE2ArAKECUPC0EAIAE2ArAKC2wBAX8CQAJAIABBX2oiAUEFSw0AQQEgAXRBMXENAQsgAEFGakH//wNxQQZJDQAgAEEpRyAAQVhqQf//A3FBB0lxDQACQCAAQaV/ag4EAQAAAQALIABB/QBHIABBhX9qQf//A3FBBElxDwtBAQsuAQF/QQEhAQJAIABBpglBBRAdDQAgAEGWCEEDEB0NACAAQbAJQQIQHSEBCyABC0YBA39BACEDAkAgACACQQF0IgJrIgRBAmoiAEEAKALcCSIFSQ0AIAAgASACEC8NAAJAIAAgBUcNAEEBDwsgBBAmIQMLIAMLgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQbwJQQYQHQ8LIABBfmovAQBBPUYPCyAAQX5qQbQJQQQQHQ8LIABBfmpByAlBAxAdDwtBACEBCyABC7QDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQAJAIAAvAQBBnH9qDhQAAQIJCQkJAwkJBAUJCQYJBwkJCAkLAkACQCAAQX5qLwEAQZd/ag4EAAoKAQoLIABBfGpByghBAhAdDwsgAEF8akHOCEEDEB0PCwJAAkACQCAAQX5qLwEAQY1/ag4DAAECCgsCQCAAQXxqLwEAIgJB4QBGDQAgAkHsAEcNCiAAQXpqQeUAECcPCyAAQXpqQeMAECcPCyAAQXxqQdQIQQQQHQ8LIABBfGpB3AhBBhAdDwsgAEF+ai8BAEHvAEcNBiAAQXxqLwEAQeUARw0GAkAgAEF6ai8BACICQfAARg0AIAJB4wBHDQcgAEF4akHoCEEGEB0PCyAAQXhqQfQIQQIQHQ8LIABBfmpB+AhBBBAdDwtBASEBIABBfmoiAEHpABAnDQQgAEGACUEFEB0PCyAAQX5qQeQAECcPCyAAQX5qQYoJQQcQHQ8LIABBfmpBmAlBBBAdDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECcPCyAAQXxqQaAJQQMQHSEBCyABCzQBAX9BASEBAkAgAEF3akH//wNxQQVJDQAgAEGAAXJBoAFGDQAgAEEuRyAAEChxIQELIAELMAEBfwJAAkAgAEF3aiIBQRdLDQBBASABdEGNgIAEcQ0BCyAAQaABRg0AQQAPC0EBC04BAn9BACEBAkACQCAALwEAIgJB5QBGDQAgAkHrAEcNASAAQX5qQfgIQQQQHQ8LIABBfmovAQBB9QBHDQAgAEF8akHcCEEGEB0hAQsgAQveAQEEf0EAKAKwCiEAQQAoArQKIQECQAJAAkADQCAAIgJBAmohACACIAFPDQECQAJAAkAgAC8BACIDQaR/ag4FAgMDAwEACyADQSRHDQIgAi8BBEH7AEcNAkEAIAJBBGoiADYCsApBAEEALwGYCiICQQFqOwGYCkEAKAKkCiACQQN0aiICQQQ2AgAgAiAANgIEDwtBACAANgKwCkEAQQAvAZgKQX9qIgA7AZgKQQAoAqQKIABB//8DcUEDdGooAgBBA0cNAwwECyACQQRqIQAMAAsLQQAgADYCsAoLECULC3ABAn8CQAJAA0BBAEEAKAKwCiIAQQJqIgE2ArAKIABBACgCtApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQLhoMAQtBACAAQQRqNgKwCgwACwsQJQsLNQEBf0EAQQE6APwJQQAoArAKIQBBAEEAKAK0CkECajYCsApBACAAQQAoAtwJa0EBdTYCkAoLQwECf0EBIQECQCAALwEAIgJBd2pB//8DcUEFSQ0AIAJBgAFyQaABRg0AQQAhASACEChFDQAgAkEuRyAAECpyDwsgAQs9AQJ/QQAhAgJAQQAoAtwJIgMgAEsNACAALwEAIAFHDQACQCADIABHDQBBAQ8LIABBfmovAQAQICECCyACC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC5wBAQN/QQAoArAKIQECQANAAkACQCABLwEAIgJBL0cNAAJAIAEvAQIiAUEqRg0AIAFBL0cNBBAYDAILIAAQGQwBCwJAAkAgAEUNACACQXdqIgFBF0sNAUEBIAF0QZ+AgARxRQ0BDAILIAIQIUUNAwwBCyACQaABRw0CC0EAQQAoArAKIgNBAmoiATYCsAogA0EAKAK0CkkNAAsLIAILMQEBf0EAIQECQCAALwEAQS5HDQAgAEF+ai8BAEEuRw0AIABBfGovAQBBLkYhAQsgAQumBAEBfwJAIAFBIkYNACABQSdGDQAQJQ8LQQAoArAKIQMgARAaIAAgA0ECakEAKAKwCkEAKALQCRABAkAgAkEBSA0AQQAoAvAJQQRBBiACQQFGGzYCHAtBAEEAKAKwCkECajYCsAoCQAJAAkACQEEAECkiAUHhAEYNACABQfcARg0BQQAoArAKIQEMAgtBACgCsAoiAUECakHACEEKEC8NAUEGIQIMAgtBACgCsAoiAS8BAkHpAEcNACABLwEEQfQARw0AQQQhAiABLwEGQegARg0BC0EAIAFBfmo2ArAKDwtBACABIAJBAXRqNgKwCgJAQQEQKUH7AEYNAEEAIAE2ArAKDwtBACgCsAoiACECA0BBACACQQJqNgKwCgJAAkACQEEBECkiAkEiRg0AIAJBJ0cNAUEnEBpBAEEAKAKwCkECajYCsApBARApIQIMAgtBIhAaQQBBACgCsApBAmo2ArAKQQEQKSECDAELIAIQLCECCwJAIAJBOkYNAEEAIAE2ArAKDwtBAEEAKAKwCkECajYCsAoCQEEBECkiAkEiRg0AIAJBJ0YNAEEAIAE2ArAKDwsgAhAaQQBBACgCsApBAmo2ArAKAkACQEEBECkiAkEsRg0AIAJB/QBGDQFBACABNgKwCg8LQQBBACgCsApBAmo2ArAKQQEQKUH9AEYNAEEAKAKwCiECDAELC0EAKALwCSIBIAA2AhAgAUEAKAKwCkECajYCDAttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAoDQJBACECQQBBACgCsAoiAEECajYCsAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC6sBAQR/AkACQEEAKAKwCiICLwEAIgNB4QBGDQAgASEEIAAhBQwBC0EAIAJBBGo2ArAKQQEQKSECQQAoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=`,typeof Buffer<`u`?Buffer.from(e,`base64`):Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));var e})()).then(WebAssembly.instantiate).then((({exports:e})=>{})),I(),I(),ie.from(`version https://git-lfs.github.com`),I(),$(`vite:optimize-deps`);var Oi=c(((e,t)=>{t.exports={name:`dotenv`,version:`17.2.3`,description:`Loads environment variables from .env file`,main:`lib/main.js`,types:`lib/main.d.ts`,exports:{".":{types:`./lib/main.d.ts`,require:`./lib/main.js`,default:`./lib/main.js`},"./config":`./config.js`,"./config.js":`./config.js`,"./lib/env-options":`./lib/env-options.js`,"./lib/env-options.js":`./lib/env-options.js`,"./lib/cli-options":`./lib/cli-options.js`,"./lib/cli-options.js":`./lib/cli-options.js`,"./package.json":`./package.json`},scripts:{"dts-check":`tsc --project tests/types/tsconfig.json`,lint:`standard`,pretest:`npm run lint && npm run dts-check`,test:`tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000`,"test:coverage":`tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov`,prerelease:`npm test`,release:`standard-version`},repository:{type:`git`,url:`git://github.com/motdotla/dotenv.git`},homepage:`https://github.com/motdotla/dotenv#readme`,funding:`https://dotenvx.com`,keywords:[`dotenv`,`env`,`.env`,`environment`,`variables`,`config`,`settings`],readmeFilename:`README.md`,license:`BSD-2-Clause`,devDependencies:{"@types/node":`^18.11.3`,decache:`^4.6.2`,sinon:`^14.0.1`,standard:`^17.0.0`,"standard-version":`^9.5.0`,tap:`^19.2.0`,typescript:`^4.8.4`},engines:{node:`>=12`},browser:{fs:!1}}})),ki=c(((e,t)=>{let n=r(`fs`),i=r(`path`),a=r(`os`),o=r(`crypto`),s=Oi().version,c=[`🔐 encrypt with Dotenvx: https://dotenvx.com`,`🔐 prevent committing .env to code: https://dotenvx.com/precommit`,`🔐 prevent building .env in docker: https://dotenvx.com/prebuild`,`📡 add observability to secrets: https://dotenvx.com/ops`,`👥 sync secrets across teammates & machines: https://dotenvx.com/ops`,`🗂️ backup and recover secrets: https://dotenvx.com/ops`,`✅ audit secrets and track compliance: https://dotenvx.com/ops`,`🔄 add secrets lifecycle management: https://dotenvx.com/ops`,`🔑 add access controls to secrets: https://dotenvx.com/ops`,"🛠️ run anywhere with `dotenvx run -- yourcommand`",`⚙️ specify custom .env file path with { path: '/custom/path/.env' }`,`⚙️ enable debug logging with { debug: true }`,`⚙️ override existing env vars with { override: true }`,`⚙️ suppress all logs with { quiet: true }`,`⚙️ write to custom object with { processEnv: myObject }`,`⚙️ load multiple .env files with { path: ['.env.local', '.env'] }`];function l(){return c[Math.floor(Math.random()*c.length)]}function u(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function d(){return process.stdout.isTTY}function f(e){return d()?`\x1b[2m${e}\x1b[0m`:e}let p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function m(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
9
|
-
`);let r;for(;(r=p.exec(n))!=null;){let e=r[1],n=r[2]||``;n=n.trim();let i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,`$2`),i===`"`&&(n=n.replace(/\\n/g,`
|
|
10
|
-
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function h(e){e||={};let t=x(e);e.path=t;let n=D.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=y(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=b(n,r[e].trim());a=D.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return D.parse(a)}function g(e){console.error(`[dotenv@${s}][WARN] ${e}`)}function _(e){console.log(`[dotenv@${s}][DEBUG] ${e}`)}function v(e){console.log(`[dotenv@${s}] ${e}`)}function y(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function b(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function x(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=i.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function S(e){return e[0]===`~`?i.join(a.homedir(),e.slice(1)):e}function C(e){let t=u(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=u(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&v(`Loading env from encrypted .env.vault`);let r=D._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),D.populate(i,r,e),{parsed:r}}function w(e){let t=i.resolve(process.cwd(),`.env`),r=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=u(a.DOTENV_CONFIG_DEBUG||e&&e.debug),s=u(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:o&&_(`No encoding is specified. UTF-8 is used by default`);let c=[t];if(e&&e.path)if(!Array.isArray(e.path))c=[S(e.path)];else{c=[];for(let t of e.path)c.push(S(t))}let d,p={};for(let t of c)try{let i=D.parse(n.readFileSync(t,{encoding:r}));D.populate(p,i,e)}catch(e){o&&_(`Failed to load ${t} ${e.message}`),d=e}let m=D.populate(a,p,e);if(o=u(a.DOTENV_CONFIG_DEBUG||o),s=u(a.DOTENV_CONFIG_QUIET||s),o||!s){let e=Object.keys(m).length,t=[];for(let e of c)try{let n=i.relative(process.cwd(),e);t.push(n)}catch(t){o&&_(`Failed to load ${e} ${t.message}`),d=t}v(`injecting env (${e}) from ${t.join(`,`)} ${f(`-- tip: ${l()}`)}`)}return d?{parsed:p,error:d}:{parsed:p}}function T(e){if(y(e).length===0)return D.configDotenv(e);let t=x(e);return t?D._configVault(e):(g(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),D.configDotenv(e))}function E(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),a=r.subarray(-16);r=r.subarray(12,-16);try{let e=o.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(a),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function ee(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&_(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}let D={configDotenv:w,_configVault:C,_parseVault:h,config:T,decrypt:E,parse:m,populate:ee};t.exports.configDotenv=D.configDotenv,t.exports._configVault=D._configVault,t.exports._parseVault=D._parseVault,t.exports.config=D.config,t.exports.decrypt=D.decrypt,t.exports.parse=D.parse,t.exports.populate=D.populate,t.exports=D})),Ai=c(((e,t)=>{function n(e){return e.replace(/\\\$/g,`$`)}function r(e,t,n){let r={...n,...t},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,a=e,o,s=new Set;for(;(o=i.exec(a))!==null;){s.add(a);let[e,t,c]=o,l=t||c,u=l.match(/(:\+|\+|:-|-)/),d=u?u[0]:null,f=l.split(d),p,m,h=f.shift();if([`:+`,`+`].includes(d)?(p=r[h]?f.join(d):``,m=null):(p=f.join(d),m=r[h]),a=m?s.has(m)?a.replace(e,p):a.replace(e,m):a.replace(e,p),a===n[h])break;i.lastIndex=0}return a}function i(e){let t=process.env;for(let i in e&&e.processEnv!=null&&(t=e.processEnv),e.parsed){let a=e.parsed[i];a=t[i]&&t[i]!==a?t[i]:r(a,t,e.parsed),e.parsed[i]=n(a)}for(let n in e.parsed)t[n]=e.parsed[n];return e}t.exports.expand=i}));ki(),Ai(),$(`vite:env`),I(),I();
|
|
11
|
-
/*!
|
|
12
|
-
* encodeurl
|
|
13
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
14
|
-
* MIT Licensed
|
|
15
|
-
*/
|
|
16
|
-
var ji=c(((e,t)=>{t.exports=a;var n=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,r=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,i=`$1�$2`;function a(e){return String(e).replace(r,i).replace(n,encodeURI)}})),Mi=c(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}})),Ni=c(((e,t)=>{t.exports=n;function n(e,t){if(!Array.isArray(e))throw TypeError(`arg must be an array of [ee, events...] arrays`);for(var n=[],i=0;i<e.length;i++){var a=e[i];if(!Array.isArray(a)||a.length<2)throw TypeError(`each array member must be [ee, events...]`);for(var o=a[0],s=1;s<a.length;s++){var c=a[s],l=r(c,u);o.on(c,l),n.push({ee:o,event:c,fn:l})}}function u(){d(),t.apply(null,arguments)}function d(){for(var e,t=0;t<n.length;t++)e=n[t],e.ee.removeListener(e.event,e.fn)}function f(e){t=e}return f.cancel=d,f}function r(e,t){return function(n){for(var r=Array(arguments.length),i=this,a=e===`error`?n:null,o=0;o<r.length;o++)r[o]=arguments[o];t(a,i,e,r)}}})),Pi=c(((e,t)=>{t.exports=i,t.exports.isFinished=a;var n=Ni(),r=typeof setImmediate==`function`?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function i(e,t){return a(e)===!1?(s(e,t),e):(r(t,null,e),e)}function a(e){var t=e.socket;if(typeof e.finished==`boolean`)return!!(e.finished||t&&!t.writable);if(typeof e.complete==`boolean`)return!!(e.upgrade||!t||!t.readable||e.complete&&!e.readable)}function o(e,t){var r,i,a=!1;function o(e){r.cancel(),i.cancel(),a=!0,t(e)}r=i=n([[e,`end`,`finish`]],o);function s(t){e.removeListener(`socket`,s),!a&&r===i&&(i=n([[t,`error`,`close`]],o))}if(e.socket){s(e.socket);return}e.on(`socket`,s),e.socket===void 0&&l(e,s)}function s(e,t){var n=e.__onFinished;(!n||!n.queue)&&(n=e.__onFinished=c(e),o(e,n)),n.queue.push(t)}function c(e){function t(n){if(e.__onFinished===t&&(e.__onFinished=null),t.queue){var r=t.queue;t.queue=null;for(var i=0;i<r.length;i++)r[i](n,e)}}return t.queue=[],t}function l(e,t){var n=e.assignSocket;typeof n==`function`&&(e.assignSocket=function(e){n.call(this,e),t(e)})}})),Fi=c(((e,t)=>{var n=r(`url`),i=n.parse,a=n.Url;t.exports=o,t.exports.original=s;function o(e){var t=e.url;if(t!==void 0){var n=e._parsedUrl;return l(t,n)?n:(n=c(t),n._raw=t,e._parsedUrl=n)}}function s(e){var t=e.originalUrl;if(typeof t!=`string`)return o(e);var n=e._parsedOriginalUrl;return l(t,n)?n:(n=c(t),n._raw=t,e._parsedOriginalUrl=n)}function c(e){if(typeof e!=`string`||e.charCodeAt(0)!==47)return i(e);for(var t=e,n=null,r=null,o=1;o<e.length;o++)switch(e.charCodeAt(o)){case 63:r===null&&(t=e.substring(0,o),n=e.substring(o+1),r=e.substring(o));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return i(e)}var s=a===void 0?{}:new a;return s.path=e,s.href=e,s.pathname=t,r!==null&&(s.query=n,s.search=r),s}function l(e,t){return typeof t==`object`&&!!t&&(a===void 0||t instanceof a)&&t._raw===e}})),Ii=c(((e,t)=>{t.exports={100:`Continue`,101:`Switching Protocols`,102:`Processing`,103:`Early Hints`,200:`OK`,201:`Created`,202:`Accepted`,203:`Non-Authoritative Information`,204:`No Content`,205:`Reset Content`,206:`Partial Content`,207:`Multi-Status`,208:`Already Reported`,226:`IM Used`,300:`Multiple Choices`,301:`Moved Permanently`,302:`Found`,303:`See Other`,304:`Not Modified`,305:`Use Proxy`,306:`(Unused)`,307:`Temporary Redirect`,308:`Permanent Redirect`,400:`Bad Request`,401:`Unauthorized`,402:`Payment Required`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,406:`Not Acceptable`,407:`Proxy Authentication Required`,408:`Request Timeout`,409:`Conflict`,410:`Gone`,411:`Length Required`,412:`Precondition Failed`,413:`Payload Too Large`,414:`URI Too Long`,415:`Unsupported Media Type`,416:`Range Not Satisfiable`,417:`Expectation Failed`,418:`I'm a teapot`,421:`Misdirected Request`,422:`Unprocessable Entity`,423:`Locked`,424:`Failed Dependency`,425:`Unordered Collection`,426:`Upgrade Required`,428:`Precondition Required`,429:`Too Many Requests`,431:`Request Header Fields Too Large`,451:`Unavailable For Legal Reasons`,500:`Internal Server Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`,505:`HTTP Version Not Supported`,506:`Variant Also Negotiates`,507:`Insufficient Storage`,508:`Loop Detected`,509:`Bandwidth Limit Exceeded`,510:`Not Extended`,511:`Network Authentication Required`}})),Li=c(((e,t)=>{var n=Ii();t.exports=i,i.STATUS_CODES=n,i.codes=r(i,n),i.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},i.empty={204:!0,205:!0,304:!0},i.retry={502:!0,503:!0,504:!0};function r(e,t){var n=[];return Object.keys(t).forEach(function(r){var i=t[r],a=Number(r);e[a]=i,e[i]=a,e[i.toLowerCase()]=a,n.push(a)}),n}function i(e){if(typeof e==`number`){if(!i[e])throw Error(`invalid status code: `+e);return e}if(typeof e!=`string`)throw TypeError(`code must be a number or string`);var t=parseInt(e,10);if(!isNaN(t)){if(!i[t])throw Error(`invalid status code: `+t);return t}if(t=i[e.toLowerCase()],!t)throw Error(`invalid status message: "`+e+`"`);return t}})),Ri=c(((e,t)=>{t.exports=r;function n(e){for(var t=e.listeners(`data`),n=0;n<t.length;n++)if(t[n].name===`ondata`)return!0;return!1}function r(e){if(!e)throw TypeError(`argument stream is required`);if(typeof e.unpipe==`function`){e.unpipe();return}if(n(e))for(var t,r=e.listeners(`close`),i=0;i<r.length;i++)t=r[i],!(t.name!==`cleanup`&&t.name!==`onclose`)&&t.call(e)}})),zi=c(((e,t)=>{var r=(Ir(),n(Sr))(`finalhandler`),i=ji(),a=Mi(),o=Pi(),s=Fi(),c=Li(),l=Ri(),u=/\x20{2}/g,d=/\n/g,f=typeof setImmediate==`function`?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))},p=o.isFinished;function m(e){return`<!DOCTYPE html>
|
|
17
|
-
<html lang="en">
|
|
18
|
-
<head>
|
|
19
|
-
<meta charset="utf-8">
|
|
20
|
-
<title>Error</title>
|
|
21
|
-
</head>
|
|
22
|
-
<body>
|
|
23
|
-
<pre>`+a(e).replace(d,`<br>`).replace(u,` `)+`</pre>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
26
|
-
`}t.exports=h;function h(e,t,n){var a=n||{},o=a.env||process.env.NODE_ENV||`development`,s=a.onerror;return function(n){var a,c,l;if(!n&&x(t)){r(`cannot 404 after headers sent`);return}if(n?(l=v(n),l===void 0?l=b(t):a=g(n),c=_(n,l,o)):(l=404,c=`Cannot `+e.method+` `+i(y(e))),r(`default %s`,l),n&&s&&f(s,n,e,t),x(t)){r(`cannot %d after headers sent`,l),e.socket.destroy();return}S(e,t,l,a,c)}}function g(e){if(!(!e.headers||typeof e.headers!=`object`)){for(var t=Object.create(null),n=Object.keys(e.headers),r=0;r<n.length;r++){var i=n[r];t[i]=e.headers[i]}return t}}function _(e,t,n){var r;return n!==`production`&&(r=e.stack,!r&&typeof e.toString==`function`&&(r=e.toString())),r||c[t]}function v(e){if(typeof e.status==`number`&&e.status>=400&&e.status<600)return e.status;if(typeof e.statusCode==`number`&&e.statusCode>=400&&e.statusCode<600)return e.statusCode}function y(e){try{return s.original(e).pathname}catch{return`resource`}}function b(e){var t=e.statusCode;return(typeof t!=`number`||t<400||t>599)&&(t=500),t}function x(e){return typeof e.headersSent==`boolean`?e.headersSent:!!e._header}function S(e,t,n,r,i){function a(){var a=m(i);if(t.statusCode=n,t.statusMessage=c[n],C(t,r),t.setHeader(`Content-Security-Policy`,`default-src 'none'`),t.setHeader(`X-Content-Type-Options`,`nosniff`),t.setHeader(`Content-Type`,`text/html; charset=utf-8`),t.setHeader(`Content-Length`,Buffer.byteLength(a,`utf8`)),e.method===`HEAD`){t.end();return}t.end(a,`utf8`)}if(p(e)){a();return}l(e),o(e,a),e.resume()}function C(e,t){if(t)for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];e.setHeader(i,t[i])}}})),Bi=c(((e,t)=>{e=t.exports=function(e,t){if(e&&t)for(var n in t)e[n]=t[n];return e}})),Vi=c(((e,t)=>{var i=(Ir(),n(Sr))(`connect:dispatcher`),a=r(`events`).EventEmitter,o=zi(),s=r(`http`),c=Bi(),l=Fi();t.exports=p;var u=process.env.NODE_ENV||`development`,d={},f=typeof setImmediate==`function`?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function p(){function e(t,n,r){e.handle(t,n,r)}return c(e,d),c(e,a.prototype),e.route=`/`,e.stack=[],e}d.use=function(e,t){var n=t,r=e;if(typeof e!=`string`&&(n=e,r=`/`),typeof n.handle==`function`){var a=n;a.route=r,n=function(e,t,n){a.handle(e,t,n)}}return n instanceof s.Server&&(n=n.listeners(`request`)[0]),r[r.length-1]===`/`&&(r=r.slice(0,-1)),i(`use %s %s`,r||`/`,n.name||`anonymous`),this.stack.push({route:r,handle:n}),this},d.handle=function(e,t,n){var r=0,i=g(e.url)||``,a=``,s=!1,c=this.stack,d=n||o(e,t,{env:u,onerror:h});e.originalUrl=e.originalUrl||e.url;function p(n){s&&=(e.url=e.url.substr(1),!1),a.length!==0&&(e.url=i+a+e.url.substr(i.length),a=``);var o=c[r++];if(!o){f(d,n);return}var u=l(e).pathname||`/`,h=o.route;if(u.toLowerCase().substr(0,h.length)!==h.toLowerCase())return p(n);var g=u.length>h.length&&u[h.length];if(g&&g!==`/`&&g!==`.`)return p(n);h.length!==0&&h!==`/`&&(a=h,e.url=i+e.url.substr(i.length+a.length),!i&&e.url[0]!==`/`&&(e.url=`/`+e.url,s=!0)),m(o.handle,h,n,e,t,p)}p()},d.listen=function(){var e=s.createServer(this);return e.listen.apply(e,arguments)};function m(e,t,n,r,a,o){var s=e.length,c=n,l=!!n;i(`%s %s : %s`,e.name||`<anonymous>`,t,r.originalUrl);try{if(l&&s===4){e(n,r,a,o);return}else if(!l&&s<4){e(r,a,o);return}}catch(e){c=e}o(c)}function h(e){u!==`test`&&console.error(e.stack||e.toString())}function g(e){if(!(e.length===0||e[0]===`/`)){var t=e.indexOf(`://`);return t!==-1&&e.lastIndexOf(`?`,t)===-1?e.substr(0,e.indexOf(`/`,3+t)):void 0}}})),Hi=c(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),Ui=c(((e,t)=>{t.exports=a,t.exports.append=r;var n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,t){if(typeof e!=`string`)throw TypeError(`header argument is required`);if(!t)throw TypeError(`field argument is required`);for(var r=Array.isArray(t)?t:i(String(t)),a=0;a<r.length;a++)if(!n.test(r[a]))throw TypeError(`field argument contains an invalid header name`);if(e===`*`)return e;var o=e,s=i(e.toLowerCase());if(r.indexOf(`*`)!==-1||s.indexOf(`*`)!==-1)return`*`;for(var c=0;c<r.length;c++){var l=r[c].toLowerCase();s.indexOf(l)===-1&&(s.push(l),o=o?o+`, `+r[c]:r[c])}return o}function i(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}function a(e,t){if(!e||!e.getHeader||!e.setHeader)throw TypeError(`res argument is required`);var n=e.getHeader(`Vary`)||``;(n=r(Array.isArray(n)?n.join(`, `):String(n),t))&&e.setHeader(`Vary`,n)}})),Wi=c(((e,t)=>{(function(){var e=Hi(),n=Ui(),r={origin:`*`,methods:`GET,HEAD,PUT,PATCH,POST,DELETE`,preflightContinue:!1,optionsSuccessStatus:204};function i(e){return typeof e==`string`||e instanceof String}function a(e,t){if(Array.isArray(t)){for(var n=0;n<t.length;++n)if(a(e,t[n]))return!0;return!1}else if(i(t))return e===t;else if(t instanceof RegExp)return t.test(e);else return!!t}function o(e,t){var n=t.headers.origin,r=[],o;return!e.origin||e.origin===`*`?r.push([{key:`Access-Control-Allow-Origin`,value:`*`}]):i(e.origin)?(r.push([{key:`Access-Control-Allow-Origin`,value:e.origin}]),r.push([{key:`Vary`,value:`Origin`}])):(o=a(n,e.origin),r.push([{key:`Access-Control-Allow-Origin`,value:o?n:!1}]),r.push([{key:`Vary`,value:`Origin`}])),r}function s(e){var t=e.methods;return t.join&&(t=e.methods.join(`,`)),{key:`Access-Control-Allow-Methods`,value:t}}function c(e){return e.credentials===!0?{key:`Access-Control-Allow-Credentials`,value:`true`}:null}function l(e,t){var n=e.allowedHeaders||e.headers,r=[];return n?n.join&&(n=n.join(`,`)):(n=t.headers[`access-control-request-headers`],r.push([{key:`Vary`,value:`Access-Control-Request-Headers`}])),n&&n.length&&r.push([{key:`Access-Control-Allow-Headers`,value:n}]),r}function u(e){var t=e.exposedHeaders;if(t)t.join&&(t=t.join(`,`));else return null;return t&&t.length?{key:`Access-Control-Expose-Headers`,value:t}:null}function d(e){var t=(typeof e.maxAge==`number`||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:`Access-Control-Max-Age`,value:t}:null}function f(e,t){for(var r=0,i=e.length;r<i;r++){var a=e[r];a&&(Array.isArray(a)?f(a,t):a.key===`Vary`&&a.value?n(t,a.value):a.value&&t.setHeader(a.key,a.value))}}function p(e,t,n,r){var i=[];(t.method&&t.method.toUpperCase&&t.method.toUpperCase())===`OPTIONS`?(i.push(o(e,t)),i.push(c(e,t)),i.push(s(e,t)),i.push(l(e,t)),i.push(d(e,t)),i.push(u(e,t)),f(i,n),e.preflightContinue?r():(n.statusCode=e.optionsSuccessStatus,n.setHeader(`Content-Length`,`0`),n.end())):(i.push(o(e,t)),i.push(c(e,t)),i.push(u(e,t)),f(i,n),r())}function m(t){var n=null;return n=typeof t==`function`?t:function(e,n){n(null,t)},function(t,i,a){n(t,function(n,o){if(n)a(n);else{var s=e({},r,o),c=null;s.origin&&typeof s.origin==`function`?c=s.origin:s.origin&&(c=function(e,t){t(null,s.origin)}),c?c(t.headers.origin,function(e,n){e||!n?a(e):(s.origin=n,p(s,t,i,a))}):a()}})}}t.exports=m})()})),Gi=c(((e,t)=>{let n=r(`fs`),{Readable:i}=r(`stream`),a=r(`path`),{promisify:o}=r(`util`),s=r(`picomatch`),c=o(n.readdir),l=o(n.stat),u=o(n.lstat),d=o(n.realpath),f=`READDIRP_RECURSIVE_ERROR`,p=new Set([`ENOENT`,`EPERM`,`EACCES`,`ELOOP`,f]),m=`files`,h=`directories`,g=`files_directories`,_=[m,h,g,`all`],v=e=>p.has(e.code),[y,b]=process.versions.node.split(`.`).slice(0,2).map(e=>Number.parseInt(e,10)),x=process.platform===`win32`&&(y>10||y===10&&b>=5),S=e=>{if(e!==void 0){if(typeof e==`function`)return e;if(typeof e==`string`){let t=s(e.trim());return e=>t(e.basename)}if(Array.isArray(e)){let t=[],n=[];for(let r of e){let e=r.trim();e.charAt(0)===`!`?n.push(s(e.slice(1))):t.push(s(e))}return n.length>0?t.length>0?e=>t.some(t=>t(e.basename))&&!n.some(t=>t(e.basename)):e=>!n.some(t=>t(e.basename)):e=>t.some(t=>t(e.basename))}}};var C=class e extends i{static get defaultOptions(){return{root:`.`,fileFilter:e=>!0,directoryFilter:e=>!0,type:m,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let r={...e.defaultOptions,...t},{root:i,type:o}=r;this._fileFilter=S(r.fileFilter),this._directoryFilter=S(r.directoryFilter);let s=r.lstat?u:l;x?this._stat=e=>s(e,{bigint:!0}):this._stat=s,this._maxDepth=r.depth,this._wantsDir=[h,g,`all`].includes(o),this._wantsFile=[m,g,`all`].includes(o),this._wantsEverything=o===`all`,this._root=a.resolve(i),this._isDirent=`Dirent`in n&&!r.alwaysStat,this._statsProp=this._isDirent?`dirent`:`stats`,this._rdOptions={encoding:`utf8`,withFileTypes:this._isDirent},this.parents=[this._exploreDir(i,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:t,depth:n,files:r=[]}=this.parent||{};if(r.length>0){let i=r.splice(0,e).map(e=>this._formatEntry(e,t));for(let t of await Promise.all(i)){if(this.destroyed)return;let r=await this._getEntryType(t);r===`directory`&&this._directoryFilter(t)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(t.fullPath,n+1)),this._wantsDir&&(this.push(t),e--)):(r===`file`||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{let e=this.parents.pop();if(!e){this.push(null);break}if(this.parent=await e,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let n;try{n=await c(e,this._rdOptions)}catch(e){this._onError(e)}return{files:n,depth:t,path:e}}async _formatEntry(e,t){let n;try{let r=this._isDirent?e.name:e,i=a.resolve(a.join(t,r));n={path:a.relative(this._root,i),fullPath:i,basename:r},n[this._statsProp]=this._isDirent?e:await this._stat(i)}catch(e){this._onError(e)}return n}_onError(e){v(e)&&!this.destroyed?this.emit(`warn`,e):this.destroy(e)}async _getEntryType(e){let t=e&&e[this._statsProp];if(t){if(t.isFile())return`file`;if(t.isDirectory())return`directory`;if(t&&t.isSymbolicLink()){let t=e.fullPath;try{let e=await d(t),n=await u(e);if(n.isFile())return`file`;if(n.isDirectory()){let n=e.length;if(t.startsWith(e)&&t.substr(n,1)===a.sep){let n=Error(`Circular symlink detected: "${t}" points to "${e}"`);return n.code=f,this._onError(n)}return`directory`}}catch(e){this._onError(e)}}}}_includeAsFile(e){let t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}};let w=(e,t={})=>{let n=t.entryType||t.type;if(n===`both`&&(n=g),n&&(t.type=n),e){if(typeof e!=`string`)throw TypeError(`readdirp: root argument must be a string. Usage: readdirp(root, options)`);if(n&&!_.includes(n))throw Error(`readdirp: Invalid type passed. Use one of ${_.join(`, `)}`)}else throw Error(`readdirp: root argument is required. Usage: readdirp(root, options)`);return t.root=e,new C(t)};w.promise=(e,t={})=>new Promise((n,r)=>{let i=[];w(e,t).on(`data`,e=>i.push(e)).on(`end`,()=>n(i)).on(`error`,e=>r(e))}),w.ReaddirpStream=C,w.default=w,t.exports=w})),Ki=c(((e,t)=>{
|
|
27
|
-
/*!
|
|
28
|
-
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
31
|
-
* Released under the MIT License.
|
|
32
|
-
*/
|
|
33
|
-
t.exports=function(e,t){if(typeof e!=`string`)throw TypeError(`expected path to be a string`);if(e===`\\`||e===`/`)return`/`;var n=e.length;if(n<=1)return e;var r=``;if(n>4&&e[3]===`\\`){var i=e[2];(i===`?`||i===`.`)&&e.slice(0,2)===`\\\\`&&(e=e.slice(2),r=`//`)}var a=e.split(/[/\\]+/);return t!==!1&&a[a.length-1]===``&&a.pop(),r+a.join(`/`)}})),qi=c(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});let n=r(`picomatch`),i=Ki(),a={returnIndex:!1},o=e=>Array.isArray(e)?e:[e],s=(e,t)=>{if(typeof e==`function`)return e;if(typeof e==`string`){let r=n(e,t);return t=>e===t||r(t)}return e instanceof RegExp?t=>e.test(t):e=>!1},c=(e,t,n,r)=>{let a=Array.isArray(n),o=a?n[0]:n;if(!a&&typeof o!=`string`)throw TypeError(`anymatch: second argument must be a string: got `+Object.prototype.toString.call(o));let s=i(o,!1);for(let e=0;e<t.length;e++){let n=t[e];if(n(s))return r?-1:!1}let c=a&&[s].concat(n.slice(1));for(let t=0;t<e.length;t++){let n=e[t];if(a?n(...c):n(s))return r?t:!0}return r?-1:!1},l=(e,t,r=a)=>{if(e==null)throw TypeError(`anymatch: specify first argument`);let i=typeof r==`boolean`?{returnIndex:r}:r,l=i.returnIndex||!1,u=o(e),d=u.filter(e=>typeof e==`string`&&e.charAt(0)===`!`).map(e=>e.slice(1)).map(e=>n(e,i)),f=u.filter(e=>typeof e!=`string`||typeof e==`string`&&e.charAt(0)!==`!`).map(e=>s(e,i));return t==null?(e,t=!1)=>c(f,d,e,typeof t==`boolean`?t:!1):c(f,d,t,l)};l.default=l,t.exports=l})),Ji=c(((e,t)=>{
|
|
34
|
-
/*!
|
|
35
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
38
|
-
* Licensed under the MIT License.
|
|
39
|
-
*/
|
|
40
|
-
t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),Yi=c(((e,t)=>{
|
|
41
|
-
/*!
|
|
42
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
45
|
-
* Released under the MIT License.
|
|
46
|
-
*/
|
|
47
|
-
var n=Ji(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;t<e.length;){if(e[t]===`*`||e[t+1]===`?`&&/[\].+)]/.test(e[t])||i!==-1&&e[t]===`[`&&e[t+1]!==`]`&&(i<t&&(i=e.indexOf(`]`,t)),i>t&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(n<t&&(n=e.indexOf(`|`,t)),n!==-1&&e[n+1]!==`)`&&(o=e.indexOf(`)`,n),o>n&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]===`\\`){var n=e[t+1];t+=2;var i=r[n];if(i){var a=e.indexOf(i,t);a!==-1&&(t=a+1)}if(e[t]===`!`)return!0}else t++}return!1};t.exports=function(e,t){if(typeof e!=`string`||e===``)return!1;if(n(e))return!0;var r=i;return t&&t.strict===!1&&(r=a),r(e)}})),Xi=c(((e,t)=>{var n=Yi(),i=r(`path`).posix.dirname,a=r(`os`).platform()===`win32`,o=`/`,s=/\\/g,c=/[\{\[].*[\}\]]$/,l=/(^|[^\\])([\{\[]|\([^\)]+$)/,u=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&a&&e.indexOf(o)<0&&(e=e.replace(s,o)),c.test(e)&&(e+=o),e+=`a`;do e=i(e);while(n(e)||l.test(e));return e.replace(u,`$1`)}})),Zi=c((e=>{e.isInteger=e=>typeof e==`number`?Number.isInteger(e):typeof e==`string`&&e.trim()!==``?Number.isInteger(Number(e)):!1,e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,r=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(n)?!1:(Number(n)-Number(t))/Number(r)>=i,e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type===`open`||r.type===`close`)&&r.escaped!==!0&&(r.value=`\\`+r.value,r.escaped=!0)},e.encloseBrace=e=>e.type===`brace`?e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0):!1,e.isInvalidBrace=e=>e.type===`brace`?e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1:!1,e.isOpenOrClose=e=>e.type===`open`||e.type===`close`?!0:e.open===!0||e.close===!0,e.reduce=e=>e.reduce((e,t)=>(t.type===`text`&&e.push(t.value),t.type===`range`&&(t.type=`text`),e),[]),e.flatten=(...e)=>{let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];if(Array.isArray(i)){n(i);continue}i!==void 0&&t.push(i)}return t};return n(e),t}})),Qi=c(((e,t)=>{let n=Zi();t.exports=(e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i),o=e.invalid===!0&&t.escapeInvalid===!0,s=``;if(e.value)return(a||o)&&n.isOpenOrClose(e)?`\\`+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)s+=r(t);return s};return r(e)}})),$i=c(((e,t)=>{t.exports=function(e){return typeof e==`number`?e-e===0:typeof e==`string`&&e.trim()!==``?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}})),ea=c(((e,t)=>{let n=$i(),r=(e,t,a)=>{if(n(e)===!1)throw TypeError(`toRegexRange: expected the first argument to be a number`);if(t===void 0||e===t)return String(e);if(n(t)===!1)throw TypeError(`toRegexRange: expected the second argument to be a number.`);let o={relaxZeros:!0,...a};typeof o.strictZeros==`boolean`&&(o.relaxZeros=o.strictZeros===!1);let c=String(o.relaxZeros),l=String(o.shorthand),u=String(o.capture),d=String(o.wrap),f=e+`:`+t+`=`+c+l+u+d;if(r.cache.hasOwnProperty(f))return r.cache[f].result;let p=Math.min(e,t),m=Math.max(e,t);if(Math.abs(p-m)===1){let n=e+`|`+t;return o.capture?`(${n})`:o.wrap===!1?n:`(?:${n})`}let h=g(e)||g(t),_={min:e,max:t,a:p,b:m},v=[],y=[];return h&&(_.isPadded=h,_.maxLen=String(_.max).length),p<0&&(y=s(m<0?Math.abs(m):1,Math.abs(p),_,o),p=_.a=0),m>=0&&(v=s(p,m,_,o)),_.negatives=y,_.positives=v,_.result=i(y,v,o),o.capture===!0?_.result=`(${_.result})`:o.wrap!==!1&&v.length+y.length>1&&(_.result=`(?:${_.result})`),r.cache[f]=_,_.result};function i(e,t,n){let r=c(e,t,`-`,!1,n)||[],i=c(t,e,``,!1,n)||[],a=c(e,t,`-?`,!0,n)||[];return r.concat(a).concat(i).join(`|`)}function a(e,t){let n=1,r=1,i=f(e,n),a=new Set([t]);for(;e<=i&&i<=t;)a.add(i),n+=1,i=f(e,n);for(i=p(t+1,r)-1;e<i&&i<=t;)a.add(i),r+=1,i=p(t+1,r)-1;return a=[...a],a.sort(u),a}function o(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=l(e,t),i=r.length,a=``,o=0;for(let e=0;e<i;e++){let[t,i]=r[e];t===i?a+=t:t!==`0`||i!==`9`?a+=h(t,i,n):o++}return o&&(a+=n.shorthand===!0?`\\d`:`[0-9]`),{pattern:a,count:[o],digits:i}}function s(e,t,n,r){let i=a(e,t),s=[],c=e,l;for(let e=0;e<i.length;e++){let t=i[e],a=o(String(c),String(t),r),u=``;if(!n.isPadded&&l&&l.pattern===a.pattern){l.count.length>1&&l.count.pop(),l.count.push(a.count[0]),l.string=l.pattern+m(l.count),c=t+1;continue}n.isPadded&&(u=_(t,n,r)),a.string=u+a.pattern+m(a.count),s.push(a),c=t+1,l=a}return s}function c(e,t,n,r,i){let a=[];for(let i of e){let{string:e}=i;!r&&!d(t,`string`,e)&&a.push(n+e),r&&d(t,`string`,e)&&a.push(n+e)}return a}function l(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function u(e,t){return e>t?1:t>e?-1:0}function d(e,t,n){return e.some(e=>e[t]===n)}function f(e,t){return Number(String(e).slice(0,-t)+`9`.repeat(t))}function p(e,t){return e-e%10**t}function m(e){let[t=0,n=``]=e;return n||t>1?`{${t+(n?`,`+n:``)}}`:``}function h(e,t,n){return`[${e}${t-e===1?``:`-`}${t}]`}function g(e){return/^-?(0+)\d/.test(e)}function _(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return``;case 1:return i?`0?`:`0`;case 2:return i?`0{0,2}`:`00`;default:return i?`0{0,${r}}`:`0{${r}}`}}r.cache={},r.clearCache=()=>r.cache={},t.exports=r})),ta=c(((e,t)=>{let n=r(`util`),i=ea(),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=e=>t=>e===!0?Number(t):String(t),s=e=>typeof e==`number`||typeof e==`string`&&e!==``,c=e=>Number.isInteger(+e),l=e=>{let t=`${e}`,n=-1;if(t[0]===`-`&&(t=t.slice(1)),t===`0`)return!1;for(;t[++n]===`0`;);return n>0},u=(e,t,n)=>typeof e==`string`||typeof t==`string`?!0:n.stringify===!0,d=(e,t,n)=>{if(t>0){let n=e[0]===`-`?`-`:``;n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,`0`)}return n===!1?String(e):e},f=(e,t)=>{let n=e[0]===`-`?`-`:``;for(n&&(e=e.slice(1),t--);e.length<t;)e=`0`+e;return n?`-`+e:e},p=(e,t,n)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let r=t.capture?``:`?:`,i=``,a=``,o;return e.positives.length&&(i=e.positives.map(e=>f(String(e),n)).join(`|`)),e.negatives.length&&(a=`-(${r}${e.negatives.map(e=>f(String(e),n)).join(`|`)})`),o=i&&a?`${i}|${a}`:i||a,t.wrap?`(${r}${o})`:o},m=(e,t,n,r)=>{if(n)return i(e,t,{wrap:!1,...r});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},h=(e,t,n)=>Array.isArray(e)?n.wrap===!0?`(${n.capture?``:`?:`}${e.join(`|`)})`:e.join(`|`):i(e,t,n),g=(...e)=>RangeError(`Invalid range arguments: `+n.inspect(...e)),_=(e,t,n)=>{if(n.strictRanges===!0)throw g([e,t]);return[]},v=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},y=(e,t,n=1,r={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(r.strictRanges===!0)throw g([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let s=i>a,c=String(e),_=String(t),v=String(n);n=Math.max(Math.abs(n),1);let y=l(c)||l(_)||l(v),b=y?Math.max(c.length,_.length,v.length):0,x=y===!1&&u(e,t,r)===!1,S=r.transform||o(x);if(r.toRegex&&n===1)return m(f(e,b),f(t,b),!0,r);let C={negatives:[],positives:[]},w=e=>C[e<0?`negatives`:`positives`].push(Math.abs(e)),T=[],E=0;for(;s?i>=a:i<=a;)r.toRegex===!0&&n>1?w(i):T.push(d(S(i,E),b,x)),i=s?i-n:i+n,E++;return r.toRegex===!0?n>1?p(C,r,b):h(T,null,{wrap:!1,...r}):T},b=(e,t,n=1,r={})=>{if(!c(e)&&e.length>1||!c(t)&&t.length>1)return _(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,l=Math.min(a,o),u=Math.max(a,o);if(r.toRegex&&n===1)return m(l,u,!1,r);let d=[],f=0;for(;s?a>=o:a<=o;)d.push(i(a,f)),a=s?a-n:a+n,f++;return r.toRegex===!0?h(d,null,{wrap:!1,options:r}):d},x=(e,t,n,r={})=>{if(t==null&&s(e))return[e];if(!s(e)||!s(t))return _(e,t,r);if(typeof n==`function`)return x(e,t,1,{transform:n});if(a(n))return x(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,c(n)?c(e)&&c(t)?y(e,t,n,i):b(e,t,Math.max(Math.abs(n),1),i):n!=null&&!a(n)?v(n,i):x(e,t,1,n)};t.exports=x})),na=c(((e,t)=>{let n=ta(),r=Zi();t.exports=(e,t={})=>{let i=(e,a={})=>{let o=r.isInvalidBrace(a)===!0||e.invalid===!0&&t.escapeInvalid===!0,s=t.escapeInvalid===!0?`\\`:``,c=``;if(e.isOpen===!0)return s+e.value;if(e.isClose===!0)return console.log(`node.isClose`,s,e.value),s+e.value;if(e.type===`open`)return o?s+e.value:`(`;if(e.type===`close`)return o?s+e.value:`)`;if(e.type===`comma`)return e.prev.type===`comma`?``:o?e.value:`|`;if(e.value)return e.value;if(e.nodes&&e.ranges>0){let i=r.reduce(e.nodes),a=n(...i,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(a.length!==0)return i.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)c+=i(t,e);return c};return i(e)}})),ra=c(((e,t)=>{let n=ta(),r=Qi(),i=Zi(),a=(e=``,t=``,n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?i.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)n===!0&&typeof e==`string`&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return i.flatten(r)};t.exports=(e,t={})=>{let o=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;l.type!==`brace`&&l.type!==`root`&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar){u.push(a(u.pop(),r(e,t)));return}if(e.type===`brace`&&e.invalid!==!0&&e.nodes.length===2){u.push(a(u.pop(),[`{}`]));return}if(e.nodes&&e.ranges>0){let s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,o))throw RangeError(`expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.`);let c=n(...s,t);c.length===0&&(c=r(e,t)),u.push(a(u.pop(),c)),e.nodes=[];return}let d=i.encloseBrace(e),f=e.queue,p=e;for(;p.type!==`brace`&&p.type!==`root`&&p.parent;)p=p.parent,f=p.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];if(n.type===`comma`&&e.type===`brace`){t===1&&f.push(``),f.push(``);continue}if(n.type===`close`){u.push(a(u.pop(),f,d));continue}if(n.value&&n.type!==`open`){f.push(a(f.pop(),n.value));continue}n.nodes&&s(n,e)}return f};return i.flatten(s(e))}})),ia=c(((e,t)=>{t.exports={MAX_LENGTH:1e4,CHAR_0:`0`,CHAR_9:`9`,CHAR_UPPERCASE_A:`A`,CHAR_LOWERCASE_A:`a`,CHAR_UPPERCASE_Z:`Z`,CHAR_LOWERCASE_Z:`z`,CHAR_LEFT_PARENTHESES:`(`,CHAR_RIGHT_PARENTHESES:`)`,CHAR_ASTERISK:`*`,CHAR_AMPERSAND:`&`,CHAR_AT:`@`,CHAR_BACKSLASH:`\\`,CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:`\r`,CHAR_CIRCUMFLEX_ACCENT:`^`,CHAR_COLON:`:`,CHAR_COMMA:`,`,CHAR_DOLLAR:`$`,CHAR_DOT:`.`,CHAR_DOUBLE_QUOTE:`"`,CHAR_EQUAL:`=`,CHAR_EXCLAMATION_MARK:`!`,CHAR_FORM_FEED:`\f`,CHAR_FORWARD_SLASH:`/`,CHAR_HASH:`#`,CHAR_HYPHEN_MINUS:`-`,CHAR_LEFT_ANGLE_BRACKET:`<`,CHAR_LEFT_CURLY_BRACE:`{`,CHAR_LEFT_SQUARE_BRACKET:`[`,CHAR_LINE_FEED:`
|
|
48
|
-
`,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:` `,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),aa=c(((e,t)=>{let n=Qi(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=ia();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,ee=0,D,O=()=>e[E++],k=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`){C.value+=e.value;return}return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(k({type:`bos`});E<T;)if(S=x[x.length-1],D=O(),!(D===_||D===g)){if(D===i){k({type:`text`,value:(t.keepEscaping?D:``)+O()});continue}if(D===p){k({type:`text`,value:`\\`+D});continue}if(D===f){w++;let e;for(;E<T&&(e=O());){if(D+=e,e===f){w++;continue}if(e===i){D+=O();continue}if(e===p&&(w--,w===0))break}k({type:`text`,value:D});continue}if(D===c){S=k({type:`paren`,nodes:[]}),x.push(S),k({type:`text`,value:D});continue}if(D===l){if(S.type!==`paren`){k({type:`text`,value:D});continue}S=x.pop(),k({type:`text`,value:D}),S=x[x.length-1];continue}if(D===m||D===h||D===a){let e=D,n;for(t.keepQuotes!==!0&&(D=``);E<T&&(n=O());){if(n===i){D+=n+O();continue}if(n===e){t.keepQuotes===!0&&(D+=n);break}D+=n}k({type:`text`,value:D});continue}if(D===u){ee++,S=k({type:`brace`,open:!0,close:!1,dollar:C.value&&C.value.slice(-1)===`$`||S.dollar===!0,depth:ee,commas:0,ranges:0,nodes:[]}),x.push(S),k({type:`open`,value:D});continue}if(D===d){if(S.type!==`brace`){k({type:`text`,value:D});continue}S=x.pop(),S.close=!0,k({type:`close`,value:D}),ee--,S=x[x.length-1];continue}if(D===o&&ee>0){if(S.ranges>0){S.ranges=0;let e=S.nodes.shift();S.nodes=[e,{type:`text`,value:n(S)}]}k({type:`comma`,value:D}),S.commas++;continue}if(D===s&&ee>0&&S.commas===0){let e=S.nodes;if(ee===0||e.length===0){k({type:`text`,value:D});continue}if(C.type===`dot`){if(S.range=[],C.value+=D,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+D,C=t,S.ranges--;continue}k({type:`dot`,value:D});continue}k({type:`text`,value:D})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return k({type:`eos`}),b}})),oa=c(((e,t)=>{let n=Qi(),r=na(),i=ra(),a=aa(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),sa=c(((e,t)=>{t.exports=`3dm.3ds.3g2.3gp.7z.a.aac.adp.afdesign.afphoto.afpub.ai.aif.aiff.alz.ape.apk.appimage.ar.arj.asf.au.avi.bak.baml.bh.bin.bk.bmp.btif.bz2.bzip2.cab.caf.cgm.class.cmx.cpio.cr2.cur.dat.dcm.deb.dex.djvu.dll.dmg.dng.doc.docm.docx.dot.dotm.dra.DS_Store.dsk.dts.dtshd.dvb.dwg.dxf.ecelp4800.ecelp7470.ecelp9600.egg.eol.eot.epub.exe.f4v.fbs.fh.fla.flac.flatpak.fli.flv.fpx.fst.fvt.g3.gh.gif.graffle.gz.gzip.h261.h263.h264.icns.ico.ief.img.ipa.iso.jar.jpeg.jpg.jpgv.jpm.jxr.key.ktx.lha.lib.lvp.lz.lzh.lzma.lzo.m3u.m4a.m4v.mar.mdi.mht.mid.midi.mj2.mka.mkv.mmr.mng.mobi.mov.movie.mp3.mp4.mp4a.mpeg.mpg.mpga.mxu.nef.npx.numbers.nupkg.o.odp.ods.odt.oga.ogg.ogv.otf.ott.pages.pbm.pcx.pdb.pdf.pea.pgm.pic.png.pnm.pot.potm.potx.ppa.ppam.ppm.pps.ppsm.ppsx.ppt.pptm.pptx.psd.pya.pyc.pyo.pyv.qt.rar.ras.raw.resources.rgb.rip.rlc.rmf.rmvb.rpm.rtf.rz.s3m.s7z.scpt.sgi.shar.snap.sil.sketch.slk.smv.snk.so.stl.suo.sub.swf.tar.tbz.tbz2.tga.tgz.thmx.tif.tiff.tlz.ttc.ttf.txz.udf.uvh.uvi.uvm.uvp.uvs.uvu.viv.vob.war.wav.wax.wbmp.wdp.weba.webm.webp.whl.wim.wm.wma.wmv.wmx.woff.woff2.wrm.wvx.xbm.xif.xla.xlam.xls.xlsb.xlsm.xlsx.xlt.xltm.xltx.xm.xmind.xpi.xpm.xwd.xz.z.zip.zipx`.split(`.`)})),ca=c(((e,t)=>{t.exports=sa()})),la=c(((e,t)=>{let n=r(`path`),i=ca(),a=new Set(i);t.exports=e=>a.has(n.extname(e).slice(1).toLowerCase())})),ua=c((e=>{let{sep:t}=r(`path`),{platform:n}=process,i=r(`os`);e.EV_ALL=`all`,e.EV_READY=`ready`,e.EV_ADD=`add`,e.EV_CHANGE=`change`,e.EV_ADD_DIR=`addDir`,e.EV_UNLINK=`unlink`,e.EV_UNLINK_DIR=`unlinkDir`,e.EV_RAW=`raw`,e.EV_ERROR=`error`,e.STR_DATA=`data`,e.STR_END=`end`,e.STR_CLOSE=`close`,e.FSEVENT_CREATED=`created`,e.FSEVENT_MODIFIED=`modified`,e.FSEVENT_DELETED=`deleted`,e.FSEVENT_MOVED=`moved`,e.FSEVENT_CLONED=`cloned`,e.FSEVENT_UNKNOWN=`unknown`,e.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,e.FSEVENT_TYPE_FILE=`file`,e.FSEVENT_TYPE_DIRECTORY=`directory`,e.FSEVENT_TYPE_SYMLINK=`symlink`,e.KEY_LISTENERS=`listeners`,e.KEY_ERR=`errHandlers`,e.KEY_RAW=`rawEmitters`,e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW],e.DOT_SLASH=`.${t}`,e.BACK_SLASH_RE=/\\/g,e.DOUBLE_SLASH_RE=/\/\//,e.SLASH_OR_BACK_SLASH_RE=/[/\\]/,e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,e.REPLACER_RE=/^\.[/\\]/,e.SLASH=`/`,e.SLASH_SLASH=`//`,e.BRACE_START=`{`,e.BANG=`!`,e.ONE_DOT=`.`,e.TWO_DOTS=`..`,e.STAR=`*`,e.GLOBSTAR=`**`,e.ROOT_GLOBSTAR=`/**/*`,e.SLASH_GLOBSTAR=`/**`,e.DIR_SUFFIX=`Dir`,e.ANYMATCH_OPTS={dot:!0},e.STRING_TYPE=`string`,e.FUNCTION_TYPE=`function`,e.EMPTY_STR=``,e.EMPTY_FN=()=>{},e.IDENTITY_FN=e=>e,e.isWindows=n===`win32`,e.isMacos=n===`darwin`,e.isLinux=n===`linux`,e.isIBMi=i.type()===`OS400`})),da=c(((e,t)=>{let n=r(`fs`),i=r(`path`),{promisify:a}=r(`util`),o=la(),{isWindows:s,isLinux:c,EMPTY_FN:l,EMPTY_STR:u,KEY_LISTENERS:d,KEY_ERR:f,KEY_RAW:p,HANDLER_KEYS:m,EV_CHANGE:h,EV_ADD:g,EV_ADD_DIR:_,EV_ERROR:v,STR_DATA:y,STR_END:b,BRACE_START:x,STAR:S}=ua(),C=a(n.open),w=a(n.stat),T=a(n.lstat),E=a(n.close),ee=a(n.realpath),D={lstat:T,stat:w},O=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},k=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=new Set([r])),r.add(n)},A=e=>t=>{let n=e[t];n instanceof Set?n.clear():delete e[t]},j=(e,t,n)=>{let r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},M=e=>e instanceof Set?e.size===0:!e,N=new Map;function P(e,t,r,a,o){let s=(t,n)=>{r(e),o(t,n,{watchedPath:e}),n&&e!==n&&te(i.resolve(e,n),d,i.join(e,n))};try{return n.watch(e,t,s)}catch(e){a(e)}}let te=(e,t,n,r,i)=>{let a=N.get(e);a&&O(a[t],e=>{e(n,r,i)})},ne=(e,t,n,r)=>{let{listener:i,errHandler:a,rawEmitter:o}=r,c=N.get(t),l;if(!n.persistent)return l=P(e,n,i,a,o),l.close.bind(l);if(c)k(c,d,i),k(c,f,a),k(c,p,o);else{if(l=P(e,n,te.bind(null,t,d),a,te.bind(null,t,p)),!l)return;l.on(v,async n=>{let r=te.bind(null,t,f);if(c.watcherUnusable=!0,s&&n.code===`EPERM`)try{await E(await C(e,`r`)),r(n)}catch{}else r(n)}),c={listeners:i,errHandlers:a,rawEmitters:o,watcher:l},N.set(t,c)}return()=>{j(c,d,i),j(c,f,a),j(c,p,o),M(c.listeners)&&(c.watcher.close(),N.delete(t),m.forEach(A(c)),c.watcher=void 0,Object.freeze(c))}},re=new Map,F=(e,t,r,i)=>{let{listener:a,rawEmitter:o}=i,s=re.get(t),c=s&&s.options;return c&&(c.persistent<r.persistent||c.interval>r.interval)&&(n.unwatchFile(t),s=void 0),s?(k(s,d,a),k(s,p,o)):(s={listeners:a,rawEmitters:o,options:r,watcher:n.watchFile(t,r,(n,r)=>{O(s.rawEmitters,e=>{e(h,t,{curr:n,prev:r})});let i=n.mtimeMs;(n.size!==r.size||i>r.mtimeMs||i===0)&&O(s.listeners,t=>t(e,n))})},re.set(t,s)),()=>{j(s,d,a),j(s,p,o),M(s.listeners)&&(re.delete(t),n.unwatchFile(t),s.options=s.watcher=void 0,Object.freeze(s))}};t.exports=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){let n=this.fsw.options,r=i.dirname(e),a=i.basename(e);this.fsw._getWatchedDir(r).add(a);let s=i.resolve(e),c={persistent:n.persistent};t||=l;let u;return n.usePolling?(c.interval=n.enableBinaryInterval&&o(a)?n.binaryInterval:n.interval,u=F(e,s,c,{listener:t,rawEmitter:this.fsw._emitRaw})):u=ne(e,s,c,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,t,n){if(this.fsw.closed)return;let r=i.dirname(e),a=i.basename(e),o=this.fsw._getWatchedDir(r),s=t;if(o.has(a))return;let l=async(t,n)=>{if(this.fsw._throttle(`watch`,e,5)){if(!n||n.mtimeMs===0)try{let n=await w(e);if(this.fsw.closed)return;let r=n.atimeMs,i=n.mtimeMs;(!r||r<=i||i!==s.mtimeMs)&&this.fsw._emit(h,e,n),c&&s.ino!==n.ino?(this.fsw._closeFile(t),s=n,this.fsw._addPathCloser(t,this._watchWithNodeFs(e,l))):s=n}catch{this.fsw._remove(r,a)}else if(o.has(a)){let t=n.atimeMs,r=n.mtimeMs;(!t||t<=r||r!==s.mtimeMs)&&this.fsw._emit(h,e,n),s=n}}},u=this._watchWithNodeFs(e,l);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(g,e,0))return;this.fsw._emit(g,e,t)}return u}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;let i=e.fullPath,a=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let t;try{t=await ee(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(r)?this.fsw._symlinkPaths.get(i)!==t&&(this.fsw._symlinkPaths.set(i,t),this.fsw._emit(h,n,e.stats)):(a.add(r),this.fsw._symlinkPaths.set(i,t),this.fsw._emit(g,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(i))return!0;this.fsw._symlinkPaths.set(i,!0)}_handleRead(e,t,n,r,a,o,s){if(e=i.join(e,u),!n.hasGlob&&(s=this.fsw._throttle(`readdir`,e,1e3),!s))return;let c=this.fsw._getWatchedDir(n.path),l=new Set,d=this.fsw._readdirp(e,{fileFilter:e=>n.filterPath(e),directoryFilter:e=>n.filterDir(e),depth:0}).on(y,async s=>{if(this.fsw.closed){d=void 0;return}let u=s.path,f=i.join(e,u);if(l.add(u),!(s.stats.isSymbolicLink()&&await this._handleSymlink(s,e,f,u))){if(this.fsw.closed){d=void 0;return}(u===r||!r&&!c.has(u))&&(this.fsw._incrReadyCount(),f=i.join(a,i.relative(a,f)),this._addToNodeFs(f,t,n,o+1))}}).on(v,this._boundHandleError);return new Promise(t=>d.once(b,()=>{if(this.fsw.closed){d=void 0;return}let u=s?s.clear():!1;t(),c.getChildren().filter(t=>t!==e&&!l.has(t)&&(!n.hasGlob||n.filterPath({fullPath:i.resolve(e,t)}))).forEach(t=>{this.fsw._remove(e,t)}),d=void 0,u&&this._handleRead(e,!1,n,r,a,o,s)}))}async _handleDir(e,t,n,r,a,o,s){let c=this.fsw._getWatchedDir(i.dirname(e)),l=c.has(i.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!a&&!l&&(!o.hasGlob||o.globFilter(e))&&this.fsw._emit(_,e,t),c.add(i.basename(e)),this.fsw._getWatchedDir(e);let u,d=this.fsw.options.depth;if((d==null||r<=d)&&!this.fsw._symlinkPaths.has(s)){if(!a&&(await this._handleRead(e,n,o,a,e,r,void 0),this.fsw.closed))return;u=this._watchWithNodeFs(e,(t,n)=>{n&&n.mtimeMs===0||this._handleRead(t,!1,o,a,e,r,void 0)})}return u}async _addToNodeFs(e,t,n,r,a){let o=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return o(),!1;let s=this.fsw._getWatchHelpers(e,r);!s.hasGlob&&n&&(s.hasGlob=n.hasGlob,s.globFilter=n.globFilter,s.filterPath=e=>n.filterPath(e),s.filterDir=e=>n.filterDir(e));try{let n=await D[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,n))return o(),!1;let c=this.fsw.options.followSymlinks&&!e.includes(S)&&!e.includes(x),l;if(n.isDirectory()){let o=i.resolve(e),u=c?await ee(e):e;if(this.fsw.closed||(l=await this._handleDir(s.watchPath,n,t,r,a,s,u),this.fsw.closed))return;o!==u&&u!==void 0&&this.fsw._symlinkPaths.set(o,u)}else if(n.isSymbolicLink()){let a=c?await ee(e):e;if(this.fsw.closed)return;let o=i.dirname(s.watchPath);if(this.fsw._getWatchedDir(o).add(s.watchPath),this.fsw._emit(g,s.watchPath,n),l=await this._handleDir(o,n,t,r,e,s,a),this.fsw.closed)return;a!==void 0&&this.fsw._symlinkPaths.set(i.resolve(e),a)}else l=this._handleFile(s.watchPath,n,t);return o(),this.fsw._addPathCloser(e,l),!1}catch(t){if(this.fsw._handleError(t))return o(),e}}}})),fa=c(((e,t)=>{let n=r(`fs`),i=r(`path`),{promisify:a}=r(`util`),o;try{o=r(`fsevents`)}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(o){let e=process.version.match(/v(\d+)\.(\d+)/);e&&e[1]&&e[2]&&Number.parseInt(e[1],10)===8&&Number.parseInt(e[2],10)<16&&(o=void 0)}let{EV_ADD:s,EV_CHANGE:c,EV_ADD_DIR:l,EV_UNLINK:u,EV_ERROR:d,STR_DATA:f,STR_END:p,FSEVENT_CREATED:m,FSEVENT_MODIFIED:h,FSEVENT_DELETED:g,FSEVENT_MOVED:_,FSEVENT_UNKNOWN:v,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:y,FSEVENT_TYPE_FILE:b,FSEVENT_TYPE_DIRECTORY:x,FSEVENT_TYPE_SYMLINK:S,ROOT_GLOBSTAR:C,DIR_SUFFIX:w,DOT_SLASH:T,FUNCTION_TYPE:E,EMPTY_FN:ee,IDENTITY_FN:D}=ua(),O=e=>isNaN(e)?{}:{depth:e},k=a(n.stat),A=a(n.lstat),j=a(n.realpath),M={stat:k,lstat:A},N=new Map,P=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),te=(e,t)=>({stop:o.watch(e,t)});function ne(e,t,n,r){let a=i.extname(t)?i.dirname(t):t,s=i.dirname(a),c=N.get(a);re(s)&&(a=s);let l=i.resolve(e),u=l!==t,d=(e,r,a)=>{u&&(e=e.replace(t,l)),(e===l||!e.indexOf(l+i.sep))&&n(e,r,a)},f=!1;for(let e of N.keys())if(t.indexOf(i.resolve(e)+i.sep)===0){a=e,c=N.get(a),f=!0;break}return c||f?c.listeners.add(d):(c={listeners:new Set([d]),rawEmitter:r,watcher:te(a,(e,t)=>{if(!c.listeners.size||t&y)return;let n=o.getInfo(e,t);c.listeners.forEach(r=>{r(e,t,n)}),c.rawEmitter(n.event,e,n)})},N.set(a,c)),()=>{let e=c.listeners;if(e.delete(d),!e.size&&(N.delete(a),c.watcher))return c.watcher.stop().then(()=>{c.rawEmitter=c.watcher=void 0,Object.freeze(c)})}}let re=e=>{let t=0;for(let n of N.keys())if(n.indexOf(e)===0&&(t++,t>=10))return!0;return!1},F=()=>o&&N.size<128,ie=(e,t)=>{let n=0;for(;!e.indexOf(t)&&(e=i.dirname(e))!==t;)n++;return n},ae=(e,t)=>e.type===x&&t.isDirectory()||e.type===S&&t.isSymbolicLink()||e.type===b&&t.isFile();t.exports=class{constructor(e){this.fsw=e}checkIgnored(e,t){let n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return n.add(e),t&&t.isDirectory()&&n.add(e+C),!0;n.delete(e),n.delete(e+C)}addOrChange(e,t,n,r,i,a,o,l){let u=i.has(a)?c:s;this.handleEvent(u,e,t,n,r,i,a,o,l)}async checkExists(e,t,n,r,i,a,o,s){try{let c=await k(e);if(this.fsw.closed)return;ae(o,c)?this.addOrChange(e,t,n,r,i,a,o,s):this.handleEvent(u,e,t,n,r,i,a,o,s)}catch(c){c.code===`EACCES`?this.addOrChange(e,t,n,r,i,a,o,s):this.handleEvent(u,e,t,n,r,i,a,o,s)}}handleEvent(e,t,n,r,i,a,o,c,d){if(!(this.fsw.closed||this.checkIgnored(t)))if(e===u){let e=c.type===x;(e||a.has(o))&&this.fsw._remove(i,o,e)}else{if(e===s){if(c.type===x&&this.fsw._getWatchedDir(t),c.type===S&&d.followSymlinks){let e=d.depth===void 0?void 0:ie(n,r)+1;return this._addToFsEvents(t,!1,!0,e)}this.fsw._getWatchedDir(i).add(o)}let a=c.type===x?e+w:e;this.fsw._emit(a,t),a===l&&this._addToFsEvents(t,!1,!0)}}_watchWithFsEvents(e,t,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;let a=this.fsw.options,o=ne(e,t,async(o,s,c)=>{if(this.fsw.closed||this.fsw._isIgnored(o)||a.depth!==void 0&&ie(o,t)>a.depth)return;let l=n(i.join(e,i.relative(e,o)));if(r&&!r(l))return;let d=i.dirname(l),f=i.basename(l),p=this.fsw._getWatchedDir(c.type===x?l:d);if(P.has(s)||c.event===v)if(typeof a.ignored===E){let e;try{e=await k(l)}catch{}if(this.fsw.closed||this.checkIgnored(l,e))return;ae(c,e)?this.addOrChange(l,o,t,d,p,f,c,a):this.handleEvent(u,l,o,t,d,p,f,c,a)}else this.checkExists(l,o,t,d,p,f,c,a);else switch(c.event){case m:case h:return this.addOrChange(l,o,t,d,p,f,c,a);case g:case _:return this.checkExists(l,o,t,d,p,f,c,a)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,t,n,r){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(t))){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{let t=await j(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(t))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(t||e,r=>{let a=e;return t&&t!==T?a=r.replace(t,e):r!==T&&(a=i.join(e,r)),n(a)},!1,r)}catch(e){if(this.fsw._handleError(e))return this.fsw._emitReady()}}}emitAdd(e,t,n,r,a){let o=n(e),c=t.isDirectory(),u=this.fsw._getWatchedDir(i.dirname(o)),d=i.basename(o);c&&this.fsw._getWatchedDir(o),!u.has(d)&&(u.add(d),(!r.ignoreInitial||a===!0)&&this.fsw._emit(c?l:s,o,t))}initWatch(e,t,n,r){if(this.fsw.closed)return;let a=this._watchWithFsEvents(n.watchPath,i.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(t,a)}async _addToFsEvents(e,t,n,r){if(this.fsw.closed)return;let a=this.fsw.options,o=typeof t===E?t:D,s=this.fsw._getWatchHelpers(e);try{let t=await M[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,t))throw null;if(t.isDirectory()){if(s.globFilter||this.emitAdd(o(e),t,o,a,n),r&&r>a.depth)return;this.fsw._readdirp(s.watchPath,{fileFilter:e=>s.filterPath(e),directoryFilter:e=>s.filterDir(e),...O(a.depth-(r||0))}).on(f,e=>{if(this.fsw.closed||e.stats.isDirectory()&&!s.filterPath(e))return;let t=i.join(s.watchPath,e.path),{fullPath:r}=e;if(s.followSymlinks&&e.stats.isSymbolicLink()){let e=a.depth===void 0?void 0:ie(t,i.resolve(s.watchPath))+1;this._handleFsEventsSymlink(t,r,o,e)}else this.emitAdd(t,e.stats,o,a,n)}).on(d,ee).on(p,()=>{this.fsw._emitReady()})}else this.emitAdd(s.watchPath,t,o,a,n),this.fsw._emitReady()}catch(e){(!e||this.fsw._handleError(e))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(a.persistent&&n!==!0)if(typeof t===E)this.initWatch(void 0,e,s,o);else{let t;try{t=await j(s.watchPath)}catch{}this.initWatch(t,e,s,o)}}},t.exports.canUse=F})),pa=c((e=>{let{EventEmitter:t}=r(`events`),n=r(`fs`),i=r(`path`),{promisify:a}=r(`util`),o=Gi(),s=qi().default,c=Xi(),l=Yi(),u=oa(),d=Ki(),f=da(),p=fa(),{EV_ALL:m,EV_READY:h,EV_ADD:g,EV_CHANGE:_,EV_UNLINK:v,EV_ADD_DIR:y,EV_UNLINK_DIR:b,EV_RAW:x,EV_ERROR:S,STR_CLOSE:C,STR_END:w,BACK_SLASH_RE:T,DOUBLE_SLASH_RE:E,SLASH_OR_BACK_SLASH_RE:ee,DOT_RE:D,REPLACER_RE:O,SLASH:k,SLASH_SLASH:A,BRACE_START:j,BANG:M,ONE_DOT:N,TWO_DOTS:P,GLOBSTAR:te,SLASH_GLOBSTAR:ne,ANYMATCH_OPTS:re,STRING_TYPE:F,FUNCTION_TYPE:ie,EMPTY_STR:ae,EMPTY_FN:oe,isWindows:se,isMacos:ce,isIBMi:le}=ua(),ue=a(n.stat),de=a(n.readdir),fe=(e=[])=>Array.isArray(e)?e:[e],pe=(e,t=[])=>(e.forEach(e=>{Array.isArray(e)?pe(e,t):t.push(e)}),t),me=e=>{let t=pe(fe(e));if(!t.every(e=>typeof e===F))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(ge)},he=e=>{let t=e.replace(T,k),n=!1;for(t.startsWith(A)&&(n=!0);t.match(E);)t=t.replace(E,k);return n&&(t=k+t),t},ge=e=>he(i.normalize(he(e))),_e=(e=ae)=>t=>typeof t===F?ge(i.isAbsolute(t)?t:i.join(e,t)):t,ve=(e,t)=>i.isAbsolute(e)?e:e.startsWith(M)?M+i.join(t,e.slice(1)):i.join(t,e),ye=(e,t)=>e[t]===void 0;var be=class{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){let{items:t}=this;t&&e!==N&&e!==P&&t.add(e)}async remove(e){let{items:t}=this;if(!t||(t.delete(e),t.size>0))return;let n=this.path;try{await de(n)}catch{this._removeWatcher&&this._removeWatcher(i.dirname(n),i.basename(n))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},xe=class{constructor(e,t,n,r){this.fsw=r,this.path=e=e.replace(O,ae),this.watchPath=t,this.fullWatchPath=i.resolve(t),this.hasGlob=t!==e,e===ae&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?s(e,void 0,re):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=n,this.statMethod=n?`stat`:`lstat`}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return i.join(this.watchPath,i.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let n=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===ie?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return[];let t=[];return(e.includes(j)?u.expand(e):[e]).forEach(e=>{t.push(i.relative(this.watchPath,e).split(ee))}),t}filterDir(e){if(this.hasGlob){let t=this.getDirParts(this.checkGlobSymlink(e)),n=!1;this.unmatchedGlob=!this.dirParts.some(e=>e.every((e,r)=>(e===te&&(n=!0),n||!t[0][r]||s(e,t[0][r],re))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Se=class extends t{constructor(e){super();let t={};e&&Object.assign(t,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,ye(t,`persistent`)&&(t.persistent=!0),ye(t,`ignoreInitial`)&&(t.ignoreInitial=!1),ye(t,`ignorePermissionErrors`)&&(t.ignorePermissionErrors=!1),ye(t,`interval`)&&(t.interval=100),ye(t,`binaryInterval`)&&(t.binaryInterval=300),ye(t,`disableGlobbing`)&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,ye(t,`useFsEvents`)&&(t.useFsEvents=!t.usePolling),p.canUse()||(t.useFsEvents=!1),ye(t,`usePolling`)&&!t.useFsEvents&&(t.usePolling=ce),le&&(t.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let e=n.toLowerCase();e===`false`||e===`0`?t.usePolling=!1:e===`true`||e===`1`?t.usePolling=!0:t.usePolling=!!e}let r=process.env.CHOKIDAR_INTERVAL;r&&(t.interval=Number.parseInt(r,10)),ye(t,`atomic`)&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=new Map),ye(t,`followSymlinks`)&&(t.followSymlinks=!0),ye(t,`awaitWriteFinish`)&&(t.awaitWriteFinish=!1),t.awaitWriteFinish===!0&&(t.awaitWriteFinish={});let i=t.awaitWriteFinish;i&&(i.stabilityThreshold||=2e3,i.pollInterval||=100,this._pendingWrites=new Map),t.ignored&&=fe(t.ignored);let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=oe,this._readyEmitted=!0,process.nextTick(()=>this.emit(h)))},this._emitRaw=(...e)=>this.emit(x,...e),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new p(this):this._nodeFsHandler=new f(this),Object.freeze(t)}add(e,t,n){let{cwd:r,disableGlobbing:a}=this.options;this.closed=!1;let o=me(e);return r&&(o=o.map(e=>{let t=ve(e,r);return a||!l(e)?t:d(t)})),o=o.filter(e=>e.startsWith(M)?(this._ignoredPaths.add(e.slice(1)),!1):(this._ignoredPaths.delete(e),this._ignoredPaths.delete(e+ne),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||=o.length,this.options.persistent&&(this._readyCount+=o.length),o.forEach(e=>this._fsEventsHandler._addToFsEvents(e))):(this._readyCount||=0,this._readyCount+=o.length,Promise.all(o.map(async e=>{let r=await this._nodeFsHandler._addToNodeFs(e,!n,0,0,t);return r&&this._emitReady(),r})).then(e=>{this.closed||e.filter(e=>e).forEach(e=>{this.add(i.dirname(e),i.basename(t||e))})})),this}unwatch(e){if(this.closed)return this;let t=me(e),{cwd:n}=this.options;return t.forEach(e=>{!i.isAbsolute(e)&&!this._closers.has(e)&&(n&&(e=i.join(n,e)),e=i.resolve(e)),this._closePath(e),this._ignoredPaths.add(e),this._watched.has(e)&&this._ignoredPaths.add(e+ne),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let n=t();n instanceof Promise&&e.push(n)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),[`closers`,`watched`,`streams`,`symlinkPaths`,`throttled`].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((t,n)=>{let r=this.options.cwd?i.relative(this.options.cwd,n):n;e[r||N]=t.getChildren().sort()}),e}emitWithAll(e,t){this.emit(...t),e!==S&&this.emit(m,...t)}async _emit(e,t,n,r,a){if(this.closed)return;let o=this.options;se&&(t=i.normalize(t)),o.cwd&&(t=i.relative(o.cwd,t));let s=[e,t];a===void 0?r===void 0?n!==void 0&&s.push(n):s.push(n,r):s.push(n,r,a);let c=o.awaitWriteFinish,l;if(c&&(l=this._pendingWrites.get(t)))return l.lastChange=new Date,this;if(o.atomic){if(e===v)return this._pendingUnlinks.set(t,s),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(m,...e),this._pendingUnlinks.delete(t)})},typeof o.atomic==`number`?o.atomic:100),this;e===g&&this._pendingUnlinks.has(t)&&(e=s[0]=_,this._pendingUnlinks.delete(t))}if(c&&(e===g||e===_)&&this._readyEmitted)return this._awaitWriteFinish(t,c.stabilityThreshold,e,(t,n)=>{t?(e=s[0]=S,s[1]=t,this.emitWithAll(e,s)):n&&(s.length>2?s[2]=n:s.push(n),this.emitWithAll(e,s))}),this;if(e===_&&!this._throttle(_,t,50))return this;if(o.alwaysStat&&n===void 0&&(e===g||e===y||e===_)){let e=o.cwd?i.join(o.cwd,t):t,n;try{n=await ue(e)}catch{}if(!n||this.closed)return;s.push(n)}return this.emitWithAll(e,s),this}_handleError(e){let t=e&&e.code;return e&&t!==`ENOENT`&&t!==`ENOTDIR`&&(!this.options.ignorePermissionErrors||t!==`EPERM`&&t!==`EACCES`)&&this.emit(S,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,new Map);let r=this._throttled.get(e),i=r.get(t);if(i)return i.count++,!1;let a,o=()=>{let e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(a),e&&clearTimeout(e.timeoutObject),n};a=setTimeout(o,n);let s={timeoutObject:a,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,r,a){let o,s=e;this.options.cwd&&!i.isAbsolute(e)&&(s=i.join(this.options.cwd,e));let c=new Date,l=r=>{n.stat(s,(n,i)=>{if(n||!this._pendingWrites.has(e)){n&&n.code!==`ENOENT`&&a(n);return}let s=Number(new Date);r&&i.size!==r.size&&(this._pendingWrites.get(e).lastChange=s),s-this._pendingWrites.get(e).lastChange>=t?(this._pendingWrites.delete(e),a(void 0,i)):o=setTimeout(l,this.options.awaitWriteFinish.pollInterval,i)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:c,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(o),r)}),o=setTimeout(l,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&D.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=this.options.ignored,n=t&&t.map(_e(e)),r=fe(n).filter(e=>typeof e===F&&!l(e)).map(e=>e+ne);this._userIgnored=s(this._getGlobIgnored().map(_e(e)).concat(n,r),void 0,re)}return this._userIgnored([e,t])}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e,t){let n=t||this.options.disableGlobbing||!l(e)?e:c(e),r=this.options.followSymlinks;return new xe(e,n,r,this)}_getWatchedDir(e){this._boundRemove||=this._remove.bind(this);let t=i.resolve(e);return this._watched.has(t)||this._watched.set(t,new be(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let t=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(t.toString(8)[0],10))}_remove(e,t,n){let r=i.join(e,t),a=i.resolve(r);if(n??=this._watched.has(r)||this._watched.has(a),!this._throttle(`remove`,r,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,t,!0),this._getWatchedDir(r).getChildren().forEach(e=>this._remove(r,e));let o=this._getWatchedDir(e),s=o.has(t);o.remove(t),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let c=r;if(this.options.cwd&&(c=i.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===g)return;this._watched.delete(r),this._watched.delete(a);let l=n?b:v;s&&!this._isIgnored(r)&&this._emit(l,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);let t=i.dirname(e);this._getWatchedDir(t).remove(i.basename(e))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;let n=o(e,{type:m,alwaysStat:!0,lstat:!0,...t});return this._streams.add(n),n.once(C,()=>{n=void 0}),n.once(w,()=>{n&&=(this._streams.delete(n),void 0)}),n}};e.watch=(e,t)=>{let n=new Se(t);return n.add(e),n}})),ma=c(((e,t)=>{t.exports=function(e){return e.map(function(e){return e===``?`''`:e&&typeof e==`object`?e.op.replace(/(.)/g,`\\$1`):/["\s\\]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,`$1\\$2`)}).join(` `)}})),ha=c(((e,t)=>{for(var n=`(?:`+[`\\|\\|`,`\\&\\&`,`;;`,`\\|\\&`,`\\<\\(`,`\\<\\<\\<`,`>>`,`>\\&`,`<\\&`,`[&;()|<>]`].join(`|`)+`)`,r=RegExp(`^`+n+`$`),i=`|&;()<> \\t`,a=`"((\\\\"|[^"])*?)"`,o=`'((\\\\'|[^'])*?)'`,s=/^#$/,c=`'`,l=`"`,u=`$`,d=``,f=4294967296,p=0;p<4;p++)d+=(f*Math.random()).toString(16);var m=RegExp(`^`+d);function h(e,t){for(var n=t.lastIndex,r=[],i;i=t.exec(e);)r.push(i),t.lastIndex===i.index&&(t.lastIndex+=1);return t.lastIndex=n,r}function g(e,t,n){var r=typeof e==`function`?e(n):e[n];return r===void 0&&n!=``?r=``:r===void 0&&(r=`$`),typeof r==`object`?t+d+JSON.stringify(r)+d:t+r}function _(e,t,d){d||={};var f=d.escape||`\\`,p=`(\\`+f+`['"`+i+`]|[^\\s'"`+i+`])+`,m=h(e,new RegExp([`(`+n+`)`,`(`+p+`|`+a+`|`+o+`)+`].join(`|`),`g`));if(m.length===0)return[];t||={};var _=!1;return m.map(function(n){var i=n[0];if(!i||_)return;if(r.test(i))return{op:i};var a=!1,o=!1,d=``,p=!1,m;function h(){m+=1;var e,n,r=i.charAt(m);if(r===`{`){if(m+=1,i.charAt(m)===`}`)throw Error(`Bad substitution: `+i.slice(m-2,m+1));if(e=i.indexOf(`}`,m),e<0)throw Error(`Bad substitution: `+i.slice(m));n=i.slice(m,e),m=e}else if(/[*@#?$!_-]/.test(r))n=r,m+=1;else{var a=i.slice(m);e=a.match(/[^\w\d_]/),e?(n=a.slice(0,e.index),m+=e.index-1):(n=a,m=i.length)}return g(t,``,n)}for(m=0;m<i.length;m++){var v=i.charAt(m);if(p||=!a&&(v===`*`||v===`?`),o)d+=v,o=!1;else if(a)v===a?a=!1:a==c?d+=v:v===f?(m+=1,v=i.charAt(m),v===l||v===f||v===u?d+=v:d+=f+v):v===u?d+=h():d+=v;else if(v===l||v===c)a=v;else if(r.test(v))return{op:i};else if(s.test(v)){_=!0;var y={comment:e.slice(n.index+m+1)};return d.length?[d,y]:[y]}else v===f?o=!0:v===u?d+=h():d+=v}return p?{op:`glob`,pattern:d}:d}).reduce(function(e,t){return t===void 0?e:e.concat(t)},[])}t.exports=function(e,t,n){var r=_(e,t,n);return typeof t==`function`?r.reduce(function(e,t){if(typeof t==`object`)return e.concat(t);var n=t.split(RegExp(`(`+d+`.*?`+d+`)`,`g`));return n.length===1?e.concat(n[0]):e.concat(n.filter(Boolean).map(function(e){return m.test(e)?JSON.parse(e.split(d)[1]):e}))},[]):r}})),ga=c((e=>{e.quote=ma(),e.parse=ha()})),_a=c(((e,t)=>{t.exports={"/Applications/Atom.app/Contents/MacOS/Atom":`atom`,"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":`/Applications/Atom Beta.app/Contents/MacOS/Atom Beta`,"/Applications/Brackets.app/Contents/MacOS/Brackets":`brackets`,"/Applications/Sublime Text.app/Contents/MacOS/Sublime Text":`/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl`,"/Applications/Sublime Text.app/Contents/MacOS/sublime_text":`/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl`,"/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2":`/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl`,"/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text":`/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl`,"/Applications/Visual Studio Code.app/Contents/MacOS/Electron":`code`,"/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron":`code-insiders`,"/Applications/VSCodium.app/Contents/MacOS/Electron":`codium`,"/Applications/Cursor.app/Contents/MacOS/Cursor":`cursor`,"/Applications/Trae.app/Contents/MacOS/Electron":`trae`,"/Applications/AppCode.app/Contents/MacOS/appcode":`/Applications/AppCode.app/Contents/MacOS/appcode`,"/Applications/CLion.app/Contents/MacOS/clion":`/Applications/CLion.app/Contents/MacOS/clion`,"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea":`/Applications/IntelliJ IDEA.app/Contents/MacOS/idea`,"/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea":`/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea`,"/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea":`/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea`,"/Applications/PhpStorm.app/Contents/MacOS/phpstorm":`/Applications/PhpStorm.app/Contents/MacOS/phpstorm`,"/Applications/PyCharm.app/Contents/MacOS/pycharm":`/Applications/PyCharm.app/Contents/MacOS/pycharm`,"/Applications/PyCharm CE.app/Contents/MacOS/pycharm":`/Applications/PyCharm CE.app/Contents/MacOS/pycharm`,"/Applications/RubyMine.app/Contents/MacOS/rubymine":`/Applications/RubyMine.app/Contents/MacOS/rubymine`,"/Applications/WebStorm.app/Contents/MacOS/webstorm":`/Applications/WebStorm.app/Contents/MacOS/webstorm`,"/Applications/MacVim.app/Contents/MacOS/MacVim":`mvim`,"/Applications/GoLand.app/Contents/MacOS/goland":`/Applications/GoLand.app/Contents/MacOS/goland`,"/Applications/Rider.app/Contents/MacOS/rider":`/Applications/Rider.app/Contents/MacOS/rider`,"/Applications/Zed.app/Contents/MacOS/zed":`zed`}})),va=c(((e,t)=>{t.exports={atom:`atom`,Brackets:`brackets`,"code-insiders":`code-insiders`,code:`code`,vscodium:`vscodium`,codium:`codium`,trae:`trae`,emacs:`emacs`,gvim:`gvim`,idea:`idea`,"idea.sh":`idea`,phpstorm:`phpstorm`,"phpstorm.sh":`phpstorm`,pycharm:`pycharm`,"pycharm.sh":`pycharm`,rubymine:`rubymine`,"rubymine.sh":`rubymine`,sublime_text:`subl`,vim:`vim`,webstorm:`webstorm`,"webstorm.sh":`webstorm`,goland:`goland`,"goland.sh":`goland`,rider:`rider`,"rider.sh":`rider`,zed:`zed`}})),ya=c(((e,t)=>{t.exports=[`Brackets.exe`,`Code.exe`,`Code - Insiders.exe`,`VSCodium.exe`,`Cursor.exe`,`atom.exe`,`sublime_text.exe`,`notepad++.exe`,`clion.exe`,`clion64.exe`,`idea.exe`,`idea64.exe`,`phpstorm.exe`,`phpstorm64.exe`,`pycharm.exe`,`pycharm64.exe`,`rubymine.exe`,`rubymine64.exe`,`webstorm.exe`,`webstorm64.exe`,`goland.exe`,`goland64.exe`,`rider.exe`,`rider64.exe`,`trae.exe`]})),ba=c(((e,t)=>{let n=r(`path`),i=ga(),a=r(`child_process`),o=_a(),s=va(),c=ya();t.exports=function(e){if(e)return i.parse(e);if(process.env.LAUNCH_EDITOR)return[process.env.LAUNCH_EDITOR];if(process.versions.webcontainer)return[process.env.EDITOR||`code`];try{if(process.platform===`darwin`){let e=a.execSync(`ps x -o comm=`,{stdio:[`pipe`,`pipe`,`ignore`]}).toString(),t=Object.keys(o),n=e.split(`
|
|
49
|
-
`);for(let r=0;r<t.length;r++){let i=t[r];if(n.includes(i))return[o[i]];let a=i.replace(`/Applications`,``);if(e.indexOf(a)!==-1){if(i!==o[i])return[o[i]];let e=n.find(e=>e.endsWith(a));if(e!==void 0)return[e]}}}else if(process.platform===`win32`){let e=a.execSync(`powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"`,{stdio:[`pipe`,`pipe`,`ignore`]}).toString().split(`\r
|
|
50
|
-
`);for(let t=0;t<e.length;t++){let r=e[t].trim(),i=n.basename(r);if(c.indexOf(i)!==-1)return[r]}}else if(process.platform===`linux`){let e=a.execSync(`ps x --no-heading -o comm --sort=comm`,{stdio:[`pipe`,`pipe`,`ignore`]}).toString(),t=Object.keys(s);for(let n=0;n<t.length;n++){let r=t[n];if(e.indexOf(r)!==-1)return[s[r]]}}}catch{}return process.env.VISUAL?[process.env.VISUAL]:process.env.EDITOR?[process.env.EDITOR]:[null]}})),xa=c(((e,t)=>{let n=r(`path`);t.exports=function(e,t,r,i=1){switch(n.basename(e).replace(/\.(exe|cmd|bat)$/i,``)){case`atom`:case`Atom`:case`Atom Beta`:case`subl`:case`sublime`:case`sublime_text`:case`wstorm`:case`charm`:case`zed`:return[`${t}:${r}:${i}`];case`notepad++`:return[`-n`+r,`-c`+i,t];case`vim`:case`mvim`:return[`+call cursor(${r}, ${i})`,t];case`joe`:case`gvim`:return[`+${r}`,t];case`emacs`:case`emacsclient`:return[`+${r}:${i}`,t];case`rmate`:case`mate`:case`mine`:return[`--line`,r,t];case`code`:case`Code`:case`code-insiders`:case`Code - Insiders`:case`codium`:case`trae`:case`cursor`:case`vscodium`:case`VSCodium`:return[`-r`,`-g`,`${t}:${r}:${i}`];case`appcode`:case`clion`:case`clion64`:case`idea`:case`idea64`:case`phpstorm`:case`phpstorm64`:case`pycharm`:case`pycharm64`:case`rubymine`:case`rubymine64`:case`webstorm`:case`webstorm64`:case`goland`:case`goland64`:case`rider`:case`rider64`:return[`--line`,r,`--column`,i,t]}return process.env.LAUNCH_EDITOR?[t,r,i]:[t]}})),Sa=c(((e,t)=>{let n=r(`fs`),i=r(`os`),a=r(`path`),o=I(),s=r(`child_process`),c=ba(),l=xa();function u(e){return(t,n)=>{console.log(),console.log(o.red(`Could not open `+a.basename(t)+` in the editor.`)),n&&(n[n.length-1]!==`.`&&(n+=`.`),console.log(o.red(`The editor process exited with an error: `+n))),console.log(),e&&e(t,n)}}function d(e){switch(e){case`vim`:case`emacs`:case`nano`:return!0}return!1}let f=/:(\d+)(:(\d+))?$/;function p(e){e.startsWith(`file://`)&&(e=r(`url`).fileURLToPath(e));let t=e.replace(f,``),n=e.match(f);return{fileName:t,lineNumber:n&&n[1],columnNumber:n&&n[3]}}let m=null;function h(e,t,r){let o=p(e),{fileName:f}=o,{lineNumber:h,columnNumber:g}=o;if(!n.existsSync(f))return;typeof t==`function`&&(r=t,t=void 0),r=u(r);let[_,...v]=c(t);if(!_){r(f,null);return}if(process.platform===`linux`&&f.startsWith(`/mnt/`)&&/Microsoft/i.test(i.release())&&(f=a.relative(``,f)),h){let e=l(_,f,h,g);v.push.apply(v,e)}else v.push(f);if(m&&d(_)&&m.kill(`SIGKILL`),process.platform===`win32`){function e(e){return e.replace(/([&|<>,;=^])/g,`^$1`)}function t(e){return e.includes(`^`)?`^"${e}^"`:e.includes(` `)?`"${e}"`:e}let n=[_,...v.map(e)].map(t).join(` `);m=s.exec(n,{stdio:`inherit`,shell:!0})}else m=s.spawn(_,v,{stdio:`inherit`});m.on(`exit`,function(e){m=null,e&&r(f,`(code `+e+`)`)}),m.on(`error`,function(e){let{code:t,message:n}=e;t===`ENOENT`&&(n=`${n} ('${_}' command does not exist in 'PATH')`),r(f,n)})}t.exports=h})),Ca=c(((e,t)=>{let n=r(`path`),i=Sa();t.exports=(e,t,r)=>(typeof e==`function`&&(r=e,e=void 0),typeof t==`function`&&(r=t,t=void 0),t||=process.cwd(),function(a,o){let s;try{let e=a.url.startsWith(`http`)?a.url:`http://localhost${a.url}`;s=new URL(e)}catch{o.statusCode=500,o.end(`launch-editor-middleware: invalid URL.`);return}let c=s.searchParams.get(`file`);c?(i(c.startsWith(`file://`)?c:n.resolve(t,c),e,r),o.end()):(o.statusCode=500,o.end(`launch-editor-middleware: required query param "file" is missing.`))})}));I(),I();let wa;function Ta(){try{return f.statSync(`/.dockerenv`),!0}catch{return!1}}function Ea(){try{return f.readFileSync(`/proc/self/cgroup`,`utf8`).includes(`docker`)}catch{return!1}}function Da(){return wa===void 0&&(wa=Ta()||Ea()),wa}let Oa;const ka=()=>{try{return f.statSync(`/run/.containerenv`),!0}catch{return!1}};function Aa(){return Oa===void 0&&(Oa=ka()||Da()),Oa}const ja=()=>{if(re.platform!==`linux`)return!1;if(d.release().toLowerCase().includes(`microsoft`))return!Aa();try{return f.readFileSync(`/proc/version`,`utf8`).toLowerCase().includes(`microsoft`)?!Aa():!1}catch{return!1}};var Ma=re.env.__IS_WSL_TEST__?ja:ja();(()=>{let e=`/mnt/`,t;return async function(){if(t)return t;let n=`/etc/wsl.conf`,r=!1;try{await y.access(n,b.F_OK),r=!0}catch{}if(!r)return e;let i=await y.readFile(n,{encoding:`utf8`}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return a?(t=a.groups.mountPoint.trim(),t=t.endsWith(`/`)?t:`${t}/`,t):e}})();function Na(e,t,n){let r=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let e=n();return r(e),e},set(e){r(e)}}),e}E(j),E(j),E(j),E(j),E(k.execFile);const Pa=m.dirname(_(import.meta.url));m.join(Pa,`xdg-open`);const{platform:Fa,arch:Ia}=re;function La(e){if(typeof e==`string`||Array.isArray(e))return e;let{[Ia]:t}=e;if(!t)throw Error(`${Ia} is not supported`);return t}function Ra({[Fa]:e},{wsl:t}){if(t&&Ma)return La(t);if(!e)throw Error(`${Fa} is not supported`);return La(e)}const za={};Na(za,`chrome`,()=>Ra({darwin:`google chrome`,win32:`chrome`,linux:[`google-chrome`,`google-chrome-stable`,`chromium`]},{wsl:{ia32:`/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe`,x64:[`/mnt/c/Program Files/Google/Chrome/Application/chrome.exe`,`/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe`]}})),Na(za,`brave`,()=>Ra({darwin:`brave browser`,win32:`brave`,linux:[`brave-browser`,`brave`]},{wsl:{ia32:`/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe`,x64:[`/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe`,`/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe`]}})),Na(za,`firefox`,()=>Ra({darwin:`firefox`,win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:`firefox`},{wsl:`/mnt/c/Program Files/Mozilla Firefox/firefox.exe`})),Na(za,`edge`,()=>Ra({darwin:`microsoft edge`,win32:`msedge`,linux:[`microsoft-edge`,`microsoft-edge-dev`]},{wsl:`/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe`})),Na(za,`browser`,()=>`browser`),Na(za,`browserPrivate`,()=>`browserPrivate`);var Ba=c(((e,t)=>{t.exports=o,o.sync=s;var n=r(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,r){n.stat(e,function(n,i){r(n,n?!1:a(i,e,t))})}function s(e,t){return a(n.statSync(e),e,t)}})),Va=c(((e,t)=>{t.exports=i,i.sync=a;var n=r(`fs`);function i(e,t,r){n.stat(e,function(e,n){r(e,e?!1:o(n,t))})}function a(e,t){return o(n.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Ha=c(((e,t)=>{r(`fs`);var n=process.platform===`win32`||global.TESTING_WINDOWS?Ba():Va();t.exports=i,i.sync=a;function i(e,t,r){if(typeof t==`function`&&(r=t,t={}),!r){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}n(e,t||{},function(e,n){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}function a(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),Ua=c(((e,t)=>{let n=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=r(`path`),a=n?`;`:`:`,o=Ha(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let r=t.colon||a,i=e.match(/\//)||n&&e.match(/\\/)?[``]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(r)],o=n?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=n?o.split(r):[``];return n&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Wa=c(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Ga=c(((e,t)=>{let n=r(`path`),i=Ua(),a=Wa();function o(e,t){let r=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:r[a({env:r})],pathExt:t?n.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=n.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}t.exports=s})),Ka=c(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),qa=c(((e,t)=>{t.exports=/^#!(.*)/})),Ja=c(((e,t)=>{let n=qa();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),Ya=c(((e,t)=>{let n=r(`fs`),i=Ja();function a(e){let t=Buffer.alloc(150),r;try{r=n.openSync(e,`r`),n.readSync(r,t,0,150,0),n.closeSync(r)}catch{}return i(t.toString())}t.exports=a})),Xa=c(((e,t)=>{let n=r(`path`),i=Ga(),a=Ka(),o=Ya(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),r=!c.test(t);if(e.options.forceShell||r){let r=l.test(t);e.command=n.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,r)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}t.exports=f})),Za=c(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}}));c(((e,t)=>{let n=r(`child_process`),i=Xa(),a=Za();function o(e,t,r){let o=i(e,t,r),s=n.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,r){let o=i(e,t,r),s=n.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}t.exports=o,t.exports.spawn=o,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=a}))(),I(),I(),I();var Qa=c(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),$a=c(((e,t)=>{let{EMPTY_BUFFER:n}=Qa(),i=Buffer[Symbol.species];function a(e,t){if(e.length===0)return n;if(e.length===1)return e[0];let r=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let n=e[t];r.set(n,a),a+=n.length}return a<t?new i(r.buffer,r.byteOffset,a):r}function o(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function s(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function c(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function l(e){if(l.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new i(e):ArrayBuffer.isView(e)?t=new i(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),l.readOnly=!1),t}if(t.exports={concat:a,mask:o,toArrayBuffer:c,toBuffer:l,unmask:s},!process.env.WS_NO_BUFFER_UTIL)try{let e=r(`bufferutil`);t.exports.mask=function(t,n,r,i,a){a<48?o(t,n,r,i,a):e.mask(t,n,r,i,a)},t.exports.unmask=function(t,n){t.length<32?s(t,n):e.unmask(t,n)}}catch{}})),eo=c(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),to=c(((e,t)=>{let n=r(`zlib`),i=$a(),a=eo(),{kStatusCode:o}=Qa(),s=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),l=Symbol(`permessage-deflate`),u=Symbol(`total-length`),d=Symbol(`callback`),f=Symbol(`buffers`),p=Symbol(`error`),m;t.exports=class{constructor(e,t,n){this._maxPayload=n|0,this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,m||=new a(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[d];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,r){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[l]=this,this._inflate[u]=0,this._inflate[f]=[],this._inflate.on(`error`,_),this._inflate.on(`data`,g)}this._inflate[d]=r,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush(()=>{let e=this._inflate[p];if(e){this._inflate.close(),this._inflate=null,r(e);return}let n=i.concat(this._inflate[f],this._inflate[u]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[u]=0,this._inflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),r(null,n)})}_compress(e,t,r){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[u]=0,this._deflate[f]=[],this._deflate.on(`data`,h)}this._deflate[d]=r,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=i.concat(this._deflate[f],this._deflate[u]);t&&(e=new s(e.buffer,e.byteOffset,e.length-4)),this._deflate[d]=null,this._deflate[u]=0,this._deflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),r(null,e)})}};function h(e){this[f].push(e),this[u]+=e.length}function g(e){if(this[u]+=e.length,this[l]._maxPayload<1||this[u]<=this[l]._maxPayload){this[f].push(e);return}this[p]=RangeError(`Max payload size exceeded`),this[p].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[p][o]=1009,this.removeListener(`data`,g),this.reset()}function _(e){if(this[l]._inflate=null,this[p]){this[d](this[p]);return}e[o]=1007,this[d](e)}})),no=c(((e,t)=>{let{isUtf8:n}=r(`buffer`),{hasBlob:i}=Qa(),a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function o(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function s(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function c(e){return i&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(t.exports={isBlob:c,isValidStatusCode:o,isValidUTF8:s,tokenChars:a},n)t.exports.isValidUTF8=function(e){return e.length<24?s(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=r(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?s(t):e(t)}}catch{}})),ro=c(((e,t)=>{let{Writable:n}=r(`stream`),i=to(),{BINARY_TYPES:a,EMPTY_BUFFER:o,kStatusCode:s,kWebSocket:c}=Qa(),{concat:l,toArrayBuffer:u,unmask:d}=$a(),{isValidStatusCode:f,isValidUTF8:p}=no(),m=Buffer[Symbol.species];t.exports=class extends n{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||a[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new m(t.buffer,t.byteOffset+e,t.length-e),new m(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new m(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[i.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=o;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&d(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?l(n,t):this._binaryType===`arraybuffer`?u(l(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=l(n,t);if(!this._skipUTF8Validation&&!p(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,o),this.end();else{let n=e.readUInt16BE(0);if(!f(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!p(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[s]=r,a}}})),io=c(((e,t)=>{let{Duplex:n}=r(`stream`),{randomFillSync:i}=r(`crypto`),a=to(),{EMPTY_BUFFER:o,kWebSocket:s,NOOP:c}=Qa(),{isBlob:l,isValidStatusCode:u}=no(),{mask:d,toBuffer:f}=$a(),p=Symbol(`kByteLength`),m=Buffer.alloc(4),h=8*1024,g,_=h;t.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=c,this[s]=void 0}static frame(e,t){let n,r=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||m,t.generateMask?t.generateMask(n):(_===h&&(g===void 0&&(g=Buffer.alloc(h)),i(g,0,h),_=0),n[0]=g[_++],n[1]=g[_++],n[2]=g[_++],n[3]=g[_++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[p]!==void 0?s=t[p]:(e=Buffer.from(e),s=e.length):(s=e.length,r=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(r?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:r?(d(e,n,l,a,s),[l]):(d(e,n,e,0,s),[l,e])}close(t,n,r,i){let a;if(t===void 0)a=o;else if(typeof t!=`number`||!u(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)a=Buffer.allocUnsafe(2),a.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);a=Buffer.allocUnsafe(2+e),a.writeUInt16BE(t,0),typeof n==`string`?a.write(n,2):a.set(n,2)}let s={[p]:a.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(a,s),i):this.enqueue([this.dispatch,a,!1,s,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};l(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};l(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[a.extensionName],i=t.binary?2:1,o=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):l(e)?(s=e.size,c=!1):(e=f(e),s=e.length,c=f.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(o=s>=r._threshold),this._compress=o):(o=!1,i=0),t.fin&&(this._firstFragment=!0);let u={[p]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:o};l(e)?this._state===0?this.getBlobData(e,this._compress,u,n):this.enqueue([this.getBlobData,e,this._compress,u,n]):this._state===0?this.dispatch(e,this._compress,u,n):this.enqueue([this.dispatch,e,this._compress,u,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[p],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(v,this,e,i);return}this._bufferedBytes-=r[p];let a=f(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(y,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let o=this._extensions[a.extensionName];this._bufferedBytes+=r[p],this._state=1,o.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){v(this,Error(`The socket was closed while data was being compressed`),i);return}this._bufferedBytes-=r[p],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function v(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function y(e,t,n){v(e,t,n),e.onerror(t)}})),ao=c(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=Qa(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,`target`,{enumerable:!0}),Object.defineProperty(f.prototype,`type`,{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,`code`,{enumerable:!0}),Object.defineProperty(p.prototype,`reason`,{enumerable:!0}),Object.defineProperty(p.prototype,`wasClean`,{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,`error`,{enumerable:!0}),Object.defineProperty(m.prototype,`message`,{enumerable:!0});var h=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,`data`,{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,g(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),oo=c(((e,t)=>{let{tokenChars:n}=no();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),so=c(((e,t)=>{let n=r(`events`),i=r(`https`),a=r(`http`),o=r(`net`),s=r(`tls`),{randomBytes:c,createHash:l}=r(`crypto`),{Duplex:u,Readable:d}=r(`stream`),{URL:f}=r(`url`),p=to(),m=ro(),h=io(),{isBlob:g}=no(),{BINARY_TYPES:_,EMPTY_BUFFER:v,GUID:y,kForOnEventAttribute:b,kListener:x,kStatusCode:S,kWebSocket:C,NOOP:w}=Qa(),{EventTarget:{addEventListener:T,removeEventListener:E}}=ao(),{format:ee,parse:D}=oo(),{toBuffer:O}=$a(),k=Symbol(`kAborted`),A=[8,13],j=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],M=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var N=class e extends n{constructor(t,n,r){super(),this._binaryType=_[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),P(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){_.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new m({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new h(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[C]=this,a[C]=this,t[C]=this,i.on(`conclude`,ae),i.on(`drain`,oe),i.on(`error`,se),i.on(`message`,le),i.on(`ping`,ue),i.on(`pong`,de),a.onerror=pe,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,he),t.on(`data`,ge),t.on(`end`,_e),t.on(`error`,ve),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[p.extensionName]&&this._extensions[p.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){F(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),me(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ie(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||v,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ie(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||v,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ie(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[p.extensionName]||(i.compress=!1),this._sender.send(t||v,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){F(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(N,`CONNECTING`,{enumerable:!0,value:j.indexOf(`CONNECTING`)}),Object.defineProperty(N.prototype,`CONNECTING`,{enumerable:!0,value:j.indexOf(`CONNECTING`)}),Object.defineProperty(N,`OPEN`,{enumerable:!0,value:j.indexOf(`OPEN`)}),Object.defineProperty(N.prototype,`OPEN`,{enumerable:!0,value:j.indexOf(`OPEN`)}),Object.defineProperty(N,`CLOSING`,{enumerable:!0,value:j.indexOf(`CLOSING`)}),Object.defineProperty(N.prototype,`CLOSING`,{enumerable:!0,value:j.indexOf(`CLOSING`)}),Object.defineProperty(N,`CLOSED`,{enumerable:!0,value:j.indexOf(`CLOSED`)}),Object.defineProperty(N.prototype,`CLOSED`,{enumerable:!0,value:j.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(N.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(N.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[b])return t[x];return null},set(t){for(let t of this.listeners(e))if(t[b]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[b]:!0})}})}),N.prototype.addEventListener=T,N.prototype.removeEventListener=E,t.exports=N;function P(e,t,n,r){let o={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:A[1],maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,!A.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${A.join(`, `)})`);let s;if(t instanceof f)s=t;else try{s=new f(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}s.protocol===`http:`?s.protocol=`ws:`:s.protocol===`https:`&&(s.protocol=`wss:`),e._url=s.href;let u=s.protocol===`wss:`,d=s.protocol===`ws+unix:`,m;if(s.protocol!==`ws:`&&!u&&!d?m=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:d&&!s.pathname?m=`The URL's pathname is empty`:s.hash&&(m=`The URL contains a fragment identifier`),m){let t=SyntaxError(m);if(e._redirects===0)throw t;te(e,t);return}let h=u?443:80,g=c(16).toString(`base64`),_=u?i.request:a.request,v=new Set,b;if(o.createConnection=o.createConnection||(u?re:ne),o.defaultPort=o.defaultPort||h,o.port=s.port||h,o.host=s.hostname.startsWith(`[`)?s.hostname.slice(1,-1):s.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":g,Connection:`Upgrade`,Upgrade:`websocket`},o.path=s.pathname+s.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(b=new p(o.perMessageDeflate===!0?{}:o.perMessageDeflate,!1,o.maxPayload),o.headers[`Sec-WebSocket-Extensions`]=ee({[p.extensionName]:b.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!M.test(e)||v.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);v.add(e)}o.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(o.origin&&(o.protocolVersion<13?o.headers[`Sec-WebSocket-Origin`]=o.origin:o.headers.Origin=o.origin),(s.username||s.password)&&(o.auth=`${s.username}:${s.password}`),d){let e=o.path.split(`:`);o.socketPath=e[0],o.path=e[1]}let x;if(o.followRedirects){if(e._redirects===0){e._originalIpc=d,e._originalSecure=u,e._originalHostOrSocketPath=d?o.socketPath:s.host;let t=r&&r.headers;if(r={...r,headers:{}},t)for(let[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=d?e._originalIpc?o.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:s.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!u)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization=`Basic `+Buffer.from(o.auth).toString(`base64`)),x=e._req=_(o),e._redirects&&e.emit(`redirect`,e.url,x)}else x=e._req=_(o);o.timeout&&x.on(`timeout`,()=>{F(e,x,`Opening handshake has timed out`)}),x.on(`error`,t=>{x===null||x[k]||(x=e._req=null,te(e,t))}),x.on(`response`,i=>{let a=i.headers.location,s=i.statusCode;if(a&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){F(e,x,`Maximum redirects exceeded`);return}x.abort();let i;try{i=new f(a,t)}catch{te(e,SyntaxError(`Invalid URL: ${a}`));return}P(e,i,n,r)}else e.emit(`unexpected-response`,x,i)||F(e,x,`Unexpected server response: ${i.statusCode}`)}),x.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==N.CONNECTING)return;x=e._req=null;let i=t.headers.upgrade;if(i===void 0||i.toLowerCase()!==`websocket`){F(e,n,`Invalid Upgrade header`);return}let a=l(`sha1`).update(g+y).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==a){F(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],c;if(s===void 0?v.size&&(c=`Server sent no subprotocol`):v.size?v.has(s)||(c=`Server sent an invalid subprotocol`):c=`Server sent a subprotocol but none was requested`,c){F(e,n,c);return}s&&(e._protocol=s);let u=t.headers[`sec-websocket-extensions`];if(u!==void 0){if(!b){F(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=D(u)}catch{F(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==p.extensionName){F(e,n,`Server indicated an extension that was not requested`);return}try{b.accept(t[p.extensionName])}catch{F(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[p.extensionName]=b}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(x,e):x.end()}function te(e,t){e._readyState=N.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function ne(e){return e.path=e.socketPath,o.connect(e)}function re(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=o.isIP(e.host)?``:e.host),s.connect(e)}function F(e,t,n){e._readyState=N.CLOSING;let r=Error(n);Error.captureStackTrace(r,F),t.setHeader?(t[k]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(te,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function ie(e,t,n){if(t){let n=g(t)?t.size:O(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${j[e.readyState]})`);process.nextTick(n,t)}}function ae(e,t){let n=this[C];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[C]!==void 0&&(n._socket.removeListener(`data`,ge),process.nextTick(fe,n._socket),e===1005?n.close():n.close(e,t))}function oe(){let e=this[C];e.isPaused||e._socket.resume()}function se(e){let t=this[C];t._socket[C]!==void 0&&(t._socket.removeListener(`data`,ge),process.nextTick(fe,t._socket),t.close(e[S])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function ce(){this[C].emitClose()}function le(e,t){this[C].emit(`message`,e,t)}function ue(e){let t=this[C];t._autoPong&&t.pong(e,!this._isServer,w),t.emit(`ping`,e)}function de(e){this[C].emit(`pong`,e)}function fe(e){e.resume()}function pe(e){let t=this[C];t.readyState!==N.CLOSED&&(t.readyState===N.OPEN&&(t._readyState=N.CLOSING,me(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function me(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function he(){let e=this[C];this.removeListener(`close`,he),this.removeListener(`data`,ge),this.removeListener(`end`,_e),e._readyState=N.CLOSING;let t;!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null&&e._receiver.write(t),e._receiver.end(),this[C]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,ce),e._receiver.on(`finish`,ce))}function ge(e){this[C]._receiver.write(e)||this.pause()}function _e(){let e=this[C];e._readyState=N.CLOSING,e._receiver.end(),this.end()}function ve(){let e=this[C];this.removeListener(`error`,ve),this.on(`error`,w),e&&(e._readyState=N.CLOSING,this.destroy())}})),co=c(((e,t)=>{so();let{Duplex:n}=r(`stream`);function i(e){e.emit(`close`)}function a(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener(`error`,o),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function s(e,t){let r=!0,s=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(r=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t),process.nextTick(i,s);return}let a=!1;e.once(`error`,function(e){a=!0,n(e)}),e.once(`close`,function(){a||n(t),process.nextTick(i,s)}),r&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,a),s.on(`error`,o),s}t.exports=s})),lo=c(((e,t)=>{let{tokenChars:n}=no();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),uo=c(((e,t)=>{let n=r(`events`),i=r(`http`),{Duplex:a}=r(`stream`),{createHash:o}=r(`crypto`),s=oo(),c=to(),l=lo(),u=so(),{GUID:d,kWebSocket:f}=Qa(),p=/^[+/0-9A-Za-z]{22}==$/;t.exports=class extends n{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:u,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=i.createServer((e,t)=>{let n=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=m(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(h,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(h,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{h(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,g);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,o=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){v(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){v(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!p.test(i)){v(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(o!==13&&o!==8){v(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){_(t,400);return}let u=e.headers[`sec-websocket-protocol`],d=new Set;if(u!==void 0)try{d=l.parse(u)}catch{v(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let f=e.headers[`sec-websocket-extensions`],m={};if(this.options.perMessageDeflate&&f!==void 0){let n=new c(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let e=s.parse(f);e[c.extensionName]&&(n.accept(e[c.extensionName]),m[c.extensionName]=n)}catch{v(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,c)=>{if(!a)return _(t,o||401,s,c);this.completeUpgrade(m,i,d,e,t,n,r)});return}if(!this.options.verifyClient(a))return _(t,401)}this.completeUpgrade(m,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,a,l){if(!i.readable||!i.writable)return i.destroy();if(i[f])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return _(i,503);let u=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${o(`sha1`).update(t+d).digest(`base64`)}`],p=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(u.push(`Sec-WebSocket-Protocol: ${e}`),p._protocol=e)}if(e[c.extensionName]){let t=e[c.extensionName].params,n=s.format({[c.extensionName]:[t]});u.push(`Sec-WebSocket-Extensions: ${n}`),p._extensions=e}this.emit(`headers`,u,r),i.write(u.concat(`\r
|
|
51
|
-
`).join(`\r
|
|
52
|
-
`)),i.removeListener(`error`,g),p.setSocket(i,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(p),p.on(`close`,()=>{this.clients.delete(p),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)})),l(p,r)}};function m(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function h(e){e._state=2,e.emit(`close`)}function g(){this.destroy()}function _(e,t,n,r){n||=i.STATUS_CODES[t],r={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...r},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join(`\r
|
|
53
|
-
`)+`\r
|
|
54
|
-
\r
|
|
55
|
-
`+n)}function v(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,v),e.emit(`wsClientError`,r,n,t)}else _(n,r,i,a)}}));co(),ro(),io(),so();var fo=s(uo(),1);I(),process.versions.bun?import.meta.require(`ws`).WebSocketServer:fo.default;var po=c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isSSL=void 0,e.setupOutgoing=a,e.setupSocket=o,e.getPort=s,e.hasEncryptedConnection=c,e.urlJoin=l,e.rewriteCookieProperty=u,e.toURL=p;let t=r(`node:tls`),n=/(^|,)\s*upgrade\s*($|,)/i;e.isSSL=/^https|wss/;let i=[`:method`,`:path`,`:scheme`,`:authority`];function a(t,r,a,o){let s=r[o||`target`];t.port=+(s.port??(s.protocol!==void 0&&e.isSSL.test(s.protocol)?443:80));for(let e of[`host`,`hostname`,`socketPath`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`secureProtocol`])t[e]=s[e];for(let e in t.method=r.method||a.method,t.headers={...a.headers},a.headers[`:authority`]&&(t.headers.host=a.headers[`:authority`]),r.headers&&(t.headers={...t.headers,...r.headers}),t.headers)if(e.toLowerCase()==`trailer`){delete t.headers[e];break}if(a.httpVersionMajor>1)for(let e of i)delete t.headers[e];r.auth&&(delete t.headers.authorization,t.auth=r.auth),r.ca&&(t.ca=r.ca),s.protocol!==void 0&&e.isSSL.test(s.protocol)&&(t.rejectUnauthorized=r.secure===void 0?!0:r.secure),t.agent=r.agent||!1,t.localAddress=r.localAddress,t.agent||(t.headers=t.headers||{},(typeof t.headers.connection!=`string`||!n.test(t.headers.connection))&&(t.headers.connection=`close`));let c=s&&r.prependPath!==!1&&`pathname`in s?f(`${s.pathname}${s.search??``}`):`/`,u=r.toProxy?a.url:f(a.url);return u=r.ignorePath?``:u,t.path=l(c,u??``),r.changeOrigin&&(t.headers.host=s.protocol!==void 0&&m(t.port,s.protocol)&&!d(t.host)?t.host+`:`+t.port:t.host),t}function o(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e}function s(e){let t=e.headers[`:authority`]||e.headers.host,n=t?t.match(/:(\d+)/):``;return n?n[1]:c(e)?`443`:`80`}function c(e){let n=e.connection;return n instanceof t.TLSSocket&&n.encrypted||!!n.pair}function l(...e){let t=[],n=``;e.forEach((n,r)=>{let i=n.indexOf(`?`);i!==-1&&(t.push(n.substring(i+1)),e[r]=n.substring(0,i))}),n=t.filter(Boolean).join(`&`);let r=``;for(let t of e)t&&(r.endsWith(`/`)?t.startsWith(`/`)?r+=t.slice(1):r+=t:t.startsWith(`/`)?r+=t:r+=`/`+t);return n?r+`?`+n:r}function u(e,t,n){return Array.isArray(e)?e.map(e=>u(e,t,n)):e.replace(RegExp(`(;\\s*`+n+`=)([^;]+)`,`i`),(e,n,r)=>{let i;if(r in t)i=t[r];else if(`*`in t)i=t[`*`];else return e;return i?n+i:``})}function d(e){return!!~e.indexOf(`:`)}function f(e){if(e===``||e?.startsWith(`?`))return e;let t=p(e);return`${t.pathname??``}${t.search??``}`}function p(e){return e instanceof URL?e:(typeof e==`object`&&`href`in e&&typeof e.href==`string`&&(e=e.href),e||=``,typeof e!=`string`&&(e=`${e}`),e.startsWith(`//`)&&(e=`http://base.invalid${e}`),new URL(e,`http://base.invalid`))}function m(e,t){if(t=t.split(`:`)[0],e=+e,!e)return!1;switch(t){case`http`:case`ws`:return e!==80;case`https`:case`wss`:return e!==443}return e!==0}})),mo=c((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.OUTGOING_PASSES=void 0,e.removeChunked=o,e.setConnection=s,e.setRedirectHostRewrite=c,e.writeHeaders=l,e.writeStatusCode=u;let i=r(po()),a=/^201|30(1|2|7|8)$/;function o(e,t,n){delete n.headers[`transfer-encoding`]}function s(e,t,n){e.httpVersion===`1.0`?n.headers.connection=e.headers.connection||`close`:e.httpVersion!==`2.0`&&!n.headers.connection&&(n.headers.connection=e.headers.connection||`keep-alive`)}function c(e,t,n,r){if((r.hostRewrite||r.autoRewrite||r.protocolRewrite)&&n.headers.location&&a.test(`${n.statusCode}`)){let t=i.toURL(r.target),a=n.headers.location;if(typeof a!=`string`)return;let o=i.toURL(a);if(t.host!=o.host)return;r.hostRewrite?o.host=r.hostRewrite:r.autoRewrite&&(o.host=e.headers[`:authority`]??e.headers.host??``),r.protocolRewrite&&(o.protocol=r.protocolRewrite),n.headers.location=o.toString()}}function l(e,t,n,r){let a=typeof r.cookieDomainRewrite==`string`?{"*":r.cookieDomainRewrite}:r.cookieDomainRewrite,o=typeof r.cookiePathRewrite==`string`?{"*":r.cookiePathRewrite}:r.cookiePathRewrite,s=r.preserveHeaderKeyCase,c=(e,n)=>{n!=null&&(a&&e.toLowerCase()===`set-cookie`&&(n=i.rewriteCookieProperty(n,a,`domain`)),o&&e.toLowerCase()===`set-cookie`&&(n=i.rewriteCookieProperty(n,o,`path`)),t.setHeader(String(e).trim(),n))},l;if(s&&n.rawHeaders!=null){l={};for(let e=0;e<n.rawHeaders.length;e+=2){let t=n.rawHeaders[e];l[t.toLowerCase()]=t}}for(let t in n.headers){let r=t;if(e.httpVersionMajor>1&&r===`connection`)continue;let i=n.headers[r];s&&l&&(r=l[r]??r),c(r,i)}}function u(e,t,n){t.statusCode=n.statusCode,n.statusMessage&&e.httpVersionMajor===1&&(t.statusMessage=n.statusMessage)}e.OUTGOING_PASSES={removeChunked:o,setConnection:s,setRedirectHostRewrite:c,writeHeaders:l,writeStatusCode:u}})),ho=c(((e,t)=>{var r;t.exports=function(){if(!r){try{r=(Ir(),n(Sr))(`follow-redirects`)}catch{}typeof r!=`function`&&(r=function(){})}r.apply(null,arguments)}})),go=c(((e,t)=>{var n=r(`url`),i=n.URL,a=r(`http`),o=r(`https`),s=r(`stream`).Writable,c=r(`assert`),l=ho();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=j(Error.captureStackTrace);!e&&(t||!n)&&console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var u=!1;try{c(new i(``))}catch(e){u=e.code===`ERR_INVALID_URL`}var d=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],f=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],p=Object.create(null);f.forEach(function(e){p[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var m=D(`ERR_INVALID_URL`,`Invalid URL`,TypeError),h=D(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),g=D(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,h),_=D(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),v=D(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),y=s.prototype.destroy||S;function b(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on(`response`,t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof h?e:new h({cause:e}))}},this._performRequest()}b.prototype=Object.create(s.prototype),b.prototype.abort=function(){O(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},b.prototype.destroy=function(e){return O(this._currentRequest,e),y.call(this,e),this},b.prototype.write=function(e,t,n){if(this._ending)throw new v;if(!A(e)&&!M(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);if(j(t)&&(n=t,t=null),e.length===0){n&&n();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new _),this.abort())},b.prototype.end=function(e,t,n){if(j(e)?(n=e,e=t=null):j(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},b.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},b.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},b.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){b.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(b.prototype,e,{get:function(){return this._currentRequest[e]}})}),b.prototype._sanitizeOptions=function(e){if(e.headers||={},e.host&&(e.hostname||=e.host,delete e.host),!e.pathname&&e.path){var t=e.path.indexOf(`?`);t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},b.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of f)i.on(a,p[a]);if(this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest)if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()})()}},b.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];return}if(O(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method===`POST`||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method=`GET`,this._requestBodyBuffers=[],ee(/^content-/i,this._options.headers));var s=ee(/^host$/i,this._options.headers),c=C(this._currentUrl),u=s||c.host,d=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(c,{host:u})),f=w(r,d);l(`redirecting to`,f.href),this._isRedirect=!0,E(f,this._options),(f.protocol!==c.protocol&&f.protocol!==`https:`||f.host!==u&&!k(f.host,u))&&ee(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),j(a)&&(a(this._options,{headers:e.headers,statusCode:t},{url:d,method:o,headers:i}),this._sanitizeOptions(this._options)),this._performRequest()};function x(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function s(e,r,a){return N(e)?e=E(e):A(e)?e=E(C(e)):(a=r,r=T(e),e={protocol:i}),j(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!A(r.host)&&!A(r.hostname)&&(r.hostname=`::1`),c.equal(r.protocol,i,`protocol mismatch`),l(`options`,r),new b(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function S(){}function C(e){var t;if(u)t=new i(e);else if(t=T(n.parse(e)),!A(t.protocol))throw new m({input:e});return t}function w(e,t){return u?new i(e,t):C(n.resolve(t,e))}function T(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new m({input:e.href||e});return e}function E(e,t){var n=t||{};for(var r of d)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function ee(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function D(e,t,n){function r(n){j(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function O(e,t){for(var n of f)e.removeListener(n,p[n]);e.on(`error`,S),e.destroy(t)}function k(e,t){c(A(e)&&A(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function A(e){return typeof e==`string`||e instanceof String}function j(e){return typeof e==`function`}function M(e){return typeof e==`object`&&`length`in e}function N(e){return i&&e instanceof i}t.exports=x({http:a,https:o}),t.exports.wrap=x})),_o=c((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.WEB_PASSES=void 0,e.deleteLength=f,e.timeout=p,e.XHeaders=m,e.stream=h;let a=i(r(`node:http`)),o=i(r(`node:https`)),s=mo(),c=i(po()),l=i(go()),u=Object.values(s.OUTGOING_PASSES),d={http:a,https:o};function f(e){(e.method===`DELETE`||e.method===`OPTIONS`)&&!e.headers[`content-length`]&&(e.headers[`content-length`]=`0`,delete e.headers[`transfer-encoding`])}function p(e,t,n){n.timeout&&e.socket.setTimeout(n.timeout)}function m(e,t,n){if(!n.xfwd)return;let r=c.hasEncryptedConnection(e),i={for:e.connection.remoteAddress||e.socket.remoteAddress,port:c.getPort(e),proto:r?`https`:`http`};for(let t of[`for`,`port`,`proto`])e.headers[`x-forwarded-`+t]=(e.headers[`x-forwarded-`+t]||``)+(e.headers[`x-forwarded-`+t]?`,`:``)+i[t];e.headers[`x-forwarded-host`]=e.headers[`x-forwarded-host`]||e.headers[`:authority`]||e.headers.host||``}function h(e,t,n,r,i,a){i.emit(`start`,e,t,n.target||n.forward);let o=n.followRedirects?l:d,s=o.http,f=o.https;if(n.forward){let r=n.forward.protocol===`https:`?f:s,i=c.setupOutgoing(n.ssl||{},n,e,`forward`),a=r.request(i),o=_(a,n.forward);if(e.on(`error`,o),a.on(`error`,o),(n.buffer||e).pipe(a),!n.target)return t.end()}let p=n.target.protocol===`https:`?f:s,m=c.setupOutgoing(n.ssl||{},n,e),h=p.request(m);h.on(`socket`,r=>{i&&!h.getHeader(`expect`)&&i.emit(`proxyReq`,h,e,t,n,r)}),n.proxyTimeout&&h.setTimeout(n.proxyTimeout,()=>{h.destroy()}),t.on(`close`,()=>{t.writableFinished||h.destroy()});let g=_(h,n.target);e.on(`error`,g),h.on(`error`,g);function _(n,r){return o=>{if(e.socket.destroyed&&o.code===`ECONNRESET`){i.emit(`econnreset`,o,e,t,r),n.destroy();return}a?a(o,e,t,r):i.emit(`error`,o,e,t,r)}}(n.buffer||e).pipe(h),h.on(`response`,r=>{if(i?.emit(`proxyRes`,r,e,t),!t.headersSent&&!n.selfHandleResponse)for(let i of u)i(e,t,r,n);t.finished?i?.emit(`end`,e,t,r):(r.on(`end`,()=>{i?.emit(`end`,e,t,r)}),n.selfHandleResponse||r.pipe(t))})}e.WEB_PASSES={deleteLength:f,timeout:p,XHeaders:m,stream:h}})),vo=c((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var a=e(n),o=0;o<a.length;o++)a[o]!==`default`&&t(r,n,a[o]);return i(r,n),r}})(),o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.WS_PASSES=void 0,e.numOpenSockets=_,e.checkMethodAndHeader=v,e.XHeaders=y,e.stream=b;let s=a(r(`node:http`)),c=a(r(`node:https`)),l=a(po()),u=mo(),d=(0,o((Ir(),n(Sr))).default)(`http-proxy-3:ws-incoming`),f=Object.values(u.OUTGOING_PASSES);function p(e){let t=new Set;return({add:n,rm:r}={})=>(n&&(n.id||=Math.random(),t.has(n.id)||t.add(n.id)),r&&(r.id||=Math.random(),t.has(r.id)&&t.delete(r.id)),d(`socket counter:`,{[e]:t.size},n?`add`:r?`rm`:``),t.size)}let m=p(`socket`),h=p(`proxySocket`);var g=class{constructor(){this.headers={},this.statusCode=200,this.statusMessage=``}setHeader(e,t){return this.headers[e]=t,this}};function _(){return m()+h()}function v(e,t){if(d(`websocket: checkMethodAndHeader`),e.method!==`GET`||!e.headers.upgrade||e.headers.upgrade.toLowerCase()!==`websocket`)return t.destroy(),!0}function y(e,t,n){if(!n.xfwd)return;d(`websocket: XHeaders`);let r={for:e.connection.remoteAddress||e.socket.remoteAddress,port:l.getPort(e),proto:l.hasEncryptedConnection(e)?`wss`:`ws`};for(let t of[`for`,`port`,`proto`])e.headers[`x-forwarded-`+t]=(e.headers[`x-forwarded-`+t]||``)+(e.headers[`x-forwarded-`+t]?`,`:``)+r[t]}function b(e,t,n,r,i,a){d(`websocket: new stream`);let o=[];m({add:t});let u=()=>{for(let e of o)e.end()};t.on(`close`,()=>{m({rm:t}),u()}),t.on(`error`,u);let p=(e,t)=>Object.keys(t).reduce((e,n)=>{let r=t[n];if(!Array.isArray(r))return e.push(n+`: `+r),e;for(let t=0;t<r.length;t++)e.push(n+`: `+r[t]);return e},[e]).join(`\r
|
|
56
|
-
`)+`\r
|
|
57
|
-
\r
|
|
58
|
-
`;l.setupSocket(t),r&&r.length&&t.unshift(r);let _=l.isSSL.test(n.target.protocol)?c:s,v=l.setupOutgoing(n.ssl||{},n,e),y=_.request(v);i&&i.emit(`proxyReqWs`,y,e,t,n,r),y.on(`error`,b),y.on(`upgrade`,(e,n,r)=>{d(`upgrade`),h({add:n}),o.push(n),n.on(`close`,()=>{h({rm:n})}),n.on(`error`,b),n.on(`end`,()=>{i.emit(`close`,e,n,r)}),n.on(`close`,()=>{t.end()}),l.setupSocket(n),r&&r.length&&n.unshift(r),t.write(p(`HTTP/1.1 101 Switching Protocols`,e.headers)),n.pipe(t).pipe(n),i.emit(`open`,n)});function b(n){a?a(n,e,t):i.emit(`error`,n,e,t),t.destroySoon()}y.on(`response`,r=>{d(`got non-ws HTTP response`,{statusCode:r.statusCode,statusMessage:r.statusMessage});let i=new g;for(let t of f)t(e,i,r,n);let a=e=>{t.write(e)};e.httpVersion===`1.1`&&r.headers[`content-length`]===void 0&&(i.headers[`transfer-encoding`]=`chunked`,a=e=>{t.write(e.length.toString(16)),t.write(`\r
|
|
59
|
-
`),t.write(e),t.write(`\r
|
|
60
|
-
`)});let o=p(`HTTP/${e.httpVersion} ${r.statusCode} ${r.statusMessage}`,i.headers);t.destroyed?r.resume():(t.write(o),r.on(`data`,e=>{a(e)}),r.on(`end`,()=>{a(``),t.destroySoon()}))}),y.end()}e.WS_PASSES={checkMethodAndHeader:v,XHeaders:y,stream:b}})),yo=c((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var a=e(n),o=0;o<a.length;o++)a[o]!==`default`&&t(r,n,a[o]);return i(r,n),r}})(),o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ProxyServer=void 0;let s=a(r(`node:http`)),c=a(r(`node:http2`)),l=_o(),u=vo(),d=r(`node:events`),f=o((Ir(),n(Sr))),p=po(),m=(0,f.default)(`http-proxy-3`);e.ProxyServer=class e extends d.EventEmitter{constructor(e={}){super(),this.createRightProxy=e=>(m(`createRightProxy`,{type:e}),t=>(...n)=>{let r=n[0];m(`proxy: `,{type:e,path:r.url});let i=n[1],a=e===`ws`?this.wsPasses:this.webPasses;e==`ws`&&i.on(`error`,e=>{this.emit(`error`,e,r,i)});let o=n.length-1,s,c;typeof n[o]==`function`&&(c=n[o],o--);let l;!(n[o]instanceof Buffer)&&n[o]!==i?(l={...t,...n[o]},o--):l={...t},n[o]instanceof Buffer&&(s=n[o]);for(let e of[`target`,`forward`])typeof l[e]==`string`&&(l[e]=(0,p.toURL)(l[e]));if(!l.target&&!l.forward){this.emit(`error`,Error(`Must set target or forward`),r,i);return}for(let e of a)if(e(r,i,l,s,this,c))break}),this.onError=e=>{if(this.listeners(`error`).length===1)throw e},this.listen=(e,t)=>{m(`listen`,{port:e,hostname:t});let n=(e,t)=>{this.web(e,t)};return this._server=this.options.ssl?c.createSecureServer({...this.options.ssl,allowHTTP1:!0},n):s.createServer(n),this.options.ws&&this._server.on(`upgrade`,(e,t,n)=>{this.ws(e,t,n)}),this._server.listen(e,t),this},this.address=()=>this._server?.address(),this.close=e=>{if(this._server==null){e?.();return}this._server.close(t=>{this._server=null,e?.(t)})},this.before=(e,t,n)=>{if(e!==`ws`&&e!==`web`)throw Error("type must be `web` or `ws`");let r=e===`ws`?this.wsPasses:this.webPasses,i=!1;if(r.forEach((e,n)=>{e.name===t&&(i=n)}),i===!1)throw Error(`No such pass`);r.splice(i,0,n)},this.after=(e,t,n)=>{if(e!==`ws`&&e!==`web`)throw Error("type must be `web` or `ws`");let r=e===`ws`?this.wsPasses:this.webPasses,i=!1;if(r.forEach((e,n)=>{e.name===t&&(i=n)}),i===!1)throw Error(`No such pass`);r.splice(i++,0,n)},m(`creating a ProxyServer`,e),e.prependPath=e.prependPath!==!1,this.options=e,this.web=this.createRightProxy(`web`)(e),this.ws=this.createRightProxy(`ws`)(e),this.webPasses=Object.values(l.WEB_PASSES),this.wsPasses=Object.values(u.WS_PASSES),this.on(`error`,this.onError)}static createProxyServer(t){return new e(t)}static createServer(t){return new e(t)}static createProxy(t){return new e(t)}}}));c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.numOpenSockets=e.ProxyServer=void 0,e.createProxyServer=r;let t=yo();Object.defineProperty(e,`ProxyServer`,{enumerable:!0,get:function(){return t.ProxyServer}});var n=vo();Object.defineProperty(e,`numOpenSockets`,{enumerable:!0,get:function(){return n.numOpenSockets}});function r(e={}){return new t.ProxyServer(e)}}))(),I(),$(`vite:proxy`),$(`vite:html-fallback`);var bo=c((e=>{Object.defineProperty(e,`commentRegex`,{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm}}),Object.defineProperty(e,`mapFileCommentRegex`,{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm}});var t=typeof Buffer<`u`?typeof Buffer.from==`function`?n:r:i;function n(e){return Buffer.from(e,`base64`).toString()}function r(e){if(typeof value==`number`)throw TypeError(`The value to decode must not be of type number.`);return new Buffer(e,`base64`).toString()}function i(e){return decodeURIComponent(escape(atob(e)))}function a(e){return e.split(`,`).pop()}function o(t,n){var r=e.mapFileCommentRegex.exec(t),i=r[1]||r[2];try{var t=n(i);return t!=null&&typeof t.catch==`function`?t.catch(a):t}catch(e){a(e)}function a(e){throw Error(`An error occurred while trying to read the map file at `+i+`
|
|
61
|
-
`+e.stack)}}function s(e,n){n||={},n.hasComment&&(e=a(e)),n.encoding===`base64`?e=t(e):n.encoding===`uri`&&(e=decodeURIComponent(e)),(n.isJSON||n.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}s.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},typeof Buffer<`u`?typeof Buffer.from==`function`?s.prototype.toBase64=c:s.prototype.toBase64=l:s.prototype.toBase64=u;function c(){var e=this.toJSON();return Buffer.from(e,`utf8`).toString(`base64`)}function l(){var e=this.toJSON();if(typeof e==`number`)throw TypeError(`The json to encode must not be of type number.`);return new Buffer(e,`utf8`).toString(`base64`)}function u(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}s.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)},s.prototype.toComment=function(e){var t,n,r;return e!=null&&e.encoding===`uri`?(t=``,n=this.toURI()):(t=`;base64`,n=this.toBase64()),r=`sourceMappingURL=data:application/json;charset=utf-8`+t+`,`+n,e!=null&&e.multiline?`/*# `+r+` */`:`//# `+r},s.prototype.toObject=function(){return JSON.parse(this.toJSON())},s.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw Error(`property "`+e+`" already exists on the sourcemap, use set property instead`);return this.setProperty(e,t)},s.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},s.prototype.getProperty=function(e){return this.sourcemap[e]},e.fromObject=function(e){return new s(e)},e.fromJSON=function(e){return new s(e,{isJSON:!0})},e.fromURI=function(e){return new s(e,{encoding:`uri`})},e.fromBase64=function(e){return new s(e,{encoding:`base64`})},e.fromComment=function(t){var n,r;return t=t.replace(/^\/\*/g,`//`).replace(/\*\/$/g,``),n=e.commentRegex.exec(t),r=n&&n[4]||`uri`,new s(t,{encoding:r,hasComment:!0})};function d(e){return new s(e,{isJSON:!0})}e.fromMapFileComment=function(e,t){if(typeof t==`string`)throw Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var n=o(e,t);return n!=null&&typeof n.then==`function`?n.then(d):d(n)},e.fromSource=function(t){var n=t.match(e.commentRegex);return n?e.fromComment(n.pop()):null},e.fromMapFileSource=function(t,n){if(typeof n==`string`)throw Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=t.match(e.mapFileCommentRegex);return r?e.fromMapFileComment(r.pop(),n):null},e.removeComments=function(t){return t.replace(e.commentRegex,``)},e.removeMapFileComments=function(t){return t.replace(e.mapFileCommentRegex,``)},e.generateMapFileComment=function(e,t){var n=`sourceMappingURL=`+e;return t&&t.multiline?`/*# `+n+` */`:`//# `+n}})),xo=c(((e,t)=>{t.exports=s;var n=r(`crypto`),i=r(`fs`).Stats,a=Object.prototype.toString;function o(e){if(e.length===0)return`"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"`;var t=n.createHash(`sha1`).update(e,`utf8`).digest(`base64`).substring(0,27);return`"`+(typeof e==`string`?Buffer.byteLength(e,`utf8`):e.length).toString(16)+`-`+t+`"`}function s(e,t){if(e==null)throw TypeError(`argument entity is required`);var n=c(e),r=t&&typeof t.weak==`boolean`?t.weak:n;if(!n&&typeof e!=`string`&&!Buffer.isBuffer(e))throw TypeError(`argument entity must be string, Buffer, or fs.Stats`);var i=n?l(e):o(e);return r?`W/`+i:i}function c(e){return typeof i==`function`&&e instanceof i?!0:e&&typeof e==`object`&&`ctime`in e&&a.call(e.ctime)===`[object Date]`&&`mtime`in e&&a.call(e.mtime)===`[object Date]`&&`ino`in e&&typeof e.ino==`number`&&`size`in e&&typeof e.size==`number`}function l(e){var t=e.mtime.getTime().toString(16);return`"`+e.size.toString(16)+`-`+t+`"`}}));bo(),$(`vite:sourcemap`,{onlyWhenFocused:!0}),bo(),xo(),$(`vite:send`,{onlyWhenFocused:!0}),Mi(),xo(),I(),$(`vite:load`),$(`vite:transform`),$(`vite:cache`),c(((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m,h=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,g,_,v,y,b,x;m=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,_=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,p=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,v=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,x=/[\t\v\f\ufeff\p{Zs}]+/uy,u=/\r?\n|[\r\u2028\u2029]/y,d=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,g=/\/\/.*/y,n=/^#!.*/,a=/[<>.:={}]|\/(?![\/*])/y,i=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,o=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,s=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,y=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,c=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,l=/^(?:return|throw|yield)$/,f=RegExp(u.source),t.exports=function*(e,{jsx:t=!1}={}){var S,C,w,T,E,ee,D,O,k,A,j,M,N,P;for({length:ee}=e,T=0,E=``,P=[{tag:`JS`}],S=[],j=0,M=!1,(D=n.exec(e))&&(yield{type:`HashbangComment`,value:D[0]},T=D[0].length);T<ee;){switch(O=P[P.length-1],O.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(e[T]===`/`&&(b.test(E)||c.test(E))&&(h.lastIndex=T,D=h.exec(e))){T=h.lastIndex,E=D[0],M=!0,yield{type:`RegularExpressionLiteral`,value:D[0],closed:D[1]!==void 0&&D[1]!==`\\`};continue}if(m.lastIndex=T,D=m.exec(e)){switch(N=D[0],k=m.lastIndex,A=N,N){case`(`:E===`?NonExpressionParenKeyword`&&P.push({tag:`JSNonExpressionParen`,nesting:j}),j++,M=!1;break;case`)`:j--,M=!0,O.tag===`JSNonExpressionParen`&&j===O.nesting&&(P.pop(),A=`?NonExpressionParenEnd`,M=!1);break;case`{`:m.lastIndex=0,w=!y.test(E)&&(b.test(E)||c.test(E)),S.push(w),M=!1;break;case`}`:switch(O.tag){case`InterpolationInTemplate`:if(S.length===O.nesting){v.lastIndex=T,D=v.exec(e),T=v.lastIndex,E=D[0],D[1]==="${"?(E=`?InterpolationInTemplate`,M=!1,yield{type:`TemplateMiddle`,value:D[0]}):(P.pop(),M=!0,yield{type:`TemplateTail`,value:D[0],closed:D[1]==="`"});continue}break;case`InterpolationInJSX`:if(S.length===O.nesting){P.pop(),T+=1,E=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}M=S.pop(),A=M?`?ExpressionBraceEnd`:`}`;break;case`]`:M=!0;break;case`++`:case`--`:A=M?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(t&&(b.test(E)||c.test(E))){P.push({tag:`JSXTag`}),T+=1,E=`<`,yield{type:`JSXPunctuator`,value:N};continue}M=!1;break;default:M=!1}T=k,E=A,yield{type:`Punctuator`,value:N};continue}if(r.lastIndex=T,D=r.exec(e)){switch(T=r.lastIndex,A=D[0],D[0]){case`for`:case`if`:case`while`:case`with`:E!==`.`&&E!==`?.`&&(A=`?NonExpressionParenKeyword`)}E=A,M=!c.test(D[0]),yield{type:D[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:D[0]};continue}if(_.lastIndex=T,D=_.exec(e)){T=_.lastIndex,E=D[0],M=!0,yield{type:`StringLiteral`,value:D[0],closed:D[2]!==void 0};continue}if(p.lastIndex=T,D=p.exec(e)){T=p.lastIndex,E=D[0],M=!0,yield{type:`NumericLiteral`,value:D[0]};continue}if(v.lastIndex=T,D=v.exec(e)){T=v.lastIndex,E=D[0],D[1]==="${"?(E=`?InterpolationInTemplate`,P.push({tag:`InterpolationInTemplate`,nesting:S.length}),M=!1,yield{type:`TemplateHead`,value:D[0]}):(M=!0,yield{type:`NoSubstitutionTemplate`,value:D[0],closed:D[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(a.lastIndex=T,D=a.exec(e)){switch(T=a.lastIndex,A=D[0],D[0]){case`<`:P.push({tag:`JSXTag`});break;case`>`:P.pop(),E===`/`||O.tag===`JSXTagEnd`?(A=`?JSX`,M=!0):P.push({tag:`JSXChildren`});break;case`{`:P.push({tag:`InterpolationInJSX`,nesting:S.length}),A=`?InterpolationInJSX`,M=!1;break;case`/`:E===`<`&&(P.pop(),P[P.length-1].tag===`JSXChildren`&&P.pop(),P.push({tag:`JSXTagEnd`}))}E=A,yield{type:`JSXPunctuator`,value:D[0]};continue}if(i.lastIndex=T,D=i.exec(e)){T=i.lastIndex,E=D[0],yield{type:`JSXIdentifier`,value:D[0]};continue}if(o.lastIndex=T,D=o.exec(e)){T=o.lastIndex,E=D[0],yield{type:`JSXString`,value:D[0],closed:D[2]!==void 0};continue}break;case`JSXChildren`:if(s.lastIndex=T,D=s.exec(e)){T=s.lastIndex,E=D[0],yield{type:`JSXText`,value:D[0]};continue}switch(e[T]){case`<`:P.push({tag:`JSXTag`}),T++,E=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:P.push({tag:`InterpolationInJSX`,nesting:S.length}),T++,E=`?InterpolationInJSX`,M=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(x.lastIndex=T,D=x.exec(e)){T=x.lastIndex,yield{type:`WhiteSpace`,value:D[0]};continue}if(u.lastIndex=T,D=u.exec(e)){T=u.lastIndex,M=!1,l.test(E)&&(E=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:D[0]};continue}if(d.lastIndex=T,D=d.exec(e)){T=d.lastIndex,f.test(D[0])&&(M=!1,l.test(E)&&(E=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:D[0],closed:D[1]!==void 0};continue}if(g.lastIndex=T,D=g.exec(e)){T=g.lastIndex,M=!1,yield{type:`SingleLineComment`,value:D[0]};continue}C=String.fromCodePoint(e.codePointAt(T)),T+=C.length,E=C,M=!1,yield{type:O.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:C}}}}))();var So=c(((e,t)=>{let n=r(`path`),i=r(`fs`),a=r(`os`),o=r(`url`),s=i.promises.readFile;function c(e,t){return[`package.json`,`.${e}rc.json`,`.${e}rc.js`,`.${e}rc.cjs`,...t?[]:[`.${e}rc.mjs`],`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.js`,`.config/${e}rc.cjs`,...t?[]:[`.config/${e}rc.mjs`],`${e}.config.js`,`${e}.config.cjs`,...t?[]:[`${e}.config.mjs`]]}function l(e){return n.dirname(e)||n.sep}let u=(e,t)=>JSON.parse(t),d=typeof __webpack_require__==`function`?__non_webpack_require__:r,f=Object.freeze({".js":d,".json":d,".cjs":d,noExt:u});t.exports.defaultLoadersSync=f;let p=async e=>{try{return(await import(o.pathToFileURL(e).href)).default}catch(t){try{return d(e)}catch(e){throw e.code===`ERR_REQUIRE_ESM`||e instanceof SyntaxError&&e.toString().includes(`Cannot use import statement outside a module`)?t:e}}},m=Object.freeze({".js":p,".mjs":p,".cjs":p,".json":u,noExt:u});t.exports.defaultLoaders=m;function h(e,t,r){let i={stopDir:a.homedir(),searchPlaces:c(e,r),ignoreEmptySearchPlaces:!0,cache:!0,transform:e=>e,packageProp:[e],...t,loaders:{...r?f:m,...t.loaders}};return i.searchPlaces.forEach(e=>{let t=n.extname(e)||`noExt`,r=i.loaders[t];if(!r)throw Error(`Missing loader for extension "${e}"`);if(typeof r!=`function`)throw Error(`Loader for extension "${e}" is not a function: Received ${typeof r}.`)}),i}function g(e,t){return typeof e==`string`&&e in t?t[e]:(Array.isArray(e)?e:e.split(`.`)).reduce((e,t)=>e===void 0?e:e[t],t)||null}function _(e){if(!e)throw Error(`load must pass a non-empty string`)}function v(e,t){if(!e)throw Error(`No loader specified for extension "${t}"`);if(typeof e!=`function`)throw Error(`loader is not a function`)}let y=e=>(t,n,r)=>(e&&t.set(n,r),r);t.exports.lilconfig=function(e,t){let{ignoreEmptySearchPlaces:r,loaders:a,packageProp:o,searchPlaces:c,stopDir:u,transform:d,cache:f}=h(e,t??{},!1),p=new Map,m=new Map,b=y(f);return{async search(e=process.cwd()){let t={config:null,filepath:``},m=new Set,h=e;dirLoop:for(;;){if(f){let e=p.get(h);if(e!==void 0){for(let t of m)p.set(t,e);return e}m.add(h)}for(let e of c){let c=n.join(h,e);try{await i.promises.access(c)}catch{continue}let l=String(await s(c)),u=n.extname(e)||`noExt`,d=a[u];if(e===`package.json`){let e=g(o,await d(c,l));if(e!=null){t.config=e,t.filepath=c;break dirLoop}continue}let f=l.trim()===``;if(!(f&&r)){f?(t.isEmpty=!0,t.config=void 0):(v(d,u),t.config=await d(c,l)),t.filepath=c;break dirLoop}}if(h===u||h===l(h))break dirLoop;h=l(h)}let _=t.filepath===``&&t.config===null?d(null):d(t);if(f)for(let e of m)p.set(e,_);return _},async load(e){_(e);let t=n.resolve(process.cwd(),e);if(f&&m.has(t))return m.get(t);let{base:i,ext:c}=n.parse(t),l=c||`noExt`,u=a[l];v(u,l);let p=String(await s(t));if(i===`package.json`)return b(m,t,d({config:g(o,await u(t,p)),filepath:t}));let h={config:null,filepath:t},y=p.trim()===``;return y&&r?b(m,t,d({config:void 0,filepath:t,isEmpty:!0})):(h.config=y?void 0:await u(t,p),b(m,t,d(y?{...h,isEmpty:y,config:void 0}:h)))},clearLoadCache(){f&&m.clear()},clearSearchCache(){f&&p.clear()},clearCaches(){f&&(m.clear(),p.clear())}}},t.exports.lilconfigSync=function(e,t){let{ignoreEmptySearchPlaces:r,loaders:a,packageProp:o,searchPlaces:s,stopDir:c,transform:u,cache:d}=h(e,t??{},!0),f=new Map,p=new Map,m=y(d);return{search(e=process.cwd()){let t={config:null,filepath:``},p=new Set,m=e;dirLoop:for(;;){if(d){let e=f.get(m);if(e!==void 0){for(let t of p)f.set(t,e);return e}p.add(m)}for(let e of s){let s=n.join(m,e);try{i.accessSync(s)}catch{continue}let c=n.extname(e)||`noExt`,l=a[c],u=String(i.readFileSync(s));if(e===`package.json`){let e=g(o,l(s,u));if(e!=null){t.config=e,t.filepath=s;break dirLoop}continue}let d=u.trim()===``;if(!(d&&r)){d?(t.isEmpty=!0,t.config=void 0):(v(l,c),t.config=l(s,u)),t.filepath=s;break dirLoop}}if(m===c||m===l(m))break dirLoop;m=l(m)}let h=t.filepath===``&&t.config===null?u(null):u(t);if(d)for(let e of p)f.set(e,h);return h},load(e){_(e);let t=n.resolve(process.cwd(),e);if(d&&p.has(t))return p.get(t);let{base:s,ext:c}=n.parse(t),l=c||`noExt`,f=a[l];v(f,l);let h=String(i.readFileSync(t));if(s===`package.json`)return u({config:g(o,f(t,h)),filepath:t});let y={config:null,filepath:t},b=h.trim()===``;return b&&r?m(p,t,u({filepath:t,config:void 0,isEmpty:!0})):(y.config=b?void 0:f(t,h),m(p,t,u(b?{...y,isEmpty:b,config:void 0}:y)))},clearLoadCache(){d&&p.clear()},clearSearchCache(){d&&f.clear()},clearCaches(){d&&(p.clear(),f.clear())}}}})),Co=c(((e,t)=>{let{createRequire:n}=r(`node:module`),{fileURLToPath:i,pathToFileURL:a}=r(`node:url`),o=/\.[mc]?ts$/,s,c,l=[];async function u(e,t=i(import.meta.url)){let r=n(t).resolve(e);try{return(await import(`${a(r)}?t=${Date.now()}`)).default}catch(e){if(!o.test(r))throw e}if(s===void 0)try{s=await import(`./api-CPv6lnxG.mjs`)}catch(e){l.push(e)}if(s){let n=s.require(e,t);return n&&`__esModule`in n?n.default:n}if(c===void 0)try{c=(await import(`./jiti-eNGOyHIo.mjs`)).default}catch(e){l.push(e)}if(c)return c(t,{interopDefault:!0})(e);throw Error(`'tsx' or 'jiti' is required for the TypeScript configuration files. Make sure it is installed\nError: ${l.map(e=>e.message).join(`
|
|
62
|
-
`)}`)}t.exports=u})),wo=c(((e,t)=>{let n=Co();async function r(e,t){if(e.parser&&typeof e.parser==`string`)try{e.parser=await n(e.parser,t)}catch(e){throw Error(`Loading PostCSS Parser failed: ${e.message}\n\n(@${t})`)}if(e.syntax&&typeof e.syntax==`string`)try{e.syntax=await n(e.syntax,t)}catch(e){throw Error(`Loading PostCSS Syntax failed: ${e.message}\n\n(@${t})`)}if(e.stringifier&&typeof e.stringifier==`string`)try{e.stringifier=await n(e.stringifier,t)}catch(e){throw Error(`Loading PostCSS Stringifier failed: ${e.message}\n\n(@${t})`)}return e}t.exports=r})),To=c(((e,t)=>{let n=Co();async function r(e,t,r){try{return t==null||Object.keys(t).length===0?await n(e,r):(await n(e,r))(t)}catch(e){throw Error(`Loading PostCSS Plugin failed: ${e.message}\n\n(@${r})`)}}async function i(e,t){let n=[];return Array.isArray(e.plugins)?n=e.plugins.filter(Boolean):(n=Object.entries(e.plugins).filter(([,e])=>e!==!1).map(([e,n])=>r(e,n,t)),n=await Promise.all(n)),n.length&&n.length>0&&n.forEach((e,n)=>{if(e.default&&(e=e.default),e.postcss===!0?e=e():e.postcss&&(e=e.postcss),!(typeof e==`object`&&Array.isArray(e.plugins)||typeof e==`object`&&e.postcssPlugin||typeof e==`function`))throw TypeError(`Invalid PostCSS Plugin found at: plugins[${n}]\n\n(@${t})`)}),n}t.exports=i})),Eo=c(((e,n)=>{let{resolve:i}=r(`node:path`),a=So(),o=wo(),s=To(),c=Co(),l=e=>e&&e.__esModule?e:{default:e};async function u(e,t){let n=t.filepath||``,r=l(t.config).default||{};r=typeof r==`function`?r(e):Object.assign({},r,e),r.plugins||=[];let i={file:n,options:await o(r,n),plugins:await s(r,n)};return delete r.plugins,i}function d(e){return e=Object.assign({cwd:process.cwd(),env:process.env.NODE_ENV},e),e.env||(process.env.NODE_ENV=`development`),e}async function f(e){return c(e)}let p;async function m(e,n){if(!p)try{p=await import(`./dist-L-OpshPJ.mjs`).then(t(1))}catch(e){throw Error(`'yaml' is required for the YAML configuration files. Make sure it is installed\nError: ${e.message}`)}return p.parse(n)}let h=(e={})=>{let t=`postcss`;return{...e,loaders:{...e.loaders,".cjs":f,".cts":f,".js":f,".mjs":f,".mts":f,".ts":f,".yaml":m,".yml":m},searchPlaces:[...e.searchPlaces||[],`package.json`,`.${t}rc`,`.${t}rc.json`,`.${t}rc.yaml`,`.${t}rc.yml`,`.${t}rc.ts`,`.${t}rc.cts`,`.${t}rc.mts`,`.${t}rc.js`,`.${t}rc.cjs`,`.${t}rc.mjs`,`${t}.config.ts`,`${t}.config.cts`,`${t}.config.mts`,`${t}.config.js`,`${t}.config.cjs`,`${t}.config.mjs`]}};function g(e,t,n){return e=d(e),t=t?i(t):process.cwd(),a.lilconfig(`postcss`,h(n)).search(t).then(n=>{if(!n)throw Error(`No PostCSS Config found in: ${t}`);return u(e,n)})}
|
|
63
|
-
/**
|
|
64
|
-
* Autoload Config for PostCSS
|
|
65
|
-
*
|
|
66
|
-
* @author Michael Ciniawsky @michael-ciniawsky <michael.ciniawsky@gmail.com>
|
|
67
|
-
* @license MIT
|
|
68
|
-
*
|
|
69
|
-
* @module postcss-load-config
|
|
70
|
-
* @version 2.1.0
|
|
71
|
-
*
|
|
72
|
-
* @requires comsiconfig
|
|
73
|
-
* @requires ./options
|
|
74
|
-
* @requires ./plugins
|
|
75
|
-
*/
|
|
76
|
-
n.exports=g})),Do=s(I(),1);Do.default.blue,Do.default.magenta,Do.default.green,Do.default.gray,Eo(),I(),new TextDecoder;const Oo=Object.freeze({transformer:`postcss`,preprocessorMaxWorkers:!0,devSourcemap:!1});`${Re.source}`;const ko=/^[A-Z_][.\w-]*\(/i,Ao=/(?<!\\)"/g;var jo=function(e){return e.less=`less`,e.sass=`sass`,e.scss=`scss`,e.styl=`styl`,e.stylus=`stylus`,e}(jo||{});const Mo=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|(?:\\.|[^'")\\])+)\)/,No=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Po=e=>{if(!e)throw Error(`base or replace is required`);return{postcssPlugin:`vite-url-rewrite`,Once(t){let n=[];if(t.walkDecls(t=>{let r=t.source?.input.file;r||e.logger.warnOnce("\nA PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.");let i=Mo.test(t.value),a=No.test(t.value);if(i||a){let o=async t=>{let[n,i]=await e.resolver(t,r);return i&&e.deps.add(i),n};i&&a?n.push(Fo(t.value,o).then(e=>Lo(e,o)).then(e=>{t.value=e})):n.push((a?Lo:Fo)(t.value,o).then(e=>{t.value=e}))}}),n.length)return Promise.all(n)}}};Po.postcss=!0;function Fo(e,t){return Gr(e,Mo,async e=>{let[n,r]=e;return await zo(r.trim(),n,t)})}const Io=/(?:gradient|element|cross-fade|image)\(/;async function Lo(e,t){return await Gr(e,No,async e=>{let[,n]=e;return await Zr(n,async({url:e})=>Mo.test(e)?await Fo(e,t):Io.test(e)?e:await zo(e,e,t))})}function Ro(e){return Hr(e)||Wr(e)||e[0]===`#`||ko.test(e)||e.startsWith(`__VITE_ASSET__`)||e.startsWith(`__VITE_PUBLIC_ASSET__`)}async function zo(e,t,n,r=`url`){let i=``,a=e[0],o=e;if((a===`"`||a===`'`)&&(i=a,o=e.slice(1,-1)),Ro(o))return t;o=o.replace(/\\(\W)/g,`$1`);let s=await n(o,e);return s===!1?t:(i===``&&(s!==encodeURI(s)||s.includes(`)`))&&(i=`"`),i===`'`&&s.includes(`'`)&&(i=`"`),i===`"`&&s.includes(`"`)&&(s=s.replace(Ao,`\\"`)),`${r}(${i}${s}${i})`)}new Set([jo.less,jo.sass,jo.scss,jo.styl,jo.stylus]),bo(),I(),Mi(),new RegExp([/[ \t]*<script[^>]*type\s*=\s*(?:"module"|'module'|module)[^>]*>/i,/[ \t]*<link[^>]*rel\s*=\s*(?:"modulepreload"|'modulepreload'|modulepreload)[\s\S]*?\/>/i].map(e=>e.source).join(`|`),`i`),I(),$(`vite:cache`),$(`vite:time`),Object.freeze({}),Vi(),Wi(),I(),pa(),Ca();const Bo=Object.freeze({port:5173,strictPort:!1,host:`localhost`,allowedHosts:[],https:void 0,open:!1,proxy:void 0,cors:{origin:Ge},headers:{},warmup:{clientFiles:[],ssrFiles:[]},middlewareMode:!1,fs:{strict:!0,deny:[`.env`,`.env.*`,`*.{crt,pem}`,`**/.git/**`]},preTransformRequests:!0,perEnvironmentStartEndDuringDev:!1,perEnvironmentWatchChangeDuringDev:!1});I(),$(`vite:hmr`),Br(Ue),$(`vite:external`),I(),I(),$(`vite:import-analysis`),Br(Ue),((e,t)=>t||!e?.__esModule?{...typeof e==`object`&&!Array.isArray(e)||typeof e==`function`?e:{},default:e}:e).toString().replaceAll(`
|
|
77
|
-
`,``),Br(Ve),Br(He),(async(e={},t)=>{let n;if(t.startsWith(`data:`)){let r=t.replace(/^data:.*?base64,/,``),i;if(typeof Buffer==`function`&&typeof Buffer.from==`function`)i=Buffer.from(r,`base64`);else if(typeof atob==`function`){let e=atob(r);i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t)}else throw Error(`Failed to decode base64-encoded data URL, Buffer and atob are not supported`);n=await WebAssembly.instantiate(i,e)}else{let r=await fetch(t),i=r.headers.get(`Content-Type`)||``;if(`instantiateStreaming`in WebAssembly&&i.startsWith(`application/wasm`))n=await WebAssembly.instantiateStreaming(r,e);else{let t=await r.arrayBuffer();n=await WebAssembly.instantiate(t,e)}}return n.instance}).toString(),I();const{basename:Vo,dirname:Ho,relative:Uo}=h;I(),Object.freeze({}),process.env.DEBUG_VITE_SOURCEMAP_COMBINE_FILTER,$(`vite:sourcemap-combine`,{onlyWhenFocused:!0}),$(`vite:resolve`),$(`vite:plugin-resolve`,{onlyWhenFocused:`vite:plugin`}),$(`vite:plugin-transform`,{onlyWhenFocused:`vite:plugin`}),$(`vite:plugin-container-context`),y.appendFile,y.copyFile,y.mkdir,y.mkdtemp,y.readdir,y.readFile,y.realpath,y.rename,y.rmdir,y.stat,y.lstat,y.unlink,y.writeFile,I(),$(`vite:deps`),[...We],I(),$(`vite:deps`),[{path:`node_modules/.package-lock.json`,checkPatchesDir:`patches`,manager:`npm`},{path:`node_modules/.yarn-state.yml`,checkPatchesDir:!1,manager:`yarn`},{path:`.pnp.cjs`,checkPatchesDir:`.yarn/patches`,manager:`yarn`},{path:`.pnp.js`,checkPatchesDir:`.yarn/patches`,manager:`yarn`},{path:`node_modules/.yarn-integrity`,checkPatchesDir:`patches`,manager:`yarn`},{path:`node_modules/.pnpm/lock.yaml`,checkPatchesDir:!1,manager:`pnpm`},{path:`.rush/temp/shrinkwrap-deps.json`,checkPatchesDir:!1,manager:`pnpm`},{path:`bun.lock`,checkPatchesDir:`patches`,manager:`bun`},{path:`bun.lockb`,checkPatchesDir:`patches`,manager:`bun`}].sort((e,{manager:t})=>process.env.npm_config_user_agent?.startsWith(t)?1:-1).map(e=>e.path),E(function(e,t,n){let r=Date.now(),i=0;f.rename(e,t,function a(o){if(o&&(o.code===`EACCES`||o.code===`EPERM`)&&Date.now()-r<5e3){setTimeout(function(){f.stat(t,function(n,r){n&&n.code===`ENOENT`?f.rename(e,t,a):a(o)})},i),i<100&&(i+=10);return}n(o)})}),I(),Br(Ve),Br(He),$(`vite:resolve-details`,{onlyWhenFocused:!0}),Object.freeze({fileName:`.vite/license.md`}),I(),I();const Wo=Object.freeze({target:`baseline-widely-available`,polyfillModulePreload:!0,modulePreload:!0,outDir:`dist`,assetsDir:`assets`,assetsInlineLimit:4096,sourcemap:!1,terserOptions:{},rolldownOptions:{},commonjsOptions:{include:[/node_modules/],extensions:[`.js`,`.cjs`]},dynamicImportVarsOptions:{warnOnError:!0,exclude:[/node_modules/]},write:!0,emptyOutDir:null,copyPublicDir:!0,license:!1,manifest:!1,lib:!1,ssrManifest:!1,ssrEmitAssets:!1,reportCompressedSize:!0,chunkSizeWarningLimit:500,watch:null}),Go=Object.freeze({sharedConfigBuild:!1,sharedPlugins:!1});RegExp(`//# ${cr}=data:application/json[^,]+base64,([A-Za-z0-9+/=]+)$`,`gm`),I(),$(`vite:deps`),I(),I(),Vi(),Wi();const Ko=Object.freeze({target:`node`,optimizeDeps:{}});I(),$(`vite:config`,{depth:10}),E(f.realpath),Object.freeze({define:{},dev:{warmup:[],sourcemap:{js:!0},sourcemapIgnoreList:void 0},build:Wo,resolve:{externalConditions:[...Ie],extensions:Le,dedupe:[],noExternal:[],external:[],preserveSymlinks:!1,tsconfigPaths:!1,alias:[]},base:`/`,publicDir:`public`,plugins:[],html:{cspNonce:void 0},css:Oo,json:{namedExports:!0,stringify:`auto`},assetsInclude:void 0,builder:Go,server:Bo,preview:{port:4173},experimental:{importGlobRestoreExtension:!1,renderBuiltUrl:void 0,hmrPartialAccept:!1,enableNativePlugin:process.env._VITE_TEST_JS_PLUGIN?!1:`v1`},future:{removePluginHookHandleHotUpdate:void 0,removePluginHookSsrArgument:void 0,removeServerModuleGraph:void 0,removeServerHot:void 0,removeServerTransformRequest:void 0,removeServerWarmupRequest:void 0,removeSsrLoadModule:void 0},legacy:{skipWebSocketTokenCheck:!1},logLevel:`info`,customLogger:void 0,clearScreen:!0,envDir:void 0,envPrefix:`VITE_`,worker:{format:`iife`,plugins:()=>[]},optimizeDeps:{include:[],exclude:[],needsInterop:[],rolldownOptions:{},extensions:[],disabled:`build`,holdUntilCrawlEnd:!0,force:!1},ssr:Ko,environments:{},appType:`spa`}),m.posix.join(ze,Br(He)),m.posix.join(ze,Br(Ve)),u(import.meta.url);const qo=63315,Jo=[`vitest.config`,`vite.config`],Yo=[`.ts`,`.mts`,`.cts`,`.js`,`.mjs`,`.cjs`];Jo.flatMap(e=>Yo.map(t=>e+t));function Xo(e){return e}function Zo(e){return e}export{Me as configDefaults,je as coverageConfigDefaults,qo as defaultBrowserPort,Ae as defaultExclude,ke as defaultInclude,Xo as defineConfig,Zo as defineProject,oi as mergeConfig};
|
|
1
|
+
export*from"vitest/config";export{};
|